:root {
    color-scheme: light;
    --bg: #f3f5f7;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --ink: #141414;
    --muted: #687083;
    --line: #dde3ec;
    --accent: #e94f37;
    --accent-dark: #c63e29;
    --accent-soft: #fde7e2;
    --teal: #0f766e;
    --teal-soft: #ddf3f0;
    --blue: #4b5f7d;
    --gold: #f2b84b;
    --product-tone: #171717;
    --shadow: 0 18px 45px rgba(18, 24, 40, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(180deg, #ffffff 0, var(--bg) 360px),
        var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

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

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

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

button {
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
}

button:disabled,
.disabled-link {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    padding: 12px 13px;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(233, 79, 55, 0.28);
    outline-offset: 2px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px clamp(18px, 4vw, 58px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    font-size: 1.28rem;
    font-weight: 900;
}

.brand-mark {
    display: grid;
    width: 40px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 6px;
    background: var(--ink);
    color: #ffffff;
    font-size: 0.88rem;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.nav-link,
.nav-button {
    min-height: 40px;
    padding: 10px 13px;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.nav-button:hover {
    background: var(--surface-soft);
    color: var(--ink);
}

.cart-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--ink);
    color: #ffffff;
    font-weight: 900;
}

.cart-toggle span {
    display: grid;
    min-width: 25px;
    min-height: 25px;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.82rem;
}

.shop-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 44px;
    min-height: 560px;
    padding: 52px clamp(18px, 5vw, 76px) 42px;
    overflow: hidden;
    background: #161616;
    color: #ffffff;
}

.hero-copy {
    max-width: 700px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-copy h1,
.page-heading h1,
.auth-intro h1 {
    margin: 0;
    font-size: 4.6rem;
    line-height: 0.94;
}

.hero-copy p:not(.eyebrow),
.page-heading p,
.auth-intro > p:not(.eyebrow):not(.auth-session) {
    max-width: 640px;
    margin: 18px 0 0;
    color: #d9dee7;
    font-size: 1.08rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-link,
.secondary-link,
.secondary-button,
.full-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 6px;
    padding: 12px 16px;
    font-weight: 900;
}

.primary-link,
.full-button {
    background: var(--accent);
    color: #ffffff;
}

.primary-link:hover,
.full-button:hover {
    background: var(--accent-dark);
}

.secondary-link,
.secondary-button {
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
}

.secondary-link:hover,
.secondary-button:hover {
    border-color: #c7ced9;
    background: var(--surface-soft);
}

.text-link {
    color: var(--ink);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-look {
    position: relative;
    min-height: 460px;
}

.look-panel {
    position: absolute;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: 58%;
    min-width: 190px;
    min-height: 320px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
}

.look-panel span {
    position: relative;
    z-index: 1;
}

.look-panel::before {
    content: "";
    position: absolute;
    inset: 42px 24% 72px;
    border-radius: 46px 46px 20px 20px;
    background: rgba(255, 255, 255, 0.9);
}

.look-panel::after {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    top: 24px;
    height: 72px;
    border: 12px solid rgba(255, 255, 255, 0.92);
    border-bottom: 0;
    border-radius: 64px 64px 0 0;
}

.look-hoodie {
    left: 3%;
    top: 24px;
    background: var(--blue);
}

.look-shirt {
    right: 0;
    top: 0;
    width: 42%;
    min-height: 250px;
    background: var(--surface-soft);
    color: var(--ink);
}

.look-shirt::after {
    display: none;
}

.look-pants {
    right: 13%;
    bottom: 0;
    width: 46%;
    min-height: 260px;
    background: var(--accent);
}

.look-pants::before {
    inset: 48px 30% 58px;
    border-radius: 22px 22px 10px 10px;
    box-shadow:
        -34px 54px 0 rgba(255, 255, 255, 0.9),
        34px 54px 0 rgba(255, 255, 255, 0.9);
}

.look-pants::after {
    display: none;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0 clamp(18px, 5vw, 76px);
    background: var(--line);
    border: 1px solid var(--line);
    border-top: 0;
}

.feature-strip div {
    display: grid;
    gap: 4px;
    background: var(--surface);
    padding: 18px;
}

.feature-strip strong {
    font-size: 1rem;
}

.feature-strip span {
    color: var(--muted);
}

.section-block,
.page-shell {
    padding: 42px clamp(18px, 5vw, 76px);
}

.section-head,
.cart-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-head h2,
.summary-panel h2,
.auth-form h2 {
    margin: 0;
    font-size: 2rem;
}

.muted,
.form-message {
    color: var(--muted);
}

.store-layout {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: 26px;
    padding: 8px clamp(18px, 5vw, 76px) 58px;
}

.shop-sidebar,
.summary-panel,
.auth-form,
.account-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.shop-sidebar {
    align-self: start;
    position: sticky;
    top: 86px;
    display: grid;
    gap: 22px;
    padding: 18px;
}

.catalog {
    min-width: 0;
}

.filter-block {
    display: grid;
    gap: 10px;
}

label,
.control-label {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.category-list {
    display: grid;
    gap: 8px;
}

.category-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    text-align: left;
}

.category-chip:hover,
.category-chip.active {
    border-color: var(--teal);
    background: var(--teal-soft);
}

.inline-status {
    min-height: 24px;
    margin: 14px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 238px), 1fr));
    gap: 18px;
}

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

.product-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.product-link {
    display: block;
}

.product-media {
    position: relative;
    display: grid;
    min-height: 260px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    place-items: center;
    background: var(--surface-soft);
}

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

.product-art {
    isolation: isolate;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.24), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.16)),
        var(--product-tone, #171717);
    color: #ffffff;
}

.product-art strong {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.garment {
    position: relative;
    width: 54%;
    height: 45%;
    z-index: 1;
}

.garment::before,
.garment::after,
.garment span {
    content: "";
    position: absolute;
    display: block;
    background: rgba(255, 255, 255, 0.9);
}

.garment-hoodie::before,
.garment-sweater::before,
.garment-jacket::before {
    inset: 18% 15% 0;
    border-radius: 34px 34px 16px 16px;
}

.garment-hoodie::after {
    left: 29%;
    right: 29%;
    top: 0;
    height: 42%;
    border: 9px solid rgba(255, 255, 255, 0.9);
    border-bottom: 0;
    border-radius: 54px 54px 0 0;
    background: transparent;
}

.garment-hoodie span:nth-child(1),
.garment-sweater span:nth-child(1),
.garment-jacket span:nth-child(1) {
    left: 0;
    top: 32%;
    width: 26%;
    height: 42%;
    border-radius: 18px;
    transform: rotate(14deg);
}

.garment-hoodie span:nth-child(2),
.garment-sweater span:nth-child(2),
.garment-jacket span:nth-child(2) {
    right: 0;
    top: 32%;
    width: 26%;
    height: 42%;
    border-radius: 18px;
    transform: rotate(-14deg);
}

.garment-hoodie span:nth-child(3) {
    left: 41%;
    top: 54%;
    width: 18%;
    height: 18%;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.2);
}

