/* Color Scheme Variables */

:root {
    --primary-color: #c82672;
    --primary-light: #f6d8e6;
    --primary-dark: #861946;
    --primary-vibrant: #e24187;
    --secondary-color: #e1816e;
    --secondary-light: #f5ded9;
    --secondary-dark: #a84131;
    --accent-color: #6f9c4a;
    --accent-light: #dcebcf;
    --accent-dark: #3f7029;
    --gradient-primary: linear-gradient(135deg, #c82672, #e1816e);
    --gradient-secondary: linear-gradient(135deg, #e1816e, #6f9c4a);
    --gradient-accent: linear-gradient(90deg, #c82672, #e1816e, #6f9c4a);
    --text-primary: #2c2025;
    --text-secondary: #6e5962;
    --bg-primary: #fffafb;
    --bg-secondary: #f4eef0;
    --bg-strong: #ebe1e5;
    --border-color: #dfd3d8;
    --success-color: #25b12a;
    --warning-color: #eea411;
    --error-color: #d3314c;
    --footer-bg: #27151d;
    --footer-text: #e6dbe1;
    --primary-overlay-90: rgba(186, 18, 133, 0.9);
    --primary-overlay-75: rgba(186, 18, 133, 0.75);
}


/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text-primary);
    background: var(--bg-secondary);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container { width: min(var(--max-width, 1440px), calc(100% - 48px)); margin: 0 auto; }

:root {
    --max-width: 1440px;
    --header-height: 72px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-soft: 0 12px 32px color-mix(in srgb, var(--text-primary) 8%, transparent);
    --shadow-strong: 0 16px 48px color-mix(in srgb, var(--text-primary) 14%, transparent);
}

.section { padding: 58px 0; background: var(--bg-primary); border-top: 1px solid var(--border-color); }
.section.alt { background: var(--bg-secondary); }
.scroll-anchor {
    display: block;
    position: relative;
    top: calc(var(--header-height) * -1);
    visibility: hidden;
}
.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}
.section-kicker {
    margin: 0 0 6px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.section-title,
.section h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 900;
}
.section-subtitle,
.section-header p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 15px;
}
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 900;
}
.section-link:hover { border-color: var(--primary-color); color: var(--primary-color); }
.section-link svg { width: 17px; height: 17px; stroke: currentColor; fill: none; }


/* VARIANT5 Header Base */
.v5-topbar {
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 13px;
}
.v5-topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.v5-topbar ul {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: color-mix(in srgb, var(--footer-text) 82%, var(--footer-bg));
}
.v5-topbar strong { color: var(--bg-primary); font-weight: 800; }
.v5-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: color-mix(in srgb, var(--bg-primary) 94%, transparent);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(14px);
}
.v5-header-inner {
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    align-items: center;
    gap: 24px;
}
.v5-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
}
.v5-brand span:last-child { min-width: 0; }
.v5-brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--bg-primary);
    background: var(--primary-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 900;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--bg-primary));
}
.v5-brand-mark img,
.v5-footer-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.v5-search {
    height: 46px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.v5-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 16px;
    color: var(--text-primary);
    background: transparent;
}
.v5-search input::placeholder { color: color-mix(in srgb, var(--text-secondary) 72%, var(--bg-secondary)); }
.v5-search button {
    width: 48px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--text-primary);
    background: transparent;
    cursor: pointer;
}
.v5-search button svg,
.v5-icon-btn svg,
.v5-header-phone svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.v5-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.v5-header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}
.v5-icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    background: var(--bg-primary);
    cursor: pointer;
}
.v5-icon-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.v5-cart-dot {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    color: var(--bg-primary);
    background: var(--accent-color);
    border: 2px solid var(--bg-primary);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}
.v5-menu-btn { display: none; }
.v5-nav {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}
.v5-nav-inner,
.v5-chip-row {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.v5-nav-inner::-webkit-scrollbar,
.v5-chip-row::-webkit-scrollbar { display: none; }
.v5-nav a,
.v5-chip-row a,
.v5-mini-nav a {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}
.v5-nav a:hover,
.v5-nav a.active,
.v5-chip-row a:hover,
.v5-mini-nav a:hover {
    color: var(--primary-dark);
    background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-primary));
}
.v5-mini-nav { display: flex; align-items: center; gap: 8px; }

