@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Barlow:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #f7f7f7;
    --fg: #191919;
    --muted: #737373;
    --line: #e5e5e5;
    --card: #ffffff;
    --soft: #f1f1f1;
    --accent: #f45122;
    --accent-fg: #fffaf5;
    --heading: 'Oswald', sans-serif;
    --body: 'Barlow', sans-serif;
    --container: 1400px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--heading); line-height: 1; letter-spacing: 0; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 247, 247, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    width: min(100%, calc(var(--container) + 32px));
    height: 56px;
    margin: 0 auto;
    padding: 0 16px;
}

.brand { display: inline-grid; gap: 0; min-width: 142px; justify-self: start; line-height: 1; }
.brand-title {
    font-family: var(--heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.brand-subtitle {
    margin-top: 2px;
    font-size: 10px;
    line-height: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--muted);
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    color: var(--muted);
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    transition: color 0.18s ease;
}

.main-nav a:hover { color: var(--fg); }

.header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.header-actions::before {
    content: "";
    width: 1px;
    height: 22px;
    margin-right: 10px;
    background: var(--line);
}

.icon-link {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.icon-link:hover { background: var(--soft); color: var(--fg); }
.icon-link svg,
.user-menu-link > svg,
.user-dropdown svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    display: inline-grid;
    min-width: 16px;
    height: 16px;
    place-items: center;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-fg);
    border: 0;
    font-size: 10px;
    line-height: 16px;
    font-weight: 700;
}

.cart-badge[hidden] { display: none; }

.user-menu {
    position: relative;
}

.user-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    border: 0;
    background: transparent;
    padding-left: 6px;
    color: var(--fg);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.user-menu-link svg { width: 14px; height: 14px; color: var(--muted); }
.user-avatar {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #ffe1d6;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    width: 224px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}
.user-dropdown[hidden] { display: none; }
.user-dropdown-head {
    display: grid;
    gap: 4px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--line);
}
.user-dropdown-head strong {
    font-size: 14px;
    line-height: 18px;
}
.user-dropdown-head span {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-dropdown-nav {
    display: grid;
    padding: 8px 0;
}
.user-dropdown-nav a,
.user-dropdown-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 0 16px;
    color: var(--fg);
    font-size: 14px;
    line-height: 20px;
    transition: background 0.18s ease, color 0.18s ease;
}
.user-dropdown-nav a:hover,
.user-dropdown-logout:hover {
    background: var(--soft);
}
.user-dropdown-nav svg,
.user-dropdown-logout svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}
.user-dropdown-logout {
    border-top: 1px solid var(--line);
    color: var(--accent);
}

.login-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0 15px;
    background: #ffe1d6;
    color: var(--accent);
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

.flash-stack {
    display: grid;
    gap: 10px;
    width: min(100% - 32px, var(--container));
    margin: 18px auto 0;
}

.flash-stack:empty {
    display: none;
}

.flash-message {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 28px;
    align-items: start;
    gap: 12px;
    width: 100%;
    padding: 14px 14px 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    color: var(--fg);
    box-shadow: 0 18px 42px -34px rgba(0, 0, 0, 0.28);
}

.flash-message-icon,
.flash-message-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flash-message-icon {
    margin-top: 1px;
}

.flash-message-body {
    min-width: 0;
}

