:root {
    --cream: #faf6f0;
    --beige: #e8dfd1;
    --gold: #c9a961;
    --gold-dark: #a88b48;
    --brown: #3f0921;
    --soft-brown: #6b5844;
    --rose: #e5c5c0;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--brown);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
}

/* Top bar */
.top-bar {
    background: var(--brown);
    color: var(--cream);
    padding: 10px 0;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.top-bar i {
    color: var(--gold);
    margin-right: 6px;
}
.product-actions i {
    font-size: 2rem!important;
}
.product-action-btn {
    width: 50%!important;
    background: #faf6f0!important;
    opacity: 0.9!important;
}
/* Navigation */
.navbar-custom {
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brown) !important;
    letter-spacing: 1px;
}

.navbar-brand span {
    color: var(--gold);
}

.navbar-brand small {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--soft-brown);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin-top: -5px;
}

.nav-link-custom {
    color: var(--brown) !important;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0 0.8rem;
    position: relative;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-custom:hover::after {
    width: 100%;
}

.nav-link-custom:hover {
    color: var(--gold-dark) !important;
}

.btn-outline-custom {
    border: 1px solid var(--gold);
    color: var(--gold-dark);
    padding: 8px 24px;
    border-radius: 0;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

.btn-gold {
    background: var(--gold);
    color: white;
    border: 1px solid var(--gold);
    padding: 14px 36px;
    border-radius: 0;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(201, 169, 97, 0.3);
}

.btn-brown {
    background: var(--brown);
    color: var(--cream);
    border: 1px solid var(--brown);
    padding: 14px 36px;
    border-radius: 0;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-brown:hover {
    background: transparent;
    color: var(--brown);
    border-color: var(--brown);
}

/* Hero */
.hero {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--rose) 0%, transparent 70%);
    opacity: 0.5;
    border-radius: 50%;
}

.hero-label {
    display: inline-block;
    color: var(--gold-dark);
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 50px;
}

.hero-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--brown);
    margin-bottom: 1.5rem;
}

.hero-title em {
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
}

.hero-text {
    font-size: 1.05rem;
    color: var(--soft-brown);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-visual {
    position: relative;
    height: 550px;
}

.hero-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--beige), var(--rose));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 60px rgba(61, 46, 31, 0.15);
}

.hero-circle i {
    font-size: 10rem;
    color: var(--brown);
    opacity: 0.85;
}