@media (max-width: 980px) {
    .v5-header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
    .v5-brand { white-space: normal; line-height: 1.1; }
    .v5-brand span:last-child { overflow-wrap: anywhere; }
    .v5-header-actions { min-width: max-content; justify-self: end; }
    .v5-search { grid-column: 1 / -1; grid-row: 2; margin-bottom: 12px; }
    .v5-header-phone { display: none; }
    .v5-menu-btn { display: grid; }
    .v5-topbar ul { display: none; }
}
@media (max-width: 560px) {
    .v5-topbar { font-size: 11px; }
    .v5-topbar-inner { justify-content: center; text-align: center; }
    .v5-brand { gap: 8px; font-size: 18px; }
    .v5-brand-mark { width: 34px; height: 34px; }
    .v5-icon-btn { width: 38px; height: 38px; }
    .v5-header-actions .v5-icon-btn[title="Поиск"],
    .v5-header-actions .v5-icon-btn[title="Профиль"],
    .v5-header-actions .v5-icon-btn[title="Избранное"] { display: none; }
}

.v5-header--split .v5-header-inner { grid-template-columns: auto 1fr auto; }
.v5-search-row { padding-bottom: 14px; }
.v5-search-row .v5-search { max-width: 760px; margin-left: auto; }
@media (max-width: 980px) {
    .v5-header--split .v5-mini-nav { display: none; }
    .v5-header--split .v5-header-inner { grid-template-columns: minmax(0, 1fr) auto; }
    .v5-search-row .v5-search { max-width: none; }
}


/* VARIANT5 Hero Base */
.v5-hero { padding: 28px 0 40px; }
.v5-hero-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr) 304px; gap: 20px; align-items: stretch; }
.v5-category-rail {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}
.v5-rail-title {
    padding: 8px 10px 10px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.v5-rail-link {
    min-height: 44px;
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 800;
}
.v5-rail-link:hover,
.v5-rail-link.active { background: var(--bg-secondary); }
.v5-rail-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-primary));
}
.v5-rail-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.v5-rail-count { color: var(--text-secondary); font-size: 12px; font-weight: 800; }
.v5-hero-main {
    position: relative;
    min-height: 520px;
    display: grid;
    align-items: end;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--footer-bg);
    box-shadow: var(--shadow-strong);
}
.v5-hero-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--footer-bg) 78%, transparent), color-mix(in srgb, var(--footer-bg) 18%, transparent) 58%, color-mix(in srgb, var(--footer-bg) 42%, transparent));
}
.v5-hero-media {
    position: absolute;
    inset: 0;
}
.v5-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.v5-hero-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 68% 24%, color-mix(in srgb, var(--accent-color) 38%, transparent), transparent 28%),
        linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}
.v5-hero-fallback span {
    color: color-mix(in srgb, var(--bg-primary) 16%, transparent);
    font-size: 128px;
    font-weight: 900;
}
.v5-hero-copy {
    position: relative;
    z-index: 1;
    width: min(580px, calc(100% - 48px));
    padding: 42px;
    color: var(--bg-primary);
}
.v5-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 18px;
    padding: 5px 10px;
    border: 1px solid color-mix(in srgb, var(--bg-primary) 32%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-primary) 12%, transparent);
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}
.v5-hero h1 {
    margin: 0 0 16px;
    font-size: 48px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
}
.v5-hero-copy p {
    max-width: 480px;
    margin: 0 0 28px;
    color: var(--footer-text);
    font-size: 17px;
}
.v5-deal-stack { display: grid; gap: 16px; }
.v5-deal-card {
    min-height: 160px;
    display: grid;
    grid-template-columns: 1fr 112px;
    gap: 14px;
    align-items: center;
    padding: 18px;
    overflow: hidden;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}