.garment-sweater::after {
    left: 34%;
    right: 34%;
    top: 14%;
    height: 20%;
    border-radius: 0 0 18px 18px;
    background: rgba(20, 20, 20, 0.16);
}

.garment-jacket::after {
    left: 49%;
    top: 18%;
    width: 3px;
    height: 82%;
    background: rgba(20, 20, 20, 0.32);
}

.garment-tshirt::before {
    inset: 16% 17% 0;
    clip-path: polygon(20% 0, 80% 0, 100% 22%, 78% 38%, 78% 100%, 22% 100%, 22% 38%, 0 22%);
}

.garment-tshirt::after {
    left: 39%;
    top: 18%;
    width: 22%;
    height: 16%;
    border-radius: 0 0 20px 20px;
    background: rgba(20, 20, 20, 0.14);
}

.garment-pants::before {
    left: 28%;
    top: 4%;
    width: 44%;
    height: 24%;
    border-radius: 16px 16px 8px 8px;
}

.garment-pants span:nth-child(1),
.garment-pants span:nth-child(2) {
    top: 25%;
    width: 23%;
    height: 72%;
    border-radius: 10px;
}

.garment-pants span:nth-child(1) {
    left: 25%;
    transform: rotate(3deg);
}

.garment-pants span:nth-child(2) {
    right: 25%;
    transform: rotate(-3deg);
}

.garment-cap::before {
    left: 20%;
    right: 20%;
    top: 26%;
    height: 36%;
    border-radius: 70px 70px 12px 12px;
}

.garment-cap::after {
    left: 49%;
    right: 6%;
    top: 52%;
    height: 12%;
    border-radius: 999px;
    transform: rotate(8deg);
}

.product-body {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    padding: 6px 9px;
}

.product-card h3 {
    margin: 0;
    font-size: 1.08rem;
}

.product-card p {
    margin: 0;
    line-height: 1.5;
}

.price-row,
.detail-price-row,
.summary-row,
.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price,
.detail-price-row strong {
    font-size: 1.1rem;
    font-weight: 900;
}

.size-select-row {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.card-actions {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr);
    align-items: center;
    gap: 12px;
}

.add-button {
    min-height: 40px;
    padding: 10px 12px;
    background: var(--ink);
    color: #ffffff;
}

.add-button:hover {
    background: var(--teal);
}

.empty-state {
    grid-column: 1 / -1;
    min-height: 220px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted);
    text-align: center;
    padding: 24px;
}

.empty-state h2 {
    margin: 0 0 8px;
    color: var(--ink);
}

.page-heading {
    padding: 22px 0 28px;
}

.page-heading h1 {
    color: var(--ink);
}

.page-heading p {
    color: var(--muted);
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
    gap: 36px;
    padding: 42px clamp(18px, 5vw, 76px);
}

.detail-media {
    min-width: 0;
}

.detail-art {
    min-height: 620px;
    border-radius: 8px;
}

.detail-info {
    align-self: center;
    display: grid;
    gap: 22px;
}

.detail-info h1 {
    margin: 0;
    font-size: 3.2rem;
    line-height: 1;
}

.detail-copy {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.detail-price-row {
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.spec-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 14px;
}

.spec-grid dt {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 900;
}

.spec-grid dd {
    margin: 5px 0 0;
    font-weight: 900;
}

.purchase-row {
    display: grid;
    grid-template-columns: auto minmax(180px, 260px);
    gap: 12px;
    align-items: center;
}

.size-picker {
    display: grid;
    gap: 10px;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(48px, 1fr));
    gap: 8px;
    max-width: 360px;
}

.size-option {
    min-height: 44px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
}

.size-option:hover,
.size-option.active {
    border-color: var(--ink);
    background: var(--ink);
    color: #ffffff;
}

.quantity-controls {
    display: grid;
    grid-template-columns: 38px 42px 38px;
    align-items: center;
    gap: 4px;
}

.quantity-controls button {
    width: 38px;
    height: 38px;
    background: var(--surface-soft);
    color: var(--ink);
}

.quantity-controls span {
    text-align: center;
    font-weight: 900;
}

.cart-page-layout,
.checkout-layout,
.account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 26px;
    align-items: start;
}

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

.cart-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px;
}

.cart-thumb {
    min-height: 96px;
    width: 96px;
    border-radius: 6px;
}

.cart-thumb .garment {
    width: 60%;
    height: 56%;
}

.cart-row h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.cart-row p {
    margin: 0 0 4px;
}

.text-button {
    min-height: 36px;
    padding: 8px 10px;
    background: transparent;
    color: var(--muted);
}

.text-button:hover {
    background: var(--surface-soft);
    color: var(--ink);
}

.summary-panel {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 16px;
    padding: 20px;
}

.summary-row {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.total-row {
    font-size: 1.1rem;
}

.checkout-form {
    display: grid;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 22px;
}

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

.checkout-form label,
.auth-form label {
    display: grid;
    gap: 7px;
}

.checkout-summary {
    display: grid;
    gap: 12px;
}

.summary-item {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.success-panel {
    border-radius: 8px;
    background: var(--teal-soft);
    color: var(--ink);
    padding: 16px;
}

.success-panel h2,
.success-panel p {
    margin: 0;
}

.auth-page {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
    gap: 24px;
    padding: 42px clamp(18px, 5vw, 76px) 54px;
}

.auth-intro {
    display: grid;
    align-content: center;
    min-height: 560px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 18%, rgba(233, 79, 55, 0.28), transparent 28%),
        #161616;
    color: #ffffff;
    padding: 36px;
}

.auth-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.auth-badges span {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    padding: 8px 10px;
}

.auth-session {
    margin-top: 28px;
    color: #ffffff;
    font-weight: 900;
}

.auth-forms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-content: start;
}

.auth-form {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.form-message {
    min-height: 22px;
    margin: 0;
    font-weight: 800;
}

.form-message.success {
    color: var(--teal);
}

.form-message.error {
    color: var(--accent-dark);
}

.account-layout {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.account-card {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.account-card h2 {
    margin: 0;
    font-size: 2rem;
}

.order-list {
    display: grid;
    gap: 12px;
}

.order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 16px;
}

.order-card h3,
.order-card p {
    margin: 0;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px clamp(18px, 5vw, 76px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
}

@media (max-width: 1120px) {
    .hero-copy h1,
    .page-heading h1,
    .auth-intro h1 {
        font-size: 3.4rem;
    }

    .shop-hero,
    .product-detail,
    .auth-page,
    .auth-forms,
    .cart-page-layout,
    .checkout-layout,
    .account-layout {
        grid-template-columns: 1fr;
    }

    .hero-look {
        min-height: 380px;
    }

    .compact-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 238px), 1fr));
    }

    .summary-panel {
        position: static;
    }

    .auth-intro {
        min-height: 360px;
    }
}

