﻿/* ============================================================
   DAF Boutique — Estilos globales
   Paleta: crema #f9f0eb | blanco #ffffff | dorado #c39b55
   ============================================================ */

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

a {
  color: inherit;
  text-decoration: none;
}

:root {
  --gold:       #c39b55;
  --gold-dark:  #a8823e;
  --cream:      #f9f0eb;
  --cream-deep: #f0e3d8;
  --white:      #ffffff;
  --ink:        #2a2218;
  --ink-light:  #5a4e42;
  --font-main:  'Georgia', 'Times New Roman', serif;
  --font-ui:    'Trebuchet MS', 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--ink);
}

/* ============================================================
   BARRA SUPERIOR
   ============================================================ */
.top-bar {
  background-color: var(--gold);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.top-bar i {
  font-size: 1rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background-color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(195, 155, 85, 0.12);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* --- Logo --- */
.nav-logo img {
  height: 62px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* --- Enlaces --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.22s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--gold);
}

.nav-link.active {
  color: var(--gold);
}

/* --- Dropdown Catálogo --- */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chevron-icon {
  font-size: 0.65rem;
  transition: transform 0.22s ease;
}

.nav-dropdown:hover .chevron-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  background-color: var(--white);
  border-top: 2px solid var(--gold);
  box-shadow: 0 8px 30px rgba(42, 34, 24, 0.1);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
}

/* Puente invisible que cubre el hueco entre el enlace y el menú */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.dropdown-menu a {
  display: block;
  padding: 12px 22px;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--cream-deep);
  transition: color 0.18s, background-color 0.18s;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  color: var(--gold);
  background-color: var(--cream);
}

.dropdown-ver-todo {
  background-color: var(--gold) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-align: center !important;
  justify-content: center;
}

.dropdown-ver-todo:hover {
  background-color: var(--gold-dark) !important;
  color: var(--white) !important;
}

.mobile-cat-ver-todo {
  color: var(--gold) !important;
  font-weight: 700 !important;
  border-top: 1px solid #ddd0c6;
}

/* --- Iconos derecha --- */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.1rem;
  padding: 6px;
  border-radius: 50%;
  position: relative;
  transition: color 0.22s ease, background-color 0.22s ease;
  line-height: 1;
}

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

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--gold);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-count[data-empty="true"] {
  display: none;
}

/* --- Hamburguesa (oculto en desktop) --- */
.hamburger {
  display: none;
}

/* ============================================================
   BARRA DE BÚSQUEDA EXPANDIBLE
   ============================================================ */
.search-bar {
  background-color: var(--cream-deep);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.search-bar.open {
  max-height: 70px;
}

.search-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-bar-inner input {
  flex: 1;
  border: none;
  border-bottom: 1.5px solid var(--gold);
  background: transparent;
  font-family: var(--font-main);
  font-size: 0.92rem;
  color: var(--ink);
  padding: 6px 4px;
  outline: none;
}

.search-bar-inner input::placeholder {
  color: var(--ink-light);
  opacity: 0.7;
}

.search-submit,
.search-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 1rem;
  padding: 4px 8px;
  transition: color 0.2s;
}

.search-submit:hover,
.search-close:hover {
  color: var(--gold);
}

/* ============================================================
   MENÚ MÓVIL
   ============================================================ */
