/* ==========================================================================
   NKS — site stylesheet
   --------------------------------------------------------------------------
   The single stylesheet for the whole site. Sections, in page order:

     · Design tokens and base elements        <html>, <body>, links, headings
     · Top strip                              <div class="top-nav">
     · Main navbar                            <nav class="navbar">
     · Hero slider                            <section class="hero-slider">
     · Product cards and grids                <article class="card">
     · Product page                           <main class="nike-product-page">
     · Cart / bag                             <main class="nike-bag">
     · Checkout                               <main class="checkout-page">
     · Order dashboards                       <main class="nike-orders">
     · Account forms                          login / register / profile
     · Product filter                         <form class="nike-filter">
     · Responsive tweaks                      @media blocks

   Vendor CSS (bootstrap) lives in static/vendor and is not listed here.
   ========================================================================== */

/* Global styles and design tokens */
:root {
    --white: #ffffff;
    --black: #111111;
    --gray: #757575;
    --light-gray: #f5f5f5;
    --border: #e5e5e5;
    --red: #d3132a;
    --font: "Inter", "Helvetica Neue", Arial, sans-serif;
    --nav-height: 60px;
    --gutter: clamp(16px, 4vw, 56px);
    --ease: cubic-bezier(0.22, 0.68, 0, 1);
    --transition: 0.35s var(--ease);
    --bs-body-font-family: var(--font);
    --bs-body-color: var(--black);
    --bs-body-bg: var(--white);
    --bs-border-color: var(--border);
    --bs-border-radius: 0;
    --bs-border-radius-sm: 0;
    --bs-border-radius-lg: 0;
    --bs-secondary-color: var(--gray);
}

/* Global reset and document defaults */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--white);
    color: var(--black);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1 0 auto;
    min-width: 0;
    animation: page-enter 0.55s var(--ease) both;
}

img {
    max-width: 100%;
}

/* Text selection and link styles */
::selection {
    background: var(--black);
    color: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition);
}

a:hover {
    color: var(--gray);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.btn,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 4px;
    box-shadow: none;
}

p {
    color: #424242;
}

hr {
    border-color: var(--border);
    opacity: 1;
}

.text-body-secondary,
.text-muted {
    color: var(--gray) !important;
}

.text-danger {
    color: var(--red) !important;
}

/* Global container and grid layout */
.container {
    width: 100%;
    max-width: 1600px;
    padding-right: var(--gutter);
    padding-left: var(--gutter);
}

.row {
    --bs-gutter-x: 24px;
    --bs-gutter-y: 36px;
}
/* Page Headers */
.login-page h1.h2,
.update-password-page h1.h2,
.update-account-page h1.h2,
.account-page h1.h2,
.register-page h1.h2,
.cart-summary-page h1.h2 {
    font-size: 25px !important;
    font-weight: 450 !important;
    letter-spacing: -0.9px !important;
}
/* Typography and heading styles */
h1,
h2,
h3,
h4,
h5,
.h1,
.h2,
.h3,
.h4,
.h5 {
    color: var(--black);
    font-family: var(--font);
    font-weight: 450;
    letter-spacing: -0.045em;
    line-height: 1.15;
}

h1,
.h1 {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.065em;
}

h1.h2,
main .h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700 !important;
    letter-spacing: -0.055em;
    line-height: 1.1;
}

.h4 {
    font-size: 23px;
}

.h5 {
    font-size: 17px;
}

.lead {
    margin-top: 16px;
    color: var(--gray) !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.7;
    text-transform: uppercase;
}

/* Global animations */
@keyframes page-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes menu-enter {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes button-sheen {
    from {
        transform: translateX(-140%) skewX(-18deg);
    }
    to {
        transform: translateX(220%) skewX(-18deg);
    }
}

@keyframes cart-pop {
    0% {
        transform: scale(0.75);
    }
    55% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes progress-line {
    to {
        transform: scaleX(1);
    }
}

@keyframes nike-slide {
    from {
        opacity: 0;
        transform: scale(1.04);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes hero-scroll {
    0%, 30% {
        transform: translateX(0);
    }
    33%, 63% {
        transform: translateX(-100%);
    }
    66%, 96% {
        transform: translateX(-200%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Scroll progress indicator */
@supports (animation-timeline: scroll()) {
    body::before {
        position: fixed;
        z-index: 2000;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--black);
        content: "";
        pointer-events: none;
        transform: scaleX(0);
        transform-origin: left;
        animation: progress-line linear both;
        animation-timeline: scroll(root);
    }
}

/* Navigation and utility bar */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 5%;
    background: #f5f5f5;
    color: #111;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.2px;
}

.top-nav .nav-account .dropdown > a,
.top-nav .nav-account > a {
    font-size: 12px !important;
    font-weight: 510 !important;
    font-family: var(--font) !important;
}

.top-nav a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-nav a:hover,
.top-nav > a:hover,
.top-nav .dropdown > a:hover {
    color: #757575;
}

.top-nav > a,
.top-nav .dropdown > a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-nav .dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-nav .dropdown-menu {
    max-width: calc(100vw - 24px);
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    z-index: 1050;
    min-width: 160px;
    margin: 0;
    padding: 6px 0;
    border: 0;
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(0 0 0 / 10%);
}

.top-nav .dropdown-item {
    padding: 7px 16px;
    color: #111;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.15px;
    white-space: nowrap;
}

.top-nav .dropdown-item:hover,
.top-nav .dropdown-item:focus {
    background: #f5f5f5;
    color: #111;
}

/* Account navigation links */
.nav-account {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
}

.nav-account .dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Brand logos in navigation */
.nav-logos {
    display: flex;
    align-items: center;
    gap: 44px;
}

.nav-logos img {
    display: block;
    width: auto;
    height: 17px;
    max-width: 33px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.nav-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: auto;
    margin-left: -15px;
}

/* Main navigation bar and branding */
.top-nav {
    padding-bottom: 10;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: 60px;
    padding: 0;
    padding-top: 0 !important;
    border-bottom: 0px solid #e5e5e5;
    background: #fff !important;
    margin-top: -1;
    position: sticky;
    top: -100%;
    transition: top 0.3s ease;
}

.navbar > .container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-height: 60px;
    padding: 0 38px;
}

.navbar .navbar-brand {
    padding: 0;
    margin-right: 32px;
    color: #111 !important;
    font-family: var(--font) !important;
    font-size: 28px !important;
    font-weight: 780 !important;
    line-height: 1;
    letter-spacing: -1.8px;
}

.navbar .navbar-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
}

.navbar-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 28px;
    width: auto;
}

.navbar .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 10px !important;
    color: #111 !important;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.25px;
    white-space: nowrap;
}

.navbar .navbar-nav .nav-link {
    font-family: var(--font) !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
    margin-right: 8px !important;
    align-items: center;
}

.navbar .nav-link::after {
    position: absolute;
    right: 10px;
    bottom: 0;
    left: 10px;
    height: 2px;
    border: 0;
    background: #111;
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus-visible::after {
    transform: scaleX(1);
}

.navbar .dropdown-toggle::after {
    display: none;
}

.navbar .dropdown-menu {
    top: 100%;
    min-width: 180px;
    margin-top: 0;
    padding: 6px 0;
    border: 0;
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(0 0 0 / 10%);
}

.navbar .dropdown-item {
    padding: 7px 16px;
    color: #111;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.15px;
    white-space: nowrap;
    transition: background 0.18s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: #f5f5f5;
    color: #111;
}

.navbar .dropdown-divider {
    margin: 5px 0;
    border-color: #e5e5e5;
}

@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu,
    .top-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }
}
#navbarContent .navbar-nav {
    transform: translateX(70px);
    margin-left: auto !important;
    margin-right: 100 !important;
}
/* Search */
.nks-search {
    display: flex;
    align-items: center;
    width: 180px;
    height: 36px;
    margin-right: 8px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 22px;
    background: #f5f5f5;
    transition: width 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.nks-search:hover {
    background: #eaeaea;
}

.nks-search:focus-within {
    width: 180px;
    border-color: #ccc;
    background: #fff;
}

.nks-search button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 1 60px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
}

.nks-search button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.nks-search input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 14px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500 !important;
    letter-spacing: -0.2px;
    box-shadow: none !important;
}

.nks-search input::placeholder {
    color: #757575;
    font-size: 17px !important;
    opacity: 1;
}


/* Navigation toggler */
.navbar-toggler {
    padding: 7px;
    border: 0;
    border-radius: 50%;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* Homepage hero */
.hero-slider {
    /* Keeps the text layer anchored to the hero, not to the whole page. */
    position: relative;
}

.hero-slider::before {
    display: block;
    background: #f5f5f5;
    content: "";
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 100px;
    color: #fff;
    text-align: center;
    pointer-events: none;
    transform: translateY(-40px);
    top: 45px;
}

.hero-overlay h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(91px, 15.6vw, 195px);
    font-weight: 900;
    letter-spacing: -8px;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.35);
}

.hero-overlay p {
    margin-top: 5px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-slides {
    width: 100%;
    overflow: hidden;
    background: #000;
}

.hero-slide {
    display: none;
    width: 100%;
}

.hero-slide.active {
    display: block;
    animation: nike-slide 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-slides .hero-slide img {
    display: block;
    width: 100%;
    height: 697px !important;
    object-fit: cover !important;
    /* same zoom, the crop comes off the bottom */
    object-position: center calc(40% + 20px);
}

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
}

.hero-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dots button.active {
    background: #ffffff;
    transform: scale(1.2);
}

.hero-dots button:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 30px 0;
    background: #ffffff;
}

.hero-logos-dark {
    background: #000000;
}

.hero-logos img {
    width: auto;
    height: 70px;
    object-fit: contain;
}

main > header {
    position: relative;
    display: flex;
    min-height: 270px;
    align-items: center;
    justify-content: center;
    padding: clamp(55px, 10vw, 125px) 0;
    overflow: hidden;
    background: var(--white);
    text-align: center;
    
}

main > header .container {
    position: relative;
    z-index: 1;
    
}

main > header .display-5 {
    margin: 0;
    color: var(--black);
    font-size: clamp(72px, 15vw, 190px);
    font-weight: 900 !important;
    letter-spacing: -0.105em;
    line-height: 0.82;
    animation: reveal-up 0.8s var(--ease) both;
}