@media (max-width: 820px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .shop-hero {
        min-height: auto;
    }

    .feature-strip {
        grid-template-columns: 1fr;
    }

    .store-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
    }

    .category-list {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }

    .cart-row {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .cart-row > strong,
    .cart-row .quantity-controls,
    .cart-row .text-button {
        grid-column: 2;
        justify-self: start;
    }

    .cart-thumb {
        width: 86px;
        min-height: 86px;
    }

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

@media (max-width: 560px) {
    .site-header {
        gap: 12px;
    }

    .brand {
        font-size: 1.08rem;
    }

    .cart-toggle {
        padding-inline: 11px;
    }

    .hero-copy h1,
    .page-heading h1,
    .auth-intro h1 {
        font-size: 2.55rem;
    }

    .hero-actions,
    .section-head,
    .cart-toolbar,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-link,
    .secondary-link,
    .secondary-button,
    .full-button {
        width: 100%;
    }

    .card-actions {
        grid-template-columns: 1fr;
    }

    .hero-look {
        min-height: 320px;
    }

    .look-panel {
        min-width: 160px;
        min-height: 230px;
    }

    .look-hoodie {
        left: 0;
        width: 68%;
    }

    .look-shirt {
        width: 48%;
    }

    .look-pants {
        right: 2%;
        width: 54%;
    }

    .product-media {
        min-height: 230px;
    }

    .detail-art {
        min-height: 430px;
    }

    .detail-info h1 {
        font-size: 2.3rem;
    }

    .purchase-row {
        grid-template-columns: 1fr;
    }
}

/* Premium fashion layer */
:root {
    --bg: #f1eee9;
    --surface: #fffdfa;
    --surface-soft: #f7f3ed;
    --ink: #11100e;
    --muted: #746f68;
    --line: #ded7cc;
    --accent: #9b2f22;
    --accent-dark: #742117;
    --accent-soft: #ead8d2;
    --teal: #2f5c54;
    --teal-soft: #dfe9e4;
    --blue: #394452;
    --gold: #c29a52;
    --shadow: 0 24px 60px rgba(35, 31, 27, 0.16);
}

body {
    background:
        linear-gradient(180deg, #f8f5ef 0, #f1eee9 540px),
        var(--bg);
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

.site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 18px clamp(18px, 4vw, 64px);
    background: rgba(248, 245, 239, 0.9);
    border-bottom: 1px solid rgba(17, 16, 14, 0.08);
}

.brand {
    gap: 12px;
    font-size: 1.42rem;
    letter-spacing: 0;
}

.brand-mark {
    width: 42px;
    border-radius: 0;
    background: var(--ink);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.site-nav {
    gap: 2px;
}

.nav-link,
.nav-button {
    min-height: 38px;
    border-radius: 0;
    color: #5f5a53;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active,
.nav-button:hover {
    background: transparent;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 6px;
}

.cart-toggle {
    min-height: 40px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cart-toggle:hover {
    background: var(--ink);
    color: #fffdfa;
}

.cart-toggle span {
    min-width: 24px;
    min-height: 24px;
    background: var(--ink);
    color: #fffdfa;
}

.cart-toggle:hover span {
    background: #fffdfa;
    color: var(--ink);
}

.shop-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    min-height: 700px;
    padding: 0 clamp(18px, 5vw, 78px);
    background:
        linear-gradient(90deg, rgba(17, 16, 14, 0.92), rgba(17, 16, 14, 0.72)),
        #11100e;
}

.editorial-hero {
    border-bottom: 1px solid rgba(17, 16, 14, 0.1);
}

.hero-copy {
    padding: 86px 0;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
}

.hero-copy h1,
.page-heading h1,
.auth-intro h1 {
    max-width: 860px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.8rem, 10vw, 8.7rem);
    font-weight: 500;
    line-height: 0.86;
}

.hero-copy p:not(.eyebrow) {
    max-width: 520px;
    color: rgba(255, 253, 250, 0.72);
    font-size: 1.05rem;
}

.primary-link,
.secondary-link,
.secondary-button,
.full-button {
    min-height: 48px;
    border-radius: 0;
    padding: 14px 19px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.primary-link,
.full-button {
    background: var(--ink);
}

.primary-link:hover,
.full-button:hover {
    background: var(--accent);
}

.shop-hero .primary-link {
    background: #fffdfa;
    color: var(--ink);
}

.shop-hero .primary-link:hover {
    background: var(--accent-soft);
}

.shop-hero .secondary-link {
    border-color: rgba(255, 253, 250, 0.38);
    background: transparent;
    color: #fffdfa;
}

.secondary-link,
.secondary-button {
    background: transparent;
    border-color: var(--ink);
}

.text-link {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-look {
    align-self: stretch;
    min-height: 700px;
}

.hero-look::before {
    content: "";
    position: absolute;
    inset: 42px 0;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%),
        repeating-linear-gradient(90deg, rgba(255, 253, 250, 0.08) 0 1px, transparent 1px 72px),
        #24211d;
}

.hero-look::after {
    content: "NSN8";
    position: absolute;
    right: 22px;
    bottom: 52px;
    color: rgba(255, 253, 250, 0.08);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(5rem, 12vw, 11rem);
    line-height: 1;
}

.look-panel {
    z-index: 1;
    border: 1px solid rgba(255, 253, 250, 0.22);
    border-radius: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.look-hoodie {
    left: 4%;
    top: 108px;
    width: 55%;
    min-height: 390px;
    background: #2f3741;
}

.look-shirt {
    right: 6%;
    top: 70px;
    width: 34%;
    min-height: 285px;
    background: #e8e1d5;
}

.look-pants {
    right: 10%;
    bottom: 74px;
    width: 43%;
    min-height: 315px;
    background: #793126;
}

.feature-strip {
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-color: rgba(17, 16, 14, 0.1);
    background: rgba(17, 16, 14, 0.1);
}

.feature-strip div {
    min-height: 98px;
    padding: 24px clamp(18px, 5vw, 76px);
    background: #f8f5ef;
}

.feature-strip strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 500;
}

.lookbook-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 28px;
    padding: 72px clamp(18px, 5vw, 76px);
}

.lookbook-copy {
    align-self: end;
    display: grid;
    gap: 18px;
    max-width: 420px;
}

.lookbook-copy h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    font-weight: 500;
    line-height: 0.94;
}

.lookbook-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.lookbook-grid {
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    gap: 18px;
    min-height: 470px;
}

.editorial-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 470px;
    overflow: hidden;
    padding: 22px;
    color: #fffdfa;
    background: #151412;
}

.editorial-tile::before {
    content: "";
    position: absolute;
    inset: 44px 25% 74px;
    border-radius: 120px 120px 24px 24px;
    background: rgba(255, 253, 250, 0.86);
}

.editorial-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, 0.36)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 54px);
}

