/*
 * COLORS / OFSPACE
 * A single, mobile-first presentation layer inspired by the supplied monochrome
 * commerce reference. This file intentionally loads last and normalises the
 * legacy storefront without changing its Laravel behaviour.
 */
:root {
    --of-bg: #e9e9e7;
    --of-surface: #ffffff;
    --of-soft: #f4f4f2;
    --of-ink: #111216;
    --of-ink-2: #343538;
    --of-muted: #727477;
    --of-line: #dededb;
    --of-line-strong: #c9c9c5;
    --of-accent: #b8addf;
    --of-positive: #2e7357;
    --of-danger: #9d443e;
    --of-radius-xs: 12px;
    --of-radius-sm: 16px;
    --of-radius: 24px;
    --of-radius-lg: 32px;
    --of-pill: 999px;
    --of-shadow: 0 18px 55px rgba(17, 18, 22, .08);
    --of-shadow-soft: 0 8px 28px rgba(17, 18, 22, .055);
    --of-container: min(1380px, calc(100% - 32px));
}

html {
    color-scheme: light;
    background: var(--of-bg);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    color: var(--of-ink);
    background: var(--of-bg);
    font-family: "IRANYekanX", "Vazirmatn", Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::selection { color: #fff; background: var(--of-ink); }

.container,
.container-wide { width: var(--of-container); margin-inline: auto; }

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

a,
button { transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease; }

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

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--of-accent) 85%, #fff);
    outline-offset: 3px;
}