.hero-badge {
    position: absolute;
    background: white;
    padding: 20px 25px;
    box-shadow: 0 15px 40px rgba(61, 46, 31, 0.12);
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-badge-1 {
    top: 40px;
    left: 0;
}

.hero-badge-2 {
    bottom: 60px;
    right: 0;
}

.hero-badge i {
    font-size: 2rem;
    color: var(--gold);
}

.hero-badge-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brown);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-badge-text {
    font-size: 0.75rem;
    color: var(--soft-brown);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Section styling */
.section-pad {
    padding: 100px 0;
}

.section-label {
    color: var(--gold-dark);
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.section-heading {
    font-size: 3rem;
    color: var(--brown);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-heading em {
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
}

.section-subtext {
    color: var(--soft-brown);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Categories */
.category-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    transition: transform 0.5s ease;
}

.category-card i {
    font-size: 5rem;
    color: var(--brown);
    opacity: 0.6;
    margin-bottom: 20px;
    display: block;
    transition: all 0.5s ease;
}

.category-card:hover i {
    transform: translateY(-10px) scale(1.1);
    color: var(--gold);
    opacity: 1;
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--brown);
    font-weight: 600;
    margin-bottom: 8px;
}

.category-count {
    font-size: 0.8rem;
    color: var(--soft-brown);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(61, 46, 31, 0.1));
    z-index: 1;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.category-card:hover::after {
    opacity: 1;
}

/* Products */
.product-item {
    position: relative;
    margin-bottom: 30px;
}

.product-visual {
    height: 340px;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.product-visual i {
    font-size: 5rem;
    color: var(--brown);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.product-item:hover .product-visual {
    background: linear-gradient(135deg, var(--beige), var(--rose));
}

.product-item:hover .product-visual i {
    transform: scale(1.1);
    opacity: 0.8;
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--brown);
    color: var(--cream);
    padding: 5px 12px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge.gold {
    background: var(--gold);
    color: white;
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: bottom 0.4s ease;
    padding: 0 20px;
}

.product-item:hover .product-actions {
    bottom: 20px;
}

.product-action-btn {
    width: 45px;
    height: 45px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brown);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-action-btn:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-3px);
}

.product-info {
    padding-top: 20px;
    text-align: center;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--brown);
    font-weight: 600;
    margin-bottom: 6px;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--soft-brown);
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.1rem;
    color: var(--gold-dark);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Story Section */
.story-section {
    background: var(--brown);
    color: var(--cream);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.story-heading {
    font-size: 2.8rem;
    color: var(--cream);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.story-heading em {
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
}

.story-text {
    color: rgba(250, 246, 240, 0.75);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.story-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.story-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.story-stat-text {
    font-size: 0.8rem;
    color: rgba(250, 246, 240, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.story-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-frame {
    width: 350px;
    height: 450px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.story-frame i {
    font-size: 8rem;
    color: rgba(61, 46, 31, 0.4);
}

.story-frame::after {
    content: '';
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(250, 246, 240, 0.3);
}

/* Features */
.feature-item {
    padding: 40px 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

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

.feature-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.feature-item:hover .feature-icon-wrap {
    background: var(--gold);
}

.feature-icon-wrap i {
    font-size: 1.8rem;
    color: var(--gold-dark);
    transition: all 0.4s ease;
}

.feature-item:hover .feature-icon-wrap i {
    color: white;
}

.feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--brown);
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--soft-brown);
    line-height: 1.7;
}

/* Newsletter */
.newsletter {
    background: var(--beige);
    padding: 80px 0;
}

.newsletter-form {
    display: flex;
    max-width: 550px;
    margin: 30px auto 0;
    box-shadow: 0 15px 40px rgba(61, 46, 31, 0.08);
}

.newsletter-form input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    background: white;
    color: var(--brown);
}

.newsletter-form button {
    padding: 18px 35px;
    background: var(--gold);
    color: white;
    border: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--gold-dark);
}

/* Footer */
.footer-custom {
    background: var(--brown);
    color: rgba(250, 246, 240, 0.7);
    padding: 70px 0 30px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--cream);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--gold);
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 320px;
    color: rgba(250, 246, 240, 0.6);
}

.footer-title {
    color: var(--cream);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(250, 246, 240, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-links i {
    color: var(--gold);
    margin-right: 10px;
    font-size: 0.85rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(250, 246, 240, 0.2);
    color: rgba(250, 246, 240, 0.7);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(250, 246, 240, 0.1);
    padding-top: 30px;
    margin-top: 50px;
    font-size: 0.85rem;
    text-align: center;
    color: rgba(250, 246, 240, 0.5);
}

/* Mobile menu */
.navbar-toggler-custom {
    border: none;
    background: transparent;
    color: var(--brown);
    font-size: 1.5rem;
}

.navbar-toggler-custom:focus {
    outline: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-visual {
        height: 400px;
        margin-top: 50px;
    }

    .hero-circle {
        width: 300px;
        height: 300px;
    }

    .hero-circle i {
        font-size: 7rem;
    }

    .section-heading {
        font-size: 2.2rem;
    }

    .navbar-collapse {
        background: white;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    }

    .nav-link-custom {
        margin: 8px 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.3rem;
    }

    .section-heading {
        font-size: 1.8rem;
    }

    .hero-badge {
        padding: 12px 15px;
    }

    .hero-badge i {
        font-size: 1.5rem;
    }

    .hero-badge-title {
        font-size: 1rem;
    }

    .hero-badge-text {
        font-size: 0.65rem;
    }

    .story-stats {
        gap: 25px;
    }

    .story-stat-num {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        padding: 15px;
    }
}

/* =====================================================
   Дополнения для интернет-магазина
   ===================================================== */

a { color: var(--gold-dark); }
a:hover { color: var(--brown); }
.top-bar a { color: inherit; text-decoration: none; }
.nav-link-custom.active::after { width: 100%; }
.nav-icons .dropdown-toggle::after { display: none; }

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--gold);
    color: #fff;
    font-size: 0.65rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.4); } }

.dropdown-custom { border-radius: 0; border: 1px solid rgba(201,169,97,.25); box-shadow: 0 15px 40px rgba(61,46,31,.12); padding: 8px 0; min-width: 220px; }
.dropdown-custom .dropdown-header { font-family: 'Playfair Display', serif; color: var(--brown); font-size: 1rem; }
.dropdown-custom .dropdown-item { font-size: .9rem; color: var(--brown); padding: 8px 18px; }
.dropdown-custom .dropdown-item i { width: 22px; color: var(--gold); }
.dropdown-custom .dropdown-item:hover { background: var(--cream); }