.editorial-tile span {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tile-light {
    margin-top: 80px;
    color: var(--ink);
    background: #e2dacd;
}

.tile-light::before {
    background: #513c32;
}

.section-block,
.page-shell {
    padding-top: 64px;
    padding-bottom: 64px;
}

.section-head h2,
.summary-panel h2,
.auth-form h2,
.account-card h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 500;
    line-height: 0.98;
}

.store-layout {
    gap: 34px;
    padding-bottom: 78px;
}

.shop-sidebar,
.summary-panel,
.auth-form,
.account-card,
.checkout-form {
    border-color: rgba(17, 16, 14, 0.12);
    border-radius: 0;
    background: rgba(255, 253, 250, 0.72);
    box-shadow: none;
}

.shop-sidebar {
    top: 96px;
    padding: 22px;
}

input,
select,
textarea {
    border-color: rgba(17, 16, 14, 0.16);
    border-radius: 0;
    background: rgba(255, 253, 250, 0.78);
}

label,
.control-label,
.size-select-row {
    color: #6c655c;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.category-chip {
    border: 0;
    border-bottom: 1px solid rgba(17, 16, 14, 0.12);
    border-radius: 0;
    background: transparent;
    padding: 12px 0;
    font-size: 0.82rem;
}

.category-chip:hover,
.category-chip.active {
    border-color: var(--ink);
    background: transparent;
}

.product-grid {
    gap: 24px;
}

.product-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.product-card:hover {
    transform: none;
    box-shadow: none;
}

.product-media {
    min-height: 390px;
    border-radius: 0;
    background: #d9d0c3;
    transition: transform 220ms ease, filter 220ms ease;
}

.product-card:hover .product-media {
    transform: scale(0.985);
    filter: saturate(1.08) contrast(1.04);
}

.product-art {
    background:
        radial-gradient(circle at 26% 16%, rgba(255, 253, 250, 0.28), transparent 27%),
        radial-gradient(circle at 74% 78%, rgba(0, 0, 0, 0.18), transparent 34%),
        linear-gradient(145deg, rgba(255, 253, 250, 0.16), rgba(0, 0, 0, 0.18)),
        var(--product-tone, #171717);
}

.product-art strong {
    left: 18px;
    bottom: 16px;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
}

.garment {
    width: 58%;
    height: 48%;
}

.product-body {
    gap: 10px;
    padding: 16px 0 0;
}

.product-meta {
    order: -1;
}

.pill {
    border-radius: 0;
    background: transparent;
    border: 1px solid rgba(17, 16, 14, 0.16);
    color: #6c655c;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 500;
}

.product-card p {
    color: #746f68;
    font-size: 0.92rem;
}

.price {
    font-size: 0.98rem;
    letter-spacing: 0.04em;
}

.add-button {
    min-height: 42px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--ink);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.add-button:hover {
    border-color: var(--accent);
    background: var(--accent);
}

.page-heading {
    padding-top: 36px;
    padding-bottom: 46px;
}

.page-heading h1 {
    max-width: 860px;
}

.page-heading p {
    color: var(--muted);
}

.product-detail {
    grid-template-columns: minmax(320px, 1.02fr) minmax(0, 0.98fr);
    gap: 56px;
    padding-top: 58px;
}

.detail-art {
    min-height: 700px;
}

.detail-info {
    align-self: start;
    position: sticky;
    top: 116px;
    padding-top: 18px;
}

.detail-info h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 500;
    line-height: 0.9;
}

.detail-copy {
    color: #6f6a62;
}

.spec-grid div {
    border-color: rgba(17, 16, 14, 0.12);
    border-radius: 0;
    background: rgba(255, 253, 250, 0.6);
}

.size-option,
.quantity-controls button {
    border-radius: 0;
    background: rgba(255, 253, 250, 0.72);
}

.size-option:hover,
.size-option.active {
    background: var(--ink);
}

.cart-row,
.order-card {
    border-color: rgba(17, 16, 14, 0.12);
    border-radius: 0;
    background: rgba(255, 253, 250, 0.72);
}

.cart-thumb {
    border-radius: 0;
}

.summary-panel {
    top: 96px;
}

.summary-row,
.detail-price-row {
    border-color: rgba(17, 16, 14, 0.14);
}

.auth-intro {
    border-radius: 0;
    background:
        linear-gradient(145deg, rgba(17, 16, 14, 0.82), rgba(17, 16, 14, 0.96)),
        #171412;
}

.auth-badges span {
    border-radius: 0;
}

.site-footer {
    border-color: rgba(17, 16, 14, 0.1);
}

@media (max-width: 1120px) {
    .shop-hero,
    .lookbook-section,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .shop-hero,
    .hero-look {
        min-height: auto;
    }

    .hero-look {
        min-height: 460px;
        margin-bottom: 54px;
    }

    .lookbook-grid {
        min-height: 360px;
    }

    .editorial-tile {
        min-height: 360px;
    }

    .detail-info {
        position: static;
    }
}

@media (max-width: 820px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .lookbook-grid,
    .feature-strip {
        grid-template-columns: 1fr;
    }

    .tile-light {
        margin-top: 0;
    }

    .product-media {
        min-height: 330px;
    }
}

@media (max-width: 560px) {
    .shop-hero {
        padding-top: 22px;
    }

    .hero-copy h1,
    .page-heading h1,
    .auth-intro h1 {
        font-size: 3.05rem;
    }

    .hero-look {
        min-height: 330px;
    }

    .look-hoodie {
        top: 56px;
    }

    .product-media {
        min-height: 300px;
    }

    .detail-art {
        min-height: 430px;
    }
}

/* Streetwear refinement layer */
:root {
    --bg: #f2f0ea;
    --surface: #fffaf0;
    --surface-soft: #e9e4d7;
    --ink: #090909;
    --muted: #6b665d;
    --line: #181818;
    --accent: #ff3b1f;
    --accent-dark: #d92713;
    --acid: #d7ff2f;
    --blue: #2457ff;
    --purple: #7a4cff;
    --product-tone: #111111;
    --shadow: 10px 10px 0 #090909;
}