main > header .lead {
    margin-top: 26px;
    font-size: clamp(10px, 1vw, 13px);
    letter-spacing: 0.15em;
    animation: reveal-up 0.8s var(--ease) 0.12s both;
}
/* Same style as the two tile headlines. */
.hero-overlay p:first-of-type {
    margin-top: 10px;
    font-size: clamp(26px, 2.7vw, 42px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.6px;
    text-transform: uppercase;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-overlay p:not(:first-of-type) {
    /* same size as the home tile subtitle */
    font-size: clamp(15px, 1.3vw, 21px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.35;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
 .hero-overlay a {
    color: #fff;
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-overlay a:hover {
    text-decoration: underline;
}

/* Categories page */
.categories-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px var(--gutter) 100px;
    position: relative;
}

.categories-page h1.h2 {
    font-size: 25px !important;
    font-weight: 450 !important;
    letter-spacing: -0.9px !important;
}

.categories-page {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 48px;
    padding-bottom: 100px;
}

.categories-page h1 {
    margin-bottom: 8px;
}

.categories-page > p {
    margin-bottom: 40px;
    color: var(--gray);
    font-size: 15px;
}

.categories-page .list-group {
    border: 0;
    border-radius: 0;
}

.categories-page .list-group-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 20px 4px !important;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0 !important;
    background: var(--white);
    color: var(--black);
    max-width: 650px;
    margin: 0 auto;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.025em;
    transition: padding var(--transition), background var(--transition), color var(--transition);
}


.categories-page .list-group-item:first-child {
    border-top: 1px solid var(--border);
}

.categories-page .list-group-item:hover,
.categories-page .list-group-item:focus {
    padding-right: 12px !important;
    padding-left: 12px !important;
    background: var(--light-gray);
    color: var(--black);
}

.categories-page .list-group-item i {
    font-size: 17px;
    transition: transform var(--transition);
}

.categories-page .list-group-item:hover i {
    transform: translateX(4px);
}

@media (max-width: 576px) {
    .categories-page {
        padding-top: 32px;
        padding-bottom: 64px;
    }

    .categories-page .list-group-item {
        min-height: 68px;
        font-size: 15px;
    }
}

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover {
    transform: translateY(0);
}

.btn:active {
    transform: scale(0.98);
}

.btn-dark {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}

.btn-dark:hover,
.btn-dark:focus {
    border-color: #424242;
    background: #424242;
    color: var(--white);
}

.btn-dark::after {
    display: none;
}

.btn-outline-dark {
    border-color: #b7b7b7;
    background: transparent;
    color: var(--black);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}

.btn-outline-danger {
    border-color: #b7b7b7;
    background: var(--white);
    color: var(--red);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    border-color: var(--red);
    background: var(--red);
    color: var(--white);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Forms and account pages */
.card.shadow-sm,
.card.border-0.shadow-sm {
    border: 1px solid var(--border) !important;
    border-radius: 0;
    background: var(--white);
    box-shadow: none !important;
}

.card.shadow-sm .card-body {
    padding: clamp(24px, 4vw, 44px);
}

form .card-body h1,
.card-body > h1 {
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.055em;
}

/* Form fields and validation */
.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--black);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.form-control,
.form-select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #b7b7b7;
    border-radius: 4px;
    background-color: var(--white);
    color: var(--black);
    font-family: var(--font);
    font-size: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control::placeholder {
    color: #8a8a8a;
    opacity: 1;
}

.form-control:hover,
.form-select:hover {
    border-color: #757575;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--black);
    background-color: var(--white);
    color: var(--black);
    outline: none;
    box-shadow: 0 0 0 1px var(--black);
}

.form-select {
    cursor: pointer;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-text {
    margin-top: 7px;
    color: var(--gray);
    font-size: 12px;
}

.form-check-input {
    border-color: #757575;
    border-radius: 3px;
}

.form-check-input:checked {
    border-color: var(--black);
    background-color: var(--black);
}

.form-check-input:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
}

.invalid-feedback {
    margin-top: 6px;
    color: var(--red);
    font-size: 12px;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: var(--red);
}

/* Notifications and alerts */
.alert {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--light-gray);
    color: var(--black);
    font-size: 13px;
    animation: reveal-up 0.35s var(--ease) both;
}

.alert-danger,
.alert-error {
    border-color: #f0c9ce;
    background: #fff4f4;
    color: var(--red);
}

.alert-success {
    border-color: #c6e9d4;
    background: #f2fbf5;
    color: #16834a;
}

.alert-warning {
    border-color: #f0e2bc;
    background: #fffaef;
    color: #8a6516;
}

.alert-info {
    border-color: #cfe0f5;
    background: #f4f8ff;
    color: #1f4f8a;
}

.alert-secondary {
    border-color: #e5e5e5;
    background: #f5f5f5;
    color: #111111;
}

/* Field errors, whatever the form rendered them with. */
ul.errorlist {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: #d3132a;
    font-size: 12px;
    line-height: 1.4;
}

ul.errorlist li {
    margin: 0;
}

/* Floating toast used by the scripts. */
.nks-toast {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(520px, calc(100vw - 32px));
    padding: 14px 18px;
    border: 1px solid #f0c9ce;
    border-radius: 4px;
    background: #fff4f4;
    color: #d3132a;
    font-size: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translate(-50%, -12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nks-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.nks-toast.nks-toast-success {
    border-color: #c6e9d4;
    background: #f2fbf5;
    color: #16834a;
}

.alert .btn-close {
    margin-left: auto;
    padding: 10px;
    opacity: 0.6;
    transition: opacity var(--transition), transform var(--transition);
}

.alert .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}
/* Nike Logo Footer */
.hero-logos img {
    width: 55px;
    height: auto;
    object-fit: contain;
}

/* Footer */
footer.bg-dark {
    position: relative;
    margin-top: auto;
    padding: 28px 0 !important;
    /* same black as the Jordan band on the home page */
    background: #000000 !important;
    color: var(--white);
}

footer.bg-dark p {
    margin: 0;
    color: #d1d1d1 !important;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* Search results and category layouts */
#search-results-heading {
    margin-bottom: 30px !important;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

#search-results-heading span {
    display: inline-block;
    margin-top: 5px;
    color: #111;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.8px;
}
.search-results-page #search-results-heading span {
    font-size: 25px;
    font-weight: 400;
    letter-spacing: -0.9px;
}

.search-results-page .card {
    overflow: hidden;
    border: none;
    border-radius: 0;
    background: #fff;
}

.search-results-page .card-img-top {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f5f5f5;
    border-radius: 0 !important;
}

.search-results-page .card-body {
    padding: 13px 0 8px;
}

.search-results-page .card-body h3,
.search-results-page .card-body h3 a {
    font-size: 16.5px !important;
    font-weight: 600 !important;
    color: #111 !important;
    text-align: left !important;
    margin-bottom: 2px !important;
}

.search-results-page .card-body h4 {
    text-transform: capitalize;
    color: #757575;
    font-size: 16.5px;
    font-weight: 500;
    margin-bottom: 2px !important;
}

.search-results-page .card-body p {
    margin-bottom: 5px;
    color: #111;
    font-size: 14px;
}

.search-results-page .card-footer {
    padding: 8px 0 0 !important;
    background: #fff !important;
}

.search-results-page .card-footer .btn:hover {
    background: #333;
}

.search-results-page .badge {
    padding: 7px 12px;
    border-radius: 0;
    background: #111 !important;
    font-size: 11px;
    font-weight: 600;
}
.search-results-page .card-body p.text-danger.fw-semibold {
    display: block !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #e53935 !important;
    font-size: 16.5px !important;
    font-weight: 600 !important;
    text-align: left !important;
    margin-bottom: 2px !important;
}
.search-results-page .card-body > div.text-center {
    padding-top: 3px !important;
    margin-top: 3px !important;
}

.search-results-page .card-body > div.text-center p {
    margin-top: 3px !important;
    margin-bottom: 3px !important;
}

/* Add-to-bag action */
.nike-add-to-bag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    padding: 16px 24px;
    border: 0;
    border-radius: 30px;
    background: #111;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nike-add-to-bag:hover {
    background: #757575;
}

.nike-add-to-bag:active {
    background: #333;
}

.nike-continue-shopping {
    display: flex;
    position: relative;
    width: 100%;
    min-height: 60px;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
    padding: 0 22px;
    border: 1px solid #d3d3d3;
    border-radius: 30px;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.nike-continue-shopping:hover {
    border-color: #111;
    color: #111;
}

.nike-continue-shopping span {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.nike-continue-shopping:hover span {
    transform: translate(2px, -2px);
}


/* Sale badges and sale pricing */
.badge.bg-dark {
    background-color: #ef5350 !important;
    color: #fff !important;
}

.card .text-center del {
    margin-right: 6px;
    color: #757575 !important;
    font-size: 14px;
}

.card .text-center del + span.fw-bold {
    color: #218c45 !important;
}

.card .text-danger.fw-semibold {
    color: #ef5350 !important;
}

/* Responsive layout: large screens */
@media (min-width: 1200px) {
    .container {
        padding-right: clamp(32px, 4vw, 64px);
        padding-left: clamp(32px, 4vw, 64px);
    }
    main > header .display-5 {
        font-size: clamp(120px, 14vw, 190px);
    }
    article.card .card-body h2,
    article.card .card-body h3 {
        font-size: 16px;
    }
}

/* Responsive navigation: medium screens */
@media (max-width: 1199.98px) {
    .navbar > .container {
        padding-right: 24px;
        padding-left: 24px;
    }
    .navbar .nav-link {
        font-size: 12px;
    }
    .navbar .nav-link::after {
        right: 9px;
        left: 9px;
    }
    .navbar-brand {
        margin-right: 24px;
    }
    .navbar .nav-link {
        padding-right: 8px !important;
        padding-left: 8px !important;
    }
    .nks-search {
        width: 150px;
        margin-right: 10px;
        flex-basis: 145px;
    }
    .nks-search:focus-within {
        width: 190px;
        flex-basis: 175px;
    }
}

/* Responsive navigation: tablets and mobile */
@media (max-width: 991.98px) {
    :root {
        --nav-height: 60px;
    }
    .top-nav {
        min-height: 32px;
        padding: 0 24px;
        gap: 12px;
    }
    .top-nav .dropdown {
        gap: 12px;
    }
    .navbar > .container {
        flex-wrap: wrap;
        min-height: 58px;
        padding: 0 24px;
    }
    .navbar-brand {
        margin-right: auto;
        font-size: 27px;
    }
    .navbar-toggler {
        order: 2;
        margin-left: 8px;
    }
    .navbar-collapse {
        flex-basis: 100%;
        order: 3;
        margin: 0 calc(var(--gutter) * -1);
        padding: 12px var(--gutter) 22px;
        border-top: 1px solid var(--border);
        background: var(--white);
    }
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        animation: menu-enter 0.25s var(--ease) both;
    }
    .navbar-nav {
        align-items: stretch;
        gap: 0;
    }
    .navbar .nav-link {
        display: flex;
        min-height: 48px;
        padding: 12px 0 !important;
        font-size: 15px;
    }
    .navbar .nav-link::after {
        right: auto;
        bottom: 7px;
        left: 0;
        width: 35px;
    }
    .navbar .dropdown-menu {
        position: static;
        min-width: 0;
        margin: 0 0 12px;
        padding: 6px 0 6px 12px;
        border: 0;
        border-left: 1px solid var(--border);
        border-radius: 0;
        box-shadow: none;
        animation: none;
    }
    .navbar .dropdown-item {
        padding: 12px;
        font-size: 14px;
    }
    .navbar .dropdown-divider {
        margin: 6px 0;
    }
    .navbar-collapse > .nks-search {
        flex: 1 1 100%;
        width: 100%;
        height: 46px;
        margin: 18px 0 10px;
    }
    .navbar-collapse > .nks-search:focus-within {
        flex-basis: 100%;
    }
    .navbar-collapse > .nike-cart {
        margin: 8px 0 0;
    }
    .nks-search {
        width: 100%;
        height: 42px;
        margin: 14px 0;
    }
    .nks-search:focus-within {
        width: 100%;
    }
    .nike-cart {
        position: absolute;
        top: 9px;
        right: 76px;
    }

    .nike-fav {
        position: absolute;
        top: 9px;
        right: 118px;
    }
    main > header {
        min-height: 230px;
        padding: 80px 0;
    }
    main > header .display-5 {
        font-size: clamp(76px, 17vw, 140px);
    }
    main .col-lg-4 > .card {
        position: static;
    }
    main .col-lg-8 > .card > .row > div:first-child img {
        min-height: 200px;
    }
}


/* Responsive layout: tablet and mobile */
@media (max-width: 767.98px) {
    :root {
        --gutter: 22px;
    }
    .row {
        --bs-gutter-x: 16px;
        --bs-gutter-y: 28px;
    }
    main > header {
        min-height: 200px;
        padding: 68px 0;
    }
    main > header .display-5 {
        font-size: clamp(70px, 19vw, 125px);
    }
    main > header .lead {
        margin-top: 20px;
        font-size: 10px;
        letter-spacing: 0.12em;
    }
    main section[aria-label="Products"],
    main section[aria-label="Category products"] {
        padding-bottom: 48px;
    }
    article.card .card-body {
        padding-top: 12px;
    }
    article.card .card-body h2,
    article.card .card-body h3 {
        font-size: 14px;
    }
    article.card .card-footer {
        padding-top: 8px !important;
    }
    .btn {
        min-height: 46px;
        padding: 13px 20px;
    }
    main > .container > .card .card-body {
        padding: 26px !important;
    }
    main > .container > .card > .row > div:first-child img {
        min-height: 300px;
        max-height: 500px;
    }
    main .col-lg-8 > .card .card-body {
        padding: 20px !important;
    }
    main .col-lg-8 > .card > .row > div:first-child img {
        min-height: 260px;
        max-height: 420px;
    }
    main .col-lg-4 > .card .card-body {
        padding: 22px !important;
    }
}


/* Responsive navigation: small mobile screens */
@media (max-width: 575.98px) {
    .top-nav {
        padding: 0 16px;
        gap: 10px;
    }
    .top-nav .dropdown {
        gap: 10px;
    }
    .navbar > .container {
        padding: 0 16px;
    }
    .navbar-brand {
        font-size: 25px;
    }
    .nike-cart {
        right: 64px;
    }
    :root {
        --gutter: 18px;
    }
    body {
        font-size: 14px;
    }
    .container {
        padding-right: var(--gutter);
        padding-left: var(--gutter);
    }
    .row {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 26px;
    }
    h1.h2,
    main .h2 {
        font-size: 29px;
    }
    main > header {
        min-height: 175px;
        padding: 58px 0;
    }
    main > header .display-5 {
        font-size: clamp(66px, 20vw, 110px);
    }
    main > header .lead {
        margin-top: 17px;
        font-size: 9px;
        letter-spacing: 0.1em;
    }
    main section[aria-label="Products"],
    main section[aria-label="Category products"] {
        padding-bottom: 35px;
    }
    article.card .card-body {
        padding-top: 10px;
    }
    article.card .card-body h2,
    article.card .card-body h3 {
        font-size: 13px;
        line-height: 1.45;
    }
    article.card .card-body p,
    article.card .card-body .fw-bold {
        font-size: 13px;
    }
    article.card .card-footer .btn {
        min-height: 42px;
        padding: 11px 8px;
        font-size: 12px;
    }
    article.card > .badge {
        margin: 7px !important;
        padding: 6px 9px;
        font-size: 9px;
    }
    .list-group-item {
        min-height: 64px;
        padding: 17px 3px !important;
        font-size: 15px;
    }
    .card.shadow-sm .card-body {
        padding: 24px !important;
    }
    main > .container > .card .card-body {
        padding: 22px !important;
    }
    main > .container > .card .card-body h1 {
        font-size: 30px;
    }
    main > .container > .card > .row > div:first-child img {
        min-height: 260px;
        max-height: 390px;
    }
    main .col-lg-8 > .card > .row > div:first-child img {
        min-height: 220px;
        max-height: 320px;
    }
    main .col-lg-8 > .card .card-body {
        padding: 18px !important;
    }
    main .col-lg-8 > .card .card-body h2 {
        font-size: 15px;
    }
    main .col-lg-8 > .card .card-body .fs-4 {
        font-size: 19px !important;
    }
    main .col-lg-4 > .card .card-body {
        padding: 20px !important;
    }
    .form-control,
    .form-select {
        min-height: 46px;
        font-size: 14px;
    }
    .btn {
        min-height: 46px;
        padding: 13px 18px;
        font-size: 13px;
    }
    footer.bg-dark {
        padding: 24px 0 !important;
    }
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .top-nav a,
    .navbar .nav-link::after,
    .navbar .dropdown-item,
    .nks-search,
    .nike-cart {
        transition: none;
    }
    .nike-product-main-image,
    .nike-add-to-bag,
    .nike-continue-shopping,
    .nike-continue-shopping span,
    .nike-quantity-select {
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Nike-style product page layout */
.nike-product-page {
    border-top: 60px solid #f5f5f5;
}
.nike-product-page {
    width: 100%;
    padding: 24px 40px 80px;
    background: #fff;
    color: #111;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.nike-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 500px) 350px;
    align-items: start;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
}
.nike-product-layout {
    column-gap: 40px;
}
.search-results-page .card > span.badge.bg-dark {
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    margin: 0 !important;
    padding: 5px 8px !important;
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px !important;
    z-index: 2 !important;
}
.nike-size-option.unavailable::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    height: 1px;
    background: #b7b7b7;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center;
    pointer-events: none;
}

.nike-size-option.unavailable:hover {
    border-color: #e5e5e5;
}

/* Product gallery and primary image */
.nike-product-gallery {
    position: sticky;
    top: 20px;
    align-self: start;
}
.nike-product-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    background: #f5f5f5;
}
.nike-product-image-empty {
    aspect-ratio: 1 / 1;
}
.nike-product-description {
    max-width: 500px;
    margin: 24px auto 0;
    padding: 0 4px;
    color: #111;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.nike-product-gallery {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.nike-product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 650px;
    overflow-y: auto;
    scrollbar-width: none;
    position: relative;
    top: 20px;
}

.nike-product-thumbnails::-webkit-scrollbar {
    display: none;
}

.nike-product-thumbnail {
    width: 60px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: none;
    outline: none;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.nike-product-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.2s ease;
}

.nike-product-thumbnail:hover img {
    filter: brightness(0.85);
}

.nike-product-thumbnail.active {
    border: none;
    outline: none;
}

/* Product information and purchase controls */
.nike-product-details {
    position: sticky;
    top: 24px;
    width: 100%;
    min-width: 0;
}
.nike-product-heading {
    margin-bottom: 28px;
}
.nike-product-title {
    margin: 0 0 12px;
    color: #111;
    font-size: 20px;
    font-weight: 420;
    line-height: 1.15;
    letter-spacing: -0.6px;
    overflow-wrap: anywhere;
    margin-bottom: 0;
}
.nike-product-gender {
    font-size: 16px;
    color: #757575;
    margin: 4px 0 12px;
    text-transform: capitalize;
    margin-top: 0;
    margin-bottom: 8;
}
.nike-product-price {
    margin: 0;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}
.nike-product-price-sale {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nike-product-price-sale del {
    color: #757575;
    font-weight: 400;
}
.nike-product-price-sale span {
    color: #111;
    font-weight: 500;
}
.nike-add-to-bag:focus-visible,
.nike-continue-shopping:focus-visible,
.nike-quantity-select:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}
.nike-product-description {
    font-size: 15px !important;
    line-height: 1.3;
    margin-top: 0;
    padding-top: 0;
}
/* Product image slider */
.nike-product-slider {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 4 / 4.5;
    overflow: hidden;
    background: #f5f5f5;
}
.nike-slider-arrow:hover {
    background: #111;
    color: #fff;
}
.nike-slider-prev {
    left: 20px;
}
.nike-slider-next {
    right: 20px;
}
/* Responsive product page */
/* Product grids and listing section */
main section[aria-label="Products"],
main section[aria-label="Category products"] {
    padding-bottom: 72px;
}
main section[aria-label="Products"] > .container {
    max-width: 1600px;
}
.row-cols-1.row-cols-sm-2.row-cols-lg-3.row-cols-xl-4 > .col {
    animation: reveal-up 0.65s var(--ease) both;
}
.row-cols-1.row-cols-sm-2.row-cols-lg-3.row-cols-xl-4 > .col:nth-child(4n + 2) {
    animation-delay: 0.04s;
}
.row-cols-1.row-cols-sm-2.row-cols-lg-3.row-cols-xl-4 > .col:nth-child(4n + 3) {
    animation-delay: 0.08s;
}
.row-cols-1.row-cols-sm-2.row-cols-lg-3.row-cols-xl-4 > .col:nth-child(4n + 4) {
    animation-delay: 0.12s;
}
/* Product detail page */
main > .container > .card.border-0 {
    overflow: hidden;
    border: 0 !important;
    border-radius: 0;
    background: var(--white);
    box-shadow: none !important;
}
main > .container > .card > .row > div:first-child {
    overflow: hidden;
    background: var(--light-gray);
}
main > .container > .card > .row > div:first-child img {
    display: block;
    width: 100%;
    min-height: 350px;
    max-height: 650px;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}
main > .container > .card > .row > div:first-child:hover img {
    transform: scale(1.025);
}
main > .container > .card .card-body {
    padding: clamp(24px, 4vw, 56px) !important;
}
main > .container > .card .card-body h1 {
    margin-bottom: 20px !important;
    font-size: clamp(30px, 3.5vw, 48px);
    font-weight: 700 !important;
    letter-spacing: -0.06em;
    line-height: 1.08;
}
main > .container > .card .card-body > p {
    max-width: 48ch;
    color: #424242;
    font-size: 15px;
    line-height: 1.8;
}
main > .container > .card .card-body .fs-2 {
    color: var(--black);
    font-size: 25px !important;
    font-weight: 600;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
}
main > .container > .card .badge.bg-warning {
    padding: 8px 12px;
    border: 0;
    border-radius: 30px;
    background: var(--light-gray) !important;
    color: var(--black) !important;
    font-size: 11px;
    font-weight: 600;
}
main > .container > .card .form-select {
    max-width: 120px;
}
/* Product cards */
article.card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--white);
    box-shadow: none;
    transition: background var(--transition);
}
article.card .card-img-top {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--light-gray);
    transform: scale(1);
    transition: transform 0.75s var(--ease), filter 0.5s var(--ease);
}
article.card:hover .card-img-top {
    filter: brightness(0.985);
    transform: scale(1.035);
}
article.card > .badge {
    z-index: 2;
    margin: 12px !important;
    padding: 8px 11px;
    border: 0;
    border-radius: 30px;
    background: var(--white) !important;
    color: var(--black) !important;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
article.card > .badge::before {
    display: none;
}
article.card .card-body {
    display: flex;
    flex-direction: column;
    padding: 17px 0 8px;
    text-align: left;
}
article.card .card-body .text-center {
    text-align: left !important;
}
article.card .card-body h2,
article.card .card-body h3 {
    margin-bottom: 7px;
    color: var(--black);
    font-size: 15px;
    font-weight: 600 !important;
    letter-spacing: -0.025em;
    line-height: 1.45;
}
article.card .card-body p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.6;
}
article.card .card-body p.text-danger {
    margin-bottom: 5px;
    color: var(--red) !important;
    font-size: 12px;
    font-weight: 500;
}
article.card .card-body .fw-bold {
    color: var(--black);
    font-size: 14px;
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums;
}
article.card .card-body del {
    margin-right: 5px;
    color: var(--gray);
    font-weight: 400;
}
article.card .card-footer {
    padding: 8px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
}
article.card .card-footer .btn {
    width: 100%;
}

