/*
 * teba-responsive.css
 * Full site responsive overrides.
 * Loaded last — highest specificity wins.
 *
 * Breakpoints:
 *   Desktop      > 1280px  (baseline — no query needed)
 *   Laptop        1024px
 *   Tablet         768px
 *   Mobile L       640px
 *   Mobile S       390px
 */

/* ============================================================
   LAPTOP  ≤ 1280px
   ============================================================ */
@media (max-width: 1280px) {
  :root { --ts-pad: 32px; }

  /* Header */
  .ts-header-top { padding: 10px 28px; }
  .ts-header-nav { padding: 0 28px; }
  .ts-header-nav__link { padding: 0 10px; font-size: 10px; }
  .ts-header-search { max-width: 420px; }

  /* Hero */
  .teba-hero-slider__content { padding: 0 40px; }
  .teba-hero-slider__content h2 { font-size: 72px; }

  /* Player merch featured */
  .ts-pm-featured__title { font-size: 44px; }
  .ts-psingle-hero__number-bg { font-size: 200px; }
}

/* ============================================================
   TABLET  ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {
  :root { --ts-pad: 24px; }

  /* ── Header ── */
  .ts-header-top { padding: 10px 20px; gap: 12px; height: 60px; }
  .ts-header-brand__logo { height: 38px; width: 38px; }
  .ts-header-brand__name { font-size: 17px; }
  .ts-header-search { max-width: 320px; }
  .ts-header-search form { height: 38px; }

  /* Nav collapses — show hamburger */
  .ts-header-nav { display: none; }
  .ts-hamburger { display: flex !important; }

  /* ── Promo bar ── */
  .ts-promo-bar { height: 32px; }

  /* ── Hero slider ── */
  .teba-hero-slider { height: 500px; }
  .teba-hero-slider__content { padding: 0 32px; max-width: 100%; }
  .teba-hero-slider__content h2 { font-size: clamp(36px, 6vw, 64px); }
  .teba-hero-slider__content p  { font-size: 14px; }

  /* ── Trust bar ── */
  .ts-trust-bar {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .ts-trust-bar__item:nth-child(2) { border-right: none !important; }
  .ts-trust-bar__item:nth-child(3) { border-top: 1px solid rgba(11,11,12,.06); }
  .ts-trust-bar__item { padding: 18px 20px !important; }

  /* ── Category grid ── */
  .ts-category-grid { padding: 0 24px 48px !important; }
  .ts-category-grid.ts-grid-cols-4 { grid-template-columns: repeat(2, 1fr) !important; }

  /* ── Team strip ── */
  .ts-team-strip { padding: 32px 24px !important; }
  .ts-team-strip--scroll { padding: 32px 24px !important; }

  /* ── Products block ── */
  .ts-products-block { padding: 0 24px 48px !important; }
  .ts-products-grid.ts-grid-cols-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .ts-products-grid.ts-grid-cols-3 { grid-template-columns: repeat(2, 1fr) !important; }

  /* ── Editorial heading ── */
  .ts-editorial-heading { padding: 40px 24px 0 !important; }

  /* ── Image CTA ── */
  .ts-image-cta { min-height: 400px; }
  .ts-image-cta__inner { padding: 48px 24px !important; }
  .ts-image-cta__inner h2 { font-size: 44px !important; }

  /* ── Newsletter ── */
  .ts-newsletter--signup.ts-style-purple { padding: 56px 24px !important; }
  .ts-newsletter { padding: 56px 24px !important; }

  /* ── Archive / category ── */
  .ts-browse-layout { grid-template-columns: 200px 1fr; }
  .ts-browse-content { padding: 24px 20px; }
  .ts-cat-hero { padding: 24px 24px 28px; }

  /* ── Shop footer ── */
  .ts-shop-footer__grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    padding: 40px 24px 32px !important;
  }
  .ts-footer__main {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    padding: 40px 24px 32px !important;
  }
  .ts-shop-footer__bottom { padding: 16px 24px !important; }
  .ts-footer__bottom { padding: 16px 24px !important; }

  /* ── Collabs hero ── */
  .ts-collabs-hero { padding: 64px 24px 0; }
  .ts-collabs-hero__features { grid-template-columns: repeat(2, 1fr) !important; gap: 24px; }

  /* ── Featured collab drop ── */
  .ts-collab-drop { padding: 48px 24px; }
  .ts-collab-drop__inner { grid-template-columns: 1fr !important; gap: 40px; }
  .ts-collab-drop__products { grid-template-columns: repeat(3, 1fr) !important; }

  /* ── More / past drops ── */
  .ts-more-drops  { padding: 48px 24px; }
  .ts-past-drops  { padding: 48px 24px; }
  .ts-creators-wanted { padding: 48px 24px; }
  .ts-creators-wanted__inner { grid-template-columns: 1fr !important; gap: 32px; }
  .ts-creators-wanted__actions { flex-direction: row; }

  /* ── Player merch ── */
  .ts-pm-hero { padding: 64px 24px 0; }
  .ts-pm-hero__features { grid-template-columns: repeat(2, 1fr) !important; gap: 24px; }
  .ts-pm-featured { padding: 48px 24px; }
  .ts-pm-featured__inner { grid-template-columns: 1fr !important; gap: 40px; }
  .ts-pm-featured__products { grid-template-columns: repeat(2, 1fr) !important; }
  .ts-pm-cta { padding: 48px 24px; }
  .ts-pm-cta__inner { grid-template-columns: 1fr !important; gap: 32px; }
  .ts-pm-section { padding: 48px 24px !important; }
  .ts-pm-legends-header { grid-template-columns: 1fr !important; }

  /* ── Player single ── */
  .ts-psingle-hero__inner { grid-template-columns: 1fr !important; padding: 48px 24px; }
  .ts-psingle-hero__right { display: none !important; }
  .ts-psingle-collection { padding: 48px 24px !important; }
  .ts-psingle-other { padding: 48px 24px !important; }

  /* ── Cart / checkout ── */
  .ts-cart-layout { grid-template-columns: 1fr !important; }
  .ts-checkout-layout { grid-template-columns: 1fr !important; }
  .ts-checkout-right { position: static; }
}

