/* ============================================
   CHOCO DECOR — MAIN STYLES 2026
   Colors: Brown #3D1A08, Pink #E8B4C0
   Fonts: Unbounded (headings), Manrope (body)
   ============================================ */

/* --- CSS Variables --- */
:root {
    --brown-900: #1C0800;
    --brown-800: #3D1A08;
    --brown-700: #5C2D14;
    --brown-600: #7A3D20;
    --brown-500: #A0522D;
    --brown-400: #C47843;
    --brown-300: #D9A070;
    --brown-200: #EDD5BE;
    --brown-100: #F8F0EA;
    --pink-600: #C4899A;
    --pink-500: #D4A0B0;
    --pink-400: #E8B4C0;
    --pink-300: #F0CEDB;
    --pink-200: #F7E4EA;
    --pink-100: #FDF5F7;
    --white: #FFFFFF;
    --dark: #0F0603;
    --gray-900: #1A1A1A;
    --gray-700: #444444;
    --gray-500: #777777;
    --gray-300: #BBBBBB;
    --gray-100: #F5F5F5;

    --font-heading: 'Unbounded', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --container-width: 1280px;
    --container-padding: 24px;
    --section-padding: 96px;
    --section-padding-sm: 56px;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;

    --shadow-sm: 0 2px 8px rgba(61, 26, 8, 0.08);
    --shadow-md: 0 8px 32px rgba(61, 26, 8, 0.12);
    --shadow-lg: 0 24px 64px rgba(61, 26, 8, 0.18);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.2; }

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* --- Sections --- */
.section {
    padding: var(--section-padding) 0;
}
.section-sm { padding: var(--section-padding-sm) 0; }
.section-dark { background: var(--brown-800); color: var(--white); }
.section-cream { background: var(--brown-100); }
.section-pink { background: var(--pink-100); }

/* Section headings */
.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brown-500);
    margin-bottom: 16px;
    padding: 6px 14px;
    background: var(--pink-200);
    border-radius: 100px;
}
.section-dark .section-tag { color: var(--pink-300); background: rgba(232,180,192,0.15); }
.section-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--brown-800);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.section-dark .section-heading { color: var(--white); }
.section-subheading {
    font-size: 1.05rem;
    color: var(--gray-700);
    max-width: 600px;
    line-height: 1.7;
}
.section-dark .section-subheading { color: rgba(255,255,255,0.7); }
.section-header { margin-bottom: 56px; }
.section-header-centered { text-align: center; }
.section-header-centered .section-subheading { margin: 0 auto; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 14px 28px;
    border-radius: 100px;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.btn-primary {
    background: var(--brown-800);
    color: var(--white);
    border-color: var(--brown-800);
}
.btn-primary:hover {
    background: var(--brown-700);
    border-color: var(--brown-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-pink {
    background: var(--pink-400);
    color: var(--brown-900);
    border-color: var(--pink-400);
}
.btn-pink:hover {
    background: var(--pink-500);
    border-color: var(--pink-500);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--brown-800);
    border-color: var(--brown-800);
}
.btn-outline:hover {
    background: var(--brown-800);
    color: var(--white);
}
.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--brown-800);
}
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }
.btn-lg { padding: 18px 40px; font-size: 1rem; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
}

.header-top {
    background: var(--brown-800);
    color: rgba(255,255,255,0.85);
    padding: 8px 0;
    font-size: 0.78rem;
}
.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.header-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    transition: color var(--transition);
}
.header-contact-item:hover { color: var(--pink-300); }
.header-email a { color: rgba(255,255,255,0.7); font-size: 0.78rem; }
.header-email a:hover { color: var(--pink-300); }

.header-main {
    padding: 10px 0;
    border-bottom: 1px solid var(--brown-100);
    background: var(--white);
    transition: box-shadow var(--transition);
    position: relative;
    z-index: 100;
}
.header-main.scrolled { box-shadow: var(--shadow-md); }
.header-main-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-logo { flex-shrink: 0; }
.logo-img { height: 96px !important; width: auto !important; object-fit: contain; }
.logo-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--brown-800);
    line-height: 1.2;
}

