/* ==========================================================
   La Coco Designs — Header & Footer
   ========================================================== */

/* ==========================================================
   HEADER / NAVIGATION — MOBILE FIRST
   ========================================================== */

/* ── Nav links: column by default (mobile) ──────────────── */
.header-nav-links {
  display: flex;
  flex-direction: column;  /* MOBILE: stacked list */
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.header-nav-links li {
  width: 100%;
  border-bottom: 1px solid rgba(205, 55, 127, 0.15);
}

.header-nav-link {
  display: block;
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  color: var(--color-primary);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.header-nav-link:hover {
  background: rgba(205, 55, 127, 0.06);
  color: #821a4c;
}

/* ── Site Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition-base);
}

.site-header__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Top Bar */
.site-header__top {
  background: linear-gradient(to bottom, var(--color-white) 0%, rgba(255, 255, 255, 0.9) 100%);
}

/* ── Branding ─────────────────────────────────────────────── */
.site-branding__link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-branding__logo {
  width: 150px;
}
.site-header .site-branding__logo {
  width: 60px;
}

.site-branding__name {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-main);
}

/* ── Search (hidden on mobile) ───────────────────────────── */
.header-search {
  display: none;
  flex: 1;
  max-width: 400px;
  margin: 0 40px;
}

.search-form {
  position: relative;
}

.search-form input {
  width: 100%;
  padding: 10px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-medium);
  background: var(--color-bg-alt);
}

.search-form__icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
}

/* ── Utilities (hidden on mobile) ────────────────────────── */
.header-utilities {
  display: flex;
  align-items: center;
  gap: 20px;
}

.utilities-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.utilities-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--color-text-main);
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.utilities-list li a:hover {
  color: #821a4c;
}

/* ==========================================================
   MOBILE NAV DROPDOWN
   ========================================================== */
.nav-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* Nav panel — hidden by default, full-bleed when open */
.site-header__nav {
  max-height: 0;
  overflow: hidden;  /* hidden when closed — fine for sticky since max-height:0 collapses it */
  background: linear-gradient(180deg, #fde1e1 0%, var(--color-accent-bg) 100%);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  /* Full-bleed breakout */
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
}

.site-header__nav.is-open {
  max-height: 2000px; /* tall enough — no overflow needed */
  padding: 12px 0 24px;
  opacity: 1;
  box-shadow: var(--shadow-soft);
}

/* Inner container: full width on mobile */
.site-header__nav .site-header__inner {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* ── Dropdown trigger — matches link sizing ──────────────── */
.dropbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--color-primary);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(205, 55, 127, 0.15);
  cursor: pointer;
  text-align: center;
  transition: background 0.18s ease, color 0.18s ease;
}

.dropbtn:hover,
.nav-item-dropdown.open .dropbtn {
  background: rgba(205, 55, 127, 0.06);
  color: #821a4c;
}

.dropbtn .fa-caret-down {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.nav-item-dropdown.open .dropbtn .fa-caret-down {
  transform: rotate(180deg);
}

/* ── Dropdown panel ──────────────────────────────────────── */
.dropdown-content {
  display: none;
  width: 100%;
  background: rgba(253, 225, 225, 0.4);
  border-left: 3px solid var(--color-primary);
  margin-top: 0;
}

.nav-item-dropdown.open .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  color: var(--color-primary);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.dropdown-content a:hover {
  background: rgba(205, 55, 127, 0.08);
  color: #821a4c;
}

.dropdown-content a i {
  font-size: 0.8rem;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-divider {
  height: 1px;
  background: rgba(205, 55, 127, 0.15);
  margin: 4px 0;
}

/* ── Header action icons (hidden on mobile top bar) ─────── */
.header-actions {
  display: none;
  gap: 20px;
}

.header-actions__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-primary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.header-actions__icon:hover {
  transform: scale(1.2);
  color: var(--color-accent);
}

/* ── Header badges (cart + wishlist count) ───────────────── */
.header-badge {
  display: none;
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 50px;
  background: #e53935;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.22);
  pointer-events: none;
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.2s var(--ease-smooth), opacity 0.2s ease;
}

.header-badge.visible {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1);
  opacity: 1;
}

/* ==========================================================
   MOBILE NAV FOOTER BAR (login + wishlist + cart)
   Shown only inside the mobile nav, hidden on desktop
   ========================================================== */
.nav-mobile-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding: 20px 0 8px;
  border-top: 1px solid rgba(205, 55, 127, 0.2);
  gap: 16px;
}

