/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
    --font-primary: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    
    /* Colors */
    --color-bg: #ffffff;
    --color-text-primary: #111111;
    --color-text-muted: #767676;
    --color-border-light: #e5e5e5;
    --color-border-dark: #111111;
    --color-accent: #000000;
    --color-bg-light: #f7f7f7;
    
    /* Layout */
    --header-height: 70px;
    --ticker-height: 40px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.15s ease-in-out;
}

/* --- BASICS & RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    touch-action: manipulation;
}

body.batchin-loading {
    overflow: hidden;
    background-color: #020202;
}

body.batchin-loading.batchin-revealing {
    background-color: var(--color-bg);
}

.batchin-preloader-skip .batchin-preloader {
    display: none;
}

.batchin-preloader-skip body.batchin-loading {
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--color-bg);
}

/* --- BATCHIN PRELOADER --- */
.batchin-preloader {
    position: fixed;
    inset: 0;
    z-index: 30000;
    overflow: hidden;
    isolation: isolate;
    background: #020202;
    color: #ffffff;
    opacity: 1;
    pointer-events: auto;
    --preloader-safe-x: clamp(20px, 4vw, 64px);
    --preloader-safe-y: clamp(22px, 5vh, 52px);
    --preloader-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --preloader-ease-in: cubic-bezier(0.4, 0, 1, 1);
}

.batchin-preloader__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #020202;
    animation: batchin-preloader-drift 4.8s ease-in-out alternate infinite;
    transform-origin: center;
    will-change: transform;
}

.batchin-preloader__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #020202 url('/videos/deep-water-poster.jpg?v=4') center / contain no-repeat;
    filter: contrast(1.04) brightness(0.92);
    transform: scale(1.008);
    transform-origin: center;
    transition:
        filter 300ms var(--preloader-ease-in),
        transform 300ms var(--preloader-ease-in);
    pointer-events: none;
}

@keyframes batchin-preloader-drift {
    from {
        transform: scale(1.012) translate3d(-0.16%, 0.08%, 0);
    }

    to {
        transform: scale(1.024) translate3d(0.16%, -0.08%, 0);
    }
}

.batchin-preloader__vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, transparent 22%, transparent 72%, rgba(0, 0, 0, 0.72) 100%),
        radial-gradient(ellipse at center, transparent 34%, rgba(0, 0, 0, 0.24) 72%, rgba(0, 0, 0, 0.56) 100%);
    pointer-events: none;
    z-index: 1;
}

.batchin-preloader__grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.44'/%3E%3C/svg%3E");
    pointer-events: none;
}

.batchin-preloader__topbar {
    position: absolute;
    top: var(--preloader-topbar-top, var(--ticker-height));
    right: 0;
    left: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--header-height);
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 420ms var(--preloader-ease-out),
        transform 420ms var(--preloader-ease-out);
}

.batchin-preloader__brand {
    margin-left: 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 8px;
    line-height: 1.6;
    text-transform: uppercase;
    white-space: nowrap;
}

.batchin-preloader__footer {
    position: absolute;
    right: var(--preloader-safe-x);
    bottom: max(var(--preloader-safe-y), env(safe-area-inset-bottom));
    left: var(--preloader-safe-x);
    z-index: 4;
    display: grid;
    gap: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 420ms var(--preloader-ease-out) 80ms,
        transform 420ms var(--preloader-ease-out) 80ms;
}

.batchin-preloader.is-ready .batchin-preloader__topbar,
.batchin-preloader.is-ready .batchin-preloader__footer {
    opacity: 1;
    transform: translateY(0);
}

.batchin-preloader__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.batchin-preloader__caption,
.batchin-preloader__counter {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.22em;
    line-height: 1;
    text-transform: uppercase;
}

.batchin-preloader__caption {
    color: rgba(255, 255, 255, 0.66);
}

.batchin-preloader__counter {
    min-width: 46px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.batchin-preloader__track {
    width: 100%;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.17);
}

.batchin-preloader__progress {
    width: 100%;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

.batchin-preloader__fallback {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    place-items: center;
    padding: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-align: center;
    text-transform: uppercase;
    background: #030303;
}

.batchin-preloader.is-video-error .batchin-preloader__fallback {
    display: grid;
}

.batchin-preloader.is-finishing {
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms var(--preloader-ease-in);
}

.batchin-preloader.is-finishing .batchin-preloader__topbar {
    opacity: 0;
    transform: translateY(0);
    transition: opacity 140ms var(--preloader-ease-in);
}

.batchin-preloader.is-finishing .batchin-preloader__footer {
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 140ms var(--preloader-ease-in),
        transform 140ms var(--preloader-ease-in);
}

.batchin-preloader.is-finishing .batchin-preloader__video {
    filter: contrast(1.04) brightness(0.8);
    transform: scale(1.024);
}

@media (max-width: 640px) {
    .batchin-preloader {
        --preloader-safe-x: 20px;
        --preloader-safe-y: 24px;
    }

    .batchin-preloader__video {
        width: 112%;
        max-width: none;
    }

    .batchin-preloader__brand {
        margin-left: 5px;
        font-size: 20px;
        letter-spacing: 5px;
    }
}

@media (max-height: 560px) and (orientation: landscape) {
    .batchin-preloader {
        --preloader-safe-y: 18px;
    }

    .batchin-preloader__footer {
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .batchin-preloader__brand {
        margin-left: 4px;
        font-size: 17px;
        letter-spacing: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .batchin-preloader {
        display: none;
    }

    body.batchin-loading {
        overflow-x: hidden;
        overflow-y: auto;
        background-color: var(--color-bg);
    }
}

/* --- CUSTOMER ACCOUNT CLEAN OVERRIDES --- */
.account-dashboard-body {
    --account-black: #151515;
    --account-ink: #191919;
    --account-muted: #6f6f6f;
    --account-line: #d9d9d7;
    --account-line-strong: #a9a9a6;
    --account-canvas: #f6f6f4;
    --account-surface: #ffffff;
    --account-surface-muted: #f7f7f5;
    background: var(--account-canvas);
}

.account-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--account-line);
    background: rgba(255, 255, 255, 0.97);
}

.account-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    width: min(100%, 1410px);
    min-height: 72px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 56px);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
}

.account-header-brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    color: var(--account-ink);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 8px;
    line-height: 1;
    margin-left: 8px;
    text-decoration: none;
}

.account-header-nav {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    align-items: center;
    justify-self: start;
    gap: clamp(20px, 3vw, 38px);
}

.account-header-link {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--account-muted);
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
    transition: color 160ms ease;
}

.account-header-link::after {
    position: absolute;
    right: 0;
    bottom: -14px;
    left: 0;
    height: 1px;
    background: var(--account-ink);
    content: "";
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 160ms ease, transform 160ms ease;
}

.account-header-link:hover,
.account-header-link.is-active {
    color: var(--account-ink);
}

.account-header-link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.account-header-actions {
    display: flex;
    grid-column: 3;
    grid-row: 1;
    align-items: center;
    gap: 18px;
    justify-self: end;
}

.account-header-actions form {
    margin: 0;
}

.account-header-email {
    max-width: 220px;
    overflow: hidden;
    color: var(--account-muted);
    font-size: 10px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-header-logout {
    min-height: 44px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--account-line-strong);
    background: transparent;
    color: var(--account-ink);
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.account-main-clean {
    width: min(100%, 1410px);
    padding: clamp(38px, 5vw, 72px) clamp(20px, 4vw, 56px) 80px;
}

.account-main-clean .account-observed-section {
    scroll-margin-top: 96px;
}

.account-main-clean .account-page-head {
    margin-bottom: 38px;
}

.account-main-clean .account-page-head h1 {
    margin-top: 0;
    font-size: clamp(42px, 5vw, 68px);
}

.account-main-clean .account-page-head p {
    max-width: 560px;
    margin-top: 14px;
}

.account-main-clean .account-primary-action,
.account-main-clean .account-inline-action,
.account-main-clean .account-secondary-action {
    background: var(--account-surface);
    color: var(--account-ink);
}

.account-main-clean .account-primary-action:hover,
.account-main-clean .account-inline-action:hover,
.account-main-clean .account-secondary-action:hover {
    background: var(--account-surface-muted);
    color: var(--account-ink);
}

.account-main-clean .account-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--account-line);
    background: var(--account-surface);
}

.account-main-clean .account-metric {
    min-height: 150px;
    padding: 22px;
    border-left: 1px solid var(--account-line);
    background: var(--account-surface);
    color: var(--account-ink);
}

.account-main-clean .account-metric:first-child {
    border-left: 0;
}

.account-main-clean .account-metric-label {
    display: block;
    color: var(--account-muted);
    font-size: 10px;
    font-weight: 750;
}

.account-main-clean .account-metric-value {
    margin-top: 28px;
    font-size: clamp(27px, 3vw, 40px);
    letter-spacing: -0.035em;
}

.account-main-clean .account-metric-level .account-metric-value {
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: 0.01em;
}

.account-main-clean .account-command-grid,
.account-main-clean .account-detail-grid {
    gap: 20px;
    margin-top: 20px;
}

.account-main-clean .account-panel {
    border-color: var(--account-line);
    background: var(--account-surface);
}

.account-main-clean .account-panel-head {
    align-items: flex-start;
}

.account-main-clean .account-panel-head h2 {
    margin: 0;
}

.account-panel-meta {
    margin: 9px 0 0;
    color: var(--account-muted);
    font-size: 11px;
    font-weight: 600;
}

.account-main-clean .account-level-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.account-main-clean .account-level-rate {
    min-width: 90px;
}

.account-main-clean .account-perk-note {
    border: 1px solid var(--account-line);
    background: var(--account-surface);
}

.account-main-clean .account-empty {
    min-height: 270px;
    padding: clamp(28px, 4vw, 52px);
    background: var(--account-surface-muted);
}

.account-main-clean .account-empty h3 {
    margin-top: 0;
}

.account-main-clean .account-support-panel {
    border: 1px solid var(--account-line);
    background: var(--account-surface);
    color: var(--account-ink);
}

.account-main-clean .account-support-panel h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.account-main-clean .account-support-panel p {
    margin: 10px 0 0;
    color: var(--account-muted);
    font-size: 11px;
    line-height: 1.55;
}

.account-main-clean .account-support-panel a {
    color: var(--account-ink);
}

