html {
    scroll-behavior: smooth;
}
:root {
    --bg-color: #ffffff;
    --gold: #b88718;
    --gold-hover: #d19c21;
    --text-main: #162033;
    --text-secondary: #637083;
    --font-main: 'Arial', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.body--modal-open {
    overflow: hidden;
}

.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(58, 18, 110, 0.85) 0%, rgba(26, 5, 54, 0.96) 70%);
    z-index: -1;
    pointer-events: none; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: block;
    text-decoration: none;
}

.logo-container picture {
    display: block;
}

.site-logo {
    height: 70px;
    width: auto;
    display: block;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.header-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border: 1px solid var(--gold);
    padding: 10px 16px;
    border-radius: 999px;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.03);
}

.header-link:hover {
    background: var(--gold);
    color: var(--bg-color);
}

.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.2;
}

.hero h1 span { color: var(--gold); }

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: var(--gold);
    color: #1a0536;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid var(--gold);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn:hover {
    background: transparent;
    color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.features {
    padding: 60px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.icon {
    font-size: 50px;
    margin-bottom: 25px;
    display: block;
    text-align: center;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.icon-image {
    height: 55px;
    width: auto;
    display: block;
    margin: 0 auto 25px auto;
}

.feature-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: bold;
}

.feature-card p { color: var(--text-secondary); }

.page-section {
    padding: 70px 0;
}

.page-hero {
    padding: 70px 0 36px;
    text-align: center;
}

.page-hero h1 {
    color: var(--text-main);
    font-size: 3rem;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.page-hero p {
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.15rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.info-card {
    padding: 28px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 44px rgba(22, 32, 51, 0.08);
}

.info-card h2,
.info-card h3 {
    color: var(--text-main);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.info-card strong {
    color: var(--gold);
}

.info-card p,
.info-card li {
    color: var(--text-secondary);
}

.info-card ul {
    padding-left: 20px;
}

.page-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.contact-section {
    padding: 80px 0;
    display: flex;
    justify-content: center;
}

.contact-box {
    background: rgba(26, 5, 54, 0.8);
    padding: 50px;
    border-radius: 20px;
    width: 100%;
    max-width: 920px;
    border: 2px solid var(--gold);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
}

.contact-eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.contact-box h2 {
    margin-bottom: 14px;
    color: #fff;
    text-transform: uppercase;
    font-size: 2rem;
}

.contact-subtitle {
    margin: 0 auto 32px auto;
    color: var(--text-secondary);
    max-width: 540px;
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    text-align: left;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.contact-link:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.18);
}

.contact-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-value {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.contact-link-address {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
}

.contact-link-address .contact-value {
    max-width: 720px;
}

footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 40px;
}

footer span { color: var(--gold); font-weight: bold; }

@media(max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .contact-box { padding: 32px 20px; }
    .site-logo { height: 50px; } 
    header { flex-direction: column; gap: 15px; }
    .header-contact { align-items: center; width: 100%; }
    .header-link { width: 100%; max-width: 320px; text-align: center; }
    .contact-box h2 { font-size: 1.6rem; }
    .contact-value { font-size: 1.2rem; }
}
.bg-collage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    gap: 0;
    
    opacity: 0.6;
    filter: grayscale(80%) contrast(120%);
}

.bg-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.side-decor {
    position: absolute;
    top: 0;
    width: 250px;
    z-index: -2;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
}

.left-side {
    left: 0;
}

.right-side {
    right: 0;
}

.side-decor img {
    width: 200px;
    height: 200px;
    
    object-fit: contain;
    
    display: block;
    margin-bottom: -60px;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.side-decor img:hover {
    transform: scale(1.2) rotate(0deg) !important;
    z-index: 10;
}

.side-decor img:nth-child(odd) {
    transform: rotate(-15deg) translateX(-20px);
}

.side-decor img:nth-child(even) {
    transform: rotate(15deg) translateX(20px);
}

.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        90deg, 
        rgba(26, 5, 54, 0.2) 0%,
        rgba(26, 5, 54, 0.95) 20%,
        rgba(26, 5, 54, 0.95) 80%,
        rgba(26, 5, 54, 0.2) 100%
    );
    pointer-events: none;
}

@media (max-width: 1200px) {
    .side-decor {
        opacity: 0.15;
        width: 150px;
    }
    .background-glow {
        background: rgba(26, 5, 54, 0.9);
    }
}
.side-decor {
    position: absolute;
    top: 0;
    width: 220px;
    z-index: -2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    
    padding-top: 50px;
    padding-bottom: 50px;
}

.left-side {
    left: 20px;
}

.right-side {
    right: 20px;
}

.side-decor img {
    width: 160px;
    height: 160px;
    object-fit: contain; 
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}
.side-decor img:hover {
    transform: scale(1.1);
    z-index: 10;
}

@media (max-width: 1400px) {
    .side-decor {
        width: 150px;
    }
    .side-decor img {
        width: 100px;
        height: 100px;
    }
    .left-side { left: 0; }
    .right-side { right: 0; }
}

@media (max-width: 768px) {
    .catalog-search { margin-bottom: 20px; }
    .catalog-search-label { text-align: left; }
    .catalog-search-field input {
        border-radius: 14px;
        padding: 14px 50px 14px 16px;
    }
    .side-decor {
        display: none;
    }
}
.side-decor {
    position: absolute;
    top: 0;
    height: 100%;
    width: 280px;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
    
    padding-top: 20px;
    padding-bottom: 100px;
    overflow: visible;
}

.left-side {
    left: 0;
}

.right-side {
    right: 0;
}

.side-decor img {
    width: 250px;
    height: 250px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}
.side-decor img:hover {
    transform: scale(1.15);
    z-index: 10;
}
@media (max-width: 1400px) {
    .side-decor { width: 180px; }
    .side-decor img { width: 160px; height: 160px; }
}

@media (max-width: 1024px) {
    .side-decor { display: none; }
}
.social-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.social-row {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

.social-btn {
    display: flex;
    align-items: center;
    background: rgba(26, 5, 54, 0.9);
    border: 2px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    border-radius: 50px;
    padding: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), background 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.social-btn:not(.cart-social) {
    flex-direction: row-reverse;
}

button.social-btn {
    font-family: var(--font-main);
    cursor: pointer;
}

.cart-social {
    position: relative;
    width: 60px !important;
    min-width: 60px;
    max-width: 60px;
    height: 60px;
    flex: 0 0 60px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg-color);
    border: none;
    justify-content: center;
    overflow: visible;
    z-index: 2;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(212,175,55,0.4);
}

.cart-social:disabled {
    opacity: 0.7;
    cursor: progress;
}

.cart-social:hover {
    width: 60px !important;
    min-width: 60px;
    max-width: 60px;
    background: var(--gold);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(212,175,55,0.6);
}

.cart-social:hover svg {
    fill: currentColor;
}

.cart-social:hover .btn-text,
.cart-social:active .btn-text {
    display: none;
}

.icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.social-btn svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s;
}