.v5-deal-card.dark {
    color: var(--bg-primary);
    background: var(--footer-bg);
    border-color: var(--footer-bg);
}
.v5-deal-card strong { display: block; margin-bottom: 6px; color: inherit; font-size: 18px; line-height: 1.2; }
.v5-deal-card span { display: block; color: var(--text-secondary); font-size: 13px; font-weight: 800; }
.v5-deal-card.dark span { color: color-mix(in srgb, var(--footer-text) 82%, var(--footer-bg)); }
.v5-deal-image {
    height: 120px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--radius-md);
    color: var(--primary-color);
    background: var(--bg-secondary);
}
.v5-deal-image img { width: 100%; height: 100%; object-fit: cover; }
.v5-deal-image svg { width: 36px; height: 36px; stroke: currentColor; fill: none; }

@media (max-width: 1180px) {
    .v5-hero-layout { grid-template-columns: 220px minmax(0, 1fr); }
    .v5-deal-stack { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .v5-hero-layout { grid-template-columns: 1fr; }
    .v5-category-rail { grid-template-columns: repeat(2, 1fr); }
    .v5-rail-title { grid-column: 1 / -1; }
    .v5-hero-main { min-height: 420px; }
    .v5-hero-copy { padding: 30px; }
    .v5-hero h1 { font-size: 36px; }
    .v5-deal-stack { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .v5-category-rail { grid-template-columns: 1fr; }
    .v5-hero-main { min-height: 390px; }
    .v5-hero-copy { width: 100%; padding: 24px; }
    .v5-hero h1 { font-size: 30px; }
    .v5-hero-copy p { font-size: 15px; }
    .v5-hero-fallback span { font-size: 90px; }
    .v5-deal-card { grid-template-columns: 1fr 104px; }
}

.v5-hero--split-cards .v5-hero-layout { grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr); }
.v5-hero--split-cards .v5-hero-main {
    min-height: 430px;
    background: var(--footer-bg);
}
.v5-hero--split-cards .v5-hero-main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, color-mix(in srgb, var(--footer-bg) 86%, transparent), color-mix(in srgb, var(--footer-bg) 44%, transparent) 48%, color-mix(in srgb, var(--footer-bg) 8%, transparent));
    pointer-events: none;
}
.v5-hero--split-cards .v5-hero-main::after { display: none; }
.v5-hero--split-cards .v5-hero-copy { z-index: 2; }
.v5-hero--split-cards .v5-deal-stack { grid-template-columns: repeat(2, 1fr); }
.v5-hero--split-cards .v5-deal-card { min-height: 205px; }
.v5-hero--split-cards .v5-deal-card:first-child { grid-column: 1 / -1; }
@media (max-width: 980px) { .v5-hero--split-cards .v5-hero-layout, .v5-hero--split-cards .v5-deal-stack { grid-template-columns: 1fr; } }


.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; }

.btn-primary { background: var(--gradient-primary); color: var(--bg-primary); box-shadow: 0 12px 28px color-mix(in srgb, var(--primary-color) 24%, transparent); }
.btn-primary:hover { box-shadow: 0 14px 34px color-mix(in srgb, var(--secondary-color) 28%, transparent); }
.btn-light { background: color-mix(in srgb, var(--secondary-color) 10%, var(--bg-primary)); color: var(--secondary-dark); }
.btn-outline { background: transparent; border-color: var(--primary-color); color: var(--primary-dark); }
.btn-outline:hover { background: color-mix(in srgb, var(--primary-color) 9%, var(--bg-primary)); }


/* VARIANT5 Product Cards */
.product-grid { display: grid; gap: 18px; }
.product-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
    border-color: color-mix(in srgb, var(--primary-color) 34%, var(--border-color));
    box-shadow: var(--shadow-soft);
}
.product-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--bg-secondary);
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}
.product-card:hover .product-card-image img { transform: scale(1.04); }
.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--bg-primary);
    background: var(--accent-color);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.product-card-body { display: grid; gap: 10px; padding: 16px; }
.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.product-card-category {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.product-card-title {
    min-height: 42px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}
.product-card-price {
    color: var(--text-primary);
    font-size: 19px;
    font-weight: 900;
}
.product-card-link {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
}
.product-card-cart-btn {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    background: var(--bg-primary);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: none;
}
.product-card-cart-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--bg-primary);
}
.product-card-cart-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; }
@media (max-width: 1020px) {
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
    .product-grid { grid-template-columns: 1fr !important; }
}