@media (max-width: 980px) {
    .account-header-inner {
        grid-template-columns: 1fr auto 1fr;
        gap: 28px;
    }

    .account-header-brand {
        font-size: 20px;
        letter-spacing: 5px;
        margin-left: 5px;
    }

    .account-header-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        overflow-x: auto;
        margin: -12px -20px 0;
        padding: 0 20px;
        border-top: 1px solid var(--account-line);
    }

    .account-header-link {
        flex: 0 0 auto;
    }

    .account-header-link::after {
        bottom: 0;
    }

    .account-header-inner {
        padding-top: 14px;
    }

    .account-main-clean .account-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-main-clean .account-metric:nth-child(3) {
        border-left: 0;
    }

    .account-main-clean .account-metric:nth-child(3),
    .account-main-clean .account-metric:nth-child(4) {
        border-top: 1px solid var(--account-line);
    }
}

@media (max-width: 560px) {
    .account-header-inner {
        min-height: 112px;
        padding: 14px 14px 0;
        gap: 18px;
    }

    .account-header-brand {
        font-size: 17px;
        letter-spacing: 4px;
        margin-left: 4px;
    }

    .account-header-email {
        display: none;
    }

    .account-header-nav {
        margin-right: -14px;
        margin-left: -14px;
        padding: 0 14px;
        gap: 26px;
    }

    .account-main-clean {
        padding: 32px 14px 52px;
    }

    .account-main-clean .account-page-head {
        gap: 20px;
    }

    .account-main-clean .account-page-head h1 {
        font-size: 42px;
    }

    .account-main-clean .account-metric {
        min-height: 136px;
        padding: 15px;
    }

    .account-main-clean .account-metric-value,
    .account-main-clean .account-metric-level .account-metric-value {
        margin-top: 24px;
        font-size: 25px;
    }

    .account-main-clean .account-level-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .account-main-clean .account-level-state {
        display: none;
    }
}

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

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

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
    touch-action: manipulation;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* --- TICKER / ANNOUNCEMENT BAR --- */
.ticker-bar {
    height: var(--ticker-height);
    background-color: var(--color-text-primary);
    color: var(--color-bg);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--color-border-dark);
    z-index: 1010;
}

.ticker-bar:hover .ticker-content {
    animation-play-state: paused;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee 28s linear infinite;
}

.ticker-group {
    display: inline-flex;
    align-items: center;
    padding: 0 40px;
}

.ticker-tag {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    padding: 3px 10px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-right: 15px;
    border: 1px solid var(--color-text-primary);
    display: inline-block;
    line-height: 1;
}

.ticker-text {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ticker-divider {
    opacity: 0.5;
    font-size: 11px;
    padding: 0 10px;
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    height: var(--header-height);
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

/* Left menu */
.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-text-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Burger menu (mobile only) */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 12px;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--color-text-primary);
    transition: var(--transition-fast);
}

/* Center logo */
.site-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--color-text-primary);
    margin-left: 8px; /* account for letter-spacing offset */
}

/* Right utilities */
.nav-utilities {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

.utility-link {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.utility-link svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-text-primary);
    stroke-width: 1.5px;
    fill: none;
}

.utility-link:hover {
    color: var(--color-text-muted);
}

.utility-link:hover svg {
    stroke: var(--color-text-muted);
}

.header-auth-actions {
    display: flex;
    align-items: center;
    gap: 26px;
}

.header-admin-link {
    padding: 0;
}

.header-admin-link .utility-text {
    font-weight: 800;
    color: #ef4444;
    letter-spacing: 3px;
}

.header-logout-form {
    margin: 0;
    display: flex;
}

.header-logout-btn {
    min-height: auto;
    padding: 0;
    border: 0;
    background-color: transparent;
    transition: var(--transition-fast);
}

.header-logout-btn .utility-text {
    font-weight: 500;
    letter-spacing: 4px;
}

.header-logout-btn:hover {
    color: var(--color-text-muted);
}

.header-logout-btn:hover svg {
    stroke: var(--color-text-muted);
}

/* Mobile responsive navigation overrides */
@media (max-width: 991px) {
    :root {
        --header-height: 64px;
        --ticker-height: 34px;
    }

    .site-header {
        height: var(--header-height);
    }

    .header-inner {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        height: var(--header-height);
    }

    .nav-menu {
        display: none;
    }
    
    .burger-btn {
        display: flex;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        width: 24px;
        height: 16px;
    }

    .site-logo {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }
    
    .logo-text {
        font-size: 20px;
        letter-spacing: 5px;
        margin-left: 5px;
        white-space: nowrap;
    }

    .nav-utilities {
        display: none;
    }
    
    .utility-text {
        display: none; /* Hide text, only show icons */
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 58px;
        --ticker-height: 32px;
    }

    .container {
        padding: 0 16px;
    }

    .header-inner {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
    }

    .logo-text {
        font-size: 17px;
        letter-spacing: 4px;
        margin-left: 4px;
    }
}

/* --- HERO BANNER SECTION --- */
.hero-section {
    position: relative;
    height: calc(100vh - var(--header-height) - var(--ticker-height));
    min-height: 500px;
    width: 100%;
    overflow: hidden;
    background-color: #070707;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #000000;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Align to top to prevent head crop */
    opacity: 0.95; /* Clean dimming without filter blur */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Left-to-right gradient for text readability + bottom dark fade */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.1) 70%, transparent 100%),
                linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 25%, rgba(0, 0, 0, 0.5) 100%);
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-container-new {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px; /* Ample breathing room */
    width: 100%;
}

.hero-content-new {
    max-width: 640px;
    text-align: left;
}

.hero-title-editorial {
    font-size: clamp(40px, 7vw, 78px);
    font-weight: 900;
    letter-spacing: 0.12em; /* Spacious minimalist letter-spacing */
    line-height: 1;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
    text-indent: 0.12em; /* Offset to keep text perfectly centered */
}

.hero-subtitle-editorial {
    display: block;
    font-size: clamp(10px, 1.4vw, 12px);
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    text-indent: 5px; /* Offset to center text visually */
}

.hero-btn-editorial {
    display: inline-block;
    border: 1px solid #ffffff;
    padding: 18px 48px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 3px;
    text-transform: uppercase;
    background-color: transparent;
    color: #ffffff;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn-editorial:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Animations */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-fade-item {
    opacity: 0;
    animation: heroFadeUp 0.95s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-fade-item:nth-child(1) { animation-delay: 0.15s; }
.hero-fade-item:nth-child(2) { animation-delay: 0.35s; }
.hero-fade-item:nth-child(3) { animation-delay: 0.55s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }
    
    .hero-image-wrapper img {
        object-position: 70% top; /* Focus model on the right, align top to prevent head crop */
        opacity: 0.85; /* Clean dimming without filter blur */
    }
    
    .hero-overlay {
        /* Bottom-to-top gradient on mobile for center text at the bottom */
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.8) 100%);
        align-items: flex-end;
        padding-bottom: 60px;
    }
    
    .hero-container-new {
        padding: 0 24px;
    }
    
    .hero-content-new {
        max-width: 100%;
        text-align: center; /* Balanced centered text on mobile */
    }
    
    .hero-title-editorial {
        margin-bottom: 12px;
    }
    
    .hero-subtitle-editorial {
        margin-bottom: 34px;
    }
    
    .hero-btn-editorial {
        width: 100%;
        max-width: 320px;
        padding: 14px 28px;
    }
}

/* --- CATALOG SECTION --- */
.catalog-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.catalog-section .container {
    max-width: 100%;
    width: 100%;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .catalog-section .container {
        padding: 0 20px;
    }
}



.catalog-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 15px;
}

.tab-btn {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-text-muted); /* Gray for inactive tabs */
    padding: 8px 16px;
    transition: var(--transition-fast);
}

.tab-btn.active {
    color: var(--color-text-primary); /* Bold black for active tab */
}

.tab-btn:hover {
    color: var(--color-text-primary);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 24px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog-section {
        padding: 54px 0;
    }

    .catalog-tabs {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 34px;
        overflow: visible;
        padding: 0;
    }

    .tab-btn {
        flex: 0 0 auto;
        padding: 8px 10px;
        font-size: 11px;
        letter-spacing: 1.4px;
        white-space: nowrap;
        border: 1px solid var(--color-border-light);
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 16px;
    }
}

@media (max-width: 480px) {
    .catalog-section .container {
        padding: 0 12px;
    }

    .catalog-grid {
        gap: 28px 10px;
    }

    .product-card-info {
        padding-top: 14px;
    }

    .product-card-title {
        font-size: 10px;
        letter-spacing: 0.7px;
        overflow-wrap: anywhere;
    }

    .product-card-translation {
        font-size: 9px;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
        overflow-wrap: anywhere;
    }

    .product-card-price {
        font-size: 12px;
    }

    .badge-container {
        top: 8px;
        left: 8px;
    }

    .badge-tag {
        padding: 5px 8px;
        font-size: 8px;
        letter-spacing: 0.8px;
    }
}

/* Keep 2 columns on very small screen sizes */

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background-color: var(--color-bg);
}

.product-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Changed to vertical 3:4 aspect ratio */
    overflow: hidden;
    background-color: #ffffff; /* White background matches product mockup canvas, eliminating borders */
    border: none; /* Removed borders for clean frameless design */
}

.product-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover makes the product look close, full and detailed without white/grey margins */
    object-position: center top;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card-img.hover {
    opacity: 0;
}

.product-card:hover .product-card-img.primary {
    opacity: 0.8;
}

.product-card:hover .product-card-img.hover {
    opacity: 1;
}

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

/* Card details */
.product-card-info {
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-primary);
    line-height: 1.3;
    margin-bottom: 6px;
}

.product-card-translation {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.product-card-price {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-text-primary);
}



/* --- PRODUCT DETAIL MODAL --- */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2100;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal.open {
    display: flex;
    opacity: 1;
}

.product-modal-content {
    background-color: var(--color-bg);
    width: 90%;
    max-width: 960px;
    max-height: 90vh;
    padding: 50px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow-y: auto;
    border: 1px solid var(--color-border-light);
}

.product-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    transition: var(--transition-fast);
    padding: 10px;
    z-index: 10;
}

.product-modal-close svg {
    width: 14px;
    height: 14px;
    stroke: var(--color-text-primary);
    stroke-width: 2px;
}

