/* ============================================================
   Elite Supplies Inc — Shared Global Styles
   Imported by every page. Keep additions here minimal and
   limited to truly site-wide concerns.
   ============================================================ */

/* ── SVG list item indicators (li-yes / li-no) ── */
li.li-yes,
li.li-no {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
li.li-yes::before,
li.li-no::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  background-size: contain;
  background-repeat: no-repeat;
}
li.li-yes::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ecc71' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}
li.li-no::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e74c3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M15 9l-6 6M9 9l6 6'/%3E%3C/svg%3E");
}

/* ── Sticky footer — body fills viewport, footer always at bottom ── */
html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Every direct child that is NOT a header or footer grows to fill space */
body > main,
body > .page-content,
body > .page-wrapper {
  flex: 1 0 auto;
}

/* Carousel / Hero sit between header and main — must NOT grow */
body > .carousel-section,
body > .hero-section {
  flex: 0 0 auto;
}

header, footer {
  flex-shrink: 0;
}

/* ── Logo / Brand — unified size across all pages ── */
/* Covers: .logo (info/policy pages), .navbar-brand (subcollection) */
header .logo,
header .navbar-brand,
nav.navbar .navbar-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent, #ffffff);
  font-family: 'Gloock', Georgia, serif;
  height: 40px;
  display: flex;
  align-items: center;
  letter-spacing: 0.04em;
}

/* ── Page Header — breadcrumb + title + description block ──
   Used on category.html, subcollection.html, and any future
   collection-style page. Must look identical everywhere.      */
.page-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
}

.page-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim, #a3a3a3);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-dim, #a3a3a3);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent, #ffffff);
}

.page-title {
  font-family: 'Gloock', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--text, #f5f5f5);
  margin: 0 0 0.25rem;
}

