/*
Theme Name: Kimhouse
Theme URI: https://kimhouse.ae
Author: Marat
Description: Custom WooCommerce theme for Kimhouse
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kimhouse
Tags: woocommerce, store, e-commerce, korean, gilroy
*/

/* (test block removed) */

/* ================================
   TABLE OF CONTENTS
   ================================
   1. Reset & Base Styles
   2. Typography (Gilroy)
   3. Layout
   4. Header
   5. Navigation
   6. Dark Theme
   7. Products
   8. Footer
   9. Responsive
   ================================ */


/* ================================
   1. RESET & BASE STYLES
   ================================ */

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

:root {
    --terracotta: #CF5624;
    --beige: #CFA47B;
    --dark: #1A1A1A;
    --gray: #666666;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
}

body {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Bar - Removed (moved to header-actions) */

.delivery-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 20px;
    line-height: 1.4;
}

.delivery-info span {
    font-weight: 500;
}

.lang-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--white);
    color: var(--terracotta);
}

.main-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--terracotta);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 1px;
}

.logo-text p {
    font-size: 10px;
    color: var(--gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-img {
    width: 80px;
    height: auto;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--terracotta);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--terracotta);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 10px 16px;
    background: var(--light-gray);
    border: 2px solid var(--terracotta);
    border-radius: 8px;
    color: var(--terracotta);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 68px;
}

.lang-dropdown-btn:hover {
    background: rgba(207, 86, 36, 0.1);
}

