/*
Theme Name: Decanter Vinhos
Theme URI: https://example.com/decanter-vinhos
Author: Decanter Dev
Author URI: https://example.com
Description: Tema WordPress/WooCommerce de e-commerce de vinhos. Front-end completo (home, loja, produto, blog) + back-end (Customizer, assinantes de newsletter, AJAX, painel admin).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: decanter
Tags: e-commerce, wine, woocommerce, custom-menu, custom-logo, translation-ready
WC requires at least: 7.0
WC tested up to: 9.5
*/

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

:root {
  --gold: #bf932c;
  --gold-dark: #a37e22;
  --gold-light: #d4af37;
  --wine: #6b1f2c;
  --wine-dark: #4a1620;
  --bg-soft: #f7f5f1;
  --bg-muted: #f2f4f5;
  --border: #e3e4e6;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-light: #979899;
}

/* ============ TOP BAR ============ */
.top-bar {
  background: linear-gradient(90deg, var(--wine-dark), var(--wine));
  color: #fff;
  font-size: 0.8125rem;
  text-align: center;
  padding: 0.6rem 1rem;
  letter-spacing: 0.3px;
}
.top-bar strong { color: var(--gold-light); font-weight: 600; }
.top-bar .marquee {
  display: inline-block;
  animation: slide 18s linear infinite;
  white-space: nowrap;
}
.top-bar .sep { opacity: 0.6; padding: 0 0.4rem; }
@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}

/* ============ UTILITY BAR ============ */
.utility-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
}
.utility-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.utility-promos { display: flex; gap: 2rem; }
.utility-promos a { display: flex; align-items: center; gap: 0.4rem; color: var(--text-muted); transition: color 0.2s; }
.utility-promos a:hover { color: var(--gold); }
.utility-promos svg { height: 18px; width: 18px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.utility-promos strong { color: var(--text); font-weight: 600; }
.utility-account { display: flex; gap: 1rem; align-items: center; }
.utility-account a { color: var(--text-muted); transition: color 0.2s; }
.utility-account a:hover { color: var(--gold); }

/* ============ HEADER ============ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
body.admin-bar .site-header { top: 32px; }
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 2rem;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--wine-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-icon { width: 32px; height: 32px; fill: var(--gold); }
.logo img { height: 40px; width: auto; }
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  transition: all 0.2s;
}
.search-box:focus-within {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(191, 147, 44, 0.1);
}
.search-box svg { width: 18px; height: 18px; fill: var(--text-light); flex-shrink: 0; }
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 0.875rem;
  margin-left: 0.6rem;
  color: var(--text);
}
.search-box input::placeholder { color: var(--text-light); }
.header-actions { display: flex; gap: 1.2rem; align-items: center; }
.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.6875rem;
  color: var(--text-muted);
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}
.header-action:hover { color: var(--gold); }
.header-action svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gold);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ NAVIGATION ============ */
.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav-inner,
.main-nav ul.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
}
.nav-item,
.nav-inner > li { position: relative; }
.nav-link,
.nav-inner > li > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text);
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}
.nav-link:hover,
.nav-item:hover .nav-link,
.nav-inner > li:hover > a {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav-link svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.nav-item.highlight .nav-link,
.nav-inner > li.highlight > a { color: var(--gold); font-weight: 600; }
.menu-item-has-children > a::after {
  content: '';
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  margin-left: 0.35rem;
  transform: rotate(45deg) translateY(-2px);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  padding: 1.8rem 2rem;
  min-width: 720px;
  display: none;
  z-index: 50;
}
.nav-item:hover .dropdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.dropdown-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--wine-dark);
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dropdown-col ul li { margin-bottom: 0.45rem; }
.dropdown-col ul li a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.dropdown-col ul li a:hover { color: var(--gold); }
.dropdown-col ul li.view-more a { color: var(--gold); font-weight: 600; }

/* WP menu submenus (when a real menu is assigned) */
.nav-inner .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  padding: 0.8rem 1.2rem;
  min-width: 220px;
  display: none;
  margin: 0;
  z-index: 50;
  list-style: none;
}
.nav-inner li:hover > .sub-menu { display: block; }
.nav-inner .sub-menu li { margin: 0; }
.nav-inner .sub-menu li a {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner .sub-menu li:last-child a { border-bottom: none; }
.nav-inner .sub-menu li a:hover { color: var(--gold); }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #2a0f17 0%, #4a1620 50%, #6b1f2c 100%);
  color: #fff;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(191, 147, 44, 0.18), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(191, 147, 44, 0.1), transparent 50%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  width: 100%;
  z-index: 2;
}
.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-weight: 500;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  max-width: 700px;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-subtitle {
  font-size: 1.0625rem;
  font-weight: 300;
  max-width: 540px;
  margin-bottom: 2rem;
  opacity: 0.92;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold);
  color: #fff;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s;
  border: 1px solid var(--gold);
}
.hero-cta:hover {
  background: transparent;
  color: var(--gold-light);
  transform: translateY(-2px);
}
.hero-cta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ============ INFO STRIP ============ */
.info-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.info-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
}
.info-item svg { height: 32px; width: 32px; flex-shrink: 0; }
.info-item-text { font-size: 0.8125rem; line-height: 1.3; }
.info-item-text strong { color: var(--wine-dark); display: block; font-weight: 600; }
.info-item-text a { color: var(--gold); font-size: 0.75rem; text-decoration: underline; }