.product-modal-close:hover {
    opacity: 1;
}

.product-modal-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
}

@media (max-width: 768px) {
    .product-modal {
        align-items: flex-start;
        overflow-y: auto;
        height: 100dvh;
        overscroll-behavior: contain;
    }

    .product-modal-content {
        padding: 62px 18px calc(320px + env(safe-area-inset-bottom));
        width: 100%;
        min-height: 100dvh;
        max-height: none;
        border: 0;
        box-shadow: none;
        overflow-x: hidden;
        scroll-padding-bottom: calc(320px + env(safe-area-inset-bottom));
    }

    .product-modal-close {
        position: fixed;
        top: 12px;
        right: 12px;
        background-color: rgba(255, 255, 255, 0.92);
        border: 1px solid var(--color-border-light);
    }
    
    .product-modal-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        width: 100%;
        min-width: 0;
    }

    .product-modal-gallery,
    .product-modal-details,
    .product-modal-actions-wrap,
    .product-modal-actions-container,
    .product-modal-actions {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .product-modal-title {
        font-size: 18px;
        overflow-wrap: anywhere;
    }

    .product-modal-actions-wrap {
        margin-bottom: 28px;
    }
}

/* Modal Gallery */
.product-modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-main-image-wrap {
    width: 100%;
    aspect-ratio: 3 / 4; /* Vertical aspect ratio in quickview modal */
    background-color: #ffffff; /* White background to eliminate margins */
    border: none;
    overflow: hidden;
    position: relative; /* Relative anchor for gallery nav arrows */
    touch-action: pan-y;
}

/* Gallery Navigation Arrows */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    opacity: 0; /* Hidden by default, fades in on hover */
    color: var(--color-text-primary);
}

.modal-main-image-wrap:hover .gallery-nav-btn {
    opacity: 1;
}

.gallery-nav-btn:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-nav-btn svg {
    width: 20px;
    height: 20px;
}

.gallery-nav-btn.nav-prev {
    left: 15px;
}

.gallery-nav-btn.nav-next {
    right: 15px;
}

@media (max-width: 768px) {
    .gallery-nav-btn {
        opacity: 0.8; /* Keep visible on touch screens */
        width: 36px;
        height: 36px;
    }
    .gallery-nav-btn.nav-prev {
        left: 10px;
    }
    .gallery-nav-btn.nav-next {
        right: 10px;
    }
}

.modal-main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover makes photo look full and close in quickview */
    object-position: center top;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden; /* Prevent vertical scrollbar layout issues */
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
}

.modal-thumbnails::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari/Opera */
}

.thumb-item {
    width: 70px;
    aspect-ratio: 3 / 4; /* Vertical thumbnails */
    background-color: #ffffff;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover fills the thumbnails */
    object-position: center top;
}

.thumb-item.active, .thumb-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Modal Details */
.product-modal-details {
    display: flex;
    flex-direction: column;
}

.product-modal-category {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.product-modal-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-modal-translation {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.product-modal-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 30px;
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 15px;
}

/* Sizes block */
.product-modal-sizes-wrap {
    margin-bottom: 30px;
}

.size-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 12px;
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-opt-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border-light);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: transparent;
    color: var(--color-text-primary);
}

#size-btn-one-size {
    width: auto;
    min-width: 86px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.4px;
}

.size-opt-btn:not(:disabled):hover {
    border-color: var(--color-border-dark);
    transform: scale(1.08);
}

.size-opt-btn.selected {
    background-color: var(--color-text-primary);
    color: var(--color-bg);
    border-color: var(--color-border-dark);
    transform: scale(1.08);
    box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 3.5px var(--color-text-primary);
}

.size-opt-btn.is-unavailable,
.size-opt-btn:disabled {
    color: var(--color-text-muted);
    border-color: var(--color-border-light);
    background-color: transparent;
    opacity: 0.38;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* Sizing Error message */
.size-error-msg {
    color: #e11d48; /* Red rose accent */
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: none;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Actions wrap */
.product-modal-actions-wrap {
    margin-bottom: 40px;
}

.product-modal-actions-container {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.product-modal-actions {
    flex: 1;
    display: flex;
    gap: 12px;
}

.modal-action-btn {
    flex: 1;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-cart {
    border: 1.5px solid var(--color-border-dark);
    color: var(--color-text-primary);
    background-color: transparent;
}

.btn-cart:hover {
    background-color: var(--color-text-primary);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.btn-buy {
    background-color: var(--color-text-primary);
    color: var(--color-bg);
    border: 1.5px solid var(--color-border-dark);
}

.btn-buy::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.btn-buy:hover::after {
    left: 150%;
}

.btn-buy:hover {
    background-color: #222222;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 576px) {
    .product-modal-actions-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .product-modal-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .btn-out-of-stock {
        min-height: 56px;
        width: 100%;
    }
    .modal-action-btn {
        min-height: 56px;
        width: 100%;
        max-width: none;
        letter-spacing: 1.2px;
        font-size: 12px;
    }
    .modal-main-image-wrap .modal-wishlist-btn {
        top: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
    }
    .modal-main-image-wrap .modal-wishlist-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* --- 1-CLICK CHECKOUT MODAL --- */
.checkout-modal .checkout-modal-content {
    background-color: var(--color-bg);
    width: 95%;
    max-width: 480px;
    padding: 40px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border: none;
    overflow: hidden;
}

.checkout-modal-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    text-align: center;
}

.checkout-product-summary {
    display: flex;
    gap: 16px;
    padding: 16px;
    background-color: var(--color-bg-light);
    margin-bottom: 30px;
}

.checkout-product-img-wrap {
    width: 60px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #ffffff;
}

.checkout-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.checkout-product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkout-product-info h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.checkout-product-info #checkout-product-translation {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    margin-bottom: 6px;
}

.checkout-product-meta {
    display: flex;
    gap: 15px;
    font-size: 11px;
}

.checkout-product-meta span {
    color: var(--color-text-muted);
}

.checkout-product-meta strong {
    color: var(--color-text-primary);
}

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

.checkout-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkout-input-group label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.checkout-input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1.5px solid var(--color-border-light);
    font-size: 13px;
    font-weight: 500;
    background-color: transparent;
    transition: border-color 0.25s ease;
    color: var(--color-text-primary);
}

.checkout-input:focus {
    border-color: var(--color-border-dark);
}

.checkout-submit-btn {
    width: 100%;
    height: 52px;
    background-color: var(--color-text-primary);
    color: var(--color-bg);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.checkout-submit-btn:hover {
    background-color: #222222;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 576px) {
    .checkout-modal .checkout-modal-content {
        width: 100%;
        max-width: none;
        min-height: 100dvh;
        padding: 58px 18px 24px;
        overflow-y: auto;
    }

    .checkout-product-summary {
        padding: 12px;
    }

    .checkout-modal-title {
        font-size: 18px;
        letter-spacing: 1.3px;
    }
}

/* Success state */
.checkout-success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.4s ease-out;
}

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

.success-icon-wrap {
    width: 64px;
    height: 64px;
    background-color: #f0fdf4;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #16a34a;
    margin-bottom: 24px;
}

.success-icon-wrap svg {
    width: 32px;
    height: 32px;
}

.success-title {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.success-message {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.success-order-num {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-primary);
    padding: 8px 16px;
    background-color: var(--color-bg-light);
    margin-bottom: 30px;
}

.success-close-btn {
    padding: 12px 36px;
    background-color: var(--color-text-primary);
    color: var(--color-bg);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.success-close-btn:hover {
    background-color: #222222;
}

/* Descriptions */
.product-modal-description h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-primary);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 8px;
}

.product-description-text {
    font-size: 12px;
    line-height: 1.7;
    color: var(--color-text-muted);
    white-space: normal;
}

.product-description-text p,
.product-description-text div {
    margin-bottom: 8px;
}

.product-description-text p:last-child,
.product-description-text div:last-child {
    margin-bottom: 0;
}

.product-description-text ul,
.product-description-text ol {
    margin: 8px 0 8px 18px;
}

.product-description-text span[style*="background"] {
    padding: 0 2px;
}

/* Related products inside the quick-view modal */
.product-modal-related {
    margin-top: 54px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border-light);
}

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

.product-modal-related-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.product-modal-related-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--color-text-muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.7px;
    line-height: 1.4;
    text-transform: uppercase;
}

.product-modal-related h3 {
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.6px;
    line-height: 1.3;
    text-transform: uppercase;
    text-wrap: balance;
}

.product-modal-related-controls {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.modal-related-nav {
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border-light);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.modal-related-nav svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.8;
}

.modal-related-nav:not(:disabled):hover {
    border-color: var(--color-border-dark);
    background-color: var(--color-text-primary);
    color: var(--color-bg);
}

.modal-related-nav:disabled {
    cursor: default;
    opacity: 0.28;
}

.modal-related-nav:focus-visible,
.modal-related-card:focus-visible {
    outline: 2px solid var(--color-text-primary);
    outline-offset: 3px;
}

.product-modal-related-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 4);
    column-gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    padding: 3px 3px 8px;
    margin: -3px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.product-modal-related-track::-webkit-scrollbar {
    display: none;
}

.modal-related-card {
    min-width: 0;
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font: inherit;
    scroll-snap-align: start;
    text-align: left;
}

.modal-related-card__image-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #ffffff;
}

.modal-related-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: opacity 0.24s ease, transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-related-card:hover .modal-related-card__image {
    opacity: 0.9;
    transform: scale(1.035);
}

.modal-related-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 5px 7px;
    background: var(--color-text-primary);
    color: var(--color-bg);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

.modal-related-card__details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding-top: 13px;
}

.modal-related-card__category {
    margin-bottom: 5px;
    color: var(--color-text-muted);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.4px;
    line-height: 1.2;
    text-transform: uppercase;
}

.modal-related-card__title {
    width: 100%;
    min-height: 2.7em;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.85px;
    line-height: 1.35;
    text-transform: uppercase;
    text-wrap: pretty;
}

.modal-related-card__translation {
    width: 100%;
    margin-top: 5px;
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.75px;
    line-height: 1.4;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.modal-related-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25px;
    line-height: 1.4;
}

.modal-related-card__old-price {
    color: var(--color-text-muted);
    font-size: 9px;
    font-weight: 500;
    text-decoration: line-through;
}