.mobile-menu {
  display: flex;
  flex-direction: column;
  background-color: var(--cream);
  border-top: 1px solid var(--cream-deep);
  padding: 12px 0;
  box-shadow: 0 6px 20px rgba(42, 34, 24, 0.15);
  position: fixed;
  top: 104px; /* fallback, sobreescrito por JS */
  left: 0;
  right: 0;
  max-height: calc(100svh - 104px); /* fallback, sobreescrito por JS */
  overflow-y: auto;
  z-index: 999;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-menu > a,
.mobile-cat-toggle {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 28px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s, background-color 0.2s;
  flex-shrink: 0;
}

.mobile-menu > .mobile-dropdown {
  flex-shrink: 0;
}

.mobile-menu > a:hover,
.mobile-cat-toggle:hover {
  color: var(--gold);
  background-color: var(--cream-deep);
}

.mobile-cat-menu {
  display: none;
  flex-direction: column;
  background-color: var(--cream-deep);
}

.mobile-cat-menu.open {
  display: flex;
}

.mobile-cat-menu a {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  text-decoration: none;
  padding: 11px 44px;
  transition: color 0.2s, background-color 0.2s;
}

.mobile-cat-menu a:hover {
  color: var(--gold);
  background-color: #e8d9ce;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  /* Ocultar menú de enlaces */
  .nav-links {
    display: none;
  }

  /* Hamburguesa visible a la izquierda */
  .hamburger {
    display: flex;
    flex-shrink: 0;
  }

  /* Contenedor: hamburguesa izq | logo centro absoluto | iconos der */
  .nav-container {
    height: 68px;
    padding: 0 20px;
    position: relative;
    justify-content: space-between;
  }

  /* Logo centrado absolutamente */
  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-logo img {
    height: 52px;
  }
}

@media (max-width: 480px) {
  .top-bar {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }
}

/* ============================================================
   DIVISOR CON PATRÓN
   ============================================================ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 48px;
  background-color: var(--white);
}

.divider-line {
  flex: 1;
  height: 1px;
  background-color: #ddd0c6;
}

.divider-pattern {
  height: 36px;
  width: auto;
  opacity: 0.65;
  flex-shrink: 0;
}

/* ============================================================
   TÍTULO DE SECCIÓN
   ============================================================ */
.section-title-wrap {
  text-align: center;
  padding: 28px 0 4px;
  background-color: var(--white);
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.04em;
}

/* ============================================================
   CATEGORÍAS
   ============================================================ */
.categories {
  background-color: var(--white);
  padding: 12px 48px 56px;
}

.categories-track {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
}

.category-card {
  flex-shrink: 0;
  text-align: center;
}

.category-card a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.category-img-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ecddd3;
  transition: border-color 0.25s ease, transform 0.25s ease;
  background-color: var(--cream);
}

.category-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-card:hover .category-img-wrap {
  border-color: var(--gold);
}

.category-name {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  transition: color 0.22s ease;
}

.category-card:hover .category-name {
  color: var(--gold);
}

/* Carrusel móvil */
@media (max-width: 900px) {
  .categories {
    padding: 12px 0 44px;
  }

  .categories-track {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 24px 16px;
    gap: 20px;
  }

  .categories-track::-webkit-scrollbar {
    display: none;
  }

  .category-card {
    scroll-snap-align: center;
  }

  .category-img-wrap {
    width: 110px;
    height: 110px;
  }

  .category-name {
    font-size: 0.64rem;
  }
}

/* ============================================================
   BANDA DE BENEFICIOS
   ============================================================ */
.benefits {
  background-color: var(--white);
  padding: 36px 32px 8px;
}

.benefits-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.benefit-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 32px;
}

.benefit-icon {
  font-size: 1.6rem;
  color: var(--gold);
  flex-shrink: 0;
}

.benefit-text {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  line-height: 1.7;
}

.benefit-divider {
  width: 1px;
  height: 40px;
  background-color: #ddd0c6;
  flex-shrink: 0;
}

/* ============================================================
   BANDA DE VALORES
   ============================================================ */
.values-band {
  background-color: #f5ece3;
  padding: 36px 32px;
}

.values-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
}

.value-icon {
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}

.value-text {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  line-height: 1.7;
}

@media (max-width: 700px) {
  .values-band {
    padding: 28px 20px;
  }

  .values-container {
    flex-wrap: wrap;
    gap: 20px;
  }

  .value-item {
    flex: 0 0 45%;
    padding: 0 12px;
    justify-content: flex-start;
  }

  .values-container .benefit-divider {
    display: none;
  }
}