.header-nav { flex: 1; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.nav-list li a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-900);
    padding: 8px 14px;
    border-radius: 100px;
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-list li a:hover, .nav-list li.current-menu-item a {
    background: var(--brown-100);
    color: var(--brown-800);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--gray-900);
    border-radius: 50%;
    transition: all var(--transition);
}
.header-cart:hover { background: var(--brown-100); color: var(--brown-800); }
.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--pink-400);
    color: var(--brown-900);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Header Search ===== */
.header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--gray-900);
    transition: all var(--transition);
    flex-shrink: 0;
}
.header-search-btn:hover,
.header-search-btn.active { background: var(--brown-100); color: var(--brown-800); }

.header-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--brown-200);
    box-shadow: 0 8px 32px rgba(61,26,8,0.10);
    padding: 16px 0;
    z-index: 999;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.header-search-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.header-search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--brown-100);
    border: 1.5px solid var(--brown-200);
    border-radius: 100px;
    padding: 0 8px 0 18px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search-inner:focus-within {
    border-color: var(--brown-400);
    box-shadow: 0 0 0 3px rgba(160,82,45,0.10);
}
.search-icon-input {
    color: var(--brown-500);
    flex-shrink: 0;
}
.header-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--brown-800);
    padding: 13px 0;
    outline: none;
    min-width: 0;
}
.header-search-input::placeholder { color: var(--brown-400); }
.header-search-input::-webkit-search-cancel-button { display: none; }

.search-submit-btn {
    padding: 9px 22px;
    background: var(--brown-800);
    color: var(--white);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--transition);
    flex-shrink: 0;
}
.search-submit-btn:hover { background: var(--brown-700); }

.search-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--brown-500);
    flex-shrink: 0;
    transition: all var(--transition);
}
.search-close-btn:hover { background: var(--brown-200); color: var(--brown-800); }

.search-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(28,8,0,0.25);
}
.search-backdrop.active { display: block; }

/* Burger */
.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.burger-btn:hover { background: var(--brown-100); }
.burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--brown-800);
    border-radius: 2px;
    transition: all var(--transition);
}
.burger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(360px, 90vw);
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 2000;
    overflow-y: auto;
    transition: right var(--transition-slow);
    box-shadow: var(--shadow-lg);
}
.mobile-menu.open { right: 0; }
.mobile-menu-inner {
    padding: 80px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gray-900);
}
.mobile-menu-close:hover { background: var(--gray-100); }
.mobile-nav-list { display: flex; flex-direction: column; }
.mobile-nav-list li a {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-100);
    transition: color var(--transition);
}
.mobile-nav-list li:last-child a { border-bottom: none; }
.mobile-nav-list li a:hover, .mobile-nav-list li.current-menu-item a { color: var(--brown-700); }
.mobile-contacts {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mobile-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    padding: 8px 0;
}
.mobile-contact-link:hover { color: var(--brown-700); }
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,6,3,0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
    backdrop-filter: blur(4px);
}
.mobile-overlay.active { opacity: 1; pointer-events: all; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--brown-900);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(15,6,3,0.85) 0%,
        rgba(61,26,8,0.7) 50%,
        rgba(15,6,3,0.4) 100%
    );
}
.hero-bg-fallback {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(164,82,45,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(232,180,192,0.15) 0%, transparent 40%),
        linear-gradient(135deg, var(--brown-900) 0%, var(--brown-800) 60%, var(--brown-700) 100%);
}
.hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-decor-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(232,180,192,0.15);
}
.hero-decor-circle:nth-child(1) { width: 600px; height: 600px; right: -100px; top: -100px; }
.hero-decor-circle:nth-child(2) { width: 400px; height: 400px; right: 100px; bottom: -50px; border-color: rgba(232,180,192,0.08); }
.hero-decor-circle:nth-child(3) { width: 200px; height: 200px; right: 250px; top: 30%; border-color: rgba(232,180,192,0.2); }

.hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 120px;
}
.hero-content { max-width: 700px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232,180,192,0.15);
    border: 1px solid rgba(232,180,192,0.3);
    color: var(--pink-300);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink-400); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.hero-title-accent { color: var(--pink-400); }
.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.75;
    margin-bottom: 20px;
    max-width: 580px;
}
.hero-highlight {
    display: block;
    background: rgba(232,180,192,0.1);
    border-left: 3px solid var(--pink-400);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 40px;
}
.hero-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.hero-actions .btn {
    min-width: 212px;
    height: 64px;
    padding: 0 34px;
    justify-content: center;
    text-align: center;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(61, 26, 8, 0.12);
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--pink-300);
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   ADVANTAGES SECTION
   ============================================ */
