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

:root {
  --radius: 0.25rem;
  --background: #ffffff;
  --foreground: #1f1416;
  --card: #ffffff;
  --card-foreground: #1f1416;
  --primary: #4a121b;
  --primary-hover: #380d14;
  --primary-foreground: #fdfaf5;
  --secondary: #f5efe8;
  --secondary-foreground: #2e1619;
  --muted: #f4f0ea;
  --muted-foreground: #6e5d5f;
  --accent: #c9a45c;
  --accent-foreground: #1f1416;
  --destructive: #c92a2a;
  --border: #e6dfd7;
  --gold: #d6b36a;
  --gold-dark: #b69146;
  --wine: #4a121b;
  --cream: #faf7f2;
  --buy: #1d8348;
  --buy-hover: #166938;
  --buy-foreground: #ffffff;
  --sale: #c92a2a;
  --section-title: #1f1416;
  --product-name: #1f1416;
  --product-price: #4a121b;
  --font-sans: 'Jost', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
  font-family: var(--font-sans);
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s ease-out, opacity 0.16s ease-out;
}

button, input, select, textarea {
  font-family: inherit;
  transition: all 0.16s ease-out;
}

button {
  cursor: pointer;
}

.container-gv {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-gv {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Top Promo Bar (Galvão Vinhos exact style) */
.top-bar {
  min-height: 2.15rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 1rem;
  text-align: center;
}

.top-bar strong {
  color: var(--gold);
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--background);
  box-shadow: 0 3px 14px rgba(34, 16, 18, 0.06);
  border-bottom: 1px solid var(--border);
}

.header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.5rem;
  gap: 0.75rem;
}

@media (min-width: 1280px) {
  .header-main {
    min-height: 5.25rem;
  }
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

@media (min-width: 1280px) {
  .desktop-nav {
    display: flex;
  }
  .mobile-only-btn {
    display: none !important;
  }
}

.nav-dropdown {
  position: relative;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.65rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--foreground);
  background: transparent;
  border: none;
  white-space: nowrap;
}

.nav-btn:hover,
.nav-link-highlight:hover {
  color: var(--primary);
}

.nav-link-highlight {
  padding: 0.75rem 0.65rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(31, 20, 22, 0.12);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.16s ease-out;
  z-index: 50;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--foreground);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background-color: var(--cream);
  color: var(--primary);
}

.dropdown-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  background: var(--primary);
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* Brand Logo Center */
.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.25rem 0.5rem;
}

.brand-logo-crest {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--primary);
  line-height: 1;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .brand-logo-title {
    font-size: 1.85rem;
  }
}

.brand-logo-sub {
  font-size: 8.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold-dark);
  margin-top: 0.2rem;
}

/* Header Right Actions */
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--foreground);
  background: transparent;
  border: none;
}

.icon-btn:hover {
  color: var(--primary);
}

.badge-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* Search Bar Drawer */
.search-bar-panel {
  border-top: 1px solid var(--border);
  background-color: var(--cream);
  padding: 0.75rem 0;
  display: none;
}

.search-bar-panel.open {
  display: block;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.5rem 0.25rem;
  font-size: 0.875rem;
  background: transparent;
}

/* Benefits Bar (Galvão Vinhos exact 4-col bar) */
.benefits-section {
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
}

.benefits-list {
  list-style: none;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.9rem 0;
  gap: 0;
}

.benefits-list::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1280px) {
  .benefits-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  width: 82%;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 0 1.25rem;
}

.benefit-item:first-child {
  padding-left: 0;
}

.benefit-item:last-child {
  border-right: none;
}

@media (min-width: 640px) {
  .benefit-item {
    width: 50%;
  }
}

@media (min-width: 1280px) {
  .benefit-item {
    width: auto;
  }
}

.benefit-icon {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--primary);
  flex-shrink: 0;
}

.benefit-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.25;
}

.benefit-sub {
  font-size: 0.72rem;
  color: var(--muted-foreground);
  line-height: 1.25;
}