/* ============================================================
   MOBILE L  ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  /* Archive sidebar collapses below grid */
  .ts-browse-layout { grid-template-columns: 1fr !important; }
  .ts-filters-sidebar {
    border-right: none !important;
    border-bottom: 1px solid rgba(11,11,12,.08);
  }
  .ts-filters-sidebar__inner { position: static !important; padding: 20px 16px; }
  .ts-browse-content { padding: 16px; }
  .ts-browse-content .ts-products-grid.ts-grid-cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Collab single */
  .ts-collab-single__body { grid-template-columns: 1fr !important; padding: 40px 20px; }
}

/* ============================================================
   MOBILE  ≤ 640px
   ============================================================ */
@media (max-width: 640px) {
  :root { --ts-pad: 16px; }

  /* ── Promo bar ── */
  .ts-promo-bar { height: 30px; }
  .ts-promo-bar__msg { font-size: 9px; letter-spacing: .1em; }

  /* ── Header ── */
  .ts-header-top { padding: 8px 16px; gap: 8px; height: 56px; }
  .ts-header-brand__logo { height: 34px; width: 34px; }
  .ts-header-brand__name { font-size: 15px; }
  .ts-header-brand__sub { display: none; }
  .ts-header-search {
    flex: 1;
    max-width: none;
  }
  .ts-header-search form { height: 36px; }
  .ts-header-search input[type="search"] { font-size: 13px; padding: 0 12px; }
  .ts-header-actions .ts-header-icon-btn:not(.ts-cart-btn) { display: none; }

  /* ── Hero ── */
  .teba-hero-slider { height: 420px; }
  .teba-hero-slider__content { padding: 0 16px; }
  .teba-hero-slider__content h2 { font-size: 36px !important; line-height: .9; }
  .teba-hero-slider__content p  { font-size: 13px; margin-bottom: 24px; }
  .teba-hero-slider__arrow { display: none; }
  .teba-hero-slider__button { padding: 11px 20px; font-size: 10px; }

  /* ── Trust bar ── */
  .ts-trust-bar { grid-template-columns: 1fr !important; }
  .ts-trust-bar__item { border-right: none !important; border-bottom: 1px solid rgba(11,11,12,.06); }
  .ts-trust-bar__item:last-child { border-bottom: none !important; }
  .ts-trust-bar__item { padding: 16px !important; }

  /* ── Section headings ── */
  .ts-editorial-heading {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 32px 16px 0 !important;
    margin-bottom: 20px !important;
  }
  .ts-editorial-heading h2 { font-size: 28px !important; }
  .ts-outline-button { align-self: flex-start; }

  /* ── Category grid ── */
  .ts-category-grid {
    grid-template-columns: 1fr !important;
    padding: 0 16px 40px !important;
  }
  .ts-category-card__media { height: 160px !important; }
  .ts-category-card__body h3 { font-size: 18px !important; }

  /* ── Team strip ── */
  .ts-team-strip { padding: 24px 16px !important; }
  .ts-team-strip--scroll { padding: 24px 16px !important; }
  .ts-team-strip__intro h2 { font-size: 22px !important; }
  .ts-team-strip__item img,
  .ts-team-strip__logo-placeholder { width: 60px !important; height: 60px !important; }

  /* ── Products ── */
  .ts-products-block { padding: 0 16px 40px !important; }
  .ts-products-grid.ts-grid-cols-4,
  .ts-products-grid.ts-grid-cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .ts-products-grid.ts-mobile-cols-1 { grid-template-columns: 1fr !important; }
  .ts-shop-card__image { height: 180px !important; }
  .ts-shop-card__title { font-size: 12px !important; }
  .ts-shop-card__price { font-size: 13px !important; }

  /* ── Image CTA ── */
  .ts-image-cta { min-height: 340px !important; }
  .ts-image-cta__inner { padding: 40px 16px !important; }
  .ts-image-cta__inner h2 { font-size: 32px !important; line-height: .9 !important; }
  .ts-image-cta__inner p  { font-size: 13px !important; }

  /* ── Newsletter ── */
  .ts-newsletter--signup.ts-style-purple { padding: 48px 16px !important; }
  .ts-newsletter { padding: 48px 16px !important; }
  .ts-newsletter__inner h2 { font-size: 28px !important; }
  .ts-newsletter__form {
    flex-direction: column !important;
    border-radius: 6px !important;
  }
  .ts-newsletter__form input[type="email"],
  .ts-newsletter__form button[type="submit"] {
    width: 100% !important;
    height: 48px !important;
    border-radius: 0 !important;
  }

  /* ── Shop footer ── */
  .ts-shop-footer__grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 40px 16px 28px !important;
  }
  .ts-shop-footer__bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px !important;
  }
  .ts-footer__main {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 40px 16px 28px !important;
  }
  .ts-footer__bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px !important;
    gap: 12px !important;
  }

  /* ── Archive / category ── */
  .ts-cat-hero { padding: 20px 16px 24px !important; }
  .ts-cat-hero__title { font-size: 40px !important; }
  .ts-browse-content .ts-products-grid.ts-grid-cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── Collabs hero ── */
  .ts-collabs-hero { padding: 48px 16px 0 !important; }
  .ts-collabs-hero__title { font-size: 52px !important; }
  .ts-collabs-hero__features { grid-template-columns: 1fr !important; }
  .ts-collabs-hero__stats { gap: 20px !important; }
  .ts-collabs-hero__stat-num { font-size: 24px !important; }

  /* ── Collab drop ── */
  .ts-collab-drop { padding: 40px 16px !important; }
  .ts-collab-drop__products { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .ts-collab-drop__title { font-size: 36px !important; }

  /* ── Drop cards ── */
  .ts-more-drops { padding: 40px 16px !important; }
  .ts-past-drops { padding: 40px 16px !important; }
  .ts-more-drops__grid,
  .ts-past-drops__grid { grid-template-columns: 1fr !important; }

  /* ── Creators wanted ── */
  .ts-creators-wanted { padding: 48px 16px !important; }
  .ts-creators-wanted__title { font-size: 28px !important; }
  .ts-creators-wanted__actions { flex-direction: column !important; width: 100% !important; }
  .ts-creators-wanted__btn-primary,
  .ts-creators-wanted__btn-secondary { width: 100% !important; justify-content: center !important; }

  /* ── Player merch hero ── */
  .ts-pm-hero { padding: 48px 16px 0 !important; }
  .ts-pm-hero__title { font-size: 52px !important; }
  .ts-pm-hero__features { grid-template-columns: 1fr !important; }
  .ts-pm-hero__stats { gap: 20px !important; }

  /* ── Player featured drop ── */
  .ts-pm-featured { padding: 40px 16px !important; }
  .ts-pm-featured__title { font-size: 32px !important; }
  .ts-pm-featured__products { grid-template-columns: 1fr !important; }
  .ts-pm-product-card__media { height: 160px !important; }

  /* ── Player drop cards ── */
  .ts-pm-section { padding: 40px 16px !important; }
  .ts-pm-drops-grid { grid-template-columns: 1fr !important; }

  /* ── Player CTA ── */
  .ts-pm-cta { padding: 40px 16px !important; }
  .ts-pm-cta__title { font-size: 26px !important; }
  .ts-pm-cta__actions { width: 100% !important; }
  .ts-pm-cta__btn-primary,
  .ts-pm-cta__btn-secondary { width: 100% !important; justify-content: center !important; }

  /* ── Player single ── */
  .ts-psingle-hero { min-height: 0 !important; }
  .ts-psingle-hero__inner { padding: 40px 16px !important; }
  .ts-psingle-hero__title { font-size: 32px !important; }
  .ts-psingle-collection { padding: 40px 16px !important; }
  .ts-psingle-other { padding: 40px 16px !important; }
  .ts-psingle-collection .ts-products-grid.ts-grid-cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── Cart ── */
  .ts-main--cart .ts-container { padding: 0 16px; }
  .ts-cart-table th.ts-cart-table__col-price,
  .ts-cart-table td.ts-cart-table__price { display: none; }
  .ts-cart-actions { flex-direction: column; gap: 10px; }
  .ts-cart-actions .ts-btn { width: 100%; justify-content: center; }

  /* ── Team pages ── */
  .ts-team-hero { padding: 56px 16px 40px; }
  .ts-team-hero__name { font-size: 36px !important; }
  .ts-team-store-products { padding: 40px 16px !important; }

  /* ── 404 ── */
  .ts-404__num { font-size: 100px; }
  .ts-404__title { font-size: 32px; }
  .ts-404__actions { flex-direction: column; align-items: center; }

  /* ── Cart drawer ── */
  .ts-cart-drawer { width: 100vw !important; }
}

/* ============================================================
   MOBILE S  ≤ 390px
   ============================================================ */
@media (max-width: 390px) {
  .ts-header-brand__name { display: none; }
  .teba-hero-slider { height: 380px; }
  .teba-hero-slider__content h2 { font-size: 30px !important; }
  .ts-products-grid.ts-grid-cols-4,
  .ts-products-grid.ts-grid-cols-3,
  .ts-products-grid.ts-grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
  .ts-shop-card__image { height: 220px !important; }
  .ts-collab-drop__products { grid-template-columns: 1fr !important; }
  .ts-pm-featured__products { grid-template-columns: 1fr !important; }
  .ts-newsletter__inner h2 { font-size: 24px !important; }
}