body {
    background:
        radial-gradient(circle at 6% 14%, rgba(215, 255, 47, 0.18), transparent 24rem),
        radial-gradient(circle at 88% 8%, rgba(255, 59, 31, 0.12), transparent 22rem),
        linear-gradient(180deg, #f7f3e8 0, #eee9dc 100%);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.24;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(9, 9, 9, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(9, 9, 9, 0.045) 1px, transparent 1px);
    background-size: 28px 28px;
}

.site-header {
    background: rgba(247, 243, 232, 0.88);
    border-bottom: 3px solid var(--ink);
}

.brand {
    font-size: 1.55rem;
    text-transform: uppercase;
}

.brand-mark {
    width: 44px;
    border: 2px solid var(--ink);
    background: var(--ink);
}

.nav-link,
.nav-button,
.cart-toggle {
    font-size: 0.78rem;
    font-weight: 950;
}

.nav-link.active {
    color: var(--ink);
    text-decoration-thickness: 3px;
}

.cart-toggle {
    border-width: 2px;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.cart-toggle:hover {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 var(--ink);
}

.shop-hero {
    position: relative;
    min-height: 680px;
    background:
        linear-gradient(120deg, rgba(9, 9, 9, 0.97), rgba(9, 9, 9, 0.9)),
        var(--ink);
    overflow: hidden;
}

.shop-hero::before {
    content: "NSN8";
    position: absolute;
    left: -3vw;
    bottom: -5vw;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.1);
    font-size: clamp(9rem, 25vw, 29rem);
    font-weight: 950;
    line-height: 0.75;
    pointer-events: none;
}

.shop-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    pointer-events: none;
    background:
        linear-gradient(135deg, transparent 0 47%, var(--acid) 47% 50%, transparent 50%),
        repeating-linear-gradient(0deg, transparent 0 10px, rgba(255, 255, 255, 0.08) 10px 11px);
    mix-blend-mode: screen;
    animation: heroScan 7s linear infinite;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-copy h1,
.page-heading h1,
.auth-intro h1,
.detail-info h1,
.section-head h2,
.summary-panel h2,
.auth-form h2,
.account-card h2,
.lookbook-copy h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 760px;
    font-size: clamp(4.4rem, 10.5vw, 10.5rem);
    line-height: 0.78;
}

.hero-copy h1::after {
    content: "STREET UNIFORM";
    display: block;
    width: max-content;
    max-width: 100%;
    margin-top: 18px;
    padding: 9px 12px;
    background: var(--acid);
    color: var(--ink);
    font-size: clamp(1rem, 2vw, 1.75rem);
    line-height: 1;
    transform: rotate(-1.5deg);
}

.hero-copy p:not(.eyebrow) {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.78);
}

.eyebrow {
    color: var(--accent);
    font-weight: 950;
}

.primary-link,
.secondary-link,
.secondary-button,
.full-button,
.add-button {
    border: 2px solid var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease;
}

.primary-link:hover,
.secondary-link:hover,
.secondary-button:hover,
.full-button:hover,
.add-button:hover {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--ink);
}

.shop-hero .primary-link,
.shop-hero .secondary-link {
    border-color: #fffaf0;
    box-shadow: 5px 5px 0 rgba(255, 255, 255, 0.22);
}

.shop-hero .secondary-link:hover {
    background: var(--acid);
    color: var(--ink);
}

.hero-look {
    position: relative;
    z-index: 2;
}

.hero-look::before {
    border: 2px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at 20% 18%, rgba(215, 255, 47, 0.24), transparent 12rem),
        radial-gradient(circle at 84% 64%, rgba(255, 59, 31, 0.28), transparent 14rem),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 58px),
        #151515;
    animation: panelFloat 8s ease-in-out infinite;
}

.look-panel {
    border: 2px solid var(--ink);
    box-shadow: 9px 9px 0 rgba(215, 255, 47, 0.72);
    animation: stickerFloat 5.5s ease-in-out infinite;
}

.look-shirt {
    animation-delay: -1.6s;
}

.look-pants {
    animation-delay: -2.8s;
}

.look-panel span {
    background: var(--ink);
    color: #fffaf0;
    padding: 8px 10px;
}

.street-marquee {
    overflow: hidden;
    border-block: 3px solid var(--ink);
    background: var(--acid);
    color: var(--ink);
}

.street-marquee div {
    display: flex;
    width: max-content;
    animation: marqueeRun 18s linear infinite;
}

.street-marquee span {
    padding: 13px 28px;
    font-size: clamp(1rem, 2vw, 1.6rem);
    font-weight: 950;
    white-space: nowrap;
}

.feature-strip {
    border-bottom: 3px solid var(--ink);
}

.feature-strip div {
    background: #f7f3e8;
}

.feature-strip strong {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 950;
    text-transform: uppercase;
}

.lookbook-section {
    align-items: stretch;
    background: #f7f3e8;
}

.lookbook-copy {
    border: 3px solid var(--ink);
    background: var(--ink);
    color: #fffaf0;
    padding: clamp(22px, 4vw, 40px);
    box-shadow: var(--shadow);
}

.lookbook-copy p {
    color: rgba(255, 255, 255, 0.76);
}

.lookbook-copy .text-link {
    color: var(--acid);
}

.lookbook-grid {
    transform: rotate(-0.6deg);
}

.editorial-tile {
    border: 3px solid var(--ink);
    box-shadow: 8px 8px 0 var(--ink);
}

.tile-dark {
    background: var(--blue);
}

.tile-light {
    background: var(--accent);
    color: #fffaf0;
}

.store-layout {
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
}

.shop-sidebar,
.summary-panel,
.auth-form,
.account-card,
.checkout-form {
    border: 3px solid var(--ink);
    background: #f7f3e8;
    box-shadow: 7px 7px 0 var(--ink);
}

.shop-sidebar {
    top: 104px;
}

input,
select,
textarea {
    border: 2px solid rgba(9, 9, 9, 0.24);
    background: #fffaf0;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--ink);
}

.category-chip {
    border-bottom: 2px solid rgba(9, 9, 9, 0.16);
}

.category-chip.active {
    color: var(--accent);
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
    gap: 30px;
}

.compact-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
}

.product-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 3px solid var(--ink);
    background: #fffaf0;
    box-shadow: 8px 8px 0 var(--ink);
    transform: translateY(18px);
    opacity: 0;
    overflow: hidden;
}

.product-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: cardDrop 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.product-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--ink);
}

.product-media {
    min-height: 360px;
    border-bottom: 3px solid var(--ink);
}

.product-card:hover .product-media {
    transform: none;
}

.product-art {
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.36), transparent 22%),
        radial-gradient(circle at 82% 74%, rgba(0, 0, 0, 0.28), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.24)),
        var(--product-tone, #111111);
}

