/* design tokens. breakpoints stay raw - @media can't read variables */
:root {
    /* colours */
    --navy: #29468e;
    --navy-dark: #1f3770;
    --navy-line: #4A64A8;
    --ink-soft: #4B5F8A;
    --disabled: #9AA3B5;
    --pale: #D6DFF2;
    --panel: #E6EBF5;
    --wash: #EEF2F9;
    --page: #fafbfd;
    --white: #FFFFFF;
    --accent: #7FE3FF;
    --lime: #DFFF5E;
    --sky: #3FB8E0;
    --overlay-dark: rgba(31, 55, 112, 0.75);
    --overlay-light: rgba(41, 70, 142, 0.8);
    --photo-shadow: #1c3270;

    /* fonts */
    --body-font: 'Inter', system-ui, sans-serif;
    --heading-font: 'Barlow', sans-serif;
    --display-font: 'Barlow Condensed', sans-serif;

    /* text sizes */
    --text-xs: 13px;
    --text-sm: 14px;
    --text-base: 15px;
    --text-md: 17px;
    --text-lg: 20px;
    --text-xl: 26px;
    --text-2xl: 32px;
    --text-3xl: 40px;
    --text-4xl: 52px;
    --display-hero: clamp(52px, 7.6vw, 120px);
    --display-listing: clamp(56px, 8vw, 112px);
    --display-promo: clamp(48px, 7vw, 96px);
    --display-page: clamp(48px, 6vw, 72px);

    /* headings */
    --leading-tight: 0.9;
    --tracking-tight: -0.02em;
    --tracking-tighter: -0.03em;

    /* spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;
    --space-10: 56px;
    --space-11: 72px;
    --space-12: 96px;

    /* tap targets */
    --tap: 44px;
    --tap-large: 56px;

    /* lines */
    --border-strong: 2px solid var(--navy);
    --border-soft: 1px solid var(--pale);
    --border-dark: 1px solid var(--navy-line);

    /* radii and shadows */
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --shadow-raised: 0 16px 32px rgba(15, 28, 60, 0.18);
    --shadow-panel: 0 -8px 32px rgba(15, 28, 60, 0.25);

    /* layers */
    --layer-menu: 10;
    --layer-panel: 20;
    --layer-overlay: 30;

    --page-width: 1280px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--navy);
    background: var(--page);
    line-height: 1.5;
}

a {
    color: var(--navy);
}

a: hover {
    color: var(--navy-dark);
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--page-width);
    margin: 0 auto;
    padding-left: var(--space-7);
    padding-right: var(--space-7);
}

.section {
    padding-top: var(--space-11);
}

.section-tight {
    padding-top: var(--space-7);
}

.section-last {
    padding-bottom: var(--space-12);
}

.muted {
    margin: 0;
    color: var(--ink-soft);
}

.lime {
    color: var(--lime);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* eyebrow label */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0;
    font-family: var(--display-font);
    font-weight: 700;
    font-size: var(--text-xl);
    line-height: 1;
    color: var(--lime);
}

.eyebrow::after {
    content: '';
    width: 40px;
    height: 3px;
    background: currentColor;
}

/* buttons */
.button,
.button-dark,
.button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    min-height: var(--tap-large);
    padding: 0 var(--space-7);
    border: 0;
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: var(--text-md);
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.button {
    background: var(--accent);
    color: var(--navy);
}

.button:hover {
    color: var(--navy);
    background: var(--lime);
}

.button:disabled {
    background: var(--pale);
    color: var(--ink-soft);
    cursor: not-allowed;
}

.button-dark {
    border-radius: var(--radius-pill);
    background: var(--navy);
    color: var(--white);
    font-family: var(--body-font);
    font-weight: 700;
    text-transform: none;
}

.button-dark:hover {
    color: var(--white);
    background: var(--navy-dark);
}

.button-outline {
    min-height: 48px;
    padding: 0 var(--space-4);
    border: var(--border-strong);
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    font-size: var(--text-base);
}