.search-form { display: flex; max-width: 600px; margin: 0 auto 6px; border: 1px solid var(--gold); background: #fff; }
.search-form input { flex: 1; border: 0; padding: 12px 18px; outline: none; background: transparent; color: var(--brown); }
.search-form button { border: 0; background: var(--gold); color: #fff; padding: 0 22px; }

/* Изображения вместо иконок */
.product-visual img, .category-card img.cat-img, .hero-circle img, .story-frame img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-circle { overflow: hidden; }
.product-visual img { transition: transform .6s ease; }
.product-item:hover .product-visual img { transform: scale(1.06); }
.product-visual a.product-link { position: absolute; inset: 0; z-index: 1; }
.product-actions { z-index: 3; }
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { color: var(--gold-dark); }
.category-card { text-decoration: none; }
.product-action-btn { border: 0; cursor: pointer; }

/* Flash-сообщения */
.flash-wrap { position: relative; z-index: 5; }
.flash { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 20px; padding: 14px 20px; border-left: 3px solid var(--gold); background: #fff; box-shadow: 0 8px 25px rgba(61,46,31,.06); font-size: .92rem; }
.flash-success { border-color: #6a9a5b; }
.flash-error   { border-color: #b84a4a; }
.flash-close { border: 0; background: none; font-size: 1.3rem; color: var(--soft-brown); line-height: 1; }

/* Тосты */
.toast-box { position: fixed; right: 20px; bottom: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast-item { background: var(--brown); color: var(--cream); padding: 14px 20px; box-shadow: 0 15px 40px rgba(0,0,0,.2); font-size: .9rem; display: flex; align-items: center; gap: 12px; animation: toastIn .3s ease; }
.toast-item i { color: var(--gold); }
.toast-item a { color: var(--gold); margin-left: 8px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(15px); } }

/* Шапка внутренних страниц */
.page-head { padding: 60px 0 40px; text-align: center; position: relative; overflow: hidden; }
.page-head::before { content: ''; position: absolute; top: -150px; left: 50%; width: 500px; height: 500px; transform: translateX(-50%); background: radial-gradient(circle, var(--rose) 0%, transparent 70%); opacity: .35; border-radius: 50%; }
.page-head > * { position: relative; }
.breadcrumbs { font-size: .8rem; letter-spacing: 1px; color: var(--soft-brown); margin-top: 10px; }
.breadcrumbs a { color: var(--soft-brown); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-dark); }

/* Каталог */
.catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px; }
.chip { padding: 9px 22px; border: 1px solid var(--gold); color: var(--gold-dark); text-decoration: none; font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; transition: all .3s ease; background: transparent; }
.chip:hover, .chip.active { background: var(--gold); color: #fff; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(201,169,97,.2); font-size: .9rem; color: var(--soft-brown); }
.select-custom { border: 1px solid rgba(201,169,97,.4); border-radius: 0; padding: 8px 14px; background: #fff; color: var(--brown); font-size: .88rem; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--soft-brown); }
.empty-state i { font-size: 3.5rem; color: var(--gold); opacity: .6; margin-bottom: 20px; display: block; }
.empty-state h3 { color: var(--brown); margin-bottom: 10px; }

/* Страница товара */
.product-gallery { height: 520px; background: linear-gradient(135deg, var(--beige), var(--rose)); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery > i { font-size: 10rem; color: var(--brown); opacity: .55; }
.product-title { font-size: 2.6rem; font-weight: 700; line-height: 1.15; margin-bottom: 12px; }
.product-cat { color: var(--gold-dark); font-size: .8rem; letter-spacing: 3px; text-transform: uppercase; text-decoration: none; }
.product-big-price { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--gold-dark); font-weight: 600; margin: 20px 0; }
.product-meta { border-top: 1px solid rgba(201,169,97,.25); margin-top: 30px; padding-top: 20px; }
.product-meta dt { font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dark); font-weight: 500; }
.product-meta dd { color: var(--soft-brown); margin-bottom: 16px; }
.qty { display: inline-flex; border: 1px solid rgba(201,169,97,.5); background: #fff; }
.qty button { width: 42px; border: 0; background: transparent; color: var(--brown); font-size: 1.1rem; }
.qty button:hover { background: var(--cream); }
.qty input { width: 52px; text-align: center; border: 0; outline: none; font-weight: 600; color: var(--brown); background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 32px; } .qty-sm input { width: 40px; padding: 6px 0; }

/* Карточки-панели */
.panel { background: #fff; padding: 35px; box-shadow: 0 15px 40px rgba(61,46,31,.06); }
.panel-title { font-size: 1.5rem; margin-bottom: 25px; }

/* Формы */
.form-label-custom { font-size: .75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--soft-brown); margin-bottom: 6px; font-weight: 500; }
.form-control-custom, .form-select-custom {
    border: 1px solid rgba(201,169,97,.35); border-radius: 0; padding: 12px 16px;
    background: var(--cream); color: var(--brown); font-size: .95rem; width: 100%;
    transition: border-color .3s ease, background .3s ease;
}
.form-control-custom:focus, .form-select-custom:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: none; }
.form-error { color: #b84a4a; font-size: .82rem; margin-top: 5px; }
.is-invalid.form-control-custom { border-color: #b84a4a; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { border: 1px solid rgba(201,169,97,.35); padding: 16px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; transition: all .3s ease; background: var(--cream); }
.radio-card input { margin-top: 4px; accent-color: var(--gold); }
.radio-card:has(input:checked) { border-color: var(--gold); background: #fff; box-shadow: 0 6px 18px rgba(201,169,97,.15); }
.radio-card b { display: block; font-weight: 600; }
.radio-card small { color: var(--soft-brown); }

/* Авторизация */
.auth-wrap { max-width: 480px; margin: 0 auto; }
.auth-switch { text-align: center; margin-top: 25px; font-size: .9rem; color: var(--soft-brown); }
.demo-hint { background: var(--beige); padding: 12px 16px; font-size: .82rem; color: var(--soft-brown); margin-bottom: 25px; }

/* Корзина */
.cart-row { display: grid; grid-template-columns: 90px 1fr auto auto auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(201,169,97,.2); }
.cart-thumb { width: 90px; height: 90px; background: var(--beige); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb i { font-size: 2rem; color: var(--brown); opacity: .5; }
.cart-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600; color: var(--brown); text-decoration: none; }
.cart-sub { font-size: .82rem; color: var(--soft-brown); }
.cart-sum { font-weight: 600; color: var(--gold-dark); min-width: 90px; text-align: right; }
.cart-remove { border: 0; background: none; color: var(--soft-brown); font-size: 1rem; }
.cart-remove:hover { color: #b84a4a; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; color: var(--soft-brown); }
.summary-total { border-top: 1px solid rgba(201,169,97,.3); margin-top: 10px; padding-top: 18px; font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--brown); font-weight: 700; }
.free-progress { height: 4px; background: var(--beige); margin: 12px 0 6px; }
.free-progress span { display: block; height: 100%; background: var(--gold); transition: width .4s ease; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Личный кабинет */
.account-nav { list-style: none; padding: 0; margin: 0; }
.account-nav a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--brown); text-decoration: none; border-left: 2px solid transparent; transition: all .3s ease; }
.account-nav a i { color: var(--gold); width: 20px; }
.account-nav a:hover, .account-nav a.active { background: var(--cream); border-left-color: var(--gold); }
.account-hello { text-align: center; padding-bottom: 20px; margin-bottom: 10px; border-bottom: 1px solid rgba(201,169,97,.2); }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 12px; }
.stat-box { background: var(--cream); padding: 20px; text-align: center; }
.stat-box .num { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--gold-dark); font-weight: 700; }
.stat-box .lbl { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--soft-brown); }
.order-card { border: 1px solid rgba(201,169,97,.25); margin-bottom: 18px; background: #fff; }
.order-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; background: var(--cream); cursor: pointer; }
.order-card-head .num { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.1rem; }
.order-card-head .meta { color: var(--soft-brown); font-size: .85rem; }
.order-card-body { padding: 18px 20px; }
.order-items { width: 100%; font-size: .9rem; }
.order-items td { padding: 7px 0; border-bottom: 1px dashed rgba(201,169,97,.25); }
.order-items td:last-child { text-align: right; white-space: nowrap; }

.status-badge { display: inline-block; padding: 4px 12px; font-size: .7rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; }
.status-new { background: #ece7df; color: #6b5844; }
.status-confirmed { background: #e2ecf3; color: #2f5d7c; }
.status-baking { background: #f8ecd4; color: #8a6418; }
.status-delivering { background: #e6e3f4; color: #4b3f8f; }
.status-completed { background: #e3efdf; color: #3f6b33; }
.status-cancelled { background: #f5e1e1; color: #8f3434; }

.success-icon { width: 90px; height: 90px; border-radius: 50%; border: 1px solid var(--gold); display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--gold); margin-bottom: 25px; }

@media (max-width: 767px) {
    .product-gallery { height: 340px; }
    .product-title { font-size: 2rem; }
    .cart-row { grid-template-columns: 70px 1fr auto; grid-template-areas: "img info del" "img qty sum"; gap: 10px 15px; }
    .cart-thumb { width: 70px; height: 70px; grid-area: img; }
    .cart-row .cart-info { grid-area: info; } .cart-row .qty { grid-area: qty; justify-self: start; }
    .cart-row .cart-sum { grid-area: sum; } .cart-row .cart-remove { grid-area: del; }
    .radio-cards { grid-template-columns: 1fr; }
    .panel { padding: 22px; }
}