/* Hero Banner (Luxury Natal & Kits 99,90) */
.hero-banner {
  position: relative;
  width: 100%;
  background: radial-gradient(circle at 75% 35%, #5c1622 0%, #24090d 55%, #0e0507 100%);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(214, 179, 106, 0.25);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(214, 179, 106, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    padding: 3.75rem 0 4.25rem;
    gap: 3rem;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(214, 179, 106, 0.15);
  border: 1px solid rgba(214, 179, 106, 0.45);
  color: var(--gold);
  padding: 0.35rem 0.85rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.2vw, 3.65rem);
  font-weight: 700;
  line-height: 1.06;
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--gold);
  font-style: italic;
}

.hero-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.hero-price-box {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--gold);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(6px);
}

.hero-price-old {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: line-through;
  display: block;
}

.hero-price-now {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-price-pix {
  font-size: 0.78rem;
  color: #6ee7b7;
  font-weight: 600;
  display: block;
  margin-top: 0.2rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--gold);
  color: #140d0e;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.95rem 1.75rem;
  border: none;
}

.btn-gold:hover {
  background-color: #e4c580;
  transform: translateY(-1px);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.95rem 1.4rem;
}

.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Hero Visual Showcase */
.hero-showcase {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(214, 179, 106, 0.35);
  padding: 1.5rem;
  border-radius: 4px;
}

.hero-badge-floating {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--sale);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.8rem;
  box-shadow: 0 6px 16px rgba(201, 42, 42, 0.4);
  z-index: 5;
}

.hero-bottles-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  background: #ffffff;
  padding: 1.1rem 0.75rem;
  border-radius: 2px;
  align-items: center;
}

.hero-bottle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-bottle-card img {
  width: 100%;
  height: 115px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

@media (min-width: 640px) {
  .hero-bottle-card img {
    height: 145px;
  }
}

.hero-bottle-card:hover img {
  transform: scale(1.06);
}

.hero-bottle-label {
  margin-top: 0.4rem;
  font-size: 10px;
  font-weight: 700;
  color: var(--foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.hero-bottle-brand {
  font-size: 9px;
  color: var(--muted-foreground);
}

.hero-showcase-footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Circular Category & Origin Section (Galvão Vinhos bg-cream/40) */
.cream-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--cream);
  padding: 2.25rem 0;
}

@media (min-width: 1024px) {
  .cream-band {
    padding: 3rem 0;
  }
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--section-title);
  margin-top: 0.2rem;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.circles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .circles-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .circles-row {
    grid-template-columns: repeat(7, 1fr);
  }
}

.circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
}

.circle-thumb {
  position: relative;
  width: 100%;
  max-width: 6.75rem;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0.65rem;
  transition: all 0.25s ease;
}

@media (min-width: 768px) {
  .circle-thumb {
    max-width: 7.75rem;
  }
}

.circle-card:hover .circle-thumb,
.circle-card.active .circle-thumb {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(74, 18, 27, 0.15);
  transform: translateY(-2px);
}

.circle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.circle-card:hover .circle-thumb img {
  transform: scale(1.06);
}

.circle-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--foreground);
  line-height: 1.25;
}

/* Product Showcase Sections */
.product-section {
  padding: 2.5rem 0;
}

@media (min-width: 1024px) {
  .product-section {
    padding: 3.25rem 0;
  }
}

.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  flex-shrink: 0;
}