.lang-dropdown-btn.active {
    background: var(--terracotta);
    color: var(--white);
    border-color: var(--terracotta);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.lang-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 2px solid var(--terracotta);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lang-dropdown-item:hover {
    background: rgba(207, 86, 36, 0.1);
    color: var(--terracotta);
}

.lang-dropdown-btn {
    background: #333;
    color: var(--beige);
}

.lang-dropdown-menu {
    background: #2a2a2a;
    border-color: var(--beige);
}

.lang-dropdown-item {
    color: var(--white);
}

.lang-dropdown-item:hover {
    background: rgba(207, 164, 123, 0.2);
    color: var(--beige);
}

.cart-btn, .account-btn {
    position: relative;
    background: var(--light-gray);
    border: none;
    /* Fixed square size */
    width: 57px;
    height: 57px;
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s;
    text-decoration: none;
}

.cart-btn:hover, .account-btn:hover {
    background: var(--beige);
    color: var(--white);
}

.cart-icon, .account-icon {
    font-size: 24px;
    position: relative;
}

/* Ensure inner span inside account button lays out as flex for proper centering */
.account-btn > span { display: flex; align-items: center; justify-content: center; }

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--terracotta);
    color: var(--white);
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(207, 86, 36, 0.4);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    0% { 
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Анимация пульсации для корзины при обновлении */
.cart-btn.pulse {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #2A2A2A 100%);
    color: var(--white);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text .highlight {
    color: var(--terracotta);
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.8);
}

.price-tag {
    display: inline-block;
    background: var(--terracotta);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Hero Order Button */
.hero-order-btn {
    display: inline-block;
    background: var(--terracotta);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.hero-order-btn:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.hero-btn {
    background: var(--terracotta);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-btn:hover {
    background: var(--beige);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(207, 86, 36, 0.3);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Theme Switcher - Removed (Always Dark Theme) */

/* Dark Theme (Always Active) */
body {
    background: #1A1A1A;
    color: #FFFFFF;
    min-height: 100vh;
}

.container {
    background: transparent;
}

main {
    background: #1A1A1A;
    min-height: 100vh;
}

.header {
    background: #2A2A2A;
}

.logo-text h1,
.nav-menu a {
    color: #FFFFFF;
}

.cart-btn, .account-btn {
    background: #333333;
    color: #FFFFFF;
}

.cart-icon, .account-icon {
    filter: brightness(1.5);
}

.cart-btn:hover .cart-icon, .account-btn:hover .account-icon {
    filter: brightness(2);
}

.categories,
.products,
.hot-section {
    background: #1A1A1A;
}

/* ================================
     Mobile Bottom Menu (FAB + Drawer)
     ================================ */
.kh-mobile-fab { display:none; }
.kh-mobile-drawer { display:none; }

@media (max-width: 768px) {
    body.kh-lock-scroll { overflow:hidden; }
        .kh-mobile-fab {
            position: fixed; left: 12px; bottom: 16px; z-index: 100000;
            border-radius: 14px;
            background: linear-gradient(180deg,#ff914d 0%, #cf5624 100%);
            color:#fff; display:flex; align-items:center; justify-content:center;
            padding: 15px 15px; font-weight: 700; font-size: 16px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.35);
            cursor: pointer;
    }
        .kh-mobile-fab__label { line-height: 1; }

                /* Drawer uses visibility + transforms for smooth enter/leave */
                    .kh-mobile-drawer { position: fixed; inset:0; z-index:100000; visibility:hidden; pointer-events:none; display:block; }
                .kh-mobile-drawer.open { visibility:visible; pointer-events:auto; }
                .kh-mobile-drawer__backdrop { position:absolute; inset:0; background: rgba(0,0,0,.55); opacity:0; transition: opacity .35s ease; }
                .kh-mobile-drawer.open .kh-mobile-drawer__backdrop { opacity:1; }
                .kh-mobile-drawer__panel { position:absolute; left:0; right:0; bottom:0; background:#1f1f1f; border-radius: 16px 16px 0 0; border:1px solid rgba(255,255,255,0.08); padding: 14px 16px 18px; max-height: 75vh; overflow:auto; transform: translateY(100%); transition: transform .45s ease; }
                .kh-mobile-drawer.open .kh-mobile-drawer__panel { transform: translateY(0); }

                    /* Closing state: keep container visible while animating out */
                    .kh-mobile-drawer.closing { visibility: visible; pointer-events: none; }
                    .kh-mobile-drawer.closing .kh-mobile-drawer__panel { transform: translateY(100%); }
                    .kh-mobile-drawer.closing .kh-mobile-drawer__backdrop { opacity: 0; }
    .kh-mobile-drawer__header { display:flex; justify-content: space-between; align-items:center; color:#fff; margin-bottom: 8px; }
    .kh-mobile-drawer__close { background:transparent; border:none; color:#fff; font-size:20px; line-height:1; padding:8px; }
    .kh-mobile-drawer__list { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
    .kh-mob-link { display:block; padding:12px 14px; border-radius:12px; background:#2a2a2a; color:#fff; text-decoration:none; border:1px solid rgba(255,255,255,0.08); }
    .kh-mob-link:hover { background:#333; }
}

.section-title {
    color: #FFFFFF;
}

.category-item {
    background: #2A2A2A;
    color: #FFFFFF;
}

.product-card {
    background: #2A2A2A;
}

.product-description {
    color: #CCCCCC;
}

/* Products Section */
.products {
    padding: 40px 20px;
    background: #1A1A1A;
    min-height: 100vh;
}

.product-section {
    margin-bottom: 60px;
    scroll-margin-top: 80px;
}

.product-section:last-child {
    margin-bottom: 0;
}

.product-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--terracotta);
}

.no-products {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    padding: 40px 0;
}

/* Categories */
.categories {
    padding: 20px 20px 40px;
    background: var(--white);
}

.category-nav {
    position: sticky;
    top: 88px;
    z-index: 999;
    background: #2A2A2A;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--dark);
}

.category-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--beige) transparent;
}

.category-grid::-webkit-scrollbar {
    height: 6px;
}

.category-grid::-webkit-scrollbar-track {
    background: transparent;
}

.category-grid::-webkit-scrollbar-thumb {
    background: var(--beige);
    border-radius: 3px;
}

.category-item {
    text-align: center;
    padding: 15px 25px;
    border-radius: 16px;
    background: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--dark);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-item.active {
    background: var(--terracotta);
    color: var(--white);
}

.category-item:hover {
    background: var(--beige);
    color: var(--white);
    transform: translateY(-2px);
}

.category-icon {
    font-size: 24px;
}

.category-name {
    font-weight: 600;
    font-size: 14px;
}

.product-section {
    margin-bottom: 60px;
    scroll-margin-top: 160px;
}

.product-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--white);
    padding-bottom: 15px;
    border-bottom: 3px solid var(--terracotta);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: #2A2A2A;
    border-radius: 16px;
    overflow: visible;
    transition: all 0.3s ease;
    box-shadow: none;
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: none;
    box-shadow: none;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 16px 16px 0 0;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--white);
    line-height: 1.3;
    border: none;
}

.product-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 15px 0;
    line-height: 1.5;
    min-height: 40px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 20px;
    font-weight: 700;
    color: var(--terracotta);
}

/* Зачеркнутая цена */
.product-price .old-price {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-decoration-thickness: 2px;
}

/* Текущая цена */
.product-price .current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--terracotta);
    text-shadow: 0 1px 2px rgba(207, 86, 36, 0.3);
}

/* Стили для WooCommerce зачеркнутых цен - СУПЕР АГРЕССИВНЫЕ */
/* Убираем зачеркивание для обычных цен */
.product-price:not(:has(del)) {
    text-decoration: none !important;
}

.product-price del,
.product-price .price del {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: line-through !important;
    text-decoration-color: rgba(255, 255, 255, 0.3) !important;
    text-decoration-thickness: 2px !important;
    margin-right: 8px !important;
    opacity: 0.7 !important;
}

.product-price ins,
.product-price .price ins,
.product-price .price .woocommerce-Price-amount:not(del) {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #CF5624 !important;
    text-decoration: none !important;
    text-shadow: 0 1px 2px rgba(207, 86, 36, 0.3) !important;
    background: none !important;
}

/* Если есть скидка, показываем цены в колонку */
.product-price:has(del) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.product-price:has(del) del {
    order: 1;
    margin-right: 0;
}

.product-price:has(del) ins {
    order: 2;
}

/* ДОПОЛНИТЕЛЬНЫЕ АГРЕССИВНЫЕ СТИЛИ ДЛЯ WOOCOMMERCE ЦЕН - ТОЛЬКО ДЛЯ ОБЫЧНЫХ ЦЕН */
.product-card .product-price:not(:has(del)) {
    color: #CF5624 !important;
    font-weight: 700 !important;
    font-size: 20px !important;
}

.product-card .product-price:not(:has(del)) *,
.product-card .product-price:not(:has(del)) span,
.product-card .product-price:not(:has(del)) .woocommerce-Price-amount {
    color: #CF5624 !important;
    font-weight: 700 !important;
    font-size: 20px !important;
}

.product-card .product-price del,
.product-card .product-price .price del,
.product-card .product-price .woocommerce-Price-amount del {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: line-through !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    opacity: 0.7 !important;
}

.product-card .product-price ins,
.product-card .product-price .price ins,
.product-card .product-price .woocommerce-Price-amount ins {
    color: #CF5624 !important;
    text-decoration: none !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    background: none !important;
}

/* Стили для обычных цен БЕЗ скидки - СУПЕР АГРЕССИВНЫЕ */
.product-card .product-price:not(:has(del)):not(:has(ins)),
.product-card .product-price:not(:has(del)):not(:has(ins)) *,
.product-card .product-price:not(:has(del)):not(:has(ins)) span,
.product-card .product-price:not(:has(del)):not(:has(ins)) .woocommerce-Price-amount {
    color: #CF5624 !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
}

/* Дополнительная защита от зачеркивания */
.product-card .product-price:not(:has(del)):not(:has(ins)) .woocommerce-Price-amount {
    text-decoration: none !important;
    text-decoration-line: none !important;
}

/* СУПЕР АГРЕССИВНАЯ ЗАЩИТА ОТ ЗАЧЕРКИВАНИЯ */
.product-card .product-price:not(:has(del)):not(:has(ins)),
.product-card .product-price:not(:has(del)):not(:has(ins)) *,
.product-card .product-price:not(:has(del)):not(:has(ins)) span,
.product-card .product-price:not(:has(del)):not(:has(ins)) .woocommerce-Price-amount,
.product-card .product-price:not(:has(del)):not(:has(ins)) .woocommerce-Price-amount * {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
    text-decoration-skip-ink: none !important;
    text-decoration-skip: none !important;
    text-decoration-thickness: 0 !important;
    text-decoration-width: 0 !important;
    text-decoration-offset: 0 !important;
    text-decoration-underline-offset: 0 !important;
    text-decoration-overline-offset: 0 !important;
    text-decoration-line-through-offset: 0 !important;
}

/* Header Delivery Info - Стили для иконок */
.delivery-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-item,
.delivery-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.delivery-icon,
.delivery-info span svg {
    color: #CF5624;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.delivery-item:hover .delivery-icon,
.delivery-info span:hover svg {
    color: #FF6B35;
    transform: scale(1.1);
}

/* Скрываем навигацию на планшетах и меньше */
@media (max-width: 1250px) {
    .main-header nav {
        display: none;
    }
}

/* Планшетные стили */
@media (max-width: 1140px) {
    .cart-bottom-section {
        grid-template-columns: 1fr;
    }
}

/* Мобильные стили для delivery-info */
@media (max-width: 768px) {
    .delivery-info {
        gap: 6px;
    }
    
    .delivery-item,
    .delivery-info span {
        font-size: 13px;
        gap: 6px;
    }
    
    .delivery-icon,
    .delivery-info span svg {
        width: 14px;
        height: 14px;
    }
}

/* WooCommerce Notices Wrapper - Стили для уведомлений */
.woocommerce-notices-wrapper {
    margin: 20px 0;
    padding: 0;
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
    border: 2px solid rgba(207, 86, 36, 0.3);
    border-radius: 16px;
    padding: 20px 25px;
    margin: 15px 0;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #CF5624 0%, #FF6B35 50%, #CF5624 100%);
    border-radius: 16px 16px 0 0;
}

.woocommerce-notices-wrapper .woocommerce-message {
    border-left: 4px solid #4CAF50;
}

.woocommerce-notices-wrapper .woocommerce-info {
    border-left: 4px solid #2196F3;
}

.woocommerce-notices-wrapper .woocommerce-error {
    border-left: 4px solid #F44336;
}

.woocommerce-notices-wrapper .woocommerce-message a,
.woocommerce-notices-wrapper .woocommerce-info a,
.woocommerce-notices-wrapper .woocommerce-error a {
    color: #CF5624;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.woocommerce-notices-wrapper .woocommerce-message a:hover,
.woocommerce-notices-wrapper .woocommerce-info a:hover,
.woocommerce-notices-wrapper .woocommerce-error a:hover {
    color: #FF6B35;
    text-shadow: 0 0 8px rgba(207, 86, 36, 0.5);
}

.woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-info .button,
.woocommerce-notices-wrapper .woocommerce-error .button {
    background: linear-gradient(135deg, #CF5624 0%, #FF6B35 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 8px 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-left: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(207, 86, 36, 0.3);
}

.woocommerce-notices-wrapper .woocommerce-message .button:hover,
.woocommerce-notices-wrapper .woocommerce-info .button:hover,
.woocommerce-notices-wrapper .woocommerce-error .button:hover {
    background: linear-gradient(135deg, #FF6B35 0%, #CF5624 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(207, 86, 36, 0.4);
}

/* Add to Cart Button - Минималистичный плюсик */
.product-card .add-to-cart {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #CF5624 0%, #B54A1F 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: 300;
    font-family: 'Gilroy', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(207, 86, 36, 0.4);
    z-index: 10;
    line-height: 1;
    flex-shrink: 0;
}

.product-card .add-to-cart:hover {
    background: linear-gradient(135deg, #E66328 0%, #CF5624 100%);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(207, 86, 36, 0.6);
}

.product-card .add-to-cart:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(207, 86, 36, 0.4);
}

.product-card .add-to-cart.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
    position: relative;
    overflow: visible;
}

.product-card .add-to-cart.loading::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    z-index: 10;
    pointer-events: none;
    margin: 0;
}

/* Mobile: nudge loader 2px up and 2px left for better optical centering */
@media (max-width: 768px) {
    .product-card .add-to-cart.loading::after {
        top: 8px;
        left: 8px;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.product-card .add-to-cart.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Quantity Control - Премиум дизайн */

/* Fieldset reset (remove borders site-wide on frontend) */
fieldset {
    border: 0 !important;
}
.cart-control-wrapper {
    position: relative;
    width: auto;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 40px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.quantity-control.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.quantity-control.loading {
    opacity: 0.6;
    pointer-events: none;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #fff;
    color: #CF5624;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    line-height: 1;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.qty-btn:hover {
    background: #CF5624;
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(207, 86, 36, 0.5);
    border-color: #CF5624;
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-btn span {
    position: relative;
    z-index: 1;
}

.qty-value {
    min-width: 50px;
    padding: 0 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    font-family: 'Gilroy', sans-serif;
    background: linear-gradient(135deg, rgba(207, 86, 36, 0.25) 0%, rgba(207, 164, 123, 0.25) 100%);
    border: 2px solid rgba(207, 86, 36, 0.4);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -8px;
    z-index: 1;
    position: relative;
    backdrop-filter: blur(10px);
    letter-spacing: 1px;
}

/* Dark Theme для Quantity Control */
body.dark-theme .qty-btn {
    background: #fff;
    color: #CF5624;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .qty-btn:hover {
    background: #CF5624;
    color: #fff;
    border-color: #CF5624;
    box-shadow: 0 4px 15px rgba(207, 86, 36, 0.6);
}

body.dark-theme .qty-value {
    color: #CFA47B;
    background: linear-gradient(135deg, rgba(207, 86, 36, 0.3) 0%, rgba(207, 164, 123, 0.3) 100%);
    border-color: rgba(207, 164, 123, 0.5);
    text-shadow: 0 2px 10px rgba(207, 164, 123, 0.3);
}

/* Hot Section */
.hot-section {
    padding: 60px 20px;
    background: var(--white);
}

.hot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.hot-card {
    background: linear-gradient(135deg, var(--dark) 0%, #2A2A2A 100%);
    border-radius: 20px;
    padding: 30px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hot-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--terracotta);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.hot-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.hot-card .price {
    font-size: 32px;
    font-weight: 700;
    color: var(--beige);
    margin-top: 20px;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--terracotta);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--terracotta);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    font-size: 24px;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .header-actions .delivery-info {
        display: none;
    }
    
    .footer-section:first-child {
        display: none;
    }
    
    .footer {
        padding-top: 20px;
    }
    
    .about-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .about-values {
        padding: 20px !important;
    }
    
    .about-story {
        padding: 20px !important;
    }
    
    .about-hero {
        padding: 20px !important;
    }
    
    .footer-section h3 {
        margin-bottom: 10px;
    }
    
    .logo-img {
        width: 55px;
    }
    
    .cart-btn, .account-btn {
        width: 50px;
        height: 50px;
        padding: 0;
    }
    
    .cart-icon, .account-icon {
        font-size: 20px;
    }
    
    .contact-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        border-radius: 20px !important;
    }
    
    .map-section {
        border-radius: 20px !important;
    }
    
    .contact-icon {
        width: 23px !important;
        height: 23px !important;
    }
    
    .contact-item {
        margin-bottom: 15px !important;
    }
    
    .contacts-section {
        padding: 20px !important;
    }
    
    .contacts-section .container {
        padding: 0 !important;
    }

    .hero-content {
        grid-template-columns: 1fr;
        /* Stack with image first on mobile */
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .hero-image {
        order: 1;
    }

    .hero-text {
        order: 2;
    }

    .hero-text h2 {
        font-size: 36px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    /* Адаптивные стили для счетчика количества */
    .quantity-control {
        height: 36px;
    }
    
    .qty-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .qty-value {
        font-size: 16px;
        min-width: 45px;
        padding: 0 12px;
        height: 36px;
    }
    
    .product-card .add-to-cart {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}


/* ================================
   ABOUT PAGE STYLES
   ================================ */

.about-page {
    background: #1A1A1A;
    color: var(--white);
}

/* About Hero Section */
.about-hero {
    background: linear-gradient(135deg, #2A2A2A 0%, #1A1A1A 100%);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 3px solid var(--terracotta);
}

.about-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.about-subtitle {
    font-size: 20px;
    color: var(--beige);
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
}

/* Story Section */
.about-story {
    padding: 80px 20px;
    background: #1A1A1A;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.about-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(121deg, rgba(26, 26, 26, 0.9), rgba(42, 42, 42, 0.9));
    z-index: 1;
}

.about-story .container {
    position: relative;
    z-index: 2;
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(207, 86, 36, 0.08) 0%, rgba(207, 164, 123, 0.08) 100%);
    border-radius: 30px;
    border: 2px solid rgba(207, 86, 36, 0.15);
    position: relative;
}

.story-content::before {
    content: '❝';
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 80px;
    color: rgba(207, 86, 36, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.story-content h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--terracotta);
    margin-bottom: 40px;
    position: relative;
}

.story-text-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.story-lead {
    font-size: 20px;
    line-height: 1.8;
    color: var(--beige);
    margin-bottom: 25px;
    font-weight: 500;
}

.story-content p {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* Values Section */
.about-values {
    padding: 80px 20px;
    background: #2A2A2A;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: linear-gradient(135deg, rgba(207, 86, 36, 0.1) 0%, rgba(207, 164, 123, 0.1) 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(207, 86, 36, 0.2);
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--terracotta);
    box-shadow: 0 10px 30px rgba(207, 86, 36, 0.3);
}

.value-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--terracotta);
    margin-bottom: 15px;
}

.value-card p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* Team Section */
.about-team {
    padding: 80px 20px;
    background: #1A1A1A;
}

.team-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    position: relative;
    padding-left: 80px;
}

.feature-number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 72px;
    font-weight: 800;
    color: rgba(207, 86, 36, 0.2);
    line-height: 1;
}

.feature-item h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* CTA Section */
.about-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, #CF5624 0%, #B54A1F 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: 'Gilroy', sans-serif;
}

.btn-primary {
    background: var(--white);
    color: var(--terracotta);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--beige);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.about-cta .btn-primary {
    justify-content: center;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--terracotta);
    transform: translateY(-3px);
}

/* Responsive About Page */
@media (max-width: 768px) {
    .about-title {
        font-size: 36px;
    }
    
    .about-subtitle {
        font-size: 16px;
    }
    
    .story-content {
        padding: 40px 25px;
    }
    
    .story-content::before {
        font-size: 50px;
        top: 15px;
        left: 20px;
    }
    
    .story-lead {
        font-size: 18px;
    }
    
    .story-content h2,
    .section-title,
    .cta-content h2 {
        font-size: 28px;
    }
    
    .values-grid,
    .team-features {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-item {
        padding-left: 60px;
    }
    
    .feature-number {
        font-size: 48px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}


/* ================================
   GENERAL PAGE STYLES
   ================================ */

.page-main {
    background: #1A1A1A;
    min-height: 60vh;
    padding: 60px 20px;
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--white);
    line-height: 1.8;
}

.woocommerce-main {
    background: #1A1A1A;
    min-height: 60vh;
}


/* ================================
   CART PAGE STYLES
   ================================ */

.kimhouse-cart-page {
    background: #1A1A1A;
    min-height: 80vh;
    padding: 60px 20px;
}

.cart-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 40px;
    text-align: center;
}

/* Empty Cart */
.cart-empty {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-radius: 24px;
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid rgba(207, 86, 36, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-icon {
    font-size: 100px;
    margin-bottom: 20px;
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

.cart-empty h2 {
    font-size: 28px;
    color: var(--white);
    margin-bottom: 15px;
}

.cart-empty p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.cart-empty .btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #CF5624 0%, #B54A1F 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Gilroy', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(207, 86, 36, 0.4);
    border: 2px solid transparent;
}

.cart-empty .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(207, 86, 36, 0.6);
    border-color: var(--beige);
    background: linear-gradient(135deg, #E06030 0%, #C55725 100%);
}

/* Cart Items */
.cart-items {
    background: #2A2A2A;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.cart-item-name a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.cart-item-name a:hover {
    color: var(--terracotta);
}

.cart-item-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Quantity Control для корзины */
.cart-item-quantity {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-quantity label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.quantity-control-cart {
    display: flex;
    align-items: center;
    gap: 0;
}

.qty-cart-btn {
    width: 35px;
    height: 35px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #fff;
    color: #CF5624;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qty-cart-btn:hover {
    background: #CF5624;
    color: #fff;
    border-color: #CF5624;
}

.qty-input {
    width: 50px;
    height: 35px;
    text-align: center;
    border: 2px solid rgba(207, 86, 36, 0.3);
    background: rgba(207, 86, 36, 0.1);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin: 0 -2px;
    border-radius: 0;
    font-family: 'Gilroy', sans-serif;
}

/* Price & Subtotal */
.cart-item-price,
.cart-item-subtotal {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: right;
}

.price-label,
.subtotal-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.price-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

.subtotal-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--terracotta);
}

/* Remove Button */
.cart-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
}

.remove-item {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg);
}

/* Cart Actions */
.cart-actions {
    text-align: right;
    padding: 20px 30px;
    background: #2A2A2A;
    border-radius: 12px;
    margin-bottom: 30px;
}

.cart-actions .button {
    background: var(--terracotta);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-actions .button:hover {
    background: #E66328;
    transform: translateY(-2px);
}

/* Delivery Calculator */
.delivery-calculator {
    background: #2A2A2A;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(207, 86, 36, 0.2);
}

.delivery-calculator h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

/* Pickup Option Checkbox */
.pickup-option {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(207, 86, 36, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(207, 86, 36, 0.3);
}

.pickup-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.pickup-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--terracotta);
}

.pickup-checkbox .checkbox-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

/* Pickup Info Section */
.pickup-info {
    background: linear-gradient(135deg, rgba(207, 86, 36, 0.15) 0%, rgba(207, 86, 36, 0.05) 100%);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid rgba(207, 86, 36, 0.3);
}

.pickup-details p {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
}

.pickup-details p:last-child {
    margin-bottom: 0;
}

.pickup-address,
.pickup-hours,
.pickup-discount {
    color: rgba(255, 255, 255, 0.9);
}

.pickup-discount {
    background: rgba(0, 255, 0, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    color: #4CAF50;
}

/* Pickup Option on Checkout Page */
.pickup-option-checkout {
    margin: 25px 0 !important;
    padding: 20px !important;
    background: linear-gradient(135deg, rgba(207, 86, 36, 0.12) 0%, rgba(207, 86, 36, 0.05) 100%) !important;
    border-radius: 16px !important;
    border: 2px solid rgba(207, 86, 36, 0.35) !important;
}

.pickup-checkbox-checkout {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.pickup-checkbox-checkout input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--terracotta);
    flex-shrink: 0;
}

.pickup-checkbox-checkout .checkbox-label {
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
}

/* Pickup Info on Checkout */
.pickup-info-checkout {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border-left: 4px solid var(--terracotta);
}

.pickup-info-checkout p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.pickup-info-checkout p:last-child {
    margin-bottom: 0;
}

.pickup-address-checkout strong,
.pickup-hours-checkout strong {
    color: var(--terracotta);
    font-size: 15px;
}

/* Delivery Fields Container */
#deliveryFieldsCheckout {
    transition: all 0.3s ease;
}