.button-wide {
    width: 100%;
    margin-top: var(--space-6);
}

.icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tap);
    height: var(--tap);
    color: inherit;
}

/* site header */
.site-header {
    background: var(--navy);
    color: var(--white);
}

.site-header-inner {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: var(--space-4) var(--space-7);
    display: flex;
    align-items: center;
    gap: var(--space-7);
    position: relative; /* anchors the megamenu */
}

.site-header .icon-button {
    color: var(--white);
    margin-left: -12px;
}

.logo {
    display: flex;
    align-items: center;
    min-height: var(--tap);
    color: var(--white);
}

.logo:hover {
    color: var(--white);
}

.logo-mark {
    display: block;
    max-width: 100%;
    height: auto;
}

.main-nav {
    display: flex;
    gap: var(--space-7);
    align-items: center;
}

.main-nav a,
.megamenu > a {
    color: var(--pale);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-base);
}

.main-nav a:hover,
.megamenu > a:hover {
    color: var(--white);
}

/* megamenu: shows on hover or focus */
.megamenu > a {
    display: block;
    padding: var(--space-3) 0;
}

.megamenu-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 32px;
    right: 32px;
    z-index: var(--layer-menu);
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-1) var(--space-6);
    padding: var(--space-6);
    background: var(--white);
    border: var(--border-strong);
    box-shadow: var(--shadow-raised);
}

.megamenu:hover .megamenu-panel,
.megamenu:focus-within .megamenu-panel {
    display: grid;
}

.megamenu-panel a {
    padding: var(--space-3) var(--space-3);
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

.megamenu-panel a:hover {
    background: var(--panel);
    color: var(--navy);
}

.megamenu-panel .megamenu-sale {
    background: var(--lime);
}

.search-form {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex: 0 1 380px;
    min-width: 0;
    padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4);
    background: var(--navy-dark);
    border-radius: var(--radius-pill);
}

.search-form input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--white);
    font: 500 var(--text-md) var(--body-font);
}

.search-form input::placeholder {
    color: var(--pale);
}

.search-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tap);
    height: var(--tap);
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--navy);
    cursor: pointer;
}

.menu-button {
    display: none !important;
}

/* mobile menu: opens on #menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--layer-overlay);
    flex-direction: column;
    background: var(--navy);
    color: var(--white);
    overflow-y: auto;
}

.mobile-menu:target {
    display: flex;
}

.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
    border-bottom: var(--border-dark);
}

.mobile-menu-top .logo-mark {
    width: 260px;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: var(--space-2) var(--space-5) 0;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--tap-large);
    border-bottom: var(--border-dark);
    color: var(--white);
    text-decoration: none;
    font-family: var(--display-font);
    font-weight: 600;
    font-size: var(--text-2xl);
    text-transform: uppercase;
}

.mobile-menu-links li:last-child a {
    color: var(--lime);
}

.mobile-menu-heading {
    margin: var(--space-7) var(--space-5) var(--space-3);
    font-size: var(--text-xl);
}

.mobile-menu .sport-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 var(--space-5);
}

.mobile-menu-help {
    padding-top: var(--space-6) !important;
}

.mobile-menu-help a {
    display: flex;
    align-items: center;
    min-height: var(--tap);
    color: var(--pale);
    text-decoration: none;
    font-weight: 500;
}

.mobile-menu .social-links {
    margin-top: auto;
    padding: var(--space-6) var(--space-5) var(--space-7);
}

/* sport pills */
.sport-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.sport-pills a {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 var(--space-4);
    border: 1.5px solid var(--navy-line);
    border-radius: var(--radius-pill);
    color: var(--white);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    white-space: nowrap;
}

.sport-pills a:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.social-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tap);
    height: var(--tap);
    border: 2px solid var(--pale);
    border-radius: var(--radius-pill);
    color: var(--white);
}

.social-links a:hover {
    color: var(--navy);
    background: var(--white);
}

/* blue-tinted photos */
.photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5);
}

.photo-darken,
.photo-lighten,
.photo-fade {
    position: absolute;
    inset: 0;
}

