:root {
  --header-h: 88px;
  --header-h-mobile: 64px;
  --brand: #4a8593;
  --ink: #1c1e21;
  --muted: #6b7280;
  --panel: #ffffff;
  --panel-tint: rgba(255,255,255,.96);
  --shadow: 0 20px 40px rgba(0,0,0,.18);
}


* { box-sizing: border-box; }

/* ---------- Header / Nav ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  color: #fff;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
}

.logo img {
  width: auto;
  height: auto;
  max-height: 40px;
  aspect-ratio: 60 / 46;
  display: block;
}

.logo span {
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1;
  color: #fff;
}

.main-header {
  position: relative; /* ✅ contains the mega menu */
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  height: var(--header-h);
  padding: 0 clamp(1.5rem, 3vw, 2rem);
  background: var(--brand);
  color:#fff;
  z-index:3000;
  font-family:'Quicksand',sans-serif !important;
}

/* Centered tab strip (desktop only) */
.nav-menu-wrapper {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}
.nav-menu {
  display:flex;
  align-items:center;
  gap: 105px;
}

.nav-tab .dropdown-toggle {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: clamp(1.25rem, 1.8vw, 20px);
  font-weight: 300;
  cursor: pointer;
  padding: 6px 2px;
  font-family: 'Poppins', sans-serif;
}
.nav-tab .dropdown-toggle:hover,
.nav-tab .dropdown-toggle:focus {
  outline:none;
  text-decoration: none;
  text-underline-offset: 4px;
}

/* ---------- Desktop full-width Mega Menu ---------- */
.mega-menu {
  display: none;
  position: absolute;       /* ✅ relative to .main-header */
  top: 100%;                /* ✅ sits directly under header */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  z-index: 2500;
  background: transparent;
  box-shadow: var(--shadow);
}

.mega-menu.mega-open {
  display: block;
}

.mega-inner {
  flex: 1;
  background: var(--panel-tint);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

.mega-menu .mega-panel {
  margin: 0 auto;
  max-width: 900px;
  min-height: 400px;
}

.mega-menu .mega-columns {
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
}

.mega-menu .mega-group h4 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing:.06em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight:700;
  margin-bottom: 20px;
  font-family: 'Poppins', system-ui, sans-serif;
}

/* ---------- MOBILE: hide desktop mega menu ---------- */
@media (max-width: 768px) {
  .mega-menu {
    display: none !important;
  }
}

/* ---------- A–Z bar (desktop only) ---------- */
.mega-menu .az-bar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0;
  margin: 8px 0 16px;
  border-bottom: 1px solid #000;
  padding-bottom: 6px;
}

.mega-menu .az-bar .az-link {
  flex: 1;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.mega-menu .az-bar .az-link:hover { color: var(--brand); text-decoration: none; }
.mega-menu .az-bar .az-link.active { font-weight: 700; color: white; background: var(--brand); }

.mega-menu .mega-list.az {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 1.5rem 0;
  list-style: none;
  padding: 0;
}
.mega-menu .mega-list.az a {
  display: block;
  text-align: left;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #000;
  transition: all 0.2s ease;
}

/* ---------- Categories Mega Menu ONLY ---------- */
.panel-categories {
  min-height: 0 auto;
  max-width: 900px;
}

.panel-categories .az-bar {
  display: none;
}

.panel-categories .mega-group h4 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #000000;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
}

.panel-categories .mega-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.panel-categories .mega-list li {
  background: #e2e2e2;
  border: 1px solid #ababab;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 10px !important;
}

.panel-categories .mega-list a {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1c1e21;
  text-decoration: none;
  transition: color 0.2s ease;
}
.panel-categories .mega-list a:hover { color: var(--brand); }

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  :root { --header-h: var(--header-h-mobile); }

  .nav-menu-wrapper { display: none; }
  .auth-buttons a { display: none; }

  .main-header {
    height: var(--header-h-mobile);
    padding: 0 12px;
  }

  .header-right {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  .logo {
    margin: 0 auto;
    gap: unset;
  }
  .logo span {
    display: inline;
    font-size: 1.2rem;
    margin-left: 0.5rem;
  }
  .logo img {
    max-height: 30px;
  }
}