/* ============ WINE CATEGORIES ============ */
.section { padding: 4rem 1.5rem; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 0.5rem; }
.section-title h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--wine-dark);
  letter-spacing: 0.5px;
}
.section-title p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 0.3rem;
}
.section-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto 3rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem;
}
.category-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  transition: all 0.25s;
}
.category-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(191, 147, 44, 0.12);
}
.category-card .cat-icon {
  width: 64px;
  height: 80px;
  margin: 0 auto 0.8rem;
  background: linear-gradient(180deg, transparent 60%, rgba(191, 147, 44, 0.1));
  border-radius: 50% 50% 8px 8px / 30% 30% 8px 8px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.category-card .cat-icon::before {
  content: '';
  width: 22px;
  height: 56px;
  background: linear-gradient(180deg, var(--wine) 0%, var(--wine-dark) 100%);
  border-radius: 4px 4px 2px 2px;
  position: relative;
  margin-bottom: 4px;
}
.category-card .cat-icon::after {
  content: '';
  position: absolute;
  top: 0;
  width: 14px;
  height: 18px;
  background: var(--gold);
  border-radius: 2px;
}
.category-card .cat-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wine-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ PRODUCT GRID ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.product-image {
  position: relative;
  background: #faf8f5;
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}
.product-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.product-badges img { height: 28px; width: auto; }
.badge-off {
  background: var(--gold);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.product-info {
  padding: 1rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.3rem;
  min-height: 2.6em;
}
.product-name a { color: inherit; }
.product-producer {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.product-price {
  margin-top: auto;
  padding-top: 0.6rem;
}
.price-html,
.price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wine-dark);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.price-html del { font-size: 0.875rem; color: var(--text-light); font-weight: 400; margin-right: 0.4rem; }
.price-html ins { text-decoration: none; }
.price-current .cents { font-size: 0.875rem; }
.price-installment {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.btn-buy {
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.75rem;
  background: var(--wine-dark);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
  transition: all 0.2s;
  text-align: center;
  display: inline-block;
}
.btn-buy:hover { background: var(--gold); }

/* ============ GRAPE VARIETIES ============ */
.grape-section { background: var(--bg-soft); }
.grape-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.grape-card {
  text-align: center;
  padding: 1.8rem 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.25s;
}
.grape-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.grape-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--wine-dark);
  font-style: italic;
}

/* ============ BANNER PROMO ============ */
.promo-banner {
  background: linear-gradient(135deg, #1a0c10 0%, #4a1620 60%, #6b1f2c 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(191, 147, 44, 0.2), transparent 60%);
}
.promo-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}
.promo-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.promo-text h3 em { color: var(--gold-light); font-style: italic; }
.promo-text p { font-size: 1.0625rem; opacity: 0.9; margin-bottom: 2rem; max-width: 480px; }
.promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s;
}
.promo-cta:hover { background: var(--gold-light); transform: translateY(-2px); }
.promo-visual {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.promo-visual img {
  height: 360px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.4));
}

/* ============ NEWSLETTER ============ */
.newsletter {
  background: var(--bg-soft);
  padding: 4rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}
.newsletter-inner { max-width: 640px; margin: 0 auto; }
.newsletter h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--wine-dark);
  margin-bottom: 0.5rem;
}
.newsletter h3 em { color: var(--gold); font-style: italic; }
.newsletter p { color: var(--text-muted); margin-bottom: 2rem; }
.newsletter-form {
  display: flex;
  gap: 0.6rem;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form button {
  background: var(--gold);
  color: #fff;
  padding: 0.95rem 2rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--gold-dark); }