.nike-product-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.nike-product-slide.active {
    opacity: 1;
    visibility: visible;
}

.nike-product-main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    aspect-ratio: 4 / 4.5;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.nike-product-slider {
    position: relative;
    top: 20px;
}
.nike-slider-arrow {
    position: absolute;
    top: auto;
    bottom: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
    border: none;
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    width: 37px;
    height: 37px;
    font-size: 20px;
    font-weight: 400;
    border-radius: 100%;
}

.nike-slider-prev {
    right: 68px;
    left: auto;
}
.nike-slider-next {
    right: 22px;
}
/* Product size selector */
.nike-product-sizes {
    margin-bottom: 28px;
}

.nike-size-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #111;
    font-size: 16px;
    font-weight: 500;
}

.nike-size-heading a {
    color: #757575;
    font-size: 14px;
    text-decoration: none;
}

.nike-size-heading a:hover {
    color: #111;
}

.nike-size-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.nike-size-option {
    position: relative;
    height: 48px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
    color: #111;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.nike-size-option:hover:not(:disabled) {
    border-color: #111;
}

.nike-size-option.selected {
    border: 1.5px solid #111;
    background: #111;
    color: #fff;
}

.nike-size-option.unavailable {
    position: relative;
    overflow: hidden;
    color: #b7b7b7;
    cursor: not-allowed;
    background: #fff;
}

