/* =========================================================
   Global Fitness Dynamics — store layout
   Structure modeled on a dealer storefront: utility strip, dark header with
   search, category nav with mega menus, left category sidebar, banner hero,
   info cards, category and offer tiles, product cards, FAQ, reviews, footer.
   Colors, type and voice stay GFD's own (see styles.css tokens).
   ========================================================= */

:root {
  --wrap: 1340px;
  --hdr-h: 126px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: clamp(16px, 3vw, 32px);
  padding-right: clamp(16px, 3vw, 32px);
}

/* ---------- Utility strip ---------- */
.ubar {
  background: var(--ink);
  color: var(--steel-2);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.ubar__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 4vw, 3.5rem);
  min-height: 34px;
  overflow: hidden;
}

.ubar li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.ubar svg {
  width: 16px;
  height: 16px;
  color: var(--amber);
  flex: none;
}

@media (max-width: 900px) {
  .ubar li:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 560px) {
  .ubar li:nth-child(n + 2) {
    display: none;
  }
}

/* ---------- Header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
}

.hdr__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 78px;
}

.hdr .brand {
  flex: none;
  color: var(--white);
}

.hdr .brand__logo {
  height: 50px;
  width: auto;
  background: var(--chalk);
  border-radius: 6px;
  padding: 3px 7px;
}

.hdr .brand__sub {
  color: var(--steel-2);
}

.hdr__search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  max-width: 620px;
  height: 44px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
}

.hdr__search svg {
  width: 20px;
  height: 20px;
  margin: 0 0.4rem 0 0.9rem;
  color: var(--steel);
  flex: none;
}

.hdr__search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
}

.hdr__search input:focus {
  outline: none;
}

.hdr__search:focus-within {
  outline: 3px solid var(--amber);
  outline-offset: 1px;
}

.hdr__search-btn {
  height: 100%;
  padding: 0 1.1rem;
  border: 0;
  background: var(--amber);
  color: var(--navy);
  font-weight: 700;
}

.hdr__search-btn:hover {
  background: var(--amber-2);
}

.hdr__actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
  flex: none;
}

.hdr__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 4px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hdr__phone svg {
  width: 20px;
  height: 20px;
}

.hdr__phone:hover,
.hdr__icon:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hdr__icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--white);
}

.hdr__icon svg {
  width: 22px;
  height: 22px;
}

.hdr .cart-btn {
  padding: 0;
  color: var(--white);
}

.hdr .cart-btn__count {
  position: absolute;
  top: 3px;
  right: 1px;
}

.hdr .nav-toggle {
  display: none;
  color: var(--white);
  margin: 0;
}

/* ---------- Category navbar ---------- */
.navbar {
  background: var(--white);
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}

.navbar__row {
  display: flex;
  align-items: stretch;
  min-height: 46px;
}

.mega {
  position: relative;
}

.navbar__mega-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 46px;
  padding: 0 1.1rem;
  border: 0;
  background: var(--navy);
  color: var(--white);
  font: 700 0.8rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.mega + .mega .navbar__mega-btn {
  background: var(--navy-2);
}

.navbar__mega-btn svg {
  width: 18px;
  height: 18px;
}