.advantages-section { background: var(--white); }
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.advantage-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--brown-100);
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid transparent;
}
.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brown-400), var(--pink-400));
    opacity: 0;
    transition: opacity var(--transition);
}
.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brown-200);
    background: var(--white);
}
.advantage-card:hover::before { opacity: 1; }
.advantage-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brown-800), var(--brown-600));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}
.advantage-icon svg { width: 28px; height: 28px; }
.advantage-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brown-800);
    margin-bottom: 8px;
    line-height: 1.3;
}
.advantage-text {
    font-size: 0.88rem;
    color: var(--gray-700);
    line-height: 1.65;
}

/* ============================================
   SALES / BESTSELLERS SLIDER
   ============================================ */
.products-slider-section { overflow: hidden; }
.slider-container { position: relative; }
.slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    justify-content: center;
}
.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brown-100);
    color: var(--brown-800);
    border: 1px solid var(--brown-200);
    transition: all var(--transition);
    cursor: pointer;
}
.slider-btn:hover, .slider-btn:focus {
    background: var(--brown-800);
    color: var(--white);
    border-color: var(--brown-800);
}
.slider-btn:disabled { opacity: 0.4; pointer-events: none; }
.slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brown-200);
    transition: all var(--transition);
    cursor: pointer;
}
.slider-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--brown-800);
}

/* Product Card */
.product-card {
    min-width: 280px;
    width: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--brown-100);
    transition: all var(--transition);
    flex-shrink: 0;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brown-200);
}
.product-card-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--brown-100);
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--brown-800);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.05em;
}
.product-card-badge.sale { background: var(--pink-500); color: var(--brown-900); }
.product-card-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition);
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateY(0); }
.product-card-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--brown-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brown-800);
    cursor: pointer;
    transition: all var(--transition);
}
.product-card-action-btn:hover { background: var(--brown-800); color: var(--white); }
.product-card-body { padding: 20px; }
.product-card-cat {
    font-size: 0.7rem;
    color: var(--brown-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 6px;
}
.product-card-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brown-800);
    margin-bottom: 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.price-current {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brown-800);
}
.price-old {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-decoration: line-through;
}
.product-card .btn { width: 100%; justify-content: center; }

/* Card "В корзину" button */
.btn-card-cart {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    padding: 12px 20px !important;
    background: var(--pink-200) !important;
    color: var(--brown-800) !important;
    border: none !important;
    border-radius: 100px !important;
    font-family: var(--font-body) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: none !important;
}
.btn-card-cart:hover {
    background: var(--pink-400) !important;
    color: var(--brown-900) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(232, 180, 192, 0.5) !important;
    text-decoration: none !important;
}
.btn-card-cart.loading {
    opacity: 0.6 !important;
    pointer-events: none !important;
    transform: none !important;
}
.btn-card-cart.added {
    background: var(--pink-400) !important;
    color: var(--brown-900) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-section { background: var(--brown-100); }
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    group: true;
}
.category-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s var(--transition);
}
.category-card:hover .category-card-img { transform: scale(1.06); }
.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15,6,3,0.85) 0%,
        rgba(61,26,8,0.4) 50%,
        transparent 100%
    );
    transition: background var(--transition);
}
.category-card:hover .category-card-overlay {
    background: linear-gradient(
        to top,
        rgba(15,6,3,0.9) 0%,
        rgba(61,26,8,0.5) 60%,
        rgba(61,26,8,0.15) 100%
    );
}
.category-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
}
.category-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(232,180,192,0.2);
    border: 1px solid rgba(232,180,192,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.4rem;
    backdrop-filter: blur(8px);
    transition: all var(--transition);
}
.category-card:hover .category-icon {
    background: var(--pink-400);
    border-color: var(--pink-400);
}
.category-name {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 6px;
}
.category-count {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}
.category-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition);
}
.category-card:hover .category-arrow { opacity: 1; transform: translateX(0); }

/* ============================================
   CERTIFICATES
   ============================================ */
