/* ============================================================
   A7B Jerseys — responsive.css
   Breakpoints: 1200 · 1024 · 900 · 768 · 576 · 480
   ============================================================ */

/* ===== ≤ 1200px — compact desktop ===== */
@media (max-width: 1200px) {
  .products-grid-5          { grid-template-columns: repeat(4,1fr); }
  .national-picker__grid    { grid-template-columns: repeat(4,1fr); }
  .site-footer__grid        { grid-template-columns: 1fr 1fr; gap: 32px; }
  .drop-menu                { grid-template-columns: repeat(2, 160px); min-width: 320px; }
  .drop-menu--sm            { grid-template-columns: repeat(2, 160px); min-width: 320px; }
}

/* ===== ≤ 1024px — small desktop / large tablet ===== */
@media (max-width: 1024px) {
  .split-carousel-section__inner {
    grid-template-columns: 1fr;
  }
  .side-promo {
    min-height: 260px;
    grid-column: 1 / -1;
  }
  .legends-inner {
    grid-template-columns: 1fr;
  }
  .legends-promo { min-height: 280px; }
  .retro-section__inner {
    grid-template-columns: 1fr;
  }
  .retro-promo {
    flex-direction: row; align-items: flex-start; gap: 30px;
  }
  .retro-promo__img { flex: 1; min-height: 260px; }
  .retro-promo__text { flex: 1; }
  .retro-grid { grid-template-columns: repeat(3,1fr); }
  .circle-badge { right: -40px; width: 100px; height: 100px; font-size: 12px; }

  .legends-cards { grid-template-columns: repeat(3,1fr); }
}

/* ===== ≤ 900px — tablet ===== */
@media (max-width: 900px) {
  :root {
    --header-h: 62px;
    --header-sub-h: 36px;
  }

  /* Hide desktop nav, show burger */
  .primary-nav { display: none; }
  .burger-btn  { display: flex; }

  /* Hero — single column */
  .hero-slider    { height: 520px; }
  .slide__inner   { grid-template-columns: 1fr; }
  .slide__media   { display: none; }
  .slide__wm      { font-size: 26vw; }
  .slide__h1      { font-size: clamp(2rem, 7vw, 3rem); }
  .slide__content { max-width: 100%; padding: 60px 0 40px; }

  /* Products */
  .products-grid-5       { grid-template-columns: repeat(3,1fr); gap: 14px; }
  .national-picker__grid { grid-template-columns: repeat(4,1fr); gap: 16px; }
  .national-circle       { width: 110px; height: 110px; }

  /* Split section */
  .split-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .split-banner { min-height: 380px; }

  /* Trust */
  .trust-bar__grid { grid-template-columns: 1fr; }
  .trust-card      { border-right: none; border-bottom: 1px solid var(--color-border); padding: 22px 30px; }
  .trust-card:last-child { border-bottom: none; }

  /* Footer */
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* Shapes — hide some */
  .s3, .s6, .s8, .s10 { display: none; }

  /* Retro */
  .retro-promo { flex-direction: column; }
  .retro-grid  { grid-template-columns: repeat(2,1fr); }

  /* Legends */
  .legends-cards { grid-template-columns: repeat(2,1fr); }

  /* Visitor grid */
  .visitor-grid { grid-template-columns: repeat(3,1fr); }

  /* Club picker circles */
  .club-circle { width: 90px; height: 90px; font-size: .85rem; }
}