.photo-darken {
    background: var(--navy);
    mix-blend-mode: multiply;
    opacity: 0.45;
}

.photo-lighten {
    background: var(--photo-shadow);
    mix-blend-mode: lighten;
}

/* tiles fade up */
.photo-fade {
    background: linear-gradient(to top, var(--overlay-dark), transparent 55%);
}

/* hero fades down */
.hero .photo-fade {
    background: linear-gradient(to bottom, var(--navy), var(--overlay-light) 12%, transparent 40%);
    opacity: 0.5;
}

/* home page hero */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
}

.hero .photo {
    object-position: center 60%;
}

.hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-7);
    padding-top: 136px;
    padding-bottom: var(--space-8);
}

.hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-6) var(--space-8);
}

.hero h1 {
    margin: 0;
    font-family: var(--display-font);
    font-weight: 800;
    font-size: var(--display-hero);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tighter);
    text-transform: uppercase;
}

.highlight {
    display: inline-block;
    padding: 0 0.12em;
    background: var(--lime);
    color: var(--navy);
    transform: rotate(-2deg);
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    max-width: 320px;
}

.hero-text p {
    margin: 0;
    color: var(--pale);
}

.hero-popular {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-4);
    padding-top: var(--space-6);
    border-top: 1.5px solid var(--navy-line);
}

/* section headings */
.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-7);
}

.section-heading h2 {
    margin: 0;
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: var(--text-3xl);
    letter-spacing: var(--tracking-tighter);
    text-transform: uppercase;
}

.section-heading a {
    font-weight: 600;
    font-size: var(--text-base);
}

/* product cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8) var(--space-5);
}

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

.product-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    text-decoration: none;
}

.product-card h3 {
    margin: 0 0 var(--space-2);
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: var(--text-lg);
    line-height: 1.2;
}

.product-card:hover h3 {
    text-decoration: underline;
}

.product-card .muted {
    margin-bottom: var(--space-1);
    font-size: var(--text-xs);
}

/* placeholder product image */
.product-image {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel);
    color: var(--ink-soft);
    font-size: var(--text-sm);
}

.badge {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--lime);
    color: var(--navy);
}

.product-image .badge {
    position: absolute;
    top: 14px;
    left: 14px;
}

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

.price {
    margin: 0;
    font-size: var(--text-md);
}

.price s {
    margin-left: var(--space-1);
    color: var(--ink-soft);
}

/* sport tiles */
.sport-tiles {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-3);
}

.sport-tile {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    height: 220px;
    padding: var(--space-5);
    border-radius: var(--radius);
    background: var(--navy-dark);
    color: var(--white);
    text-decoration: none;
}

.sport-tile-name {
    position: relative;
    font-family: var(--display-font);
    font-weight: 600;
    font-size: var(--text-2xl);
    line-height: 1;
    text-transform: uppercase;
}

.sport-tile:hover {
    color: var(--lime);
}

/* category tiles */
.category-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--navy);
    border: var(--border-strong);
}

.category-tile {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    min-height: 280px;
    padding: var(--space-7);
    background: var(--white);
    text-decoration: none;
}

.category-tile .icon {
    color: var(--sky);
}

.category-tile:last-child {
    background: var(--accent);
}

.category-tile:last-child .icon {
    color: var(--navy);
}

.category-tile:hover {
    background: var(--lime);
}

.category-tile h3 {
    margin: 0 0 var(--space-2);
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: var(--text-xl);
    letter-spacing: var(--tracking-tight);
    text-transform: uppercase;
}

.category-tile p {
    margin: 0;
    color: var(--ink-soft);
}

/* sale banner */
.promo {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-8);
    align-items: center;
    padding: var(--space-10);
    border-radius: var(--radius-lg);
    background: var(--accent);
}

.promo .eyebrow {
    flex-direction: row-reverse;
    margin-bottom: var(--space-4);
    color: var(--navy);
}

