@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

/* ============================================================
   WINKEL.CSS — Vers Le Vin
   Matches wit.css: same palette, fonts, nav, footer, mobile.
   ============================================================ */

:root {
  --text-color: #592C38;
  --bg: #F3ECDC;
  --nav-gap: 28px;
  --nav-font-size: 18px;
  --dropdown-bg: rgba(242, 240, 208, 0.98);
  --dropdown-border: rgba(89, 44, 56, 0.06);
  --accent: #592C38;
  --accent-light: rgba(89, 44, 56, 0.08);
  --border: rgba(89, 44, 56, 0.15);
  --card-bg: rgba(243, 236, 220, 0.60);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'EB Garamond', serif;
  background: var(--bg);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   AGE GATE — identical to index.css
   ============================================================ */

#ageGate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483647;
  pointer-events: auto;
}

#ageGate.hidden { display: none; }

#ageGate .age-modal {
  background: #F3ECDC;
  color: #592C38;
  padding: 30px 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 360px;
  font-family: 'EB Garamond', serif;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2147483647;
  pointer-events: auto;
}

#ageGate button {
  margin: 10px;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background: #592C38;
  color: white;
  font-size: 16px;
  font-family: inherit;
  position: relative;
  z-index: 2147483647;
  pointer-events: auto;
}

/* ============================================================
   NAVIGATION — identical to wit.css
   ============================================================ */

nav ul, nav a, nav button {
  font-family: 'EB Garamond', serif !important;
}

.nav-wrap {
  display: flex;
  justify-content: center;
  padding: 18px 24px;
  background: transparent;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--nav-gap);
  align-items: center;
  font-size: var(--nav-font-size);
}

nav li {
  position: relative;
}

nav a, nav button {
  color: var(--text-color);
  text-decoration: none;
  background: none;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  font: inherit;
}

nav a:hover, nav button:hover {
  opacity: 0.7;
}

nav a.active {
  border-bottom: 1px solid var(--text-color);
}

.dropdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  min-width: 180px;
  background: var(--dropdown-bg);
  border: 1px solid var(--dropdown-border);
  border-radius: 6px;
  padding: 8px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  display: none;
  z-index: 200;
}

.dropdown a {
  display: block;
  padding: 8px 20px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 16px;
}

.dropdown a:hover {
  background: rgba(89, 44, 56, 0.06);
}

nav li:hover > .dropdown,
nav li:focus-within > .dropdown {
  display: block;
}

/* ============================================================
   MAIN
   ============================================================ */

main {
  flex: 1;
  padding: 60px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.shop-header {
  text-align: center;
  margin-bottom: 56px;
}

.shop-header h1 {
  font-size: 38px;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

.shop-subtitle {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.75;
  margin: 0;
}

/* ============================================================
   SECTION LABEL
   ============================================================ */

.wine-section {
  margin-bottom: 64px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.section-label h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin: 0;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   SHOP GRID
   ============================================================ */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ============================================================
   SHOP CARD
   ============================================================ */

.shop-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--card-bg);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.shop-card:hover {
  box-shadow: 0 12px 36px rgba(89, 44, 56, 0.10);
  transform: translateY(-3px);
}

/* IMAGE */
.card-image-link {
  display: block;
  overflow: hidden;
}

.card-image {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(89, 44, 56, 0.04);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.shop-card:hover .card-image img {
  transform: scale(1.03);
}

/* CARD BODY */
.card-body {
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.card-domaine {
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin: 0;
  text-transform: uppercase;
}

.card-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.card-style {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 8px;
  opacity: 0.75;
  align-self: flex-start;
  margin-top: 2px;
}

.card-short {
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.72;
  margin: 4px 0 0;
  flex: 1;
}

/* CARD FOOTER */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  gap: 8px;
  flex-wrap: wrap;
}

.card-price {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* BUTTONS */
.btn-lees {
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: transparent;
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn-lees:hover {
  background: var(--accent-light);
}

.btn-bestel {
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  /* NOTE: this button has no payment action yet.
     When you choose your payment platform (Snipcart, Stripe, etc.)
     you will add data-item-* attributes or onclick handlers here. */
}

.btn-bestel:hover {
  opacity: 0.82;
}

/* ============================================================
   COMING SOON SECTION
   ============================================================ */

.coming-soon-section {
  opacity: 0.55;
}

.coming-soon-text {
  font-size: 15px;
  font-style: italic;
  text-align: center;
  padding: 20px 0 8px;
}

/* ============================================================
   INFO BLOCKS (pickup/delivery/payment)
   ============================================================ */

.shop-info {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 48px;
}

.info-block {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px;
  border-right: 1px solid var(--border);
}

.info-block:last-child {
  border-right: none;
}

.info-icon {
  font-size: 10px;
  margin-top: 5px;
  opacity: 0.5;
  flex-shrink: 0;
}

.info-block strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-block p {
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
  opacity: 0.75;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  margin-top: auto;
  padding: 10px 20px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  opacity: 0.85;
}

/* ============================================================
   HAMBURGER (mobile)
   ============================================================ */

.hamburger {
  display: none;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 900px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .shop-info {
    flex-direction: column;
  }

  .info-block {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .info-block:last-child {
    border-bottom: none;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 720px) {

  main {
    padding: 40px 16px 60px;
  }

  .shop-header h1 {
    font-size: 28px;
  }

  .shop-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card-image {
    aspect-ratio: 3 / 4;
  }

  .card-image img {
    object-fit: contain;
    object-position: center;
  }

  footer {
    font-size: 12px;
  }

  /* Hamburger — show on mobile */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    left: 16px;
    top: 12px;
    z-index: 1100;
  }

  .hamburger .line {
    width: 20px;
    height: 4px;
    background: #592C38;
    border-radius: 3px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    display: block;
  }

  .hamburger[aria-expanded="true"] .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger[aria-expanded="true"] .line:nth-child(2) {
    opacity: 0;
  }

  .hamburger[aria-expanded="true"] .line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  nav ul {
    display: none;
  }

  .nav-wrap.open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 900;
    pointer-events: none;
  }

  .nav-wrap.open nav ul {
    display: flex;
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 280px;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--bg);
    z-index: 950;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    align-items: flex-start;
  }

  .nav-wrap.open nav ul li {
    width: 100%;
  }

  .nav-wrap.open nav ul a,
  .nav-wrap.open nav ul button {
    display: block;
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    font-size: 16px;
  }

  .nav-wrap.open nav ul .dropdown {
    position: static;
    transform: none;
    background: rgba(89, 44, 56, 0.06);
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex !important;
    flex-direction: column;
    width: 100%;
    margin-top: 4px;
  }

  .nav-wrap.open nav ul .dropdown a {
    padding: 8px 14px;
    font-size: 14px;
  }
}