.icon-fallback {
    display: none;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0;
}

.icon-box svg + .icon-fallback {
    margin-left: -28px;
}

.icon-box svg:not(:root) + .icon-fallback {
    display: none;
}

.btn-text {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s, transform 0.3s;
    font-weight: bold;
    font-size: 16px;
    padding-right: 25px;
    text-transform: uppercase;
    color: #fff;
}

.social-btn:hover {
    width: 180px;
    background: var(--gold);
}

.social-btn:hover svg {
    fill: #1a0536;
    transform: scale(1.1);
}

.social-btn:hover .btn-text {
    opacity: 1;
    transform: translateX(0);
    color: #1a0536;
    transition-delay: 0.1s;
}

@media (max-width: 768px) {
    .social-widget {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .social-btn {
        width: 50px;
        height: 50px;
    }

    .cart-social,
    .cart-social:hover {
        width: 50px !important;
        min-width: 50px;
        max-width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .social-row {
        gap: 10px;
    }

    .icon-box {
        width: 46px;
        height: 46px;
    }

    .social-btn svg {
        width: 24px;
        height: 24px;
    }
    .social-btn:active {
        width: 160px;
        background: var(--gold);
    }
    .cart-social:active {
        width: 50px !important;
    }
}

.city-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.city-icon {
    width: 20px;
    height: 20px;
    fill: var(--gold);
    transition: transform 0.3s ease;
}

.city-selector:hover .city-icon {
    transform: translateY(-3px);
}

.city-label {
    color: var(--text-secondary);
    display: none; 
}

@media(min-width: 450px) {
    .city-label { display: inline; }
}

.city-current {
    color: #fff;
    font-weight: bold;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.5);
    cursor: default;
    transition: 0.3s;
}

.city-selector:hover .city-current {
    color: var(--gold);
    border-color: var(--gold);
}

@media(max-width: 768px) {
    .city-selector {
        margin: 10px 0;
        background: rgba(255, 255, 255, 0.05);
        padding: 8px 15px;
        border-radius: 20px;
        border: 1px solid rgba(212, 175, 55, 0.1);
    }
}

/* ============================================================
   CATALOG
   ============================================================ */
.section-title {
    text-align: center;
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 30px;
}
.catalog-section { padding: 60px 0; }
.catalog-search {
    max-width: 720px;
    margin: 0 auto 26px;
}
.catalog-search-label {
    display: block;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-align: center;
}
.catalog-search-field {
    position: relative;
}
.catalog-search-field input {
    width: 100%;
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 999px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 16px;
    padding: 16px 54px 16px 22px;
    outline: none;
    box-shadow: 0 14px 35px rgba(0,0,0,0.16);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.catalog-search-field input::placeholder {
    color: rgba(17,17,17,0.48);
}
.catalog-search-field input:focus {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(212,175,55,0.12), 0 14px 35px rgba(0,0,0,0.2);
}
.catalog-search-clear {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    background: rgba(212,175,55,0.14);
    color: var(--gold);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
}
.catalog-search-clear.visible {
    opacity: 1;
    pointer-events: auto;
}
.catalog-search-clear:hover {
    background: var(--gold);
    color: #1a0536;
}
.catalog-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.catalog-sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 20px;
}
.sidebar-block {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px;
    padding: 16px;
}
.sidebar-title {
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212,175,55,0.14);
}
.catalog-filters,
.brand-filters,
.subcategory-filters {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 210px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(212,175,55,0.25) transparent;
}
.catalog-filters::-webkit-scrollbar,
.brand-filters::-webkit-scrollbar,
.subcategory-filters::-webkit-scrollbar { width: 4px; }
.catalog-filters::-webkit-scrollbar-thumb,
.brand-filters::-webkit-scrollbar-thumb,
.subcategory-filters::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,0.3);
    border-radius: 4px;
}
.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: all 0.2s;
    line-height: 1.35;
}
.filter-btn:hover { background: rgba(212,175,55,0.08); color: #fff; }
.filter-btn.active {
    background: rgba(212,175,55,0.15);
    color: var(--gold);
    font-weight: 600;
}
.catalog-grid {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    align-content: start;
    overflow-anchor: none;
}
@media (max-width: 768px) {
    .catalog-layout {
        flex-direction: column;
        gap: 14px;
    }
    .catalog-sidebar {
        width: 100%;
        position: static;
        display: grid;
        gap: 10px;
        padding: 12px;
        overflow: visible;
    }
    .sidebar-block {
        min-width: 0;
        flex-shrink: 1;
    }
    .sidebar-title {
        font-size: 0.72rem;
        margin-bottom: 6px;
        padding-bottom: 4px;
    }
    .catalog-filters,
    .brand-filters,
    .subcategory-filters {
        flex-direction: row;
        gap: 6px;
        max-height: none;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }
    .catalog-filters::-webkit-scrollbar,
    .brand-filters::-webkit-scrollbar,
    .subcategory-filters::-webkit-scrollbar { display: none; }
    .filter-btn {
        flex: 0 0 auto;
        padding: 5px 8px;
        border: 1px solid rgba(212,175,55,0.16);
        border-radius: 999px;
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
        text-align: center;
    }
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}
.catalog-loading,
.catalog-empty,
.catalog-error {
    text-align: center;
    color: var(--text-secondary);
    grid-column: 1/-1;
    padding: 40px;
}

.catalog-error {
    color: #ff8a8a;
}

/* Product Card */
.product-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    z-index: 10;
}
.product-image,
.product-img-wrapper,
.product-img-placeholder,
.product-image-slot {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 190px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    margin-bottom: 15px;
}