.promo h2 {
    margin: 0;
    font-family: var(--display-font);
    font-weight: 800;
    font-size: var(--display-promo);
    line-height: var(--leading-tight);
    text-transform: uppercase;
}

.promo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
}

.promo-text p {
    margin: 0;
    font-size: var(--text-md);
}

/* breadcrumbs */
.breadcrumbs {
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    color: var(--ink-soft);
}

.breadcrumbs a {
    color: inherit;
}

.breadcrumbs span {
    color: var(--navy);
}

.listing-hero .breadcrumbs {
    color: var(--pale);
}

.listing-hero .breadcrumbs span {
    color: var(--white);
}

/* listing hero */
.listing-hero {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-11) 0 var(--space-8);
}

.listing-hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.listing-hero h1 {
    margin: 0;
    font-family: var(--display-font);
    font-weight: 800;
    font-size: var(--display-listing);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.listing-hero .eyebrow {
    flex-direction: row-reverse;
}

/* category chips */
.tag-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 var(--space-4);
    border: var(--border-strong);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
}

.tag:hover,
.tag[aria-current] {
    background: var(--navy);
    color: var(--white);
}

/* filters and results */
.shop {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-9);
    align-items: start;
    padding-top: var(--space-4);
    padding-bottom: var(--space-12);
}

/* stops wide tables stretching the page */
.shop > * {
    min-width: 0;
}

.filters-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-6);
    border-bottom: var(--border-strong);
}

.filters h2,
.page-toc h2 {
    margin: 0;
    font-family: var(--display-font);
    font-weight: 600;
    font-size: var(--text-2xl);
    line-height: 1;
    text-transform: uppercase;
}

.filters-clear {
    font-weight: 600;
    font-size: var(--text-sm);
}

.filters-close {
    display: none !important;
}

.filters fieldset {
    margin: 0;
    min-width: 0;
    padding: 0 0 var(--space-6);
    border: 0;
    border-bottom: var(--border-strong);
}

.filters legend {
    padding: var(--space-6) 0 0;
    margin-bottom: var(--space-4);
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: var(--text-md);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.check {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 36px;
    font-size: var(--text-base);
    cursor: pointer;
}

.check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--navy);
}

.count-badge {
    margin-left: auto;
    padding: 2px var(--space-2);
    background: var(--lime);
    font-size: var(--text-xs);
    font-weight: 700;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-3);
}

.swatch {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: var(--border-strong);
}

/* size boxes: hidden checkbox, styled box */
.size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
}

.size-box {
    position: relative;
    cursor: pointer;
}

.size-box input {
    position: absolute;
    opacity: 0;
}

.size-box span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
    border: var(--border-strong);
    font-weight: 600;
    font-size: var(--text-sm);
}

.size-box input:checked + span {
    background: var(--navy);
    color: var(--white);
}

.size-box input:focus-visible + span {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.price-range {
    display: flex;
    align-items: flex-end;
    gap: var(--space-2);
}

.price-range label {
    flex: 1;
    font-size: var(--text-xs);
    color: var(--ink-soft);
}

.price-range span {
    min-height: var(--tap);
    display: flex;
    align-items: center;
}

input[type=number],
select {
    width: 100%;
    min-height: var(--tap);
    margin-top: var(--space-2);
    padding: 0 var(--space-3);
    border: var(--border-strong);
    background: var(--white);
    color: var(--navy);
    font: 500 var(--text-base) var(--body-font);
}

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.filter-button {
    display: none;
}

.sort-select {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 600;
    font-size: var(--text-base);
}

.sort-select select {
    width: auto;
    margin: 0;
}

.empty {
    padding: var(--space-9) 0;
}

.empty h2 {
    margin: 0 0 var(--space-2);
    font-family: var(--heading-font);
    text-transform: uppercase;
}

/* pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-10);
    padding-top: var(--space-6);
    border-top: var(--border-soft);
}

.pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-width: var(--tap);
    min-height: var(--tap);
    padding: 0 var(--space-4);
    border: var(--border-strong);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
}

.page-link[aria-current],
a.page-link:hover {
    background: var(--navy);
    color: var(--white);
}

.page-link.disabled {
    border-color: var(--pale);
    color: var(--disabled);
}

/* product page */
.product-breadcrumbs {
    padding-top: var(--space-8);
}

.product-page {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--space-10);
    align-items: start;
    padding-top: var(--space-7);
}