.page-description {
  font-size: 1rem;
  color: var(--text-dim, #a3a3a3);
  margin: 0;
  line-height: 1.5;
}

.page-description.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.desc-toggle-btn {
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-dim, #a3a3a3);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: block;
}

.desc-toggle-btn:hover {
  color: var(--accent, #ffffff);
}

/* Responsive page header */
@media (max-width: 600px) {
  .page-header {
    padding: 1.5rem 0 1.25rem;
  }

  .page-header-inner {
    padding: 0 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }
}

/* ── Site Navigation — dropdown nav, shared across all pages ── */
header {
  background: var(--surface, #1A1A1A);
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Container — consistent max-width and horizontal padding ── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 12px;
}

/* On desktop the hamburger is hidden, so logo naturally sits at left */
/* On tablet/mobile: hamburger | logo */
@media (max-width: 1024px) {
  .header-content {
    justify-content: flex-start;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav .nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim, #a3a3a3);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 7px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  letter-spacing: 0.01em;
  user-select: none;
}

.site-nav .nav-link:hover,
.site-nav .nav-dropdown.is-open > .nav-link {
  color: var(--text, #f5f5f5);
  background: rgba(255,255,255,0.06);
}

.site-nav .nav-dropdown {
  position: relative;
}

.nav-caret {
  font-size: 8px;
  opacity: 0.55;
  transition: transform 0.2s;
  line-height: 1;
}

.site-nav .nav-dropdown.is-open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1c1c1c;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 6px;
  min-width: 220px;
  display: none;
  flex-direction: column;
  z-index: 500;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.site-nav .nav-dropdown.is-open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  font-size: 13px;
  color: var(--text-dim, #a3a3a3);
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  display: block;
}

.nav-dropdown-menu a:hover {
  color: var(--text, #f5f5f5);
  background: rgba(255,255,255,0.07);
}

.nav-dropdown-menu .nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 5px 8px;
}

/* ── Mega Menu — wide multi-column collections panel ── */
.nav-dropdown.nav-mega {
  position: static;
}

.nav-dropdown.nav-mega .nav-dropdown-menu {
  left: auto;
  right: auto;
  transform: none;
  position: fixed;
  top: var(--header-h, 64px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0 0 12px 12px;
  padding: 28px 40px 32px;
  display: none;
  flex-direction: row;
  gap: 0;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
  background: #1c1c1c;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  min-width: 0;
  justify-content: center;
}

.site-nav .nav-dropdown.nav-mega.is-open .nav-dropdown-menu {
  display: flex;
}

.nav-mega-col {
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.nav-mega-col:last-child {
  border-right: none;
}

.nav-mega-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
  padding: 0 0 10px 0;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}

.nav-mega-col a {
  white-space: normal !important;
  line-height: 1.4;
  padding: 6px 0 !important;
  background: none !important;
  border-radius: 0 !important;
}

.nav-mega-col a:hover {
  color: #fff !important;
  background: none !important;
  padding-left: 4px !important;
  transition: padding 0.12s, color 0.12s;
}

/* ══════════════════════════════════════════════════════════
   MOBILE SIDEBAR NAV
   ══════════════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  z-index: 601;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dim, #a3a3a3);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease, background 0.2s;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sidebar backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 490;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-backdrop.is-visible {
  display: block;
  opacity: 1;
}

/* Sidebar panel */
.nav-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 88vw;
  height: 100dvh;
  background: #161616;
  border-right: 1px solid rgba(255,255,255,0.08);
  z-index: 500;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-sidebar.is-open {
  transform: translateX(0);
}

/* Sidebar top bar: logo + close */
.nav-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.nav-sidebar-logo {
  font-family: 'Gloock', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #f5f5f5);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav-sidebar-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim, #a3a3a3);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-sidebar-close:hover {
  color: var(--text, #f5f5f5);
  background: rgba(255,255,255,0.06);
}

/* Sidebar nav links */
.nav-sidebar-body {
  flex: 1;
  padding: 12px 0 24px;
}

.nav-sidebar-body .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim, #a3a3a3);
  padding: 11px 20px;
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.nav-sidebar-body .nav-link:hover,
.nav-sidebar-body .nav-link.active {
  color: var(--text, #f5f5f5);
  background: rgba(255,255,255,0.05);
}

.nav-sidebar-body .nav-link.active {
  color: #fff;
}

/* Sidebar accordion groups */
.sidebar-group {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-group:last-child {
  border-bottom: none;
}

.sidebar-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim, #a3a3a3);
  padding: 11px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: color 0.18s, background 0.18s;
  text-align: left;
}

.sidebar-group-toggle:hover {
  color: var(--text, #f5f5f5);
  background: rgba(255,255,255,0.05);
}

.sidebar-group.is-open .sidebar-group-toggle {
  color: var(--text, #f5f5f5);
}

.sidebar-caret {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
  color: var(--text-mute, #6b6b6b);
}

.sidebar-group.is-open .sidebar-caret {
  transform: rotate(180deg);
}

.sidebar-group-body {
  display: none;
  flex-direction: column;
  padding: 0 0 6px 0;
  background: rgba(255,255,255,0.02);
}

.sidebar-group.is-open .sidebar-group-body {
  display: flex;
}

/* Sub-section label inside sidebar (for mega menu) */
.sidebar-group-body .sidebar-sub-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(255,255,255,0.25);
  padding: 12px 20px 4px 28px;
}

.sidebar-group-body a {
  font-size: 13px;
  color: var(--text-dim, #a3a3a3);
  text-decoration: none;
  padding: 8px 20px 8px 28px;
  transition: color 0.15s, background 0.15s;
  display: block;
}

.sidebar-group-body a:hover {
  color: var(--text, #f5f5f5);
  background: rgba(255,255,255,0.04);
}

/* ── Nested category accordion (Our Collections) ────────────── */
.sidebar-group-body--cats {
  flex-direction: column;
  gap: 0;
  padding: 4px 0;
}

.sidebar-cat-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px 20px 9px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim, #a3a3a3);
  transition: color 0.15s, background 0.15s;
  text-align: left;
}

.sidebar-cat-toggle:hover {
  color: var(--text, #f5f5f5);
  background: rgba(255,255,255,0.04);
}

.sidebar-cat.is-open > .sidebar-cat-toggle {
  color: var(--text, #f5f5f5);
}

.sidebar-cat-icon {
  font-size: 18px;
  line-height: 1;
  color: rgba(255,255,255,0.35);
  transition: transform 0.2s, color 0.15s;
  flex-shrink: 0;
}

.sidebar-cat.is-open > .sidebar-cat-toggle .sidebar-cat-icon {
  transform: rotate(45deg);
  color: rgba(255,255,255,0.7);
}

.sidebar-cat-body {
  display: none;
  flex-direction: column;
  background: rgba(255,255,255,0.025);
  border-left: 2px solid rgba(255,255,255,0.08);
  margin: 0 12px 4px 20px;
  border-radius: 0 0 4px 4px;
}

.sidebar-cat.is-open > .sidebar-cat-body {
  display: flex;
}

.sidebar-cat-body a {
  font-size: 12.5px;
  color: var(--text-dim, #a3a3a3);
  text-decoration: none;
  padding: 7px 14px;
  transition: color 0.15s, background 0.15s;
  display: block;
}

.sidebar-cat-body a:hover {
  color: var(--text, #f5f5f5);
  background: rgba(255,255,255,0.05);
}

/* Sidebar footer strip */
.nav-sidebar-footer {
  flex-shrink: 0;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.nav-sidebar-footer a {
  font-size: 12px;
  color: var(--text-mute, #6b6b6b);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-sidebar-footer a:hover {
  color: var(--text-dim, #a3a3a3);
}

/* Desktop mega-menu inside sidebar — hide mega layout */
@media (max-width: 1024px) {
  .nav-dropdown.nav-mega .nav-dropdown-menu {
    position: static;
    flex-direction: column;
    padding: 0 0 4px 16px;
    gap: 0;
    max-width: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .nav-mega-col {
    max-width: 100%;
    padding: 8px 0 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 8px;
  }

  .nav-mega-col:last-child {
    border-bottom: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .site-nav {
    display: none !important; /* hidden — replaced by sidebar */
  }
}

/* Keep hamburger hidden on large screens */
@media (min-width: 1025px) {
  .nav-sidebar,
  .nav-backdrop {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════
   SITE FOOTER — shared across all pages
   ══════════════════════════════════════════════════════════ */
footer {
  background: var(--surface, #1a1a1a);
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
  padding: 72px 0 0;
  color: var(--text-dim, #aaa);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 6-column grid: brand | company | collections | partners | policies | support */
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1fr 1.1fr 1fr;
  gap: 40px;
  margin-bottom: 52px;
}

.footer-brand .logo {
  font-family: 'Gloock', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text, #f0f0f0);
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-mute, #777);
  max-width: 240px;
}

.footer-col-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: default;
  padding: 0;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text-mute, #777);
  margin-bottom: 16px;
  text-align: left;
}

.footer-col-caret {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: none;
  transition: transform 0.22s;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 13.5px;
  color: var(--text-dim, #aaa);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: var(--text, #f0f0f0);
}

.footer-bottom {
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 12.5px;
  color: var(--text-mute, #777);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 12.5px;
  color: var(--text-mute, #777);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-bottom-links a:hover {
  color: var(--text-dim, #aaa);
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
  .footer-brand p {
    max-width: 100%;
  }

  /* accordion toggle visible on tablet + mobile */
  .footer-col-toggle {
    cursor: pointer;
    padding: 14px 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .footer-col-toggle:hover {
    color: var(--text-dim, #aaa);
  }
  .footer-col-caret {
    display: block;
  }
  .footer-col.is-open .footer-col-caret {
    transform: rotate(180deg);
  }

  /* list hidden by default on tablet + mobile */
  .footer-col ul {
    display: none;
    padding: 10px 0 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .footer-col.is-open ul {
    display: block;
  }
  .footer-col ul li {
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #141414;
}
::-webkit-scrollbar-thumb {
  background: #2e2e2e;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3d3d3d;
}
::-webkit-scrollbar-corner {
  background: #141414;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #2e2e2e #141414;
}