/* Shopping bag */
.nike-fav {
    position: relative;
    top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 4px;
    color: #111;
    text-decoration: none;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nike-fav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #111;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nike-fav:hover {
    background-color: #e5e5e5;
}

.nike-fav:active {
    transform: scale(0.95);
}

.nike-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: -1px;
    color: #111;
    text-decoration: none;
    place-items: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nike-cart:hover {
    background-color: #e5e5e5;
}

.nike-cart:active {
    transform: scale(0.95);
}

.nike-cart svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: #111;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nike-cart-count {
    position: absolute;
    top: 18px;
    left: 50%;
    color: #111;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    transform: translateX(-50%);
    pointer-events: none;
}
.nike-cart:hover {
    background-color: #e5e5e5;
}

.nike-cart:hover svg {
    background-color: transparent;
    stroke: #111 !important;
    color: #111 !important;
}

.nike-cart:hover svg path,
.nike-cart:hover svg circle,
.nike-cart:hover svg line {
    stroke: #111 !important;
}

/* Nike Shopping Bag */

.nike-bag {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 0px 80px;
    color: #111;
}

.nike-bag-header {
    margin-bottom: 40px;
}

.nike-bag-header h1 {
    font-size: 25px;
    font-weight: 450;
    letter-spacing: -0.9px;
}

.nike-bag-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 90px;
}

.nike-bag-item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.nike-bag-image {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: transparent;
    overflow: visible;
}

.nike-bag-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nike-bag-image:hover img {
    transform: scale(1.04);
}

.nike-bag-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.nike-bag-info h2 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.nike-bag-info p {
    margin-bottom: 6px;
    color: #707072;
    font-size: 14px;
}

.nike-bag-price {
    white-space: nowrap;
    color: #111;
    font-size: 15px;
    font-weight: 500;
}

.nike-bag-price del {
    display: block;
    margin-bottom: 5px;
    color: #707072;
    font-size: 14px;
    font-weight: 400;
}

.nike-bag-price .sale-price {
    color: #111;
}


.nike-bag-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    width: fit-content;
    margin-top: 20px;
    background: #fff;
}

.nike-bag-quantity button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #111;
    font-size: 19px;
    cursor: pointer;
    flex-shrink: 0;
}

.nike-bag-quantity input {
    width: 30px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #111;
    font-size: 14px;
    text-align: center;
    pointer-events: none;
    flex-shrink: 0;
}

.nike-bag-quantity button:hover {
    background: #e5e5e5;
}

.nike-bag-quantity input {
    width: 25px;
    height: 50px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.nike-bag-summary {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.nike-bag-summary h2 {
    margin: 0 0 28px;
    font-size: 21px;
    font-weight: 500;
}

.nike-bag-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 15px;
}

.nike-bag-summary-row span:last-child {
    font-weight: 500;
}

.nike-bag-checkout,
.nike-bag-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.nike-bag-checkout {
    border: 0;
    background: #111;
    color: #fff;
}

.nike-bag-checkout:hover {
    background: #707072;
    color: #fff;
}

.nike-bag-empty {
    padding: 70px 20px;
    text-align: center;
}

.nike-bag-empty h2 {
    margin-bottom: 12px;
    font-size: 26px;
    font-weight: 500;
}

.nike-bag-empty p {
    margin-bottom: 28px;
    color: #707072;
    font-size: 15px;
}

.nike-bag-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 32px;
    border-radius: 30px;
    background: #111;
    color: #fff;
    text-decoration: none;
}

.nike-bag-empty a:hover {
    background: #707072;
}

/* ========================================
   SHIPPED
======================================== */

.nike-orders {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px var(--gutter) 100px;
    position: relative;
}

.nike-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nike-orders-header h1 {
    font-size: 25px;
    font-weight: 450;
    letter-spacing: -0.9px;
}

.nike-orders-header span {
    color: var(--gray);
    font-size: 13px;
    font-weight: 500;
}

.nike-orders-list {
    width: 100%;
    border-top: 1px solid var(--border);
}


.nike-order-info {
    min-width: 0;
    flex: 0 1 500px;
}

.nike-order-number {
    margin-bottom: 10px;
}

.nike-order-number a {
    color: var(--black);
    font-size: 16px;
    font-weight: 700;
}

.nike-order-number a:hover {
    color: var(--gray);
}

.nike-order-info p {
    margin: 4px 0 0;
    color: var(--gray);
    font-size: 13px;
}

.nike-order-price span {
    color: var(--gray);
    font-size: 12px;
}

.nike-order-price strong {
    color: var(--black);
    font-size: 15px;
    font-weight: 700;
}

.nike-orders-empty {
    padding: 70px 0;
}

.nike-orders-empty h2 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.nike-orders-empty p {
    margin: 0;
    color: var(--gray);
    font-size: 14px;
}
.nike-order-price button {
    border-radius: 100px;
    padding: 7px 12px;
    font-size: 12px;
    white-space: nowrap;
}
.nike-order-price {
    align-items: center;
    justify-content: space-between;
    display: flex;
    flex-direction: row;
    gap: 30px;
    min-width: 100px;
    flex: 0 0 auto;
    min-width: 280px;
}

.nike-order-price > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nike-orders {
    max-width: 800px;
}

.nike-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}




/* ==========================================================================
   Products panel — add product form (same language as the filter)
   ========================================================================== */

.nike-admin-form {
    max-width: 560px;
    margin: 0 auto;
    /* The filter palette is scoped to the filter form; the panel needs it too. */
    --filter-border: #e5e5e5;
    --filter-text: #111111;
    --filter-muted: #757575;
}

/* Exactly the filter sidebar language: bare column, hairline dividers. */
.nike-admin-form .nike-filter-group {
    border-top: 1px solid #e5e5e5;
}

.nike-admin-form .nike-filter-group:first-of-type {
    border-top: 0;
}