.flash-message-label {
    margin-bottom: 3px;
    font-family: var(--heading);
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.flash-message-text {
    color: inherit;
    font-size: 15px;
    line-height: 21px;
}

.flash-message-text a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.flash-message-close {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: -3px -3px 0 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    opacity: 0.62;
}

.flash-message-close:hover {
    background: rgba(0, 0, 0, 0.05);
    opacity: 1;
}

.flash-message-success {
    border-color: color-mix(in oklab, #17a35b 34%, var(--line));
    background: linear-gradient(135deg, color-mix(in oklab, #17a35b 10%, var(--card)) 0%, var(--card) 64%);
    color: #176532;
}

.flash-message-error {
    border-color: color-mix(in oklab, var(--accent) 34%, var(--line));
    background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 9%, var(--card)) 0%, var(--card) 64%);
    color: #9e2a12;
}

.flash-message-warning {
    border-color: color-mix(in oklab, #f0a400 42%, var(--line));
    background: linear-gradient(135deg, color-mix(in oklab, #f0a400 13%, var(--card)) 0%, var(--card) 64%);
    color: #7a5100;
}

.flash-message-notice {
    border-color: color-mix(in oklab, #2c7be5 32%, var(--line));
    background: linear-gradient(135deg, color-mix(in oklab, #2c7be5 9%, var(--card)) 0%, var(--card) 64%);
    color: #1c5ca8;
}

.cart-toast {
    position: fixed;
    top: 78px;
    right: 24px;
    z-index: 100;
    min-width: 220px;
    border-radius: 8px;
    background: #17130f;
    color: #fff;
    padding: 14px 18px;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.cart-toast.visible {
    opacity: 1;
    transform: translateY(0);
}
.cart-toast[hidden] { display: none; }

.hero {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    background: #161616;
}

.hero-media,
.hero-media img,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media img {
    object-fit: cover;
    filter: grayscale(0.85) brightness(0.58);
}

.hero-shade {
    background:
            linear-gradient(90deg, rgba(21, 21, 21, 0.96) 0%, rgba(21, 21, 21, 0.82) 28%, rgba(21, 21, 21, 0.52) 58%, rgba(21, 21, 21, 0.74) 100%),
            linear-gradient(18deg, rgba(244, 81, 34, 0.12), transparent 45%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(100% - 32px, var(--container));
    min-height: 440px;
    margin: 0 auto;
    padding-left: 1px;
    transform: translateY(17px);
}

.hero h1 {
    display: grid;
    gap: 0;
    max-width: none;
    color: var(--accent-fg);
    font-size: 60px;
    font-weight: 700;
    line-height: 60px;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

.hero h1 span:last-child { color: var(--accent); }
.hero p {
    max-width: 470px;
    margin: 12px 0 0;
    color: rgba(255, 250, 245, 0.8);
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
}

.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.btn-primary,
.btn-ghost,
.btn-outline,
.product-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 10px 24px;
    border: 1px solid var(--accent);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary { background: var(--accent); color: var(--accent-fg); border: 0; }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-ghost {
    background: transparent;
    color: var(--accent-fg);
    border-color: rgba(255, 250, 245, 0.3);
    padding-left: 20px;
    padding-right: 20px;
}
.btn-ghost:hover { background: rgba(255, 250, 245, 0.1); }
.btn-outline {
    width: 100%;
    background: transparent;
    color: var(--fg);
    border-color: #d8d8d8;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary.wide,
.btn-outline.wide { width: 100%; }
.btn-outline.compact { width: auto; min-width: 150px; }

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 3;
    transform: translateX(-50%);
    color: rgba(255, 250, 245, 0.58);
    font-size: 22px;
}

.content-page,
.checkout-page,
.product-page {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 48px 0 78px;
}

.legal-page h1 {
    margin-bottom: 18px;
}

.legal-panel {
    display: grid;
    gap: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    padding: 28px;
}

.legal-panel section {
    display: grid;
    gap: 10px;
}

.legal-panel h2 {
    margin: 0;
    font-size: 24px;
    line-height: 30px;
}

.legal-panel p {
    max-width: 980px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 26px;
}

.legal-panel strong {
    color: var(--fg);
}

.legal-panel a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.catalog {
    width: min(100%, calc(var(--container) + 32px));
    margin: 0 auto;
    padding: 49px 16px 40px;
}

.brand-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-head {
    display: block;
    margin-bottom: 0;
    padding-bottom: 0;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 15px;
    font-weight: 400;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.section-head h2,
.content-page h1,
.checkout-page h1,
.product-detail-info h1 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    letter-spacing: -0.6px;
}

.content-page h1,
.checkout-page h1,
.product-detail-info h1 {
    font-size: clamp(34px, 5vw, 72px);
    line-height: 1;
    letter-spacing: 0;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    border-bottom: 1px solid var(--line);
}

.tab {
    position: relative;
    min-height: 36px;
    padding: 8px 16px;
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.tab.active,
.tab:hover { color: var(--fg); }
.tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
}

.brand-section {
    margin-top: 32px;
    padding-top: 0;
    border-top: 0;
    scroll-margin-top: 82px;
}

.brand-section + .brand-section { margin-top: 52px; }
.brand-section-head { margin-bottom: 20px; }
.brand-section-head h3 {
    margin-top: 8px;
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    letter-spacing: -0.75px;
    text-transform: uppercase;
}
.brand-section-head p:not(.eyebrow) {
    max-width: 640px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
}
.brand-section-head > a {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.brand-kicker { display: flex; align-items: center; gap: 12px; }
.brand-kicker span {
    display: inline-block;
    width: 34px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}
.brand-kicker .eyebrow { margin: 0; letter-spacing: 0.32em; }

.favorites-page {
    padding-top: 52px;
}
.favorites-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.favorites-head h1 {
    margin-top: 6px;
    font-size: 52px;
    line-height: 1;
    letter-spacing: 0;
}
.favorites-head .btn-outline {
    flex: 0 0 auto;
}
.favorites-grid {
    align-items: start;
}

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

.product-card {
    overflow: hidden;
    background: var(--card);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.1);
}
.product-card.is-sold-out .product-image img {
    filter: grayscale(0.55);
    opacity: 0.72;
}
.product-card.is-sold-out:hover .product-image img { transform: none; }

.product-image-wrap {
    position: relative;
    aspect-ratio: 5 / 6;
    background: var(--soft);
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image picture,
.product-image img {
    width: 100%;
    height: 100%;
}

.product-image img {
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.favorite-overlay-form { margin: 0; }
.product-image-wrap > .fav-button,
.favorite-overlay-form .fav-button {
    position: absolute;
    top: 8px;
    left: 8px;
}

.fav-button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.84);
    color: var(--muted);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.fav-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fav-button:hover,
.fav-button.active {
    background: var(--accent);
    color: var(--accent-fg);
}
.fav-button.active svg { fill: currentColor; }

.badges {
    position: absolute;
    top: 11px;
    right: 11px;
    display: grid;
    gap: 6px;
    justify-items: end;
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border-radius: 999px;
    padding: 0 9px;
    font-size: 11px;
    font-weight: 800;
}
.badge.sale { background: var(--accent); color: var(--accent-fg); }
.badge.new { border-radius: 4px; background: var(--fg); color: var(--bg); letter-spacing: 0.14em; }
.badge.sold {
    background: var(--fg);
    color: var(--bg);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-body { padding: 12px; }
.product-title {
    display: block;
    min-height: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    transition: color 0.18s ease;
}
.product-card:hover .product-title { color: var(--accent); }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.price { color: var(--accent); font-family: var(--heading); font-size: 18px; line-height: 28px; font-weight: 600; }
.old-price { color: var(--muted); font-size: 11px; line-height: 16px; text-decoration: line-through; }
.product-cart-button {
    width: 100%;
    min-height: 44px;
    border-color: rgba(25, 25, 25, 0.18);
    background: transparent;
    color: var(--fg);
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0 16px;
}
.product-cart-button:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.product-cart-button.sold-out,
.product-cart-button:disabled {
    border-color: rgba(25, 25, 25, 0.12);
    background: #f0f0f0;
    color: var(--muted);
    cursor: not-allowed;
}
.product-cart-button.sold-out:hover,
.product-cart-button:disabled:hover {
    border-color: rgba(25, 25, 25, 0.12);
    background: #f0f0f0;
    color: var(--muted);
}

.product-page {
    width: min(100%, calc(var(--container) + 32px));
    margin: 0 auto;
    padding: 24px 16px 64px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
}

.breadcrumbs a { transition: color 0.18s ease; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span:last-child {
    overflow: hidden;
    color: var(--fg);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: start;
}

.product-main-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    background: var(--soft);
}

.product-main-image picture,
.product-main-image img {
    width: 100%;
    height: 100%;
}

.product-main-image img { object-fit: cover; }

.product-main-badges {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    gap: 6px;
    justify-items: end;
}

.product-detail-info h1 {
    max-width: 680px;
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    letter-spacing: -0.75px;
}

.product-price-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.product-current-price {
    font-family: var(--heading);
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    color: var(--fg);
}

.product-old-price {
    color: var(--muted);
    font-size: 18px;
    line-height: 28px;
    text-decoration: line-through;
}

.product-discount-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-fg);
    font-size: 13px;
    font-weight: 800;
}

.product-size-block { margin-top: 24px; }
.product-size-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 20px;
}

.product-size-head span { font-weight: 500; }
.product-size-head a {
    color: var(--accent);
    font-size: 12px;
    transition: opacity 0.18s ease;
}
.product-size-head a:hover { opacity: 0.75; }

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

.size-option {
    display: inline-grid;
    place-items: center;
    min-width: 52px;
    height: 44px;
    padding: 0 16px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--fg);
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.size-option:hover { border-color: var(--accent); }
.size-option.active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-fg);
}

.product-actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.add-cart-main {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-fg);
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

.add-cart-main svg,
.favorite-main svg,
.product-feature svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.add-cart-main svg { width: 20px; height: 20px; }

.direct-buy-form {
    display: grid;
    grid-template-columns: 130px minmax(220px, 1fr);
    align-items: end;
    gap: 12px;
    flex: 1;
}

.product-qty-label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-qty-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    padding: 0 14px;
    color: var(--fg);
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
}
.sold-out-detail {
    display: grid;
    flex: 1;
    min-height: 48px;
    border: 1px solid rgba(25, 25, 25, 0.14);
    border-radius: 8px;
    background: #f0f0f0;
    padding: 10px 14px;
    color: var(--muted);
}
.sold-out-detail strong {
    color: var(--fg);
    font-size: 14px;
    line-height: 18px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sold-out-detail span {
    font-size: 13px;
    line-height: 18px;
}
.favorite-main-form { margin: 0; }
.favorite-main {
    display: inline-grid;
    place-items: center;
    width: 56px;
    min-width: 56px;
    height: 48px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.favorite-main svg { width: 22px; height: 22px; }
.favorite-main:hover,
.favorite-main.active {
    border-color: var(--accent);
    color: var(--accent);
}
.favorite-main.active svg { fill: currentColor; }

.product-description-block {
    margin-top: 32px;
}

.product-description-block h2 {
    margin-bottom: 14px;
    font-family: var(--body);
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

.product-description-block p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 22px;
}

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

.product-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(241, 241, 241, 0.52);
}

.product-feature svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: var(--accent);
}

.product-feature strong,
.product-feature span {
    display: block;
    font-size: 12px;
    line-height: 16px;
}

.product-feature strong { font-weight: 500; }
.product-feature span { margin-top: 2px; color: var(--muted); }
.related-products { margin-top: 64px; }
.related-products .section-head { margin-bottom: 20px; }

.back-link {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
}

.checkout-page h1 {
    margin-bottom: 28px;
    font-size: 36px;
    line-height: 40px;
    font-weight: 700;
    letter-spacing: -0.9px;
}

.checkout-form label { display: grid; gap: 8px; font-weight: 600; }

select,
input,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #fff;
    padding: 10px 12px;
}

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
.checkout-layout .panel:nth-child(2) { grid-column: 1; }
.summary { grid-column: 2; grid-row: 1 / span 2; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.panel h2 { margin-bottom: 18px; font-size: 24px; }
.checkout-items { display: grid; gap: 12px; }

.checkout-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: var(--soft);
    border-radius: 8px;
}
.checkout-item img { width: 72px; height: 82px; object-fit: cover; border-radius: 6px; }
.summary-row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-row.total { align-items: baseline; border-bottom: 0; font-size: 22px; }
.checkout-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.checkout-form input[type="hidden"] { display: none; }
.checkout-form label:nth-of-type(3),
.checkout-form label:nth-of-type(5),
.checkout-form label:nth-of-type(6),
.checkout-form button { grid-column: 1 / -1; }

.link-button {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 0;
}
.link-button:hover { color: var(--accent); }

.admin-toolbar { display: grid; grid-template-columns: 1fr 220px 160px; gap: 12px; margin-bottom: 18px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th,
.admin-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.orders-empty { display: grid; gap: 8px; color: var(--muted); }
.orders-empty strong { color: var(--fg); font-size: 20px; }
.muted { color: var(--muted); }

.orders-table { display: grid; gap: 12px; }
.order-row {
    display: grid;
    grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.4fr) 150px 120px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
}
.order-row strong { font-family: var(--heading); font-size: 22px; }
.order-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }

.orders-page {
    padding-top: 46px;
}
.orders-page-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-bottom: 38px;
}
.orders-page-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 22px;
    border: 1px solid #171717;
    border-radius: 999px;
    color: #171717;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.orders-hero {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: center;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
}
.orders-hero h1 {
    margin: 12px 0 10px;
    max-width: 720px;
    font-size: clamp(42px, 5vw, 78px);
    line-height: 0.92;
    letter-spacing: 0;
    text-transform: uppercase;
}
.orders-hero h1 span {
    color: var(--accent);
}
.orders-hero p:not(.eyebrow) {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}
.orders-score-card {
    display: grid;
    place-items: center;
    flex: 0 0 140px;
    min-height: 128px;
    border-radius: 6px;
    background: radial-gradient(circle at 70% 18%, rgba(255, 73, 38, 0.25), transparent 42%), #15110e;
    color: #fff;
}
.orders-score-card strong {
    color: #df4b45;
    font-family: var(--heading);
    font-size: 58px;
    line-height: 48px;
}
.orders-score-card span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.orders-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 40px 0;
}
.orders-stat-grid article {
    display: grid;
    place-items: center;
    min-height: 104px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
}
.orders-stat-grid strong {
    font-family: var(--heading);
    font-size: 42px;
    line-height: 40px;
    text-transform: uppercase;
}
.orders-stat-grid span {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.orders-list-section {
    padding-top: 6px;
}
.orders-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.orders-list-head h2 {
    margin: 0;
    font-size: 28px;
    line-height: 32px;
    text-transform: uppercase;
}
.orders-list-head a,
.orders-bottom-nav a {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.orders-empty-large {
    display: grid;
    place-items: center;
    gap: 20px;
    min-height: 220px;
    border: 1px dashed #c9c4bd;
    border-radius: 6px;
    color: var(--muted);
}
.orders-empty-large p {
    margin: 0;
    font-size: 16px;
}
.orders-empty-large a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 30px;
    border-radius: 999px;
    background: #16120f;
    color: #fff;
    font-weight: 700;
}
.orders-bottom-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 56px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.auth-page {
    display: grid;
    place-items: start center;
    min-height: calc(100vh - 58px);
    padding: 48px 16px 76px;
}

.auth-card {
    width: min(100%, 500px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    padding: 34px 30px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.07);
}

.auth-back {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
}
.auth-title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 38px;
    letter-spacing: 0;
}
.auth-sub {
    max-width: 390px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 15px;
    line-height: 23px;
}
.auth-card form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.field-label {
    display: block;
    color: var(--fg);
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
}
.req-dot {
    color: var(--accent);
    font-weight: 700;
}
.field-input,
.field-select {
    width: 100%;
}
.field [data-city-other]:not([hidden]) {
    margin-top: 8px;
}
.field-help { color: var(--muted); font-size: 13px; line-height: 1.45; }
.optional-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
}
.optional-divider::before,
.optional-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    user-select: none;
}
.check input {
    position: absolute;
    width: 16px;
    height: 16px;
    min-height: 16px;
    opacity: 0;
    pointer-events: none;
}
.check-box {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 1px solid #b8b8b8;
    border-radius: 3px;
    background: #fff;
    transition: background 0.16s ease, border-color 0.16s ease;
}
.check input:focus-visible + .check-box {
    outline: 2px solid color-mix(in srgb, var(--accent) 36%, transparent);
    outline-offset: 2px;
}
.check input:checked + .check-box {
    border-color: var(--accent);
    background: var(--accent);
}
.check input:checked + .check-box::after {
    content: "";
    display: block;
    width: 8px;
    height: 4px;
    margin: 4px 0 0 3px;
    border-left: 2px solid var(--accent-fg);
    border-bottom: 2px solid var(--accent-fg);
    transform: rotate(-45deg);
}
.check a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.btn-primary:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
    filter: none;
}
.auth-foot {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}
.auth-foot a { color: var(--accent); font-weight: 700; }