.certificates-section { background: var(--brown-900); }
.certs-slider-track { display: flex; gap: 20px; }
.cert-card {
    min-width: 240px;
    width: 240px;
    aspect-ratio: 3/4;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    cursor: pointer;
    transition: all var(--transition);
}
.cert-card:hover { transform: scale(1.03); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.cert-card img { width: 100%; height: 100%; object-fit: cover; }
.cert-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    color: var(--white);
    opacity: 0;
}
.cert-card:hover .cert-card-overlay { background: rgba(0,0,0,0.4); opacity: 1; }

/* ============================================
   CONTACT FORM SECTION
   ============================================ */
.section-contact-form {
    background: linear-gradient(135deg, var(--brown-800) 0%, var(--brown-900) 100%);
    padding: var(--section-padding) 0;
}
.contact-form-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.contact-form-text .section-heading { color: var(--white); }
.contact-form-text .section-subheading { color: rgba(255,255,255,0.7); max-width: 100%; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-size: 0.95rem;
    color: var(--white);
    transition: all var(--transition);
    outline: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.4); }
.form-input:focus {
    border-color: var(--pink-400);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(232,180,192,0.15);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-actions { display: flex; flex-direction: column; gap: 12px; }
.form-note { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.form-note a { color: var(--pink-300); }
.form-message-result {
    padding: 0;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}
.form-message-result.success {
    background: rgba(100,200,100,0.15);
    border: 1px solid rgba(100,200,100,0.3);
    color: #90EE90;
    padding: 12px 16px;
}
.form-message-result.error {
    background: rgba(200,100,100,0.15);
    border: 1px solid rgba(200,100,100,0.3);
    color: #FFB0B0;
    padding: 12px 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--brown-900);
    color: rgba(255,255,255,0.75);
    padding: 64px 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-img { height: 128px !important; width: auto !important; object-fit: contain; margin-bottom: 12px; }
.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}
.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 12px; }
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}
.social-icon:hover { background: var(--pink-400); color: var(--brown-900); border-color: var(--pink-400); }

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.footer-nav-list { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-list a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    transition: color var(--transition);
}
.footer-nav-list a:hover { color: var(--pink-300); }
.footer-contacts-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    transition: color var(--transition);
}
.footer-contact-link:hover { color: var(--pink-300); }
.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
.footer-address svg { flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-copyright { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-policy { font-size: 0.78rem; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-policy:hover { color: var(--pink-300); }

/* ============================================
   PAGE TEMPLATES
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--brown-900) 0%, var(--brown-800) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,180,192,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.page-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    line-height: 1.7;
}
.page-content { padding: var(--section-padding) 0; }

/* About page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.about-img-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/5;
    position: relative;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-img-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 180px;
    height: 180px;
    border-radius: var(--radius-lg);
    background: var(--pink-400);
    z-index: -1;
}
.about-text-content { display: flex; flex-direction: column; gap: 24px; }
.about-text p { font-size: 1rem; line-height: 1.8; color: var(--gray-700); }

/* Payment page */
.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.payment-block {
    background: var(--brown-100);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--brown-200);
}
.payment-block-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--brown-800);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.payment-block-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brown-800);
    margin-bottom: 16px;
}
.payment-block p, .payment-block ul { font-size: 0.95rem; line-height: 1.75; color: var(--gray-700); }

/* Contacts page */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contacts-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--brown-100);
    border-radius: var(--radius-md);
    border: 1px solid var(--brown-200);
}
.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--brown-800);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-label { font-size: 0.75rem; color: var(--brown-500); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 4px; }
.contact-info-value { font-size: 1rem; font-weight: 600; color: var(--gray-900); }
.contact-info-value a { transition: color var(--transition); }
.contact-info-value a:hover { color: var(--brown-700); }
.contacts-map iframe { border-radius: var(--radius-lg); width: 100%; height: 400px; border: none; }

/* Exchange/Return page */
.exchange-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 60px;
    border: 1px solid var(--brown-100);
    box-shadow: var(--shadow-sm);
}
.exchange-content p { font-size: 1rem; line-height: 1.8; color: var(--gray-700); margin-bottom: 20px; }