/* Login / My Account button */
.nav-mobile-footer__account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background 0.2s ease;
}

.nav-mobile-footer__account:hover {
  background: #a82066;
  color: var(--color-white);
}

/* Wishlist + Cart icon row */
.nav-mobile-footer__icons {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

.nav-mobile-footer__icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 1.3rem;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-mobile-footer__icon:hover {
  color: #821a4c;
}

.nav-mobile-footer__label {
  font-size: 0.7rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

/* ==========================================================
   DESKTOP (≥ 992px)
   ========================================================== */
@media (min-width: 992px) {

  /* Show utilities + search, hide hamburger, hide mobile footer */
  .utilities-list      { display: flex; }
  .header-search       { display: block; }
  .nav-toggle          { display: none; }
  .header-actions      { display: flex; }
  .nav-mobile-footer   { display: none; }

  /* Nav panel: static bar, reset mobile breakout */
  .site-header__nav {
    position: static;
    left: auto;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-height: none;
    padding: 10px 0;
    overflow: visible;
  }

  .site-header__nav .site-header__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    max-width: var(--container-width);
    margin: 0 auto;
  }

  /* Nav links: row on desktop */
  .header-nav-links {
    flex-direction: row;
    width: auto;
    align-items: center;
    text-align: left;
  }

  .header-nav-links li {
    width: auto;
    border-bottom: none;
  }

  .header-nav-link {
    display: inline-block;
    width: auto;
    padding: 10px 15px;
    font-size: var(--text-sm);
    color: var(--color-primary);
  }

  .header-nav-link:hover {
    background: none;
    color: #821a4c;
  }

  /* Dropdown trigger: inline on desktop */
  .nav-item-dropdown { width: auto; position: relative; }

  .dropbtn {
    width: auto;
    padding: 10px 15px;
    font-size: var(--text-sm);
    justify-content: flex-start;
    border-bottom: none;
  }

  .dropbtn:hover,
  .nav-item-dropdown:hover .dropbtn {
    background: none;
    color: #821a4c;
  }

  .nav-item-dropdown:hover .dropbtn .fa-caret-down {
    transform: rotate(180deg);
  }

  /* Dropdown panel: float below on desktop */
  .dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 210px;
    background: var(--color-white);
    border-left: none;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    border: 1px solid var(--color-border-light);
    z-index: 1100;
    overflow: hidden;
  }

  .nav-item-dropdown:hover .dropdown-content { display: block; }
  .nav-item-dropdown.open .dropdown-content  { display: none; }

  .dropdown-content a {
    justify-content: flex-start;
    padding: 11px 18px;
    font-size: var(--text-sm);
    border-left: 3px solid transparent;
  }

  .dropdown-content a:hover {
    background: #fdf2f7;
    color: var(--color-primary);
    border-left-color: var(--color-primary);
  }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: linear-gradient(180deg, #fde1e1 0%, var(--color-accent-bg) 100%);
  border-top: 1px solid var(--color-border-light);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0 auto;
  max-width: 1200px;
  padding: clamp(40px, 5vw, 70px) clamp(20px, 4vw, 60px);
}

.footer-branding .site-branding__link { margin-bottom: 15px; }
.footer-branding .site-branding__logo { width: 150px; }

.footer-branding .site-branding__name {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-main);
}

.footer-description {
  font-family: var(--font-serif);
  color: var(--color-text-main);
  max-width: 300px;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.footer-column { margin-bottom: 40px; }

.footer-nav-links {
  display: flex;
  flex-direction: column;
}

.footer-nav-links li a {
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-decoration: none;
}

.footer-nav-links li a:hover { color: #821a4c; }

.column-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.quick-links-dual-column { max-width: 300px; }

.footer-links-grid,
.footer-links-list,
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 0;
}

.footer-links-grid a {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-links-grid a:hover { transform: translateX(5px); }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 8px;
  font-size: var(--text-sm);
  line-height: var(--line-height-relaxed);
}

.contact-item i {
  flex-shrink: 0;
  width: 15px;
  text-align: center;
  color: var(--color-primary);
  font-size: 0.95em;
  margin-top: 2px;
}

.contact-item a,
.contact-item address { display: inline-block; }
.contact-item address { font-style: normal; }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}

.copyright {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
}

@media (min-width: 992px) {
  .footer-container {
    grid-template-columns: minmax(260px, 1fr) 2fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
    padding: 60px 0 0 60px;
  }
  .footer-nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
  .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }
  .footer-branding,
  .footer-column { text-align: left; }
}