.profile-edit-page {
    padding-top: 44px;
    padding-bottom: 80px;
}
.profile-edit-back {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}
.profile-edit-head {
    max-width: 820px;
    margin-bottom: 28px;
}
.profile-edit-head h1 {
    margin: 8px 0 8px;
    font-size: 40px;
    line-height: 44px;
}
.profile-edit-head p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.45;
}
.profile-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
    gap: 30px;
    align-items: start;
}
.profile-edit-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    padding: 26px;
}
.profile-edit-card h2 {
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    font-size: 24px;
    line-height: 28px;
}
.profile-edit-card form {
    display: grid;
    gap: 16px;
}
.profile-edit-field {
    display: grid;
    gap: 8px;
}
.profile-edit-field label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.profile-edit-field label span {
    color: var(--accent);
}
.profile-edit-field input,
.profile-edit-field select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    color: var(--fg);
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
}
.profile-edit-field input:disabled {
    color: var(--muted);
    background: #f5f5f5;
}
.profile-edit-field [data-city-other]:not([hidden]) {
    margin-top: 8px;
}
.profile-edit-submit {
    margin-top: 12px;
    width: 100%;
}
.profile-edit-note {
    margin: -8px 0 22px;
    color: var(--muted);
}
.profile-link-list {
    display: grid;
    gap: 14px;
}
.profile-link-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 70px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    padding: 13px 14px;
}
.profile-link-card.is-disabled {
    border-color: var(--line);
    background: rgba(241, 241, 241, 0.72);
}
.profile-link-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--account-color);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--account-color) 24%, transparent);
}
.profile-link-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.profile-link-icon.is-vk span {
    font-size: 12px;
    letter-spacing: -0.04em;
}
.profile-link-card.is-disabled .profile-link-icon {
    opacity: 0.62;
    box-shadow: none;
}
.profile-link-card strong,
.profile-link-card span {
    display: block;
}
.profile-link-card strong {
    margin-bottom: 2px;
    font-weight: 800;
}
.profile-link-card span {
    color: var(--muted);
    font-size: 12px;
}
.profile-link-card.is-disabled strong,
.profile-link-card.is-disabled span:not(.profile-link-icon):not(.profile-link-icon span) {
    color: #9c9c9c;
}
.profile-link-card button {
    min-height: 32px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--fg);
    padding: 0 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.profile-link-card button:disabled {
    border-color: var(--line);
    color: var(--muted);
    cursor: not-allowed;
}