.product-grid { grid-template-columns: repeat(4, 1fr); }
.product-card--accent {
    border: 2px solid color-mix(in srgb, var(--primary-color) 46%, var(--border-color));
    box-shadow: inset 0 5px 0 var(--primary-color);
}
.product-card--accent .product-card-image { aspect-ratio: 1 / 1; margin: 12px 12px 0; border-radius: var(--radius-md); }
.product-card--accent .product-card-cart-btn { width: 100%; background: var(--primary-color); border-color: var(--primary-color); color: var(--bg-primary); }
.product-card--accent .product-card-cart-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.product-card-stars .half-filled { margin-left: -14px; clip-path: inset(0 50% 0 0); }

/* VARIANT5 Product Detail */
.breadcrumbs { padding: 16px 0; border-bottom: 1px solid var(--border-color); background: var(--bg-primary); }
.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 0;
    margin: 0;
}
.breadcrumbs-list a { color: var(--text-secondary); }
.breadcrumbs-list a:hover { color: var(--primary-color); }
.breadcrumbs-list .separator { color: var(--border-color); }
.breadcrumbs-list .current { color: var(--text-primary); font-weight: 800; }
.product-detail { padding: 48px 0 72px; background: var(--bg-primary); }
.product-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr); gap: 46px; align-items: start; }
.product-gallery { position: sticky; top: calc(var(--header-height) + 24px); }
.product-gallery-main {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-info {
    display: grid;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
}
.product-info-category {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.product-info h1 {
    margin: 0;
    color: var(--text-primary);
    font-size: 34px;
    line-height: 1.16;
    font-weight: 900;
}
.product-price-block {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.product-price-current {
    color: var(--text-primary);
    font-size: 38px;
    line-height: 1;
    font-weight: 900;
}
.product-price-note {
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--success-color);
    background: color-mix(in srgb, var(--success-color) 10%, var(--bg-primary));
    font-size: 12px;
    font-weight: 900;
}
.product-description { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.product-purchase-row { display: flex; flex-wrap: wrap; gap: 10px; }
.quantity-control {
    height: 44px;
    display: inline-grid;
    grid-template-columns: 38px 50px 38px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.quantity-control button,
.quantity-control input {
    border: 0;
    text-align: center;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 900;
}
.quantity-control button { cursor: pointer; }
.quantity-control input { border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); }
.product-purchase-row .btn { flex: 1 1 180px; }
.product-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.product-meta-item {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 800;
}
.product-meta-item svg { width: 20px; height: 20px; stroke: var(--primary-color); fill: none; }
.product-tabs { display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border-color); }
.tab-btn {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-weight: 900;
    cursor: pointer;
}
.tab-btn.active,
.tab-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.tab-content p { margin: 0; color: var(--text-secondary); }
.related-section { border-top: 1px solid var(--border-color); }

@media (max-width: 980px) {
    .product-detail-grid { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
}
@media (max-width: 620px) {
    .product-info { padding: 20px; }
    .product-info h1 { font-size: 26px; }
    .product-price-current { font-size: 30px; }
    .product-meta { grid-template-columns: 1fr; }
    .product-tabs { overflow-x: auto; }
}

.product-detail--minimal-focus .product-detail-grid { grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.7fr); }
.product-detail--minimal-focus .product-gallery-main {
    border-color: transparent;
    background: var(--bg-secondary);
}
.product-detail--minimal-focus .product-info {
    padding: 0;
    border: 0;
    background: transparent;
}
.product-detail--minimal-focus .product-price-block { padding: 14px 0; }
.product-detail--minimal-focus .product-meta-item { background: var(--bg-primary); }
@media (max-width: 980px) { .product-detail--minimal-focus .product-detail-grid { grid-template-columns: 1fr; } .product-detail--minimal-focus .product-info { padding: 20px 0 0; } }


/* VARIANT5 Categories */
.v5-category-grid { display: grid; gap: 14px; }
.v5-category-tile {
    min-height: 154px;
    display: grid;
    align-content: end;
    gap: 6px;
    padding: 18px;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--footer-bg);
    color: var(--bg-primary);
}
.v5-category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
}
.v5-category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--footer-bg) 5%, transparent), color-mix(in srgb, var(--footer-bg) 82%, transparent));
}
.v5-category-tile strong,
.v5-category-tile span,
.v5-category-fallback {
    position: relative;
    z-index: 1;
}
.v5-category-tile strong { font-size: 16px; }
.v5-category-tile span { color: var(--footer-text); font-size: 13px; font-weight: 800; }
.v5-category-fallback {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-primary));
    font-size: 22px;
    font-weight: 900;
}
.v5-category-chip,
.v5-category-stat {
    display: grid;
    gap: 8px;
    padding: 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}