.nike-admin-form .nike-filter-group-head {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 6px;
    border: 0;
    background: none;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #111111;
    text-align: left;
    cursor: pointer;
}

.nike-admin-form .nike-chevron {
    flex: 0 0 auto;
    color: #111111;
    transition: transform 0.2s ease;
}

.nike-admin-form .nike-filter-group:not(.is-open) .nike-chevron {
    transform: rotate(-90deg);
}

.nike-admin-form .nike-filter-group-body {
    display: block;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.32s ease, opacity 0.22s ease, padding 0.32s ease;
}

.nike-admin-form .nike-filter-group.is-open .nike-filter-group-body {
    max-height: 2400px;
    padding: 6px 0 22px;
    opacity: 1;
}

.nike-admin-field {
    margin-bottom: 14px;
}

.nike-admin-label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 400;
    color: #111111;
}

.nike-admin-form input[type="text"],
.nike-admin-form input[type="number"],
.nike-admin-form input[type="email"],
.nike-admin-form select,
.nike-admin-form textarea {
    width: 100%;
    height: 45px;
    padding: 0 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #ffffff;
    font-family: var(--font);
    font-size: 16px;
    color: #111111;
}

.nike-admin-form textarea {
    height: auto;
    min-height: 90px;
    padding: 11px 12px;
    line-height: 1.45;
}

/* Selects follow the site dropdowns: no native arrow, a thin chevron. */
.nike-admin-form select {
    -webkit-appearance: none !important;
    appearance: none !important;
    padding-right: 40px !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 13px 13px !important;
    cursor: pointer;
}

.nike-admin-form select::-ms-expand {
    display: none;
}

/* Prices are typed in, so the spinner arrows are removed. */
.nike-admin-form input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.nike-admin-form input[type="number"]::-webkit-outer-spin-button,
.nike-admin-form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.nike-admin-form input[type="text"]:focus,
.nike-admin-form input[type="number"]:focus,
.nike-admin-form input[type="email"]:focus,
.nike-admin-form select:focus,
.nike-admin-form textarea:focus {
    outline: none;
    border-color: #111111;
}

.nike-admin-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #111111;
}

.nike-admin-help {
    margin: 5px 0 0;
    font-size: 12px;
    color: #757575;
}

.nike-admin-error {
    margin: 5px 0 0;
    font-size: 12px;
    color: #d3132a;
}

.nike-admin-file {
    width: 100%;
    height: 45px;
    padding: 11px 12px;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    background: #ffffff;
    font-size: 15px;
}

.nike-admin-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #111111;
    cursor: pointer;
}

.nike-admin-select {
    position: relative;
}

.nike-admin-select-toggle {
    display: flex;
    width: 100%;
    height: 45px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #ffffff;
    font-family: var(--font);
    font-size: 16px;
    color: #111111;
    text-align: left;
    cursor: pointer;
}

.nike-admin-select-toggle:hover {
    border-color: #757575;
}

/* Same behaviour as the navigation menus: opens on hover, no click needed. */
@media (hover: hover) and (min-width: 992px) {
    .nike-admin-select:hover .nike-admin-select-menu {
        display: block;
    }

    .nike-admin-select:hover .nike-chevron {
        transform: rotate(180deg);
    }

    .nike-admin-select:hover .nike-admin-select-toggle {
        border-color: #111111;
    }
}

.nike-admin-select-toggle[aria-expanded="true"] {
    border-color: #111111;
}

.nike-admin-select.is-open .nike-chevron {
    transform: rotate(180deg);
}

.nike-admin-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 20;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    margin: 0;
    padding: 4px 0;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    list-style: none;
}

.nike-admin-select.is-open .nike-admin-select-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

/* Stays closed after a choice until the pointer leaves and comes back. */
.nike-admin-select.is-chosen .nike-admin-select-menu {
    display: none !important;
}

.nike-admin-select-option {
    display: block;
    width: 100%;
    padding: 9px 16px;
    border: 0;
    background: none;
    font-family: var(--font);
    font-size: 15px;
    color: #111111;
    text-align: center;
    cursor: pointer;
}

.nike-admin-select-option:hover,
.nike-admin-select-option.is-active {
    background: #f5f5f5;
}

.nike-admin-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.nike-admin-image {
    display: block;
    margin: 0;
    cursor: pointer;
}

.nike-admin-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    background: #f5f5f5;
}

.nike-admin-image-remove {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    color: #757575;
}

.nike-admin-back {
    display: block;
    margin-top: 14px;
    text-align: center;
    font-size: 15px;
    color: #111111;
    text-decoration: underline;
}

/* Products panel */
.nike-products-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nike-products-actions span {
    color: var(--gray);
    font-size: 13px;
    font-weight: 500;
}

.nike-products-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    background: #f5f5f5;
    overflow: hidden;
}

.nike-products-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ========================================
   UNSHIPPED
======================================== */

/* Uses the same classes and styles as SHIPPED.
   No additional CSS is required. */

/* ========================================
   ORDERS
======================================== */

.nike-order-details {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px var(--gutter) 100px;
    position: relative;
}

.nike-order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nike-order-details-header h1 {
    font-size: 25px;
    font-weight: 450;
    letter-spacing: -0.9px;
}

.nike-order-details-header span {
    color: var(--gray);
    font-size: 13px;
    font-weight: 500;
}

.nike-order-details-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    align-items: start;
}

.nike-order-details-main {
    min-width: 0;
}

.nike-order-section {
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.nike-order-section h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nike-order-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 8px;
    font-size: 13px;
}

.nike-order-detail-row span:first-child {
    color: var(--gray);
}

.nike-order-detail-row span:last-child {
    color: var(--black);
    font-weight: 500;
    text-align: right;
}

.nike-order-address {
    margin: 0;
    color: var(--gray);
    font-size: 13px;
    line-height: 1.8;
}

.nike-order-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.nike-order-product-info {
    flex: 1;
    min-width: 0;
}

.nike-order-product-info h3 {
    margin-bottom: 8px;
    color: var(--black);
    font-size: 15px;
    font-weight: 600;
}

.nike-order-product-info p {
    margin: 0;
    color: var(--gray);
    font-size: 13px;
}

.nike-order-product-price {
    color: var(--black);
    font-size: 15px;
    font-weight: 700;
}

.nike-order-details-summary {
    position: sticky;
    top: 30px;
    padding: 24px;
    border: 1px solid var(--border);
}

.nike-order-details-summary h2 {
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nike-order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 13px;
}

.nike-order-summary-row span {
    color: var(--gray);
}

.nike-order-summary-row strong {
    color: var(--black);
    font-size: 15px;
    font-weight: 700;
}

.nike-order-status.shipped {
    color: #16834a;
}
.nike-order-detail-row .nike-order-status.unshipped {
    color: red !important;
}
.nike-order-status.unshipped {
    color: #d3132a;
}



/* ========================================
   LOGIN
======================================== */
.login-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px var(--gutter) 100px;
    position: relative;
}


.login-page .row {
    width: 100%;
}

.login-page .card-body {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 !important;
}

.login-page h1 {
    margin-bottom: 8px !important;
    font-size: 30px !important;
}

.login-page p {
    margin-bottom: 36px !important;
}

.login-page .form-label {
    margin-bottom: 9px;
}

.login-page .form-control {
    width: 100%;
    height: 52px;
    padding: 0 14px;
}

.login-page .btn {
    width: 100%;
    height: 52px;
}

@media (max-width: 576px) {
    .login-page {
        min-height: 550px;
    }
}
/* ========================================
   REGISTER
======================================== */
.register-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px var(--gutter) 100px;
    position: relative;
}

.register-page .row {
    width: 100%;
}

.register-page .card-body {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 !important;
}

.register-page h1 {
    margin-bottom: 8px !important;
    font-size: 30px !important;
}

.register-page p {
    margin-bottom: 36px !important;
}

.register-page .form-label {
    margin-bottom: 9px;
}

.register-page .form-control {
    width: 100%;
    height: 52px;
    padding: 0 14px;
}

.register-page .btn {
    width: 100%;
    height: 52px;
}

@media (max-width: 576px) {
    .register-page {
        min-height: 550px;
    }
}
.register-page .form-label {
    display: block;
    margin-bottom: 9px;
}

.register-page input,
.register-page select,
.register-page textarea {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--black);
    font-family: var(--font);
    font-size: 14px;
    box-shadow: none;
    outline: none;
}

.register-page textarea {
    height: auto;
    min-height: 100px;
    padding: 14px;
}

.register-page input:focus,
.register-page select:focus,
.register-page textarea:focus {
    border-color: var(--black);
    box-shadow: none;
}

.register-page .form-text {
    margin-top: 7px;
    font-size: 12px;
    color: var(--gray);
}

.register-page .invalid-feedback {
    margin-top: 6px;
    font-size: 12px;
}

.register-page .mb-3 {
    margin-bottom: 24px !important;
}

/* ========================================
   ACCOUNT
======================================== */
.account-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px var(--gutter) 100px;
    position: relative;
}

.account-content {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.account-content h1 {
    margin-bottom: 8px !important;
    font-size: 30px !important;
}

.account-content > p {
    margin-bottom: 36px !important;
}

.account-content h2 {
    font-size: 18px;
    font-weight: 600;
}

.account-content .form-label {
    display: block;
    margin-bottom: 9px;
}

.account-content input,
.account-content select,
.account-content textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--black);
    font-family: var(--font);
    font-size: 14px;
    box-shadow: none;
}

.account-content textarea {
    height: auto;
    padding: 14px;
}

.account-content input:focus,
.account-content select:focus,
.account-content textarea:focus {
    border-color: var(--black);
    outline: none;
    box-shadow: none;
}

.account-content .form-text {
    margin-top: 7px;
    color: var(--gray);
    font-size: 12px;
}

.account-content .btn {
    width: 100%;
    height: 52px;
    border: 1px solid var(--black);
    border-radius: 30px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.account-content .btn:hover {
    border-color: var(--black);
    background: var(--white);
    color: var(--black);
}

.account-content hr {
    border-color: var(--border);
    opacity: 1;
}

@media (max-width: 576px) {
    .account-page {
        min-height: 550px;
    }
}
/* ========================================
   UPDATE ACCOUNT
======================================== */
.update-account-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px var(--gutter) 100px;
    position: relative;
}

.update-account-page .row {
    width: 100%;
}