.cabinet-page h1 {
    margin: 8px 0 8px;
    font-size: 38px;
    line-height: 44px;
    letter-spacing: -0.4px;
}
.cabinet-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.cabinet-top p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
}
.cabinet-buy {
    min-width: 124px;
}
.cabinet-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}
.cabinet-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, #fff 0%, #fff 62%, rgba(244, 81, 34, 0.055) 100%);
    padding: 20px;
}
.cabinet-stat-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(244, 81, 34, 0.18);
    border-radius: 50%;
    background: rgba(244, 81, 34, 0.08);
    color: var(--accent);
}
.cabinet-stat-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cabinet-stat-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.cabinet-stat-card strong {
    font-family: var(--heading);
    font-size: 34px;
    line-height: 34px;
}
.cabinet-stat-copy span {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.cabinet-social-section {
    margin-bottom: 34px;
}
.cabinet-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.cabinet-section-head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 30px;
}
.cabinet-section-head span {
    color: var(--muted);
    font-size: 14px;
}
.cabinet-social-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.cabinet-social-card {
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
    padding: 18px;
}
.cabinet-social-card.is-soon {
    opacity: 0.55;
}
.cabinet-social-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cabinet-social-chip {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--social-color);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
.cabinet-social-card h3 {
    margin: 0 0 4px;
    font-family: var(--body);
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
}
.cabinet-social-card p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.cabinet-social-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    background: #16120f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
}
.cabinet-social-action.is-disabled {
    border: 1px dashed var(--line);
    background: transparent;
    color: var(--muted);
    cursor: not-allowed;
}
.cabinet-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: start;
}
.cabinet-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.cabinet-panel-head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 30px;
}
.cabinet-panel-head a { color: var(--accent); font-weight: 700; }
.profile-grid { display: grid; gap: 0; }
.profile-grid div {
    display: grid;
    grid-template-columns: 142px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.profile-grid div:first-child { padding-top: 0; }
.profile-grid dt {
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
}
.profile-grid dd {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    text-align: right;
}
.profile-password-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 50px;
    margin-top: 18px;
    border: 1px solid rgba(244, 81, 34, 0.34);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--accent);
    transition: background 0.18s ease, border-color 0.18s ease;
}
.profile-password-action:hover {
    border-color: var(--accent);
    background: rgba(244, 81, 34, 0.06);
}
.profile-password-action span {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.profile-password-action strong {
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cabinet-empty-orders {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 160px;
    border: 1px dashed rgba(25, 25, 25, 0.22);
    border-radius: 8px;
    padding: 24px;
    color: var(--muted);
}
.cabinet-empty-orders span {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card);
    color: var(--muted);
    font-size: 24px;
}
.cabinet-empty-orders p {
    margin: 0;
    line-height: 22px;
}
.cabinet-empty-orders strong {
    color: var(--fg);
}

.site-footer {
    border-top: 1px solid rgba(25, 25, 25, 0.1);
    background: rgba(25, 25, 25, 0.03);
}

.footer-inner {
    width: min(100%, calc(var(--container) + 32px));
    margin: 0 auto;
    padding: 48px 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.footer-logo { min-width: 0; margin-bottom: 16px; }
.footer-logo .brand-subtitle { margin-top: 1px; }
.footer-brand-block p,
.footer-col p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 22px;
}

.footer-col {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-col h2 {
    margin: 0 0 12px;
    font-family: var(--heading);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-col a {
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
    transition: color 0.18s ease;
}

.footer-col a:hover { color: var(--accent); }
.footer-subscribe form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    margin-top: 8px;
}

.footer-subscribe input {
    width: auto;
    min-width: 0;
    min-height: 44px;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
}

.footer-subscribe button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: var(--accent);
    color: var(--accent-fg);
    cursor: pointer;
}

.footer-subscribe button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-subscribe button:disabled {
    cursor: default;
    opacity: 0.7;
}

.newsletter-status {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
}

.newsletter-status.success { color: #16803c; }
.newsletter-status.error { color: #c23b22; }

.footer-bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(25, 25, 25, 0.1);
}

.footer-payments img {
    width: auto;
    height: 28px;
    object-fit: contain;
    opacity: 0.82;
}

.footer-legal {
    display: grid;
    gap: 4px;
    color: var(--muted);
    text-align: right;
    font-size: 12px;
    line-height: 16px;
}

.footer-legal p { margin: 0; }

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 16px 16px;
}

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

.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25, 25, 25, 0.3);
    backdrop-filter: blur(4px);
}

