/* =========================
   BASE
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    background: rgb(209, 219, 221);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
  }
  
  /* =========================
     NAVBAR
  ========================= */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.2rem;
    background: rgb(12, 12, 12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 2000;
  }
  
  .logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: 0.5px;
    flex-shrink: 0;
  }
  
  /* =========================
     HAMBURGER BUTTON  (mobile only — hidden on desktop)
  ========================= */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2100;
    flex-shrink: 0;
    /* touch target padding without affecting layout */
    -webkit-tap-highlight-color: transparent;
  }
  
  .hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #f1f5f9;
    border-radius: 3px;
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Hamburger → X */
  .hamburger.is-active span:nth-child(1) {
    transform: translateY(7.75px) rotate(45deg);
  }
  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hamburger.is-active span:nth-child(3) {
    transform: translateY(-7.75px) rotate(-45deg);
  }
  
  /* =========================
     MOBILE NAV PANEL
  ========================= */
  #main-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 56px;           /* overridden by inline JS to exact navbar height */
    max-height: calc(100vh - 56px);
    background: rgba(10, 14, 20, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1999;
  }
  
  #main-nav.nav-open {
    display: block;
    animation: navSlideDown 0.22s ease forwards;
  }
  
  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  /* Mobile nav list — vertical stack */
  nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0;
    padding: 0.5rem 0;
  }
  
  nav ul li {
    position: relative;
  }
  
  nav ul li a {
    display: block;
    padding: 0.88rem 1.5rem;
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    -webkit-tap-highlight-color: transparent;
  }
  
  nav ul li a:hover,
  nav ul li a:active {
    background: rgba(255, 60, 0, 0.09);
    color: #ff7a40;
    box-shadow: none;
  }
  
  /* Cart / Profile parent link — styled as section label on mobile */
  .dropdown > a.bossd {
    color: #7c8fa6;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    padding: 0.75rem 1.5rem 0.35rem;
    border-bottom: none;
    cursor: default;
    pointer-events: none;   /* label only on mobile; navigates on desktop */
  }
  
  /* Mobile dropdown sub-items — always visible, no hover needed */
  .dropdown-menu {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 0;
    padding: 0 0 0.6rem;
    min-width: unset;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: auto;
  }
  
  .dropdown-menu li a {
    display: block;
    padding: 0.55rem 1.5rem 0.55rem 2.5rem;
    color: #7c8fa6;
    font-size: 0.88rem;
    font-weight: 500;
    border-bottom: none;
  }
  
  .dropdown-menu li a:hover,
  .dropdown-menu li a:active {
    color: #ff9040;
    background: none;
  }
  
  .bossd {
    position: relative;
    z-index: 2001;
  }
  
  #cart-count {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
  }
  
  /* =========================
     HERO — MOBILE
  ========================= */
  .hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: flex-end;          /* content anchored at bottom */
    padding: 2rem 1.2rem 2.8rem;
    z-index: 1;
    overflow: hidden;
  }
  
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: url("https://res.cloudinary.com/dmi1qrw7u/image/upload/f_auto,q_auto,w_1200/site/hero1.jpg") center / cover no-repeat;
    background-color: #111;
    z-index: -1;
  }
  
  /* Bottom-up gradient so text is always readable on mobile */
  .hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.48) 40%,
      rgba(0, 0, 0, 0.08) 100%
    );
  }
  
  .hero-content {
    position: relative;
    width: 100%;
    color: #fff;
    z-index: 2;
  }
  
  .hero h1 {
    font-size: 2.05rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  }
  
  .hero .tagline {
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  }
  
  .hero-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    z-index: 10;
  }
  
  /* =========================
     BUTTONS
  ========================= */
  .btn {
    padding: 0.72rem 1.3rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 0.4px;
    -webkit-tap-highlight-color: transparent;
  }
  
  .btn-primary {
    background: #ff3c00;
    color: #fff;
    border: none;
  }
  
  .btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
  }
  
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(255, 60, 0, 0.4);
  }
  
  /* =========================
     TRUST STRIP — MOBILE
  ========================= */
  .trust-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #111827;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.78rem;
    text-align: center;
  }
  
  .trust-item {
    padding: 0.9rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.35;
    gap: 0.3rem;
  }
  
  /* Emoji icons added via CSS — no Pug change needed */
  .trust-item:nth-child(1)::before { content: "✨"; }
  .trust-item:nth-child(2)::before { content: "🚚"; }
  .trust-item:nth-child(3)::before { content: "💸"; }
  .trust-item:nth-child(4)::before { content: "🔒"; }
  
  /* =========================
     SECTIONS — MOBILE BASE
  ========================= */
  section {
    padding: 2rem 1rem;
  }
  
  .section-title {
    text-align: center;
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
  }
  
  /* =========================
     COLLECTIONS — MOBILE
  ========================= */
  section.collections {
    background: #fff;
  }
  
  .collection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .collection-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.13);
  }
  
  .collection-card img {
    width: 100%;
    aspect-ratio: 5/6;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }
  
  .collection-card:hover img,
  .collection-card:active img {
    transform: scale(1.05);
  }
  
  .collection-card h3 {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0.65rem 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
  }
  
  /* =========================
     WHY SPORTSFYRE — MOBILE
  ========================= */
  section.why {
    background: rgb(209, 219, 221);
  }
  
  .why-grid {
    display: grid;
    gap: 1rem;
  }
  
  .why-card {
    background: #fff;
    padding: 1.3rem 1.2rem;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    border-left: 3px solid #ff3c00;
  }
  
  .why-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #111;
  }
  
  .why-card p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.55;
  }
  
  /* =========================
     FINAL CTA — MOBILE
  ========================= */
  .final-cta {
    background: linear-gradient(135deg, #0d0d1a 0%, #1c0700 100%);
    color: #fff;
    text-align: center;
    padding: 2.5rem 1.2rem;
  }
  
  .final-cta h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
    line-height: 1.25;
  }
  
  .final-cta p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1.5rem;
  }
  
  /* =========================
     TABLET POLISH (480px – 767px)
  ========================= */
  @media (min-width: 480px) {
  
    .hero {
      min-height: 82vh;
      padding: 2.5rem 2rem 3.2rem;
    }
  
    .hero h1 {
      font-size: 2.6rem;
    }
  
    .hero .tagline {
      font-size: 1.05rem;
    }
  
    .btn {
      padding: 0.78rem 1.5rem;
      font-size: 0.92rem;
    }
  
    .trust-strip {
      font-size: 0.84rem;
    }
  
    .trust-item {
      padding: 1rem 0.75rem;
    }
  
    .collection-grid {
      gap: 1rem;
    }
  
    .collection-card {
      border-radius: 14px;
    }
  
    .collection-card h3 {
      font-size: 0.9rem;
    }
  
    .why-card {
      padding: 1.5rem 1.3rem;
    }
  
    .why-card h3 {
      font-size: 1.05rem;
    }
  
    .section-title {
      font-size: 1.6rem;
    }
  
    .final-cta h2 {
      font-size: 1.7rem;
    }
  
    .final-cta p {
      font-size: 0.95rem;
    }
  }
  
  /* =========================
     DESKTOP UPGRADES (768px+)
     — ALL ORIGINAL STYLES RESTORED EXACTLY —
  ========================= */
  @media (min-width: 768px) {
  
    /* ---- NAVBAR ---- */
    .navbar {
      padding: 0rem 2rem;
    }
  
    /* Hide hamburger on desktop */
    .hamburger {
      display: none;
    }
  
    /* Restore nav as horizontal desktop bar */
    #main-nav {
      display: flex !important;
      position: static;
      background: transparent;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      padding: 0;
      border: none;
      max-height: none;
      overflow: visible;
      top: auto;
      animation: none !important;
      align-items: center;
    }
  
    nav ul {
      flex-direction: row;
      gap: 1.2rem;
      flex-wrap: wrap;
      align-items: center;
      padding: 0;
    }
  
    nav ul li {
      position: relative;
      border-bottom: none;
    }
  
    nav ul li a {
      padding: 0.5rem 0.8rem;
      border-radius: 6px;
      color: #fff;
      font-size: 1.1rem;
      font-weight: 600;
      display: inline-block;
      border-bottom: none;
      text-transform: none;
      letter-spacing: 0;
    }
  
    nav ul li a:hover {
      background: linear-gradient(90deg, #e7b9b9, #d16e11);
      color: #fff;
      box-shadow: 0 0 10px rgba(209, 110, 17, 0.5);
    }
  
    /* Restore Cart / Profile parent link to normal nav link */
    .dropdown > a.bossd {
      color: #fff;
      font-size: 1.1rem;
      font-weight: 600;
      text-transform: none;
      letter-spacing: 0;
      padding: 0.5rem 0.8rem;
      border-bottom: none;
      cursor: pointer;
      pointer-events: auto;
    }
  
    /* Restore dropdown to hover-triggered absolute menu */
    .dropdown:hover .dropdown-menu {
      display: block;
      opacity: 1;
      transform: translateY(0);
      visibility: visible;
      pointer-events: auto;
    }
  
    .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      background: rgba(24, 29, 37, 0.97);
      backdrop-filter: blur(10px);
      border-radius: 0 0 8px 8px;
      padding: 0.6rem 0;
      min-width: 160px;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
      display: none;
      opacity: 0;
      transform: translateY(-10px);
      transition: all 0.3s ease;
      visibility: hidden;
      z-index: 3000;
      border-bottom: none;
    }
  
    .dropdown-menu li a {
      display: block;
      padding: 0.6rem 1rem;
      color: #f1f5f9;
      font-size: 1rem;
      font-weight: 500;
      border-bottom: none;
      text-transform: none;
      letter-spacing: 0;
      padding-left: 1rem;   /* override mobile indent */
    }
  
    .dropdown-menu li a:hover {
      background: linear-gradient(90deg, #d16e11, #e7b9b9);
      color: #fff;
    }
  
    /* ---- HERO ---- */
    .hero {
      min-height: 90vh;
      align-items: center;
      padding: 1.5rem;
    }
  
    .hero h1 {
      font-size: 3.2rem;
      text-shadow: none;
      text-transform: uppercase;
    }
  
    .hero-content {
      max-width: 420px;
      width: auto;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }
  
    .hero .tagline {
      font-size: 1.05rem;
      text-shadow: none;
      color: #fff;
    }
  
    /* Remove mobile gradient overlay — original had no overlay */
    .hero-overlay::after {
      display: none;
    }
  
    /* ---- TRUST STRIP ---- */
    .trust-strip {
      grid-template-columns: repeat(4, 1fr);
      background: #f8f8f8;
      color: #333;
      font-size: 0.9rem;
      font-weight: 600;
    }
  
    .trust-item {
      padding: 1rem 0.5rem;
      border-right: none;
      border-bottom: none;
    }
  
    /* Remove emoji icons on desktop (original had no icons) */
    .trust-item:nth-child(1)::before,
    .trust-item:nth-child(2)::before,
    .trust-item:nth-child(3)::before,
    .trust-item:nth-child(4)::before {
      content: none;
    }
  
    /* ---- SECTIONS ---- */
    section {
      padding: 2.5rem 1.2rem;
    }
  
    .section-title {
      font-size: 1.6rem;
      margin-bottom: 1.8rem;
    }
  
    /* ---- COLLECTIONS ---- */
    section.collections {
      background: inherit;
      padding: 2.5rem 1.2rem;
    }
  
    .collection-grid {
      grid-template-columns: repeat(4, 1fr);
      gap: 1rem;
    }
  
    .collection-card {
      border-radius: 14px;
      box-shadow: none;
    }
  
    .collection-card img {
      aspect-ratio: 6/7;
    }
  
    .collection-card h3 {
      font-size: 0.95rem;
      padding: 0.6rem;
      background: rgba(0, 0, 0, 0.6);
      font-weight: normal;
      letter-spacing: 0;
    }
  
    /* ---- WHY SPORTSFYRE ---- */
    section.why {
      background: inherit;
      padding: 2.5rem 1.2rem;
    }
  
    .why-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  
    .why-card {
      background: #f9f9f9;
      padding: 1.4rem;
      border-radius: 14px;
      box-shadow: none;
      border-left: none;
    }
  
    .why-card h3 {
      font-size: inherit;
      font-weight: bold;
      margin-bottom: 0;
      color: inherit;
    }
  
    .why-card p {
      font-size: inherit;
      color: inherit;
      line-height: inherit;
    }
  
    /* ---- FINAL CTA ---- */
    .final-cta {
      background: #00001d;
      padding: 2rem 1rem;
    }
  
    .final-cta h2 {
      font-size: inherit;
      font-weight: inherit;
      margin-bottom: inherit;
      line-height: inherit;
    }
  
    .final-cta p {
      font-size: inherit;
      color: inherit;
      margin-bottom: inherit;
    }
  
  }
  