:root {
    --blue: #0057b8;
    --blue-deep: #003f85;
    --orange: #f05a28;
    --white: #ffffff;
    --ink: #0f172a;
    --muted: rgba(255, 255, 255, 0.72);
    --surface: rgba(255, 255, 255, 0.1);
    --surface-border: rgba(255, 255, 255, 0.16);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    --radius: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Barlow", Arial, sans-serif;
    background: var(--blue);
    color: var(--white);
}

[hidden] {
    display: none !important;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: relative;
    z-index: 30;
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    gap: 16px;
    padding: 20px clamp(18px, 4vw, 42px);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0));
}

.site-header.is-transparent {
    position: absolute;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0));
}

.site-logo {
    justify-self: center;
}

.site-logo img {
    width: min(144px, 28vw);
}

.icon-button {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.icon-button svg {
    width: 22px;
    height: 22px;
}

.cart-button {
    position: relative;
    justify-self: end;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--orange);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid var(--blue);
}

.site-menu {
    position: absolute;
    top: 88px;
    left: 20px;
    right: 20px;
    max-width: 340px;
    padding: 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    z-index: 29;
}

.site-menu a {
    display: block;
    padding: 10px 0;
    font-weight: 600;
}

.site-main {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    flex: 1;
}

.hero {
    position: relative;
    min-height: 100vh;
    margin-top: -92px;
    border-radius: 0 0 36px 36px;
    overflow: hidden;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: end;
    justify-content: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.65));
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    text-align: center;
    padding: 180px 24px 88px;
}

.hero__eyebrow,
.page-intro__eyebrow,
.product-summary__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.84rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.hero h1,
.page-intro h1,
.content-page h1,
.confirmation-card h1,
.product-summary h1 {
    margin: 12px 0 16px;
    font-size: clamp(2.4rem, 7vw, 4.8rem);
    line-height: 0.94;
    text-transform: uppercase;
}

