/* Color Scheme Variables */

:root {
    --primary-color: #439d2f;
    --primary-light: #9fc397;
    --primary-dark: #1a4d0f;
    --primary-vibrant: #34af18;
    --secondary-color: #b0934f;
    --secondary-light: #c5b89b;
    --secondary-dark: #534013;
    --accent-color: #c6872f;
    --accent-light: #ba9c73;
    --accent-dark: #543912;
    --gradient-primary: linear-gradient(135deg, #439d2f, #b0934f);
    --gradient-secondary: linear-gradient(135deg, #b0934f, #c6872f);
    --gradient-accent: linear-gradient(90deg, #439d2f, #b0934f, #c6872f);
    --text-primary: #1d271c;
    --text-secondary: #6f856b;
    --bg-primary: #ffffff;
    --bg-secondary: #eff1ee;
    --bg-strong: #e3eae1;
    --border-color: #dee4dd;
    --success-color: #159e3b;
    --warning-color: #e0a61f;
    --error-color: #d01b24;
    --footer-bg: #1a2b17;
    --footer-text: #d2dcd0;
    --primary-overlay-90: rgba(26, 77, 15, 0.9);
    --primary-overlay-75: rgba(26, 77, 15, 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 rgba(24, 33, 43, 0.08);
    --shadow-strong: 0 16px 48px rgba(24, 33, 43, 0.14);
}

.section { padding: 58px 0; background: var(--bg-primary); border-top: 1px solid var(--border-color); }
.section.alt { background: var(--bg-secondary); }
.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: #eef3f6;
    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: #c8d2da;
}
.v5-topbar strong { color: #fff; font-weight: 800; }
.v5-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255,255,255,0.94);
    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;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
}
.v5-brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 900;
}
.v5-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.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: #8794a1; }
.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: #fff;
    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: #fff;
    background: var(--accent-color);
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}
.v5-menu-btn { display: none; }
.v5-nav {
    background: #fff;
    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%, white);
}
.v5-mini-nav { display: flex; align-items: center; gap: 8px; }