.view-all-link:hover {
  opacity: 0.75;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

/* Galvão Vinhos Exact Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  background-color: var(--card);
  text-align: center;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  border-color: rgba(74, 18, 27, 0.35);
  box-shadow: 0 10px 26px rgba(31, 20, 22, 0.07);
}

.product-card-media {
  position: relative;
  aspect-ratio: 3 / 3.6;
  overflow: hidden;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(230, 223, 215, 0.5);
  cursor: pointer;
}

.product-card-media > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-media > img {
  transform: scale(1.03);
}

/* Multi-Bottle Kit Collage inside Product Card */
.kit-collage {
  width: 100%;
  height: 100%;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 1.25rem 0.65rem 0.85rem;
  gap: 0.25rem;
  background: radial-gradient(circle at 50% 45%, #fdfbf7 0%, #f5efe6 100%);
}

.kit-collage.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.kit-collage.cols-4 {
  grid-template-columns: repeat(2, 1fr);
}

.kit-collage img {
  width: 100%;
  max-height: 110px;
  object-fit: contain;
  background: #fff;
  padding: 0.25rem;
  border-radius: 2px;
  border: 1px solid rgba(214, 179, 106, 0.3);
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
  transition: transform 0.3s ease;
}

.kit-collage.cols-3 img {
  max-height: 145px;
}

.product-card:hover .kit-collage img {
  transform: translateY(-2px);
}

.badge-top-left {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.tag-discount {
  background-color: var(--sale);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
}

.tag-kit {
  background-color: var(--primary);
  color: var(--gold);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
}

.fav-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 10;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--foreground);
}

.fav-btn:hover,
.fav-btn.active {
  color: var(--sale);
  border-color: var(--sale);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 0.9rem 1rem;
}

.product-origin-pill {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.product-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--product-name);
  min-height: 2.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.product-card-title:hover {
  color: var(--primary);
}

.product-notes {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted-foreground);
  min-height: 2rem;
}

.product-price-wrap {
  margin-top: auto;
  width: 100%;
  padding-top: 0.35rem;
}

.price-old {
  font-size: 11px;
  font-weight: 500;
  color: var(--sale);
  text-decoration: line-through;
}

.price-current {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--product-price);
}

@media (min-width: 640px) {
  .price-current {
    font-size: 1.65rem;
  }
}

.price-installments {
  margin-top: 0.15rem;
  font-size: 11px;
  color: var(--muted-foreground);
}

.price-pix-tag {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--buy);
  background: rgba(29, 131, 72, 0.08);
  padding: 0.15rem 0.45rem;
}

/* Galvão Vinhos Exact Outline Buy Button */
.btn-card-buy {
  margin-top: 0.55rem;
  min-height: 2.55rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--primary);
  background-color: transparent;
  padding: 0.5rem 0.75rem;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.btn-card-buy:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Custom Kit Builder Banner ("Monte Seu Kit de 3 ou 4 Perfumes por R$ 99,90") */
.kit-builder-section {
  background: linear-gradient(135deg, #2b0b10 0%, #4a121b 100%);
  color: #ffffff;
  padding: 3rem 0;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.kit-builder-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(214, 179, 106, 0.35);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .kit-builder-box {
    padding: 2.25rem;
  }
}

.builder-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .builder-slots {
    grid-template-columns: repeat(4, 1fr);
  }
}

.builder-slot {
  background: rgba(255, 255, 255, 0.96);
  color: var(--foreground);
  border: 2px dashed var(--gold);
  min-height: 150px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.builder-slot.filled {
  border-style: solid;
  border-color: var(--gold);
}

.builder-slot img {
  height: 75px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.35rem;
}

.slot-remove {
  position: absolute;
  top: 4px;
  right: 6px;
  background: var(--sale);
  color: #fff;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.builder-QuickPick {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.quick-pick-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.quick-pick-pill:hover {
  border-color: var(--gold);
  background: var(--cream);
}

.quick-pick-pill img {
  width: 26px;
  height: 32px;
  object-fit: contain;
}

/* Footer (Galvão Vinhos exact #090909 dark footer + primary newsletter box) */
.site-footer {
  margin-top: 4rem;
  background-color: #090909;
  color: #ffffff;
}

.footer-newsletter {
  background-color: var(--primary);
  padding: 1.5rem 1.25rem;
  transform: translateY(-1.5rem);
  border: 1px solid rgba(214, 179, 106, 0.25);
}

@media (min-width: 640px) {
  .footer-newsletter {
    padding: 1.75rem 2rem;
  }
}

.newsletter-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .newsletter-grid {
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.55fr);
  }
}