.search-panel {
    position: relative;
    overflow: hidden;
    width: min(100%, 576px);
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.search-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.search-input-row > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: var(--muted);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-input-row input {
    flex: 1;
    min-width: 0;
    min-height: 32px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    padding: 3px 6px;
    color: var(--fg);
    font-size: 16px;
    line-height: 24px;
    outline: none;
}

.search-input-row input:focus { border-color: var(--accent); }

.search-clear,
.search-esc {
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: var(--soft);
    color: var(--muted);
    cursor: pointer;
}

.search-clear {
    width: 28px;
    height: 28px;
    background: transparent;
}

.search-clear[hidden] { display: none; }
.search-clear svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-esc {
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    text-transform: uppercase;
}

.search-hints {
    padding: 24px 20px;
}

.search-hints p,
.search-count {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-hints div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-hints button {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    padding: 0 14px;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.search-hints button:hover {
    border-color: rgba(244, 81, 34, 0.5);
    color: var(--fg);
}

.search-results {
    max-height: 50vh;
    overflow-y: auto;
    padding: 8px 0;
}

.search-results[hidden] { display: none; }
.search-count {
    display: block;
    margin: 0;
    padding: 6px 20px;
}

.search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    transition: background 0.18s ease;
}

.search-result:hover { background: rgba(241, 241, 241, 0.7); }
.search-result > span { min-width: 0; }
.search-result img {
    width: 48px;
    height: 56px;
    flex: 0 0 auto;
    border-radius: 6px;
    object-fit: cover;
    background: var(--soft);
}

.search-result strong {
    display: block;
    overflow: hidden;
    color: var(--fg);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
}

.search-result-price {
    color: var(--fg);
    font-family: var(--heading);
    font-size: 14px;
    font-weight: 700;
}

.search-result-old {
    text-decoration: line-through;
}

.search-empty {
    padding: 36px 20px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
    line-height: 20px;
}

.size-modal {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

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

.size-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25, 25, 25, 0.3);
    backdrop-filter: blur(4px);
}

.size-modal-panel {
    position: relative;
    overflow: hidden;
    width: min(100%, 384px);
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.size-modal-head {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    padding: 20px 20px 0;
}

.size-modal-head img {
    width: 80px;
    height: 96px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--soft);
}

.size-modal-head h2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 16px;
    line-height: 21px;
    font-weight: 600;
}