.navbar__mega-btn .chev {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.navbar__mega-btn[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.mega__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 660px;
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  box-shadow: 0 24px 48px -24px rgba(11, 27, 51, 0.45);
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mega__panel[data-open="true"] {
  display: grid;
}

.mega__panel--brands {
  min-width: 540px;
  gap: 0 1.5rem;
}

.mega__col h3 {
  margin: 0 0 0.5rem;
  font: 700 0.74rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-2);
}

.mega__panel a {
  display: block;
  padding: 0.35rem 0;
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
}

.mega__panel a:hover {
  color: var(--amber-2);
}

.mega__all {
  font-weight: 700;
  color: var(--navy) !important;
}

.navbar__links {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.navbar__links a {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 0.9rem;
  border-bottom: 3px solid transparent;
  font: 700 0.8rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.navbar__links a:hover,
.navbar__links a[aria-current="page"] {
  border-bottom-color: var(--amber);
}

.navbar__mobile {
  display: none;
}

@media (max-width: 1180px) {
  .navbar__links a {
    padding: 0 0.65rem;
    font-size: 0.74rem;
  }

  .navbar__mega-btn {
    padding: 0 0.85rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 960px) {
  .hdr__row {
    flex-wrap: wrap;
    row-gap: 0.4rem;
    padding-top: 0.55rem;
    padding-bottom: 0.7rem;
    min-height: 0;
  }

  .hdr .brand__logo {
    height: 44px;
  }

  .hdr__search {
    order: 10;
    flex-basis: 100%;
    max-width: none;
    height: 42px;
  }

  .hdr__phone span {
    display: none;
  }

  .hdr .nav-toggle {
    display: inline-flex;
  }

  .navbar {
    position: fixed;
    inset: var(--hdr-h) 0 0 0;
    z-index: 49;
    display: none;
    overflow-y: auto;
    border: 0;
  }

  .navbar[data-open="true"] {
    display: block;
  }

  .navbar__row {
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.75rem;
    padding-bottom: 2.5rem;
  }

  .mega {
    position: static;
  }

  .navbar__mega-btn {
    width: 100%;
    justify-content: space-between;
    height: 52px;
    margin-bottom: 2px;
  }

  .navbar__mega-btn .chev {
    margin-left: auto;
  }

  .mega__panel {
    position: static;
    min-width: 0;
    grid-template-columns: 1fr 1fr;
    padding: 0.75rem 0.25rem 1rem;
    border: 0;
    box-shadow: none;
  }

  .mega__panel--brands {
    grid-template-columns: 1fr 1fr;
  }

  .navbar__links {
    flex-direction: column;
    align-items: stretch;
    margin: 0.5rem 0 0;
  }

  .navbar__links a {
    height: 54px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0;
  }

  .navbar__links a[aria-current="page"] {
    color: var(--amber-2);
  }

  .navbar__mobile {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.25rem;
  }

  .navbar__mobile .nav-meta {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
  }
}

/* ---------- Page layout with sidebar ---------- */
.layout {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.layout-page main {
  display: block;
}

.main-col {
  min-width: 0;
}

.main-col > * + * {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 228px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

.sidebar__group {
  margin-bottom: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.sidebar__group h2 {
  margin: 0;
  padding: 0.7rem 0.9rem;
  background: var(--chalk-2);
  border-bottom: 1px solid var(--line);
  font: 700 0.76rem/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.sidebar__group a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.sidebar__group a:last-child {
  border-bottom: 0;
}

.sidebar__group a:hover {
  background: var(--chalk);
  color: var(--amber-2);
}

.sidebar__all {
  color: var(--amber-2) !important;
}

.sidebar__card {
  padding: 1.25rem;
  background: var(--navy);
  color: var(--white);
}

.sidebar__card .eyebrow {
  margin-bottom: 0.5rem;
  color: var(--amber);
}

.sidebar__card p {
  color: var(--steel-2);
  font-size: 0.92rem;
}

.sidebar__card .btn {
  width: 100%;
}

/* ---------- Banner hero ---------- */
.banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 440px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.banner > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* solid navy overlay across the whole photo, heavier where the text sits */
  background:
    linear-gradient(90deg, rgba(11, 27, 51, 0.97) 0%, rgba(11, 27, 51, 0.9) 50%, rgba(11, 27, 51, 0.55) 100%),
    rgba(11, 27, 51, 0.3);
}

.banner__content {
  max-width: 660px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.banner h1 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55), 0 8px 28px rgba(0, 0, 0, 0.45);
  margin: 0.8rem 0 0.75rem;
  font-size: clamp(2.1rem, 3.9vw, 3.3rem);
  color: var(--white);
}

.banner h1 em {
  font-style: normal;
  color: var(--amber);
}

.banner p {
  margin-bottom: 1.3rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.rating-pill {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(11, 27, 51, 0.55);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.rating-pill b {
  color: var(--amber);
  letter-spacing: 0.08em;
  font-weight: 400;
}

@media (max-width: 600px) {
  .banner {
    min-height: 380px;
  }
}

/* ---------- Info cards ---------- */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-cards article {
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  text-align: center;
}

.info-cards h3 {
  margin: 0 0 0.5rem;
  font: 700 0.95rem/1.2 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.info-cards p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.info-cards a {
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 800px) {
  .info-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Blocks ---------- */
.block > h2,
.block__head h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
}

.block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.block__head h2 {
  margin-bottom: 0.2rem;
}

.block__sub {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.block__head .text-link {
  flex: none;
  white-space: nowrap;
}

/* category tiles */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -18px rgba(11, 27, 51, 0.45);
}

.cat-tile__img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--chalk-2);
}

.cat-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 700px) {
  .cat-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-tile__img {
    width: 92px;
    height: 92px;
  }
}

/* offer / how tiles */
.offer-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.offer-tile {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--iron);
  color: var(--white);
  text-decoration: none;
}

.offer-tile img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.offer-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 27, 51, 0.82) 0%, rgba(11, 27, 51, 0.15) 45%, rgba(11, 27, 51, 0.35) 100%);
}

.offer-tile:hover img {
  transform: scale(1.04);
}

.offer-tile span {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .offer-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* brands row (overrides marquee section chrome for the main column) */
.brands {
  padding: 1.25rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.brands__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem 0.75rem;
}

.brands__head h2 {
  margin: 0;
  font-size: 1.3rem;
}

/* why */
.block--why {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
}

.block--why h2 {
  margin-bottom: 0.5rem;
}

.block--why p {
  margin: 0;
  max-width: 70ch;
  color: var(--text-muted);
}

@media (max-width: 800px) {
  .block--why {
    grid-template-columns: 1fr;
  }
}

/* faq */
.faq details {
  margin-bottom: 0.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--amber-2);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--text-muted);
}

/* reviews */
.rating-line {
  margin: 0;
  font-weight: 600;
}

.rating-line span {
  color: var(--amber);
  letter-spacing: 0.08em;
}

.rev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.rev {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.rev__stars {
  color: var(--amber);
  letter-spacing: 0.1em;
}

.rev h3 {
  margin: 0;
  font-size: 1.15rem;
}

.rev p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.rev footer {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rev footer b {
  color: var(--navy);
}

@media (max-width: 900px) {
  .rev-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Product cards ---------- */
.pgrid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.pgrid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
  .pgrid--4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .pgrid--3,
  .pgrid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 460px) {
  .pgrid--3,
  .pgrid--4 {
    grid-template-columns: 1fr;
  }
}

.pcard__media {
  cursor: pointer;
}

a.pcard__media {
  display: block;
}

.pcard__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
}

.pcard__foot {
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
}

.pcard__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.pcard__actions .btn {
  min-height: 42px;
  padding: 0 0.6rem;
  font-size: 0.88rem;
}

.pcard__ships {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Shop page ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.crumbs a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.crumbs a:hover {
  color: var(--amber-2);
}

.main-col > .crumbs + * {
  margin-top: 0.75rem;
}

.shop-h1 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-bottom: 0.4rem;
}

.shop-intro {
  max-width: 72ch;
  color: var(--text-muted);
}

.main-col > .shop-h1 + .shop-intro,
.main-col > .shop-intro + .shop-tools {
  margin-top: 0.75rem;
}

.shop-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.shop-search {
  display: flex;
  flex: 1 1 260px;
  max-width: 380px;
}

.shop-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 0.8rem;
  border: 1px solid #b9c0ca;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  font: inherit;
}

.shop-search .btn {
  min-height: 42px;
  border-radius: 0 4px 4px 0;
}

.shop-tools__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.shop-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.shop-sort select {
  height: 40px;
  padding: 0 0.6rem;
  border: 1px solid #b9c0ca;
  border-radius: 4px;
  background: var(--white);
  font: inherit;
}

.main-col > .shop-tools + .chips {
  margin-top: 0.75rem;
}

.main-col > .chips + .shop-active {
  margin-top: 0.6rem;
}

.main-col > .shop-active + .pgrid,
.main-col > .chips + .pgrid {
  margin-top: 1rem;
}

.shop-active {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shop-active:empty {
  display: none;
}

.shop-active a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.shop-active a span {
  font-size: 1rem;
  line-height: 1;
}

.shop-sold {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* steps */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.steps__grid li {
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
}

.steps__grid li:first-child {
  border-top-color: var(--amber);
}

.steps__num {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--amber-2);
}

.steps__grid h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.steps__grid p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

@media (max-width: 800px) {
  .steps__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Payments ---------- */
.payments {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.payments__head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
}

.payments__head p {
  margin: 0 0 1.25rem;
  max-width: 70ch;
  color: var(--text-muted);
}

.payments__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.75rem;
}

.payments__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 0.5rem 0.75rem;
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}

.payments__list img {
  width: 34px;
  height: 34px;
  opacity: 0.85;
}

/* ---------- Product page ---------- */
.product {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
}

.product__main {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--chalk-2);
}