/* App-like global chrome */
.announcement {
    min-height: 31px;
    padding: 7px 16px;
    color: #fff;
    background: var(--of-ink);
    border: 0;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.site-header {
    position: sticky;
    z-index: 90;
    top: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    width: 100%;
    min-height: 72px;
    padding: 0 max(16px, calc((100% - 1380px) / 2));
    border: 0;
    border-bottom: 1px solid rgba(17, 18, 22, .07);
    background: rgba(233, 233, 231, .88);
    box-shadow: none;
    backdrop-filter: blur(22px) saturate(1.35);
}

.brand {
    display: flex;
    min-width: 0;
    align-items: center;
    text-decoration: none;
}
.brand-wordmark {
    display: grid;
    width: max-content;
    max-width: 100%;
    color: var(--of-ink);
    line-height: .78;
}
.brand-wordmark strong { font: 900 clamp(25px, 3vw, 37px)/.78 Arial, sans-serif; letter-spacing: -.075em; }
.brand-wordmark small { margin-top: 7px; font: 700 6.5px/1 Arial, sans-serif; letter-spacing: .43em; }

.desktop-nav { justify-self: center; gap: 6px; }
.desktop-nav a {
    min-height: 42px;
    padding: 11px 15px;
    border-radius: var(--of-pill);
    color: var(--of-ink-2);
    font-size: 13px;
    text-decoration: none;
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] { color: #fff; background: var(--of-ink); }

.header-actions { gap: 5px; }
.icon-button,
.menu-button {
    min-width: 43px;
    min-height: 43px;
    border: 1px solid rgba(17, 18, 22, .09);
    border-radius: var(--of-pill);
    background: rgba(255, 255, 255, .72);
}
.icon-button:hover,
.menu-button:hover { background: #fff; transform: translateY(-1px); }
.header-action em { font-size: 12px; }
.header-cart-count,
.header-notification-count { background: var(--of-ink); color: #fff; }

.header-search {
    inset-inline: max(16px, calc((100% - 820px) / 2));
    top: calc(100% + 8px);
    padding: 8px;
    border: 1px solid var(--of-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--of-shadow);
    backdrop-filter: blur(18px);
}
.header-search input,
.catalog-search input {
    min-height: 50px;
    border: 0;
    border-radius: 17px;
    background: var(--of-soft);
}
.header-search button { border-radius: 15px; background: var(--of-ink); color: #fff; }

.mobile-drawer {
    width: min(92vw, 390px);
    padding: 16px;
    border: 0;
    border-radius: 30px 0 0 30px;
    background: rgba(255, 255, 255, .98);
    box-shadow: -24px 0 80px rgba(17, 18, 22, .18);
    backdrop-filter: blur(22px);
}
.mobile-drawer__head { padding: 4px 4px 18px; border-bottom: 1px solid var(--of-line); }
.mobile-drawer nav { gap: 6px; padding-top: 12px; }
.mobile-drawer nav a { padding: 14px 16px; border-radius: 15px; font-weight: 750; }
.mobile-drawer nav a[aria-current="page"] { color: #fff; background: var(--of-ink); }

.mobile-bottom-nav {
    right: 50%;
    left: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 100;
    display: none;
    width: min(390px, calc(100% - 24px));
    min-height: 62px;
    padding: 5px;
    border: 1px solid rgba(17, 18, 22, .1);
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 50px rgba(17, 18, 22, .16);
    backdrop-filter: blur(22px);
    transform: translateX(50%);
}
.mobile-bottom-nav a {
    min-width: 0;
    min-height: 51px;
    gap: 2px;
    border-radius: 17px;
    color: #77797b;
    font-size: 9px;
    font-weight: 750;
}
.mobile-bottom-nav a svg { width: 19px; height: 19px; }
.mobile-bottom-nav a[aria-current="page"] { color: #fff; background: var(--of-ink); }

/* Buttons, panels and forms */
.button,
.cr-button,
.editorial-product__buy,
.checkout-pay,
.restock-request button {
    min-height: 48px;
    padding-inline: 22px;
    border: 1px solid var(--of-ink);
    border-radius: var(--of-pill);
    color: #fff;
    background: var(--of-ink);
    box-shadow: none;
    font-weight: 800;
}
.button:hover,
.cr-button:hover,
.editorial-product__buy:hover,
.checkout-pay:hover { transform: translateY(-2px); background: #2f3032; }
.button.primary,
.auth-card .button.primary,
.cart-empty .button.primary,
.checkout-pay,
.mobile-product-dock__buy,
.restock-request button {
    border-color: var(--of-ink) !important;
    color: #fff !important;
    background: var(--of-ink) !important;
}
.button.secondary,
.cr-button--light { color: var(--of-ink) !important; border-color: var(--of-line); background: #fff; }
.text-button { color: var(--of-ink); text-decoration: underline; text-underline-offset: 4px; }

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    min-height: 48px;
    border: 1px solid var(--of-line);
    border-radius: 14px;
    color: var(--of-ink);
    background: #fff;
}
textarea { min-height: 110px; padding: 14px; }
input:hover,
select:hover,
textarea:hover { border-color: var(--of-line-strong); }

.page-hero {
    margin-top: 18px;
    padding: clamp(24px, 5vw, 58px);
    border: 1px solid rgba(17, 18, 22, .06);
    border-radius: var(--of-radius-lg);
    background: var(--of-surface);
    box-shadow: none;
}
.page-hero.compact { min-height: auto; }
.page-hero h1 { margin: 8px 0; font-size: clamp(34px, 6vw, 66px); letter-spacing: -.055em; }
.page-hero p,
.page-hero span { color: var(--of-muted); }

.empty-state {
    padding: clamp(32px, 7vw, 70px);
    border: 1px solid var(--of-line);
    border-radius: var(--of-radius);
    background: #fff;
    box-shadow: none;
}

/* Home: a responsive commerce moodboard rather than a stretched landing page. */
.colors-home main { overflow: clip; }
.of-discover {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    grid-template-areas: "search modes" "categories categories";
    gap: 10px;
    padding-top: 14px;
}
.of-discover__search {
    grid-area: search;
    position: relative;
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    min-height: 54px;
    padding-inline: 18px;
    border: 1px solid var(--of-line);
    border-radius: var(--of-pill);
    background: #fff;
}
.of-discover__search > svg { width: 19px; height: 19px; fill: none; stroke: var(--of-muted); }
.of-discover__search input { min-height: 50px !important; padding: 0 10px !important; border: 0 !important; background: transparent !important; }
.of-discover__modes {
    grid-area: modes;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--of-line);
    border-radius: var(--of-pill);
    background: #fff;
}
.of-discover__modes a { min-height: 42px; padding: 11px 18px; border-radius: var(--of-pill); color: var(--of-muted); text-decoration: none; font-size: 12px; font-weight: 800; }
.of-discover__modes a:first-child { color: #fff; background: var(--of-ink); }
.of-discover__categories {
    grid-area: categories;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.of-discover__categories::-webkit-scrollbar { display: none; }
.of-discover__categories a { display: grid; flex: 0 0 82px; gap: 6px; justify-items: center; color: var(--of-ink); text-decoration: none; font-size: 12px; font-weight: 750; }
.of-discover__categories i {
    position: relative;
    display: grid;
    width: 55px;
    height: 55px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--of-line);
    border-radius: 50%;
    background: linear-gradient(145deg, #fff, #dededb);
}
.of-discover__categories i::before { width: 22px; height: 29px; border: 2px solid #2d2e31; border-radius: 7px 7px 10px 10px; content: ""; opacity: .72; }
.of-discover__categories a:nth-child(2) i::before { width: 27px; height: 21px; border-radius: 9px 9px 13px 13px; }
.of-discover__categories a:nth-child(3) i::before { width: 29px; height: 14px; border-radius: 55% 18% 30% 20%; transform: rotate(-12deg); }
.of-discover__categories a:nth-child(4) i::before { width: 21px; height: 21px; border-radius: 50%; }
.cr-hero {
    display: grid;
    grid-template-columns: minmax(310px, .76fr) minmax(500px, 1.24fr);
    gap: 12px;
    padding-top: 14px;
}
.cr-eyebrow,
.cr-section__head span,
.cr-feature__card > span,
.cr-empty-state > span,
.cr-category-row > a > span,
.trust-placeholder { font-size: 12px; }
.cr-hero__copy,
.cr-hero__stage {
    min-height: min(650px, calc(100svh - 108px));
    border: 1px solid rgba(17, 18, 22, .065);
    border-radius: var(--of-radius-lg);
    box-shadow: none;
}
.cr-hero__copy {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4.5vw, 68px);
    color: #fff;
    background: #202123;
}
.cr-hero__copy::before {
    position: absolute;
    inset: auto -18% -32% auto;
    width: 72%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    content: "";
}
.cr-eyebrow { color: rgba(255, 255, 255, .66); }
.cr-hero h1 { position: relative; z-index: 1; margin-block: 26px 18px; font-size: clamp(52px, 7vw, 108px); line-height: .94; letter-spacing: -.075em; }
.cr-hero h1 em { color: #fff; text-decoration: underline; text-decoration-color: var(--of-accent); text-decoration-thickness: .09em; text-underline-offset: .14em; }
.cr-hero__copy p { position: relative; z-index: 1; color: #c8c9ca; font-size: 15px; line-height: 2; }
.cr-hero__actions { position: relative; z-index: 1; }
.cr-hero__copy .cr-button { border-color: #fff; color: var(--of-ink) !important; background: #fff; }
.cr-hero__copy .cr-button--light { color: #fff !important; border-color: rgba(255, 255, 255, .25); background: transparent; }
.cr-hero__stage { background: linear-gradient(150deg, #f8f8f6 0%, #d7d7d4 100%); }
.cr-hero__stage::before,
.cr-hero__stage::after { border-color: rgba(17, 18, 22, .14); }
.cr-orbit { border: 1px solid rgba(17, 18, 22, .08); background: linear-gradient(145deg, #fff, #d1d1ce); box-shadow: 0 40px 80px rgba(17, 18, 22, .16); }
.cr-swatches { border: 1px solid var(--of-line); box-shadow: var(--of-shadow-soft); }

.cr-section { padding-top: clamp(54px, 8vw, 96px); }
.cr-section__head { margin-bottom: 20px; }
.cr-section__head h2 { font-size: clamp(30px, 4.2vw, 60px); letter-spacing: -.055em; }
.cr-section__head > a { min-height: 42px; padding: 11px 16px; border: 1px solid var(--of-line); border-radius: var(--of-pill); background: #fff; }
.cr-category-row { gap: 10px; }
.cr-category-row > a {
    min-height: 310px;
    padding: 18px;
    border: 1px solid rgba(17, 18, 22, .065);
    border-radius: var(--of-radius);
    background: #fff;
}
.cr-category-row > a:hover { transform: translateY(-4px); box-shadow: var(--of-shadow-soft); }
.cr-category-mark { background: linear-gradient(145deg, #f7f7f5, #dcdcd9); }
.cr-category-row > a:nth-child(2) .cr-category-mark { background: linear-gradient(145deg, #e4e0f1, #cac4df); }
.cr-category-row > a:nth-child(3) .cr-category-mark { background: linear-gradient(145deg, #e2e7e6, #c2ccca); }
.cr-category-row > a:nth-child(4) .cr-category-mark { background: linear-gradient(145deg, #eee8dd, #d5c8b6); }

.cr-feature { gap: 10px; }
.cr-feature__card { min-height: 390px; border: 1px solid rgba(17, 18, 22, .065); border-radius: var(--of-radius-lg); }
.cr-feature__card--dark { background: var(--of-ink); }
.cr-feature__card a { border-radius: var(--of-pill); }
.cr-empty-state { border-radius: var(--of-radius-lg); }
.cr-service-strip { border-color: var(--of-line); border-radius: var(--of-radius); background: var(--of-line); }

/* Product cards */
.product-grid { gap: 12px; }
.product-card,
.product-card--fashion {
    overflow: hidden;
    border: 1px solid rgba(17, 18, 22, .07);
    border-radius: var(--of-radius);
    background: #fff;
    box-shadow: none;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--of-shadow-soft); }
.product-card__media { margin: 7px; overflow: hidden; border-radius: 19px; background: var(--of-soft); }
.product-image { aspect-ratio: .82; background: linear-gradient(155deg, #f7f7f5, #dededb); }
.product-image::after {
    position: absolute;
    right: 10%;
    bottom: 9%;
    left: 10%;
    height: 13%;
    border: 1px solid rgba(17, 18, 22, .17);
    border-radius: 50%;
    content: "";
    transform: perspective(100px) rotateX(62deg);
}
.product-image img { position: relative; z-index: 1; object-fit: contain; }
.product-image__placeholder { background: transparent; }
.product-image__placeholder i { border-color: rgba(17, 18, 22, .13); }
.product-image__placeholder b { letter-spacing: -.075em; }
.wishlist-toggle,
.product-card__compare { top: 12px; }
.wishlist-toggle button,
.product-card__compare button {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(17, 18, 22, .09);
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(12px);
}
.wishlist-toggle button.active { color: #fff; background: var(--of-ink); }
.sale-label { border-radius: var(--of-pill); }
.product-card-body { padding: 10px 15px 16px; }
.product-card__title-row h3 { font-size: 16px; line-height: 1.55; }
.product-card__category { color: var(--of-muted); font-size: 10px; }
.product-card__commerce { padding-top: 10px; border-top: 1px solid var(--of-line); }
.product-card__commerce .price span { display: none; }
.product-card__commerce .price strong { font-size: 15px; }
.product-card__quick-add,
.product-card__quick-add button { border-radius: var(--of-pill); background: var(--of-ink); }
.swatches i { width: 23px; height: 23px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--of-line-strong); }

/* Catalog */
.catalog-hero--fashion {
    display: grid;
    grid-template-columns: minmax(420px, .9fr) 1.1fr;
    gap: 10px;
    min-height: 520px;
    padding: 10px;
    border-radius: var(--of-radius-lg);
    background: #fff;
}
.catalog-hero__media { min-height: 500px; border-radius: 24px; background: linear-gradient(145deg, #ededeb, #d2d2cf); }
.catalog-hero__media img { object-fit: contain; }
.catalog-hero__copy { align-self: stretch; justify-content: center; padding: clamp(28px, 5vw, 72px); border-radius: 24px; background: #f7f7f5; }
.catalog-hero__eyebrow { color: var(--of-muted); }
.catalog-hero__title h1 { font-size: clamp(38px, 5vw, 72px); letter-spacing: -.06em; }
.catalog-hero__title > span,
.catalog-hero__promises span,
.catalog-show-all { border-radius: var(--of-pill); }
.catalog-category-strip {
    display: flex;
    gap: 8px;
    padding-block: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}
.catalog-category-strip::-webkit-scrollbar { display: none; }
.catalog-category-strip a {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--of-line);
    border-radius: var(--of-pill);
    background: #fff;
    scroll-snap-align: start;
}
.catalog-category-strip a.active { color: #fff; background: var(--of-ink); border-color: var(--of-ink); }
.catalog-subcategories,
.catalog-intro { border: 1px solid var(--of-line); border-radius: var(--of-radius); background: #fff; }
.catalog-layout { gap: 14px; padding-top: 10px; }
.catalog-filters {
    border: 1px solid var(--of-line);
    border-radius: var(--of-radius);
    background: #fff;
    box-shadow: none;
}
.catalog-filters > a { border-radius: 13px; }
.catalog-filters > a.active { color: #fff; background: var(--of-ink); }
.catalog-toolbar {
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--of-line);
    border-radius: 20px;
    background: #fff;
}
.catalog-toolbar select,
.catalog-toolbar .button { min-height: 48px; border-radius: 14px; }
.catalog-query-result { border-radius: 18px; background: #fff; }

/* Product page: image-first on mobile, balanced workstation on desktop. */
.editorial-product {
    min-height: 0;
    margin-top: 12px;
    padding-block: 0 26px;
    background: transparent;
}
.editorial-product__arc,
.editorial-product__flower,
.editorial-product__scroll { display: none; }
.editorial-product__layout {
    display: grid;
    grid-template-columns: minmax(350px, .8fr) minmax(520px, 1.25fr) 112px;
    grid-template-areas: "copy visual rail";
    gap: 10px;
    align-items: stretch;
}
.editorial-product__copy {
    grid-area: copy;
    min-width: 0;
    padding: clamp(28px, 4vw, 54px);
    border: 1px solid var(--of-line);
    border-radius: var(--of-radius-lg);
    background: #fff;
}
.editorial-product__visual {
    grid-area: visual;
    min-height: 690px;
    overflow: hidden;
    border: 1px solid rgba(17, 18, 22, .07);
    border-radius: var(--of-radius-lg);
    background: linear-gradient(145deg, #f6f6f4, #d5d5d2);
}
.editorial-product__visual::after {
    position: absolute;
    right: 12%;
    bottom: 6%;
    left: 12%;
    height: 14%;
    border: 1px solid rgba(17, 18, 22, .22);
    border-radius: 50%;
    content: "";
    transform: perspective(120px) rotateX(64deg);
}
.editorial-product__image-open { z-index: 1; }
.editorial-product__image-backdrop { opacity: .05; filter: blur(32px); }
.editorial-product__main-image img { object-fit: contain; }
.editorial-product__zoom { z-index: 3; border-radius: var(--of-pill); }
.editorial-product__rail {
    grid-area: rail;
    padding: 8px;
    border: 1px solid var(--of-line);
    border-radius: var(--of-radius);
    background: #fff;
}
.editorial-product__rail-line,
.editorial-product__promise { display: none; }
.editorial-product__thumbs { display: grid; gap: 7px; }
.editorial-product__thumbs button { aspect-ratio: .83; border: 1px solid var(--of-line); border-radius: 15px; background: var(--of-soft); }
.editorial-product__thumbs button[aria-pressed="true"] { border-color: var(--of-ink); box-shadow: inset 0 0 0 1px var(--of-ink); }
.editorial-product__breadcrumbs { color: var(--of-muted); font-size: 11px; }
.editorial-product__eyebrow { color: var(--of-muted); }
.editorial-product h1 { margin-block: 18px 10px; font-size: clamp(36px, 4.8vw, 70px); line-height: 1.08; letter-spacing: -.06em; }
.editorial-product__summary { color: var(--of-muted); line-height: 1.95; }
.editorial-product__price-row { align-items: end; gap: 12px; }
.editorial-product__price strong { font-size: clamp(20px, 2vw, 30px); }
.editorial-product__variant-select select { border-radius: 15px; }
.editorial-product__actions { gap: 7px; }
.editorial-product__buy { flex: 1; }
.editorial-product__wishlist button,
.editorial-product__compare button,
.editorial-product__quantity { min-height: 48px; border: 1px solid var(--of-line); border-radius: var(--of-pill); background: #fff; }
.editorial-product__availability { padding: 12px 0; border-block: 1px solid var(--of-line); }
.editorial-product__trust { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.editorial-product__trust > div { padding: 12px; border: 1px solid var(--of-line); border-radius: 15px; background: var(--of-soft); }
.restock-request { border: 1px solid var(--of-line); border-radius: var(--of-radius); background: var(--of-soft); }
.editorial-details { margin-top: 16px; }
.editorial-details > * { border-color: var(--of-line); border-radius: var(--of-radius); background: #fff; }
.mobile-product-dock { border: 1px solid rgba(17, 18, 22, .1); border-radius: 22px; background: rgba(255, 255, 255, .96); box-shadow: var(--of-shadow); backdrop-filter: blur(22px); }
.product-lightbox { border: 0; border-radius: 28px; background: #efefed; }

/* Cart, checkout, account, content and auth share the same calm visual grammar. */
.checkout-progress ol,
.checkout-progress ul { padding: 6px; border: 1px solid var(--of-line); border-radius: var(--of-pill); background: #fff; }
.checkout-progress li { border-radius: var(--of-pill); }
.checkout-progress .is-current { color: #fff; background: var(--of-ink); }
.checkout-layout { gap: 14px; }
.cart-items,
.order-summary,
.checkout-form,
.account-sidebar,
.account-content > section,
.account-orders-panel,
.content-shell,
.auth-card,
.support-ticket-form,
.support-ticket-list {
    border: 1px solid var(--of-line);
    border-radius: var(--of-radius);
    background: #fff;
    box-shadow: none;
}
.cart-item { margin: 8px 0; padding: 10px; border: 1px solid var(--of-line); border-radius: 18px; background: var(--of-soft); }
.cart-item__image,
.checkout-item__media { overflow: hidden; border-radius: 15px; background: #e7e7e4; }
.order-summary { position: sticky; top: 88px; }
.order-summary .total { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--of-line); }
.shipping-progress,
.checkout-saved-profile { border-radius: 17px; background: var(--of-soft); }
.checkout-section-heading > span { color: #fff; background: var(--of-ink); }
.shipping-options label,
.payment-choice,
.checkout-consent { border: 1px solid var(--of-line); border-radius: 16px; background: #fff; }
.shipping-options label:has(input:checked),
.payment-choice:has(input:checked) { border-color: var(--of-ink); box-shadow: inset 0 0 0 1px var(--of-ink); }

.account-page { gap: 14px; padding-top: 18px; }
.account-sidebar { top: 88px; padding: 12px; }
.account-sidebar__identity { border-radius: 18px; background: var(--of-soft); }
.account-link { border-radius: 14px; }
.account-link.active { color: #fff; background: var(--of-ink); }
.account-content { gap: 14px; }
.account-content > section { overflow: hidden; }
.account-notification,
.account-orders article,
.support-ticket-row,
.account-session { border: 1px solid var(--of-line); border-radius: 16px; background: var(--of-soft); }

.site-footer {
    width: min(100% - 20px, 1400px);
    margin: 76px auto 10px;
    padding: clamp(34px, 5vw, 68px);
    border-radius: var(--of-radius-lg);
    color: #fff;
    background: var(--of-ink);
}
.site-footer h2,
.site-footer a { color: #fff; }
.site-footer p,
.site-footer span { color: #aaaeb0; }
.site-footer .footer-brand p,
.site-footer .footer-links a,
.site-footer .footer-links span,
.site-footer .trust span,
.site-footer .copyright,
.site-footer .copyright span { color: #b8bbbd !important; }
.site-footer .footer-links h2,
.site-footer .trust h2,
.site-footer .copyright a { color: #fff !important; }
.site-footer .brand-wordmark strong { color: #fff !important; }
.site-footer .brand-wordmark small { color: #b8bbbd !important; }
.trust-placeholder { border-radius: 18px; }

@media (max-width: 1050px) {
    .editorial-product__layout { grid-template-columns: minmax(300px, .85fr) minmax(420px, 1.15fr); grid-template-areas: "copy visual" "rail rail"; }
    .editorial-product__rail { display: block; }
    .editorial-product__thumbs { display: flex; overflow-x: auto; }
    .editorial-product__thumbs button { flex: 0 0 82px; }
    .catalog-hero--fashion { grid-template-columns: .85fr 1.15fr; }
}

@media (max-width: 800px) {
    :root { --of-container: calc(100% - 20px); --of-radius-lg: 25px; }
    html { scroll-padding-bottom: 92px; }
    body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
    .site-header { min-height: 62px; padding-inline: 10px; grid-template-columns: auto 1fr auto; }
    .brand-wordmark strong { font-size: 25px; }
    .brand-wordmark small { font-size: 5.5px; }
    .desktop-nav { display: none; }
    .header-actions { justify-self: end; }
    .header-action em,
    .header-account { display: none; }
    .icon-button,
    .menu-button { min-width: 40px; min-height: 40px; }
    .mobile-bottom-nav { display: grid; }

    .of-discover { grid-template-columns: 1fr; grid-template-areas: "search" "modes" "categories"; gap: 8px; padding-top: 8px; }
    .of-discover__search { min-height: 50px; }
    .of-discover__modes { justify-content: center; }
    .of-discover__modes a { flex: 1; padding-inline: 10px; text-align: center; }
    .of-discover__categories { justify-content: start; margin-inline: -10px; padding-inline: 14px; scroll-snap-type: x proximity; }
    .of-discover__categories a { scroll-snap-align: start; }

    .cr-hero { grid-template-columns: 1fr; gap: 8px; padding-top: 8px; }
    .cr-hero__stage { grid-row: 1; min-height: min(450px, 59svh); border-radius: 25px; }
    .cr-hero__copy { grid-row: 2; min-height: 330px; border-radius: 25px; }
    .cr-hero h1 { font-size: clamp(48px, 15vw, 68px); }
    .cr-hero__copy p { font-size: 13px; }
    .cr-hero__actions { display: grid; grid-template-columns: 1fr 1fr; }
    .cr-button { min-height: 48px; padding-inline: 14px; }
    .cr-section { padding-top: 50px; }
    .cr-section__head { align-items: start; }
    .cr-section__head h2 { font-size: 31px; }
    .cr-section__head > a { min-height: 38px; padding: 9px 12px; font-size: 11px; }
    .cr-category-row { display: flex; gap: 8px; margin-inline: -10px; padding-inline: 10px; overflow-x: auto; scroll-padding-inline: 10px; }
    .cr-category-row > a { flex: 0 0 72vw; min-height: 280px; scroll-snap-align: center; }
    .cr-feature { grid-template-columns: 1fr; }
    .cr-feature__card { min-height: 310px; }
    .cr-service-strip { grid-template-columns: 1fr; }

    .product-grid,
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .product-card { border-radius: 19px; }
    .product-card__media { margin: 5px; border-radius: 15px; }
    .product-card-body { padding: 8px 10px 12px; }
    .product-card__title-row h3 { font-size: 13px; }
    .product-card__category { display: none; }
    .product-card__commerce .price strong { font-size: 12px; }
    .product-card__quick-add,
    .product-card__quick-add button { width: 38px; height: 38px; }
    .wishlist-toggle button,
    .product-card__compare button { width: 34px; height: 34px; }
    .product-card__compare { display: none; }
    .product-card__badges { top: 10px; right: 10px; }
    .swatches { overflow: hidden; }

    .catalog-hero--fashion { grid-template-columns: 1fr; min-height: 0; padding: 7px; }
    .catalog-hero__media { min-height: 390px; border-radius: 20px; }
    .catalog-hero__copy { padding: 24px 20px; border-radius: 20px; }
    .catalog-hero__title h1 { font-size: 40px; }
    .catalog-hero__lead { font-size: 13px; }
    .catalog-hero__promises { display: flex; gap: 5px; overflow-x: auto; }
    .catalog-hero__promises span { flex: 0 0 auto; }
    .catalog-layout { display: block; }
    .catalog-filter-trigger { display: flex; width: 100%; min-height: 48px; margin-bottom: 8px; border: 1px solid var(--of-line); border-radius: 15px; background: #fff; }
    .catalog-filters {
        position: fixed;
        z-index: 160;
        right: 8px;
        bottom: 8px;
        left: 8px;
        max-height: min(82svh, 680px);
        padding: 14px;
        overflow-y: auto;
        border-radius: 26px;
        transform: translateY(calc(100% + 24px));
    }
    .catalog-filters.open,
    .catalog-filters.is-open { transform: translateY(0); }
    .catalog-toolbar { display: grid; grid-template-columns: 1fr 1fr; position: sticky; z-index: 20; top: 68px; }
    .catalog-search { grid-column: 1 / -1; }
    .catalog-toolbar .button { display: none; }

    .editorial-product { margin-top: 8px; padding-bottom: 8px; }
    .editorial-product__layout { grid-template-columns: 1fr; grid-template-areas: "visual" "rail" "copy"; gap: 8px; }
    .editorial-product__visual { min-height: min(510px, 67svh); border-radius: 25px; }
    .editorial-product__rail { padding: 6px; border-radius: 20px; }
    .editorial-product__thumbs { gap: 6px; padding: 0; }
    .editorial-product__thumbs button { flex-basis: 70px; border-radius: 13px; }
    .editorial-product__copy { padding: 24px 20px; border-radius: 25px; }
    .editorial-product h1 { margin-block: 14px 8px; font-size: 38px; }
    .editorial-product__price-row { display: grid; }
    .editorial-product__actions { grid-template-columns: auto 1fr auto; }
    .editorial-product__compare { display: none; }
    .editorial-product__trust { gap: 5px; }
    .editorial-product__trust > div { padding: 10px 6px; }
    .editorial-product__trust small { font-size: 8px; }
    .mobile-product-dock {
        right: 12px;
        bottom: calc(81px + env(safe-area-inset-bottom));
        left: 12px;
        z-index: 95;
        display: grid;
        grid-template-columns: 1fr 1.05fr;
        gap: 7px;
        padding: 7px;
    }
    .mobile-product-dock__buy { min-height: 48px; border-radius: 17px; }

    .checkout-layout,
    .account-page { display: grid; grid-template-columns: 1fr; }
    .order-summary { position: static; }
    .account-sidebar { position: static; padding: 8px; overflow: hidden; }
    .account-sidebar nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
    .account-link { flex: 0 0 auto; min-height: 44px; }
    .account-sidebar__shortcuts,
    .account-sidebar__logout { display: none; }
    .site-footer { width: calc(100% - 16px); margin-top: 52px; margin-bottom: 86px; padding: 30px 22px; border-radius: 26px; }
    .delivery-status-rail,
    .back-to-top { bottom: 92px; }
}

@media (max-width: 380px) {
    :root { --of-container: calc(100% - 16px); }
    .cr-hero__actions { grid-template-columns: 1fr; }
    .product-card__commerce { align-items: end; }
    .product-card__commerce .price strong { font-size: 11px; }
    .catalog-toolbar { grid-template-columns: 1fr; }
    .catalog-toolbar label { width: 100%; }
}

@media (hover: none) {
    .product-image__alternate,
    .product-image__hint { display: none !important; }
    .product-card:hover { transform: none; box-shadow: none; }
}

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