.size-modal-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.size-modal-price-row span:first-child {
    font-family: var(--heading);
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
}

.size-modal-price-row span:nth-child(2) {
    color: var(--muted);
    font-size: 12px;
    text-decoration: line-through;
}

.size-modal-price-row span:nth-child(3) {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.size-modal-close {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.size-modal-close:hover {
    background: var(--soft);
    color: var(--fg);
}

.size-modal-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.size-modal-body {
    padding: 20px;
}

.size-modal-body p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

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

.size-modal-option {
    display: inline-grid;
    place-items: center;
    min-width: 52px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--fg);
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.size-modal-option:hover {
    border-color: rgba(244, 81, 34, 0.55);
    background: var(--soft);
}

.size-modal-option.active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-fg);
}

.size-modal-qty {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

.size-modal-qty > span {
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}

.qty-control {
    display: grid;
    grid-template-columns: 40px 56px 40px;
    height: 40px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
}

.qty-control button,
.qty-control input {
    border: 0;
    background: transparent;
    color: var(--fg);
    text-align: center;
    min-width: 0;
}

.qty-control button {
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
}

.qty-control button:hover {
    background: var(--soft);
    color: var(--fg);
}

.qty-control input {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    padding: 0;
    appearance: textfield;
    -moz-appearance: textfield;
    font-size: 15px;
    line-height: 40px;
    font-weight: 700;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.size-modal-add {
    width: 100%;
    min-height: 44px;
    margin-top: 20px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-fg);
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    transition: filter 0.18s ease, opacity 0.18s ease;
}

.size-modal-add:hover:not(:disabled) { filter: brightness(1.04); }
.size-modal-add:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.payment-page .checkout-layout {
    align-items: start;
}

.payment-summary form {
    margin-top: 18px;
}

.payment-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 44px;
    margin-top: 16px;
}

