/* Color Scheme Variables */

:root {
    --primary-color: #b43874;
    --primary-light: #f1bfd5;
    --primary-dark: #64213f;
    --primary-vibrant: #cf4f8b;
    --secondary-color: #d98562;
    --secondary-light: #f0c9b8;
    --secondary-dark: #87422a;
    --accent-color: #3a9a6e;
    --accent-light: #b9decf;
    --accent-dark: #236343;
    --gradient-primary: linear-gradient(135deg, #b43874, #d98562);
    --gradient-secondary: linear-gradient(135deg, #d98562, #3a9a6e);
    --gradient-accent: linear-gradient(90deg, #b43874, #d98562, #3a9a6e);
    --text-primary: #2d2228;
    --text-secondary: #7a6670;
    --bg-primary: #fffaf8;
    --bg-secondary: #f7f0ed;
    --bg-strong: #eadbd5;
    --border-color: #dfd2cc;
    --success-color: #1eb34b;
    --warning-color: #f0c724;
    --error-color: #e1193a;
    --footer-bg: #2e2228;
    --footer-text: #e3dde0;
    --primary-overlay-90: rgba(146, 12, 95, 0.9);
    --primary-overlay-75: rgba(146, 12, 95, 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;
}
.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--masthead {
    position: relative;
    background: var(--bg-primary);
    border-bottom: 4px solid var(--text-primary);
    backdrop-filter: none;
}
.v5-masthead-top {
    min-height: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 800;
}
.v5-masthead-top a { display: inline-flex; align-items: center; gap: 8px; }
.v5-masthead-top svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.v5-masthead-brand {
    min-height: 92px;
    display: grid;
    place-items: center;
    text-align: center;
}
.v5-header--masthead .v5-brand {
    justify-content: center;
    text-align: center;
    white-space: normal;
    font-size: 40px;
    letter-spacing: 0;
}
.v5-header--masthead .v5-brand span:last-child { overflow-wrap: anywhere; }
.v5-header--masthead .v5-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 50%;
}
.v5-masthead-nav {
    min-height: 62px;
    display: grid;
    grid-template-columns: 1fr minmax(260px, 420px) auto;
    align-items: center;
    gap: 18px;
    border-top: 1px solid var(--border-color);
}
.v5-header--masthead .v5-search {
    height: 40px;
    border-radius: 999px;
}
.v5-header--masthead .v5-search button { height: 40px; }
.v5-header--masthead .v5-icon-btn {
    border-radius: 999px;
    background: var(--bg-secondary);
}
@media (max-width: 980px) {
    .v5-masthead-nav { grid-template-columns: minmax(0, 1fr) auto; padding-bottom: 12px; }
    .v5-masthead-nav .v5-mini-nav { grid-column: 1 / -1; overflow-x: auto; }
    .v5-header--masthead .v5-search { grid-column: 1 / -1; grid-row: auto; margin-bottom: 0; }
}
@media (max-width: 560px) {
    .v5-masthead-top { justify-content: center; }
    .v5-masthead-top a:first-child { display: none; }
    .v5-header--masthead .v5-brand { font-size: 28px; }
}


/* 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--board .v5-hero-layout { grid-template-columns: 276px 1fr; }
.v5-hero--board .v5-hero-main {
    min-height: 420px;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    align-items: stretch;
    background: var(--bg-primary);
    box-shadow: var(--shadow-soft);
}
.v5-hero--board .v5-hero-main::after { display: none; }
.v5-hero--board .v5-hero-copy {
    width: auto;
    align-self: center;
    color: var(--text-primary);
}
.v5-hero--board .v5-eyebrow { color: var(--primary-color); border-color: color-mix(in srgb, var(--primary-color) 16%, var(--bg-primary)); background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-primary)); }
.v5-hero--board .v5-hero-copy p { color: var(--text-secondary); }
.v5-hero-photo {
    min-height: 320px;
    margin: 0;
    overflow: hidden;
    background: var(--bg-secondary);
}
.v5-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.v5-hero--board .v5-deal-stack { grid-column: 1 / -1; padding: 22px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1180px) { .v5-hero--board .v5-deal-stack { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
    .v5-hero--board .v5-hero-layout,
    .v5-hero--board .v5-hero-main { grid-template-columns: 1fr; }
    .v5-hero-photo { min-height: 260px; order: -1; }
}


.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 { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.btn-primary { background: var(--primary-color); color: var(--bg-primary); border-color: color-mix(in srgb, var(--primary-color) 65%, var(--border-color)); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-light { background: var(--bg-primary); color: var(--text-primary); }
.btn-outline { background: var(--bg-primary); border-color: color-mix(in srgb, var(--secondary-color) 35%, var(--border-color)); color: var(--secondary-dark); }
.btn-outline:hover { border-color: var(--secondary-color); color: var(--secondary-color); }


/* 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--editorial .product-card-image { aspect-ratio: 3 / 4; }
.product-card--editorial .product-card-body {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: color-mix(in srgb, var(--bg-primary) 94%, transparent);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.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--panel .product-detail-grid { grid-template-columns: minmax(420px, 0.82fr) minmax(0, 1.18fr); gap: 34px; align-items: start; }
.product-detail--panel .product-gallery { position: sticky; top: calc(var(--header-height) + 24px); }
.product-detail--panel .product-gallery-main { aspect-ratio: 1 / 1; box-shadow: var(--shadow-soft); }
.product-detail--panel .product-info { margin-top: 0; position: relative; z-index: 2; width: auto; justify-self: stretch; box-shadow: var(--shadow-strong); }
@media (max-width: 980px) { .product-detail--panel .product-detail-grid { grid-template-columns: 1fr; } .product-detail--panel .product-gallery { position: static; } }
@media (max-width: 620px) { .product-detail--panel .product-info { width: 100%; } }


/* 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--numbered {
    grid-template-columns: repeat(4, 1fr);
    counter-reset: category;
}
.v5-category-grid--numbered .v5-category-stat {
    counter-increment: category;
    min-height: 168px;
    align-content: space-between;
    background: var(--bg-primary);
}
.v5-category-grid--numbered .v5-category-stat::before {
    content: counter(category, decimal-leading-zero);
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 900;
}
.v5-category-grid--numbered .v5-category-fallback { display: none; }


/* 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;
}
.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--catalog-board { background: var(--bg-secondary); color: var(--text-secondary); }
.v5-footer-board {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--border-color);
}
.v5-footer-board > div {
    min-height: 210px;
    padding: 24px;
    background: var(--bg-primary);
}
.v5-footer--catalog-board .v5-footer-brand,
.v5-footer--catalog-board h3,
.v5-footer--catalog-board a:hover { color: var(--text-primary); }
.v5-footer--catalog-board p,
.v5-footer--catalog-board ul { color: var(--text-secondary); }
@media (max-width: 860px) { .v5-footer-board { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .v5-footer-board { 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; }

/* 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:
        linear-gradient(90deg, color-mix(in srgb, var(--footer-bg) 16%, transparent), transparent 58%),
        url('../hero-flowers.jpg') center / cover;
    position: relative;
}
.showcase-art::before,
.showcase-art::after {
    display: none;
}
.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);
    overflow-wrap: anywhere;
}
.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; }
}

@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%; }
}

/* Flower storefront site-level polish */
:root {
    --paper-color: #fbf4f0;
    --studio-ink: #24171d;
    --stem-color: #2f7554;
    --rose-color: #b43874;
    --petal-color: #f5dce5;
    --clay-color: #cf7a58;
    --line-color: #d8c5bd;
    --radius-lg: 8px;
    --radius-md: 7px;
}

body {
    background:
        linear-gradient(90deg, rgba(47, 117, 84, 0.055) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(180deg, rgba(180, 56, 116, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
        var(--paper-color);
}

.section {
    background: color-mix(in srgb, var(--bg-primary) 86%, var(--paper-color));
    border-top: 1px solid var(--line-color);
}

.v5-header--masthead {
    position: sticky;
    top: 0;
    background: color-mix(in srgb, var(--bg-primary) 92%, transparent);
    border-bottom: 1px solid var(--studio-ink);
    box-shadow: 0 14px 32px rgba(36, 23, 29, 0.08);
    backdrop-filter: blur(14px);
}

.v5-masthead-top {
    min-height: 32px;
    color: var(--footer-text);
    background: var(--studio-ink);
    border-bottom: 0;
}

.v5-masthead-top a:first-child {
    color: color-mix(in srgb, var(--footer-text) 86%, var(--petal-color));
}

.v5-masthead-brand {
    min-height: 82px;
    border-bottom: 1px solid var(--line-color);
}

.v5-header--masthead .v5-brand {
    font-size: 34px;
    color: var(--studio-ink);
}

.v5-header--masthead .v5-brand-mark {
    width: 60px;
    height: 60px;
    padding: 5px;
    border: 1px solid color-mix(in srgb, var(--rose-color) 24%, var(--bg-primary));
    border-radius: 50%;
    background: var(--bg-primary);
}

.v5-masthead-nav {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 460px) auto;
    border-top: 0;
}

.v5-mini-nav {
    gap: 4px;
}

.v5-mini-nav a {
    position: relative;
    padding: 8px 12px;
    color: var(--studio-ink);
}

.v5-mini-nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background: var(--stem-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
}

.v5-mini-nav a:hover {
    color: var(--studio-ink);
    background: transparent;
}

.v5-mini-nav a:hover::after {
    transform: scaleX(1);
}

.v5-header--masthead .v5-search {
    height: 42px;
    border-color: var(--line-color);
    border-radius: 999px;
    background: var(--paper-color);
}

.v5-header--masthead .v5-icon-btn {
    background: var(--bg-primary);
    border-color: var(--line-color);
}

.v5-cart-dot {
    background: var(--stem-color);
}

.v5-hero {
    padding: 30px 0 62px;
}

.v5-hero--board .v5-hero-layout {
    grid-template-columns: minmax(0, 1fr) 306px;
    gap: 18px;
    align-items: stretch;
}

.v5-hero--board .v5-hero-main {
    order: 1;
    min-height: 650px;
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
    overflow: hidden;
    border: 1px solid var(--line-color);
    border-radius: 8px 8px 88px 8px;
    background: var(--bg-primary);
    box-shadow: 0 26px 70px rgba(36, 23, 29, 0.11);
}

.v5-hero--board .v5-hero-main::before {
    content: "";
    position: absolute;
    inset: 20px;
    z-index: 1;
    border: 1px solid color-mix(in srgb, var(--line-color) 76%, transparent);
    border-radius: 6px 6px 66px 6px;
    pointer-events: none;
}

.v5-hero--board .v5-hero-copy {
    z-index: 2;
    align-self: center;
    padding: 78px 58px 44px;
}

.v5-eyebrow {
    min-height: 30px;
    border-radius: 0;
    letter-spacing: 0;
}

.v5-hero--board .v5-eyebrow {
    color: var(--rose-color);
    border: 1px solid color-mix(in srgb, var(--rose-color) 20%, var(--line-color));
    background: var(--petal-color);
}

.v5-hero h1 {
    max-width: 620px;
    font-size: 60px;
    line-height: 1.02;
    font-weight: 900;
}

.v5-hero-copy p {
    max-width: 540px;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.65;
}

.v5-hero-photo {
    min-height: 100%;
    margin: 20px 20px 20px 0;
    border-radius: 6px 6px 68px 6px;
}

.v5-hero-photo img {
    object-position: center;
}

.v5-hero--board .v5-deal-stack {
    z-index: 2;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 20px 20px;
    padding: 0;
    border: 1px solid var(--line-color);
    background: var(--bg-primary);
}

.v5-deal-card {
    min-height: 118px;
    border: 0;
    border-right: 1px solid var(--line-color);
    border-radius: 0;
    box-shadow: none;
}

.v5-deal-card:last-child {
    border-right: 0;
}

.v5-deal-card.dark {
    background: var(--studio-ink);
}

.v5-deal-card strong {
    font-size: 17px;
}

.v5-deal-image {
    width: 72px;
    height: 72px;
    justify-self: end;
    border-radius: 50%;
    color: var(--rose-color);
    background: var(--petal-color);
}

.v5-deal-image svg {
    width: 30px;
    height: 30px;
}

.v5-category-rail {
    order: 2;
    position: relative;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-color);
    border-radius: 8px 8px 8px 72px;
    background: var(--bg-primary);
    box-shadow: 0 18px 48px rgba(36, 23, 29, 0.08);
}

.v5-rail-title {
    padding: 22px 22px 14px;
    color: var(--studio-ink);
    border-bottom: 1px solid var(--line-color);
    font-size: 13px;
}

.v5-rail-title::after {
    content: "по настроению";
    display: block;
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
}

.v5-rail-link {
    min-height: 68px;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    padding: 13px 22px;
    border-radius: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line-color) 72%, transparent);
    font-size: 15px;
}

.v5-rail-link:last-child {
    border-bottom: 0;
}

.v5-rail-link:hover,
.v5-rail-link.active {
    background: color-mix(in srgb, var(--petal-color) 52%, var(--bg-primary));
}

.v5-rail-icon {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--stem-color);
}

.v5-rail-icon svg,
.v5-rail-count {
    display: none;
}

.trust-strip {
    padding: 0 0 68px;
}

.trust-grid {
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--line-color);
    background: var(--line-color);
}

