:root {
    --brand-navy: #08152e;
    --brand-blue: #1146a3;
    --brand-red: #e33c4b;
    --brand-ice: #e9f5ff;
    --brand-sand: #f6f4ee;
    --brand-text: #15263b;
    --brand-muted: #5f6f84;
    --brand-white: #ffffff;
    --shadow-lg: 0 20px 50px rgba(8, 21, 46, 0.16);
    --shadow-md: 0 12px 30px rgba(8, 21, 46, 0.10);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

body {
    font-family: "Source Sans 3", sans-serif;
    color: var(--brand-text);
    background: linear-gradient(180deg, #f4f7fb 0%, #eef3f8 100%);
}

h1,
h2,
h3,
h4,
h5,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5 {
    font-family: "Barlow Condensed", sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.site-main {
    min-height: 60vh;
}

.top-shipping-bar {
    background: var(--brand-red);
    color: var(--brand-white);
}

.site-header {
    background: linear-gradient(135deg, rgba(8, 21, 46, 0.98), rgba(17, 70, 163, 0.92));
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    color: var(--brand-white);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 0;
    text-decoration: none;
}

.navbar-brand:hover,
.navbar-brand:focus,
.nav-link:hover,
.nav-link:focus {
    color: var(--brand-white);
}

.brand-mark {
    width: auto;
    height: 3.15rem;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(8, 21, 46, 0.22));
}

.brand-context {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--brand-white);
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
    white-space: nowrap;
}

.nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.nav-search .form-control {
    width: clamp(200px, 17vw, 280px);
    min-width: 0;
    border: 0;
    border-radius: 999px;
}

.navbar-nav {
    align-items: center;
}

.navbar-expand-lg .navbar-nav {
    flex-wrap: nowrap;
}

.cart-button {
    position: relative;
    width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-button__icon {
    font-size: 1.2rem;
    line-height: 1;
}

.cart-count {
    position: absolute;
    top: -0.35rem;
    right: -0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: var(--brand-red);
    color: var(--brand-white);
    font-weight: 700;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 5rem;
    background:
        radial-gradient(circle at top right, rgba(31, 186, 214, 0.28), transparent 28%),
        radial-gradient(circle at bottom left, rgba(227, 60, 75, 0.24), transparent 30%),
        linear-gradient(135deg, #08152e 0%, #0d2e68 48%, #113c8c 100%);
    color: var(--brand-white);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto -5rem -4rem auto;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}

.hero-kicker {
    display: inline-block;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-copy {
    max-width: 40rem;
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.1rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.hero-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 0.4rem;
    align-items: start;
}

.hero-card__eyebrow,
.hero-card__caption {
    margin: 0;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.75);
}

.hero-card__eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.hero-card__metric {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 2.8rem;
    line-height: 1;
    margin: 0;
}

.hero-card__caption {
    font-size: 0.875rem;
}

.hero-card__notice {
    margin-top: 1.25rem;
}

.hero-card__notice hr {
    margin: 0 0 1.25rem;
}

.section-space {
    padding: 4.75rem 0;
}

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

.section-heading p {
    color: var(--brand-muted);
    margin: 0;
}

.sport-card,
.audience-card,
.product-card,
.summary-card,
.policy-card,
.filter-card,
.product-detail-card,
.admin-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.sport-card,
.audience-card,
.filter-card,
.summary-card,
.policy-card,
.product-detail-card,
.admin-card {
    background: var(--brand-white);
    border: 0;
}

.sport-card {
    background: linear-gradient(145deg, var(--brand-white), #eef5ff);
    padding: 1.5rem;
    height: 100%;
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 0.75rem;
    position: relative;
}

.sport-card-grid {
    align-items: stretch;
}

.sport-card-grid > .col {
    display: flex;
    flex-direction: column;
}

.sport-card::before {
    content: "";
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: rgba(17, 70, 163, 0.08);
}

.sport-card h3,
.audience-card h3 {
    font-size: 1.75rem;
}

.sport-card__description {
    margin: 0;
}

.sport-card__action {
    margin-top: auto;
}

.audience-card {
    padding: 1.6rem;
    background: linear-gradient(160deg, var(--brand-white), var(--brand-sand));
    height: 100%;
}

.product-card {
    background: var(--brand-white);
}

.product-card__image-wrap {
    display: block;
    position: relative;
    background: linear-gradient(180deg, #eef5ff 0%, #f9fbff 100%);
}

.product-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    border-radius: 999px;
    padding: 0.55rem 0.8rem;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.product-card__title {
    font-size: 1.7rem;
    line-height: 1.05;
    margin-bottom: 0.75rem;
}

.product-card__price {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand-red), #ff7a4e);
    color: var(--brand-white);
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn-brand:hover,
.btn-brand:focus {
    color: var(--brand-white);
    opacity: 0.94;
}

.btn-outline-brand {
    border: 2px solid var(--brand-white);
    color: var(--brand-white);
    border-radius: 999px;
    padding: 0.85rem 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background: var(--brand-white);
    color: var(--brand-navy);
}

.cart-action-button {
    min-width: 210px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cart-action-button--secondary {
    border-width: 1.5px;
}

.promo-panel {
    background: linear-gradient(135deg, var(--brand-sand), #ffffff);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.filter-card,
.summary-card,
.policy-card,
.product-detail-card,
.admin-card {
    padding: 1.5rem;
}

.checkout-copy-address {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(21, 38, 59, 0.12);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7fd 100%);
}

.checkout-copy-address .form-check-input {
    margin-top: 0.2rem;
}

.checkout-copy-address .form-check-label {
    font-weight: 600;
    color: var(--brand-text);
}

.checkout-static-field:disabled {
    background: #eef2f6;
    color: var(--brand-muted);
    border-color: rgba(21, 38, 59, 0.12);
    opacity: 1;
    cursor: not-allowed;
}

.product-gallery-main {
    border-radius: var(--radius-lg);
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #eef5ff;
}

.product-gallery-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    position: relative;
}

.product-gallery-open__hint {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(8, 21, 46, 0.78);
    color: var(--brand-white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-thumb {
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: transparent;
    padding: 0;
}

.product-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.product-thumb.is-active {
    border-color: var(--brand-red);
}

.product-zoom-open {
    overflow: hidden;
}

.product-zoom-modal[hidden] {
    display: none !important;
}

.product-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 1090;
    padding: 1.5rem;
}

.product-zoom-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 21, 46, 0.88);
    backdrop-filter: blur(6px);
}

.product-zoom-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 1120px);
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.product-zoom-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.product-zoom-control {
    min-width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand-navy);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: var(--shadow-md);
}

.product-zoom-control--wide {
    min-width: 4.25rem;
}

.product-zoom-stage {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
    min-height: min(75vh, 780px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    touch-action: none;
    cursor: default;
}

.product-zoom-stage.is-zoomable {
    cursor: grab;
}

.product-zoom-stage.is-dragging {
    cursor: grabbing;
}

.product-zoom-image {
    max-width: 100%;
    max-height: calc(75vh - 4rem);
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.18s ease;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.price-display {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 3rem;
    line-height: 1;
}

.detail-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: var(--brand-ice);
    color: var(--brand-blue);
    font-weight: 700;
    margin: 0.25rem 0.35rem 0 0;
}

.site-footer {
    background: linear-gradient(135deg, #08152e 0%, #0f2c61 100%);
    color: rgba(255, 255, 255, 0.88);
    padding: 4rem 0 2rem;
}

.footer-title {
    color: var(--brand-white);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--brand-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.95rem;
}

.empty-state {
    background: var(--brand-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    text-align: center;
}

.form-control,
.form-select,
textarea.form-control {
    border-radius: 14px;
    padding: 0.8rem 1rem;
}

.table-cart img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 14px;
    background: #eef5ff;
}

.badge-zone {
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-stat {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 2.5rem;
    line-height: 1;
}

.admin-body {
    background: #eff4fb;
}

.welcome-gate-body {
    min-height: 100vh;
    background: radial-gradient(circle at 15% 20%, rgba(63, 107, 186, 0.16), transparent 45%),
        radial-gradient(circle at 80% 15%, rgba(17, 137, 146, 0.14), transparent 42%),
        linear-gradient(135deg, #f1f6ff 0%, #e8f0fb 55%, #dee9f6 100%);
}

.welcome-gate-card {
    border: 1px solid rgba(14, 39, 86, 0.08);
    box-shadow: 0 1.25rem 2.5rem rgba(10, 33, 72, 0.12);
}

.demo-lock-form {
    margin: 0;
}

.demo-lock-button {
    width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.demo-lock-button .bi {
    font-size: 1.1rem;
}

@media (max-width: 991.98px) {
    .nav-search .form-control {
        min-width: 100%;
        width: 100%;
    }

    .hero-section {
        padding: 4.5rem 0 4rem;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .product-zoom-modal {
        padding: 1rem;
    }

    .product-zoom-toolbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .product-zoom-stage {
        min-height: min(68vh, 640px);
        padding: 1rem;
    }

    .product-zoom-image {
        max-height: calc(68vh - 2rem);
    }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .nav-link {
        font-size: 0.94rem;
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .navbar-brand {
        font-size: 1.6rem;
    }
}