.payment-note,
.payment-success-text {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 21px;
}

.payment-receipt .summary-row {
    margin-top: 18px;
}

.receipt-status {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 18px;
    border-radius: 999px;
    background: #e9f8ef;
    padding: 7px 12px;
    color: #176532;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .header-inner { grid-template-columns: 220px 1fr auto; }
    .main-nav { gap: 20px; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .checkout-layout,
    .order-detail-grid,
    .cabinet-main-grid,
    .profile-edit-grid { grid-template-columns: 1fr; }
    .direct-buy-form { grid-template-columns: 1fr; }
    .cabinet-social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .summary { grid-column: auto; grid-row: auto; }
}

@media (max-width: 820px) {
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        height: auto;
        min-height: 58px;
        padding: 10px 0;
    }
    .main-nav {
        order: 3;
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 20px;
        overflow-x: auto;
        padding: 4px 0 2px;
    }
    .header-actions::before { display: none; }
    .user-menu-link span:not(.user-avatar) { display: none; }
    .user-dropdown { right: -8px; }
    .hero,
    .hero-copy { min-height: 430px; }
    .hero h1 { font-size: clamp(46px, 13vw, 66px); }
    .section-head,
    .brand-section-head,
    .cabinet-top,
    .cabinet-section-head,
    .orders-hero,
    .orders-list-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .orders-page-actions { justify-content: flex-start; margin-bottom: 26px; }
    .orders-score-card { width: 140px; }
    .orders-stat-grid { grid-template-columns: 1fr; }
    .cabinet-stats { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-layout { grid-template-columns: 1fr; gap: 32px; }
    .product-features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .footer-legal { text-align: left; }
    .checkout-form,
    .admin-toolbar { grid-template-columns: 1fr; }
    .checkout-form label:nth-of-type(3),
    .checkout-form label:nth-of-type(5),
    .checkout-form label:nth-of-type(6),
    .checkout-form button { grid-column: auto; }
    .order-row { grid-template-columns: 1fr; }
    .auth-page { min-height: auto; padding: 30px 16px 58px; }
    .auth-card { padding: 22px; }
    .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .header-actions { gap: 0; }
    .icon-link { width: 38px; height: 38px; }
    .brand-title { font-size: 22px; }
    .brand-subtitle { letter-spacing: 0.18em; }
    .hero-actions { flex-wrap: wrap; }
    .product-grid { grid-template-columns: 1fr; }
    .breadcrumbs { flex-wrap: wrap; }
    .product-detail-info h1 { font-size: 26px; line-height: 32px; }
    .product-current-price { font-size: 28px; line-height: 34px; }
    .product-actions { gap: 8px; }
    .footer-grid { grid-template-columns: 1fr; }
    .product-title { min-height: auto; }
    .profile-grid div { grid-template-columns: 1fr; gap: 4px; }
    .profile-grid dd { text-align: left; }
    .profile-password-action { align-items: flex-start; flex-direction: column; justify-content: center; padding: 10px 16px; }
    .profile-link-card { grid-template-columns: 42px minmax(0, 1fr); }
    .profile-link-card button { grid-column: 1 / -1; }
    .favorites-head { align-items: flex-start; flex-direction: column; }
    .favorites-head h1 { font-size: 42px; }
    .orders-page-actions { flex-wrap: wrap; }
    .orders-bottom-nav { flex-direction: column; }
    .cabinet-social-grid { grid-template-columns: 1fr; }
    .cabinet-page h1 { font-size: 32px; line-height: 38px; }
    .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
}