.product-image-large {
    aspect-ratio: 1;
    font-size: var(--text-base);
}

.product-image-large .badge {
    top: 20px;
    left: 20px;
    font-size: var(--text-xs);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.product-brand {
    margin: 0 0 var(--space-2);
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--ink-soft);
}

.product-info h1 {
    margin: 0 0 var(--space-4);
    font-family: var(--display-font);
    font-weight: 600;
    font-size: var(--text-4xl);
    line-height: var(--leading-tight);
    text-transform: uppercase;
}

.product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: 0;
}

.product-price strong {
    font-size: var(--text-2xl);
}

.product-price s {
    font-size: var(--text-md);
    color: var(--ink-soft);
}

.product-description {
    margin: 0;
    font-size: var(--text-md);
    line-height: 1.65;
}

.buy-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding-top: var(--space-6);
    border-top: var(--border-soft);
}

.buy-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.buy-form legend {
    margin-bottom: var(--space-3);
    font-family: var(--heading-font);
    font-weight: 600;
    text-transform: uppercase;
}

.buy-form .size-grid {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
}

.size-guide-link {
    display: inline-block;
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    font-weight: 600;
}

.buy-row {
    display: flex;
    gap: var(--space-3);
}

.buy-row .quantity {
    width: 80px;
    min-height: var(--tap-large);
    margin: 0;
    text-align: center;
    font-weight: 600;
    font-size: var(--text-md);
}

.buy-row .button {
    flex: 1;
    min-height: var(--tap-large);
    font-size: var(--text-md);
}

.product-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    font-size: var(--text-base);
}

.product-perks li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.accordion {
    border-top: var(--border-soft);
}

.accordion details {
    border-bottom: var(--border-soft);
}

.accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--tap-large);
    list-style: none;
    font-family: var(--heading-font);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

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

.accordion summary .icon {
    transition: transform 0.2s;
}

.accordion details[open] summary .icon {
    transform: rotate(180deg);
}

.accordion ul,
.accordion p {
    margin: 0 0 var(--space-5);
    line-height: 1.7;
}

/* policy pages */
.page-hero {
    padding: var(--space-11) 0 var(--space-9);
    background: var(--wash);
    border-bottom: var(--border-soft);
}

.page-hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4) var(--space-9);
}

.page-hero h1 {
    margin: 0;
    font-family: var(--display-font);
    font-weight: 600;
    font-size: var(--display-page);
    line-height: var(--leading-tight);
    text-transform: uppercase;
}

.updated {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ink-soft);
}

.updated::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--navy);
}

.page-toc {
    position: sticky;
    top: var(--space-6);
    padding-top: var(--space-8);
}

.page-toc h2 {
    padding-bottom: var(--space-4);
    border-bottom: var(--border-strong);
}

.page-toc ol {
    list-style: none;
    margin: 0;
    padding: var(--space-3) 0 0;
}

.page-toc a {
    display: flex;
    align-items: center;
    min-height: 40px;
    font-weight: 500;
    font-size: var(--text-base);
    text-decoration: none;
}

.page-toc a:hover {
    text-decoration: underline;
}

.prose {
    max-width: 720px;
    padding-top: var(--space-8);
    font-size: var(--text-md);
    line-height: 1.7;
}

.prose .lead {
    margin: 0 0 var(--space-7);
    font-size: var(--text-lg);
    line-height: 1.6;
}

.prose h2 {
    margin: var(--space-9) 0 var(--space-3);
    padding-top: var(--space-6);
    border-top: var(--border-soft);
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: var(--text-2xl);
    line-height: 1.1;
    text-transform: uppercase;
    scroll-margin-top: var(--space-6);
}