.trust-item {
    min-height: 126px;
    align-items: start;
    border: 0;
    border-radius: 0;
    background: var(--bg-primary);
}

.trust-icon {
    border-radius: 50%;
    color: var(--stem-color);
    background: color-mix(in srgb, var(--stem-color) 11%, var(--bg-primary));
}

.showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.showcase-main {
    grid-template-columns: 0.82fr 1.18fr;
    min-height: 430px;
    border-color: var(--line-color);
    border-radius: 8px 8px 8px 72px;
}

.showcase-copy {
    padding: 54px;
}

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

.showcase-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 18px;
    overflow: visible;
    border: 0;
    background: transparent;
}

.side-offer {
    min-height: 164px;
    border: 1px solid var(--line-color);
    border-radius: 8px;
    background: var(--bg-primary);
}

.side-offer:last-child {
    border-bottom: 1px solid var(--line-color);
}

.side-img {
    border-radius: 50%;
    color: var(--stem-color);
    background: color-mix(in srgb, var(--stem-color) 10%, var(--bg-primary));
}

.v5-footer--catalog-board {
    padding-top: 58px;
    background: var(--studio-ink);
}

.v5-footer-board {
    border-color: color-mix(in srgb, var(--footer-text) 16%, var(--studio-ink));
    background: color-mix(in srgb, var(--footer-text) 16%, var(--studio-ink));
}