/* Beneficios responsive — ticker horizontal móvil (animado por JS) */
@media (max-width: 700px) {
  .benefits {
    padding: 36px 0 20px;
    overflow: hidden;
  }

  .benefits-container {
    display: flex;
    flex-direction: row;
    width: max-content;
    gap: 0;
    will-change: transform;
  }

  .benefit-item {
    flex-shrink: 0;
    padding: 0 24px;
    white-space: nowrap;
    justify-content: center;
    width: auto;
  }

  .benefit-divider {
    display: none;
  }

  .benefit-text br {
    display: none;
  }
}

/* ============================================================
   TARJETAS PROMOCIONALES
   ============================================================ */
.promo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 40px 180px;
  background-color: var(--white);
}

.promo-card {
  display: flex;
}

.promo-text-side {
  flex: 0.85;
  background-color: #f5ece3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  padding: 20px 44px;
}

.promo-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1.2;
  text-transform: uppercase;
}

.promo-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.promo-line {
  flex: 1;
  height: 1px;
  background-color: var(--gold);
  opacity: 0.5;
}

.promo-pattern {
  height: 22px;
  width: auto;
  opacity: 0.7;
  flex-shrink: 0;
}

.promo-subtitle {
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.6;
}

.btn-outline-gold {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  background-color: transparent;
  border: 1.5px solid var(--gold);
  padding: 11px 26px;
  text-decoration: none;
  transition: background-color 0.22s ease, color 0.22s ease;
  margin-top: 4px;
}

.btn-outline-gold:hover {
  background-color: var(--gold);
  color: var(--white);
}

.promo-img-side {
  flex: 1.4;
  overflow: hidden;
  min-height: 200px;
}

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

.promo-card:hover .promo-img-side img {
  transform: scale(1.03);
}