.hero__text,
.page-intro p,
.content-page p,
.product-summary__copy,
.confirmation-card p {
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.hero__cta {
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
    box-shadow: none;
}

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

.button--light {
    background: var(--white);
    color: var(--orange);
}

.button--ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.button--full {
    width: 100%;
}

.flash {
    margin: 24px 0 0;
    padding: 16px 18px;
    border-radius: 16px;
    font-weight: 600;
}

.flash--success {
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.flash--error {
    background: rgba(248, 113, 113, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.28);
}

.page-intro,
.content-page,
.confirmation-card {
    padding: 32px 0 56px;
}

.product-layout,
.cart-layout,
.checkout-layout {
    display: grid;
    gap: 28px;
    padding: 36px 0 56px;
}

.product-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    align-items: start;
}

.product-gallery__main {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    overflow: hidden;
}

.product-gallery__main img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.product-gallery__zoom {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 8px 12px;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    color: var(--white);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.product-gallery__thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.product-gallery__thumb.is-active {
    border-color: var(--white);
}

.product-gallery__thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-summary {
    padding-top: 10px;
}

.product-summary__price {
    margin: 0 0 22px;
    font-size: 1.44rem;
    font-weight: 800;
}

.product-summary__copy p,
.product-summary__copy ul {
    margin: 0;
}

.product-summary__copy p + p,
.product-summary__copy p + ul,
.product-summary__copy ul + p,
.product-summary__copy ul + ul {
    margin-top: 0.55rem;
}

.product-summary__copy ul {
    padding-left: 20px;
}

.product-summary__note,
.product-summary__meta,
.compliance-note,
.order-summary,
.cart-item,
.checkout-form,
.empty-state,
.confirmation-card,
.content-page {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.product-summary__note {
    padding: 18px;
    margin: 24px 0 18px;
    color: rgba(255, 255, 255, 0.84);
}

.product-summary__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.compliance-note {
    padding: 16px 18px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.product-imagery-note {
    margin: 8px 0 20px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.55;
}

.product-form,
.checkout-form,
.admin-form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 10px;
}

.form-label {
    font-weight: 700;
}

.size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.size-chip {
    min-width: 64px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: transparent;
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
}

.size-chip.is-selected {
    background: var(--white);
    color: var(--orange);
}

.size-chip.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.stock-message {
    min-height: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.quantity-input {
    display: inline-grid;
    grid-template-columns: 46px 82px 46px;
    gap: 10px;
}

.quantity-input button,
.quantity-input input,
.checkout-form input,
.checkout-form textarea,
.checkout-form select {
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0 16px;
}

.quantity-input button {
    padding: 0;
    font-size: 1.3rem;
    cursor: pointer;
}

.quantity-input input {
    text-align: center;
}

.cart-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 18px;
}

.cart-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 220px 120px;
    gap: 18px;
    padding: 18px;
    align-items: center;
}

.cart-item img,
.order-summary__item img {
    border-radius: 16px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.cart-item__actions {
    display: grid;
    gap: 10px;
}

.cart-item__actions input {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: 0 14px;
}

.cart-item__total {
    font-size: 1.16rem;
    font-weight: 800;
    text-align: right;
}

.order-summary,
.checkout-form,
.empty-state,
.confirmation-card,
.content-page {
    padding: 24px;
}

.order-summary h2,
.empty-state h2,
.confirmation-card h2,
.content-page h2 {
    margin-top: 0;
}

.order-summary__row,
.order-summary__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.order-summary__row.is-total {
    font-size: 1.14rem;
    font-weight: 800;
}

.order-summary__item {
    align-items: center;
}

.order-summary__item img {
    width: 76px;
}

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

.checkout-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.checkout-form .full-width {
    grid-column: 1 / -1;
}

.checkout-form input.has-error {
    border-color: rgba(248, 113, 113, 0.65);
}

.field-error {
    margin: 6px 0 0;
    color: #fecaca;
    font-size: 0.9rem;
}

.checkout-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0 6px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.checkout-consent {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
    margin-top: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.checkout-consent input {
    min-height: auto;
    margin: 3px 0 0;
    accent-color: var(--orange);
}

.checkout-consent a {
    text-decoration: underline;
}

.checkout-consent.has-error {
    border-color: rgba(248, 113, 113, 0.65);
}

.order-summary__note {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.6;
}

.discount-form {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.discount-form__label {
    font-weight: 700;
}

.discount-form__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.discount-form input {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: 0 14px;
}

.empty-state,
.confirmation-card {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.confirmation-card__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0;
}

.confirmation-card__summary div {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.confirmation-card__summary span {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.confirmation-card__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.content-page {
    max-width: 860px;
    margin: 0 auto 56px;
}

.content-page h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.content-page ul {
    margin: 0 0 18px;
    padding-left: 22px;
    color: var(--muted);
    line-height: 1.7;
}

.content-page li + li {
    margin-top: 8px;
}

.site-footer {
    text-align: center;
    padding: 20px 16px 28px;
    color: rgba(255, 255, 255, 0.75);
}

.site-footer__links {
    display: inline-flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 8px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 24px;
}

.lightbox img {
    max-width: min(90vw, 1000px);
    max-height: 90vh;
    border-radius: 24px;
}

.lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 980px) {
    .product-layout,
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 120px 1fr;
    }

    .cart-item__actions,
    .cart-item__total {
        grid-column: 1 / -1;
    }

    .cart-item__total {
        text-align: left;
    }

    .confirmation-card__summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-main {
        width: min(100% - 20px, 100%);
    }

    .site-header {
        padding-inline: 12px;
        grid-template-columns: 48px 1fr 48px;
    }

    .hero__content {
        padding: 160px 18px 64px;
    }

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

    .checkout-form .form-grid {
        grid-template-columns: 1fr;
    }

    .quantity-input {
        grid-template-columns: 42px 72px 42px;
    }

    .discount-form__controls {
        grid-template-columns: 1fr;
    }
}