.product-img-wrapper,
.product-img-placeholder,
.product-image-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(212,175,55,0.08);
}

.product-img-wrapper:hover,
.product-image-slot:hover {
    overflow: visible;
    z-index: 20;
}

.product-image,
.product-img,
.product-image-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 10px;
    transform-origin: center;
    transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.38s ease;
}

.product-img-wrapper:hover .product-img,
.product-image-slot:hover img {
    transform: scale(1.65);
    filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.45));
}

.product-image-slot--placeholder::before,
.product-image-slot--missing::before {
    content: "";
    width: 74px;
    height: 74px;
    border-radius: 14px;
    border: 1px solid rgba(212,175,55,0.22);
    background:
        linear-gradient(135deg, transparent 46%, rgba(212,175,55,0.22) 47%, rgba(212,175,55,0.22) 53%, transparent 54%),
        rgba(255,255,255,0.035);
}

.product-image-slot--placeholder::after,
.product-image-slot--missing::after {
    content: "Нет фото";
    position: absolute;
    bottom: 22px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}
.product-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
}
.product-category {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 8px;
    font-weight: normal;
}
.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}
.product-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 8px;
}
.product-stock {
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}
.product-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-width: 0;
}
.product-stock.low,
.product-stock.stock-in { color: #8fd18f; }
.product-stock.out,
.product-stock.stock-out { color: #e04040; }
.btn-add,
.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--gold);
    color: var(--bg-color);
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s;
}
.btn-add-to-cart {
    width: 100%;
    min-width: 0;
    min-height: 34px;
}
.btn-add {
    width: 100%;
}
.btn-add-to-cart--in-cart { justify-content: center; }
.btn-add-to-cart-text {
    min-width: 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-add-to-cart-qty {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--bg-color);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 11px;
}
.btn-add:hover,
.btn-add-to-cart:hover { background: var(--gold-hover); }
.btn-add:disabled,
.btn-add-to-cart:disabled { background: #555; color: #999; cursor: not-allowed; }
.btn-block { display: block; width: 100%; }

@media (max-width: 768px) {
    .product-card {
        padding: 9px;
        border-radius: 10px;
    }
    .product-card:hover {
        transform: none;
    }
    .product-image,
    .product-img-wrapper,
    .product-img-placeholder,
    .product-image-slot {
        aspect-ratio: 1 / 1;
        min-height: 0;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    .product-image,
    .product-img,
    .product-image-slot img {
        padding: 5px;
    }
    .product-img-wrapper:hover .product-img,
    .product-image-slot:hover img {
        transform: none;
        filter: none;
    }
    .product-image-slot--placeholder::before,
    .product-image-slot--missing::before {
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }
    .product-image-slot--placeholder::after,
    .product-image-slot--missing::after {
        bottom: 12px;
        font-size: 0.68rem;
    }
    .product-name {
        font-size: 0.78rem;
        line-height: 1.25;
        margin-bottom: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .product-category {
        font-size: 0.65rem;
        line-height: 1.25;
        margin-bottom: 5px;
    }
    .product-price {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    .product-actions {
        gap: 5px;
    }
    .btn-add-to-cart {
        min-height: 30px;
        padding: 5px 6px;
        font-size: 10.5px;
        gap: 4px;
    }
    .btn-add-to-cart-qty {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }
    .product-stock {
        font-size: 0.62rem;
        line-height: 1.25;
    }
}

/* ============================================================
   CART SIDEBAR
   ============================================================ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 2, 12, 0.72);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    backdrop-filter: blur(4px);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -480px;
    width: min(460px, 100vw);
    height: 100%;
    background: #16072f;
    z-index: 2000;
    transition: right 0.28s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(212,175,55,0.22);
    box-shadow: -18px 0 45px rgba(0,0,0,0.55);
}
.cart-sidebar.open { right: 0; }
.cart-sidebar--busy {
    cursor: progress;
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(212,175,55,0.14);
}
.cart-eyebrow {
    color: var(--text-secondary);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.cart-header h2 { color: var(--gold); font-size: 1.55rem; text-transform: uppercase; }
.cart-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 3px;
}
.cart-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    line-height: 1;
}
.cart-close:hover { color: #fff; }
.cart-notice {
    display: none;
    margin: 14px 24px 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}
.cart-notice.visible { display: block; }
.cart-notice.success {
    color: #baf0ba;
    background: rgba(77, 170, 77, 0.12);
    border: 1px solid rgba(77, 170, 77, 0.28);
}
.cart-notice.info {
    color: #e8dba0;
    background: rgba(212, 175, 55, 0.11);
    border: 1px solid rgba(212, 175, 55, 0.24);
}
.cart-notice.error {
    color: #ffb2b2;
    background: rgba(224, 64, 64, 0.12);
    border: 1px solid rgba(224, 64, 64, 0.28);
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 18px 24px;
}
.cart-empty {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
    gap: 8px;
}
.cart-empty-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 26px;
}
.cart-empty p {
    color: #fff;
    font-weight: 700;
    margin-top: 6px;
}
.cart-empty span {
    max-width: 240px;
    line-height: 1.5;
}
.cart-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto auto;
    gap: 10px 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cart-item-image {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: rgba(0,0,0,0.24);
    border: 1px solid rgba(212,175,55,0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}
.cart-item-image--placeholder::before,
.cart-item-image--missing::before {
    content: "Нет фото";
    width: 30px;
    color: var(--text-secondary);
    font-size: 0.68rem;
    line-height: 1.15;
    text-align: center;
}
.cart-item-info { min-width: 0; }
.cart-item-name {
    display: block;
    font-size: 0.94rem;
    color: #fff;
    line-height: 1.35;
}
.cart-item-stock,
.cart-item-price {
    display: block;
    font-size: 0.78rem;
    margin-top: 4px;
}
.cart-item-stock { color: var(--text-secondary); }
.cart-item-price { color: var(--gold); }
.cart-item-qty,
.cart-item-controls {
    display: flex; align-items: center; gap: 6px;
}
.qty-btn,
.cart-qty-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover,
.cart-qty-btn:hover { background: var(--gold); color: var(--bg-color); border-color: var(--gold); }
.cart-qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.qty-value,
.cart-qty-value { color: #fff; min-width: 30px; text-align: center; font-size: 0.95rem; }
.cart-item-total {
    color: #fff;
    font-weight: 700;
    font-size: 0.94rem;
    text-align: right;
    min-width: 88px;
}
.cart-item-remove,
.cart-remove-btn {
    background: rgba(224, 64, 64, 0.08);
    border: 1px solid rgba(224, 64, 64, 0.22);
    color: #ff8f8f;
    cursor: pointer;
    font-size: 17px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}
.cart-item-remove:hover,
.cart-remove-btn:hover { color: #ff6060; }
.cart-footer {
    padding: 18px 24px 24px;
    border-top: 1px solid rgba(212,175,55,0.14);
    background: rgba(10, 3, 24, 0.48);
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.cart-total {
    display: flex; justify-content: space-between; align-items: center;
    margin: 14px 0 16px;
    font-size: 1.24rem;
}
.cart-total span:first-child { color: var(--text-secondary); }
.cart-total span:last-child { color: var(--gold); font-weight: bold; }
.cart-minimum-notice {
    display: none;
    margin: -6px 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(212,175,55,0.24);
    border-radius: 8px;
    background: rgba(212,175,55,0.1);
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.35;
}
.cart-minimum-notice.visible {
    display: block;
}
.cart-clear-btn {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(212,175,55,0.25);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-family: var(--font-main);
}
.cart-clear-btn:hover:not(:disabled) {
    color: var(--gold);
    border-color: var(--gold);
}
.cart-clear-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.cart-fab-count {
    position: absolute;
    top: -7px;
    right: -7px;
    z-index: 5;
    background: #e04040;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 999px;
    border: 2px solid #16072f;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.45);
    pointer-events: none;
}
@media (max-width: 768px) {
    .cart-sidebar { width: 100%; right: -100%; }
    .cart-header,
    .cart-items,
    .cart-footer {
        padding-left: 18px;
        padding-right: 18px;
    }
    .cart-item {
        grid-template-columns: 56px minmax(0, 1fr) auto;
    }
    .cart-item-image {
        width: 56px;
        height: 56px;
    }
    .cart-item-total {
        grid-column: 2 / 3;
        text-align: left;
        min-width: 0;
    }
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    z-index: 2999; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.9);
    background: #1e0a40; border: 2px solid var(--gold);
    border-radius: 20px; padding: 30px; z-index: 3000;
    width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto;
    opacity: 0; pointer-events: none; transition: all 0.3s;
    box-shadow: 0 0 40px rgba(212,175,55,0.2);
}
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.modal-captcha { max-width: 360px; overflow: hidden; }
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.modal-header h2 { color: var(--gold); font-size: 1.3rem; text-transform: uppercase; }
.modal-close {
    background: none; border: none; color: var(--text-secondary);
    font-size: 28px; cursor: pointer;
}
.modal-close:hover { color: #fff; }
.modal-success { text-align: center; }
.modal-success h2 { color: var(--gold); margin-bottom: 10px; }
.modal-success p { color: var(--text-secondary); margin-bottom: 20px; }

/* Checkout Form */
.checkout-form label {
    display: block; margin-bottom: 15px;
}
.checkout-form label[hidden] {
    display: none !important;
}
.checkout-form label span {
    display: block; color: var(--text-secondary); font-size: 0.85rem;
    margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.05em;
}
.checkout-form input, .checkout-form textarea {
    width: 100%; padding: 10px 14px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(212,175,55,0.2);
    border-radius: 8px; color: #fff; font-size: 15px; font-family: var(--font-main);
    transition: border-color 0.3s;
}
.checkout-form input:focus, .checkout-form textarea:focus {
    outline: none; border-color: var(--gold);
}
.checkout-form textarea { resize: vertical; }
.form-error {
    color: #e04040; font-size: 0.9rem; margin-top: 10px; text-align: center;
    display: none;
}
.form-error.visible { display: block; }

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--gold);
}

.checkbox-label input[type="checkbox"]:checked {
    accent-color: var(--gold);
}

.checkbox-label span {
    display: inline;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--gold);
    text-decoration: underline;
    transition: color 0.2s;
}

.checkbox-label a:hover {
    color: var(--gold-hover);
}

.consent-label {
    margin-top: 15px;
}

/* ============================================================
   WHITE THEME OVERRIDES
   ============================================================ */
body {
    background: #fff;
    color: var(--text-main);
}

.background-glow {
    background: #fff;
}

.side-decor img {
    filter: drop-shadow(0 10px 24px rgba(22,32,51,0.16));
}

.header-link,
.feature-card,
.contact-box,
.contact-link,
.sidebar-block,
.product-card,
.cart-sidebar,
.modal {
    background: rgba(255,255,255,0.92);
    border-color: rgba(184,135,24,0.22);
    box-shadow: 0 16px 44px rgba(22,32,51,0.08);
}

.hero h1,
.feature-card h3,
.contact-box h2,
.contact-value,
.city-current,
.product-name,
.cart-empty p,
.cart-item-name,
.cart-qty-value,
.cart-item-total {
    color: var(--text-main);
}

.hero p,
.feature-card p,
.contact-label,
footer,
.cart-eyebrow,
.cart-meta,
.cart-empty,
.cart-item-stock,
.cart-summary-row,
.cart-total span:first-child,
.modal-success p,
.checkout-form label span {
    color: var(--text-secondary);
}

.header-link {
    background: #fff;
    color: var(--gold);
}

.header-link:hover,
.social-btn:hover {
    color: #fff;
}

.btn {
    color: #fff;
    box-shadow: 0 8px 20px rgba(184,135,24,0.22);
}

.btn:hover {
    background: #fff;
    color: var(--gold);
}

.contact-link {
    color: var(--text-main);
}

.filter-btn:hover {
    background: rgba(184,135,24,0.08);
    color: var(--text-main);
}

.filter-btn.active {
    background: rgba(184,135,24,0.12);
}

.product-image,
.product-img-wrapper,
.product-img-placeholder,
.product-image-slot {
    background: #fff;
}

.cart-item-image {
    background: #f1f3f7;
}

.product-card:hover,
.feature-card:hover,
.contact-link:hover {
    border-color: var(--gold);
}

.product-stock.out,
.product-stock.stock-out {
    color: #b26a00;
}

.btn-add-to-cart:disabled,
.btn-add:disabled {
    background: #e6e8ed;
    color: #7a8494;
}

.btn-add-to-cart-qty {
    background: #fff;
}

.cart-overlay,
.modal-overlay {
    background: rgba(22,32,51,0.42);
}

.cart-sidebar {
    background: #fff;
    border-left-color: rgba(184,135,24,0.22);
}

.cart-header,
.cart-item,
.cart-footer {
    border-color: rgba(22,32,51,0.1);
}

.cart-footer {
    background: #fff;
}

.cart-close,
.qty-btn,
.cart-qty-btn {
    background: #f3f5f8;
    border-color: rgba(22,32,51,0.14);
    color: var(--text-main);
}

.cart-close:hover,
.modal-close:hover {
    color: var(--gold);
}

.cart-fab-count {
    border-color: #fff;
}

.modal {
    background: #fff;
    border-radius: 16px;
    max-width: 640px;
}
.modal-captcha { max-width: 360px; overflow: hidden; }

.modal-close {
    color: var(--text-secondary);
}

.checkout-fieldset {
    border: 1px solid rgba(184,135,24,0.18);
    border-radius: 12px;
    padding: 14px 14px 2px;
    margin: 0 0 16px;
}

.checkout-fieldset legend {
    padding: 0 8px;
    color: var(--gold);
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.checkout-customer-type {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.checkout-radio {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 0 !important;
    padding: 12px;
    background: rgba(184,135,24,0.06);
    border: 1px solid rgba(184,135,24,0.18);
    border-radius: 10px;
    cursor: pointer;
}

.checkout-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    padding: 0;
    accent-color: var(--gold);
    flex: 0 0 auto;
}

.checkout-radio span {
    display: inline !important;
    margin-bottom: 0 !important;
}

@media (max-width: 520px) {
    .checkout-customer-type {
        grid-template-columns: 1fr;
    }
}

.checkout-form label span b {
    color: #e04040;
    font-size: 1rem;
    line-height: 1;
}

.checkout-form input,
.checkout-form textarea {
    background: #fff;
    border-color: rgba(22,32,51,0.16);
    color: var(--text-main);
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,135,24,0.12);
}

.address-field,
.suggest-field {
    position: relative;
}

.address-suggestions,
.field-suggestions {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 10px);
    z-index: 20;
    overflow-y: auto;
    max-height: 260px;
    background: #fff;
    border: 1px solid rgba(184,135,24,0.22);
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(22,32,51,0.16);
}