.privacy-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 60px;
    border: 1px solid var(--brown-100);
    box-shadow: var(--shadow-sm);
}
.privacy-content p { font-size: 1rem; line-height: 1.8; color: var(--gray-700); margin-bottom: 20px; }
.privacy-content h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--brown-800); margin: 32px 0 12px; }
.privacy-content h2 { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--brown-800); margin: 40px 0 16px; }
.privacy-content ul, .privacy-content ol { padding-left: 24px; margin-bottom: 20px; }
.privacy-content li { font-size: 1rem; line-height: 1.8; color: var(--gray-700); margin-bottom: 8px; }
.privacy-content a { color: var(--pink-600); text-decoration: underline; }

/* ============================================
   WOOCOMMERCE
   ============================================ */
.woo-main { padding: var(--section-padding) 0; }
.woo-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
    padding-top: 48px;
    padding-bottom: 48px;
}
.woo-sidebar {
    position: sticky;
    top: 160px;
}
.woo-sidebar-block {
    background: var(--brown-100);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}
.woo-sidebar-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brown-800);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--brown-200);
}
.widget_product_categories .product-categories {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.widget_product_categories .product-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--gray-700);
    transition: all var(--transition);
}
.widget_product_categories .product-categories a:hover,
.widget_product_categories .current-cat a {
    background: var(--brown-200);
    color: var(--brown-800);
    font-weight: 600;
}

/* WooCommerce products grid */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.woo-products ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
}
ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}
ul.products li.product:hover {
    transform: none !important;
    box-shadow: none !important;
}
.product-card--grid {
    width: 100%;
    min-width: 0;
    flex-shrink: 1;
}
.choco-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.woocommerce-result-count { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 20px; }
.woocommerce-ordering select {
    padding: 8px 16px;
    border: 1px solid var(--brown-200);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--gray-900);
    background: var(--white);
    cursor: pointer;
}