.product__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.product__thumbs button {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: none;
}

.product__thumbs button[aria-current="true"] {
  border-color: var(--amber);
}

.product__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__info h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0.4rem 0 0.75rem;
}

.product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.product__price {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
}

.product__price-note {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product__facts {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product__facts div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.product__facts dt {
  font-weight: 700;
  color: var(--navy);
}

.product__facts dd {
  margin: 0;
  color: var(--text-muted);
}

.product__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.product__buy .btn {
  flex: 1 1 auto;
}

.product__help {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product__help a {
  font-weight: 600;
  color: var(--navy);
}

.product__desc h2,
.product__specs h2 {
  font-size: 1.25rem;
  margin: 1.25rem 0 0.5rem;
}

.product__desc p {
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .product {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pre-footer + footer ---------- */
.follow {
  margin-top: 1rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.follow__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.follow h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.follow p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .follow__row {
    grid-template-columns: 1fr;
  }
}

.ftr {
  background: var(--ink);
  color: var(--steel-2);
  font-size: 0.92rem;
}

.ftr__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 2rem;
}

.ftr .brand {
  margin-bottom: 1rem;
  color: var(--white);
}

.ftr .brand__logo {
  height: 48px;
  width: auto;
  background: var(--chalk);
  border-radius: 6px;
  padding: 3px 7px;
}

.ftr .brand__sub {
  color: var(--steel-2);
}

.ftr h4 {
  margin: 0 0 0.9rem;
  font: 700 0.8rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}

.ftr a {
  color: var(--white);
  text-decoration: none;
}

.ftr a:hover {
  color: var(--amber);
}

.ftr ul li {
  margin-bottom: 0.45rem;
}

.ftr address {
  margin: 0.75rem 0;
  font-style: normal;
  line-height: 1.65;
}

.ftr__about p {
  max-width: 40ch;
}

.ftr .muted {
  color: var(--steel);
}

.ftr__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.25rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-light);
  font-size: 0.8rem;
  color: var(--steel);
}

@media (max-width: 1000px) {
  .ftr__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ftr__about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .ftr__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Inner pages inherit the wider frame ---------- */
.layout-page .container {
  max-width: var(--wrap);
}

@media (max-width: 767px) {
  .ftr__bottom {
    padding-bottom: calc(1.5rem + 58px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 560px) {
  .ubar {
    display: none;
  }
}

/* =========================================================
   Phone layout, modeled on the reference site's mobile pages
   ========================================================= */

/* mobile-only blocks hidden on desktop */
.mnav,
.mobile-cats,
.carousel__nav,
.carousel__dots {
  display: none;
}

/* category tiles: fluid count on desktop so the "All equipment" tile fits */
.cat-tiles {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.cat-tile--all {
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
}

/* FAQ: chevron instead of plus */
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "";
  transform: rotate(-135deg);
}

@media (max-width: 900px) {
  .ubar {
    display: none;
  }

  /* ---------- Header + full-screen dark menu ---------- */
  .hdr__row {
    padding-top: 0.6rem;
    padding-bottom: 0.8rem;
  }

  .hdr .brand__logo {
    height: 42px;
  }

  .hdr .brand__sub {
    display: none;
  }

  .hdr .brand__name {
    font-size: 1.05rem;
  }

  .hdr__search {
    height: 46px;
    border-radius: 6px;
  }

  .navbar {
    background: var(--navy);
    color: var(--white);
  }

  .navbar__row .mega,
  .navbar__links,
  .navbar__mobile {
    display: none;
  }

  .mnav {
    display: block;
    padding-bottom: 1.5rem;
  }

  .mnav__group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mnav__group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.05rem 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--white);
    cursor: pointer;
    list-style: none;
  }

  .mnav__group summary::-webkit-details-marker {
    display: none;
  }

  .mnav__group summary::after {
    content: "+";
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--amber);
  }

  .mnav__group[open] summary::after {
    content: "−";
  }

  .mnav__group a,
  .mnav__links a {
    display: block;
    padding: 0.7rem 0 0.7rem 0.75rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
  }

  .mnav__group a:last-child {
    padding-bottom: 1.1rem;
  }

  .mnav__links {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mnav__links a {
    padding-left: 0;
  }

  .mnav__links--pages a {
    font-family: var(--font-display);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--white);
  }

  .mnav__cta {
    display: grid;
    gap: 0.6rem;
    padding-top: 1.25rem;
  }

  .mnav__cta p {
    margin: 0.5rem 0 0;
    font-size: 0.88rem;
    color: var(--steel-2);
  }

  /* ---------- Layout ---------- */
  .layout {
    padding-top: 0;
    gap: 0;
  }

  .main-col > * + * {
    margin-top: 1.75rem;
  }

  /* ---------- Hero: edge to edge, centered ---------- */
  .banner {
    margin-left: calc(-1 * clamp(16px, 3vw, 32px));
    margin-right: calc(-1 * clamp(16px, 3vw, 32px));
    border-radius: 0;
    min-height: 0;
  }

  .banner::before {
    background: rgba(11, 27, 51, 0.8);
  }

  .banner__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: none;
    padding: 2.25rem 1.25rem 2rem;
    text-align: center;
  }

  .banner h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 8.5vw, 2.7rem);
  }

  .banner p {
    font-size: 1rem;
  }

  .banner .btn-row {
    width: 100%;
    flex-direction: column;
    gap: 0.6rem;
  }

  .banner .btn-row .btn {
    width: 100%;
  }

  .banner .rating-pill {
    order: 5;
    margin-top: 1.1rem;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.95rem;
  }

  .banner .rating-pill b {
    font-size: 1.1rem;
  }

  /* ---------- Swipeable rows (info cards, floor, reviews) ---------- */
  [data-carousel] {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 clamp(16px, 3vw, 32px);
    padding: 0.25rem clamp(16px, 3vw, 32px) 0.5rem;
    margin-left: calc(-1 * clamp(16px, 3vw, 32px));
    margin-right: calc(-1 * clamp(16px, 3vw, 32px));
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  [data-carousel]::-webkit-scrollbar {
    display: none;
  }

  [data-carousel] > * {
    flex: 0 0 86%;
    scroll-snap-align: center;
  }

  .info-cards article {
    border-radius: 10px;
    padding: 1.5rem 1.25rem;
  }

  .info-cards h3 {
    font-size: 1.05rem;
  }

  .info-cards p {
    font-size: 1rem;
  }

  #featured-grid[data-carousel] > * {
    flex: 0 0 48%;
    scroll-snap-align: start;
  }

  .rev {
    border-radius: 10px;
  }

  .carousel__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
  }

  .carousel__nav button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-size: 1.2rem;
    line-height: 1;
  }

  .carousel__nav button:disabled {
    opacity: 0.35;
  }

  .carousel__dots {
    display: flex;
    gap: 6px;
  }

  .carousel__dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
  }

  .carousel__dots span[data-active="true"] {
    background: var(--navy);
  }

  /* ---------- Tiles ---------- */
  .cat-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .cat-tile {
    border: 0;
    border-radius: 10px;
    background: var(--chalk-2);
    padding: 1.1rem 0.75rem 1rem;
    font-size: 1.05rem;
  }

  .cat-tile__img {
    width: 100px;
    height: 100px;
  }

  .offer-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .offer-tile {
    border-radius: 10px;
  }

  .offer-tile span {
    font-size: 1.25rem;
  }

  /* ---------- Product cards: compact 2-up ---------- */
  .pcard {
    border-radius: 10px;
  }

  .pcard__media {
    aspect-ratio: 1;
    border-radius: 10px 10px 0 0;
  }

  .pcard__body {
    padding: 0.8rem 0.85rem 0.9rem;
    gap: 0.25rem;
  }

  .pcard__brand {
    font-size: 0.66rem;
  }

  .pcard__name {
    font-size: 1.05rem;
  }

  .pcard__summary {
    display: none;
  }

  .pcard__price {
    font-size: 1.05rem;
  }

  .pcard__ships {
    font-size: 0.74rem;
  }

  .pcard__foot {
    padding-top: 0.6rem;
  }

  .pcard__actions {
    grid-template-columns: 1fr;
  }

  .pcard__actions .btn-outline-dark {
    display: none;
  }

  .pgrid--3,
  .pgrid--sold {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }

  /* ---------- Shop page tools ---------- */
  .shop-h1 {
    font-size: 2rem;
  }

  .shop-tools {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .shop-search {
    max-width: none;
  }

  .shop-search input {
    height: 46px;
    border-radius: 6px 0 0 6px;
  }

  .shop-tools__right {
    justify-content: space-between;
  }

  .shop-sort select {
    height: 46px;
  }

  .mobile-cats {
    display: block;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .mobile-cats summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
  }

  .mobile-cats summary::-webkit-details-marker {
    display: none;
  }

  .mobile-cats summary svg {
    width: 20px;
    height: 20px;
  }

  .mobile-cats summary::after {
    content: "";
    width: 9px;
    height: 9px;
    margin-left: auto;
    border-right: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    transform: rotate(45deg);
  }

  .mobile-cats[open] summary::after {
    transform: rotate(-135deg);
  }

  .mobile-cats__body {
    padding: 0 0.75rem 0.75rem;
  }

  .mobile-cats .sidebar__group {
    margin-bottom: 0.5rem;
  }

  .chips {
    display: none;
  }

  .main-col > .shop-tools + .mobile-cats,
  .main-col > .mobile-cats + .chips + .shop-active,
  .main-col > .mobile-cats + .chips + .shop-active + .pgrid {
    margin-top: 0.75rem;
  }

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

  /* ---------- Other blocks ---------- */
  .block--why .btn,
  .follow .btn {
    width: 100%;
  }

  .follow .btn-row {
    flex-direction: column;
  }

  .block__head {
    flex-wrap: wrap;
  }

  .brands {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    margin-left: calc(-1 * clamp(16px, 3vw, 32px));
    margin-right: calc(-1 * clamp(16px, 3vw, 32px));
  }

  /* ---------- Footer: collapsible groups ---------- */
  .ftr__grid {
    gap: 0;
    padding-top: 2rem;
  }

  .ftr__about {
    padding-bottom: 1rem;
  }

  .ftr__group h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
  }

  .ftr__group h4::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--steel-2);
    border-bottom: 2px solid var(--steel-2);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .ftr__group[data-open="true"] h4::after {
    transform: rotate(-135deg);
  }

  .ftr__group > *:not(h4) {
    display: none;
  }

  .ftr__group[data-open="true"] > *:not(h4) {
    display: block;
    padding-bottom: 0.75rem;
  }

  .ftr__group .mt-2 {
    margin-top: 0;
  }

  .ftr__bottom {
    justify-content: center;
    text-align: center;
    margin-top: 0.5rem;
  }
}

