/* ===== PREMIUM GOLD STYLE ===== */
/* Глобальные переменные премиум стиля - золотая тема с переливом */
:root {
    --accent-primary: #B8860B;
    --accent-light: #D4A84B;
    --accent-dark: #8B6914;
    --accent-gradient: linear-gradient(135deg, #D4A84B 0%, #B8860B 40%, #996515 70%, #CD7F32 100%);
    --accent-gradient-reverse: linear-gradient(135deg, #CD7F32 0%, #B8860B 50%, #D4A84B 100%);
    --accent-soft: #FDF8F0;
    --text-dark: #2D2D2D;
    --text-light: #666;
    --bg-cream: #faf9f7;
    --bg-white: #ffffff;
    --shadow-accent: 0 4px 15px rgba(184, 134, 11, 0.35);
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.08);
    
    /* Совместимость со старыми переменными */
    --gold-primary: #B8860B;
    --gold-light: #D4A84B;
    --gold-dark: #8B6914;
    --gold-gradient: var(--accent-gradient);
    --black-primary: #2D2D2D;
    --black-light: #444;
    --white-cream: #faf9f7;
}

/* ===== КНОПКИ ===== */
.addToCart,
.button-passive .addToCart,
.product .item_button .button-passive .addToCart,
.product-card-btn {
    background: var(--accent-gradient) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: var(--shadow-accent) !important;
    text-shadow: none !important;
}

.addToCart:hover,
.addToCart:active,
.product-card-btn:hover {
    background: linear-gradient(135deg, #CD7F32 0%, #B8860B 50%, #D4A84B 100%) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4) !important;
}

/* Кнопки плюс/минус */
.updateCart,
.button-active .updateCart {
    background: #fff !important;
    color: var(--accent-primary) !important;
    border: 2px solid var(--accent-primary) !important;
    border-radius: 10px !important;
}

.button-active {
    background: var(--accent-soft) !important;
    border: 2px solid var(--accent-primary) !important;
    border-radius: 25px !important;
}

/* ===== ЗАГОЛОВКИ ===== */
h1, h2, h3 {
    color: var(--black-primary);
}

.heading h2 {
    position: relative;
    display: inline-block;
}

.heading h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

/* ===== ЦЕНЫ ===== */
.product .item_cost h2,
.cost h2,
.item_cost h2 {
    border: 2px solid var(--gold-primary) !important;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%) !important;
    color: var(--black-primary) !important;
}

/* ===== БЕЙДЖИ И ЛЕЙБЛЫ ===== */
.stock-info {
    background: var(--gold-gradient);
    color: var(--black-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
}

.stock-info.low-stock {
    background: var(--black-gradient);
    color: var(--gold-primary);
    border: 1px solid var(--gold-dark);
}

.stock-info.out-of-stock-label {
    background: #666;
    color: #fff;
}

/* ===== НАВИГАЦИЯ И НИЖНИЙ БАР ===== */
@media screen and (max-width: 800px) {
    /* Нижний бар - светлый фон */
    .bottom_bar,
    .nav_bar {
        background: #fff !important;
        border-top: 1px solid #eee !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.08) !important;
    }
    
    .bottom_bar .item img,
    .nav_bar .icon img {
        filter: none !important;
    }
    
    .bottom_bar .item:nth-child(2) img {
        background: var(--accent-gradient) !important;
    }
    
    .bottom_bar .basket .basketPrice,
    .nav_bar .icon.cart::after {
        background: var(--accent-gradient) !important;
        color: #fff !important;
    }
    
    .nav_bar .icon {
        color: #333 !important;
    }
    
    .nav_bar .icon.active {
        color: var(--accent-primary) !important;
    }
}

/* ===== КАРТОЧКА ТОВАРА (мобильная) ===== */
@media screen and (max-width: 800px) {
    .product .product-item {
        background: var(--white-cream);
        border-radius: 0;
        margin: 0;
        padding: 0;
    }
    
    .product .item_photo {
        position: relative;
        margin: 0;
        background: #fff;
    }
    
    .product .item_photo img.photo {
        width: 100%;
        height: auto;
        max-height: 50vh;
        object-fit: cover;
        border-radius: 0;
    }
    
    .product .information {
        padding: 20px 16px;
        background: #fff;
        border-radius: 24px 24px 0 0;
        margin-top: -24px;
        position: relative;
        z-index: 2;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    }
    
    .product .item_title h1 {
        font-size: 22px;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 12px;
        color: var(--black-primary);
    }
    
    .product .two_three_grid {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        margin: 16px 0;
        padding: 16px;
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(255, 215, 0, 0.04) 100%);
        border: 1px solid rgba(212, 175, 55, 0.2);
        border-radius: 16px;
    }
    
    .product .item_weight {
        flex: 1;
        min-width: 100px;
    }
    
    .product .item_weight select,
    .product .item_weight span {
        width: 100%;
        height: 44px;
        background: #fff;
        border: 1px solid rgba(212, 175, 55, 0.3);
        border-radius: 12px;
        font-size: 15px;
        padding: 0 12px;
        color: var(--black-primary);
    }
    
    .product .item_cost {
        flex-shrink: 0;
    }
    
    .product .item_cost h2 {
        font-size: 24px;
        font-weight: 800;
        color: var(--black-primary) !important;
        border: 2px solid var(--gold-primary) !important;
        padding: 8px 16px !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(255, 215, 0, 0.08) 100%) !important;
    }
    
    .product .item_button {
        width: 100%;
        margin-top: 12px;
    }
    
    .product .item_button .button-passive,
    .product .item_button .button-active {
        width: 100%;
    }
    
    .product .item_button .button-passive .addToCart {
        width: 100%;
        height: 52px;
        border-radius: 14px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product .item_button .button-active {
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%) !important;
        border: 1px solid var(--gold-primary) !important;
        border-radius: 14px !important;
        padding: 8px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .product .item_button .button-active .updateCart {
        width: 44px;
        height: 40px;
        border-radius: 10px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }
    
    .product .item_button .button-active .kolvo {
        flex: 1;
        font-size: 18px;
        font-weight: 700;
        text-align: center;
        color: var(--black-primary);
    }
    
    /* Описание товара */
    .product .item_desc {
        margin: 20px 0;
        padding: 16px;
        background: #fff;
        border-radius: 16px;
        border: 1px solid #eee;
    }
    
    .product .item_desc p {
        font-size: 15px;
        line-height: 1.6;
        color: #444;
    }
    
    /* Модификаторы */
    .product .modifiers h3 {
        font-size: 16px;
        font-weight: 700;
        color: var(--black-primary);
        margin-bottom: 12px;
        padding-left: 4px;
    }
    
    .product .mod_group {
        background: #fff;
        border-radius: 16px;
        border: 1px solid #eee;
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .product .mod_item {
        display: flex;
        align-items: center;
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 8px;
        background: var(--white-cream);
        border: 1px solid transparent;
        transition: all 0.2s;
    }
    
    .product .mod_item:last-child {
        margin-bottom: 0;
    }
    
    .product .mod_item input:checked + label,
    .product .mod_item:has(input:checked) {
        border-color: var(--gold-primary);
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    }
    
    .product .mod_item .title {
        flex: 1;
        font-size: 14px;
        color: var(--black-primary);
    }
    
    .product .mod_item .cost {
        font-weight: 700;
        color: var(--gold-dark);
        font-size: 14px;
    }
    
    /* Финальная панель стоимости */
    .product .final_cost_bar {
        position: fixed;
        bottom: 70px;
        left: 0;
        right: 0;
        background: var(--black-primary);
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        z-index: 100;
        border-top: 1px solid var(--gold-dark);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    }
    
    .product .final_cost_bar .quantity_product {
        background: var(--black-light);
        border: 1px solid var(--gold-dark);
        border-radius: 10px;
        overflow: hidden;
    }
    
    .product .final_cost_bar .quantity_product .button {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--gold-primary);
        font-size: 18px;
    }
    
    .product .final_cost_bar .quantity_product .kolvo {
        min-width: 40px;
        text-align: center;
        color: #fff;
        font-weight: 700;
    }
    
    .product .final_cost_bar .cost {
        color: var(--gold-light);
        font-size: 20px;
        font-weight: 800;
    }
    
    .product .final_cost_bar .addToCart_mods {
        flex: 1;
        height: 44px;
        background: var(--gold-gradient) !important;
        color: var(--black-primary) !important;
        border: none !important;
        border-radius: 12px !important;
        font-weight: 700 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== СПИСОК ТОВАРОВ ===== */
@media screen and (max-width: 800px) {
    .products .product-item {
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid #eee;
    }
    
    .products .product-item .addToCart {
        background: var(--black-gradient) !important;
        color: var(--gold-primary) !important;
        border: 1px solid var(--gold-primary) !important;
    }
    
    .products .product-item .cost {
        color: var(--black-primary);
        font-weight: 700;
    }
    
    .products .product-item .oldcost {
        color: #999;
    }
}

/* ===== КОРЗИНА ===== */
@media screen and (max-width: 800px) {
    .cart .cart-item {
        background: #fff;
        border-radius: 16px;
        border: 1px solid #eee;
        margin-bottom: 12px;
    }
    
    .cart .total-bar,
    .cart .checkout-btn,
    .cart_footer .button {
        background: var(--gold-gradient) !important;
        color: var(--black-primary) !important;
        border: none !important;
        font-weight: 700 !important;
    }
}

/* ===== ШАПКА ===== */
@media screen and (max-width: 800px) {
    header,
    .header {
        background: var(--black-primary);
        border-bottom: 1px solid var(--gold-dark);
    }
    
    header .logo img,
    .header .logo img {
        filter: brightness(1.2);
    }
}

/* ===== ФУТЕР ===== */
footer {
    background: var(--black-primary);
    color: #ccc;
    border-top: 2px solid var(--gold-primary);
}

footer a {
    color: var(--gold-primary);
}

footer h3,
footer h4 {
    color: var(--gold-light);
}

/* ===== АКЦЕНТЫ ===== */
a {
    color: var(--gold-dark);
}

a:hover {
    color: var(--gold-primary);
}

/* Выделение */
::selection {
    background: var(--gold-primary);
    color: var(--black-primary);
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--black-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-gradient);
    border-radius: 3px;
}

/* ===== ФОРМЫ ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px 16px;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--gold-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Кнопки форм */
button[type="submit"],
input[type="submit"],
.btn-primary,
.btn-gold {
    background: var(--gold-gradient);
    color: var(--black-primary);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-gold);
}

button[type="submit"]:hover,
input[type="submit"]:hover,
.btn-primary:hover,
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Альтернативная кнопка */
.btn-dark {
    background: var(--black-gradient);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}