@media (max-width: 980px) {
    .v5-header-inner { grid-template-columns: auto auto; gap: 12px; }
    .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 { 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--market .v5-search { background: #f8fafc; }


/* 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%, white);
}
.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, rgba(10, 14, 18, 0.78), rgba(10, 14, 18, 0.18) 58%, rgba(10, 14, 18, 0.42));
}
.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: rgba(255,255,255,0.16);
    font-size: clamp(90px, 15vw, 180px);
    font-weight: 900;
}
.v5-hero-copy {
    position: relative;
    z-index: 1;
    width: min(580px, calc(100% - 48px));
    padding: 42px;
    color: #fff;
}
.v5-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 18px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.32);
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    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: #dbe5ea;
    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: #fff;
    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: #b8c5cf; }
.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; object-position: right center; }
.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-deal-card { grid-template-columns: 1fr 104px; }
}

.v5-hero--soft .v5-hero-layout { grid-template-columns: minmax(0, 1fr) 304px; }
.v5-hero--soft .v5-hero-main {
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    background:
        linear-gradient(110deg, rgba(255,255,255,0.76), rgba(255,255,255,0) 58%),
        repeating-linear-gradient(0deg, rgba(65, 115, 45, 0.08) 0 1px, transparent 1px 18px),
        color-mix(in srgb, var(--primary-color) 9%, white);
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
    box-shadow: var(--shadow-soft);
}
.v5-hero--soft .v5-hero-main::after { display: none; }
.v5-hero--soft .v5-hero-copy { color: var(--text-primary); }
.v5-hero--soft .v5-eyebrow { color: var(--primary-color); border-color: color-mix(in srgb, var(--primary-color) 16%, white); background: #fff; }
.v5-hero--soft .v5-hero-copy p { color: var(--text-secondary); }
.v5-hero--soft .v5-hero-media {
    position: relative;
    height: 100%;
    min-height: 360px;
    border-left: 1px solid color-mix(in srgb, var(--primary-color) 18%, transparent);
}
.v5-hero--soft .v5-hero-media img { object-position: 62% center; }
@media (max-width: 860px) { .v5-hero--soft .v5-hero-layout, .v5-hero--soft .v5-hero-main { 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 { border-radius: var(--radius-sm); text-transform: uppercase; font-size: 12px; letter-spacing: 0; }
.btn-primary { background: var(--text-primary); color: #fff; }
.btn-primary:hover { background: var(--primary-color); }
.btn-light { background: #fff; color: var(--text-primary); }
.btn-outline { background: transparent; border-color: var(--text-primary); color: var(--text-primary); }
.btn-outline:hover { background: var(--text-primary); color: #fff; }


/* 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: #fff;
    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,
.product-card-stock {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
}
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--warning-color);
    font-size: 12px;
    font-weight: 900;
}
.product-card-stars { display: none; }
.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: #fff;
}
.product-card-cart-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; }
.stock-bar {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--bg-strong);
}
.stock-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary-color);
}
.empty-state {
    padding: 34px;
    margin-top: 18px;
    text-align: center;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
}
.empty-state h3 { margin: 0 0 6px; }
.empty-state p { margin: 0; color: var(--text-secondary); }

@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); gap: 24px; }
.product-card--minimal {
    border-color: transparent;
    background: transparent;
    border-radius: 0;
}
.product-card--minimal:hover { box-shadow: none; transform: none; }
.product-card--minimal .product-card-image {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}
.product-card--minimal .product-card-body { padding: 12px 0 0; }

.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-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.product-gallery-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    overflow: hidden;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    cursor: pointer;
}
.product-gallery-thumb.active,
.product-gallery-thumb:hover { border-color: var(--primary-color); }
.product-gallery-thumb 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-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}
.product-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--warning-color);
    font-weight: 900;
}
.product-rating-badge svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.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%, white);
    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: #fff;
    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: #fff;
    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--compact .product-detail-grid { grid-template-columns: 420px 1fr; gap: 28px; }
.product-detail--compact .product-gallery-main { aspect-ratio: 4 / 3; }
.product-detail--compact .product-info { padding: 22px; }
.product-detail--compact .product-info h1 { font-size: 28px; }
@media (max-width: 980px) { .product-detail--compact .product-detail-grid { grid-template-columns: 1fr; } }


/* 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: #fff;
}
.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, rgba(24, 33, 43, 0.05), rgba(24, 33, 43, 0.82));
}
.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: #d7e0e6; 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%, white);
    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); }
.v5-category-empty {
    padding: 22px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-secondary);
}
.v5-category-empty strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

@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: #fff;
    font-size: 22px;
    font-weight: 900;
}
.v5-footer-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    color: #fff;
    background: var(--primary-color);
    font-size: 15px;
    font-weight: 900;
}
.v5-footer-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.v5-footer p { max-width: 380px; margin: 0; color: #aebbc5; }
.v5-footer h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}
.v5-footer ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #aebbc5;
    font-size: 14px;
}
.v5-footer a:hover { color: #fff; }
.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 rgba(255,255,255,0.12);
    color: #94a3af;
    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; }
}


/* 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%, white);
}
.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(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.64)),
        url("../assets/hero-seed-catalog.png") center / cover;
    position: relative;
}
.showcase-art::before,
.showcase-art::after {
    content: "";
    position: absolute;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.88);
    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%, white);
}
.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: rgba(17, 24, 39, 0.55);
    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 rgba(0, 0, 0, 0.24);
}
.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-form { padding: 0 22px 18px; }
.cart-form label { display: block; margin-bottom: 8px; font-weight: 800; font-size: 14px; }
.cart-form input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: 0;
}
.cart-form input:focus { border-color: var(--primary-color); }
.cart-footer button {
    min-height: 42px;
    flex: 1;
    border: 0;
    border-radius: var(--radius-md);
    font-weight: 900;
    cursor: pointer;
}
.clear-cart,
.close-btn { background: var(--bg-secondary); color: var(--text-primary); }
.order-btn { background: var(--primary-color); color: #fff; }

@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 { width: 100%; }
}