/* ---------- Hamburger menu ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}
@media (max-width: 768px) {
  .hamburger { display: flex; width: 30px; height: 24px; }
}

/* ---------- Mobile full-screen overlay ---------- */
.mobile-menu-overlay {
  position: fixed;  /* ✅ stays pinned full screen */
  top: 0; left: 0; right: 0; bottom: 0;
  background: #4a8593;
  color: #fff;
  z-index: 4000;
  display: none;
  overflow-y: auto;
}
.mobile-menu-overlay.open { display: block; }

.mobile-menu-inner {
  padding: 24px 20px 40px;
  max-width: 640px;
  margin: 0 auto;
}
.mobile-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #fff;
  float: right;
  cursor: pointer;
}

.mobile-section {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 20px 0;
}
.mobile-section h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #cfd8e3;
}
.mobile-sub a {
  color:#e5e7eb;
  text-decoration:none;
  display: block;
  padding: 6px 0;
}
.mobile-sub a:hover { color:#fff; }

.mobile-tabs {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}
.mobile-tab {
  flex: 1;
  background: none;
  border: none;
  color: #cfd8e3;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.mobile-tab.active {
  color: #fff;
  border-color: #fff;
}


/* ---------- Hamburger menu ---------- */
.hamburger {
  display: none; /* hidden desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .hamburger { 
    display: flex; 
    width: 30px; 
    height: 24px; 
  }

  /* Homepage mobile menu tweaks */
  #mobile-brands #mPopularBrands,
  #mobile-categories #mPopularCategories {
    padding-left: 1rem; /* indent Popular Brands + Categories */
  }

  #mBrandsAZList,
  #mCatsAZList {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem 0.75rem;
    margin: 0.5rem 0;
    padding: 2px 2px;
  }
}

/* ---------- Mobile full-screen overlay ---------- */
.mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #4a8593;
  color: #fff;
  z-index: 4000;
  display: none;
  overflow-y: auto;
}

.mobile-menu-overlay.open {
  display: block;
}

.mobile-menu-inner {
  padding: 24px 20px 40px;
  max-width: 640px;
  margin: 0 auto;
}

.mobile-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #fff;
  float: right;
  cursor: pointer;
}

/* ---------- Mobile menu sections ---------- */
.mobile-section {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 20px 0;
}

.mobile-section h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #cfd8e3;
}

.mobile-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-sub li {
  margin: 6px 0;
}

.mobile-sub a {
  color: #e5e7eb;
  text-decoration: none;
  display: block;
  padding: 6px 0;
}

.mobile-sub a:hover {
  color: #fff;
}

/* --- Mobile menu polish --- */
.mobile-section h4 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 1rem 0 .5rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: .25rem;
}

.mobile-section .mega-group h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cfd8e3;
  margin: .75rem 0 .25rem;
}

.mobile-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-section li a {
  display: block;
  padding: 6px 0;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.mobile-section li a:hover {
  color: #fff;
}

/* Popular vs All list spacing */
.mobile-section .mega-group {
  margin-bottom: 1.25rem;
}

/* --- Mobile tabs at top --- */
.mobile-tabs {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.mobile-tab {
  flex: 1;
  background: none;
  border: none;
  color: #cfd8e3;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.mobile-tab.active {
  color: #fff;
  border-color: #fff;
}

/* --- Mobile content panels --- */
.mobile-content {
  margin-top: 10px;
}

.mobile-panel h4 {
  font-size: 2vh;
  font-weight: 600;
  margin: 1rem 0 .25rem;
  color: #fff;
  font-family: 'Poppins', system-ui, sans-serif;
}

.mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-panel li a {
  display: block;
  color: white;
  text-decoration: none;
  padding-bottom: 10px;
}

.mobile-panel li a:hover {
  color: #fff;
}

.az-bar .az-link {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

@media (max-width: 768px) {
  .main-header {
    position: relative;
  }

  .main-header .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 768px) {
    .az-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0px;
        color: white;
        border-bottom: 2px solid #ffffff;
        margin: 1rem 0;
        padding-bottom: 0.5rem;
        font-family: 'Poppins', system-ui, sans-serif;
    }
}

@media (max-width: 768px) {
    .az-bar .az-link.active {
        background: white;
        color: black;
        font-weight: 600;
    }
}

@media (max-width: 768px) {
    .az-bar .az-link {
        flex: 0;
        padding: 4px 8px;
        color: white;
    }
}

.az-bar .az-link:hover, .az-bar .az-link:focus {
    background: #4a8593;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
}

@media (max-width: 768px) {
  body.page--store li {
    padding-bottom: unset !important;
  }
}

@media (max-width: 768px) {
  li {
    padding-bottom: unset !important;
  }
}