.v5-footer-board > div {
    background: color-mix(in srgb, var(--studio-ink) 92%, #fff);
}

.v5-footer--catalog-board .v5-footer-brand,
.v5-footer--catalog-board h3,
.v5-footer--catalog-board a:hover {
    color: var(--bg-primary);
}

.v5-footer--catalog-board p,
.v5-footer--catalog-board ul {
    color: color-mix(in srgb, var(--footer-text) 82%, var(--studio-ink));
}

@media (max-width: 1180px) {
    .v5-hero--board .v5-hero-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .v5-category-rail {
        order: 1;
        grid-template-columns: repeat(3, 1fr);
        border-radius: 8px;
    }

    .v5-rail-title {
        grid-column: 1 / -1;
    }

    .v5-hero--board .v5-hero-main {
        order: 2;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .v5-header--masthead .v5-brand {
        font-size: 28px;
    }

    .v5-masthead-nav .v5-header-actions {
        grid-column: 1 / -1;
        justify-self: end;
        min-width: 0;
        margin-top: 8px;
    }

    .v5-hero {
        padding-top: 18px;
    }

    .v5-hero--board .v5-hero-main {
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 8px 8px 52px 8px;
    }

    .v5-hero--board .v5-hero-main::before {
        inset: 14px;
        border-radius: 5px 5px 38px 5px;
    }

    .v5-hero-photo {
        min-height: 300px;
        margin: 14px;
        order: -1;
        border-radius: 6px 6px 38px 6px;
    }

    .v5-hero--board .v5-hero-copy {
        padding: 12px 28px 30px;
    }

    .v5-hero h1 {
        font-size: 38px;
    }

    .v5-hero-copy p {
        font-size: 16px;
    }

    .v5-hero--board .v5-deal-stack {
        grid-template-columns: 1fr;
        margin: 0 14px 14px;
    }

    .v5-deal-card {
        border-right: 0;
        border-bottom: 1px solid var(--line-color);
    }

    .v5-deal-card:last-child {
        border-bottom: 0;
    }

    .v5-category-rail {
        grid-template-columns: 1fr 1fr;
    }

    .showcase-main,
    .showcase-side {
        grid-template-columns: 1fr;
    }

    .showcase-main {
        border-radius: 8px 8px 52px 8px;
    }

    .showcase-art {
        min-height: 280px;
        order: -1;
    }
}

@media (max-width: 560px) {
    .v5-masthead-brand {
        min-height: 70px;
    }

    .v5-header--masthead .v5-brand {
        font-size: 24px;
    }

    .v5-header--masthead .v5-brand-mark {
        width: 46px;
        height: 46px;
    }

    .v5-category-rail,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .v5-rail-link {
        min-height: 58px;
    }

    .v5-hero h1 {
        font-size: 32px;
    }

    .v5-hero-photo {
        min-height: 250px;
    }

    .trust-item {
        min-height: 104px;
    }
}

/* Flower storefront override */
body {
    background: var(--bg-secondary);
}

.section {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.v5-header--masthead {
    position: sticky;
    top: 0;
    background: color-mix(in srgb, var(--bg-primary) 96%, transparent);
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.v5-masthead-top {
    min-height: 34px;
    color: var(--text-secondary);
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}

.v5-masthead-top a:first-child {
    color: var(--text-secondary);
}

.v5-masthead-brand {
    min-height: 86px;
    border-bottom: 0;
}

.v5-header--masthead .v5-brand {
    color: var(--text-primary);
    font-size: 36px;
}

.v5-header--masthead .v5-brand-mark {
    width: 54px;
    height: 54px;
    padding: 3px;
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
    border-radius: 50%;
    background: var(--bg-primary);
}

.v5-masthead-nav {
    min-height: 62px;
    grid-template-columns: 1fr minmax(260px, 420px) auto;
    border-top: 1px solid var(--border-color);
}

.v5-mini-nav {
    gap: 8px;
}

.v5-mini-nav a {
    padding: 9px 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.v5-mini-nav a::after {
    display: none;
}

.v5-mini-nav a:hover {
    color: var(--primary-dark);
    background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-primary));
}

.v5-header--masthead .v5-search {
    height: 40px;
    border-color: var(--border-color);
    border-radius: 999px;
    background: var(--bg-secondary);
}

.v5-header--masthead .v5-icon-btn {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.v5-cart-dot {
    background: var(--accent-color);
}

.v5-hero {
    padding: 28px 0 40px;
}

.v5-hero--board .v5-hero-layout {
    grid-template-columns: 276px minmax(0, 1fr);
    gap: 20px;
}

.v5-category-rail {
    order: initial;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-content: start;
    padding: 12px;
    overflow: visible;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    box-shadow: none;
}

.v5-rail-title {
    grid-column: auto;
    padding: 8px 10px 10px;
    color: var(--text-secondary);
    border-bottom: 0;
    font-size: 12px;
}

.v5-rail-title::after {
    display: none;
}

.v5-rail-link {
    min-height: 44px;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    padding: 7px 10px;
    border-bottom: 0;
    border-radius: var(--radius-md);
    font-size: 14px;
}

.v5-rail-link:hover,
.v5-rail-link.active {
    background: var(--bg-secondary);
}

.v5-rail-icon {
    width: 28px;
    height: 28px;
    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 {
    display: block;
}

.v5-rail-count {
    display: block;
}

.v5-hero--board .v5-hero-main {
    order: initial;
    min-height: 440px;
    grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    box-shadow: var(--shadow-soft);
}

.v5-hero--board .v5-hero-main::before {
    display: none;
}

.v5-hero--board .v5-hero-copy {
    z-index: 1;
    align-self: center;
    padding: 42px;
}

.v5-hero--board .v5-eyebrow {
    min-height: 28px;
    color: var(--primary-color);
    border: 1px solid color-mix(in srgb, var(--primary-color) 16%, var(--bg-primary));
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-primary));
}

.v5-hero h1 {
    max-width: 560px;
    font-size: 46px;
    line-height: 1.08;
}

.v5-hero-copy p {
    max-width: 500px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.55;
}

.v5-hero-photo {
    min-height: 320px;
    margin: 0;
    border-radius: 0;
}

.v5-hero--board .v5-deal-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0;
    padding: 22px;
    border: 0;
    background: transparent;
}

.v5-deal-card {
    min-height: 150px;
    grid-template-columns: 1fr 112px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
}

.v5-deal-card:last-child {
    border-right: 1px solid var(--border-color);
}

.v5-deal-card.dark {
    color: var(--bg-primary);
    background: var(--footer-bg);
}

.v5-deal-card strong {
    font-size: 18px;
}

.v5-deal-image {
    width: auto;
    height: 112px;
    justify-self: stretch;
    border-radius: var(--radius-md);
    color: var(--primary-color);
    background: var(--bg-secondary);
}

.v5-deal-image svg {
    width: 36px;
    height: 36px;
}

.trust-strip {
    padding: 16px 0 54px;
}

.trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    border: 0;
    background: transparent;
}

.trust-item {
    min-height: 86px;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
}

.trust-icon {
    border-radius: var(--radius-md);
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-primary));
}

