/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
  --wine: #722f37;
  --wine-dark: #5a1f26;
  --wine-light: #9b4d57;
  --cream: #faf7f3;
  --warm-white: #ffffff;
  --warm-gray: #f8f4ef;
  --border: #e8ddd5;
  --text: #2c1f1a;
  --text-muted: #7a6860;
  --tan: #c19a6b;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(44,31,26,0.08);
  --shadow-hover: 0 12px 40px rgba(44,31,26,0.15);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--warm-white); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── NAV ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.logo-mark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  color: var(--wine); letter-spacing: -0.02em;
  background: var(--wine); color: #fff;
  width: 38px; height: 38px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.logo-text { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--text); }
.nav-links { display: flex; gap: 2rem; }
.nav-link { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0.03em; transition: color .2s; }
.nav-link:hover { color: var(--wine); }

.cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  transition: background .2s;
}
.cart-btn:hover { background: var(--warm-gray); }
.cart-count {
  position: absolute; top: 2px; right: 2px;
  background: var(--wine); color: white;
  font-size: 0.65rem; font-weight: 600;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.cart-count.visible { opacity: 1; }

/* ── CART DRAWER ────────────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.35);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 380px; max-width: 100vw;
  background: white; z-index: 300;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem; border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-family: var(--font-display); font-size: 1.3rem; }
.cart-close { font-size: 1.2rem; color: var(--text-muted); transition: color .2s; padding: 0.25rem; }
.cart-close:hover { color: var(--wine); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty { color: var(--text-muted); text-align: center; padding: 2rem 0; font-size: 0.9rem; }
.cart-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.cart-item-img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 500; font-size: 0.95rem; margin-bottom: 0.2rem; }
.cart-item-color { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.cart-item-price { font-size: 0.9rem; color: var(--wine); font-weight: 600; }
.cart-item-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.qty-btn {
  width: 24px; height: 24px; border-radius: 50%; background: var(--warm-gray);
  font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.qty-btn:hover { background: var(--border); }
.qty-num { font-size: 0.9rem; min-width: 1.5rem; text-align: center; }
.cart-footer { padding: 1.5rem; border-top: 1px solid var(--border); }
.cart-subtotal { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 0.95rem; }
.cart-subtotal span:last-child { font-weight: 600; }
.btn-checkout {
  display: block; width: 100%; text-align: center;
  background: var(--wine); color: white;
  padding: 1rem; border-radius: var(--radius);
  font-weight: 500; font-size: 0.95rem; letter-spacing: 0.04em;
  transition: background .2s;
}
.btn-checkout:hover { background: var(--wine-dark); }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2c1f1a 0%, #722f37 50%, #4a1520 100%);
  min-height: 85vh;
  display: flex; align-items: center;
}
.hero-texture {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 0 2rem; width: 100%; }
.hero-eyebrow { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.hero-title {
  font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700; line-height: 1.05; color: white;
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--tan); }
.hero-sub { color: rgba(255,255,255,0.65); font-size: 1.05rem; font-weight: 300; max-width: 480px; line-height: 1.7; margin-bottom: 2.5rem; }
.hero-cta {
  display: inline-block; background: white; color: var(--wine);
  padding: 1rem 2.5rem; border-radius: 50px;
  font-weight: 500; font-size: 0.95rem; letter-spacing: 0.04em;
  transition: all .25s;
}
.hero-cta:hover { background: var(--tan); color: white; transform: translateY(-2px); }
.hero-ornament { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 500px; opacity: 0.4; pointer-events: none; }

/* ── FILTER BAR ─────────────────────────────────────────────────────────── */
.filter-bar { background: var(--cream); border-bottom: 1px solid var(--border); padding: 1rem 0; }
.filter-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.filter-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-right: 0.5rem; }
.filter-btn {
  padding: 0.5rem 1.25rem; border-radius: 50px; font-size: 0.85rem;
  border: 1px solid var(--border); background: white; color: var(--text-muted);
  transition: all .2s; font-weight: 400;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--wine); color: white; border-color: var(--wine);
}

/* ── PRODUCTS ───────────────────────────────────────────────────────────── */
.products-section { max-width: 1280px; margin: 0 auto; padding: 3rem 2rem; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.75rem; }
.product-card {
  display: flex; flex-direction: column; background: white;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  transition: all .25s; box-shadow: var(--shadow);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--warm-gray); }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-img { transform: scale(1.04); }
.badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  font-size: 0.72rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.07em;
}
.badge-low { background: #fff3cd; color: #856404; }
.badge-out { background: #f8d7da; color: #842029; }
.product-info { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product-category { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--wine); margin-bottom: 0.35rem; font-weight: 500; }
.product-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
.product-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.75rem; flex: 1; }
.color-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.color-swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid transparent; transition: all .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.color-swatch.selected { border-color: var(--wine); transform: scale(1.15); }
.color-swatch:hover { transform: scale(1.15); }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 0.75rem; }
.product-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--text); }
.btn-add {
  background: var(--wine); color: white;
  padding: 0.6rem 1.1rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em;
  transition: all .2s; white-space: nowrap;
}
.btn-add:hover:not(:disabled) { background: var(--wine-dark); transform: translateY(-1px); }
.btn-add:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }

/* ── ABOUT ──────────────────────────────────────────────────────────────── */
.about-section { background: var(--cream); border-top: 1px solid var(--border); padding: 5rem 2rem; }
.about-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.section-eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--wine); margin-bottom: 0.75rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1.2; margin-bottom: 1.5rem; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.about-features { display: flex; flex-direction: column; gap: 1.5rem; }
.feature { padding: 1.5rem; background: white; border-radius: 10px; border: 1px solid var(--border); }
.feature-icon { color: var(--wine); font-size: 1rem; margin-bottom: 0.5rem; display: block; }
.feature strong { display: block; margin-bottom: 0.3rem; font-size: 0.95rem; }
.feature p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.footer { background: var(--text); color: rgba(255,255,255,0.6); padding: 2.5rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; gap: 0.6rem; color: white; font-family: var(--font-display); font-weight: 600; }
.footer-logo .logo-mark { background: var(--wine); }
.footer-copy { font-size: 0.82rem; }

/* ── CHECKOUT ───────────────────────────────────────────────────────────── */
.checkout-page { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem; }
.checkout-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.checkout-section-title { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.checkout-item { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.checkout-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--warm-gray); }
.checkout-item-details { flex: 1; }
.checkout-item-name { font-weight: 500; margin-bottom: 0.2rem; }
.checkout-item-color, .checkout-item-qty { font-size: 0.82rem; color: var(--text-muted); }
.checkout-item-price { font-weight: 600; color: var(--wine); white-space: nowrap; }
.summary-line-group { margin-top: 1.5rem; }
.summary-line { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.92rem; color: var(--text-muted); }
.summary-total { border-top: 2px solid var(--border); margin-top: 0.5rem; padding-top: 1rem; color: var(--text); font-weight: 600; font-size: 1.1rem; }
.shipping-note {
  display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1.5rem;
  background: #fdf7f0; border: 1px solid #f0e0c8; border-radius: 8px; padding: 1rem;
  font-size: 0.84rem; color: var(--text-muted); line-height: 1.5;
}
.ship-icon { font-size: 1.1rem; flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.82rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
  padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.95rem; color: var(--text); background: white;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--wine);
}
.stripe-element-wrap { border: 1px solid var(--border); border-radius: 8px; padding: 1rem; min-height: 60px; }
.stripe-placeholder-inner {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--text-muted); font-size: 0.85rem;
}
.payment-message { padding: 0.75rem 1rem; border-radius: 8px; background: #fdf0f0; margin-top: 1rem; font-size: 0.9rem; }
.btn-pay {
  width: 100%; margin-top: 1.25rem; padding: 1.1rem;
  background: var(--wine); color: white; border-radius: var(--radius);
  font-size: 1rem; font-weight: 500; letter-spacing: 0.04em;
  transition: background .2s; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-pay:hover:not(:disabled) { background: var(--wine-dark); }
.btn-pay:disabled { opacity: 0.6; cursor: not-allowed; }
.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: white; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.secure-note { display: flex; align-items: center; gap: 0.4rem; justify-content: center; margin-top: 0.75rem; font-size: 0.8rem; color: var(--text-muted); }

/* ── Hamburger Menu ──────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; border-radius: 8px;
  transition: background .2s; flex-shrink: 0;
}
.hamburger:hover { background: var(--warm-gray); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-menu {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: white; z-index: 99;
  flex-direction: column; padding: 2rem;
  transform: translateX(-100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-link {
  display: block; font-family: var(--font-display); font-size: 2rem;
  font-weight: 600; color: var(--text); padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu-link:hover { color: var(--wine); }
.mobile-menu-sub {
  display: flex; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap;
}
.mobile-menu-sub a { font-size: 0.9rem; color: var(--text-muted); }

/* ── Responsive — Tablet ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .checkout-container { grid-template-columns: 1fr; }
  .hero-ornament { opacity: 0.15; width: 350px; }
}

/* ── Responsive — Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .nav-inner { padding: 0 1.25rem; height: 60px; }
  .mobile-menu { top: 60px; }
  .logo-text { font-size: 1.05rem; }

  /* Hero */
  .hero { min-height: 70vh; padding: 2rem 0; }
  .hero-content { padding: 0 1.25rem; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .hero-sub { font-size: 0.95rem; }
  .hero-cta { padding: 0.85rem 2rem; font-size: 0.9rem; }
  .hero-ornament { display: none; }

  /* Filter bar */
  .filter-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .filter-inner { padding: 0 1.25rem; flex-wrap: nowrap; min-width: max-content; gap: 0.5rem; }
  .filter-btn { white-space: nowrap; padding: 0.45rem 1rem; font-size: 0.82rem; }

  /* Products */
  .products-section { padding: 2rem 1.25rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .product-name { font-size: 1.05rem; }
  .product-desc { display: none; } /* hide desc on tiny cards */
  .product-info { padding: 1rem; }
  .product-footer { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .btn-add { width: 100%; text-align: center; padding: 0.6rem; }
  .product-price { font-size: 1.15rem; }

  /* Cart drawer */
  .cart-drawer { width: 100vw; }

  /* About */
  .about-section { padding: 3rem 1.25rem; }
  .about-inner { gap: 2rem; }
  .section-title { font-size: 1.8rem; }
  .about-features { gap: 1rem; }

  /* Checkout */
  .checkout-page { padding: 1.5rem 1.25rem; }
  .checkout-container { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer { padding: 2rem 1.25rem; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ── Very small phones ───────────────────────────────────────────────────── */
@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
}

/* ── Touch targets — make buttons finger-friendly ────────────────────────── */
@media (hover: none) {
  .btn-add, .btn-checkout, .filter-btn, .qty-btn {
    min-height: 44px;
  }
  .color-swatch { width: 28px; height: 28px; }
  .cart-btn { width: 48px; height: 48px; }
}

/* ── Product Modal ───────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 400; opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.product-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; pointer-events: none; opacity: 0;
  transition: opacity .3s;
}
.product-modal.open { opacity: 1; pointer-events: all; }

.modal-inner {
  background: white; border-radius: 16px;
  max-width: 900px; width: 100%;
  max-height: 92vh; overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  position: relative;
  transform: scale(0.95); transition: transform .3s;
}
.product-modal.open .modal-inner { transform: scale(1); }

.modal-close {
  position: fixed;
  top: clamp(0.75rem, 3vw, 1.5rem);
  right: clamp(0.75rem, 3vw, 1.5rem);
  z-index: 600;
  width: 40px; height: 40px; border-radius: 50%;
  background: white; color: var(--text);
  font-size: 1.1rem; font-weight: 600;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: background .2s, transform .15s;
  border: 1px solid var(--border);
  cursor: pointer;
}
.product-modal.open .modal-close { display: flex; }
.modal-close:hover { background: #fdf0f2; color: var(--wine); transform: scale(1.08); }

/* Gallery side */
.modal-gallery {
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem;
  background: var(--warm-gray); border-radius: 16px 0 0 16px;
}
.gallery-main-wrap {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: var(--border);
}
.gallery-main-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.85); color: var(--text);
  font-size: 1.4rem; align-items: center; justify-content: center;
  transition: background .2s; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.gallery-nav:hover { background: white; }
.gallery-prev { left: 0.6rem; }
.gallery-next { right: 0.6rem; }

.gallery-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 60px; height: 60px; border-radius: 6px; overflow: hidden;
  border: 2px solid transparent; transition: border-color .2s; flex-shrink: 0;
}
.gallery-thumb.active { border-color: var(--wine); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Info side */
.modal-info {
  padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: 0.8rem;
  overflow-y: auto;
}
.modal-category { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--wine); font-weight: 500; }
.modal-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.modal-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--text); }
.modal-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }

.modal-stock { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.85rem; border-radius: 50px; font-size: 0.78rem; font-weight: 600; width: fit-content; }
.modal-stock::before { content:''; width:7px; height:7px; border-radius:50%; }
.stock-in { background:#e8f5e9; color:#2e7d32; }
.stock-in::before { background:#2e7d32; }
.stock-low { background:#fff8e1; color:#f57f17; }
.stock-low::before { background:#f57f17; }
.stock-out { background:#fce4e4; color:#c62828; }
.stock-out::before { background:#c62828; }

.modal-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.5rem; }
.modal-colors { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.modal-color-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid transparent;
  transition: all .2s; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.modal-color-btn:hover { transform: scale(1.15); }
.modal-color-btn.selected { border-color: var(--wine); transform: scale(1.15); }
.modal-selected-color-text { font-size: 0.82rem; color: var(--text-muted); min-height: 1.2em; }

.modal-add-btn {
  margin-top: 0.25rem; width: 100%; padding: 1rem;
  background: var(--wine); color: white; border-radius: 10px;
  font-size: 1rem; font-weight: 500; letter-spacing: 0.04em;
  transition: background .2s;
}
.modal-add-btn:hover:not(:disabled) { background: var(--wine-dark); }
.modal-add-btn:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }

.modal-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.5rem; }
.modal-feature { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--text-muted); }
.modal-feature span { color: var(--wine); font-size: 0.6rem; }

/* Card hover hint */
.card-view-hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(114,47,55,0.65); color: white;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em;
  opacity: 0; transition: opacity .25s; cursor: pointer;
}
.product-img-wrap:hover .card-view-hint { opacity: 1; }

/* ── Modal responsive ── */
@media (max-width: 700px) {
  .modal-inner { grid-template-columns: 1fr; max-height: 95vh; }
  .modal-gallery { border-radius: 16px 16px 0 0; }
  .gallery-main-wrap { aspect-ratio: 4/3; }
  .modal-info { padding: 1.5rem 1.25rem; }
  .modal-title { font-size: 1.3rem; }
  .modal-features { grid-template-columns: 1fr; }
}