.newsletter-form {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .newsletter-form {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .newsletter-form {
    grid-template-columns: 1fr 1fr 1fr auto;
  }
}

.newsletter-input {
  min-height: 2.75rem;
  width: 100%;
  border: none;
  background: #ffffff;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
}

.newsletter-btn {
  min-height: 2.75rem;
  background-color: var(--gold);
  color: #111111;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.6rem 1.75rem;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.newsletter-btn:hover {
  background-color: #e3c47f;
}

.footer-columns {
  display: grid;
  gap: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2.5rem 0 3.5rem;
}

@media (min-width: 640px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-columns {
    grid-template-columns: 1.2fr 1fr 0.8fr 1.2fr;
  }
}

.footer-col-title {
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-seals {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.75rem 0;
  text-align: center;
}

.seal-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.45rem 0.9rem;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Slide-Over Cart Drawer */
.backdrop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 8, 10, 0.6);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s ease;
}

.backdrop-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 430px;
  background: var(--card);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.18);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
}

.cart-free-shipping-bar {
  background: #fdf6e9;
  border-bottom: 1px solid #f0dfc0;
  padding: 0.65rem 1.25rem;
  font-size: 12px;
  color: var(--foreground);
}

.progress-track {
  height: 6px;
  background: #e6dfd7;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.progress-fill {
  height: 100%;
  background: var(--buy);
  transition: width 0.3s ease;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 68px;
  height: 78px;
  object-fit: contain;
  border: 1px solid var(--border);
  padding: 0.25rem;
  background: #fff;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  margin-top: 0.4rem;
}

.qty-btn {
  width: 26px;
  height: 26px;
  background: var(--cream);
  border: none;
  font-weight: 700;
  font-size: 13px;
}

.qty-val {
  width: 30px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

.cart-footer {
  border-top: 1px solid var(--border);
  padding: 1.15rem 1.25rem;
  background: var(--cream);
}

.btn-checkout-main {
  width: 100%;
  background-color: var(--buy);
  color: var(--buy-foreground);
  border: none;
  padding: 0.95rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-checkout-main:hover {
  background-color: var(--buy-hover);
}

/* Product Detail Modal */
.modal-container {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 8, 10, 0.65);
}

.modal-container.open {
  display: flex;
}

.product-modal-card {
  background: var(--card);
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .product-modal-card {
    grid-template-columns: 1fr 1.1fr;
  }
}

/* Full 3-Step Checkout View (Galvão Vinhos exact replica) */
.checkout-view {
  display: none;
  min-height: 100vh;
  background-color: #faf7f2;
}

.checkout-view.active {
  display: block;
}

.store-view.hidden {
  display: none;
}

.checkout-topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.checkout-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.stepper-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  list-style: none;
}

.stepper-item {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.65rem;
}

.stepper-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
}

.stepper-item.active .stepper-circle {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(74, 18, 27, 0.16);
}

.stepper-item.done .stepper-circle {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

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

.stepper-item.done .stepper-line {
  background: var(--primary);
}

.checkout-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .checkout-grid {
    grid-template-columns: minmax(0, 1fr) 400px;
  }
}

.checkout-step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.checkout-step-card.active {
  border-color: rgba(74, 18, 27, 0.35);
  box-shadow: 0 4px 16px rgba(31, 20, 22, 0.05);
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.35rem;
  background: rgba(244, 240, 234, 0.45);
  border-bottom: 1px solid transparent;
}

.checkout-step-card.active .step-card-header {
  border-bottom-color: var(--border);
}

.step-card-body {
  padding: 1.35rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 0.68rem 0.85rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 18, 27, 0.12);
}

.payment-option-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 0.75rem;
  background: #ffffff;
}

.payment-option-card.selected {
  border-color: var(--primary);
  background: rgba(74, 18, 27, 0.03);
  box-shadow: 0 0 0 1px var(--primary);
}

.summary-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.35rem;
  position: sticky;
  top: 1.5rem;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast-msg {
  background: #140d0e;
  color: #ffffff;
  border-left: 4px solid var(--gold);
  padding: 0.85rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideInToast 0.2s ease-out;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