.product-art::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.58) 1px, transparent 1px);
    background-size: 11px 11px;
    mix-blend-mode: overlay;
}

.product-art strong {
    z-index: 2;
    background: var(--ink);
    padding: 8px 10px;
    color: #fffaf0;
}

.garment {
    z-index: 2;
    filter: drop-shadow(10px 12px 0 rgba(0, 0, 0, 0.14));
    transition: transform 220ms ease;
}

.product-card:hover .garment {
    transform: rotate(-2deg) scale(1.03);
}

.product-body {
    padding: 18px;
}

.product-card h3 {
    font-size: 1.55rem;
    line-height: 1.05;
}

.product-card p {
    min-height: 44px;
}

.price-row {
    display: grid;
    grid-template-columns: 1fr auto;
}

.card-actions {
    grid-template-columns: 1fr 1.35fr;
}

.page-heading h1 {
    font-size: clamp(3rem, 7vw, 7rem);
}

.product-detail {
    background: #f7f3e8;
}

.detail-art {
    border: 3px solid var(--ink);
    box-shadow: 12px 12px 0 var(--ink);
}

.detail-info {
    border: 3px solid var(--ink);
    background: #fffaf0;
    padding: clamp(20px, 3vw, 34px);
    box-shadow: 9px 9px 0 var(--ink);
}

.detail-info h1 {
    font-size: clamp(2.5rem, 5.8vw, 5.2rem);
}

.spec-grid div,
.size-option,
.quantity-controls button,
.cart-row,
.order-card,
.success-panel,
.empty-state {
    border: 2px solid var(--ink);
    border-radius: 0;
}

.size-option.active,
.size-option:hover {
    background: var(--acid);
    color: var(--ink);
}

.cart-row {
    box-shadow: 6px 6px 0 var(--ink);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.cart-row:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--ink);
}

.cart-thumb {
    border: 2px solid var(--ink);
}

.auth-page {
    grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
}

.auth-intro {
    overflow: hidden;
    border: 3px solid var(--ink);
    background:
        radial-gradient(circle at 18% 18%, rgba(215, 255, 47, 0.22), transparent 16rem),
        linear-gradient(145deg, #0b0b0b, #151515);
    box-shadow: 9px 9px 0 var(--ink);
}

.auth-intro h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.86;
}

.auth-badges span {
    border: 2px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.08);
}

.form-message {
    min-height: 28px;
}

.motion-reveal,
.lookbook-section,
.feature-strip,
.page-heading,
.summary-panel,
.checkout-form,
.auth-form,
.account-card {
    opacity: 0;
    transform: translateY(22px);
}

.motion-reveal.is-visible,
.lookbook-section.is-visible,
.feature-strip.is-visible,
.page-heading.is-visible,
.summary-panel.is-visible,
.checkout-form.is-visible,
.auth-form.is-visible,
.account-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: revealUp 560ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes marqueeRun {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes heroScan {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 160px 0, 0 80px;
    }
}

@keyframes panelFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(0.3deg);
    }
}

@keyframes stickerFloat {
    0%,
    100% {
        transform: translateY(0) rotate(-0.4deg);
    }
    50% {
        transform: translateY(-12px) rotate(0.8deg);
    }
}

@keyframes cardDrop {
    from {
        opacity: 0;
        transform: translateY(18px) rotate(0.2deg);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .product-card,
    .motion-reveal,
    .lookbook-section,
    .feature-strip,
    .page-heading,
    .summary-panel,
    .checkout-form,
    .auth-form,
    .account-card {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1120px) {
    .auth-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .product-grid,
    .compact-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    }

    .product-media {
        min-height: 320px;
    }
}

@media (max-width: 560px) {
    .hero-copy h1 {
        font-size: 4rem;
    }

    .card-actions,
    .price-row {
        grid-template-columns: 1fr;
    }
}

/* Layout stability fixes */
.auth-page,
.checkout-layout,
.cart-page-layout,
.account-layout,
.lookbook-section,
.store-layout,
.product-detail {
    min-width: 0;
    overflow: hidden;
}

.auth-page > *,
.auth-forms,
.auth-form,
.cart-page-layout > *,
.checkout-layout > *,
.account-layout > *,
.lookbook-section > *,
.store-layout > *,
.product-detail > * {
    min-width: 0;
}

.auth-page {
    grid-template-columns: minmax(320px, 0.9fr) minmax(620px, 1.1fr);
    align-items: start;
}

.auth-intro {
    min-height: 520px;
}

.auth-intro h1 {
    max-width: 100%;
    font-size: clamp(3.2rem, 5.2vw, 5.9rem);
    line-height: 0.86;
    overflow-wrap: anywhere;
}

.auth-forms {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.auth-form {
    overflow: hidden;
}

.auth-form h2 {
    max-width: 100%;
    font-size: clamp(2.15rem, 3vw, 3.55rem);
    line-height: 0.9;
    overflow-wrap: anywhere;
}

.auth-form input {
    min-width: 0;
}

.lookbook-section {
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
}

.lookbook-copy {
    align-self: stretch;
    max-width: none;
    overflow: hidden;
}

.lookbook-copy h2 {
    max-width: 100%;
    font-size: clamp(2.7rem, 4.7vw, 5.4rem);
    line-height: 0.88;
    overflow-wrap: anywhere;
}

.lookbook-copy p {
    max-width: 46ch;
}

.lookbook-grid {
    min-width: 0;
    overflow: hidden;
}

.editorial-tile {
    min-width: 0;
}

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

.cart-page-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 400px);
}

.summary-panel {
    overflow: hidden;
}

.summary-panel h2 {
    max-width: 100%;
    font-size: clamp(2rem, 3vw, 3.8rem);
    line-height: 0.9;
    overflow-wrap: anywhere;
}

.checkout-layout .summary-panel h2 {
    font-size: clamp(1.9rem, 2.6vw, 3.25rem);
}

.summary-row,
.summary-item {
    min-width: 0;
}

.summary-row span,
.summary-item span {
    min-width: 0;
}

.summary-row strong,
.summary-item strong {
    white-space: nowrap;
}

.success-panel {
    overflow: hidden;
}

.success-panel h2 {
    max-width: 100%;
    font-size: clamp(1.9rem, 3vw, 3.4rem);
    line-height: 0.9;
    overflow-wrap: anywhere;
}

.cart-page-layout > div:first-child {
    min-width: 0;
}

.cart-page-items {
    min-width: 0;
}

.cart-row {
    grid-template-columns: 112px minmax(190px, 1fr) minmax(118px, auto) minmax(95px, auto) auto;
    min-width: 0;
}

.cart-row > div:nth-child(2) {
    min-width: 0;
}

