/* ============================================
   COCCOLINO: MOM & BABY - Custom Branding
   ============================================ */

:root {
  /* Coccolino Brand Colors - Warm & Soft */
  --primary-color: #735236;         /* Marrón cálido */
  --primary-hover: #5c4229;
  --primary-light: #A6785D;         /* Marrón medio */
  --primary-glow: rgba(115, 82, 54, 0.25);
  --primary-gradient: linear-gradient(135deg, #735236 0%, #A6785D 50%, #F2CEAE 100%);

  /* Secondary / Accent - Pink Tones */
  --secondary-color: #F2C1B6;       /* Rosa suave */
  --secondary-hover: #e5aa9e;
  --accent-color: #735236;          /* Marrón como acento */
  --accent-warm: #F2C1B6;           /* Rosa suave */

  /* Surfaces - Cream & Warm Tones */
  --bg-color: #F2EEEB;              /* Crema suave */
  --bg-dark: #3d2b1f;               /* Marrón oscuro para dark sections */
  --bg-darker: #2a1f16;
  --card-bg: #ffffff;               /* Blanco para tarjetas */
  --card-bg-hover: #fefefe;
  --surface-elevated: rgba(255, 255, 255, 0.95);
  --surface-warm: #F2CEAE;          /* Beige claro */

  /* Text - Warm Browns */
  --text-color: #3d2b1f;            /* Marrón oscuro para texto principal */
  --text-secondary: #735236;        /* Marrón medio */
  --text-muted: #A6785D;            /* Marrón claro */
  --text-on-dark: #F2EEEB;          /* Crema en fondos oscuros */
  --text-on-primary: #ffffff;
  --text-primary: var(--text-color);

  /* Borders & Dividers - Soft Beiges */
  --border-color: #F2CEAE;          /* Beige claro */
  --border-light: #F2EEEB;
  --divider: rgba(115, 82, 54, 0.1);
}

/* =========================
   HEADER (AUTO HEIGHT) + LOGO
   Desktop: logo centrado
   Tablet/Móvil: logo izquierda
   ========================= */

/* Header Overrides - Warm Theme */
.main-header {
  background: rgba(61, 43, 31, 0.95);
  border-bottom: 1px solid rgba(242, 206, 174, 0.2);
  height: auto !important; /* por si en el theme base hay height fijo */
}

.main-header.scrolled {
  background: rgba(61, 43, 31, 0.98);
}

/* 3 columnas: nav | logo | acciones (DESKTOP) */
.main-header .container{
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;

  /* Auto-height (crece con el logo) */
  min-height: unset !important;
  height: auto !important;
  padding: 14px 0;
}

/* Alineaciones por columna */
.main-nav{ justify-self: start; }
.logo{ justify-self: center; display:flex; align-items:center; justify-content:center; padding: 4px 0; }
.header-actions{ justify-self: end; }

/* Logo text fallback */
.logo h1,
.logo h1 a {
  color: #F2CEAE !important;
}

/* Logo imagen (controlado) */
.logo img{
  display: block;
  width: auto !important;
  height: auto !important;
  max-height: 120px !important; /* Desktop */
}

/* Tablet */
@media (max-width: 1024px){
  .logo img{
    max-height: 120px !important;
  }
}

/* Móvil */
@media (max-width: 768px){
  .logo img{
    max-height: 80px !important;
  }
}


/* =========================
   NAVIGATION LINKS
   ========================= */
.main-nav a {
  color: #F2CEAE !important;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff !important;
}

.main-nav a::after {
  background: #F2C1B6; /* Rosa suave para underline */
}

/* =========================
   BUTTONS
   ========================= */
.btn-primary {
  background: #735236;
  color: #ffffff;
}

.btn-primary:hover {
  background: #5c4229;
}

.btn-secondary {
  background: linear-gradient(135deg, #F2C1B6, #e5aa9e);
  color: #3d2b1f;
}

.btn-secondary:hover {
  box-shadow: 0 8px 25px rgba(242, 193, 182, 0.4);
}

/* =========================
   HERO
   ========================= */
.hero-section {
  background: linear-gradient(135deg, #F2EEEB 0%, #F2CEAE 50%, #F2EEEB 100%);
  color: #3d2b1f;
}

.hero-section h1,
.hero-section .hero-title {
  color: #735236;
}

.hero-section p,
.hero-section .hero-subtitle {
  color: #3d2b1f;
}

/* =========================
   PRODUCT CARDS
   ========================= */
.product-card {
  border: 1px solid #F2CEAE;
}

.product-card:hover {
  border-color: #F2C1B6;
  box-shadow: 0 12px 24px rgba(115, 82, 54, 0.15);
}

.product-card .product-price {
  color: #735236;
}

/* =========================
   FOOTER
   ========================= */
.main-footer {
  background: #3d2b1f;
  color: #F2EEEB;
}

.main-footer h3,
.main-footer h4 {
  color: #F2CEAE;
}

/* =========================
   MISC
   ========================= */
.cart-count {
  background: #F2C1B6;
  border-color: #3d2b1f;
  color: #3d2b1f;
}

a:hover {
  color: #735236;
}

.discount-badge {
  background: #F2C1B6;
  color: #3d2b1f;
}

.search-overlay {
  background: rgba(61, 43, 31, 0.98);
}

.toast-success,
.alert-success {
  background: #F2C1B6;
  color: #3d2b1f;
  border-color: #e5aa9e;
}
@media (max-width: 1024px) {
  .main-header .container {
    grid-template-columns: auto 1fr auto !important;
    padding: 12px 1rem !important;
  }

  .logo {
    justify-self: start;
  }

  .logo img {
    max-height: 56px !important;
    max-width: 180px;
  }

  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #F2CEAE !important;
  }

  .header-actions {
    gap: 0.5rem;
  }
}

@media (max-width: 1024px) {
  .main-header {
    background: rgba(61, 43, 31, 0.98) !important;
  }

  .main-header .container {
    grid-template-columns: auto 1fr auto !important;
    padding: 10px 1rem !important;
  }

  .logo {
    justify-self: start !important;
  }

  .logo img {
    max-height: 52px !important;
    max-width: 170px;
  }

  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #F2EEEB !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(242, 206, 174, 0.16);
  }

  .header-actions {
    gap: 0.45rem;
  }
}