/* Promo cards responsive */
@media (max-width: 900px) {
  .promo-cards {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 20px;
  }

  .promo-card {
    flex-direction: column-reverse;
  }

  .promo-img-side {
    min-height: 240px;
  }

  .promo-text-side {
    padding: 36px 28px;
    align-items: center;
    text-align: center;
  }

  .promo-divider {
    max-width: 280px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 52px 32px 36px;
}

.footer-logo {
  height: 140px;
  width: auto;
  object-fit: contain;
}

.footer-contact {
  display: flex;
  align-items: center;
  border: 1px solid #c8b89a;
  border-radius: 50px;
  padding: 18px 48px;
  gap: 0;
}

.footer-link {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 52px;
  transition: color 0.22s ease;
}

.footer-link i {
  font-size: 1.05rem;
  color: var(--gold);
}

.footer-link:hover {
  color: var(--gold);
}

.footer-contact-divider {
  width: 1px;
  height: 28px;
  background-color: #c8b89a;
  flex-shrink: 0;
}

.footer-legal {
  background-color: #2a2218;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-copy {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}

.legal-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-links a:hover {
  color: var(--gold);
}

.legal-links span {
  opacity: 0.4;
}

.legal-dev {
  font-weight: 400;
  color: #ffffff;
}

.legal-dev a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.legal-dev a:hover {
  color: #e0b96a;
}

@media (max-width: 700px) {
  .footer-legal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 24px;
    gap: 10px;
  }

  .legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .footer-contact {
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 32px;
  }

  .footer-link {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--ink-light);
  }

  .footer-link i {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--gold);
    transition: background-color 0.22s ease, color 0.22s ease;
  }

  .footer-link:hover i {
    background-color: var(--gold);
    color: var(--white);
  }
}

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero {
  width: 100%;
  min-height: calc(100vh - 36px - 80px);
  background-image: url('media/inicio/fondo.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 60px 7vw;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 520px;
}

.hero-welcome {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.hero-logo {
  width: 240px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.btn-primary {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  background-color: var(--gold);
  border: 2px solid var(--gold);
  padding: 13px 28px;
  text-decoration: none;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.btn-primary:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn-whatsapp {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  background-color: transparent;
  border: 2px solid var(--gold);
  padding: 13px 28px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.btn-whatsapp i {
  font-size: 1rem;
}

.btn-whatsapp:hover {
  background-color: var(--gold);
  color: var(--white);
}

/* --- Hero responsive --- */
@media (max-width: 700px) {
  .hero {
    padding: 40px 24px 60px;
    min-height: calc(100vh - 36px - 68px);
    align-items: flex-end;
    background-position: 40% center;
  }

  .hero-logo {
    width: 175px;
  }

  .hero-tagline {
    font-size: 1.5rem;
  }

  .btn-primary,
  .btn-whatsapp {
    padding: 12px 22px;
    font-size: 0.7rem;
  }
}

/* ============================================================
   CARRITO — overlay y drawer deslizante desde la derecha
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  background-color: var(--white);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

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

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #ecddd3;
  flex-shrink: 0;
}

.cart-drawer-title {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink);
}

.cart-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink-light);
  padding: 4px 8px;
  transition: color 0.2s;
  line-height: 1;
}

.cart-drawer-close:hover {
  color: var(--gold);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  gap: 12px;
}

.cart-empty i {
  font-size: 2.4rem;
  color: #ddd0c6;
}

.cart-empty p {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-light);
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f0e8e2;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 70px;
  height: 93px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--cream);
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-item-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-light);
}

.cart-item-price {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: auto;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #c0b8b0;
  font-size: 0.8rem;
  padding: 2px 4px;
  transition: color 0.2s;
  line-height: 1;
}

.cart-item-remove:hover {
  color: #b94040;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid #ddd0c6;
  border-radius: 4px;
  overflow: hidden;
}

.cart-item-qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 9px;
  font-size: 0.6rem;
  color: var(--ink);
  transition: background-color 0.2s, color 0.2s;
  line-height: 1;
}

.cart-item-qty-btn:hover {
  background-color: var(--gold);
  color: var(--white);
}

.cart-item-qty-val {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 26px;
  text-align: center;
  border-left: 1px solid #ddd0c6;
  border-right: 1px solid #ddd0c6;
  padding: 5px 2px;
}

.cart-drawer-footer {
  border-top: 1px solid #ecddd3;
  padding: 18px 24px 24px;
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-total-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-light);
}

.cart-total-val {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.cart-btn-pagar {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  background-color: var(--gold);
  color: var(--white);
  border: none;
  padding: 15px;
  cursor: pointer;
  transition: background-color 0.22s;
}

.cart-btn-pagar:hover {
  background-color: var(--gold-dark);
}

.cart-count[data-empty="true"] {
  display: none;
}

/* ============================================================
   SEARCH SUGGESTIONS DROPDOWN
   ============================================================ */
.search-suggestions {
  display: none;
  position: fixed;
  z-index: 9000;
  background-color: var(--white);
  border: 1px solid #ecddd3;
  border-top: 2px solid var(--gold);
  box-shadow: 0 8px 32px rgba(42, 34, 24, 0.13);
  max-height: 380px;
  overflow-y: auto;
}

.search-suggestions.open {
  display: block;
}

.search-sugg-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid #f0e8e0;
  transition: background-color 0.15s;
}

.search-sugg-item:hover {
  background-color: var(--cream);
}

.search-sugg-img {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  overflow: hidden;
  background-color: var(--cream-deep);
}

.search-sugg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-sugg-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.search-sugg-name {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-sugg-name mark {
  background: none;
  color: var(--gold);
  font-weight: 700;
}

.search-sugg-price {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.search-sugg-empty {
  padding: 20px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--ink-light);
  text-align: center;
}

.search-sugg-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-decoration: none;
  border-top: 1px solid #ecddd3;
  background-color: var(--cream);
  transition: background-color 0.15s;
}

.search-sugg-all:hover {
  background-color: #ecddd3;
}