/* Single Product */
.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: var(--section-padding);
}
.product-gallery { position: sticky; top: 160px; }
.product-gallery-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--brown-100);
    margin-bottom: 16px;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.product-gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition);
}
.product-gallery-thumb.active { border-color: var(--brown-800); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-details { display: flex; flex-direction: column; gap: 24px; }
.product-cat-breadcrumb { font-size: 0.8rem; color: var(--brown-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.product-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    color: var(--brown-800);
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.product-price-box { display: flex; align-items: center; gap: 16px; }
.product-price-main {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--brown-800);
}
.product-price-old { font-size: 1.1rem; color: var(--gray-400); text-decoration: line-through; }
.product-desc { font-size: 0.95rem; line-height: 1.8; color: var(--gray-700); }
.product-add-to-cart .quantity input {
    width: 60px;
    padding: 12px;
    border: 1px solid var(--brown-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    text-align: center;
}
.product-add-to-cart .single_add_to_cart_button {
    background: var(--brown-800) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 16px 40px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all var(--transition) !important;
}
.product-add-to-cart .single_add_to_cart_button:hover { background: var(--brown-700) !important; }

/* Related / Upsell products */
.woocommerce div.product {
    display: flow-root;
}
.related.products,
.upsells.products {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-top: 64px;
}
.related.products > h2,
.upsells.products > h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brown-800);
    margin-bottom: 28px;
}
.related.products ul.products,
.upsells.products ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}
.choco-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.choco-related-grid .product-card {
    width: 100%;
    min-width: 0;
}
@media (max-width: 900px) {
    .related.products ul.products,
    .upsells.products ul.products { grid-template-columns: repeat(2, 1fr) !important; }
    .choco-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .related.products ul.products,
    .upsells.products ul.products { grid-template-columns: 1fr !important; }
    .choco-related-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SEARCH
   ============================================ */
.site-search { padding: 12px 0; background: var(--brown-100); }
.search-form {
    display: flex;
    gap: 12px;
    max-width: 600px;
}
.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1.5px solid var(--brown-200);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--gray-900);
    background: var(--white);
    outline: none;
    transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--brown-500); }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 72px;
        --container-padding: 20px;
    }
    .header-contacts { display: none; }
    .header-email { display: none; }
    .header-top { display: none; }
    .woo-layout { grid-template-columns: 1fr; }
    .woo-sidebar { position: relative; top: 0; }
    .choco-products-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-form-inner { grid-template-columns: 1fr; gap: 48px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-img-wrap { aspect-ratio: 16/9; }
    .contacts-grid { grid-template-columns: 1fr; }
    .payment-grid { grid-template-columns: 1fr; }
    .single-product-layout { grid-template-columns: 1fr; }
    .product-gallery { position: relative; top: 0; }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 56px;
        --container-padding: 16px;
    }
    .header-main { padding: 8px 0; }
    .header-main-inner { gap: 8px; }
    .logo-img { height: 84px !important; width: auto !important; object-fit: contain; }
    .footer-logo-img { height: 104px !important; width: auto !important; object-fit: contain; margin-bottom: 8px; }
    .burger-btn { display: flex; }
    .header-nav { display: none; }
    .header-cta { margin-left: auto; gap: 4px; }
    .header-cta .btn:not(.header-cart) { display: none; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    ul.products { grid-template-columns: repeat(2, 1fr) !important; }
    .advantages-grid { grid-template-columns: 1fr; }
    .hero-stats { display: none; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .exchange-content { padding: 32px 24px; }
    .hero-inner { padding-top: 48px; padding-bottom: 48px; }
    .hero-title { font-size: 1.6rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 280px; max-width: 100%; min-width: 0; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: 1fr; justify-items: center; }
    .category-card { width: 100%; max-width: 340px; }
    ul.products { grid-template-columns: 1fr !important; }
    .choco-products-grid { grid-template-columns: 1fr; }
    .product-card { min-width: 0; width: 100%; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .hero-section { min-height: 70vh; }
}

@media (max-width: 768px) {
    .categories-grid { justify-items: center; }
    .category-card { width: 100%; }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-brown { color: var(--brown-800); }
.text-pink { color: var(--pink-400); }
.mt-auto { margin-top: auto; }
.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

/* WP Core align classes */
.wp-block-image.alignwide, .alignwide { margin-left: auto; margin-right: auto; }
.wp-block-image.alignfull, .alignfull { margin-left: calc(-1 * var(--container-padding)); margin-right: calc(-1 * var(--container-padding)); }

/* Woocommerce notice */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.9rem;
}
.woocommerce-message { background: var(--brown-100); border-left: 4px solid var(--brown-500); }
.woocommerce-info { background: var(--pink-100); border-left: 4px solid var(--pink-400); }
.woocommerce-error { background: #fff0f0; border-left: 4px solid #e05; }

/* ============================================
   ADD TO CART BUTTON STATES
   ============================================ */

/* General add-to-cart loading state (non-card buttons) */
.add_to_cart_button.loading:not(.btn-card-cart) {
    opacity: 0.65;
    pointer-events: none;
}

/* "Просмотр корзины" link after AJAX add */
a.added_to_cart.wc-forward {
    display: block;
    margin-top: 8px;
    padding: 11px 20px;
    background: transparent;
    color: var(--brown-800);
    border: 1.5px solid var(--brown-300, #c49a6c);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition);
}
a.added_to_cart.wc-forward:hover {
    background: var(--brown-800);
    color: var(--white);
    border-color: var(--brown-800);
}

/* ============================================
   WOOCOMMERCE CART
   ============================================ */
.woocommerce-cart .woo-content,
.woocommerce-checkout .woo-content {
    max-width: 100%;
}
.woocommerce-cart-form {
    width: 100%;
    overflow-x: auto;
}
table.shop_table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--brown-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-size: 0.9rem;
}
table.shop_table thead tr {
    background: var(--brown-800);
    color: var(--white);
}
table.shop_table thead th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
table.shop_table tbody tr {
    border-bottom: 1px solid var(--brown-100);
    background: var(--white);
    transition: background var(--transition);
}
table.shop_table tbody tr:hover { background: var(--brown-100); }
table.shop_table tbody td {
    padding: 16px 20px;
    vertical-align: middle;
}
table.shop_table .product-thumbnail img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--brown-200);
}
table.shop_table .product-remove a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all var(--transition);
}
table.shop_table .product-remove a:hover { background: #dc2626; color: var(--white); }
table.shop_table .product-name a {
    font-weight: 600;
    color: var(--brown-800);
    font-size: 0.95rem;
}
table.shop_table .product-name a:hover { color: var(--pink-500); }
table.shop_table .product-price,
table.shop_table .product-subtotal {
    font-weight: 700;
    color: var(--brown-800);
}
table.shop_table .product-quantity .qty {
    width: 60px;
    padding: 8px 10px;
    border: 1.5px solid var(--brown-200);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.9rem;
}
.cart-collaterals {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}
.cart-collaterals .cart_totals {
    width: 380px;
    max-width: 100%;
    background: var(--brown-100);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
}
.cart-collaterals .cart_totals h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brown-800);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--brown-200);
}
.cart-collaterals table.shop_table {
    border: none;
    border-radius: 0;
    margin-bottom: 20px;
}
.cart-collaterals table.shop_table thead { display: none; }
.cart-collaterals table.shop_table tbody tr { border-bottom: 1px solid var(--brown-200); background: transparent; }
.cart-collaterals table.shop_table tbody tr:hover { background: transparent; }
.cart-collaterals table.shop_table td { padding: 10px 0; font-size: 0.9rem; }
.cart-collaterals table.shop_table th { padding: 10px 0; font-size: 0.88rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--gray-700); }
.cart-collaterals table.shop_table .order-total td,
.cart-collaterals table.shop_table .order-total th {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brown-800);
    border-top: 2px solid var(--brown-300);
    padding-top: 14px;
}
.wc-proceed-to-checkout .checkout-button,
.cart-collaterals .checkout-button {
    display: block;
    width: 100%;
    background: var(--brown-800) !important;
    color: var(--white) !important;
    text-align: center;
    padding: 16px 24px !important;
    border-radius: 100px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all var(--transition) !important;
    border: none !important;
}
.wc-proceed-to-checkout .checkout-button:hover { background: var(--brown-700) !important; }
.cart_totals .woocommerce-shipping-calculator { margin-top: 16px; }
.actions .coupon { display: flex; gap: 10px; }
.actions .coupon input { flex: 1; padding: 10px 16px; border: 1.5px solid var(--brown-200); border-radius: 100px; font-size: 0.88rem; }
.actions .coupon .button,
.actions .button {
    background: var(--brown-800);
    color: var(--white);
    border: none;
    border-radius: 100px;
    padding: 10px 24px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.actions .coupon .button:hover,
.actions .button:hover { background: var(--brown-700); }
.woocommerce-cart-form__contents .actions { padding: 16px 20px; background: var(--brown-50, #fdf8f5); }
.return-to-shop .button {
    background: var(--brown-800);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    display: inline-block;
    transition: all var(--transition);
}
.return-to-shop .button:hover { background: var(--brown-700); }
.woocommerce-empty-cart-icon { font-size: 4rem; margin-bottom: 16px; }
@media (max-width: 768px) {
    .cart-collaterals { justify-content: center; }
    .cart-collaterals .cart_totals { width: 100%; }
    table.shop_table thead th:nth-child(2),
    table.shop_table tbody td:nth-child(2) { display: none; }
}

/* ============================================
   WOOCOMMERCE CHECKOUT
   ============================================ */

/* Classic checkout layout: wider order review panel */
.woocommerce-checkout .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}
.woocommerce-checkout .col2-set {
    flex: 1 1 480px;
    width: auto !important;
    float: none !important;
}
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    flex: 0 0 420px;
    width: 420px !important;
    float: none !important;
}
.woocommerce-checkout #order_review {
    background: var(--brown-100);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
}
.woocommerce-checkout #order_review_heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brown-800);
    padding-bottom: 10px;
}
.woocommerce-checkout #order_review table.shop_table {
    border: none;
    border-radius: 0;
}
.woocommerce-checkout #order_review table.shop_table .product-name {
    word-break: break-word;
    min-width: 120px;
}

/* Block checkout: wider sidebar */
.wc-block-checkout__sidebar {
    flex: 0 0 420px !important;
    min-width: 380px !important;
}
.wc-block-checkout__main {
    flex: 1 1 420px !important;
}

@media (max-width: 900px) {
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review { flex: 1 1 100%; width: 100% !important; }
    .wc-block-checkout__sidebar { flex: 1 1 100% !important; min-width: 0 !important; }
}

/* MAX icon overrides */
.social-icon-max { overflow: hidden; padding: 0; }
.social-icon-image { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.header-max-img { width: 16px; height: 16px; object-fit: contain; display: block; flex-shrink: 0; border-radius: 4px; }
.contact-info-icon-max { overflow: hidden; padding: 0; }
.contact-max-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-info-value > div { align-items: center; }
.contact-messenger-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex: 0 0 22px; }
.contact-messenger-icon img { width: 22px; height: 22px; display: block; object-fit: contain; }