.cart-row h3,
.cart-row p {
    overflow-wrap: anywhere;
}

.cart-toolbar {
    align-items: center;
}

.page-heading h1 {
    overflow-wrap: anywhere;
}

@media (max-width: 1280px) {
    .auth-page,
    .checkout-layout,
    .cart-page-layout,
    .lookbook-section {
        grid-template-columns: 1fr;
    }

    .summary-panel {
        position: static;
    }

    .auth-forms {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

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

    .cart-row {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .cart-row .quantity-controls,
    .cart-row > strong,
    .cart-row .text-button {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .auth-intro h1,
    .hero-copy h1,
    .page-heading h1 {
        font-size: clamp(2.8rem, 15vw, 4.2rem);
    }

    .lookbook-copy h2,
    .summary-panel h2,
    .auth-form h2 {
        font-size: clamp(2rem, 12vw, 3.1rem);
    }

    .checkout-layout,
    .cart-page-layout,
    .account-layout,
    .auth-page,
    .lookbook-section {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Final storefront polish */
.street-marquee div {
    min-width: max-content;
    will-change: transform;
    animation-duration: 24s;
}

.street-marquee span {
    flex: 0 0 auto;
    padding: 13px clamp(28px, 4vw, 64px);
}

.lookbook-copy h2 {
    font-size: clamp(2.25rem, 4vw, 4.55rem);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.summary-panel h2 {
    font-size: clamp(1.85rem, 2.05vw, 2.75rem);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    white-space: nowrap;
}

.checkout-layout .summary-panel h2 {
    font-size: clamp(1.85rem, 2vw, 2.6rem);
}

.cart-row {
    grid-template-columns: 128px minmax(190px, 1fr) minmax(118px, auto) minmax(95px, auto) auto;
    align-items: center;
}

.cart-row .cart-thumb.product-media {
    width: 112px;
    height: 142px;
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
    align-self: center;
    justify-self: start;
    border: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
}

.cart-row .cart-thumb.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-row .cart-thumb.product-art {
    padding: 0;
}

.cart-row .cart-thumb.product-art strong {
    bottom: 8px;
    font-size: 0.58rem;
}

.cart-row .cart-thumb .garment {
    width: 64%;
    height: 58%;
}

.cart-toast-region {
    position: fixed;
    top: 92px;
    right: clamp(16px, 3vw, 38px);
    z-index: 90;
    display: grid;
    gap: 12px;
    pointer-events: none;
}

.cart-toast {
    display: grid;
    gap: 6px;
    width: min(360px, calc(100vw - 32px));
    padding: 15px 16px 14px;
    color: var(--ink);
    background: var(--acid);
    border: 3px solid var(--ink);
    box-shadow: 7px 7px 0 var(--ink);
    pointer-events: auto;
    animation: cartToastIn 260ms cubic-bezier(0.2, 0.9, 0.2, 1.1) both;
}

.cart-toast strong {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.cart-toast span {
    color: var(--muted);
    font-weight: 800;
}

.cart-toast a {
    width: fit-content;
    color: var(--ink);
    font-weight: 950;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.cart-toast.is-leaving {
    animation: cartToastOut 190ms ease-in forwards;
}

@keyframes cartToastIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cartToastOut {
    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
}

@media (max-width: 900px) {
    .cart-row {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .cart-row .cart-thumb.product-media {
        width: 92px;
        height: 118px;
    }
}

@media (max-width: 640px) {
    .lookbook-copy h2 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .summary-panel h2 {
        font-size: clamp(1.8rem, 9vw, 2.6rem);
        white-space: nowrap;
    }

    .cart-toast-region {
        top: auto;
        right: 16px;
        bottom: 18px;
        left: 16px;
    }

    .cart-toast {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-toast,
    .cart-toast.is-leaving {
        animation: none;
    }
}

/* Prevent oversized page titles from splitting single letters. */
.page-heading h1 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
}

.checkout-heading h1 {
    max-width: 1120px;
    font-size: clamp(3rem, 6vw, 6.15rem);
    line-height: 0.84;
}

@media (max-width: 640px) {
    .checkout-heading h1 {
        font-size: clamp(2.1rem, 10.5vw, 2.75rem);
        line-height: 0.9;
    }
}

/* Profile and settings page */
.site-header {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.profile-shortcut {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--ink);
    text-decoration: none;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background:
        linear-gradient(135deg, var(--acid) 0 48%, var(--accent) 48% 100%);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 950;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.profile-shortcut:hover .profile-avatar,
.profile-shortcut.active .profile-avatar {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 var(--ink);
}

.profile-status-dot {
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--acid);
}

.profile-shortcut.is-guest .profile-status-dot {
    background: var(--accent);
}

.account-dashboard {
    grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.3fr);
    gap: 28px;
}

.account-dashboard > .account-orders-panel {
    grid-column: 1 / -1;
}

.profile-card,
.settings-panel {
    min-width: 0;
}

.profile-card {
    position: sticky;
    top: 104px;
    overflow: hidden;
}

.profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.profile-large-avatar {
    display: grid;
    place-items: center;
    width: clamp(82px, 10vw, 116px);
    height: clamp(82px, 10vw, 116px);
    border: 3px solid var(--ink);
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.55), transparent 26%),
        linear-gradient(135deg, var(--acid) 0 47%, var(--accent) 47% 100%);
    color: var(--ink);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 950;
    box-shadow: 7px 7px 0 var(--ink);
}

.profile-card h2,
.settings-panel h2 {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.profile-card h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.profile-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ghost-button {
    min-height: 48px;
    padding: 14px 18px;
    border: 2px dashed var(--ink);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.ghost-button:hover {
    background: var(--acid);
}

.settings-panel {
    display: grid;
    gap: 20px;
}

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

.setting-card {
    display: grid;
    gap: 18px;
    align-content: space-between;
    min-height: 220px;
    padding: clamp(18px, 2.4vw, 24px);
    border: 3px solid var(--ink);
    background: #fffaf0;
    box-shadow: 7px 7px 0 var(--ink);
    opacity: 0;
    transform: translateY(22px);
}

.setting-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: revealUp 560ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.setting-card h3 {
    margin: 8px 0 8px;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.setting-card p {
    margin: 0;
}

.setting-kicker {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.switch-field,
.setting-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.switch-field {
    cursor: pointer;
}

.switch-field input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.toggle-switch {
    position: relative;
    flex: 0 0 auto;
    width: 58px;
    height: 30px;
    border: 2px solid var(--ink);
    background: #fffaf0;
    box-shadow: 3px 3px 0 var(--ink);
}

.toggle-switch::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    background: var(--ink);
    transition: transform 160ms ease, background 160ms ease;
}

.switch-field input:checked + .toggle-switch {
    background: var(--acid);
}

.switch-field input:checked + .toggle-switch::before {
    transform: translateX(28px);
}

.setting-select select {
    min-width: 96px;
}

.settings-panel .section-head h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

#admin-products {
    grid-column: 1 / -1;
    scroll-margin-top: 112px;
}

#admin-products .checkout-form {
    opacity: 1;
    transform: none;
}

.admin-product-editor {
    display: grid;
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-product-preview {
    min-width: 0;
    width: 100%;
    max-width: 420px;
    justify-self: start;
    border: 3px solid var(--ink);
    background: #fffaf0;
    box-shadow: 7px 7px 0 var(--ink);
}

.admin-product-preview .product-media {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 5;
}

.admin-preview-media {
    min-height: 330px;
    max-width: 100%;
}

.form-field {
    display: grid;
    gap: 7px;
}

.input-with-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.input-with-action .ghost-button {
    min-height: 44px;
    padding: 10px 12px;
    white-space: nowrap;
}

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

    .input-with-action {
        grid-template-columns: 1fr;
    }
}

html[data-theme="dark"] {
    --bg: #080808;
    --surface: #121212;
    --surface-soft: #1b1b1b;
    --ink: #f6f0df;
    --muted: #b8b0a3;
    --line: #f6f0df;
    --accent: #ff563f;
    --acid: #d7ff2f;
    --shadow: 8px 8px 0 #f6f0df;
}

html[data-theme="dark"] body {
    background:
        radial-gradient(circle at 9% 12%, rgba(215, 255, 47, 0.12), transparent 24rem),
        radial-gradient(circle at 84% 10%, rgba(255, 86, 63, 0.14), transparent 22rem),
        linear-gradient(180deg, #0b0b0b 0, #151515 100%);
    color: var(--ink);
}

html[data-theme="dark"] body::before {
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(246, 240, 223, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(246, 240, 223, 0.08) 1px, transparent 1px);
}

html[data-theme="dark"] .site-header {
    background: rgba(9, 9, 9, 0.92);
    border-color: var(--ink);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .nav-button,
html[data-theme="dark"] .cart-toggle,
html[data-theme="dark"] .text-link,
html[data-theme="dark"] .secondary-link,
html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .ghost-button {
    color: var(--ink);
}

html[data-theme="dark"] .brand-mark,
html[data-theme="dark"] .cart-toggle span {
    border-color: var(--ink);
    background: var(--ink);
    color: #090909;
}

html[data-theme="dark"] .cart-toggle:hover {
    background: var(--ink);
    color: #090909;
}

html[data-theme="dark"] .cart-toggle:hover span {
    background: #090909;
    color: var(--ink);
}

html[data-theme="dark"] .profile-avatar,
html[data-theme="dark"] .profile-large-avatar {
    color: #090909;
}

html[data-theme="dark"] .shop-sidebar,
html[data-theme="dark"] .summary-panel,
html[data-theme="dark"] .auth-form,
html[data-theme="dark"] .account-card,
html[data-theme="dark"] .checkout-form,
html[data-theme="dark"] .setting-card,
html[data-theme="dark"] .admin-product-preview,
html[data-theme="dark"] .cart-row,
html[data-theme="dark"] .order-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .success-panel,
html[data-theme="dark"] .detail-info,
html[data-theme="dark"] .spec-grid div {
    background: #121212;
    border-color: var(--ink);
    color: var(--ink);
}

html[data-theme="dark"] .product-card {
    background: #121212;
    color: var(--ink);
}

html[data-theme="dark"] .product-art strong,
html[data-theme="dark"] .pill {
    background: #090909;
    color: var(--ink);
    border-color: rgba(246, 240, 223, 0.34);
}

html[data-theme="dark"] .category-chip {
    color: var(--ink);
    border-color: rgba(246, 240, 223, 0.24);
}

html[data-theme="dark"] .lookbook-section,
html[data-theme="dark"] .feature-strip div,
html[data-theme="dark"] .product-detail {
    background: #101010;
}

html[data-theme="dark"] .muted,
html[data-theme="dark"] .product-card p,
html[data-theme="dark"] .page-heading p,
html[data-theme="dark"] .detail-copy,
html[data-theme="dark"] .cart-toast span {
    color: var(--muted);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background: #080808;
    border-color: rgba(246, 240, 223, 0.34);
    color: var(--ink);
}

html[data-theme="dark"] .primary-link,
html[data-theme="dark"] .full-button,
html[data-theme="dark"] .add-button {
    border-color: var(--ink);
    background: var(--ink);
    color: #090909;
}

html[data-theme="dark"] .primary-link:hover,
html[data-theme="dark"] .full-button:hover,
html[data-theme="dark"] .add-button:hover,
html[data-theme="dark"] .ghost-button:hover {
    background: var(--acid);
    color: #090909;
}

html[data-theme="dark"] .toggle-switch {
    background: #080808;
}

html[data-theme="dark"] .toggle-switch::before {
    background: var(--ink);
}

html[data-theme="dark"] .switch-field input:checked + .toggle-switch::before {
    background: #090909;
}

@media (max-width: 1180px) {
    .account-dashboard {
        grid-template-columns: 1fr;
    }

    .profile-card {
        position: static;
    }
}

@media (max-width: 820px) {
    .site-header {
        grid-template-columns: 1fr auto auto;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .settings-grid,
    .profile-specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .profile-shortcut {
        width: 40px;
        height: 40px;
    }

    .profile-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.7rem;
    }

    .profile-hero {
        grid-template-columns: 1fr;
    }

    .profile-actions,
    .switch-field,
    .setting-select {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .setting-card {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Product reviews */
.review-section {
    padding-top: 18px;
}

.review-layout {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.review-form {
    position: sticky;
    top: 96px;
}

.review-list {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.review-card {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 18px;
    opacity: 0;
    transform: translateY(18px);
}

.review-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: revealUp 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.review-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.review-card h3,
.review-card p {
    margin: 0;
}

.review-card h3 {
    font-size: 1.1rem;
}

.review-card-head strong {
    display: inline-grid;
    min-width: 54px;
    min-height: 38px;
    place-items: center;
    border-radius: 6px;
    background: var(--ink);
    color: #ffffff;
    font-weight: 900;
}

.review-card > p {
    color: var(--ink);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

html[data-theme="dark"] .review-card {
    background: #121212;
    border-color: var(--ink);
    color: var(--ink);
}

html[data-theme="dark"] .review-card-head strong {
    background: var(--ink);
    color: #090909;
}

html[data-theme="dark"] .review-card > p {
    color: var(--ink);
}

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

    .review-form {
        position: static;
    }
}

@media (prefers-reduced-motion: reduce) {
    .review-card {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