.update-account-content {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.update-account-content h1 {
    margin-bottom: 8px !important;
    font-size: 30px !important;
}

.update-account-content > p {
    margin-bottom: 36px !important;
}

.update-account-content .form-label {
    display: block;
    margin-bottom: 9px;
}

.update-account-content input,
.update-account-content select,
.update-account-content textarea {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--black);
    font-family: var(--font);
    font-size: 14px;
    box-shadow: none;
    outline: none;
}

.update-account-content textarea {
    height: auto;
    min-height: 100px;
    padding: 14px;
}

.update-account-content input:focus,
.update-account-content select:focus,
.update-account-content textarea:focus {
    border-color: var(--black);
    box-shadow: none;
}

.update-account-content .form-text {
    margin-top: 7px;
    color: var(--gray);
    font-size: 12px;
}

.update-account-content .invalid-feedback {
    margin-top: 6px;
    font-size: 12px;
}

.update-account-content .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 52px;
    border-radius: 30px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.update-account-content .btn-dark {
    border: 1px solid var(--black);
    background: var(--black);
    color: var(--white);
}

.update-account-content .btn-dark:hover {
    background: var(--white);
    color: var(--black);
}

.update-account-content .btn-outline-danger,
.account-content .btn.btn-outline-danger {
    border: 1px solid var(--red);
    background: var(--white);
    color: var(--red);
}

.update-account-content .btn-outline-danger:hover,
.account-content .btn.btn-outline-danger:hover {
    border-color: var(--red);
    background: var(--red);
    color: var(--white);
}

.update-account-content .btn-outline-danger:focus,
.update-account-content .btn-outline-danger:focus-visible,
.account-content .btn.btn-outline-danger:focus,
.account-content .btn.btn-outline-danger:focus-visible {
    outline: none;
    box-shadow: none;
}

@media (max-width: 576px) {
    .update-account-page {
        min-height: 550px;
    }
}
/* ========================================
   UPDATE PASSWORD
======================================== */
.update-password-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px var(--gutter) 100px;
    position: relative;
}

.update-password-page .row {
    width: 100%;
}

.update-password-page .card-body {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 !important;
}

.update-password-page h1 {
    margin-bottom: 8px !important;
    font-size: 30px !important;
}

.update-password-page p {
    margin-bottom: 36px !important;
}

.update-password-page .form-label {
    margin-bottom: 9px;
}

.update-password-page input {
    width: 100%;
    height: 52px;
    padding: 0 14px;
}

.update-password-page .btn {
    width: 100%;
    height: 52px;
}

@media (max-width: 576px) {
    .update-password-page {
        min-height: 550px;
    }
}
/* ========================================
   CHECKOUT
======================================== */
.checkout-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 0 80px;
    color: #111;
}

.checkout-header {
    margin-bottom: 40px;
}

.checkout-header h1 {
    font-size: 25px;
    font-weight: 450;
    letter-spacing: -0.9px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    align-items: start;
    gap: 70px;
}

.checkout-shipping h2,
.checkout-order h2 {
    margin: 0 0 28px;
    font-size: 21px;
    font-weight: 500;
}

.checkout-shipping p {
    margin-bottom: 10px;
}

.checkout-shipping label {
    display: block;
    margin-bottom: 9px;
    color: #111;
    font-size: 14px;
}

.checkout-shipping input,
.checkout-shipping select,
.checkout-shipping textarea {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #111;
    font-family: inherit;
    font-size: 14px;
}

.checkout-shipping textarea {
    min-height: 100px;
    padding: 14px;
}

.checkout-shipping input:focus,
.checkout-shipping select:focus,
.checkout-shipping textarea:focus {
    border-color: #111;
    box-shadow: none;
}

.checkout-order {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.checkout-products {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-product {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
}

.checkout-product-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    overflow: hidden;
}

.checkout-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.checkout-product-image:hover img {
    transform: scale(1.04);
}

.checkout-product-details {
    min-width: 0;
}

.checkout-product-details h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.checkout-product-details p {
    margin-bottom: 6px;
    color: #707072;
    font-size: 14px;
}

.checkout-product-price {
    color: #111;
    font-size: 15px;
    font-weight: 500;
}

.checkout-product-price del {
    display: block;
    margin-bottom: 5px;
    color: #707072;
    font-size: 14px;
    font-weight: 400;
}

.checkout-product-price span {
    color: #111;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    font-size: 15px;
}

.checkout-total strong {
    font-weight: 500;
}

.checkout-billing-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    margin-top: 28px;
    border: 0;
    border-radius: 30px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkout-billing-btn:hover {
    background: #707072;
}

@media (max-width: 767px) {
    .checkout-page {
        padding: 32px 20px 60px;
    }

    .checkout-header {
        margin-bottom: 30px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .checkout-order {
        position: static;
        padding-top: 12px;
    }

    .checkout-product {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 16px;
        margin-bottom: 12px;
        padding-bottom: 24px;
    }

    .checkout-product-details h3 {
        font-size: 14px;
    }

    .checkout-product-details p {
        font-size: 13px;
    }

    .checkout-product-price {
        font-size: 14px;
    }
}
/* ========================================
   BILLING INFO
======================================== */
.billing-info-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px var(--gutter) 100px;
    position: relative;
}

.billing-info-page .row {
    width: 100%;
}

.billing-info-page .card-body {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 !important;
}

/* One product line inside the order summary: image, name, price. */
.billing-product-line {
    display: flex;
    align-items: center;
    gap: 16px;
}

.billing-product-image {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    overflow: hidden;
    background: #f5f5f5;
}

.billing-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.billing-product-name {
    flex: 1 1 auto;
    font-size: 15px;
    line-height: 1.35;
    color: #111111;
}

.billing-product-price {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 500;
    color: #111111;
}

.billing-info-page h1 {
    margin-bottom: 8px !important;
    font-size: 25px !important;
    font-weight: 450 !important;
    letter-spacing: -0.9px !important;
}

.billing-info-page > .row p {
    margin-bottom: 36px !important;
}

.billing-section {
    margin-bottom: 32px;
}

.billing-section h2 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.4px;
}

.billing-product {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.billing-product-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.billing-quantity {
    margin: 8px 0 0;
    color: var(--gray);
    font-size: 13px;
}

.billing-total {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 15px;
}

.billing-shipping-details {
    color: var(--black);
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.billing-update {
    display: inline-block;
    margin: 16px 0 0;
    color: var(--black);
    font-size: 13px;
    text-decoration: underline;
}

.billing-section .form-label {
    margin-bottom: 9px;
}

.billing-section input,
.billing-section select,
.billing-section textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--black);
    font-family: var(--font);
    font-size: 14px;
}

.billing-section textarea {
    min-height: 100px;
    padding: 14px;
}

.billing-section input:focus,
.billing-section select:focus,
.billing-section textarea:focus {
    border-color: var(--black);
    box-shadow: none;
    outline: none;
}

.billing-section .btn {
    width: 100%;
    height: 52px;
}

@media (max-width: 576px) {
    .billing-info-page {
        min-height: 550px;
    }
}

/* Unshipped orders badge (visible to superusers only) */
.orders-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-inline-start: 6px;
    border-radius: 9px;
    background: #111111;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

/* ==========================================================================
   Product filter
   --------------------------------------------------------------------------

/* ==========================================================================
   1. Global adjustments
   ========================================================================== */

/* Same typeface as nike.com (falls back to Helvetica / Arial). */
:root {
    --font: "Helvetica Now Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* The navbar hides above the viewport and slides back down on scroll up. */
.navbar {
    top: calc(var(--nav-height) * -1);
    will-change: top;
}

.navbar.is-visible {
    top: 0;
}

/* Listing pages: no top padding, the promo band sits right under the navbar. */
.search-results-page {
    padding-top: 0 !important;
}


/* ==========================================================================
   2. Promo band — <div class="nike-promo-band">
   ========================================================================== */

.nike-promo-band {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 52px;
    overflow: hidden;
    background: #f5f5f5;
    transition: height 0.3s ease;
}

/* Collapsed as soon as the page is scrolled. */
body.scrolled .nike-promo-band {
    height: 0;
}


/* ==========================================================================
   3. Filter wrapper — <form class="nike-filter">
   ========================================================================== */

.nike-filter {
    --filter-border: #e5e5e5;
    --filter-text: #111111;
    --filter-muted: #757575;
}


/* ==========================================================================
   4. Header bar — <div class="nike-filter-head">
      Title (left), Hide Filters and Sort By (right)
   ========================================================================== */

.nike-filter-head {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0;
    margin-bottom: 8px;
    background: var(--white);
    transition: padding 0.2s ease, margin 0.2s ease, top 0.3s ease;
}

/* Compact state once the bar is stuck to the top. */
.nike-filter.is-stuck .nike-filter-head {
    padding: 6px 0;
    margin-bottom: 0;
}

/* Bar sits below the navbar while the navbar is on screen. */
body.navbar-visible .nike-filter-head {
    top: var(--nav-height);
}

/* Results title — <h1 class="nike-filter-title"> */
.nike-filter-title {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.4px;
    color: var(--filter-text);
    transition: font-size 0.2s ease;
}

.nike-filter.is-stuck .nike-filter-title {
    font-size: 18px;
}

/* Right hand controls — <div class="nike-filter-controls"> */
.nike-filter-controls {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 0 0 auto;
}

/* "Hide Filters" — <button class="nike-filter-toggle"> */
.nike-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 16px;
    color: var(--filter-text);
    cursor: pointer;
}


/* ==========================================================================
   5. Sort By — <div class="nike-sort">
   ========================================================================== */

.nike-sort {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 -4px 0 0;
    padding-right: 4px;
    font-size: 16px;
    color: var(--filter-text);
}

.nike-sort-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 400;
    color: inherit;
    cursor: pointer;
}

/* No focus ring on the button or the menu items. */
.nike-sort-toggle,
.nike-sort-toggle:focus,
.nike-sort-toggle:focus-visible,
.nike-sort-option,
.nike-sort-option:focus,
.nike-sort-option:focus-visible {
    outline: none;
    box-shadow: none;
}

.nike-sort-chevron {
    transition: transform 0.2s ease;
}

.nike-sort.is-open .nike-sort-chevron {
    transform: rotate(180deg);
}

/* Dropdown menu */
.nike-sort-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 30;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    min-width: 150px;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.nike-sort.is-open .nike-sort-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