.showcase {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
}

.showcase-main {
    grid-template-columns: 1fr 0.9fr;
    min-height: 360px;
    border-color: var(--border-color);
    border-radius: var(--radius-lg);
}

.showcase-copy {
    padding: 42px;
}

.showcase-art {
    min-height: 280px;
}

.showcase-side {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
}

.side-offer {
    min-height: auto;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    background: transparent;
}

.side-offer:last-child {
    border-bottom: 0;
}

.side-img {
    border-radius: var(--radius-md);
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-primary));
}

.v5-footer--catalog-board {
    padding-top: 48px;
    background: var(--bg-secondary);
}

.v5-footer-board {
    border-color: var(--border-color);
    background: var(--border-color);
}

.v5-footer-board > div {
    background: var(--bg-primary);
}

.v5-footer--catalog-board .v5-footer-brand,
.v5-footer--catalog-board h3,
.v5-footer--catalog-board a:hover {
    color: var(--text-primary);
}

.v5-footer--catalog-board p,
.v5-footer--catalog-board ul {
    color: var(--text-secondary);
}

@media (max-width: 1180px) {
    .v5-hero--board .v5-hero-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .v5-category-rail {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .v5-masthead-nav .v5-header-actions {
        grid-column: 1 / -1;
        justify-self: end;
        min-width: 0;
        margin-top: 0;
    }

    .v5-hero--board .v5-hero-layout,
    .v5-hero--board .v5-hero-main {
        grid-template-columns: 1fr;
    }

    .v5-category-rail {
        grid-template-columns: repeat(2, 1fr);
    }

    .v5-rail-title {
        grid-column: 1 / -1;
    }

    .v5-hero--board .v5-hero-copy {
        padding: 28px;
    }

    .v5-hero-photo {
        min-height: 270px;
        order: -1;
    }

    .v5-hero h1 {
        font-size: 34px;
    }

    .v5-hero--board .v5-deal-stack,
    .showcase,
    .showcase-main {
        grid-template-columns: 1fr;
    }

    .v5-deal-card {
        border-bottom: 1px solid var(--border-color);
    }

    .showcase-art {
        order: -1;
        min-height: 260px;
    }
}

@media (max-width: 560px) {
    .v5-header--masthead .v5-brand {
        font-size: 24px;
    }

    .v5-header--masthead .v5-brand-mark {
        width: 46px;
        height: 46px;
    }

    .v5-category-rail,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .v5-hero h1 {
        font-size: 30px;
    }
}
