/* Albi Boutique — Modern Luxury Shop & Catalog Styling */

.shop-page {
  max-width: 1360px;
  width: calc(100% - 44px);
  margin: 0 auto;
  padding: 30px 0 80px;
}

/* Header */
.shop-heading {
  margin-bottom: 24px;
}

.shop-eyebrow {
  display: block;
  color: #466519;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.shop-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.shop-heading h1 {
  margin: 0;
  color: #243657;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.shop-heading p {
  margin: 6px 0 0;
  color: #6e6b63;
  font-size: 0.88rem;
  max-width: 540px;
}

.shop-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef3e5;
  color: #6a5c1e;
  font-size: 0.74rem;
  font-weight: 750;
}

/* Toolbar (Search, Filter, Sort) */
.shop-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.shop-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 240px;
}

.shop-search .search-icon {
  position: absolute;
  left: 14px;
  color: #8c8980;
  pointer-events: none;
}

.shop-search input {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 40px;
  border: 1px solid #dbe4d0;
  border-radius: 11px;
  background: #ffffff;
  font-size: 0.84rem;
  font-family: inherit;
  color: #243657;
  transition: all 0.16s ease;
  box-sizing: border-box;
}

.shop-search input:focus {
  outline: 0;
  border-color: #84b130;
  box-shadow: 0 0 0 3px rgba(132, 177, 48, 0.22);
}

.filter-button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid #dbe4d0;
  border-radius: 11px;
  background: #ffffff;
  color: #243657;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.filter-button:hover {
  background: #f7f8f5;
  border-color: #dbe4d0;
}

.sort-select {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sort-select select {
  height: 42px;
  padding: 0 32px 0 14px;
  border: 1px solid #dbe4d0;
  border-radius: 11px;
  background: #ffffff;
  color: #243657;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666660' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all 0.16s ease;
}

.sort-select select:focus {
  outline: 0;
  border-color: #84b130;
  box-shadow: 0 0 0 3px rgba(132, 177, 48, 0.22);
}

/* Filter Dropdown Popover */
.filter-panel {
  position: absolute;
  right: 0;
  top: 52px;
  z-index: 20;
  width: min(440px, 100%);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border: 1px solid #dbe4d0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(36, 54, 87, 0.15);
}

.filter-panel[hidden] {
  display: none;
}

.filter-panel label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #243657;
}

.filter-panel select {
  width: 100%;
  height: 38px;
  margin-top: 5px;
  padding: 0 30px 0 10px;
  border: 1px solid #dbe4d0;
  border-radius: 9px;
  background: #f7f8f5;
  font-size: 0.82rem;
}

.filter-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}

.filter-check input {
  accent-color: #243657;
  width: 16px;
  height: 16px;
}

.apply-filters {
  grid-column: 1 / -1;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: #243657;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease;
}

.apply-filters:hover {
  background: #243657;
}

.filter-panel > a {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.78rem;
  color: #7b786f;
  text-decoration: none;
}

.filter-panel > a:hover {
  text-decoration: underline;
  color: #243657;
}

/* Category Quick-Filter Pills */
.shop-pills {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.shop-pills a {
  flex: 0 0 auto;
  padding: 7px 16px;
  border: 1px solid #dbe4d0;
  border-radius: 999px;
  background: #ffffff;
  color: #55534c;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
  transition: all 0.16s ease;
}

.shop-pills a:hover {
  border-color: #243657;
  color: #243657;
  background: #f7f8f5;
}

.shop-pills a.active {
  background: #243657;
  color: #ffffff;
  border-color: #243657;
  box-shadow: 0 2px 8px rgba(36, 54, 87, 0.14);
}

/* Optimal Product Cards Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.shop-card {
  background: #ffffff;
  border: 1px solid #eef3e5;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(36, 54, 87, 0.025);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(36, 54, 87, 0.08);
  border-color: #dbe4d0;
}

/* Media Box with Standard Aspect Ratio */
.shop-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #f7f8f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-card-media > a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.shop-card-media img {
  max-width: 86%;
  max-height: 86%;
  object-fit: contain !important;
  filter: drop-shadow(0 6px 12px rgba(36, 54, 87, 0.04));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shop-card:hover .shop-card-media img {
  transform: scale(1.05);
}

.shop-image-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #9c9990;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Badges on Card */
.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}

.status-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-badge.dark {
  background: #243657;
  color: #ffffff;
}

.status-badge.gold {
  background: #84b130;
  color: #243657;
}

.status-badge.green {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.destination-badge {
  position: absolute;
  bottom: 9px;
  left: 10px;
  background: rgba(36, 54, 87, 0.74);
  color: #ffffff;
  backdrop-filter: blur(6px);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.69rem;
  font-weight: 600;
  z-index: 2;
}

.wishlist-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #77746c;
  font-size: 1.05rem;
  line-height: 1;
  z-index: 2;
  transition: all 0.16s ease;
  backdrop-filter: blur(4px);
  padding: 0;
}

.wishlist-button:hover {
  transform: scale(1.08);
  background: #ffffff;
  color: #dc2626;
}

.wishlist-button.active {
  color: #dc2626;
  background: #ffffff;
}

/* Card Body */
.shop-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #466519;
  margin-bottom: 3px;
  display: block;
}

.card-title {
  margin: 0 0 6px;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.35;
}

.card-title a {
  color: #243657;
  text-decoration: none;
  transition: color 0.15s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title a:hover {
  color: #466519;
}

.card-price {
  font-size: 1.06rem;
  font-weight: 850;
  color: #243657;
  margin-bottom: 12px;
}

/* Card Action CTA */
.card-action-btn {
  height: 36px;
  width: 100%;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-top: auto;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.card-action-btn.primary {
  background: #243657;
  color: #ffffff;
}

.card-action-btn.primary:hover {
  background: #243657;
  transform: translateY(-1px);
}

.card-action-btn.secondary {
  background: #f7f8f5;
  color: #243657;
  border-color: #dbe4d0;
}

.card-action-btn.secondary:hover {
  background: #84b130;
  border-color: #759e29;
}

/* Empty State */
.shop-empty {
  grid-column: 1 / -1;
  padding: 70px 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #eef3e5;
  text-align: center;
}

.shop-empty > span {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 12px;
}

.shop-empty h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #243657;
}

.shop-empty p {
  margin: 0 0 18px;
  color: #6f6b63;
  font-size: 0.86rem;
}

.shop-empty a {
  display: inline-flex;
  padding: 10px 22px;
  border-radius: 999px;
  background: #243657;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

/* Responsive Grid */
@media (max-width: 1200px) {
  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .shop-search {
    min-width: 0;
  }
  .filter-panel {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .shop-page {
    width: calc(100% - 24px);
    padding-top: 20px;
  }
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .shop-card-body {
    padding: 10px 10px 12px;
  }
  .card-title {
    font-size: 0.84rem;
  }
  .card-price {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }
  .card-action-btn {
    height: 32px;
    font-size: 0.72rem;
  }
  .shop-heading h1 {
    font-size: 1.6rem;
  }
}