/* ===== ≤ 768px — large mobile / phablet ===== */
@media (max-width: 768px) {
  .mini-grid      { grid-template-columns: 1fr; }
  .retro-grid     { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .legends-inner  { gap: 20px; }

  .split-carousel-section__head { flex-direction: column; align-items: flex-start; }

  /* Carousel shows 2 slides — handled in JS */
  .carousel__slide { flex: 0 0 calc(50% - 10px); }

  /* Newsletter */
  .newsletter-section__inner { padding: 0 var(--gutter); }
  .newsletter-form { flex-direction: column; border: none; gap: 8px; }
  .newsletter-form input {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius); padding: 14px 18px;
  }
  .newsletter-form button {
    border-radius: var(--radius); padding: 14px;
    width: 100%; justify-content: center;
  }

  /* Footer */
  .site-footer__grid { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 28px; }
  .site-footer__bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ===== ≤ 576px — mobile ===== */
@media (max-width: 576px) {
  :root { --gutter: 16px; }

  /* Show mobile bottom nav */
  .mobile-bottom-nav { display: flex; }

  /* Add bottom padding so content isn't hidden by bottom nav */
  body { padding-bottom: 60px; }

  /* Hero */
  .hero-slider   { height: 460px; }
  .slide__h1     { font-size: clamp(1.8rem, 9vw, 2.5rem); margin-bottom: 20px; }
  .slide__h2     { font-size: .78rem; }
  .slide__wm     { font-size: 32vw; opacity: .6; }
  .slide__tag    { font-size: .62rem; padding: 4px 10px; }

  /* Dots — hide on very small */
  .slider-arrow--prev { left: 10px; }
  .slider-arrow--next { right: 10px; }
  .slider-arrow { width: 38px; height: 38px; font-size: .8rem; }

  /* Products */
  .products-grid-5       { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .national-picker__grid { grid-template-columns: repeat(4,1fr); gap: 12px; overflow-x: auto; }
  .national-circle       { width: 80px; height: 80px; }
  .nat-item > span       { font-size: .72rem; }

  /* Club picker */
  .club-picker__title { font-size: 1.6rem; margin-bottom: 28px; }
  .club-circle { width: 76px; height: 76px; font-size: .75rem; }

  /* Trust */
  .trust-card { padding: 18px 20px; }
  .trust-card__icon svg { width: 38px; height: 38px; }
  .trust-card__title { font-size: .95rem; }

  /* Retro */
  .retro-section__inner  { gap: 28px; }
  .retro-promo__img      { min-height: 220px; }
  .retro-grid            { grid-template-columns: 1fr 1fr; gap: 10px; }
  .circle-badge          { width: 80px; height: 80px; font-size: 10px; right: -30px; }

  /* Legends */
  .legends-cards { grid-template-columns: 1fr; }

  /* Visitor */
  .visitor-grid { grid-template-columns: repeat(2,1fr); }

  /* Split section */
  .split-banner          { min-height: 320px; }
  .split-banner__content { padding: 30px 24px; }
  .split-banner__title   { font-size: 1.8rem; }
  .split-section__grid   { padding: 24px var(--gutter); }

  /* Side promo */
  .side-promo__title { font-size: 1.5rem; }
  .side-promo__content { padding: 24px 20px; }

  /* Cart drawer */
  .cart-drawer { width: 100%; max-width: 100%; }

  /* Reviews widget & social sidebar — hide on very small */
  .reviews-widget  { display: none; }
  .social-sidebar  { display: none; }

  /* Back to top — move up above mobile nav */
  .back-top { bottom: 76px; right: 16px; width: 40px; height: 40px; font-size: .8rem; }
  .wa-fab   { bottom: 76px; right: 16px; width: 48px; height: 48px; font-size: 1.4rem; }

  /* Footer */
  .footer-payments { font-size: 1.5rem; }

  /* Section titles */
  .all-products-section__title { font-size: 1.4rem; }
  .visitor-section__title      { font-size: 1.4rem; }
  .national-picker__title      { font-size: 1.4rem; }
  .legends-section__title      { font-size: 1.2rem; }
  .club-picker__title          { font-size: 1.5rem; }

  /* Section padding */
  .products-carousel-section,
  .all-products-section,
  .national-picker,
  .split-carousel-section,
  .legends-section,
  .retro-section,
  .club-picker         { padding: 44px 0; }
  .visitor-section     { padding: 44px 0 0; }
  .newsletter-section  { padding: 50px 0; }
}

/* ===== ≤ 480px — small mobile ===== */
@media (max-width: 480px) {
  .hero-slider   { height: 420px; }
  .slide__h1     { font-size: clamp(1.5rem, 10vw, 2rem); }

  .products-grid-5 { gap: 8px; }

  .product-name    { font-size: .8rem; }
  .btn-add-cart    { font-size: .68rem; padding: 8px; }
  .btn-quick-view  { font-size: .65rem; }

  /* Full-width offcanvas on small mobile */
  .offcanvas { width: 100vw; max-width: 100vw; }

  .mini-grid { gap: 10px; }
}

/* ===== Mobile header: compact action buttons ===== */
@media (max-width: 576px) {
  /* Compact lang dropdown on mobile */
  .lang-dropdown__btn { padding: 5px 8px; font-size: .78rem; }

  /* Hide search button on mobile (available in offcanvas) */
  #searchOpen { display: none; }

  /* Tighter header actions */
  .header-actions { gap: 2px; }

  /* Dropdown opens upward on mobile to avoid clipping */
  .lang-dropdown__menu {
    top: auto;
    bottom: calc(100% + 6px);
    transform-origin: bottom right;
  }
  .lang-dropdown.is-open .lang-dropdown__menu {
    transform: translateY(0) scale(1);
  }
}

/* ===== ≤ 900px — offcanvas is 340px on tablet ===== */
@media (max-width: 900px) and (min-width: 481px) {
  .offcanvas { width: 340px; }
}

/* ===== Landscape mobile ===== */
@media (max-width: 820px) and (orientation: landscape) {
  .hero-slider  { height: 320px; }
  .slide__h1    { font-size: 1.8rem; margin-bottom: 14px; }
  .slide__wm    { display: none; }
  .slide__content { padding: 30px 0 20px; }
}

/* ══════════════════════════════════════════════════════
   MOBILE DESIGN OVERHAUL  ≤ 576px
   ══════════════════════════════════════════════════════ */
@media (max-width: 576px) {

  /* ── Announce bar ── */
  .announce-bar { height: 32px; }
  .announce-bar__ticker span { font-size: .72rem; }

  /* ── Header ── */
  .site-header { box-shadow: 0 2px 16px rgba(0,0,0,.35); }
  .header-row1__inner { padding: 0 14px; }
  .site-logo__text { font-size: .85rem; letter-spacing: .06em; }

  /* sub-nav hidden on mobile — already in nav */
  .header-row2 { display: none; }

  /* ── Hero Slider — full-height mobile card ── */
  .hero-slider {
    height: 100svh;
    min-height: 520px;
    max-height: 780px;
    background: linear-gradient(160deg, #060d18 0%, #0a1628 60%, #061410 100%) !important;
  }
  .slide__inner {
    grid-template-columns: 1fr;
    align-items: flex-end;
    height: 100%;
    padding-bottom: 90px;
  }
  .slide__content {
    max-width: 100%;
    padding: 0 20px 0;
    text-align: center;
  }
  .slide__tag {
    font-size: .65rem;
    padding: 5px 14px;
    margin-bottom: 14px;
  }
  .slide__h2 { font-size: .75rem; margin-bottom: 6px; }
  .slide__h1 {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1.0;
    margin-bottom: 16px;
  }
  .slide__p {
    font-size: .85rem;
    max-width: 320px;
    margin: 0 auto 22px;
    line-height: 1.55;
  }
  .slide__btns {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .slide__btns .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 14px 24px;
    font-size: .88rem;
  }
  .slide__wm { font-size: 38vw; opacity: .04; }

  /* Slider arrows — larger touch targets */
  .slider-arrow {
    width: 44px; height: 44px;
    font-size: .85rem;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
  }
  .slider-arrow--prev { left: 12px; }
  .slider-arrow--next { right: 12px; }

  /* Dots */
  .slider-dots { bottom: 70px; }

  /* ── Product cards ── */
  .products-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
  }
  .product-image-wrapper { aspect-ratio: 3/4; }
  .product-info { padding: 10px 10px 6px; }
  .product-name {
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-price { font-size: .85rem; margin-top: 4px; }
  .product-actions { padding: 0 8px 10px; }
  .btn-add-cart {
    font-size: .72rem;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: .04em;
  }
  .btn-quick-view { display: none; }

  /* ── Carousels — show 2 on mobile ── */
  .carousel__slide { flex: 0 0 calc(50% - 8px); }

  /* ── Pick sections ── */
  .pick-section { padding: 32px 0; }
  .pick-title { font-size: clamp(1.2rem, 6vw, 1.6rem); margin-bottom: .4rem; }
  .pick-divider { margin: .4rem auto 1.6rem; }

  .clubs-row {
    gap: 12px;
    padding: 0 16px 12px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .club-item { scroll-snap-align: start; }
  .club-circle { width: 78px; height: 78px; padding: 8px; }
  .club-item span { font-size: .7rem; }

  .nations-row {
    gap: 14px 10px;
    padding: 0 16px;
    justify-content: flex-start;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .nation-circle { width: 100%; height: auto; aspect-ratio: 1; }
  .nation-item span { font-size: .68rem; letter-spacing: .02em; }

  /* ── Section headings ── */
  .section-title { font-size: clamp(1.2rem, 5.5vw, 1.55rem); }
  .eyebrow { font-size: .65rem; }

  /* ── Section padding ── */
  .all-products-section,
  .products-carousel-section,
  .national-picker,
  .split-carousel-section,
  .legends-section,
  .retro-section,
  .club-picker { padding: 36px 0; }

  /* ── Split banner ── */
  .split-banner { min-height: 260px; border-radius: 14px; }
  .split-banner__title { font-size: 1.5rem; line-height: 1.15; }
  .split-banner__content { padding: 24px 18px; }
  .split-banner .btn { padding: 11px 20px; font-size: .8rem; }

  /* ── Newsletter ── */
  .newsletter-section { padding: 40px 0; border-radius: 18px 18px 0 0; }
  .newsletter-section__inner { padding: 0 20px; }
  .newsletter-section .section-title { font-size: 1.3rem; }
  .newsletter-form input {
    padding: 14px 16px;
    font-size: .9rem;
    border-radius: 10px;
  }
  .newsletter-form button {
    border-radius: 10px;
    padding: 14px;
    font-size: .88rem;
    font-weight: 700;
  }

  /* ── Trust bar ── */
  .trust-card { padding: 18px 20px; }
  .trust-card__title { font-size: .92rem; }
  .trust-card__text { font-size: .8rem; }

  /* ── Footer ── */
  .site-footer__grid { gap: 20px; padding: 32px 0 20px; }
  .footer-nav__title { font-size: .78rem; }
  .footer-nav a { font-size: .82rem; }

  /* ── Mobile bottom nav — enhanced ── */
  .mobile-bottom-nav {
    height: 62px;
    padding: 0 0 env(safe-area-inset-bottom, 0);
    box-shadow: 0 -1px 0 rgba(255,255,255,.06), 0 -4px 20px rgba(0,0,0,.4);
    gap: 0;
  }
  .mbn-link {
    flex: 1;
    padding: 8px 4px 6px;
    gap: 4px;
    font-size: .6rem;
    letter-spacing: .03em;
    border-radius: 0;
    min-height: 100%;
  }
  .mbn-link i { font-size: 1.25rem; }
  .mbn-link:hover,
  .mbn-link:focus,
  .mbn-link.is-active { color: var(--color-primary); }

  /* ── WhatsApp FAB — above bottom nav ── */
  .wa-fab {
    bottom: 72px;
    right: 14px;
    width: 50px; height: 50px;
    font-size: 1.35rem;
  }
  .back-top {
    bottom: 138px;
    right: 14px;
    width: 40px; height: 40px;
    font-size: .8rem;
  }

  /* ── Cart drawer ── */
  .cart-drawer { border-radius: 20px 20px 0 0; }
  .cart-drawer__head { padding: 18px 18px 14px; }
  .cart-drawer__head h3 { font-size: 1rem; }

  /* ── Offcanvas ── */
  .offcanvas__head { padding: 18px 16px; }
  .offcanvas__foot { padding: 16px; }
  .offcanvas__nav { padding: 0 8px; }

  /* ── Search overlay ── */
  .search-overlay__bar { border-radius: 12px; padding: 0 14px; }
  .search-overlay__input { font-size: 1.1rem; }
  .search-overlay__hint { font-size: .82rem; }

  /* ── Social sidebar — hide on small mobile ── */
  .social-sidebar { display: none; }
  .reviews-widget { display: none; }

  /* ── Shapes — hide most ── */
  .shape { display: none; }
}