.v5-category-chip { grid-template-columns: 48px 1fr auto; align-items: center; }
.v5-category-chip strong,
.v5-category-stat strong { color: var(--text-primary); font-size: 16px; }
.v5-category-chip span,
.v5-category-stat span { color: var(--text-secondary); font-size: 13px; font-weight: 800; }
.v5-category-chip:hover,
.v5-category-stat:hover { border-color: var(--primary-color); }
@media (max-width: 1180px) {
    .v5-category-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 700px) {
    .v5-category-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    .v5-category-grid { grid-template-columns: 1fr !important; }
}

.v5-category-grid--rail {
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.v5-category-grid--rail::-webkit-scrollbar { display: none; }
@media (max-width: 1180px) {
    .v5-category-grid--rail { grid-template-columns: none !important; }
}


/* VARIANT5 Footer */
.v5-footer {
    padding: 48px 0 24px;
    color: var(--footer-text);
    background: var(--footer-bg);
}
.v5-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 38px;
}
.v5-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--bg-primary);
    font-size: 22px;
    font-weight: 900;
}
.v5-footer-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    color: var(--bg-primary);
    background: var(--primary-color);
    font-size: 15px;
    font-weight: 900;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--bg-primary) 22%, transparent);
}
.v5-footer p { max-width: 380px; margin: 0; color: var(--footer-text); }
.v5-footer h3 {
    margin: 0 0 14px;
    color: var(--bg-primary);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}
.v5-footer ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--footer-text);
    font-size: 14px;
}
.v5-footer a:hover { color: var(--bg-primary); }
.v5-footer svg { width: 17px; height: 17px; stroke: currentColor; fill: none; }
.v5-footer-bottom,
.v5-footer-actions,
.v5-footer-compact-row,
.v5-footer-minimal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.v5-footer-bottom {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid color-mix(in srgb, var(--bg-primary) 12%, transparent);
    color: color-mix(in srgb, var(--footer-text) 72%, var(--footer-bg));
    font-size: 13px;
}
@media (max-width: 860px) {
    .v5-footer-grid { grid-template-columns: 1fr 1fr; }
    .v5-footer-bottom,
    .v5-footer-compact-row,
    .v5-footer-minimal-row { align-items: start; flex-direction: column; }
}
@media (max-width: 560px) {
    .v5-footer-grid { grid-template-columns: 1fr; }
}

.v5-footer--split-contact { padding: 38px 0; background: var(--gradient-primary); color: var(--bg-primary); }
.v5-footer--split-contact .v5-footer-brand,
.v5-footer--split-contact p { color: var(--bg-primary); }
.v5-footer-split {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 26px;
    align-items: center;
}
.v5-footer-contact-panel {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--bg-primary) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--bg-primary) 22%, transparent);
}
.v5-footer-contact-panel a { display: inline-flex; align-items: center; gap: 9px; color: var(--bg-primary); font-weight: 900; }
@media (max-width: 860px) { .v5-footer-split { grid-template-columns: 1fr; } }


/* Trust strip */
.trust-strip { padding: 16px 0 54px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust-item {
    min-height: 86px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}
.trust-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-primary));
}
.trust-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.trust-item strong { display: block; color: var(--text-primary); font-size: 15px; }
.trust-item span { color: var(--text-secondary); font-size: 13px; }