/* Delivery Saved Notice */
.delivery-saved-notice {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.05) 100%);
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.delivery-saved-notice strong {
    color: #4CAF50;
    font-weight: 700;
}

/* Delivery Info Read-Only (Checkout Page) */
.delivery-info-readonly {
    margin-bottom: 25px;
}

.delivery-method-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.pickup-badge {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.1) 100%);
    border: 2px solid rgba(76, 175, 80, 0.4);
    color: #4CAF50;
}

.delivery-badge {
    background: linear-gradient(135deg, rgba(207, 86, 36, 0.2) 0%, rgba(207, 86, 36, 0.1) 100%);
    border: 2px solid rgba(207, 86, 36, 0.4);
    color: var(--terracotta);
}

.delivery-details-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    border-left: 4px solid var(--terracotta);
}

.pickup-selected .delivery-details-box {
    border-left-color: #4CAF50;
}

.delivery-details-box p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.delivery-details-box p:last-child {
    margin-bottom: 0;
}

.delivery-details-box strong {
    color: var(--terracotta);
}

.pickup-selected .delivery-details-box strong {
    color: #4CAF50;
}

.delivery-discount {
    background: rgba(76, 175, 80, 0.15);
    padding: 10px 15px;
    border-radius: 8px;
    color: #4CAF50 !important;
    font-weight: 600;
}

