/* ==========================================================================
   Forteez — responsive layer and reduced motion
   Breakpoints: 1280 (laptop) · 1100 (small laptop / tablet landscape) · 900 (tablet) · 600 (mobile)
   ========================================================================== */

@media (max-width: 1280px) {
  .search-overlay__results { grid-template-columns: repeat(3, 1fr); }
  .search-page .product-grid, .page-wishlist .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid--4 { gap: 2.5rem 1rem; }
}

@media (max-width: 1100px) {
  .recent__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
  .site-footer__cols { grid-column: 1 / -1; grid-row: 2; }
  .site-footer__promise ul { grid-template-columns: 1fr 1fr; }
  .site-footer__promise li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hstory__steps li:nth-child(2) { margin-top: 0; }
  .hrev { --per: 2; }
  :root { --header-h: 64px; }
  .main-nav, .hide-md { display: none; }
  .site-header__inner { grid-template-columns: 1fr auto 1fr; gap: .5rem; }
  .site-header__burger { display: inline-grid; justify-self: start; }
  .logo { justify-self: center; }
  .site-header__actions { justify-self: end; }

  .shop-body { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0 auto auto 0; z-index: 90; width: min(400px, 92vw); height: 100vh; height: 100dvh; max-height: none; top: 0;
    display: flex; flex-direction: column; background: var(--c-paper); padding: 0 1.5rem; transform: translateX(-100%); transition: transform .55s var(--ease); visibility: hidden;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--c-line); position: sticky; top: 0; background: var(--c-paper); z-index: 1; }
  .filters__head h2 { margin: 0; font-size: 1.1rem; color: var(--c-ink); }
  .filters__form { flex: 1; min-height: 0; overflow-y: auto; padding-top: 1rem; overscroll-behavior: contain; }
  .filters { overflow: hidden; }
  .filters__foot { display: grid; grid-template-columns: 1fr 1.6fr; gap: .5rem; padding: 1rem 0 1.25rem; border-top: 1px solid var(--c-line); }
  .toolbar__filter { display: inline-flex; }

  .benefits__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits__grid li:nth-child(3) { padding-left: 0; border-left: 0; }
  .benefits__grid li { padding-bottom: 2rem; }
  .about-values__grid, .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega__inner { grid-template-columns: 1fr 1fr; }
  .mega__feature { display: none; }
  .pdp { grid-template-columns: 1fr 1fr; }
  .pdp__gallery { grid-template-columns: 1fr; }
  .pdp__thumbs { order: 2; grid-auto-flow: column; grid-auto-columns: 72px; overflow-x: auto; }
  .reviews-block__grid { grid-template-columns: 1fr; }
  .cart-page__grid { grid-template-columns: 1fr 340px; }
  .faq { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .cart-page__head { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .account__nav { padding: 0; background: none; border: 0; }
  .hh { height: max(560px, calc(100svh - 36px)); }
  .hh__content { padding-bottom: 6.5rem; }
  .hh__tag { display: none; }
  .hh__title { font-size: clamp(2.8rem, 10vw, 4.6rem); }
  .hh__index { gap: 1rem; }
  .hh__bar { width: 40px; }
  .hcat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 48vw, 340px); gap: .6rem; }
  .hcat__item, .hcat__item--0, .hcat__item--5 { grid-column: span 1; }
  .hcat__item--0, .hcat__item--5 { grid-column: span 2; }
  .hcat__label { left: .9rem; right: .9rem; bottom: .8rem; flex-direction: column; align-items: flex-start; gap: .35rem; }
  .hstory__intro { grid-template-columns: 1fr; }
  .hstory__intro h2 { grid-row: auto; margin-bottom: 1.25rem; }
  .hstory__steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .hstory__img { aspect-ratio: 4 / 3; }
  .hsec-head { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .hshow__tabs { width: 100%; }
  .insta__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root { --section: clamp(2.5rem, 9vw, 3.5rem); }

  .spotlight__grid, .looks__panel, .coll-ch, .pdp-story__grid,
  .workshops__grid, .about-team__grid, .contact__grid, .stores__grid, .post-lead, .checkout__grid { grid-template-columns: 1fr; }


  .looks__head { flex-direction: column; align-items: flex-start; }
  .tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }


  .edit-banner { min-height: 90svh; }
  .edit-banner__foot, .section-head, .shop-hero__row { flex-direction: column; align-items: flex-start; }
  .section-head__side { width: 100%; justify-content: space-between; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .search-page .product-grid, .page-wishlist .product-grid, .product-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .coll-ch--rev .coll-ch__img { order: 0; }

  .pdp { grid-template-columns: 1fr; }
  .pdp__gallery { position: static; margin-inline: calc(-1 * var(--gutter)); }
  .pdp__stage { border-radius: 0; cursor: default; }
  .pdp__thumbs { display: none; }
  .pdp__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 1rem; display: flex; justify-content: center; gap: .4rem; }
  .pdp__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); transition: width var(--t); }
  .pdp__dots span.is-active { width: 22px; border-radius: 4px; background: #fff; }
  .pdp__zoom-btn { bottom: auto; top: 1rem; }
  .pdp__sticky { position: static; }

  .cart-page__grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .co-summary { position: static; order: -1; padding: 0; background: none; }
  .co-summary__toggle { display: flex; align-items: center; gap: .5rem; width: 100%; padding: 1rem; background: var(--c-fog); border-radius: var(--r-sm); }
  .co-summary__toggle strong { margin-left: auto; }
  .co-summary__body { padding: 1.5rem 1rem 0; }
  .co-summary__body:not(.is-open) { display: none; }
  .co-summary__body .summary__title { display: none; }
  .checkout__form { max-width: none; }

  .faq { grid-template-columns: 1fr; }
  .faq__nav { position: static; }
  .faq__nav ul { display: flex; overflow-x: auto; border: 0; gap: .5rem; scrollbar-width: none; }
  .faq__nav a { border: 1px solid var(--c-line-strong); border-radius: var(--r-pill); white-space: nowrap; margin: 0; padding: .4rem 1rem; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card--tall { grid-row: auto; }
  .post-card--tall .post-card__img { aspect-ratio: 4 / 3; }
  .account__grid { grid-template-columns: 1fr; }
  .account__nav { display: flex; overflow-x: auto; scrollbar-width: none; gap: .4rem; }
  .account__tab { white-space: nowrap; flex-shrink: 0; padding: .6rem .9rem; border: 1px solid var(--c-line-strong); border-radius: var(--r-pill); }
  .auth { grid-template-columns: 1fr; }
  .auth__media { display: none; }
  .timeline__list::before { left: 4.5rem; }
  .timeline__list li { grid-template-columns: 4.5rem 1fr; gap: 1.5rem; }
  .timeline__list li::before { left: calc(4.5rem - 5px); }
  .timeline__year { font-size: 1.8rem; }
  .about-hero__a { grid-column: 1 / 11; }
  .about-hero__b { grid-column: 8 / 13; margin-left: 0; }
  .search-overlay__body { grid-template-columns: 1fr; gap: 1.5rem; }
  .search-overlay__popular ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
  .search-overlay__results { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .cart-lines .line { grid-template-columns: 92px 1fr; padding: 1rem; gap: 1rem; }
  .cart-lines .line__name { font-size: 1.35rem; }
  .flow-steps li + li::before { width: 1rem; }
  .quick-actions { grid-template-columns: 1fr; }
  .account__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .account__avatar { width: 56px; height: 56px; font-size: 1.7rem; }
  .co-section legend::before { width: 26px; height: 26px; }
  .recent__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem .75rem; }
  .recent__grid .pcard:nth-child(n+5) { display: none; }
  .pdp__alt { grid-template-columns: 1fr; }
  .site-footer__main { grid-template-columns: 1fr; }
  .site-footer__cols { grid-row: auto; }
  .hh { height: max(540px, calc(100svh - 32px)); }
  .hh__ctas { gap: 1.25rem; }
  .hh__ctas .btn { width: 100%; }
  .hh__ui { padding-block: 1.1rem 1.25rem; }
  .hh__nav .hh__arrow:not([data-hero-pause]) { display: none; }
  .hh__content { padding-bottom: 6.25rem; }
  .hh__text { font-size: .98rem; margin-bottom: 1.5rem; }
  .hcat__name { font-size: 1.45rem; }
  .hrev { --per: 1; }
  .hrev__side { width: 100%; justify-content: space-between; }
  .hrev__nav { display: none; }
  .hrev__score strong { font-size: 3rem; }
  .coll-facts { gap: .5rem 1.5rem; }
  :root { --header-h: 58px; }
  .announce { height: 32px; }
  .site-header--overlay { top: 32px; }
  .hide-sm { display: none !important; }
  .icon-btn { width: 40px; height: 40px; }
  .site-header__actions { gap: 0; }
  .logo { width: 96px; }
  .round-btn { width: 44px; height: 44px; }
  .product-grid { gap: 1.75rem .75rem; }
  .pcard__title { font-size: .92rem; }
  .pcard__actions { transform: none; left: auto; right: .5rem; bottom: .5rem; }
  .pcard__actions .btn:first-child { display: none; }
  .pcard__actions .btn--glass { width: 38px; padding: 0; }
  .pcard__wish { width: 36px; height: 36px; }
  .product-grid.is-list .pcard { grid-template-columns: 110px 1fr; gap: 1rem; }
  .product-grid.is-list .pcard__title { font-size: 1.4rem; }
  .product-grid.is-list .pcard__info::after { display: none; }
  .benefits__grid { grid-template-columns: 1fr; }
  .benefits__grid li { padding-left: 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--c-line-strong); }
  .about-values__grid, .trust-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .stat-row div { padding: .9rem .75rem; }
  .stat-row .icon { display: none; }
  .stat-row strong { font-size: 1.35rem; }
  .insta__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insta__grid li:nth-child(n+7) { display: none; }
  .insta__head { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .newsletter__field { flex-direction: column; border-radius: var(--r-md); padding: .5rem; }
  .newsletter__field input { min-height: 46px; }
  .site-footer__promise ul { grid-template-columns: 1fr; }
  .site-footer__promise li, .site-footer__promise li + li { padding: .9rem 0; border-left: 0; }
  .site-footer__promise li + li { border-top: 1px solid rgba(244, 241, 234, .1); }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__cols > div:last-child { grid-column: span 2; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .field-row, .field-row--3 { grid-template-columns: 1fr; }
  .express__row { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .toolbar__right { width: 100%; justify-content: space-between; margin-left: 0; order: 3; }
  .view-toggle { display: none; }
  .toolbar__count { margin-left: auto; }
  .cart-lines .line { grid-template-columns: 88px 1fr; }
  .cart-lines .line__price { grid-column: 2; text-align: left; }
  .cart-lines .line__name { font-size: 1.4rem; }
  .order { grid-template-columns: auto 1fr; }
  .order .status, .order .link-line { grid-column: 2; justify-self: start; }
  .post-grid { grid-template-columns: 1fr; }
  .search-page .product-grid, .page-wishlist .product-grid, .product-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-page__form { padding-left: 1rem; }
  .search-page__form .btn { padding: 0 1rem; }
  .pdp__buy { flex-wrap: wrap; }
  .pdp__add { order: 3; flex-basis: 100%; }
  .pdp__buy .qty { flex: 1; justify-content: space-between; }
  .pdp-story__specs { grid-template-columns: repeat(3, auto); gap: 1.25rem; }
  .pdp-story__specs dd { font-size: 1.5rem; }
  .sticky-atc__name { font-size: var(--fs-xs); }
  .article__lede::first-letter { font-size: 4.2rem; }
  .article__product { flex-direction: column; align-items: flex-start; }
  .edit-banner__foot .btn { width: 100%; }
  .workshops__list li { grid-template-columns: 1fr; gap: .2rem; }
  .mobile-menu__secondary { grid-template-columns: 1fr; }
  .to-top { right: .75rem; bottom: .75rem; width: 44px; height: 44px; }
  .page-product .to-top { bottom: 5rem; }
  .quickview { width: 100%; max-height: 92dvh; top: auto; bottom: 0; left: 0; transform: translateY(100%); border-radius: var(--r-md) var(--r-md) 0 0; }
  .quickview.is-open { transform: none; }
  .qv { grid-template-columns: 1fr; }
  .qv__media { aspect-ratio: 1; }
  .account__head { flex-direction: column; align-items: flex-start; }
  .co-steps { font-size: var(--fs-xs); gap: .35rem; }
  .co-steps li + li::after { width: .6rem; }
  .co-header__secure { display: none; }
  .co-header__inner .link-line { white-space: nowrap; }
  .nf__art text { font-size: 200px; }
}

@media (hover: none) {
  .pcard__actions { transform: none; }
  .pcard__img--alt { display: none; }
}

/* ---------- Reduced motion: keep every state change, drop the travel ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html:not(.gsap-ready) .marquee__track { animation: none; }
  .about-manifesto__text .word { opacity: 1 !important; }
  .hotspot { animation: none; }
}

@media print {
  .site-header, .announce, .site-footer, .to-top, .cart-drawer, .search-overlay, .mobile-menu, .toast-region, .cursor, .scroll-progress { display: none !important; }
  body { background: #fff; }
}

/* Responsive fixes (Forteez QA pass) ------------------------------------ */
/* Footer newsletter column: grid child was sizing to its min-content and spilling past the viewport around 1100-1440px */
.site-footer__news { grid-template-columns: minmax(0, 1fr); }
.site-footer__news .newsletter { max-width: 100%; }
/* keep the last payment badge clear of the fixed back-to-top button at the bottom of the page */
.site-footer__bottom { padding-right: max(var(--gutter), calc(1.25rem + 48px + 1rem)); }
@media (max-width: 600px) { .site-footer__bottom { padding-right: var(--gutter); padding-bottom: 5rem; } }

@media (max-width: 900px) {
  /* single-column tracks must be allowed to shrink below their content's min-width */
  .checkout__grid, .auth { grid-template-columns: minmax(0, 1fr); }
  .co-steps, .flow-steps { flex-wrap: wrap; row-gap: .6rem; }
}

@media (max-width: 400px) {
  .co-steps { padding: .85rem 1rem; }
  .express { padding: 1rem; }
  .flow-steps { letter-spacing: .08em; }
  .flow-steps { column-gap: 1rem; }
  .co-steps { column-gap: .9rem; }
  /* connector lines look broken once the steps wrap, so drop them on very small screens */
  .flow-steps li + li::before, .co-steps li + li::after { display: none; }
  .auth__card { padding: 1.5rem 1.15rem; }
}

/* ======================================================================
   Forteez v3: brand colour, logo, category arrows, mobile sliders
   ====================================================================== */
/* Header + footer use the logo's black instead of the navy ink */
.announce, .site-header, .mega, .mobile-menu, .co-header, .site-footer { --c-ink: var(--c-chrome); --c-text: var(--c-chrome); }

/* Logo lockup (vector mark + wordmark) */
.logo { width: 150px; line-height: 0; }
.logo .logo__word { font-family: var(--f-ui); font-size: 21px; font-weight: 700; letter-spacing: .08em; fill: currentColor; }
.logo--footer, .site-footer .logo--footer { width: 176px; }

/* Category pills: arrow buttons + edge fade */
.cat-scroller { position: relative; }
.cat-pills { scroll-behavior: smooth; }
.cat-pills .pill { flex-shrink: 0; }
.cat-scroller__btn { position: absolute; top: calc(50% - .125rem); z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: var(--c-paper); color: #000; border: 1px solid var(--c-line-strong); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .45); cursor: pointer; transition: opacity var(--t-fast), border-color var(--t-fast), background var(--t-fast), color var(--t-fast); }
.cat-scroller__btn[hidden] { display: none; }
.cat-scroller__btn--prev { left: 0; }
.cat-scroller__btn--next { right: 0; }
.cat-scroller__btn--prev .icon { transform: rotate(180deg); }
.cat-scroller__btn .icon { width: 1.1rem; height: 1.1rem; }
.cat-scroller__btn:hover { background: #000; color: var(--c-on-dark); border-color: #000; }
.cat-scroller__btn:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.cat-scroller__btn:disabled { opacity: 0; pointer-events: none; }
.cat-scroller.is-overflowing .cat-pills { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%); }
.cat-scroller.is-overflowing.at-start .cat-pills { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent 100%); }
.cat-scroller.is-overflowing.at-end .cat-pills { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px); mask-image: linear-gradient(90deg, transparent 0, #000 64px); }
.cat-scroller.is-overflowing.at-start.at-end .cat-pills { -webkit-mask-image: none; mask-image: none; }

/* Benefits row becomes a swipe slider on phones */
.mslider-dots { display: none; }
@media (max-width: 767px) {
  .benefits__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .75rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .benefits__grid::-webkit-scrollbar { display: none; }
  .benefits__grid li, .benefits__grid li + li { flex: 0 0 84%; scroll-snap-align: start; padding: 1.5rem 1.35rem !important; border: 1px solid var(--c-line) !important; border-radius: var(--r-sm); background: var(--c-fog); }
  .mslider-dots { display: flex; justify-content: center; gap: .4rem; margin-top: 1.25rem; }
  .mslider-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--c-line-strong); transition: width .3s var(--ease), background .3s; }
  .mslider-dots span.is-active { width: 22px; background: #000; }
}

@media (max-width: 600px) {
  .logo { width: 128px; }
  .logo--footer, .site-footer .logo--footer { width: 160px; }
  .cat-scroller__btn { width: 36px; height: 36px; margin-top: -18px; }
}

/* Dropdown caret on nav items that open the mega menu */
.main-nav__link--mega { gap: .3rem; }
.main-nav__link--mega::after { right: calc(.9rem + .3rem + 14px); }
.main-nav__caret { width: 14px; height: 14px; stroke-width: 1.75; transition: transform .35s var(--ease); }
.has-mega.is-open .main-nav__caret { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .main-nav__caret { transition: none; } }

/* Wishlist round button (quick view + product page): when saved, show a white filled heart on the madder circle.
   The generic [data-wish][aria-pressed] rule painted the heart madder too, so it vanished into the background. */
.round-btn[data-wish][aria-pressed="true"] .icon { fill: #fff; color: #fff; stroke: #fff; }
.round-btn[data-wish][aria-pressed="true"]:hover:not(:disabled) { background: #5f2330; border-color: #5f2330; color: #fff; }
.round-btn[data-wish] .icon { width: 1.35rem; height: 1.35rem; }