/* Catalog intro for pre-product state */
.v5-catalog-intro { border-top: 1px solid var(--border-color); }
.v5-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.v5-intro-item {
    display: grid;
    gap: 8px;
    min-height: 118px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
}
.v5-intro-item strong { color: var(--text-primary); font-size: 18px; }
.v5-intro-item span { color: var(--text-secondary); font-size: 14px; }

/* Showcase */
.showcase { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
.showcase-main,
.showcase-side {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}
.showcase-main { display: grid; grid-template-columns: 1fr 0.9fr; min-height: 360px; }
.showcase-copy { display: grid; align-content: center; gap: 18px; padding: 42px; }
.showcase-copy p:not(.section-kicker) { margin: 0; color: var(--text-secondary); }
.showcase-art {
    min-height: 280px;
    background:
        radial-gradient(circle at 28% 22%, color-mix(in srgb, var(--accent-color) 20%, transparent), transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 18%, var(--bg-primary)), color-mix(in srgb, var(--secondary-color) 12%, var(--bg-primary)));
    position: relative;
}
.showcase-art::before,
.showcase-art::after {
    content: "";
    position: absolute;
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    box-shadow: var(--shadow-soft);
}
.showcase-art::before { width: 46%; height: 44%; left: 16%; top: 18%; transform: rotate(-7deg); }
.showcase-art::after { width: 40%; height: 38%; right: 14%; bottom: 16%; transform: rotate(8deg); }
.showcase-side { display: grid; grid-template-rows: 1fr 1fr; }
.side-offer {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 16px;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}
.side-offer:last-child { border-bottom: 0; }
.side-offer strong { display: block; margin-bottom: 6px; color: var(--text-primary); font-size: 18px; }
.side-offer span { color: var(--text-secondary); font-size: 13px; font-weight: 700; }
.side-img {
    height: 122px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--radius-md);
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-primary));
}
.side-img svg { width: 42px; height: 42px; stroke: currentColor; fill: none; }

/* Content pages */
.main-content {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}
.main-content h1,
.main-content h2,
.main-content h3 { color: var(--text-primary); }
.main-content p,
.main-content li { color: var(--text-secondary); }

/* Cart modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--footer-bg) 55%, transparent);
    backdrop-filter: blur(4px);
}
.cart-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(95%, 760px);
    max-height: 85vh;
    overflow-y: auto;
    transform: translate(-50%, -50%);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 64px color-mix(in srgb, var(--footer-bg) 24%, transparent);
}
.cart-header,
.cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
}
.cart-footer { border-top: 1px solid var(--border-color); border-bottom: 0; }
.cart-header h3 { margin: 0; font-size: 20px; }
.close-cart { color: var(--text-secondary); font-size: 28px; line-height: 1; cursor: pointer; }
.cart-body { padding: 18px 22px; }
.show-cart { width: 100%; border-collapse: collapse; }
.show-cart th,
.show-cart td { padding: 10px 0; border-bottom: 1px solid var(--border-color); text-align: left; font-size: 14px; }
.show-cart img { width: 58px; height: 58px; object-fit: cover; border-radius: var(--radius-md); }
.cart-total { display: flex; justify-content: space-between; padding-top: 16px; font-size: 18px; font-weight: 900; }
.cart-footer button,
.cart-footer a {
    min-height: 42px;
    flex: 1;
    border: 0;
    border-radius: var(--radius-md);
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.clear-cart,
.close-btn { background: var(--bg-secondary); color: var(--text-primary); }
.order-btn { background: var(--primary-color); color: var(--bg-primary); }

@media (max-width: 1180px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase,
    .showcase-main { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .container { width: min(var(--max-width), calc(100% - 32px)); }
    .section { padding: 42px 0; }
    .section-header { align-items: start; flex-direction: column; }
    .section-title,
    .section h2 { font-size: 24px; }
    .showcase-copy { padding: 28px; }
    .side-offer { grid-template-columns: 1fr 120px; }
    .v5-intro-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .trust-grid { grid-template-columns: 1fr; }
    .side-offer { grid-template-columns: 1fr 104px; }
    .cart-footer { flex-direction: column; }
    .cart-footer button,
    .cart-footer a { width: 100%; }
}