.zone-badge {
    display: inline-block;
    background: rgba(207, 86, 36, 0.2);
    color: var(--terracotta);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.change-option-link {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.change-option-link a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.change-option-link a:hover {
    color: var(--terracotta);
}

/* Delivery Warning Box */
.delivery-warning-box {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 152, 0, 0.05) 100%);
    border: 2px solid rgba(255, 152, 0, 0.4);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.delivery-warning-box strong {
    color: #FFA726;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
}

.btn-back-to-cart {
    display: inline-block;
    background: var(--terracotta);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-back-to-cart:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

/* Checkout Requirement Notice */
.checkout-requirement-notice {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(33, 150, 243, 0.05) 100%);
    border: 2px solid rgba(33, 150, 243, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    line-height: 1.6;
}

/* Checkout Warning (динамическое) */
.checkout-warning {
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delivery-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.delivery-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.delivery-address-input,
.delivery-area-select {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 15px;
    font-family: 'Gilroy', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
}

.delivery-area-select option {
    background: #2A2A2A;
    color: var(--white);
    padding: 10px;
}

.delivery-area-select optgroup {
    background: #1A1A1A;
    color: var(--terracotta);
    font-weight: 700;
}

.delivery-address-input:focus,
.delivery-area-select:focus {
    outline: none;
    border-color: var(--terracotta);
    background: rgba(255, 255, 255, 0.08);
}

.delivery-address-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.delivery-help {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: -10px 0 15px 0;
    font-style: italic;
}

.btn-calculate {
    padding: 15px 30px;
    background: linear-gradient(135deg, #CF5624 0%, #B54A1F 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Gilroy', sans-serif;
    box-shadow: 0 4px 15px rgba(207, 86, 36, 0.3);
}

.btn-calculate:hover {
    background: linear-gradient(135deg, #E66328 0%, #CF5624 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(207, 86, 36, 0.5);
}

.btn-calculate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Delivery Result */
.delivery-result {
    margin: 20px 0;
}

.delivery-success {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 20px;
}

.delivery-error {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid rgba(244, 67, 54, 0.3);
    border-radius: 12px;
    padding: 15px;
    color: #ff6b6b;
    font-weight: 500;
}

.result-header {
    font-size: 18px;
    font-weight: 700;
    color: #4caf50;
    margin-bottom: 15px;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item.highlight {
    background: rgba(207, 86, 36, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 10px;
    border: none;
}

.detail-item .label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.detail-item .value {
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
}

.detail-item .value.free {
    color: #4caf50;
    font-size: 16px;
}

.delivery-tip {
    background: rgba(207, 164, 123, 0.15);
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--beige);
    font-size: 14px;
    margin-top: 10px;
}

.delivery-warning {
    background: rgba(255, 152, 0, 0.15);
    padding: 10px 15px;
    border-radius: 8px;
    color: #ffb74d;
    font-size: 14px;
    margin-top: 10px;
}

/* Delivery Zones Info */
.delivery-zones-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--beige);
    margin-bottom: 12px;
}

.zones-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zone-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}

.zone-info strong {
    color: var(--terracotta);
}

/* Cart Totals - Премиум дизайн */

.cart-totals {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-radius: 24px;
    padding: 35px;
    min-width: 450px;
    border: 2px solid rgba(207, 86, 36, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.cart-totals::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #CF5624 0%, #CFA47B 100%);
}

.cart-totals h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(207, 86, 36, 0.2);
    letter-spacing: 0.5px;
    position: relative;
}

.totals-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.totals-line:hover {
    padding-left: 5px;
    color: rgba(255, 255, 255, 0.95);
}

.totals-line:last-of-type {
    border-bottom: none;
}

.totals-line .total-value {
    font-weight: 600;
    color: var(--white);
}

.total-line {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    margin-top: 20px;
    padding: 25px 20px;
    border-top: 2px solid rgba(207, 86, 36, 0.3);
    background: linear-gradient(135deg, rgba(207, 86, 36, 0.15) 0%, rgba(207, 164, 123, 0.15) 100%);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.final-total {
    font-size: 32px;
    font-weight: 800;
    color: var(--terracotta);
    font-family: 'Gilroy', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(207, 86, 36, 0.3);
}

/* Скрываем стандартную форму WooCommerce доставки */
.shipping-calculator-form,
.shipping-calculator-button,
.woocommerce-shipping-calculator,
.woocommerce-info {
    display: none !important;
}

/* Скрываем кнопку "Обновить корзину" - у нас AJAX */
.cart-actions {
    display: none !important;
}

/* Cart Bottom Section - горизонтальное расположение */
.cart-bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .cart-bottom-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Анимация обновления cart totals */
.cart-totals.updating {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.cart-totals.updating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(207, 86, 36, 0.3);
    border-top-color: var(--terracotta);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.checkout-button-wrapper {
    margin-top: 25px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.checkout-button-wrapper .button,
.checkout-button-wrapper .checkout-button,
.woocommerce-checkout-payment .button,
.woocommerce .checkout-button,
.woocommerce .button.checkout,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button.alt {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%) !important;
    color: var(--white) !important;
    text-align: center !important;
    padding: 18px 30px !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: 'Gilroy', sans-serif !important;
    text-decoration: none !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4) !important;
    position: relative !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.checkout-button-wrapper .button:hover,
.checkout-button-wrapper .checkout-button:hover,
.woocommerce .checkout-button:hover,
.woocommerce .button.checkout:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce a.button.alt:hover {
    background: linear-gradient(135deg, #FFA05C 0%, #FF7F50 100%) !important;
    transform: translateY(-2px) !important;
}

/* Заблокированная кнопка checkout */
.woocommerce button.button.alt.disabled,
.woocommerce input.button.alt.disabled,
.woocommerce a.button.alt.disabled,
.woocommerce button.button.alt:disabled,
.woocommerce input.button.alt:disabled,
.woocommerce a.button.alt:disabled,
.checkout-button.disabled,
.wc-forward.disabled,
a.disabled[href*="checkout"] {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    transform: none !important;
    pointer-events: none !important;
}

.woocommerce button.button.alt.disabled:hover,
.woocommerce input.button.alt.disabled:hover,
.woocommerce a.button.alt.disabled:hover,
.woocommerce button.button.alt:disabled:hover,
.woocommerce input.button.alt:disabled:hover,
.woocommerce a.button.alt:disabled:hover,
.checkout-button.disabled:hover,
.wc-forward.disabled:hover,
a.disabled[href*="checkout"]:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    transform: none !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}


.checkout-button-wrapper .button:active,
.checkout-button-wrapper .checkout-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.4);
}

/* Дополнительные селекторы для WooCommerce кнопок */
.woocommerce button[type="submit"],
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce .cart .button,
.woocommerce .cart .checkout-button,
.woocommerce .cart .proceed-to-checkout,
.woocommerce .cart .checkout {
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%) !important;
    color: var(--white) !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    padding: 18px 30px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: 'Gilroy', sans-serif !important;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4) !important;
    transition: all 0.3s ease !important;
}

.woocommerce button[type="submit"]:hover,
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover,
.woocommerce .cart .button:hover,
.woocommerce .cart .checkout-button:hover,
.woocommerce .cart .proceed-to-checkout:hover,
.woocommerce .cart .checkout:hover {
    background: linear-gradient(135deg, #FFA05C 0%, #FF7F50 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6) !important;
    border-color: rgba(255, 160, 92, 0.5) !important;
}

/* Исправления для кнопок количества в корзине */
.woocommerce-cart-form .qty-plus {
    margin-left: -15px;
}

.qty-cart-btn {
    z-index: 2;
}

/* ===== CHECKOUT PAGE ===== */
.kimhouse-checkout-page {
    padding: 40px 0;
    min-height: 80vh;
}

.checkout-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-section {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
    border-radius: 24px;
    padding: 40px;
    border: 2px solid rgba(207, 86, 36, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.checkout-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #CF5624 0%, #FF6B35 50%, #CF5624 100%);
    border-radius: 24px 24px 0 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid rgba(207, 86, 36, 0.4);
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}



/* Form Styles */
.form-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.form-row-group .form-row {
    width: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 80px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-weight: 600;
    color: var(--white);
    font-size: 14px;
    margin-bottom: 5px;
}

.form-row .required {
    color: var(--terracotta);
}


.form-row:not(.form-row-group .form-row) {
    margin-bottom: 20px;
}

.input-text {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    font-family: 'Gilroy', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-text:focus {
    outline: none;
    border-color: var(--terracotta);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(207, 86, 36, 0.2);
}

.input-text.error {
    border-color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.2) !important;
}

/* WooCommerce Error Messages */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    background: rgba(255, 68, 68, 0.1) !important;
    border: 2px solid #ff4444 !important;
    border-radius: 12px !important;
    color: #ff4444 !important;
    padding: 15px 20px !important;
    margin: 20px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
    list-style: none !important;
    margin: 5px 0 !important;
    padding: 0 !important;
}

/* Field Error Messages */
.woocommerce form .form-row .woocommerce-error,
.woocommerce form .form-row .woocommerce-validated .woocommerce-error {
    background: transparent !important;
    border: none !important;
    color: #ff4444 !important;
    font-size: 12px !important;
    margin: 5px 0 0 0 !important;
    padding: 0 !important;
    display: block !important;
}

.input-text::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.select-area {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    font-family: 'Gilroy', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23CF5624' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 45px;
}

.select-area:focus {
    outline: none;
    border-color: var(--terracotta);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow: 0 0 0 3px rgba(207, 86, 36, 0.2);
}

.select-area:hover {
    border-color: rgba(207, 86, 36, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.select-area option {
    background: var(--dark-bg);
    color: var(--white);
    padding: 12px 15px;
    font-size: 16px;
    border: none;
}

.select-area option:hover {
    background: rgba(207, 86, 36, 0.2);
}

.select-area option:checked {
    background: var(--terracotta);
    color: var(--white);
}

.select-area optgroup {
    background: #1A1A1A;
    color: var(--terracotta);
    font-weight: 700;
    padding: 8px 0;
}

textarea.input-text {
    min-height: 100px;
    resize: vertical;
    font-family: 'Gilroy', sans-serif;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}


.select-area {

/* Order Review */
.order-review-section {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.order-review {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-radius: 16px;
    padding: 25px;
    border: 2px solid rgba(207, 86, 36, 0.2);
}

/* Order Summary Styles */
.order-summary-section {
    position: sticky;
    top: 20px;
    height: fit-content;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
    border-radius: 24px;
    padding: 30px;
    border: 2px solid rgba(207, 86, 36, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.order-summary-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #CF5624 0%, #FF6B35 50%, #CF5624 100%);
    border-radius: 24px 24px 0 0;
}

.order-items {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 25px !important;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%) !important;
    border-radius: 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.order-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #CF5624 0%, #FF6B35 50%, #CF5624 100%);
    border-radius: 20px 20px 0 0;
    opacity: 0.9;
}

.order-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(207, 86, 36, 0.05) 0%, rgba(255, 107, 53, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

.order-item:hover {
    background: linear-gradient(135deg, rgba(42, 42, 42, 1) 0%, rgba(26, 26, 26, 1) 100%);
    border: 2px solid rgba(207, 86, 36, 0.6);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(207, 86, 36, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.order-item:hover::after {
    opacity: 1;
}

.order-item:hover::before {
    opacity: 1;
    height: 5px;
}

.item-image {
    width: 100px !important;
    height: 100px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) contrast(1.1);
}

.order-item:hover .item-image {
    transform: scale(1.05);
    border: 2px solid rgba(207, 86, 36, 0.4);
    box-shadow: 
        0 12px 30px rgba(207, 86, 36, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.order-item:hover .item-image img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.2);
}

.no-image {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 5px 0;
    position: relative;
    z-index: 2;
}

.item-name {
    font-weight: 800;
    color: var(--white);
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.order-item:hover .item-name {
    color: #FF6B35;
    text-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.item-quantity {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(207, 86, 36, 0.15) 0%, rgba(255, 107, 53, 0.1) 100%);
    padding: 6px 12px;
    border-radius: 10px;
    border: 2px solid rgba(207, 86, 36, 0.3);
    display: inline-block;
    width: fit-content;
    box-shadow: 
        0 4px 12px rgba(207, 86, 36, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.order-item:hover .item-quantity {
    background: linear-gradient(135deg, rgba(207, 86, 36, 0.25) 0%, rgba(255, 107, 53, 0.15) 100%);
    border: 2px solid rgba(207, 86, 36, 0.5);
    transform: translateY(-1px);
    box-shadow: 
        0 6px 16px rgba(207, 86, 36, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.item-price {
    font-size: 22px;
    font-weight: 900;
    color: #CF5624;
    text-shadow: 0 2px 4px rgba(207, 86, 36, 0.4);
    background: linear-gradient(135deg, rgba(207, 86, 36, 0.15) 0%, rgba(255, 107, 53, 0.1) 100%);
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid rgba(207, 86, 36, 0.3);
    text-align: center;
    min-width: 90px;
    flex-shrink: 0;
    box-shadow: 
        0 6px 20px rgba(207, 86, 36, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.order-item:hover .item-price {
    background: linear-gradient(135deg, rgba(207, 86, 36, 0.25) 0%, rgba(255, 107, 53, 0.15) 100%);
    border: 2px solid rgba(207, 86, 36, 0.5);
    color: #FF6B35;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(207, 86, 36, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
    line-height: 1.3;
}

.item-quantity {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

.item-price {
    font-weight: 700;
    color: var(--terracotta);
    min-width: 80px;
    text-align: right;
    font-size: 16px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.order-totals {
    background: linear-gradient(135deg, rgba(207, 86, 36, 0.2) 0%, rgba(207, 164, 123, 0.1) 100%);
    border-radius: 16px;
    padding: 25px;
    margin-top: 25px;
    border: 2px solid rgba(207, 86, 36, 0.3);
    box-shadow: 
        0 10px 30px rgba(207, 86, 36, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.order-totals::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #CF5624 0%, #FF6B35 50%, #CF5624 100%);
    border-radius: 16px 16px 0 0;
}

.order-totals .totals-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 16px;
}

.order-totals .delivery-line {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.order-totals .delivery-line small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 400;
}

.order-totals .discount-line {
    color: #4CAF50;
    font-weight: 600;
}

.order-totals .discount-line .total-value {
    color: #4CAF50;
}

.order-totals .coupon-line {
    color: #4CAF50;
    font-weight: 600;
}

.order-totals .coupon-line .total-value {
    color: #4CAF50;
}

.order-totals .fee-line {
    font-weight: 500;
}

.order-totals .total-line {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    padding: 20px 0;
    border-top: 3px solid var(--terracotta);
    background: rgba(207, 86, 36, 0.1);
    border-radius: 8px;
    margin: 15px -10px 0 -10px;
    padding: 20px 15px;
    position: relative;
}

.order-totals .total-line::before {
    content: '💰';
    margin-right: 10px;
    font-size: 20px;
}

.order-totals .final-total {
    color: var(--terracotta);
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(207, 86, 36, 0.3);
}

/* Responsive Checkout */
@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .form-row-group {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .order-summary-section {
        position: static;
        order: -1; /* Показываем заказ сверху на мобильных */
    }
    
    .checkout-section {
        padding: 20px;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .item-image {
        width: 80px;
        height: 80px;
        align-self: flex-start;
    }
    
    .item-info {
        width: 100%;
        gap: 6px;
    }
    
    .item-name {
        font-size: 16px;
    }
    
    .item-quantity {
        font-size: 13px;
        padding: 3px 6px;
    }
    
    .item-price {
        align-self: flex-end;
        font-size: 18px;
        padding: 6px 10px;
        min-width: 70px;
    }
}

/* WooCommerce Form Overrides */
.woocommerce form .form-row-first,
.woocommerce form .form-row-last,
.woocommerce-page form .form-row-first,
.woocommerce-page form .form-row-last,
.woocommerce form .form-row-group .form-row-first,
.woocommerce form .form-row-group .form-row-last,
.woocommerce-page form .form-row-group .form-row-first,
.woocommerce-page form .form-row-group .form-row-last,
body.woocommerce form .form-row-first,
body.woocommerce form .form-row-last,
body.woocommerce-page form .form-row-first,
body.woocommerce-page form .form-row-last {
    width: auto !important;
    float: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    overflow: visible !important;
}

/* Force Override WooCommerce Width */
.kimhouse-checkout-page .woocommerce form .form-row-first,
.kimhouse-checkout-page .woocommerce form .form-row-last,
.kimhouse-checkout-page .woocommerce-page form .form-row-first,
.kimhouse-checkout-page .woocommerce-page form .form-row-last {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 !important;
}

/* Responsive Cart */
@media (max-width: 992px) {
    
    .cart-totals {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .cart-title {
        font-size: 32px;
    }
    
    .cart-item {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }
    
  
    
    .cart-item-price,
    .cart-item-subtotal {
        text-align: left;
    }
    .cart-item-quantity{
        align-items: flex-start;
    }
    .cart-item-details{
        text-align: left;
    }
    .quantity-control-cart {
        justify-content: center;
    }
    
    .cart-totals {
        padding: 20px;
    }
    .cart-items{
        padding: 10px;
    }
    .kimhouse-cart-page{
        padding: 0;
    }
    .delivery-calculator{
        padding: 15px;
    }
    .delivery-input-group{
        flex-direction: column;
    }
    .delivery-success{
        padding: 10px;
    }
    .cart-totals h2{
        font-size: 24px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    .total-line{
        padding: 10px 20px;
    }
    .final-total{
        font-size: 22px;
    }
    .cart-totals{
        padding: 15px;
    }
    .checkout-button-wrapper .button, .checkout-button-wrapper .checkout-button, .woocommerce-checkout-payment .button, .woocommerce .checkout-button, .woocommerce .button.checkout, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce a.button.alt{
        padding: 18px 20px !important;
    }

    .page-main{
        padding: 15px;
    }
    .delivery-calculator{
        margin-bottom: 0;
    }
    .checkout-title{
        font-size: 30px;
        line-height: 1.2;
        margin-top: 0;
    }
    .checkout-content{
        padding: 0;
    }
    .checkout-section{
        padding: 7px;
    }
    .section-title{
        font-size: 25px;
    }
    .order-totals{
        padding: 15px;
    }
    .order-totals .total-line{
        padding: 10px !important;
    }
    .order-totals .total-line span{
        font-size: 20px;
        margin-right: auto;
    }
    .order-totals .final-total{
        font-size: 19px;
        margin-left: auto;
    }
    .order-totals .total-line::before{
        margin-right: 0;
    }
    .form-row{
        gap: 5px;
    }
    .billing-section .section-title{
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    .form-row-group .form-row{
        gap: 5px
    }
    .form-row-group{
        gap: 5px;
    }
    .form-row-group{
        margin-bottom: 5px;
    }
    .checkout-button-wrapper{
        margin-bottom: 10px;
        margin-top: 10px;
    }
    .hero-order-btn{
        padding: 13px 20px;
        font-size: 16px;
    }
    .hero{
        padding: 30px 15px; 
    }
    .hero-text p{
        margin-bottom: 10px;
    }
}
@media (max-width: 440px) {
    .cart-item{
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ==================== CONTACTS SECTION ==================== */

/* ==================== SMOOTH SCROLL ==================== */
html {
    scroll-behavior: smooth;
}

/* Дополнительные стили для плавной прокрутки */
* {
    scroll-behavior: smooth;
}

/* Плавная прокрутка для всех элементов */
html, body {
    scroll-behavior: smooth;
}

/* ==================== SELECT2 CUSTOM STYLES ==================== */

/* ТЕСТ - проверяем загрузку CSS */
.select2-container {
    border: none !important;
}

/* АГРЕССИВНОЕ ПЕРЕОПРЕДЕЛЕНИЕ SELECT2 */
body .select2-container {
    width: 100% !important;
    z-index: 9999 !important;
}

body .select2-container--default .select2-selection--single {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;
    height: 55px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

body .select2-container--default .select2-selection--single:hover {
    border-color: rgba(207, 86, 36, 0.5) !important;
    box-shadow: 0 6px 20px rgba(207, 86, 36, 0.15) !important;
}

body .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
    line-height: 51px !important;
    padding-left: 25px !important;
    padding-right: 50px !important;
    font-family: 'Gilroy', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

body .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

body .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 51px !important;
    right: 15px !important;
}

body .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: rgba(255, 255, 255, 0.6) transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
}

body .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #CF5624 !important;
    box-shadow: 0 6px 25px rgba(207, 86, 36, 0.25) !important;
}

body .select2-dropdown {
    background: #2A2A2A !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;
    margin-top: 8px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    z-index: 9999 !important;
}

body .select2-container--default .select2-search--dropdown {
    padding: 15px !important;
    background: #1A1A1A !important;
}

body .select2-container--default .select2-search--dropdown .select2-search__field {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    padding: 12px 15px !important;
    font-family: 'Gilroy', sans-serif !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

body .select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #CF5624 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(207, 86, 36, 0.1) !important;
}

body .select2-container--default .select2-search--dropdown .select2-search__field::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

body .select2-results {
    max-height: 350px !important;
}

body .select2-container--default .select2-results__option {
    color: #ffffff !important;
    padding: 12px 20px !important;
    font-family: 'Gilroy', sans-serif !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
}

body .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, #CF5624 0%, #B84A1F 100%) !important;
    color: #ffffff !important;
}

body .select2-container--default .select2-results__option[aria-selected=true] {
    background: rgba(207, 86, 36, 0.2) !important;
    font-weight: 600 !important;
}

body .select2-container--default .select2-results__group {
    color: #CF5624 !important;
    font-weight: 700 !important;
    padding: 15px 20px 8px !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    background: rgba(207, 86, 36, 0.05) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

body .select2-container--default .select2-results__message {
    color: rgba(255, 255, 255, 0.5) !important;
    font-family: 'Gilroy', sans-serif !important;
    padding: 20px !important;
}

/* Дополнительные переопределения для надежности */
body .select2-container * {
    box-sizing: border-box !important;
}

body .select2-container .select2-selection--single {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;
    height: 55px !important;
}

body .select2-container .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
    line-height: 51px !important;
    padding-left: 25px !important;
    padding-right: 50px !important;
    font-family: 'Gilroy', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

/* МАКСИМАЛЬНО АГРЕССИВНЫЕ СЕЛЕКТОРЫ */
html body .woocommerce-cart .select2-container--default .select2-selection--single {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;
    height: 55px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

html body .woocommerce-cart .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
    line-height: 51px !important;
    padding-left: 25px !important;
    padding-right: 50px !important;
    font-family: 'Gilroy', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

html body .woocommerce-cart .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

html body .woocommerce-cart .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 51px !important;
    right: 15px !important;
}

html body .woocommerce-cart .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: rgba(255, 255, 255, 0.6) transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
}

/* СТИЛИ ДЛЯ ОТКРЫТОГО DROPDOWN */
html body .woocommerce-cart .select2-dropdown {
    background: #2A2A2A !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;
    margin-top: 8px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    z-index: 9999 !important;
}

html body .woocommerce-cart .select2-container--default .select2-search--dropdown {
    padding: 15px !important;
    background: #1A1A1A !important;
}

html body .woocommerce-cart .select2-container--default .select2-search--dropdown .select2-search__field {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    padding: 12px 15px !important;
    font-family: 'Gilroy', sans-serif !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

html body .woocommerce-cart .select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #CF5624 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(207, 86, 36, 0.1) !important;
}

html body .woocommerce-cart .select2-container--default .select2-search--dropdown .select2-search__field::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

html body .woocommerce-cart .select2-results {
    max-height: 350px !important;
}

html body .woocommerce-cart .select2-container--default .select2-results__option {
    color: #ffffff !important;
    padding: 12px 20px !important;
    font-family: 'Gilroy', sans-serif !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
}

html body .woocommerce-cart .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, #CF5624 0%, #B84A1F 100%) !important;
    color: #ffffff !important;
}

html body .woocommerce-cart .select2-container--default .select2-results__option[aria-selected=true] {
    background: rgba(207, 86, 36, 0.2) !important;
    font-weight: 600 !important;
}

html body .woocommerce-cart .select2-container--default .select2-results__group {
    color: #CF5624 !important;
    font-weight: 700 !important;
    padding: 15px 20px 8px !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    background: rgba(207, 86, 36, 0.05) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

html body .woocommerce-cart .select2-container--default .select2-results__message {
    color: rgba(255, 255, 255, 0.5) !important;
    font-family: 'Gilroy', sans-serif !important;
    padding: 20px !important;
}

.select2-container--default .select2-selection--single {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;
    height: 55px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: rgba(207, 86, 36, 0.5) !important;
    box-shadow: 0 6px 20px rgba(207, 86, 36, 0.15) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--white) !important;
    line-height: 51px !important;
    padding-left: 25px !important;
    padding-right: 50px !important;
    font-family: 'Gilroy', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 51px !important;
    right: 15px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: rgba(255, 255, 255, 0.6) transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--terracotta) !important;
    box-shadow: 0 6px 25px rgba(207, 86, 36, 0.25) !important;
}

.select2-dropdown {
    background: #2A2A2A !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;
    margin-top: 8px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    z-index: 9999 !important;
}

.select2-container--default .select2-search--dropdown {
    padding: 15px !important;
    background: #1A1A1A !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    color: var(--white) !important;
    padding: 12px 15px !important;
    font-family: 'Gilroy', sans-serif !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--terracotta) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(207, 86, 36, 0.1) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.select2-results {
    max-height: 350px !important;
}

.select2-container--default .select2-results__option {
    color: var(--white) !important;
    padding: 12px 20px !important;
    font-family: 'Gilroy', sans-serif !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, var(--terracotta) 0%, #B84A1F 100%) !important;
    color: var(--white) !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: rgba(207, 86, 36, 0.2) !important;
    font-weight: 600 !important;
}

.select2-container--default .select2-results__group {
    color: var(--terracotta) !important;
    font-weight: 700 !important;
    padding: 15px 20px 8px !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    background: rgba(207, 86, 36, 0.05) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.select2-container--default .select2-results__message {
    color: rgba(255, 255, 255, 0.5) !important;
    font-family: 'Gilroy', sans-serif !important;
    padding: 20px !important;
}

/* Дополнительные переопределения для надежности */
.select2-container * {
    box-sizing: border-box !important;
}

.select2-container .select2-selection--single {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;
    height: 55px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    color: var(--white) !important;
    line-height: 51px !important;
    padding-left: 25px !important;
    padding-right: 50px !important;
    font-family: 'Gilroy', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}



/* Стили для иконок в футере */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.footer-contact-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.footer-contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}




/* Flexbox для всех элементов списка в футере - с !important */
.footer-section ul li {
    display: flex !important;
    align-items: center !important;
}

/* Стили для кнопки очистки Select2 */
body .select2-container--default .select2-selection--single .select2-selection__clear {
    color: #fff !important;
    margin-left: 15px !important;
}

html body .woocommerce-cart .select2-container--default .select2-selection--single .select2-selection__clear {
    color: #fff !important;
    margin-left: 15px !important;
}

/* СУПЕР АГРЕССИВНЫЕ СТИЛИ ДЛЯ SELECT2 - ПОСЛЕДНИЕ В ПРИОРИТЕТЕ */
html body .woocommerce-cart .select2-container--default .select2-selection--single .select2-selection__clear,
body .select2-container--default .select2-selection--single .select2-selection__clear,
.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #ffffff !important;
    margin-left: 15px !important;
    margin-right: 0 !important;
}

/* Убираем width для полей формы оформления заказа */
.woocommerce form .form-row-first,
.woocommerce form .form-row-last,
.woocommerce-page form .form-row-first,
.woocommerce-page form .form-row-last {
    width: unset !important;
}

/* Дополнительные стили для контейнера формы */
html body .woocommerce .form-row-group,
body .woocommerce .form-row-group,
.woocommerce .form-row-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    align-items: start !important;
}

html body .woocommerce .form-row-group .form-row,
body .woocommerce .form-row-group .form-row,
.woocommerce .form-row-group .form-row {
    width: 100% !important;
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* ================================
   Quick Add modal – custom selects
   Ensure consistent styled selects inside the JS options modal
   ================================ */

#kimhouse-opts-modal .kimhouse-select-wrap { position: relative; display: block; width: 100%; }
#kimhouse-opts-modal .kimhouse-custom-select {
    width: 100%;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 14px 48px 14px 18px;
    border-radius: 12px;
    background-color: #2f2f2f;
    background: #2f2f2f;
    color: #d6d6d6;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
    line-height: 1.2;
    outline: none;
    box-shadow: none;
}
#kimhouse-opts-modal .kimhouse-custom-select:focus {
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}
#kimhouse-opts-modal .kimhouse-custom-select option[disabled] { color: #999; }
#kimhouse-opts-modal .kimhouse-select-wrap .kimhouse-select-arrow {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; pointer-events: none; opacity: .65;
    background-repeat: no-repeat; background-position: center; background-size: 12px 12px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

/* ================================
   My Account (login/register) – inputs styling to match checkout
   ================================ */

/* Container tweaks */
body.woocommerce-account .woocommerce .u-columns { gap: 24px; }
body.woocommerce-account .woocommerce .u-column1,
body.woocommerce-account .woocommerce .u-column2 { background: transparent; }

/* Labels */
body.woocommerce-account .woocommerce form .form-row label {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    margin-bottom: 8px;
}

/* Text inputs, password, email, textarea */
body.woocommerce-account .woocommerce form .input-text,
body.woocommerce-account .woocommerce form input[type="text"],
body.woocommerce-account .woocommerce form input[type="email"],
body.woocommerce-account .woocommerce form input[type="password"],
body.woocommerce-account .woocommerce form input[type="tel"],
body.woocommerce-account .woocommerce form textarea,
body.woocommerce-account .woocommerce form select {
    width: 100%;
    background: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 14px 16px;
    color: #fff;
    outline: none;
    box-shadow: inset 0 0 0 1px transparent;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

body.woocommerce-account .woocommerce form .input-text:focus,
body.woocommerce-account .woocommerce form input[type="text"]:focus,
body.woocommerce-account .woocommerce form input[type="email"]:focus,
body.woocommerce-account .woocommerce form input[type="password"]:focus,
body.woocommerce-account .woocommerce form input[type="tel"]:focus,
body.woocommerce-account .woocommerce form textarea:focus,
body.woocommerce-account .woocommerce form select:focus {
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

/* Placeholder */
body.woocommerce-account .woocommerce form .input-text::placeholder,
body.woocommerce-account .woocommerce form input::placeholder,
body.woocommerce-account .woocommerce form textarea::placeholder { color: rgba(255,255,255,0.6); }

/* Error state */
body.woocommerce-account .woocommerce form .woocommerce-invalid .input-text,
body.woocommerce-account .woocommerce form .woocommerce-invalid input,
body.woocommerce-account .woocommerce form .woocommerce-invalid textarea {
    border-color: #CF5624;
    box-shadow: 0 0 0 3px rgba(207,86,36,0.18);
}

/* Buttons */
body.woocommerce-account .woocommerce form button.button,
body.woocommerce-account .woocommerce form button,
body.woocommerce-account .woocommerce form input[type="submit"] {
    background: #CF5624;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 700;
}
body.woocommerce-account .woocommerce form button.button:hover,
body.woocommerce-account .woocommerce form input[type="submit"]:hover {
    background: #e36e3c;
}

/* Checkboxes (remember me, privacy) */
body.woocommerce-account .woocommerce form input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: #CF5624;
}
body.woocommerce-account .woocommerce form .woocommerce-form__label,
body.woocommerce-account .woocommerce form .form-row .woocommerce-form__label-for-checkbox {
    color: rgba(255,255,255,0.85);
}
body.woocommerce-account .woocommerce a { color: #CFA47B; }
body.woocommerce-account .woocommerce a:hover { color: #e6bf9a; }

/* ================================
   My Account Tabs (Login/Register)
   ================================ */
body.woocommerce-account .kimhouse-auth { max-width: 1100px; margin: 0 auto; }
body.woocommerce-account .kimhouse-auth-tabs { display: flex; gap: 10px; margin: 10px 0 20px; }
body.woocommerce-account .kimhouse-auth-tabs .kh-tab-btn {
    background: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 700;
}
body.woocommerce-account .kimhouse-auth-tabs .kh-tab-btn.active {
    background: linear-gradient(180deg, #ff914d 0%, #cf5624 100%);
    border-color: rgba(255,255,255,0.18);
}
body.woocommerce-account .kimhouse-auth-panels { position: relative; }
body.woocommerce-account .kimhouse-auth-panels .kh-panel { display: none; }
body.woocommerce-account .kimhouse-auth-panels .kh-panel.active { display: block; }

/* ================================
     My Account – dashboard & inner pages
     ================================ */
body.woocommerce-account .kimhouse-account { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
body.woocommerce-account .kh-account-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }

/* Sidebar */
body.woocommerce-account .kh-account-nav { background: #1f1f1f; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 16px; position: sticky; top: 100px; height: fit-content; }
body.woocommerce-account .kh-nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
body.woocommerce-account .kh-nav-item .kh-nav-link { display: block; padding: 10px 12px; border-radius: 10px; color: #e6bf9a; text-decoration: none; border: 1px solid transparent; }
body.woocommerce-account .kh-nav-item .kh-nav-link:hover { background: #2a2a2a; border-color: rgba(255,255,255,0.08); color: #fff; }
body.woocommerce-account .kh-nav-item.is-active .kh-nav-link { background: linear-gradient(180deg,#ff914d 0%, #cf5624 100%); color: #fff; border-color: transparent; }

/* Ensure native Woo nav wrapper takes full width */
body.woocommerce-account .woocommerce-MyAccount-navigation { width: 100%; }

/* Content */
body.woocommerce-account .kh-account-content { background: #1f1f1f; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 22px; }
body.woocommerce-account .kh-account-content h2, 
body.woocommerce-account .kh-account-content h3 { color: #fff; margin-top: 0; }
body.woocommerce-account .kh-account-content a { color: #CFA47B; }
body.woocommerce-account .kh-account-content a:hover { color: #e6bf9a; }

/* Tables (orders, downloads) */
body.woocommerce-account table.shop_table { background: #2a2a2a; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
body.woocommerce-account table.shop_table th, 
body.woocommerce-account table.shop_table td { border-color: rgba(255,255,255,0.06); color: #ddd; }
body.woocommerce-account table.shop_table th { color: #fff; }

/* Buttons in account area */
body.woocommerce-account .kh-account-content .button, 
body.woocommerce-account .kh-account-content .woocommerce-button,
body.woocommerce-account .kh-account-content a.button { background: #CF5624; color:#fff; border:none; border-radius:10px; padding:10px 14px; font-weight:700; }
body.woocommerce-account .kh-account-content .button:hover { background:#e36e3c; }

/* Responsive */
@media (max-width: 992px) {
    body.woocommerce-account .kh-account-grid { grid-template-columns: 1fr; }
    body.woocommerce-account .kh-account-nav { position: static; }
}

/* My Account: compact action buttons in Orders table */
body.woocommerce-account .kh-account-content .woocommerce-orders-table__cell-order-actions .button,
body.woocommerce-account .kh-account-content table.shop_table .button.view {
    padding: 6px 10px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    border-radius: 8px !important;
    min-width: auto !important;
}

@media (max-width: 768px) {
    body.woocommerce-account .kh-account-content .woocommerce-orders-table__cell-order-actions .button,
    body.woocommerce-account .kh-account-content table.shop_table .button.view {
        padding: 5px 8px !important;
        font-size: 11px !important;
        line-height: 1 !important;
        border-radius: 7px !important;
    }
}


/* ================================
     Coupons (Cart/Checkout) – Mobile tweaks
     ================================ */
@media (max-width: 768px) {
    .cart-coupon .apply-coupon-form button[name="apply_coupon"],
    .checkout-coupon .woocommerce-form-coupon button[name="apply_coupon"] {
        padding: 8px 12px;
        font-size: 14px;
        line-height: 1.1;
        margin-top: 8px !important; /* небольшой отступ сверху на мобильных */
    }
}

/* Stack coupon input and button on small screens and add consistent spacing */
@media (max-width: 768px) {
    .cart-coupon .apply-coupon-form,
    .checkout-coupon .woocommerce-form-coupon {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .cart-coupon .apply-coupon-form input[type="text"],
    .checkout-coupon .woocommerce-form-coupon input[type="text"] {
        width: 100%;
        max-width: 100%;
    }
    .cart-coupon .apply-coupon-form button[name="apply_coupon"],
    .checkout-coupon .woocommerce-form-coupon button[name="apply_coupon"] {
        width: auto;
    }
}

/* Slightly larger breakpoint for tablets */
@media (max-width: 992px) {
    .cart-coupon .apply-coupon-form button[name="apply_coupon"],
    .checkout-coupon .woocommerce-form-coupon button[name="apply_coupon"] {
        margin-top: 8px !important;
    }
}

/* Cart: direct Apply button sizing */
.cart-coupon .button {
    padding: 14px 25px !important;
}

@media (max-width: 768px) {
    .cart-coupon .button {
        margin-top: 15px !important;
    }
}

.products{
    min-height: unset;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{
    margin: 0;
    background: #2A2A2A;
    width: 25%;
    border-radius: 20px;
    overflow: hidden;
}
.woocommerce ul.products li.product .onsale{
    margin: 0;
    border-radius: 0 0 0 20px;
    padding: 5px 10px;
}
.woocommerce span.onsale{
    background-color: rgb(207, 46, 46);
}
.woocommerce-loop-product__title, .woocommerce ul.products li.product .price{
    color: #fff;
    padding: 5px 15px !important;
}
.woocommerce ul.products li.product .button{
    margin: 0 15px 20px;
}
.wpcfg-wrapper > h2 {
    margin-bottom: 20px;
}
@media screen and (max-width: 500px){
    .woocommerce ul.products li.product, .woocommerce-page ul.products li.product, .woocommerce ul.products[class*=columns-] li.product, .woocommerce-page ul.products[class*=columns-] li.product{
        width: 100%;
    }
}