.nike-sort-option {
    display: block;
    width: 100%;
    padding: 4px 16px;
    border: 0;
    background: none;
    font-size: 13px;
    color: #111111;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* Hover: only the words change, the row itself stays white. */
.nike-sort-option:hover,
.nike-sort-option:focus-visible {
    background: none;
    color: #9a9a9a;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.07);
}

.nike-sort-option.is-active {
    font-weight: 600;
}


/* ==========================================================================
   6. Two column body — <div class="nike-filter-body">
   ========================================================================== */

.nike-filter-body {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    column-gap: 56px;
    align-items: start;
    transition: grid-template-columns 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                column-gap 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Product name under the image — lighter than bold.
   Selector is deliberately deep: article.card .card-body .fw-bold
   sets 600 !important and would win over a shorter selector. */
.nike-filter-results article.card .card-body h3,
.nike-filter-results article.card .card-body h3 a {
    font-weight: 500 !important;
}

/* Product grid gutter — 22px instead of bootstrap's 24px. */
.nike-filter-results .row {
    --bs-gutter-x: 15px;
    --bs-gutter-y: 15px;
}

/* Hidden state (Hide Filters): the column collapses to zero width. */
.nike-filter-body.is-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
    column-gap: 0;
}

.nike-filter-body.is-collapsed .nike-filter-sidebar {
    position: static;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}


/* ==========================================================================
   7. Sidebar — <aside class="nike-filter-sidebar">
   ========================================================================== */

.nike-filter-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    align-self: start;
    max-height: calc(100vh - var(--nav-height) - 48px);
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 14px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #c7c7c7 transparent;
    opacity: 1;
    visibility: visible;
    transition: top 0.3s ease, opacity 0.25s ease, visibility 0s linear 0s;
}

/* Sits directly under the compact header bar once it is stuck. */
.nike-filter.is-stuck .nike-filter-sidebar {
    top: 40px;
}

/* And below the navbar while the navbar is on screen. */
body.navbar-visible .nike-filter.is-stuck .nike-filter-sidebar {
    top: calc(var(--nav-height) + 40px);
}

/* Thin scrollbar, kept clear of the chevrons. */
.nike-filter-sidebar::-webkit-scrollbar {
    width: 6px;
}

.nike-filter-sidebar::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 3px;
}


/* ==========================================================================
   8. Filter groups — <section class="nike-filter-group">
   ========================================================================== */

.nike-filter-group {
    border-top: 1px solid var(--filter-border);
}

/* No divider above the first group. */
.nike-filter-group:first-child {
    border-top: 0;
}

/* Group header button */
.nike-filter-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 22px 0;
    border: 0;
    background: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--filter-text);
    text-align: left;
    cursor: pointer;
}

/* Chevron inside every group header */
.nike-chevron {
    flex: 0 0 auto;
    color: var(--filter-text);
    transition: transform 0.2s ease;
}

.nike-filter-group.is-open .nike-chevron {
    transform: rotate(180deg);
}

/* Group content, hidden until the group is opened */
.nike-filter-group-body {
    display: block;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
}

.nike-filter-group.is-open .nike-filter-group-body {
    max-height: 800px;
    padding: 2px 0 20px;
    opacity: 1;
}


/* ==========================================================================
   9. Checkbox rows (Gender / Sale & Offers)
   ========================================================================== */

.nike-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 8px 0;
    font-size: 16px;
    line-height: 22px;
    color: var(--filter-text);
    cursor: pointer;
}

.nike-check input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.nike-check-box {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1px solid var(--filter-muted);
    border-radius: 2px;
    background: #ffffff;
}

.nike-check input:checked + .nike-check-box {
    border-color: var(--filter-text);
    background: var(--filter-text);
}

/* Check mark */
.nike-check input:checked + .nike-check-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.nike-check input:focus-visible + .nike-check-box {
    outline: 2px solid var(--filter-text);
    outline-offset: 2px;
}


/* ==========================================================================
   10. Size chips — <div class="nike-size-grid">
   ========================================================================== */

.nike-size-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 14px;
}

.nike-size-chip {
    margin: 0;
    cursor: pointer;
}

.nike-size-chip input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.nike-size-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    padding: 0 4px;
    border: 1px solid var(--filter-border);
    border-radius: 4px;
    background: #ffffff;
    font-size: 16px;
    color: var(--filter-text);
    transition: border-color 0.15s ease;
}

.nike-size-chip input:checked + span {
    border: 1.5px solid var(--filter-text);
    font-weight: 600;
}

.nike-size-chip input:focus-visible + span {
    outline: 2px solid var(--filter-text);
    outline-offset: 2px;
}


/* ==========================================================================
   11. Colour swatches — <div class="nike-color-grid">
   ========================================================================== */

.nike-color-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 8px;
    padding-top: 6px;
}

.nike-color {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}

.nike-color input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.nike-color-dot {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--filter-border);
}

/* The "Multi-Colour" swatch */
.nike-color-multi {
    background: conic-gradient(#d3132a, #f7d117, #4caf50, #1f6feb, #7d4fa8, #d3132a);
}

.nike-color input:checked + .nike-color-dot {
    outline: 1.5px solid var(--filter-text);
    outline-offset: 3px;
}

.nike-color input:focus-visible + .nike-color-dot {
    outline: 2px solid var(--filter-text);
    outline-offset: 3px;
}

.nike-color-label {
    font-size: 14px;
    line-height: 18px;
    color: var(--filter-text);
    text-align: center;
}


/* ==========================================================================
   12. Responsive
   ========================================================================== */



/* ==========================================================================
   Favourites
   ========================================================================== */

/* Product thumbnail inside a favourites row. */
.nike-fav-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    background: #f5f5f5;
    overflow: hidden;
}

.nike-fav-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.nike-fav-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* "Favourite" button on the product page */
.nike-fav-button {
    gap: 10px;
    cursor: pointer;
    background: none;
}

.nike-fav-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: fill 0.2s ease;
}

.nike-fav-button.is-added .nike-fav-icon {
    fill: currentColor;
}

/* ==========================================================================
   Mobile
   --------------------------------------------------------------------------
   Built for a narrow screen from the same design language as desktop:
   the same colours, borders, type and spacing rhythm, only the layout
   changes. These rules are the only ones that apply under 992px.
   ========================================================================== */

/* ==========================================================================
   Navigation bar
   ========================================================================== */

@media (max-width: 991.98px) {
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    .top-nav {
        padding: 6px 16px;
        gap: 8px;
        font-size: 12px;
    }

    .nav-logos {
        margin-left: 10px;
        gap: 32px;
    }

    .nav-account {
        gap: 8px;
        font-size: 12px;
    }

    .nav-account .dropdown {
        gap: 8px;
    }

    .navbar > .container {
        position: relative;
        min-height: 58px;
        padding: 0 16px 0 6px;
    }

    /* Pinned like the two icons, so opening the menu cannot nudge it. */
    .navbar-toggler {
        position: absolute;
        top: 9px;
        right: 11px;
        display: flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        padding: 0;
    }

    .nike-cart {
        position: absolute;
        top: 9px;
        right: 55px;
        width: 40px;
        height: 40px;
    }

    .nike-fav {
        position: absolute;
        top: 9px;
        right: 99px;
        width: 40px;
        height: 40px;
    }

    .navbar-collapse {
        flex-basis: 100%;
        order: 3;
        margin: 0;
        padding: 8px 0 18px;
        border-top: 1px solid #e5e5e5;
        background: #ffffff;
    }

    /* Desktop shifts this list 70px to the right; on a phone that is the
       empty column on the left, so it is cancelled here. */
    #navbarContent .navbar-nav {
        transform: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .navbar .navbar-collapse .navbar-nav {
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left;
    }

    .navbar .navbar-collapse .navbar-nav .nav-item {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }

    .navbar .navbar-collapse .navbar-nav .nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-height: 46px;
        margin: 0 !important;
        padding: 10px 0 !important;
        font-size: 15px;
        text-align: left;
    }

    .navbar .navbar-nav .nav-link::after {
        right: auto;
        bottom: 6px;
        left: 0;
        width: 32px;
    }

    .navbar-collapse > .nks-search {
        order: 10;
        width: 100%;
        height: 44px;
        margin: 12px 0 4px !important;
    }

    .navbar .dropdown-menu {
        position: static;
        min-width: 0;
        margin: 0 0 10px;
        padding: 4px 0 4px 12px;
        border: 0;
        border-left: 1px solid #e5e5e5;
        border-radius: 0;
        box-shadow: none;
        animation: none;
    }
}

/* ==========================================================================
   Home
   ========================================================================== */

@media (max-width: 991px) {
    .hero-slider {
        --hero-height: calc(100vh - 150px);
        --hero-height: calc(100svh - 150px);
    }

    /* Same framing as desktop: 697px on a 1440px viewport, so the phone
       keeps that exact ratio and shows the very same part of the photo. */
    .hero-slides .hero-slide img {
        height: var(--hero-height) !important;
        border-radius: 0;
        object-fit: cover;
        object-position: center 40%;
    }

    /* The overlay covers the image only, so the copy never spills over the
       dots and the logos underneath it. */
    .hero-overlay {
        inset: 0 0 auto 0;
        height: var(--hero-height);
        justify-content: center;
        padding: 0 16px;
        /* a touch above the middle of the banner */
        transform: translateY(-20px);
    }

    .hero-overlay h1 {
        font-size: clamp(38px, 11vw, 70px);
        letter-spacing: -2px;
    }

    .hero-overlay p,
    .hero-overlay p:not(:first-of-type) {
        margin-top: 4px;
        font-size: 10px;
        line-height: 1.4;
        letter-spacing: 1.6px;
    }

    .hero-dots {
        bottom: 14px;
    }

    .hero-logos {
        gap: 24px;
        padding: 20px 0;
    }

    .hero-logos img {
        width: 78px;
        height: 56px;
    }

    main > header {
        min-height: 190px;
        padding: 64px 0;
    }

    main > header .display-5 {
        font-size: clamp(56px, 16vw, 110px);
    }
}