@media (max-width: 600px) {
  [data-carousel] > * {
    flex-basis: 88%;
  }

  #featured-grid[data-carousel] > * {
    flex-basis: 70%;
  }
}

/* product name links read as headings, not underlined links */
.pcard__name a {
  color: inherit;
  text-decoration: none;
}

.pcard__name a:hover {
  color: var(--amber-2);
}

@media (max-width: 900px) {
  /* keep logo, name and icons on one row like the reference header */
  .hdr__row {
    row-gap: 0.5rem;
  }

  .hdr .brand {
    gap: 0.5rem;
  }

  .hdr .brand__name {
    font-size: 0.92rem;
    letter-spacing: 0.04em;
  }

  .hdr__actions {
    gap: 0;
  }

  .hdr__icon,
  .hdr__phone {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .hdr__icon[aria-label="Text us"] {
    display: none;
  }

  .hdr .nav-toggle {
    width: 40px;
    height: 40px;
    margin-right: -6px;
  }
}

@media (max-width: 400px) {
  .hdr .brand__name {
    font-size: 0.82rem;
  }
}

@media (max-width: 600px) {
  .hdr .brand__logo {
    height: 38px;
    padding: 2px 5px;
  }

  .hdr .brand__name {
    white-space: normal;
    max-width: 120px;
    font-size: 0.82rem;
    line-height: 1.05;
  }

  .hdr__row {
    flex-wrap: wrap;
  }

  .hdr .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .hdr__actions {
    margin-left: 0;
  }
}


/* ---------- Footer credit ---------- */
.ftr__credit a {
  color: var(--steel-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ftr__credit a:hover {
  color: var(--amber);
}

@media (min-width: 901px) {
  .ftr__bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .ftr__bottom span:nth-child(2) {
    text-align: center;
  }

  .ftr__credit {
    text-align: right;
  }
}