.address-suggestions.visible,
.field-suggestions.visible {
    display: block;
}

.address-suggestion,
.field-suggestion {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    background: #fff;
    border: 0;
    border-bottom: 1px solid rgba(22,32,51,0.08);
    color: var(--text-main);
    cursor: pointer;
    font: inherit;
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: left;
}

.address-suggestion:last-child,
.field-suggestion:last-child {
    border-bottom: 0;
}

.address-suggestion:hover,
.address-suggestion.active,
.field-suggestion:hover,
.field-suggestion.active {
    background: #fff8e8;
}

.address-suggestion-title,
.field-suggestion-title {
    display: block;
    color: var(--text-main);
    font-weight: 700;
}

.address-suggestion-subtitle,
.address-suggestion-state,
.field-suggestion-subtitle,
.field-suggestion-state {
    display: block;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.35;
}

.address-suggestion-state,
.field-suggestion-state {
    padding: 12px 14px;
}

.social-btn {
    background: #fff;
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 8px 24px rgba(22,32,51,0.18);
    opacity: 1;
    visibility: visible;
}

.cart-social {
    background: var(--gold);
    color: #fff;
    border: 2px solid var(--gold);
    box-shadow: 0 8px 24px rgba(184,135,24,0.28);
}

.social-btn svg {
    color: currentColor;
    fill: currentColor;
}

.social-btn:hover {
    background: var(--gold);
    color: #fff;
}

.social-btn:hover svg {
    color: #fff;
    fill: currentColor;
}

.cart-social:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    color: #fff;
}

.btn-text,
.social-btn:hover .btn-text,
.social-btn:hover svg {
    color: #fff;
    fill: currentColor;
}

/* ── Яндекс SmartCaptcha ── */
.captcha-container {
    margin: 16px 0 0;
    min-height: 100px;
}

.captcha-container iframe {
    max-width: 100%;
}

/* ── Toast-уведомления ── */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    background: #1e0a40;
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 14px 20px;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(212,175,55,0.25);
    pointer-events: auto;
    animation: toastIn 0.35s ease, toastOut 0.35s ease 2.5s forwards;
    max-width: 360px;
}
@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toastOut {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(120%); opacity: 0; }
}