@media (max-width: 575px) {
    .hero-slider {
        --hero-height: calc(100vh - 150px);
        --hero-height: calc(100svh - 150px);
    }

    .hero-overlay h1 {
        font-size: 36px;
        letter-spacing: -1.5px;
    }

    .hero-overlay p,
    .hero-overlay p:not(:first-of-type) {
        margin-top: 3px;
        font-size: 9.5px;
        line-height: 1.4;
        letter-spacing: 1.4px;
    }

    .hero-overlay p:first-of-type {
        margin-top: 6px;
        font-size: 13px;
        line-height: 1.15;
        letter-spacing: 1.5px;
    }

    main > header {
        min-height: 150px;
        padding: 52px 0;
    }

    main > header .display-5 {
        font-size: clamp(44px, 17vw, 74px);
    }
}

/* ==========================================================================
   Listing pages with the product filter
   ========================================================================== */

@media (max-width: 991px) {
    .search-results-page {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 72px !important;
    }

    .nike-promo-band {
        height: 40px;
    }

    .nike-filter-head {
        position: static;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 16px;
        padding: 0;
    }

    .nike-filter-title {
        font-size: 20px;
        letter-spacing: -0.3px;
    }

    .nike-filter-controls {
        gap: 18px;
        margin-left: auto;
    }

    .nike-filter-toggle,
    .nike-sort {
        font-size: 15px;
    }

    .nike-filter-body {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 20px;
    }

    .nike-filter-body.is-collapsed {
        grid-template-columns: minmax(0, 1fr);
    }

    .nike-filter-body.is-collapsed .nike-filter-sidebar {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
        border-color: transparent;
        transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
    }

    .nike-filter-sidebar {
        position: static;
        max-height: 2000px;
        overflow: hidden;
        padding-right: 0;
        border: 1px solid #e5e5e5;
        border-radius: 4px;
        padding: 0 16px;
        transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
    }

    .nike-filter-group-head {
        padding: 16px 0;
    }

    .nike-filter-group:first-child {
        border-top: 0;
    }

    .nike-size-grid {
        gap: 8px 10px;
    }

    .nike-size-chip span {
        height: 44px;
        font-size: 15px;
    }

    .nike-color-grid {
        gap: 16px 8px;
    }

    .nike-color-dot {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 575px) {
    .nike-filter-title {
        font-size: 18px;
    }

    .nike-filter-toggle,
    .nike-sort {
        font-size: 14px;
    }

    /* Two products per row, like the shop does on desktop. */
    .nike-filter-results .row {
        --bs-gutter-x: 10px;
        --bs-gutter-y: 24px;
    }

    .nike-filter-results .row > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .search-results-page .card-body {
        padding: 10px 0 4px;
    }

    .search-results-page .card-body h3,
    .search-results-page .card-body h3 a {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    .search-results-page .card-body h4,
    .search-results-page .card-body p {
        font-size: 13px !important;
    }

    .search-results-page .card-img-top {
        aspect-ratio: 1 / 1;
    }

    .nike-size-chip span {
        height: 40px;
        font-size: 14px;
    }

    .nike-color-dot {
        width: 26px;
        height: 26px;
    }

    .nike-color-label {
        font-size: 12px;
    }
}

/* ==========================================================================
   Product page
   ========================================================================== */

@media (max-width: 991px) {
    .nike-product-page {
        border-top: 0;
        padding: 16px 16px 72px;
    }

    .nike-product-layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .nike-product-gallery {
        position: static;
        width: 100%;
        max-width: 100%;
    }

    .nike-product-image {
        max-width: 100%;
        border-radius: 0;
    }

    .nike-product-details {
        position: static;
        width: 100%;
        padding: 0;
    }

    .nike-product-title {
        font-size: 24px;
        letter-spacing: -0.4px;
    }

    .nike-product-description {
        max-width: 100%;
        margin-top: 20px;
        padding: 0;
        font-size: 15px;
    }

    .nike-add-to-bag,
    .nike-continue-shopping {
        min-height: 54px;
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .nike-product-title {
        font-size: 21px;
    }

    .nike-product-price,
    .nike-product-price-sale {
        font-size: 17px;
    }
}

/* ==========================================================================
   Bag / favourites
   ========================================================================== */

@media (max-width: 767px) {
    .nike-bag {
        max-width: 100%;
        padding: 24px 16px 64px;
    }

    .nike-bag-header {
        margin-bottom: 20px;
    }

    .nike-bag-header h1 {
        font-size: 22px;
    }

    .nike-bag-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .nike-bag-item {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 14px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .nike-bag-details {
        flex-direction: column;
        gap: 10px;
    }

    .nike-bag-info h2 {
        font-size: 14px;
        line-height: 1.35;
    }

    .nike-bag-info p {
        font-size: 13px;
    }

    .nike-bag-price {
        font-size: 14px;
    }

    .nike-bag-quantity {
        margin-top: 12px;
    }

    .nike-bag-summary {
        position: static;
        padding-top: 20px;
        border-top: 1px solid #e5e5e5;
    }
}

/* ==========================================================================
   Orders, favourites and products panels
   ========================================================================== */

@media (max-width: 767px) {
    .nike-orders {
        max-width: 100%;
        padding: 24px 16px 64px;
    }

    .nike-orders-header {
        margin-bottom: 16px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .nike-orders-header h1 {
        font-size: 21px;
        letter-spacing: -0.4px;
    }

    .nike-order-item {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 0;
    }

    .nike-order-info {
        flex: 1 1 100%;
        min-width: 0;
    }

    .nike-order-price {
        flex: 1 1 100%;
        min-width: 0;
        justify-content: space-between;
        gap: 12px;
    }

    .nike-order-price .btn {
        min-height: 44px;
        padding: 0 18px;
        font-size: 13px;
    }

    .nike-products-thumb,
    .nike-fav-thumb {
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
    }

    .nike-products-actions {
        gap: 12px;
        flex-wrap: wrap;
    }

    .nike-admin-form {
        max-width: 100%;
    }

    .nike-admin-field {
        margin-bottom: 16px;
    }

    .nike-admin-form input[type="text"],
    .nike-admin-form input[type="number"],
    .nike-admin-form select {
        height: 44px;
        font-size: 15px;
    }
}

/* ==========================================================================
   Order details
   ========================================================================== */

@media (max-width: 768px) {
    .nike-order-details {
        padding: 24px 16px 64px;
    }

    .nike-order-details-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .nike-order-details-summary {
        position: static;
    }
}

@media (max-width: 480px) {
    .nike-order-details-header h1 {
        font-size: 21px;
    }

    .nike-order-detail-row {
        align-items: flex-start;
        gap: 8px;
        font-size: 12px;
    }

    .nike-order-product-info h3 {
        font-size: 14px;
    }
}

/* ==========================================================================
   Home — two half-width tiles under the hero
   ========================================================================== */

.home-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.home-duo-tile {
    position: relative;
    display: flex;
    min-height: calc(88vh - 20px);
    align-items: flex-end;
    overflow: hidden;
    background: #161616;
    color: inherit;
    text-decoration: none;
}

/* The photo fills the whole tile, edge to edge. */
.home-duo-media {
    position: absolute;
    inset: 0;
}

.home-duo-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* same zoom, the pictures sit 20px higher */
    object-position: center calc(50% + 20px);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
    .home-duo-tile:hover .home-duo-media img {
        transform: scale(1.04);
    }
}

.home-duo-tile::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 45%);
    content: "";
    pointer-events: none;
}

.home-duo-content {
    position: relative;
    z-index: 1;
    padding: 44px;
}

.home-duo-content h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(26px, 2.7vw, 42px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.6px;
    text-transform: uppercase;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.home-duo-content p {
    margin: 14px 0 22px;
    color: #ffffff;
    font-size: clamp(15px, 1.3vw, 21px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.home-duo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 26px;
    border-radius: 40px;
    background: #ffffff;
    color: #111111;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.home-duo-button:hover {
    background: #e5e5e5;
}

@media (max-width: 767px) {
    .home-duo {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-duo-tile {
        min-height: 72vh;
    }

    .home-duo-content {
        padding: 24px;
    }

    .home-duo-content p {
        margin: 10px 0 18px;
    }
}

/* ==========================================================================
   Phone field — fixed +98 prefix
   ========================================================================== */

.phone-field {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #e5e5e5;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    background: #f5f5f5;
    font-size: 15px;
    color: #111111;
    white-space: nowrap;
}

.phone-field input {
    flex: 1 1 auto;
    border-radius: 0 4px 4px 0 !important;
}

/* ==========================================================================
   Confirmation dialog — same language as the notifications
   ========================================================================== */

.nks-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.45);
}

.nks-modal[hidden] {
    display: none;
}

.nks-modal-box {
    width: 100%;
    max-width: 420px;
    padding: 22px 22px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.nks-modal-text {
    margin: 0 0 18px;
    color: #111111;
    font-size: 15px;
    line-height: 1.45;
}

.nks-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.nks-modal-cancel,
.nks-modal-ok {
    min-height: 40px;
    padding: 0 20px;
    border: 1px solid #111111;
    border-radius: 30px;
    background: #ffffff;
    color: #111111;
    font-family: var(--font);
    font-size: 14px;
    cursor: pointer;
}

.nks-modal-ok {
    border-color: #d3132a;
    background: #d3132a;
    color: #ffffff;
}

.nks-modal-ok:hover {
    background: #b30f22;
}

/* ==========================================================================
   Long lists scroll on their own, the page stays put
   ========================================================================== */

.billing-products-list {
    min-height: 0;
}

@media (min-width: 992px) {
    .nike-bag-items {
        max-height: calc(100vh - 250px);
        overflow-y: auto;
        padding-right: 8px;
    }

    .billing-products-list {
        max-height: calc(100vh - 380px);
        overflow-y: auto;
        padding-right: 8px;
    }
}

.nike-bag-items::-webkit-scrollbar,
.billing-products-list::-webkit-scrollbar {
    width: 6px;
}

.nike-bag-items::-webkit-scrollbar-thumb,
.billing-products-list::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: #d9d9d9;
}

.nike-bag-items::-webkit-scrollbar-track,
.billing-products-list::-webkit-scrollbar-track {
    background: transparent;
}

/* ==========================================================================
   Smooth open / close for every menu
   ========================================================================== */

.navbar .dropdown-menu.show,
.top-nav .dropdown-menu.show {
    animation: nks-menu-in 0.18s ease both;
}

@keyframes nks-menu-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.nike-filter-sidebar {
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
}

/* The top navigation menus get their own placement on small screens,
   whatever the dropdown script computes. */
@media (max-width: 991px) {
    .top-nav .dropdown-menu {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        min-width: 170px;
        max-width: calc(100vw - 32px);
    }
}