.prose p,
.prose ul,
.prose ol {
    margin: 0 0 var(--space-4);
}

.prose ul,
.prose ol {
    padding-left: var(--space-6);
}

.prose .note {
    margin: 0 0 var(--space-4);
    padding: var(--space-6);
    background: var(--panel);
}

.prose .note p {
    margin: 0;
}

.prose .note-title {
    margin-bottom: var(--space-1) !important;
    font-weight: 600;
}

.prose .small-print {
    margin-top: var(--space-7);
    font-size: var(--text-base);
    color: var(--ink-soft);
}

.table-wrap {
    overflow-x: auto;
    margin: 0 0 var(--space-4);
    border: var(--border-soft);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-base);
    background: var(--white);
}

.prose th,
.prose td {
    padding: var(--space-3) var(--space-4);
    border-bottom: var(--border-soft);
    text-align: left;
    white-space: nowrap;
}

.prose thead th {
    background: var(--navy);
    color: var(--white);
    font-size: var(--text-sm);
}

.prose tbody th {
    font-weight: 600;
}

/* site footer */
.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-11) 0 var(--space-7);
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: var(--space-8);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.footer-brand p {
    margin: 0;
    max-width: 320px;
    color: var(--pale);
}

.footer-heading {
    margin: 0 0 var(--space-4);
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: var(--text-md);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: var(--pale);
    text-decoration: none;
    font-size: var(--text-base);
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-9);
    padding-top: var(--space-6);
    border-top: var(--border-dark);
    font-size: var(--text-sm);
    color: var(--pale);
}

/* tablets */
@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .menu-button {
        display: flex !important;
    }

    .site-header-inner {
        flex-wrap: wrap;
        gap: var(--space-3) var(--space-1);
        padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
    }

    .site-header-inner .logo {
        margin-right: auto;
    }

    .site-header .icon-button {
        margin-left: 0;
    }

    .search-form {
        order: 5;
        flex: 1 1 100%;
        margin: 0 var(--space-1) 0 0;
    }

    .product-grid,
    .product-grid.three-columns {
        grid-template-columns: 1fr 1fr;
    }

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

    .category-tiles,
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }

    .promo,
    .product-page,
    .shop {
        grid-template-columns: 1fr;
    }

    .page-toc {
        position: static;
    }

    /* filters become a slide-over panel, opens on #filters */
    .filters {
        display: none;
        position: fixed;
        inset: 56px 0 0;
        z-index: var(--layer-panel);
        overflow-y: auto;
        padding: var(--space-5) var(--space-5) var(--space-7);
        background: var(--page);
        border-radius: var(--radius) var(--radius) 0 0;
        box-shadow: var(--shadow-panel);
    }

    .filters:target {
        display: block;
    }

    .filters-close {
        display: flex !important;
    }

    .filters-clear {
        margin-left: auto;
        margin-right: var(--space-2);
    }

    .filter-button {
        display: inline-flex;
    }
}

/* phones */
@media (max-width: 520px) {
    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    .site-header-inner .logo-mark {
        width: 230px;
    }

    .hero-inner {
        padding-top: var(--space-11);
    }

    .section {
        padding-top: var(--space-10);
    }

    .section-heading h2 {
        font-size: var(--text-2xl);
    }

    .product-grid,
    .product-grid.three-columns {
        gap: var(--space-7) var(--space-3);
    }

    .product-card h3 {
        font-size: var(--text-md);
    }

    .sport-tiles {
        grid-template-columns: 1fr 1fr;
    }

    .sport-tile {
        height: 150px;
        padding: var(--space-4);
        border-radius: var(--radius-sm);
    }

    .category-tiles,
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .category-tile {
        min-height: 0;
        gap: var(--space-7);
    }

    .promo {
        padding: var(--space-7) var(--space-6);
    }

    .results-bar .muted {
        order: 3;
        width: 100%;
    }

    .tag-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -16px;
        padding-right: var(--space-4);
    }

    .tag {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .product-info h1 {
        font-size: var(--text-3xl);
    }
}
