/* ──────────────────────────────────────────
   SHOP PAGE
   Two-column layout:
     - Left sidebar: page title + filter groups
     - Right main:   grid of product cards (3 columns desktop)
   To add a filter group: copy any .shop-filter block.
   To add a product: copy any .shop-card block, set --card-color and bottle src.
─────────────────────────────────────────── */
.shop {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  max-width: 1700px;
  margin: 0 auto;
  padding: 180px 48px 120px;
}

/* ──────────────────────────────────────────
   SIDEBAR
─────────────────────────────────────────── */
.shop-sidebar {
  position: sticky;
  top: 130px;
  align-self: start;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding-right: 16px;
}

.shop-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--light);
  margin: 0 0 48px;
}

.shop-divider {
  height: 1px;
  background: var(--light-faint);
  margin: 28px 0;
}

.shop-filter-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--light);
  margin: 0 0 18px;
}

.shop-filter-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Custom checkbox row ──────────────────── */
.shop-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--light-dim);
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}
.shop-checkbox:hover { color: var(--light); }
.shop-checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--light-faint);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.shop-checkbox input:checked {
  border-color: var(--light);
  background-color: var(--light);
}
.shop-checkbox input:checked::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--dark);
}
.shop-checkbox:hover input { border-color: var(--light); }

/* ──────────────────────────────────────────
   PRODUCT GRID
─────────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* row-gap is intentionally large so the bottle's overhang on the next row
     has breathing room (bottles overhang ~35% above their frame). */
  gap: 80px 24px;
}

/* ──────────────────────────────────────────
   PRODUCT CARD
   Each card has --card-color set inline driving the background tint.
─────────────────────────────────────────── */
.shop-card {
  text-decoration: none;
  color: inherit;
  display: block;
  /* Category accent color — set inline per card so each card's meta text picks
     up a hue that matches its background image. Defaults to the brand cream. */
  --card-color: var(--light);
  perspective: 1000px;
}

/* OUTER stage — no overflow:hidden, so the bottle can extend above the rounded
   frame (the bottle is a sibling of .shop-card-frame, not inside it). */
.shop-card-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  transition: transform 0.7s var(--ease-out-quint);
}
.shop-card:hover .shop-card-stage { transform: translateY(-10px); }

/* INNER frame — rounded, dark, clips the background image. */
.shop-card-frame {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.7s var(--ease-out-quint);
}
.shop-card:hover .shop-card-frame {
  box-shadow: 0 36px 64px -22px rgba(0, 0, 0, 0.7);
}

/* Soft inner vignette so the bottle pops */
.shop-card-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 50%,
    rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Background image — sits inside frame, filled with `cover` (clips as needed). */
.shop-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 1.2s var(--ease-out-quint);
}
.shop-card:hover .shop-card-bg { transform: scale(1.05); }

.shop-card-bottle {
  position: absolute;
  bottom: 5%;
  left: 50%;
  width: 40%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.45));
  transition: transform 0.7s var(--ease-out-quint);
}
.shop-card:hover .shop-card-bottle {
  transform: translate(-50%, -8px) scale(1.04);
}

/* ── Card meta ───────────────────────────── */
.shop-card-meta {
  margin-top: 20px;
  text-align: center;
  padding: 0 8px;
}
.shop-card-category {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--card-color);
  margin-bottom: 10px;
}
.shop-card-name {
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 26px);
  font-weight: 400;
  color: var(--light);
  line-height: 1.2;
  margin: 0 0 8px;
}
.shop-card-year {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--light-dim);
  letter-spacing: 0.12em;
}

/* ──────────────────────────────────────────
   MOBILE
─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .shop {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 130px 24px 80px;
  }
  .shop-sidebar {
    position: static;
    max-height: none;
    padding-right: 0;
  }
  .shop-title { margin-bottom: 28px; font-size: 36px; }
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 16px;
  }
}

@media (max-width: 600px) {
  .shop { padding: 110px 16px 60px; }
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .shop-title { font-size: 32px; }
  .shop-card-bottle { width: 40%; }
}