.modal-related-card__price.is-out-of-stock {
    color: #b42318;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 900px) and (min-width: 769px) {
    .product-modal-related-track {
        grid-auto-columns: calc((100% - 32px) / 3);
    }
}

@media (max-width: 768px) {
    .product-modal-related {
        margin-top: 42px;
        padding-top: 24px;
    }

    .product-modal-related-header {
        margin-bottom: 16px;
    }

    .product-modal-related h3 {
        font-size: 14px;
    }

    .modal-related-nav {
        width: 40px;
        height: 40px;
    }

    .product-modal-related-track {
        width: calc(100% + 18px);
        grid-auto-columns: minmax(168px, 62vw);
        column-gap: 12px;
        padding-right: 18px;
    }

    .modal-related-card__title {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-modal-related-track {
        scroll-behavior: auto;
    }

    .modal-related-card__image {
        transition: none;
    }
}

/* --- NEWSLETTER SECTION --- */
.newsletter-section {
    padding: 100px 0;
    background-color: var(--color-bg);
    text-align: center;
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.newsletter-descr {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 35px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    position: relative;
    border-bottom: 1px solid var(--color-border-dark);
}

.newsletter-input {
    width: 100%;
    padding: 12px 0;
    font-size: 14px;
    background: transparent;
    border: none;
}

.newsletter-input::placeholder {
    color: #a0a0a0;
}

.newsletter-btn {
    width: 100%;
    padding: 15px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 1px solid var(--color-border-dark);
    background-color: var(--color-accent);
    color: var(--color-bg);
    transition: var(--transition-smooth);
}

.newsletter-btn:hover {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
}

/* --- FOOTER --- */
.site-footer {
    position: relative;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border-light);
    padding: 32px 0;
    overflow: hidden;
}

.site-footer > .container {
    position: relative;
    max-width: 1100px;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 48px;
    flex: 1;
    min-width: 0;
}

.footer-copyright {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.footer-bottom-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.footer-bottom-link {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-text-primary);
    text-decoration: none;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--color-border-light);
    border-radius: 30px;
    background-color: transparent;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom-link:hover {
    background-color: var(--color-bg-light);
    border-color: var(--color-text-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.footer-bottom-link:focus-visible,
.footer-social-icon:focus-visible {
    outline: 2px solid var(--color-text-primary);
    outline-offset: 3px;
}

.footer-nav-col {
    display: none;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-socials-under-logo {
    display: flex;
    gap: 12px;
}

.footer-social-icon {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    color: var(--color-text-primary);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.footer-social-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: var(--transition-smooth);
}

.footer-social-icon:hover {
    background-color: var(--color-text-primary);
    border-color: var(--color-text-primary);
    color: var(--color-bg);
    transform: translateY(-2px);
}

/* --- CONTACTS PAGE --- */
.contacts-header {
    position: static;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
}

.contacts-header-inner {
    width: min(1180px, calc(100% - 48px));
    height: 70px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.contacts-back-link {
    justify-self: start;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.contacts-back-link:hover {
    opacity: 0.58;
}

.contacts-wordmark {
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 850;
    letter-spacing: 6px;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.contacts-page {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    padding: 56px 0 96px;
    background-color: var(--color-bg);
    --contacts-surface-panel: #f7f7f7;
    --contacts-surface-block: #eeeeee;
    --contacts-surface-hover: #dedede;
    --contacts-text-secondary: #5f5f5f;
}

.contacts-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    position: relative;
}

.contacts-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: clamp(44px, 7vw, 92px);
    align-items: stretch;
    padding: 36px;
    background-color: var(--contacts-surface-block);
}

.contacts-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px 0 38px;
}

.contacts-title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: clamp(52px, 7.7vw, 96px);
    font-weight: 850;
    letter-spacing: -0.045em;
    line-height: 0.87;
    text-wrap: balance;
    text-transform: uppercase;
}

.contacts-title span {
    display: block;
}

.contacts-lead {
    max-width: 610px;
    margin: 30px 0 0;
    color: var(--color-text-primary);
    font-size: 15px;
    font-weight: 560;
    letter-spacing: 0.1px;
    line-height: 1.7;
    text-wrap: pretty;
}

.contacts-visual {
    position: relative;
    min-height: 360px;
    margin: 0;
    padding: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background-color: transparent;
}

.contacts-visual::before {
    content: '';
    position: absolute;
    z-index: -1;
    right: -38%;
    bottom: -72%;
    width: 128%;
    aspect-ratio: 1;
    background: url('/images/logo.png') center / contain no-repeat;
    opacity: 0.055;
    transform: rotate(24deg);
    mix-blend-mode: multiply;
}

.contacts-visual figcaption {
    position: absolute;
    z-index: 2;
    right: 28px;
    bottom: 24px;
    margin: 0;
    color: var(--contacts-text-secondary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-align: right;
    text-transform: uppercase;
}

.contacts-logo-wrap {
    position: relative;
    z-index: 1;
    width: clamp(176px, 18vw, 258px);
    display: grid;
    place-items: center;
    pointer-events: none;
    transform: rotate(-6deg);
}

.contacts-logo {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

.contacts-panel {
    margin-top: 0;
    padding: 14px;
    background-color: var(--contacts-surface-panel);
}

.contacts-channels {
    margin: 14px 0 0;
    padding: 34px;
    background-color: var(--contacts-surface-block);
}

.contacts-section-heading {
    margin-bottom: 22px;
}

.contacts-section-heading h2 {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    line-height: 1.4;
    text-transform: uppercase;
}

.contacts-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 64px);
}

.contacts-item {
    min-width: 0;
    min-height: 0;
    padding: 0;
    background-color: transparent;
}

.contacts-item-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.contacts-index,
.contacts-shortcut-number {
    color: var(--contacts-text-secondary);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 1.2px;
    line-height: 1;
}

.contacts-label {
    color: var(--color-text-primary);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.contacts-value {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow-wrap: anywhere;
    color: var(--color-text-primary);
    font-size: clamp(17px, 1.85vw, 24px);
    font-weight: 760;
    line-height: 1.2;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contacts-value > span {
    min-width: 0;
}

.contacts-value svg,
.contacts-shortcut-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-width: 1.5;
    transition: transform 0.2s ease;
}

.contacts-value:hover {
    opacity: 0.58;
}

.contacts-value:hover svg {
    transform: translate(3px, -3px);
}

.contacts-description {
    max-width: 31ch;
    margin: 15px 0 0;
    color: var(--contacts-text-secondary);
    font-size: 12px;
    font-weight: 560;
    line-height: 1.6;
    text-wrap: pretty;
}

.contacts-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 14px;
    margin-top: 14px;
}

.contacts-guide,
.contacts-shortcuts {
    padding: 34px;
}

.contacts-guide {
    background-color: var(--contacts-surface-block);
}

.contacts-shortcuts {
    background-color: var(--contacts-surface-block);
    color: var(--color-text-primary);
}

.contacts-guide h2,
.contacts-shortcuts h2 {
    max-width: 520px;
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 850;
    letter-spacing: -0.025em;
    line-height: 1.03;
    text-transform: uppercase;
    text-wrap: balance;
}

.contacts-shortcuts h2 {
    color: var(--color-text-primary);
}

.contacts-info-copy {
    max-width: 55ch;
    margin: 20px 0 0;
    color: var(--contacts-text-secondary);
    font-size: 13px;
    line-height: 1.7;
    text-wrap: pretty;
}

.contacts-checklist,
.contacts-shortcut-list {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.contacts-checklist {
    display: grid;
    gap: 22px;
}

.contacts-checklist li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 0;
}

.contacts-checklist li > span {
    padding-top: 4px;
    color: var(--contacts-text-secondary);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 1.2px;
}

.contacts-checklist p {
    margin: 0;
    color: var(--contacts-text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.contacts-checklist strong {
    display: block;
    margin-bottom: 3px;
    color: var(--color-text-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.contacts-shortcut-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contacts-shortcut-link {
    min-height: 62px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 0 16px;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.contacts-shortcut-link:hover {
    background-color: var(--contacts-surface-hover);
}

.contacts-shortcut-link:hover svg {
    transform: translateX(4px);
}

.contacts-shortcuts .contacts-shortcut-number {
    color: var(--contacts-text-secondary);
}

.contacts-back-link:focus-visible,
.contacts-wordmark:focus-visible,
.contacts-value:focus-visible,
.contacts-shortcut-link:focus-visible {
    outline: 2px solid var(--color-text-primary);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .contacts-back-link,
    .contacts-value,
    .contacts-value svg,
    .contacts-shortcut-link,
    .contacts-shortcut-link svg {
        transition: none;
    }
}

@media (max-width: 900px) {
    .contacts-hero {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-bottom: 0;
    }

    .contacts-hero-copy {
        padding: 18px 0 30px;
    }

    .contacts-visual {
        width: 100%;
        min-height: 292px;
        padding: 32px 24px;
    }

    .contacts-logo-wrap {
        width: min(40vw, 240px);
    }

    .contacts-panel {
        padding: 12px;
    }

    .contacts-list {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contacts-item,
    .contacts-item:first-child {
        min-height: 0;
        padding: 0;
    }

    .contacts-item-head {
        margin-bottom: 15px;
    }

    .contacts-value {
        font-size: clamp(20px, 4vw, 26px);
    }

    .contacts-description {
        max-width: 48ch;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 24px 0;
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        text-align: left;
    }
    .footer-bottom-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    .footer-bottom-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .footer-nav-col {
        display: none;
    }

    .contacts-header-inner {
        width: min(100% - 32px, 720px);
        height: var(--header-height);
    }

    .contacts-back-link {
        font-size: 10px;
        letter-spacing: 1.4px;
    }

    .contacts-wordmark {
        font-size: 17px;
        letter-spacing: 4px;
    }

    .contacts-page {
        padding: 30px 0 66px;
    }

    .contacts-container {
        width: min(100% - 32px, 720px);
    }

    .contacts-hero {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px 20px;
    }

    .contacts-hero-copy {
        padding: 8px 0 26px;
    }

    .contacts-title {
        margin-top: 0;
        font-size: clamp(48px, 15vw, 76px);
        letter-spacing: -0.05em;
    }

    .contacts-lead {
        margin-top: 24px;
        font-size: 13px;
        line-height: 1.65;
    }

    .contacts-visual {
        width: 100%;
        min-height: 280px;
        padding: 30px 20px;
    }

    .contacts-visual figcaption {
        max-width: 210px;
        line-height: 1.5;
    }

    .contacts-logo-wrap {
        width: min(56vw, 224px);
    }

    .contacts-panel {
        margin-top: 12px;
        padding: 10px;
    }

    .contacts-channels {
        margin: 10px 0 0;
        padding: 26px 20px;
    }

    .contacts-section-heading {
        display: block;
    }

    .contacts-list {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contacts-item,
    .contacts-item:first-child {
        min-height: 0;
        padding: 0;
    }

    .contacts-item-head {
        margin-bottom: 15px;
    }

    .contacts-value {
        font-size: clamp(18px, 6vw, 24px);
    }

    .contacts-value-email {
        overflow-wrap: normal;
        font-size: clamp(15px, 4.8vw, 20px);
        letter-spacing: -0.02em;
        white-space: nowrap;
    }

    .contacts-description {
        max-width: 46ch;
        margin-top: 10px;
    }

    .contacts-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 10px;
    }

    .contacts-guide,
    .contacts-shortcuts {
        padding: 26px 20px;
    }

    .contacts-guide h2,
    .contacts-shortcuts h2 {
        font-size: clamp(23px, 8vw, 32px);
    }
}

@media (hover: none), (max-width: 768px) {
    .hero-btn:hover,
    .btn-cart:hover,
    .btn-buy:hover,
    .product-card:hover .product-card-img,
    .size-opt-btn:hover,
    .product-card-wishlist-btn:hover,
    .modal-wishlist-btn:hover,
    .gallery-nav-btn:hover {
        transform: none;
        box-shadow: none;
    }

    input,
    select,
    textarea,
    .auth-input-field,
    .checkout-input,
    .checkout-field-input,
    .search-input-group input {
        font-size: 16px !important;
    }
}

/* --- OVERLAY MASK --- */
.site-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(2px);
}

.site-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* --- INTERACTIVE SLIDE-OUT DRAWER PANELS --- */
.drawer-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 450px;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.drawer-panel.open {
    right: 0;
}

/* Top-drawer (for search) */
.drawer-panel.panel-top {
    top: -100%;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 400px;
    border-bottom: 1px solid var(--color-border-light);
    transition: top 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.drawer-panel.panel-top.open {
    top: 0;
}

/* Left-drawer (for mobile menu) */
.drawer-panel.panel-left {
    left: -100%;
    right: auto;
    width: min(360px, 92vw);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.drawer-panel.panel-left.open {
    left: 0;
}

.drawer-panel.panel-right {
    right: -100%;
    left: auto;
    width: min(360px, 92vw);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.drawer-panel.panel-right.open {
    right: 0;
}

@media (max-width: 576px) {
    .drawer-panel {
        width: 100vw;
    }

    .drawer-panel.panel-left {
        width: 100vw;
    }

    .drawer-panel.panel-right {
        width: 100vw;
    }
}

/* Drawer contents */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border-bottom: 1px solid var(--color-border-light);
}

.drawer-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.drawer-close {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.drawer-close svg {
    width: 12px;
    height: 12px;
    stroke: var(--color-text-primary);
    stroke-width: 2px;
}

.drawer-close:hover {
    opacity: 1;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

/* Mobile Menu layout inside drawer */
.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-link {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav-action {
    gap: 16px;
}

.mobile-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background-color: var(--color-text-primary);
    color: var(--color-bg);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
}

.mobile-menu-secondary {
    display: grid;
    gap: 4px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border-light);
}

.mobile-menu-secondary-link {
    min-height: 36px;
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    line-height: 1.25;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.mobile-menu-secondary-link:hover {
    color: var(--color-text-primary);
}

@media (max-width: 768px) {
    .drawer-header {
        padding: 24px;
    }

    .drawer-body {
        padding: 24px;
    }

    .mobile-nav-link {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .mobile-menu-secondary {
        margin-top: 24px;
    }
}

@media (max-width: 380px) {
    .mobile-nav-link {
        font-size: 14px;
        letter-spacing: 1.5px;
    }
}

/* Empty drawer elements */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.empty-state-icon {
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-text-primary);
    stroke-width: 1.2px;
    fill: none;
}

.empty-state-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* Search drawer custom styles */
.search-form-wrap {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.search-input-group {
    display: flex;
    border-bottom: 1px solid var(--color-border-dark);
    padding: 10px 0;
    align-items: center;
}

.search-input-group input {
    flex: 1;
    font-size: 20px;
    font-weight: 400;
}

.search-submit-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-text-primary);
    fill: none;
    stroke-width: 1.5px;
}

/* Auth modal styling */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-input-group label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.auth-input {
    border: 1px solid var(--color-border-light);
    padding: 12px 15px;
    font-size: 13px;
    transition: var(--transition-fast);
}

.auth-input:focus {
    border-color: var(--color-border-dark);
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.auth-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--color-accent);
    color: var(--color-bg);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    border: 1px solid var(--color-border-dark);
    transition: var(--transition-smooth);
}

.auth-submit-btn:hover {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
}

.auth-secondary-btn {
    font-size: 11px;
    letter-spacing: 1px;
    text-align: center;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-top: 5px;
}

.auth-secondary-btn:hover {
    color: var(--color-text-primary);
}

/* --- LOAD MORE BUTTON --- */
.catalog-load-more {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 20px;
}

.load-more-btn {
    border: 1px solid var(--color-border-dark);
    padding: 16px 48px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background-color: transparent;
    color: var(--color-text-primary);
    transition: var(--transition-smooth);
}

.load-more-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

/* --- PRODUCT BADGES & PRICING --- */
.badge-container {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 12px;
    display: inline-block;
    text-align: center;
    line-height: 1;
}

.badge-new {
    background-color: #000000;
    color: #ffffff;
}

.badge-sale {
    background-color: #ffffff;
    color: #000000;
    border: 1.5px solid #000000;
}

.badge-sold {
    background-color: #f3f4f6;
    color: #9ca3af;
    border: 1.5px solid #e5e7eb;
}

/* Strikethrough old prices */
.old-price {
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

.current-price {
    font-weight: 700;
}

/* Out of stock modal actions */
.btn-out-of-stock {
    flex: 1;
    height: 56px;
    background-color: #f3f4f6;
    color: #9ca3af;
    border: 1.5px solid #e5e7eb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: not-allowed !important;
}

/* Modal wishlist button styling */
.modal-wishlist-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--color-text-primary);
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.modal-wishlist-btn:hover {
    background-color: #ffffff;
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.modal-wishlist-btn:hover svg {
    transform: scale(1.15);
}

.modal-wishlist-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-wishlist-btn svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 3.5px !important;
    transition: all 0.25s ease;
}

.modal-wishlist-btn.active svg path {
    fill: #ffb7c5 !important;
    stroke: #ffb7c5 !important;
}

.modal-wishlist-btn.active:hover svg path {
    fill: #ffb7c5 !important;
    stroke: #ffb7c5 !important;
}

/* Toast Notification Styling */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: auto;
    z-index: 10000;
    background-color: var(--color-text-primary); /* solid black */
    color: var(--color-bg); /* solid white */
    padding: 10px 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-close-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 11px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toast-close-btn:hover {
    opacity: 1;
}

@media (max-width: 576px) {
    .toast-notification {
        bottom: 20px;
        left: 20px;
        right: auto;
        max-width: calc(100vw - 40px);
        justify-content: space-between;
    }
}

/* Site Dialog Styling */
.site-dialog-root {
    position: fixed;
    inset: 0;
    z-index: 12000;
    pointer-events: none;
}

.site-dialog {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.site-dialog.open {
    opacity: 1;
    pointer-events: auto;
}

.site-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(4px);
}

.site-dialog-panel {
    position: relative;
    width: min(520px, 100%);
    background: var(--color-bg);
    border: 1.5px solid var(--color-border-dark);
    padding: 34px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    transform: translateY(16px);
    transition: transform 0.22s ease;
}

.site-dialog.open .site-dialog-panel {
    transform: translateY(0);
}

.site-dialog-kicker {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.site-dialog-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.25;
    margin-bottom: 14px;
}

.site-dialog-message {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-primary);
    margin-bottom: 28px;
}

.site-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.site-dialog-btn {
    min-width: 118px;
    height: 46px;
    border: 1.5px solid var(--color-border-dark);
    padding: 0 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.site-dialog-btn-primary {
    background: var(--color-text-primary);
    color: var(--color-bg);
}

.site-dialog-btn-primary:hover {
    opacity: 0.86;
}

.site-dialog-btn-secondary {
    background: var(--color-bg);
    color: var(--color-text-primary);
}

.site-dialog-btn-secondary:hover {
    background: var(--color-bg-light);
}

@media (max-width: 576px) {
    .site-dialog {
        align-items: flex-end;
        padding: 12px;
    }

    .site-dialog-panel {
        padding: 26px 20px 20px;
    }

    .site-dialog-actions {
        flex-direction: column-reverse;
    }

    .site-dialog-btn {
        width: 100%;
    }
}

/* --- WISHLIST CARD BUTTON & DRAWER LIST --- */
.product-card-wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: var(--color-text-primary);
    padding: 0;
}

.product-card-wishlist-btn:hover {
    background: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-card-wishlist-btn svg {
    width: 20px;
    height: 20px;
    transition: all 0.25s ease;
    fill: none;
    stroke: var(--color-text-primary);
    stroke-width: 3.5px;
}

.product-card-wishlist-btn.active svg {
    fill: #ffb7c5;
    stroke: #ffb7c5;
}

/* Custom styling for wishlist item in drawer */
.wishlist-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 15px;
}

.wishlist-item-img-wrap {
    width: 60px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #fff;
}

.wishlist-item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.wishlist-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wishlist-item-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
    line-height: 1.3;
}

.wishlist-item-translation {
    font-size: 10px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.wishlist-item-price {
    font-size: 12px;
    font-weight: 700;
}

.remove-wishlist-item {
    align-self: center;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s;
    background: none;
    border: none;
    padding: 5px;
}

.remove-wishlist-item:hover {
    opacity: 1;
}

.remove-wishlist-item svg {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
}

.wishlist-add-cart-btn {
    width: 100%;
    min-height: 34px;
    margin-top: 10px;
    border: 1px solid var(--color-border-dark);
    background: var(--color-text-primary);
    color: var(--color-bg);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    line-height: 1;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.wishlist-add-cart-btn:hover {
    background: var(--color-bg);
    color: var(--color-text-primary);
}

/* --- HEADER COUNTERS (Phase 14) --- */
.nav-icon-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-counter {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    padding: 0;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* Footer Telegram Bot Button (Phase 21) */
.footer-bot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 220px;
    height: 46px;
    border: 1.5px solid var(--color-text-primary);
    background-color: transparent;
    color: var(--color-text-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    margin-top: 15px;
    cursor: pointer;
}

.footer-bot-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: var(--transition-fast);
}

.footer-bot-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

.footer-bot-btn:hover svg {
    fill: currentColor;
}

/* --- DEDICATED CHECKOUT PAGE STYLING --- */
/* (Note: Page-specific styling for /checkout and /checkout/success is fully self-contained inside the respective view templates to prevent global stylesheet bloating) */


/* --- SIZE CHART MODAL STYLING --- */
.sizes-modal-content {
    max-width: 800px;
    padding: 40px;
}

.sizes-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.sizes-modal-header h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: var(--color-text-primary);
}

.sizes-modal-header p {
    font-size: 11px;
    color: var(--color-text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sizes-tab-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 1px;
}

.sizes-tab-btn {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 24px;
    color: var(--color-text-muted);
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    cursor: pointer;
}

.sizes-tab-btn:hover {
    color: var(--color-text-primary);
}

.sizes-tab-btn.active {
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-text-primary);
}

.sizes-tab-content {
    display: none;
}

.sizes-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.sizes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.sizes-visual {
    background-color: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sizes-visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.sizes-table-wrap {
    display: flex;
    flex-direction: column;
}

.sizes-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    text-align: center;
    font-size: 13px;
}

.sizes-table th {
    padding: 10px 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--color-text-primary);
    color: var(--color-text-primary);
}

.sizes-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-primary);
}

.sizes-table td.size-name {
    font-weight: 700;
}

.sizes-legend {
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.sizes-legend p {
    margin-bottom: 4px;
}

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

@media (max-width: 768px) {
    .sizes-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .sizes-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* --- LEGAL CONSENT CONTROLS --- */
.auth-agreement {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: -4px 0 20px;
}

.auth-agreement input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--color-text-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.auth-agreement label {
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.45;
}

.auth-agreement a {
    color: var(--color-text-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.auth-agreement input:focus-visible,
.cookie-consent-btn:focus-visible,
.cookie-consent-link:focus-visible,
.cookie-settings-button:focus-visible {
    outline: 2px solid var(--color-text-primary);
    outline-offset: 3px;
}

.cookie-consent-banner {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 40000;
    width: min(700px, calc(100vw - 48px));
    border: 1.5px solid var(--color-border-dark);
    background: var(--color-bg);
    color: var(--color-text-primary);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.cookie-consent-banner[hidden] {
    display: none;
}

.cookie-consent-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-consent-banner.is-hiding {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
}

.cookie-consent-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
}

.cookie-consent-title {
    display: block;
    margin-bottom: 5px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;
}

.cookie-consent-text {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
}

.cookie-consent-link {
    color: var(--color-text-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.cookie-consent-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cookie-consent-btn {
    min-width: 0;
    min-height: 44px;
    padding: 11px 18px;
    border: 1.5px solid var(--color-border-dark);
    background: var(--color-bg);
    color: var(--color-text-primary);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.2px;
    line-height: 1.2;
    text-transform: uppercase;
    transition: opacity 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.cookie-consent-btn-primary {
    background: var(--color-text-primary);
    color: var(--color-bg);
}

.cookie-consent-btn-secondary:hover {
    background: var(--color-bg-light);
}

.cookie-consent-btn:hover {
    opacity: 0.86;
}

.cookie-settings-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 8px;
    padding: 10px 16px;
    border: 1.5px solid var(--color-border-dark);
    background: var(--color-bg);
    color: var(--color-text-primary);
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}

@media (max-width: 576px) {
    .cookie-consent-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
    }

    .cookie-consent-inner {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
    }

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

    .cookie-consent-btn-primary {
        order: -1;
    }

    .cookie-consent-btn {
        width: 100%;
    }
}

/* --- PROFILE / LOYALTY CABINET --- */
.profile-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 52px 0 80px;
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: end;
    padding: 0 0 34px;
    border-bottom: 1.5px solid var(--color-border-dark);
}

.profile-kicker,
.profile-stat-label,
.profile-panel-heading span,
.profile-tier-topline span,
.profile-order-number {
    display: block;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.8px;
    line-height: 1.2;
    text-transform: uppercase;
}

.profile-title {
    margin: 12px 0 10px;
    font-size: clamp(32px, 6vw, 68px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.95;
    text-transform: uppercase;
    text-wrap: balance;
}

.profile-email {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    word-break: break-word;
}

.profile-level-lockup {
    min-width: 190px;
    border: 1.5px solid var(--color-border-dark);
    padding: 18px 20px;
    text-align: right;
}

.profile-level-code {
    display: block;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.profile-level-rate {
    display: block;
    margin-top: 7px;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-left: 1px solid var(--color-border-light);
    border-top: 1px solid var(--color-border-light);
    margin: 28px 0;
}

.profile-stat {
    min-height: 118px;
    padding: 22px;
    border-right: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.profile-stat strong {
    display: block;
    margin-top: 14px;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.72fr);
    gap: 28px;
    align-items: start;
}

.profile-main-column,
.profile-side-column {
    display: grid;
    gap: 28px;
}

.profile-panel {
    border: 1px solid var(--color-border-light);
    background: var(--color-bg);
    padding: 24px;
}

.profile-panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}

.profile-panel-heading strong {
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.profile-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 750;
    margin-bottom: 10px;
}

.profile-progress-track {
    width: 100%;
    height: 12px;
    border: 1px solid var(--color-border-dark);
    background: var(--color-bg-light);
    overflow: hidden;
}

.profile-progress-fill {
    height: 100%;
    min-width: 0;
    background: var(--color-text-primary);
    transition: width 0.4s ease;
}

.profile-progress-note {
    margin: 16px 0 0;
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 750;
}

.profile-tier-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.profile-tier {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border-light);
    background: var(--color-bg-light);
    padding: 18px;
    opacity: 0.72;
}

.profile-tier.is-unlocked {
    border-color: var(--color-border-dark);
    background: var(--color-bg);
    opacity: 1;
}

.profile-tier-topline {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: baseline;
    margin-bottom: 16px;
}

.profile-tier-topline strong {
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.profile-tier-bonus {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.1;
}

.profile-tier-perks {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.profile-tier-perks li::before {
    content: "+";
    margin-right: 8px;
    color: var(--color-text-primary);
    font-weight: 850;
}

.profile-privilege-list,
.profile-data-list {
    display: grid;
    gap: 10px;
}

.profile-privilege {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--color-border-light);
    padding: 14px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 750;
}

.profile-privilege.is-open {
    border-color: var(--color-border-dark);
    color: var(--color-text-primary);
}

.profile-privilege strong {
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-data-list {
    margin: 0;
}

.profile-data-list div {
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 12px;
}

.profile-data-list dt {
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.profile-data-list dd {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
    word-break: break-word;
}

.profile-action-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    border: 1.5px solid var(--color-border-dark);
    background: var(--color-text-primary);
    color: var(--color-bg);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.18s ease;
}

.profile-action-link:hover {
    opacity: 0.86;
}

.profile-orders-panel {
    margin-top: 28px;
}

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

.profile-order {
    border: 1px solid var(--color-border-light);
    padding: 18px;
}

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

.profile-order-main time {
    display: block;
    margin-top: 5px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 650;
}

.profile-order-status {
    border: 1px solid var(--color-border-light);
    padding: 7px 10px;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-order-status-cancelled {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

.profile-order-main strong {
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.profile-order-items,
.profile-order-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.profile-order-items span,
.profile-order-foot span {
    border: 1px solid var(--color-border-light);
    padding: 7px 9px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.3;
}

.profile-order-foot span {
    color: var(--color-text-primary);
}

.profile-empty {
    border: 1px solid var(--color-border-light);
    padding: 28px;
    text-align: center;
}

.profile-empty h2 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.profile-empty p {
    max-width: 520px;
    margin: 0 auto 6px;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.6;
}

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

    .profile-level-lockup {
        width: 100%;
        text-align: left;
    }

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

@media (max-width: 576px) {
    .profile-page {
        width: min(100% - 28px, 1180px);
        padding: 34px 0 58px;
    }

    .profile-site-header .header-inner {
        grid-template-columns: 54px minmax(0, 1fr) 54px !important;
    }

    .profile-site-header .utility-text {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .profile-hero {
        gap: 20px;
        padding-bottom: 24px;
    }

    .profile-level-code {
        font-size: 24px;
    }

    .profile-stat-grid,
    .profile-tier-list {
        grid-template-columns: 1fr;
    }

    .profile-stat {
        min-height: 96px;
        padding: 18px;
    }

    .profile-panel {
        padding: 18px;
    }

    .profile-panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .profile-tier {
        min-height: 0;
    }

    .profile-order-main {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .profile-order-status,
    .profile-order-main strong {
        justify-self: start;
    }
}

/* --- PROFILE CLARITY PASS --- */
.profile-page-v2 {
    padding-top: 44px;
}

.profile-v2-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    padding-bottom: 28px;
    border-bottom: 1.5px solid var(--color-border-dark);
}

.profile-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    min-height: 42px;
    border: 1.5px solid var(--color-border-dark);
    color: var(--color-text-primary);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.6px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.profile-secondary-link:hover {
    background: var(--color-text-primary);
    color: var(--color-bg);
}

.profile-v2-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
    gap: 22px;
    margin: 28px 0 22px;
    align-items: stretch;
}

.profile-v2-status,
.profile-v2-panel {
    border: 1px solid var(--color-border-light);
    background: var(--color-bg);
}

.profile-v2-status {
    padding: 28px;
}

.profile-v2-status-top,
.profile-v2-next,
.profile-v2-panel-head,
.profile-v2-tier-title,
.profile-v2-order-top,
.profile-v2-order-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.profile-block-label {
    display: block;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.6px;
    line-height: 1.2;
    text-transform: uppercase;
}

.profile-v2-level {
    display: block;
    margin-top: 10px;
    font-size: clamp(52px, 7vw, 92px);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 0.86;
}

.profile-v2-rate {
    min-width: 116px;
    border: 1.5px solid var(--color-border-dark);
    padding: 14px 16px;
    text-align: right;
}

.profile-v2-rate strong {
    display: block;
    font-size: 30px;
    font-weight: 950;
    line-height: 1;
}

.profile-v2-rate span {
    display: block;
    margin-top: 6px;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.profile-v2-next {
    align-items: flex-end;
    margin: 36px 0 14px;
}

.profile-v2-next-copy p {
    max-width: 520px;
    margin: 8px 0 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    text-wrap: pretty;
}

.profile-v2-progress-value {
    color: var(--color-text-muted);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.profile-progress-track-v2 {
    height: 14px;
}

.profile-v2-progress-scale {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 10px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 750;
}

.profile-v2-numbers {
    display: grid;
    gap: 12px;
}

.profile-v2-number {
    display: grid;
    align-content: start;
    min-height: 112px;
    border: 1px solid var(--color-border-light);
    background: var(--color-bg-light);
    padding: 18px;
}

.profile-v2-number span {
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.4px;
    line-height: 1.2;
    text-transform: uppercase;
}

.profile-v2-number strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 950;
    line-height: 1;
}

.profile-v2-number small {
    display: block;
    margin-top: 9px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.profile-v2-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 22px;
    margin-bottom: 22px;
}

.profile-v2-content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
    gap: 22px;
    align-items: start;
}

.profile-v2-panel {
    padding: 22px;
}

.profile-v2-panel-head {
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 18px;
}

.profile-v2-panel-head strong {
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-v2-perk-list {
    display: grid;
    gap: 10px;
}

.profile-v2-perk {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--color-border-light);
    background: var(--color-bg-light);
    padding: 14px;
    color: var(--color-text-muted);
}

.profile-v2-perk.is-open {
    border-color: var(--color-border-dark);
    background: var(--color-bg);
    color: var(--color-text-primary);
}

.profile-v2-perk span {
    font-size: 13px;
    font-weight: 760;
    line-height: 1.3;
}

.profile-v2-perk strong {
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-v2-note {
    margin: 16px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.55;
}

.profile-v2-tier-list {
    display: grid;
    gap: 12px;
}

.profile-v2-tier {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border: 1px solid var(--color-border-light);
    background: var(--color-bg-light);
    padding: 14px;
    opacity: 0.74;
}

.profile-v2-tier.is-unlocked {
    border-color: var(--color-border-dark);
    background: var(--color-bg);
    opacity: 1;
}

.profile-v2-tier-marker {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--color-border-dark);
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.profile-v2-tier-title {
    align-items: baseline;
}

.profile-v2-tier-title strong {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.profile-v2-tier-title span {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.profile-v2-tier p {
    margin: 7px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

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

.profile-v2-order {
    border: 1px solid var(--color-border-light);
    padding: 16px;
}

.profile-v2-order-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
}

.profile-v2-order-top time {
    display: block;
    margin-top: 5px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 650;
}

.profile-v2-order-top > strong {
    font-size: 18px;
    font-weight: 950;
    white-space: nowrap;
}

.profile-v2-order-items,
.profile-v2-order-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-v2-order-items {
    margin-top: 14px;
}

.profile-v2-order-bottom {
    justify-content: flex-start;
    margin-top: 10px;
}

.profile-v2-order-items span,
.profile-v2-order-bottom span {
    border: 1px solid var(--color-border-light);
    padding: 7px 9px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.3;
}

.profile-v2-order-bottom span {
    color: var(--color-text-primary);
}

.profile-data-list-v2 div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-empty-v2 .profile-action-link {
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 980px) {
    .profile-v2-summary,
    .profile-v2-grid,
    .profile-v2-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .profile-page-v2 {
        padding-top: 30px;
    }

    .profile-v2-head,
    .profile-v2-status-top,
    .profile-v2-next,
    .profile-v2-panel-head {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-v2-head {
        gap: 18px;
    }

    .profile-secondary-link {
        width: 100%;
    }

    .profile-v2-status,
    .profile-v2-panel {
        padding: 18px;
    }

    .profile-v2-level {
        font-size: 52px;
    }

    .profile-v2-rate {
        width: 100%;
        text-align: left;
    }

    .profile-v2-next {
        margin-top: 26px;
    }

    .profile-v2-next-copy p {
        font-size: 15px;
    }

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

    .profile-v2-tier-title,
    .profile-v2-order-top {
        grid-template-columns: 1fr;
    }

    .profile-v2-order-top {
        gap: 10px;
    }

    .profile-v2-order-top .profile-order-status,
    .profile-v2-order-top > strong {
        justify-self: start;
    }
}

/* --- CUSTOMER ACCOUNT DASHBOARD --- */
.account-dashboard-body {
    --account-black: #111111;
    --account-ink: #171717;
    --account-muted: #707070;
    --account-line: #dedede;
    --account-line-strong: #b9b9b9;
    --account-canvas: #f3f3f1;
    --account-surface: #ffffff;
    --account-surface-muted: #f7f7f6;
    --account-positive: #18794e;
    min-height: 100dvh;
    background: var(--account-canvas);
    color: var(--account-ink);
}

.account-icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.account-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 12px 16px;
    background: var(--account-surface);
    color: var(--account-black);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateY(-160%);
    transition: transform 180ms ease-out;
}

.account-skip-link:focus {
    transform: translateY(0);
}

.account-shell {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    min-height: 100dvh;
}

.account-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100dvh;
    overflow-y: auto;
    background: var(--account-black);
    color: #ffffff;
}

.account-sidebar-top {
    min-width: 0;
}

.account-brand {
    display: block;
    min-height: 104px;
    padding: 28px 26px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: inherit;
    text-decoration: none;
}

.account-brand-name,
.account-brand-mode {
    display: block;
    text-transform: uppercase;
}

.account-brand-name {
    font-size: 22px;
    font-weight: 950;
    letter-spacing: 0.32em;
    line-height: 1;
}

.account-brand-mode {
    margin-top: 11px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.2em;
    line-height: 1;
}

.account-identity {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 22px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.account-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.account-identity-copy {
    min-width: 0;
}

.account-identity-copy strong,
.account-identity-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-identity-copy strong {
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.account-identity-copy span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
}

.account-level-chip {
    min-width: 44px;
    padding: 6px 7px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: rgba(255, 255, 255, 0.72);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1;
    text-align: center;
}

.account-nav {
    display: grid;
    gap: 4px;
    padding: 18px 12px;
}

.account-nav-link,
.account-sidebar-action {
    min-height: 48px;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease;
}

.account-nav-link {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-nav-link:hover,
.account-nav-link.is-active,
.account-sidebar-action:hover {
    background: #ffffff;
    color: var(--account-black);
}

.account-nav-link.is-active {
    font-weight: 900;
}

.account-nav-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-width: 1.6;
}

.account-nav-index,
.account-nav-count {
    color: inherit;
    font-size: 8px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.account-nav-count {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    border: 1px solid currentColor;
}

.account-sidebar-actions {
    display: grid;
    gap: 1px;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.account-sidebar-actions form {
    margin: 0;
}

.account-sidebar-action {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
}

.account-logout {
    color: rgba(255, 255, 255, 0.46);
}

.account-workspace {
    min-width: 0;
}

.account-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(20px, 3vw, 46px);
    border-bottom: 1px solid var(--account-line);
    background: rgba(243, 243, 241, 0.96);
}

.account-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--account-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.account-breadcrumb a {
    color: var(--account-black);
    text-decoration: none;
}

.account-breadcrumb strong {
    color: var(--account-black);
}

.account-session {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--account-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-session-dot {
    width: 7px;
    height: 7px;
    background: var(--account-positive);
}

.account-main {
    width: min(100%, 1500px);
    margin: 0 auto;
    padding: clamp(30px, 4vw, 58px) clamp(20px, 3vw, 46px) 72px;
}

.account-observed-section {
    scroll-margin-top: 76px;
}

.account-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 34px;
}

.account-kicker,
.account-panel-index {
    display: block;
    color: var(--account-muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.account-page-head h1 {
    max-width: 820px;
    margin: 10px 0 0;
    font-size: clamp(42px, 5.4vw, 76px);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 0.92;
    text-wrap: balance;
}

.account-page-head p {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--account-muted);
    font-size: 14px;
    font-weight: 560;
    line-height: 1.55;
}

.account-primary-action,
.account-inline-action,
.account-secondary-action {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border: 1px solid var(--account-black);
    color: var(--account-black);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease;
}

.account-primary-action {
    min-width: 176px;
    padding: 0 16px;
    background: var(--account-black);
    color: #ffffff;
}

.account-primary-action svg,
.account-inline-action svg,
.account-secondary-action svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-width: 1.8;
    transition: transform 180ms ease-out;
}

.account-primary-action:hover,
.account-secondary-action:hover {
    background: #ffffff;
    color: var(--account-black);
}

.account-inline-action:hover {
    background: var(--account-black);
    color: #ffffff;
}

.account-primary-action:hover svg,
.account-inline-action:hover svg,
.account-secondary-action:hover svg {
    transform: translateX(3px);
}

.account-metrics {
    display: grid;
    grid-template-columns: 1.15fr repeat(3, 1fr);
    border-top: 1px solid var(--account-black);
    border-right: 1px solid var(--account-line);
    border-bottom: 1px solid var(--account-line);
    background: var(--account-surface);
}

.account-metric {
    min-height: 176px;
    padding: 20px;
    border-left: 1px solid var(--account-line);
}

.account-metric-level {
    background: var(--account-black);
    color: #ffffff;
    border-left-color: var(--account-black);
}

.account-metric-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--account-muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.account-metric-level .account-metric-topline {
    color: rgba(255, 255, 255, 0.48);
}

.account-level-display {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.account-level-display strong {
    font-size: clamp(66px, 7vw, 104px);
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.08em;
    line-height: 0.74;
}

.account-level-display span {
    padding-bottom: 2px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.account-metric-value {
    display: block;
    margin-top: 38px;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.045em;
    line-height: 1;
}

.account-metric small {
    display: block;
    margin-top: 13px;
    color: var(--account-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.4;
}

.account-command-grid,
.account-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.82fr);
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.account-panel {
    border: 1px solid var(--account-line);
    background: var(--account-surface);
}

.account-loyalty,
.account-perks,
.account-orders,
.account-delivery {
    padding: clamp(20px, 2.2vw, 30px);
}

.account-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--account-line);
}

.account-panel-head h2 {
    margin: 8px 0 0;
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1;
}

.account-rate-block {
    min-width: 96px;
    text-align: right;
}

.account-rate-block strong,
.account-rate-block span {
    display: block;
}

.account-rate-block strong {
    font-size: 34px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    line-height: 0.9;
}

.account-rate-block span {
    margin-top: 7px;
    color: var(--account-muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.account-loyalty-core {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 34px 0 18px;
}

.account-progress-copy span,
.account-order-label {
    display: block;
    color: var(--account-muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.account-progress-copy strong {
    display: block;
    max-width: 600px;
    margin-top: 8px;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.35;
    text-wrap: pretty;
}

.account-progress-percent {
    color: var(--account-muted);
    font-size: 26px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.account-progress-track {
    position: relative;
    height: 12px;
    overflow: hidden;
    border: 1px solid var(--account-black);
    background: var(--account-surface-muted);
}

.account-progress-track span {
    display: block;
    height: 100%;
    background: var(--account-black);
}

.account-progress-scale {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 9px;
    color: var(--account-muted);
    font-size: 9px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.account-levels {
    margin-top: 30px;
    border-top: 1px solid var(--account-line);
}

.account-level-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 48px 64px;
    gap: 14px;
    align-items: center;
    min-height: 64px;
    border-bottom: 1px solid var(--account-line);
    color: var(--account-muted);
}

.account-level-row.is-unlocked {
    color: var(--account-black);
}

.account-level-number {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid currentColor;
    font-size: 9px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.account-level-copy strong,
.account-level-copy span {
    display: block;
}

.account-level-copy strong {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.account-level-copy span {
    margin-top: 3px;
    font-size: 9px;
    font-weight: 650;
}

.account-level-rate,
.account-level-state {
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-align: right;
    text-transform: uppercase;
}

.account-panel-head-compact {
    align-items: center;
}

.account-panel-counter {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 34px;
    border: 1px solid var(--account-line-strong);
    font-size: 9px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
}

.account-perk-list {
    display: grid;
}

.account-perk {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    min-height: 78px;
    padding: 14px 0;
    border-bottom: 1px solid var(--account-line);
    color: var(--account-muted);
}

.account-perk-state {
    width: 8px;
    height: 8px;
    border: 1px solid currentColor;
}

.account-perk.is-open {
    color: var(--account-black);
}

.account-perk.is-open .account-perk-state {
    background: var(--account-black);
}

.account-perk div strong,
.account-perk div span {
    display: block;
}

.account-perk div strong {
    color: var(--account-ink);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
}

.account-perk div span {
    margin-top: 4px;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.35;
}

.account-perk b {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: right;
    text-transform: uppercase;
}

.account-perk-note {
    margin: 20px 0 0;
    padding: 15px;
    background: var(--account-surface-muted);
    color: var(--account-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.55;
}

.account-detail-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.82fr);
}

.account-empty {
    display: grid;
    justify-items: start;
    min-height: 304px;
    align-content: center;
    padding: clamp(26px, 5vw, 62px);
    background:
        linear-gradient(var(--account-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--account-line) 1px, transparent 1px);
    background-color: var(--account-surface);
    background-size: 32px 32px;
}

.account-empty-code {
    color: var(--account-muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.account-empty h3 {
    margin: 18px 0 0;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1;
}

.account-empty p {
    max-width: 520px;
    margin: 14px 0 0;
    color: var(--account-muted);
    font-size: 12px;
    font-weight: 560;
    line-height: 1.55;
}

.account-inline-action {
    min-width: 204px;
    margin-top: 24px;
    padding: 0 15px;
    background: var(--account-surface);
}

.account-order-list {
    display: grid;
}

.account-order {
    padding: 20px 0;
    border-bottom: 1px solid var(--account-line);
    content-visibility: auto;
    contain-intrinsic-size: 0 164px;
}

.account-order:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

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

.account-order-main > div > strong,
.account-order-main time {
    display: block;
}

.account-order-main > div > strong {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.account-order-main time {
    margin-top: 3px;
    color: var(--account-muted);
    font-size: 9px;
    font-weight: 650;
}

.account-order-status {
    padding: 7px 9px;
    border: 1px solid var(--account-line-strong);
    color: var(--account-muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.account-order-status--cancelled {
    border-color: #b42318;
    color: #b42318;
}

.account-order-status--delivered {
    border-color: var(--account-positive);
    color: var(--account-positive);
}

.account-order-total {
    min-width: 78px;
    font-size: 16px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.account-order-items,
.account-order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.account-order-items {
    margin-top: 14px;
}

.account-order-meta {
    margin-top: 8px;
}

.account-order-items span,
.account-order-meta span {
    padding: 7px 9px;
    border: 1px solid var(--account-line);
    color: var(--account-muted);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.35;
}

.account-order-meta span {
    color: var(--account-ink);
}

.account-side-stack {
    display: grid;
    gap: 18px;
}

.account-data-list {
    margin: 0;
}

.account-data-list div {
    padding: 17px 0;
    border-bottom: 1px solid var(--account-line);
}

.account-data-list dt {
    color: var(--account-muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.account-data-list dd {
    margin: 6px 0 0;
    overflow-wrap: anywhere;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.account-secondary-action {
    width: 100%;
    margin-top: 22px;
    padding: 0 15px;
    background: var(--account-black);
    color: #ffffff;
}

.account-support-panel {
    padding: 24px;
    background: var(--account-black);
    color: #ffffff;
}

.account-support-panel span,
.account-support-panel strong,
.account-support-panel a {
    display: block;
}

.account-support-panel span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.account-support-panel strong {
    margin-top: 12px;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.3;
}

.account-support-panel a {
    margin-top: 22px;
    color: #ffffff;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-underline-offset: 5px;
    text-transform: uppercase;
}

.account-dashboard-body a:focus-visible,
.account-dashboard-body button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 1180px) {
    .account-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .account-brand {
        padding-right: 20px;
        padding-left: 20px;
    }

    .account-identity {
        grid-template-columns: 34px minmax(0, 1fr);
        padding-right: 14px;
        padding-left: 14px;
    }

    .account-avatar {
        width: 34px;
        height: 34px;
    }

    .account-level-chip {
        display: none;
    }

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

    .account-metric:nth-child(3),
    .account-metric:nth-child(4) {
        border-top: 1px solid var(--account-line);
    }

    .account-command-grid,
    .account-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 800px) {
    .account-shell {
        display: block;
    }

    .account-sidebar {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        overflow: hidden;
    }

    .account-brand {
        min-height: 74px;
        padding: 20px;
    }

    .account-brand-name {
        font-size: 18px;
    }

    .account-brand-mode {
        margin-top: 8px;
    }

    .account-identity {
        position: absolute;
        top: 15px;
        right: 18px;
        width: min(48vw, 250px);
        padding: 0;
        border: 0;
    }

    .account-avatar {
        border-color: rgba(255, 255, 255, 0.34);
    }

    .account-nav {
        display: flex;
        gap: 1px;
        overflow-x: auto;
        padding: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        scrollbar-width: thin;
    }

    .account-nav-link {
        flex: 0 0 auto;
        grid-template-columns: 16px auto;
        min-height: 50px;
        padding: 0 15px;
    }

    .account-nav-index,
    .account-nav-count {
        display: none;
    }

    .account-nav-icon {
        width: 16px;
        height: 16px;
    }

    .account-sidebar-actions {
        display: none;
    }

    .account-topbar {
        min-height: 50px;
        padding: 0 20px;
    }

    .account-session {
        display: none;
    }

    .account-main {
        padding-top: 34px;
    }
}

@media (max-width: 560px) {
    .account-brand {
        padding-right: 16px;
        padding-left: 16px;
    }

    .account-identity {
        right: 16px;
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 9px;
        width: min(50vw, 210px);
    }

    .account-avatar {
        width: 32px;
        height: 32px;
    }

    .account-identity-copy strong {
        font-size: 10px;
    }

    .account-identity-copy span {
        font-size: 8px;
    }

    .account-breadcrumb span:nth-of-type(2),
    .account-breadcrumb strong {
        display: none;
    }

    .account-main {
        padding: 28px 14px 48px;
    }

    .account-page-head {
        display: grid;
        gap: 22px;
        margin-bottom: 28px;
    }

    .account-page-head h1 {
        font-size: clamp(38px, 12.5vw, 54px);
    }

    .account-page-head p {
        margin-top: 14px;
        font-size: 13px;
    }

    .account-primary-action {
        width: 100%;
    }

    .account-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .account-metric {
        min-height: 146px;
        padding: 15px;
    }

    .account-level-display {
        margin-top: 21px;
    }

    .account-level-display strong {
        font-size: 64px;
    }

    .account-level-display span {
        display: none;
    }

    .account-metric-value {
        margin-top: 30px;
        font-size: 26px;
    }

    .account-metric small {
        font-size: 9px;
    }

    .account-command-grid,
    .account-detail-grid {
        gap: 12px;
        margin-top: 12px;
    }

    .account-loyalty,
    .account-perks,
    .account-orders,
    .account-delivery {
        padding: 18px;
    }

    .account-panel-head {
        gap: 16px;
        padding-bottom: 18px;
    }

    .account-panel-head h2 {
        font-size: 22px;
    }

    .account-loyalty-core {
        align-items: flex-start;
        margin-top: 26px;
    }

    .account-progress-copy strong {
        font-size: 14px;
    }

    .account-progress-percent {
        font-size: 20px;
    }

    .account-level-row {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .account-level-state {
        display: none;
    }

    .account-perk {
        grid-template-columns: 8px minmax(0, 1fr);
    }

    .account-perk b {
        grid-column: 2;
        text-align: left;
    }

    .account-empty {
        min-height: 320px;
        padding: 34px 22px;
        background-size: 24px 24px;
    }

    .account-order-main {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .account-order-status,
    .account-order-total {
        justify-self: start;
    }

    .account-order-total {
        text-align: left;
    }

    .account-support-panel {
        padding: 20px;
    }
}

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