.newsletter small { display: block; margin-top: 1rem; font-size: 0.75rem; color: var(--text-light); }
.newsletter small a { color: var(--gold); text-decoration: underline; }
.nl-msg { margin-top: 0.8rem; font-size: 0.875rem; min-height: 1.2em; }
.nl-msg.ok { color: #2e7d32; }
.nl-msg.err { color: var(--wine); font-weight: 600; }

/* ============ FOOTER ============ */
.site-footer {
  background: #1a0c10;
  color: #d4c4c8;
  padding: 4rem 1.5rem 0;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.8125rem;
  color: #b8a8ac;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-about p { font-size: 0.8125rem; line-height: 1.6; margin-top: 1rem; color: #b8a8ac; }
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.footer-social { display: flex; gap: 0.8rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); }
.footer-social svg { width: 16px; height: 16px; fill: #d4c4c8; }
.footer-social a:hover svg { fill: #fff; }
.footer-contact p { font-size: 0.8125rem; margin-bottom: 0.5rem; color: #b8a8ac; }
.footer-contact p strong { color: #fff; }
.footer-payment { margin-top: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-payment span {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  font-size: 0.6875rem;
  color: #d4c4c8;
  font-weight: 500;
}
.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: #8a7a7e;
}
.footer-bottom a { color: var(--gold-light); }

/* ============ NEWSLETTER MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff;
  max-width: 520px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text);
  z-index: 5;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--gold); color: #fff; }
.modal-image {
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-image img { max-height: 220px; }
.modal-content { padding: 2.5rem 2rem; }
.modal-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--wine-dark);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.modal-content h3 em { color: var(--gold); font-style: italic; }
.modal-content p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.modal-form input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.875rem;
  margin-bottom: 0.6rem;
  outline: none;
  font-family: inherit;
}
.modal-form input:focus { border-color: var(--gold); }
.modal-form button {
  width: 100%;
  background: var(--gold);
  color: #fff;
  padding: 0.9rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.3rem;
  transition: background 0.2s;
}
.modal-form button:hover { background: var(--gold-dark); }
.modal-form small { display: block; margin-top: 0.8rem; font-size: 0.6875rem; color: var(--text-light); text-align: center; }
.modal-form small a { color: var(--gold); text-decoration: underline; }
.modal-form .nl-msg { text-align: center; }

/* ============ BLOG / PAGES / ARCHIVE / SEARCH ============ */
.content-list { max-width: 900px; margin: 0 auto; display: grid; gap: 2rem; }
.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.post-card:hover { border-color: var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.post-card h2 a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--wine-dark);
  line-height: 1.2;
}
.post-meta { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-light); margin-bottom: 0.8rem; }
.post-thumb { margin-bottom: 1rem; }
.post-thumb img { border-radius: 4px; width: 100%; max-height: 320px; object-fit: cover; }
.entry-content p { margin-bottom: 1rem; color: #333; }
.entry-content a { color: var(--gold); text-decoration: underline; }
.read-more { display: inline-block; margin-top: 0.6rem; color: var(--gold); font-weight: 600; font-size: 0.875rem; }
.single-content, .page-content { max-width: 820px; margin: 0 auto; }
.entry-header { margin-bottom: 1.5rem; }
.entry-title { font-family: 'Cormorant Garamond', serif; font-size: 2.25rem; color: var(--wine-dark); font-weight: 600; line-height: 1.15; }
.single-thumb { margin: 1.5rem 0; }
.single-thumb img { border-radius: 4px; width: 100%; max-height: 460px; object-fit: cover; }
.post-tags { margin-top: 1.5rem; font-size: 0.8125rem; color: var(--text-muted); }
.post-tags a { color: var(--gold); }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 2.5rem 0; border-top: 1px solid var(--border); padding-top: 1.5rem; font-size: 0.875rem; }
.post-nav a { color: var(--wine-dark); font-weight: 600; }
.post-pagination { text-align: center; margin: 2rem 0; }
.post-pagination a, .post-pagination span {
  display: inline-block; min-width: 40px; height: 40px; line-height: 40px;
  border: 1px solid var(--border); border-radius: 2px; margin: 0 0.2rem; font-size: 0.875rem; color: var(--text-muted);
}
.post-pagination .current, .post-pagination a:hover { background: var(--wine-dark); color: #fff; border-color: var(--wine-dark); }
.comments-area { margin-top: 2.5rem; }
.comments-area h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--wine-dark); margin-bottom: 1rem; }
.comment-list { list-style: none; display: grid; gap: 1rem; }
.comment { border: 1px solid var(--border); border-radius: 4px; padding: 1rem; }
.comment-meta { font-size: 0.75rem; color: var(--text-light); margin-bottom: 0.4rem; }
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.search-section-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--wine-dark); margin: 2.5rem 0 0.5rem; }
.not-found { text-align: center; padding: 4rem 1.5rem; }
.not-found .code { font-family: 'Cormorant Garamond', serif; font-size: 6rem; color: var(--gold); font-weight: 600; }
.not-found h1 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--wine-dark); margin-bottom: 1rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .header-inner { grid-template-columns: 160px 1fr auto; gap: 1rem; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .grape-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .promo-inner { grid-template-columns: 1fr; text-align: center; }
  .search-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-visual img { height: 280px; }
}
@media (max-width: 768px) {
  .utility-promos { display: none; }
  .utility-account { font-size: 0.6875rem; }
  .header-inner { grid-template-columns: 1fr auto; }
  .search-box { display: none; }
  .nav-inner, .main-nav ul.nav-inner { overflow-x: auto; justify-content: flex-start; padding: 0 1rem; }
  .nav-link, .nav-inner > li > a { padding: 0.9rem 0.8rem; font-size: 0.75rem; }
  .dropdown { display: none !important; }
  .info-strip-inner { grid-template-columns: 1fr; gap: 1rem; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .search-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .grape-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 2.5rem 1rem; }
  .section-title h2 { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal { grid-template-columns: 1fr; }
  .modal-image { display: none; }
  .promo-text h3 { font-size: 2rem; }
}

/* WP core helpers */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--wine-dark); color: #fff; padding: 0.6rem 1rem; }
.skip-link:focus { left: 0; color: #fff; }
