@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Oswald:wght@500;600;700&display=swap');

:root {
    --font: 'Montserrat', sans-serif;
    --font-price: 'Oswald', sans-serif;
    --fs: 16px;
    --fs-sm: 14px;
    --fs-xs: 11px;
    --fs-lg: 18px;
    --fs-xl: 22px;
    --black: #1a1a1a;
    --dark: #333;
    --gray: #777;
    --gray-light: #bbb;
    --gray-bg: #f5f5f5;
    --white: #fff;
    --accent: #e8732a;
    --accent-hover: #d4651f;
    --green-light: #eaf7ec;
    --red-light: #fceaea;
    --overlay: rgba(0,0,0,0.4);
    --radius: 8px;
    --radius-sm: 4px;
    --transition: .3s ease;
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --header-h: 52px;
    --sidebar-w: 380px;
    --container: 1280px;
    --mobile-bar-h: 52px;

    /* ===== Spacing scale ===== */
    --space-1: 1px;
    --space-2: 2px;
    --space-4: 4px;
    --space-5: 5px;
    --space-6: 6px;
    --space-8: 8px;
    --space-10: 10px;
    --space-12: 12px;
    --space-14: 14px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-28: 28px;
    --space-32: 32px;
    --space-40: 40px;
    --space-48: 48px;
    --space-60: 60px;
}

/* ==============================
   MOTION — one unified reveal pattern
   Same duration/easing everywhere so appearance feels
   like a single system, not per-section tweaks.
   ============================== */
:root {
    --reveal-duration: .6s;
    --reveal-ease: cubic-bezier(.22, 1, .36, 1);
    --reveal-distance: 18px;
    --reveal-distance-x: 28px;
    --reveal-step: 70ms;
}
.reveal {
    opacity: 0;
    transform: translateY(var(--reveal-distance));
    transition: opacity var(--reveal-duration) var(--reveal-ease),
                transform var(--reveal-duration) var(--reveal-ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Direction variant: slides in from the right instead of rising from below */
.reveal.reveal--right { transform: translateX(var(--reveal-distance-x)); }
.reveal.reveal--right.is-visible { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: var(--fs); scroll-behavior: smooth; }
body {
    font-family: var(--font); color: var(--black); background: var(--white);
    line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--black); text-decoration: none; -webkit-tap-highlight-color: transparent; outline: none; }
a:visited, a:focus, a:active { color: var(--black); outline: none; }
button, .header-btn, .mobile-bar-btn { -webkit-tap-highlight-color: transparent; }
button { font-family: var(--font); color: var(--black);cursor: pointer; border: none; background: none; font-size: inherit; }
button, button:focus, button:active { outline: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
input, select, textarea {
    font-family: var(--font); font-size: var(--fs);
    border: 1px solid var(--gray-light); border-radius: var(--radius-sm);
    padding: var(--space-10) var(--space-14); outline: none; width: 100%;
    transition: border var(--transition), background var(--transition);
}
input:focus, select:focus { border-color: var(--dark); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-10); }
@media (min-width: 768px) { .container { padding: 0 var(--space-20); } }
.hint { font-size: var(--fs-sm); color: var(--gray); }
.hint-xs { font-size: var(--fs-xs); color: var(--gray-light); }

/* ==============================
   HEADER
   ============================== */
.header {
    position: sticky; top: 0; z-index: 100;
    background: var(--white); border-bottom: 1px solid #eee;
}
.header-main {
    display: flex; align-items: center; height: var(--header-h); gap: var(--space-12);
    position: relative;
}
.header-left { display: flex; align-items: center; gap: var(--space-6); flex-shrink: 0; }
.header-logo { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.5px; white-space: nowrap; }
.header-logo a { display: block; }

.header-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius); transition: background var(--transition);
    position: relative; flex-shrink: 0;
}
.header-btn:hover { background: var(--gray-bg); }
.header-btn svg { width: 22px; height: 22px; }
.header-btn .badge {
    position: absolute; top: 3px; right: 3px;
    background: var(--accent); color: var(--white);
    font-size: 10px; font-weight: 600;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Search desktop */
.header-search {
    display: none; align-items: center;
    background: var(--gray-bg); border-radius: var(--radius);
    padding: 0 var(--space-14); height: 40px; flex: 1; max-width: 480px;
}
.header-search input { border: none; background: transparent; padding: 0 var(--space-10); font-size: var(--fs-sm); flex: 1; }
.header-search input:focus { border: none; }
.header-search svg { width: 18px; height: 18px; stroke: var(--gray); flex-shrink: 0; }
.header-actions { display: flex; align-items: center; gap: var(--space-12); margin-left: auto; }

@media (min-width: 768px) {
    .header-search { display: flex; }
    .header-btn--search-mobile { display: none; }
}
@media (max-width: 767px) {
    .header-btn--desktop { display: none; }
    .header-main { padding: 0 var(--space-10); }
}

/* ===== Header Dropdowns (overlay, not pushing content) ===== */
.header-dropdown {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: 0; overflow: hidden;
    transition: max-height .4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .3s ease;
    background: var(--white); z-index: 150;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.header-dropdown.active {
    max-height: 500px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.16);
}

/* Desktop: narrow popup near trigger */
@media (min-width: 768px) {
    .header-dropdown {
        left: auto; right: 20px; width: 360px;
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: var(--shadow-lg);
    }
    .header-dropdown.active {
        border: 1px solid #eee; border-top: none;
        box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    }
    #search-bar { width: auto; left: 0; right: 0; border-radius: 0; border: none; }
}

/* Search bar */
.search-bar-inner {
    display: flex; align-items: center; gap: var(--space-8);
    padding: var(--space-10) var(--space-5);
}
.search-bar-inner input {
    flex: 1; border: 1px solid #eee; border-radius: var(--radius);
    padding: var(--space-10) var(--space-14); font-size: var(--fs-sm);
}
.search-bar-close, .search-bar-submit {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; border-radius: var(--radius);
}
.search-bar-close svg, .search-bar-submit svg { width: 22px; height: 22px; }
.search-bar-submit:hover { background: var(--gray-bg); }

/* Search results */
.header-search { position: relative; }
.search-results {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg); max-height: 400px; overflow-y: auto;
    z-index: 200; display: none;
}
.search-results.active { display: block; }
.search-results--mobile {
    position: relative; top: 0; max-height: calc(100vh - 120px);
    border-radius: 0; box-shadow: none; border-top: 1px solid rgba(0,0,0,.06);
}
.search-result-item {
    display: flex; align-items: center; gap: var(--space-12); padding: var(--space-10) var(--space-16);
    text-decoration: none; color: var(--text); transition: background .15s;
}
.search-result-item:hover { background: var(--gray-bg); }
.search-result-item--unavailable { opacity: .45; }
.search-result-img { width: 48px; height: 60px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--gray-bg); }
.search-result-img img { width: 100%; height: 100%; object-fit: cover; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { display: block; font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-sku { font-size: 11px; color: var(--gray); }
.search-result-price { text-align: right; flex-shrink: 0; }
.search-result-price .price-old { font-size: 11px; }
.search-result-price .price-current { font-size: var(--fs-sm); font-weight: 600; display: block; }
.search-no-results { padding: var(--space-24) var(--space-16); text-align: center; color: var(--gray); font-size: var(--fs-sm); }
.search-total { padding: var(--space-8) var(--space-16); text-align: center; border-top: 1px solid rgba(0,0,0,.06); }
.search-total a { font-size: var(--fs-sm); color: var(--accent); text-decoration: none; font-weight: 500; }
.search-loading { padding: var(--space-20); text-align: center; color: var(--gray); font-size: var(--fs-sm); }

@media (max-width: 767px) {
    #search-bar.active { max-height: 100vh; }
    .search-results--mobile { max-height: calc(100vh - 60px); overflow-y: auto; }
}

/* Dropdown body (account, contacts) */
.dropdown-body { padding: var(--space-16) var(--space-20); }
.dropdown-section { margin-bottom: var(--space-16); }
.dropdown-section:last-child { margin-bottom: 0; }
.dropdown-section:not(:first-child) { padding-top: var(--space-16); border-top: 1px solid #a2a2a2; }
.dropdown-section h4 {
    font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase;
    letter-spacing: .5px; color: var(--gray); margin-bottom: var(--space-8);
}

.lang-switch { display: flex; gap: var(--space-8); flex-wrap: wrap; }
.lang-switch a {
    display: inline-block; padding: var(--space-6) var(--space-16); border: 1px solid #eee; border-radius: var(--radius);
    font-size: var(--fs-sm); font-weight: 500; color: inherit; transition: all var(--transition);
}
.lang-switch a:hover {
    background: var(--gray-bg);
}
.lang-switch a.active {
    background: var(--gray-bg); border-color: var(--gray-bg); font-weight: 600;
}

.dropdown-links {
    margin-top: var(--space-16); padding-top: var(--space-16);
    border-top: 1px solid #a2a2a2;
}
.dropdown-links a {
    display: flex; align-items: center; gap: var(--space-10); padding: var(--space-8) 0; font-weight: 500;
    border-bottom: 1px solid #f5f5f5; transition: color var(--transition);
}
.dropdown-links a::before {
    content: ''; flex-shrink: 0; width: 6px; height: 6px;
    border-right: 1.5px solid var(--gray-light); border-bottom: 1.5px solid var(--gray-light);
    transform: rotate(-45deg); transition: border-color var(--transition);
}
.dropdown-links a:last-child { border-bottom: none; }
.dropdown-links a:hover { color: var(--accent); }
.dropdown-links a:hover::before { border-color: var(--accent); }

.dropdown-messengers a {
    display: flex; align-items: center; gap: var(--space-10);
    padding: var(--space-8) 0; font-weight: 500;
}
.dropdown-messengers svg { width: 28px; height: 28px; fill: var(--dark); flex-shrink: 0; }
.dropdown-messengers a:hover { color: var(--accent); }

.schedule-row { display: flex; justify-content: space-between; padding: var(--space-4) 0; font-size: var(--fs-sm); }
.schedule-row span:first-child { color: var(--gray); }

.dropdown-socials { display: flex; gap: var(--space-10); }
.dropdown-socials a {
    width: 40px; height: 40px; background: var(--gray-bg); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.dropdown-socials a:hover { background: #ddd; }
.dropdown-socials svg { width: 20px; height: 20px; fill: var(--dark); }

@media (max-width: 767px) {
    .dropdown-body { padding: var(--space-16); }
    .search-bar-inner { padding: var(--space-10) var(--space-5); }
}

/* ==============================
   MOBILE BOTTOM BAR
   ============================== */
.mobile-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--mobile-bar-h); background: var(--white);
    border-top: 1px solid #eee; z-index: 100;
    justify-content: space-around; align-items: center;
}
.mobile-bar-btn {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
    padding: var(--space-6) var(--space-16); border-radius: var(--radius);
    transition: background var(--transition); position: relative;
}
.mobile-bar-btn:hover { background: var(--gray-bg); }
.mobile-bar-btn svg { width: 20px; height: 20px; }
.mobile-bar-btn span { font-size: var(--fs-xs);  }
.mobile-bar-badge {
    position: absolute; top: 2px; right: 8px;
    background: var(--accent); color: var(--white);
    font-size: 9px; font-weight: 700;
    min-width: 16px; height: 16px; border-radius: 8px;
    display: none; align-items: center; justify-content: center;
    padding: 0 var(--space-4); line-height: 1;
}
.mobile-bar-badge.visible { display: flex; }

@media (max-width: 767px) {
    .mobile-bar { display: flex; }
    body { padding-bottom: var(--mobile-bar-h); }
}

/* ==============================
   SIDEBAR
   ============================== */
.sidebar-overlay {
    position: fixed; inset: 0; background: var(--overlay); z-index: 200;
    opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }
.sidebar {
    position: fixed; top: 0; height: 100%;
    width: var(--sidebar-w); max-width: 90vw;
    background: var(--white); z-index: 201;
    transition: transform var(--transition);
    display: flex; flex-direction: column; overflow: hidden;
}
.sidebar--left { left: 0; transform: translateX(-100%); }
.sidebar--right { right: 0; transform: translateX(100%); }
.sidebar--left.active, .sidebar--right.active { transform: translateX(0); }
.sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-16) var(--space-20); border-bottom: 1px solid #eee; flex-shrink: 0;
}
.sidebar-header h3 { font-size: var(--fs-lg); font-weight: 600; }
.sidebar-close {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius); transition: background var(--transition);
}
.sidebar-close:hover { background: var(--gray-bg); }
.sidebar-close svg { width: 20px; height: 20px; }
.sidebar-body { flex: 1; overflow-y: auto; padding: var(--space-20); }

.nav-list a {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-14) 0; border-bottom: 1px solid #f0f0f0;
    font-weight: 500; transition: color var(--transition);
}
.nav-list a:hover { color: var(--accent); }
.nav-list a svg { width: 16px; height: 16px; stroke: var(--gray-light); }

/* ==============================
   CHECKOUT LOADING OVERLAY
   ============================== */
.checkout-loading-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
}
.checkout-loading-overlay.active { opacity: 1; visibility: visible; }
.checkout-loading-spinner {
    width: 48px; height: 48px; border: 3px solid rgba(255,255,255,0.25); border-top-color: #fff;
    border-radius: 50%; animation: checkout-spin .8s linear infinite;
}
@keyframes checkout-spin { to { transform: rotate(360deg); } }
.checkout-loading-text { margin-top: var(--space-16); color: #fff; font-size: var(--fs-sm); font-weight: 500; }

/* ==============================
   MODAL (info pages)
   ============================== */
.modal-overlay {
    position: fixed; inset: 0; background: var(--overlay); z-index: 300;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: var(--white); border-radius: var(--radius);
    width: 560px; max-width: 92vw; max-height: 85vh;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px); transition: transform var(--transition);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-16) var(--space-24); border-bottom: 1px solid #eee; flex-shrink: 0;
}
.modal-header h3 { font-size: var(--fs-lg); font-weight: 600; }
.modal-close {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius); transition: background var(--transition);
}
.modal-close:hover { background: var(--gray-bg); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body {
    padding: var(--space-24); overflow-y: auto; flex: 1;
    font-size: var(--fs-sm); line-height: 1.7;
}
.modal-body h3 { font-size: var(--fs); font-weight: 600; margin-bottom: var(--space-12); }
.modal-body p { margin-bottom: var(--space-12); color: var(--dark); }

/* ===== Cart sidebar ===== */
.cart-items { display: flex; flex-direction: column; gap: var(--space-16); }
.cart-item {
    display: flex; gap: var(--space-12); padding-bottom: var(--space-16);
    border-bottom: 1px solid #f0f0f0; position: relative;
}
.cart-item-img {
    width: 80px; height: 100px; border-radius: var(--radius-sm);
    overflow: hidden; flex-shrink: 0; background: var(--gray-bg);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; gap: var(--space-4); }
.cart-item-name { font-weight: 500; font-size: var(--fs-sm); line-height: 1.3; }
.cart-item-params { font-size: var(--fs-xs); color: var(--gray); }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.cart-item-price { font-family: var(--font-price); font-weight: 600; font-size: var(--fs); letter-spacing: .3px; }
.cart-item-oldprice { text-decoration: line-through; color: var(--gray); font-weight: 400; font-size: var(--fs-xs); margin-right: var(--space-4); }
.cart-item-saleprice { color: #d32f2f; }
.cart-item-qty {
    display: flex; align-items: center; gap: 0;
    border: 1px solid #e0e0e0; border-radius: var(--radius-sm);
}
.cart-item-qty button {
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 500; transition: background var(--transition);
}
.cart-item-qty button:hover { background: var(--gray-bg); }
.cart-item-qty span {
    width: 28px; text-align: center; font-size: var(--fs-sm); font-weight: 600;
}
.cart-item-remove {
    position: absolute; top: 0; right: 0;
    color: var(--gray-light); transition: color var(--transition);
    padding: var(--space-2);
}
.cart-item-remove svg { width: 16px; height: 16px; }
.cart-item-remove:hover { color: #d32f2f; }

.cart-footer { padding: var(--space-20); border-top: 1px solid #eee; flex-shrink: 0; }
.cart-shipping-hint {
    font-size: var(--fs-xs); color: var(--gray); text-align: center;
    margin-bottom: var(--space-12); padding: var(--space-8); background: var(--gray-bg); border-radius: var(--radius-sm);
}
.cart-total { display: flex; justify-content: space-between; margin-bottom: var(--space-16); font-weight: 600; font-size: var(--fs-lg); }
.cart-total-num { font-family: var(--font-price); }

/* Flying product animation */
.flying-product {
    position: fixed; z-index: 9999; pointer-events: none;
    width: 60px; height: 75px; border-radius: var(--radius-sm);
    overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.flying-product img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Checkout form (inside cart sidebar) ===== */
.checkout-divider { height: 1px; background: #eee; margin: var(--space-20) 0; }
.checkout-form { padding-bottom: var(--space-20); }

.checkout-field {
    margin-bottom: var(--space-14); position: relative;
    transition: background var(--transition);
    padding: var(--space-10) var(--space-12); border-radius: var(--radius-sm);
    background: transparent;
}
.checkout-field label {
    display: block; font-size: var(--fs-xs); font-weight: 600;
    color: var(--dark); margin-bottom: var(--space-6); text-transform: uppercase; letter-spacing: .3px;
}
.checkout-field .req { color: #d32f2f; }
.checkout-field input[type="text"],
.checkout-field input[type="tel"],
.checkout-field input[type="email"] {
    width: 100%; padding: var(--space-10) var(--space-12); font-size: var(--fs-sm);
    border: 1px solid #e0e0e0; border-radius: var(--radius-sm);
    transition: border var(--transition), box-shadow var(--transition);
}
.checkout-field input:focus { border-color: var(--black); box-shadow: 0 0 0 2px rgba(26,26,26,0.08); }

/* Field states */
.checkout-field--valid { background: var(--green-light); }
.checkout-field--valid input { border-color: #a5d6a7; }
.checkout-field--invalid { background: var(--red-light); }
.checkout-field--invalid input { border-color: #ef9a9a; }

.field-error {
    display: none; font-size: var(--fs-xs); color: #d32f2f;
    margin-top: var(--space-4); line-height: 1.3;
}
.checkout-field--invalid .field-error { display: block; }

/* Detected mobile operator badge (shown next to the phone label) */
.phone-operator {
    display: none; position: absolute; top: var(--space-10); right: var(--space-12);
    font-size: var(--fs-xs); font-weight: 600; letter-spacing: .2px;
    padding: 1px 8px; border-radius: 999px;
    background: var(--green-light); color: #2e7d32;
}
.phone-operator--visible { display: inline-block; }

/* Autocomplete dropdown */
.checkout-autocomplete { position: relative; }
.autocomplete-list {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border: 1px solid #e0e0e0; border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 200px; overflow-y: auto; z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.autocomplete-list.active { display: block; }
.autocomplete-item {
    padding: var(--space-10) var(--space-12); font-size: var(--fs-sm); cursor: pointer;
    transition: background var(--transition); border-bottom: 1px solid #f5f5f5;
}
.autocomplete-item:hover { background: var(--gray-bg); }
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item--loading, .autocomplete-item--empty { color: var(--text-muted, #999); cursor: default; }
.autocomplete-item--loading:hover, .autocomplete-item--empty:hover { background: transparent; }

.np-type-badge {
    display: inline-block; font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .3px; padding: 1px 6px; border-radius: 4px; margin-right: var(--space-6);
    vertical-align: middle;
}
.np-type-badge--warehouse { background: var(--gray-bg); color: var(--dark); }
.np-type-badge--postomat { background: #e3f2fd; color: #1565c0; }

/* Radio buttons */
.checkout-radios { display: flex; flex-direction: column; gap: var(--space-8); }
.checkout-radio {
    display: flex; align-items: center; gap: var(--space-10); cursor: pointer;
    font-size: var(--fs-sm); padding: var(--space-4) 0;
}
.checkout-radio input { display: none; }
.radio-dot {
    display: inline-block;
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid var(--gray-light); flex-shrink: 0;
    position: relative; transition: border var(--transition);
}
.checkout-radio input:checked + .radio-dot { border-color: var(--black); }
.checkout-radio input:checked + .radio-dot::after {
    content: ''; position: absolute; top: 4px; left: 4px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--black);
}
.checkout-payment-single { font-size: var(--fs-sm); font-weight: 500; padding: var(--space-4) 0; }

/* Total & submit inside sidebar */
.checkout-form .cart-total { margin-bottom: var(--space-14); }
.checkout-form .btn-buy { margin-bottom: 0; }
.checkout-form .btn-buy:disabled {
    opacity: .5; cursor: not-allowed; background: var(--gray-light);
}
.checkout-form .btn-buy:disabled:hover { background: var(--gray-light); }

/* Success state */
.checkout-success {
    text-align: center; padding: var(--space-40) var(--space-20);
}
.checkout-success svg { width: 56px; height: 56px; stroke: #388e3c; margin-bottom: var(--space-16); }
.checkout-success h3 { font-size: var(--fs-lg); margin-bottom: var(--space-8); }
.checkout-success p { font-size: var(--fs-sm); color: var(--gray); }

.btn-primary {
    display: block; width: 100%; padding: var(--space-14);
    background: var(--black); color: var(--white);
    font-weight: 600; border-radius: var(--radius);
    text-align: center; transition: background var(--transition);
}
.btn-primary:hover { background: var(--accent); }

/* Sidebar products */
.sidebar-products { display: flex; flex-direction: column; gap: var(--space-12); }
.sidebar-product {
    display: flex; gap: var(--space-12); padding: var(--space-10) 0; border-bottom: 1px solid #f0f0f0;
    cursor: pointer; transition: opacity var(--transition);
}
.sidebar-product:hover { opacity: .8; }
.sidebar-product-img {
    width: 60px; height: 76px; border-radius: var(--radius-sm);
    overflow: hidden; flex-shrink: 0; background: var(--gray-bg);
}
.sidebar-product-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-product-info { display: flex; flex-direction: column; gap: var(--space-2); justify-content: center; }
.sidebar-product-name { font-size: var(--fs-sm); font-weight: 500; }
.sidebar-product-price { font-size: var(--fs-sm); font-weight: 600; display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.sidebar-product-oldprice { text-decoration: line-through; color: var(--gray); font-weight: 400; font-size: 12px; }
.sidebar-product-saleprice { color: var(--accent); }
.sidebar-empty { text-align: center; padding: var(--space-40) var(--space-20); color: var(--gray); font-size: var(--fs-sm); }
.sidebar-empty svg { width: 48px; height: 48px; stroke: var(--gray-light); margin: 0 auto var(--space-12); }

/* ==============================
   FOOTER
   ============================== */
.footer {
    background: var(--black); color: var(--white);
    padding: var(--space-48) 0 0; margin-top: var(--space-60);
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-32); }
.footer-col h4 {
    font-size: var(--fs-sm); font-weight: 600; text-transform: uppercase;
    letter-spacing: .8px; margin-bottom: var(--space-16); color: var(--gray-light);
}
.footer-col a, .footer-col p {
    display: flex; font-size: var(--fs-sm); color: rgba(255,255,255,.7);
    padding: var(--space-8) var(--space-12); transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-socials { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.footer-social {
    display: flex; align-items: center; gap: var(--space-8);
    padding: var(--space-8) var(--space-12); background: rgba(255,255,255,.07);
    border-radius: var(--radius); transition: background var(--transition);
    font-size: var(--fs-sm); color: rgba(255,255,255,.7);
}
.footer-social:hover { background: rgba(255,255,255,.15); color: var(--white); }
.footer-social svg { width: 20px; height: 20px; fill: var(--white); flex-shrink: 0; }

.footer-messengers { display: flex; flex-direction: column; gap: var(--space-6); }
.footer-messengers a { display: flex; align-items: center; gap: var(--space-8); }
.footer-messengers svg { width: 18px; height: 18px; fill: rgba(255,255,255,.5); flex-shrink: 0; }

.footer-bottom {
    text-align: center; padding: var(--space-24) 0; margin-top: var(--space-40);
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: var(--fs-xs); color: rgba(255,255,255,.4);
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .footer { padding: 0; margin-top: var(--space-40); }
    .footer .container { padding: 0 var(--space-20); }
    .footer-grid { grid-template-columns: 1fr; gap: 0; }
    .footer-col { padding: var(--space-24) 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    .footer-col:last-child { border-bottom: none; }
    .footer-bottom { margin-top: 0; }
}

/* ==============================
   BREADCRUMB
   ============================== */
.breadcrumb {
     align-items: center; gap: var(--space-6);
    padding: var(--space-16) 0 var(--space-12); font-size: var(--fs-sm); color: var(--gray);
}
.breadcrumb a { transition: color var(--transition);color: #858585; }
.breadcrumb a:hover { color: var(--black); }
.breadcrumb-sep svg { width: 12px; height: 12px; vertical-align: middle; }
.breadcrumb-current { color: var(--black); font-weight: 500; }

/* ==============================
   SUBCATEGORIES
   ============================== */
.subcategories {
    display: flex; gap: var(--space-8); flex-wrap: wrap;
    padding-bottom: var(--space-20);
}
.subcat-link {
    padding: var(--space-8) var(--space-16); border: 1px solid #e0e0e0; border-radius: 50px;
    font-size: var(--fs-sm); font-weight: 500;
    transition: all var(--transition); white-space: nowrap;
}
.subcat-link:hover { border-color: var(--black); background: var(--black); color: var(--white); }

/* ==============================
   CATALOG TOOLBAR
   ============================== */
.catalog-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-12) 0; border-bottom: 1px solid #eee; margin-bottom: var(--space-20);
    gap: var(--space-12);
}
.catalog-toolbar-left { display: none; align-items: center; gap: var(--space-12); }
.catalog-toolbar-right { display: flex; align-items: center; gap: var(--space-10); }

.catalog-grid-switch { display: flex; gap: var(--space-4); }
.grid-btn {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); border: 1px solid #e0e0e0;
    transition: all var(--transition);
}
.grid-btn svg { width: 18px; height: 18px; }
.grid-btn.active { border-color: var(--black); background: var(--black); color: var(--white); stroke: var(--white); }
.grid-btn.active svg { stroke: var(--white); }

.catalog-sort select {
    padding: var(--space-8) var(--space-32) var(--space-8) var(--space-12); font-size: var(--fs-sm); font-weight: 500;
    border: 1px solid #e0e0e0; border-radius: var(--radius-sm);
    appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    cursor: pointer; min-width: 160px;
}

.filter-toggle-btn {
    display: none; align-items: center; gap: var(--space-6);
    padding: var(--space-8) var(--space-14); border: 1px solid #e0e0e0; border-radius: var(--radius-sm);
    font-size: var(--fs-sm); font-weight: 500; transition: all var(--transition);
}
.filter-toggle-btn svg { width: 16px; height: 16px; }
.filter-toggle-btn:hover { border-color: var(--black); }

/* ==============================
   CATALOG LAYOUT
   ============================== */
.catalog-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-32);
}

/* ===== Filters (desktop) ===== */
.catalog-filters {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    align-self: start;
}

/* Desktop filter buttons (apply/reset) */
.filters-desktop-actions {
    display: flex; gap: var(--space-10); margin-top: var(--space-16); padding-top: var(--space-16);
    border-top: 1px solid #eee;
}
.filters-desktop-actions .btn-filter-reset,
.filters-desktop-actions .btn-filter-apply {
    flex: 1;
}

.filters-block { display: flex; flex-direction: column; gap: var(--space-4); }

.filter-group { border-bottom: 1px solid #f0f0f0; }
.filter-title {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-14) 0; font-size: var(--fs-sm); font-weight: 600;
    cursor: pointer; transition: color var(--transition);
}
.filter-title:hover { color: var(--accent); }
.filter-title svg { width: 14px; height: 14px; transition: transform var(--transition); }
.filter-title.collapsed svg { transform: rotate(-90deg); }

.filter-options { padding-bottom: var(--space-14); display: flex; flex-direction: column; gap: var(--space-8); }
.filter-group.collapsed .filter-options { display: none; }

.filter-check {
    display: flex; align-items: center; gap: var(--space-8); cursor: pointer;
    font-size: var(--fs-sm); padding: var(--space-2) 0;
}
.filter-check input { display: none; }
.filter-check-box {
    width: 18px; height: 18px; border: 1.5px solid var(--gray-light);
    border-radius: 3px; flex-shrink: 0; position: relative;
    transition: all var(--transition);
}
.filter-check input:checked + .filter-check-box {
    background: var(--black); border-color: var(--black);
}
.filter-check input:checked + .filter-check-box::after {
    content: ''; position: absolute; top: 2px; left: 5px;
    width: 5px; height: 9px; border: solid var(--white); border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-color-check { gap: var(--space-10); }
.filter-color-dot {
    width: 22px; height: 22px; border-radius: 50%;
    flex-shrink: 0; border: 2px solid transparent; transition: border var(--transition);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}
.filter-color-check input:checked ~ .filter-color-dot { border-color: var(--black); }

.filter-price-inputs {
    display: flex; align-items: center; gap: var(--space-8);
}
.filter-price-inputs input {
    width: 80px; padding: var(--space-8) var(--space-10); font-size: var(--fs-sm); text-align: center;
}

/* Filters actions (mobile sidebar) */
.filters-actions {
    display: flex; gap: var(--space-10); padding: var(--space-16) var(--space-20);
    border-top: 1px solid #eee; flex-shrink: 0;
}
.btn-filter-reset {
    flex: 1; padding: var(--space-12); border: 1px solid #e0e0e0;
    border-radius: var(--radius); font-weight: 500; font-size: var(--fs-sm);
    transition: all var(--transition);
}
.btn-filter-reset:hover { border-color: var(--black); }
.btn-filter-apply {
    flex: 1; padding: var(--space-12); background: var(--black); color: var(--white);
    border-radius: var(--radius); font-weight: 600; font-size: var(--fs-sm);
    transition: background var(--transition);
}
.btn-filter-apply:hover { background: var(--accent); }

/* Fullscreen sidebar for filters */
.sidebar--full { width: 100vw; max-width: 100vw; }

/* Floating filter button (desktop) */
.filter-float {
    display: none; position: fixed; left: 20px;
    top: 50%; transform: translateY(-50%);
    z-index: 50; background: var(--white);
    border: 1px solid #e0e0e0; border-radius: var(--radius);
    padding: var(--space-10) var(--space-14); box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    cursor: pointer; transition: all var(--transition);
    flex-direction: column; align-items: center; gap: var(--space-4);
}
.filter-float:hover { border-color: var(--black); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.filter-float svg { width: 20px; height: 20px; }
.filter-float-label { font-size: var(--fs-xs); font-weight: 500; }
.filter-float-count {
    font-size: var(--fs-xs); font-weight: 700; color: var(--white);
    background: var(--accent); border-radius: 10px;
    padding: var(--space-1) var(--space-8); min-width: 18px; text-align: center; line-height: 1.4;
}
.filter-float.visible { display: flex; }

/* Mobile floating filter icon */
.filter-float-mobile {
    display: none; position: fixed; left: 12px;
    top: 55%; transform: translateY(-50%);
    z-index: 50; background: var(--white);
    border: 1px solid #e0e0e0; border-radius: 50%;
    width: 44px; height: 44px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    cursor: pointer; transition: all var(--transition);
    align-items: center; justify-content: center;
}
.filter-float-mobile svg { width: 18px; height: 18px; }
.filter-float-mobile .filter-float-count {
    position: absolute; top: -4px; right: -4px;
    font-size: 9px; padding: var(--space-1) var(--space-5); min-width: 16px;
}
.filter-float-mobile.visible { display: flex; }

@media (min-width: 768px) {
    .filter-float-mobile { display: none !important; }
}
@media (max-width: 767px) {
    .filter-float { display: none !important; }
}

/* ==============================
   PRODUCT CARD
   ============================== */
.products-grid {
    display: grid; grid-template-columns: 1fr; gap: var(--space-20);
    max-width: 100%; overflow: hidden;
}
.products-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }

.product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; transition: transform var(--transition); }
.product-card:hover { transform: translateY(-4px); }
.product-card--unavailable { opacity: .45; filter: grayscale(.6); }
.product-card--unavailable:hover { opacity: .65; filter: grayscale(.3); }
.product-unavailable-label {
    position: absolute; bottom: 8px; left: 8px; right: 8px; text-align: center;
    background: rgba(0,0,0,.65); color: #ccc; font-size: 11px; font-weight: 500;
    padding: var(--space-4) var(--space-10); border-radius: 6px; letter-spacing: .3px;
}
.product-card-img {
    position: relative; overflow: hidden; border-radius: var(--radius);
    background: var(--gray-bg); aspect-ratio: 3/4;
}
.product-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.product-card-img:hover img { transform: scale(1.03); }

.product-badges {
    position: absolute; top: 10px; left: 10px;
    display: flex; flex-direction: column; gap: var(--space-4);
}
.product-badge {
    display: inline-block; padding: var(--space-4) var(--space-10);
    color: var(--white); font-size: var(--fs-xs); font-weight: 600;
    border-radius: var(--radius-sm); line-height: 1.2;
}

.product-like {
    position: absolute; top: 10px; right: 10px;
    display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
    transition: all var(--transition);
}
.product-like-btn {
    width: 36px; height: 36px; background: rgba(255,255,255,0.9);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1); transition: all var(--transition);
}
.product-like-btn svg { width: 18px; height: 18px; stroke: var(--dark); }
.product-like-btn:hover { background: var(--white); transform: scale(1.1); }
.product-like.active .product-like-btn svg { fill: #d32f2f; stroke: #d32f2f; }
.product-like-count {
    font-size: 10px; color: var(--gray); font-weight: 500;
    background: rgba(255,255,255,0.85); border-radius: 8px;
    padding: 0 var(--space-5); line-height: 1.4; min-width: 16px; text-align: center;
}

/* Flying heart animation */
.flying-heart {
    position: fixed; z-index: 9999; pointer-events: none;
    transition: none;
}
.flying-heart svg {
    width: 20px; height: 20px; fill: #d32f2f; stroke: #d32f2f;
}
@keyframes flyHeart {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: .8; transform: scale(.6); }
    100% { opacity: 0; transform: scale(.3); }
}

.product-card-info { padding: var(--space-10) var(--space-2); }
.product-card-name {
    display: block; font-size: var(--fs-sm); font-weight: 500;
    line-height: 1.3; margin-bottom: var(--space-6);
    transition: color var(--transition);
}
.product-card-name:hover { color: var(--accent); }

.product-card-sizes {
    font-size: var(--fs-xs); color: var(--gray); margin-bottom: var(--space-6);
    overflow: hidden;  text-overflow: ellipsis;
}

.product-card-price { display: flex; align-items: baseline; gap: var(--space-8); }
.price-current { font-family: var(--font-price); font-weight: 600; font-size: var(--fs-lg); letter-spacing: .5px; }
.price-sale { color: #d32f2f; }
.price-old {
    font-family: var(--font-price); font-size: var(--fs-sm); color: var(--gray-light);
    text-decoration: line-through; font-weight: 500;
}

/* ===== Load more ===== */
.catalog-loadmore { text-align: center; padding: var(--space-32) 0 var(--space-10); }
.btn-loadmore {
    padding: var(--space-14) var(--space-48); border: 1px solid var(--black);
    border-radius: var(--radius); font-weight: 600; font-size: var(--fs-sm);
    transition: all var(--transition);
}
.btn-loadmore:hover { background: var(--black); color: var(--white); }

/* ==============================
   PRODUCT PAGE
   ============================== */
.product-page { padding-bottom: var(--space-40); }

.product-layout {
    display: grid; grid-template-columns: 1fr; gap: var(--space-24);
}
@media (min-width: 768px) {
    .product-layout { grid-template-columns: 1fr 1fr; gap: var(--space-40); }
}

/* Gallery */
.product-gallery { position: relative; }
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--gray-bg); }
@media (max-width: 767px) {
    /* Full-bleed carousel on mobile: breaks out of .container's side padding */
    .product-gallery { margin: 0 calc(-1 * var(--space-10)); }
    .carousel { border-radius: 0; }
}
.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
    width: 100%; flex-shrink: 0; aspect-ratio: 4/5;
    scroll-snap-align: start;
    position: relative;
}
.carousel-slide img, .carousel-slide video {
    width: 100%; height: 100%; object-fit: cover;
}
.carousel-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.2); transition: background var(--transition);
}
.carousel-play svg { width: 48px; height: 48px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.carousel-play:hover { background: rgba(0,0,0,0.35); }
.carousel-play.playing { display: none; }

.carousel-dots {
    display: flex; justify-content: center; gap: var(--space-8);align-items: baseline;
    padding: var(--space-12) 0; position: absolute; bottom: 0; left: 0; right: 0;
}
.carousel-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(0,0,0,0.2); transition: all var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.carousel-dot.active { background: var(--black); }
.carousel-dot.dot-video {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(0,0,0,0.3);
}
.carousel-dot.dot-video.active { background: var(--black); }
.carousel-dot.dot-video svg { width: 10px; height: 10px; fill: var(--white); }

/* Gallery actions */
.product-gallery-actions {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    display: flex; flex-direction: column; gap: var(--space-8);
}

.product-badges--page { position: absolute; top: 12px; left: 12px; z-index: 2; }

/* Rating summary */
.product-rating-summary {
    display: flex; align-items: center; gap: var(--space-6); margin-bottom: var(--space-8);
}
.rating-stars-inline { display: flex; gap: var(--space-2); }
.rating-stars-inline svg { width: 16px; height: 16px; }
.rating-number { font-weight: 700; font-size: var(--fs-sm); }
.rating-count { white-space: nowrap; }

/* Lowest price */
.product-lowest-price {
    display: inline-flex; align-items: center; gap: var(--space-6);
    background: #eaf7ec; color: #2e7d32; font-size: var(--fs-xs); font-weight: 600;
    padding: var(--space-6) var(--space-12); border-radius: var(--radius-sm); margin-bottom: var(--space-10);
}
.product-lowest-price svg { width: 14px; height: 14px; stroke: #2e7d32; }

/* Sale timer */
.product-timer {
    display: flex; align-items: center; gap: var(--space-6);
    background: #fff3e0; padding: var(--space-10) var(--space-14); border-radius: var(--radius-sm);
    margin-bottom: var(--space-12); font-size: var(--fs-sm);
}
.product-timer svg { width: 16px; height: 16px; stroke: var(--accent); flex-shrink: 0; }
.timer-label { color: var(--dark); font-weight: 500; }
.timer-digits { display: flex; gap: var(--space-4); align-items: center; }
.timer-block { display: flex; flex-direction: column; align-items: center; min-width: 36px; }
.timer-block b {
    font-family: var(--font-price); font-size: var(--fs-lg); font-weight: 700;
    color: var(--accent); line-height: 1;
}
.timer-block small { font-size: 9px; color: var(--gray); text-transform: uppercase; }
.timer-sep { font-weight: 700; color: var(--accent); font-size: var(--fs); line-height: 1; margin-top: -8px; }

/* Orders count */
.product-orders-count {
    display: flex; align-items: center; gap: var(--space-6);
    font-size: var(--fs-sm); color: var(--gray); margin-bottom: var(--space-12);
}
.product-orders-count svg { width: 16px; height: 16px; }
.product-orders-count b { color: var(--dark); }

/* ===== Why Us ===== */
.whyus-section { margin-top: var(--space-48); }
.whyus-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-16);
}
@media (min-width: 768px) { .whyus-grid { grid-template-columns: repeat(4, 1fr); } }
.whyus-card {
    text-align: center; padding: var(--space-24) var(--space-16);
    border: 1px solid #f0f0f0; border-radius: var(--radius);
    transition: box-shadow var(--transition), transform var(--transition);
}
.whyus-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-3px); }
.whyus-icon {
    width: 44px; height: 44px; margin: 0 auto var(--space-12);
    display: flex; align-items: center; justify-content: center;
    background: var(--gray-bg); border-radius: 50%;
}
.whyus-icon svg { width: 22px; height: 22px; }
.whyus-card h4 { font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--space-4); }
.whyus-card p { font-size: var(--fs-xs); color: var(--gray); line-height: 1.4; }

/* ===== Thank you page ===== */
.thankyou-page { padding: var(--space-60) 0; }
.thankyou-box {
    text-align: center; max-width: 480px; margin: 0 auto;
    padding: var(--space-48) var(--space-24);
}
.thankyou-box svg { width: 64px; height: 64px; margin-bottom: var(--space-20); }
.thankyou-box h1 { font-size: var(--fs-xl); margin-bottom: var(--space-12); }
.thankyou-order { font-size: var(--fs); margin-bottom: var(--space-8); }
.thankyou-text { font-size: var(--fs-sm); color: var(--gray); margin-bottom: var(--space-28); line-height: 1.6; }
.thankyou-btn { max-width: 280px; margin: 0 auto; display: block; }

/* Product info */
.product-title { font-size: var(--fs-xl); font-weight: 700; line-height: 1.3; margin-bottom: var(--space-4); }
.product-sku { margin-bottom: var(--space-16); }

.product-price-block {
    display: flex; align-items: baseline; gap: var(--space-10);
    margin-bottom: var(--space-12);
}
.product-price-block .price-current { font-size: 26px; }
.product-price-block .price-old { font-size: var(--fs); }

.product-status {
    display: flex; align-items: center; gap: var(--space-6);
    font-size: var(--fs-sm); font-weight: 500; margin-bottom: var(--space-20);
}
.product-status-dot { width: 8px; height: 8px; border-radius: 50%; }
.product-status--in_stock .product-status-dot { background: #388e3c; }
.product-status--in_stock { color: #388e3c; }
.product-status--out_of_stock .product-status-dot { background: #d32f2f; }
.product-status--out_of_stock { color: #d32f2f; }
.product-status--limited .product-status-dot { background: var(--accent); }
.product-status--limited { color: var(--accent); }

/* Options */
.product-option { margin-bottom: var(--space-16); }
.product-option-label { display: block; font-size: var(--fs-sm); font-weight: 500; margin-bottom: var(--space-8); color: var(--gray); }

.product-colors { display: flex; gap: var(--space-8); }
.product-color-btn {
    width: 56px; height: 72px; border-radius: var(--radius-sm);
    border: 2px solid transparent; cursor: pointer;
    overflow: hidden; padding: 0;
    transition: border var(--transition);
}
.product-color-btn img { width: 100%; height: 100%; object-fit: cover; }
.product-color-btn.active { border-color: var(--black); }
.product-color-btn:hover { border-color: var(--gray); }

.product-sizes { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.product-size-btn {
    min-width: 44px; height: 50px; padding: 0 var(--space-12);
    border: 1px solid #e0e0e0; border-radius: var(--radius-sm);
    font-size: var(--fs-sm); font-weight: 500;
    transition: all var(--transition);
}
.product-size-btn:hover { border-color: var(--black); }
.product-size-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* Buy button */
.btn-buy {
    display: block; width: 100%; padding: var(--space-16);
    background: var(--accent); color: var(--white);
    font-weight: 700; font-size: var(--fs); letter-spacing: .3px;
    border-radius: var(--radius); text-align: center;
    transition: background var(--transition);
    margin-bottom: var(--space-24);
}
.btn-buy:hover { background: var(--accent-hover); }
.btn-buy.reveal { transition: opacity var(--reveal-duration) var(--reveal-ease), transform var(--reveal-duration) var(--reveal-ease), background var(--transition); }

/* Accordions */
.product-accordions { border-top: 1px solid #eee; }
.accordion { border-bottom: 1px solid #eee; }
.accordion-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-16) 0; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: color var(--transition); width: 100%;
}
.accordion-header:hover { color: var(--accent); }
.accordion-header span { display: flex; align-items: center; gap: var(--space-12); }
.accordion-header span svg { width: 18px; height: 18px; }
.accordion-arrow { width: 14px; height: 14px; transition: transform var(--transition); flex-shrink: 0; }
.accordion.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {text-align: justify;
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    font-size: var(--fs-sm); line-height: 1.7; color: var(--dark);
}
.accordion.open .accordion-body { max-height: 600px;    padding: var(--space-24); padding-top: var(--space-12); }
.accordion-body p { margin-bottom: var(--space-8); }

/* Product specs — filters this product belongs to, always visible (not collapsed) */
.product-specs { padding: var(--space-16) 0; border-bottom: 1px solid #eee; }
.product-specs-title {
    display: flex; align-items: center; gap: var(--space-12);
    font-size: 14px; font-weight: 600; margin-bottom: var(--space-12);
}
.product-specs-title svg { width: 18px; height: 18px; }
.product-specs-table { padding: var(--space-6) var(--space-20);width: 100%;  }
.product-specs-table tr { border-top: 1px solid #e41919; }
.product-specs-table th {
    text-align: left; font-weight: 400; color: var(--gray);
    font-size: var(--fs-sm); padding: var(--space-8) var(--space-16) var(--space-8) 0;
    vertical-align: top; white-space: nowrap; width: 1%;
}
.product-specs-table td { padding: var(--space-8) 0;     background: var(--gray-bg); }
.spec-chip {
    display: inline-flex; align-items: center; gap: var(--space-4);
    background: var(--gray-bg); color: var(--dark);
    border-radius: var(--radius-sm); padding: var(--space-2) var(--space-10);
    font-size: var(--fs-xs); margin: var(--space-2) var(--space-6) var(--space-2) 0;
}
.spec-chip-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); flex-shrink: 0; }

/* ===== Reviews ===== */
.reviews-section { margin-top: var(--space-48); }
.section-title {
    font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--space-20);
    padding-bottom: var(--space-12); border-bottom: 1px solid #eee;
}
.reviews-list { display: flex; flex-direction: column; gap: var(--space-20); margin-bottom: var(--space-32); }
.review-item { padding-bottom: var(--space-20); border-bottom: 1px solid #f0f0f0; }
.review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.review-name { font-weight: 600; font-size: var(--fs-sm); }
.review-stars { display: flex; gap: var(--space-2); margin-bottom: var(--space-8); }
.review-stars svg { width: 16px; height: 16px; }
.review-text { font-size: var(--fs-sm); line-height: 1.6; color: var(--dark); }
.review-photo { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; margin-top: var(--space-10); }

/* Review manager reply */
.review-reply {
    margin-top: var(--space-12); padding: var(--space-12) var(--space-14);
    background: var(--gray-bg); border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}
.review-reply-header {
    display: flex; align-items: center; gap: var(--space-6);
    margin-bottom: var(--space-6); font-size: var(--fs-xs);
}
.review-reply-header svg { width: 14px; height: 14px; stroke: var(--accent); flex-shrink: 0; }
.review-reply-header strong { font-size: var(--fs-xs); color: var(--dark); }
.review-reply-text { font-size: var(--fs-sm); color: var(--dark); line-height: 1.5; }

/* Review form */
.review-form { background: var(--gray-bg); border-radius: var(--radius); padding: var(--space-24); }
.review-form h3 { font-size: var(--fs); font-weight: 600; margin-bottom: var(--space-16); }
.review-input { margin-bottom: var(--space-12); }
.review-stars-input { display: flex; gap: var(--space-4); margin-bottom: var(--space-12); }
.star-input svg { width: 24px; height: 24px; transition: all var(--transition); cursor: pointer; }
.star-input.active svg { fill: #e8732a; stroke: #e8732a; }
.review-photo-upload {
    display: inline-flex; align-items: center; gap: var(--space-8);
    padding: var(--space-10) var(--space-16); border: 1px dashed var(--gray-light);
    border-radius: var(--radius); cursor: pointer; font-size: var(--fs-sm);
    color: var(--gray); transition: all var(--transition); margin-bottom: var(--space-14);
}
.review-photo-upload:hover { border-color: var(--accent); color: var(--accent); }
.review-photo-upload svg { width: 18px; height: 18px; }
.btn-review-submit { max-width: 200px; padding: var(--space-12); font-size: var(--fs-sm); }

/* Review notification */
.review-notification {
    display: flex; align-items: center; gap: var(--space-8);
    padding: var(--space-12) var(--space-14); margin-top: var(--space-12);
    background: #eaf7ec; border-radius: var(--radius-sm);
    font-size: var(--fs-sm); color: #2e7d32;
}
.review-notification svg { width: 20px; height: 20px; flex-shrink: 0; }
.review-notification.error { background: var(--red-light); color: #d32f2f; }
.review-notification.error svg { stroke: #d32f2f; }

/* ===== Recently viewed ===== */
.viewed-section { margin-top: var(--space-48); }
.viewed-scroll {
    display: flex; gap: var(--space-14); overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-10);
}
.viewed-scroll::-webkit-scrollbar { height: 3px; }
.viewed-scroll::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 2px; }
.viewed-card {
    flex: 0 0 160px; scroll-snap-align: start;
    transition: opacity var(--transition);
}
.viewed-card:hover { opacity: .85; }
.viewed-card-img {
    aspect-ratio: 4/5; border-radius: var(--radius-sm);
    overflow: hidden; background: var(--gray-bg); margin-bottom: var(--space-8);
}
.viewed-card-img img { width: 100%; height: 100%; object-fit: cover; }
.viewed-card-name { font-size: var(--fs-xs); font-weight: 500; line-height: 1.3; margin-bottom: var(--space-4); }
.viewed-card .price-current { font-size: var(--fs-sm); }

@media (min-width: 768px) {
    .viewed-card { flex: 0 0 200px; }
}

/* ==============================
   CATALOG RESPONSIVE
   ============================== */
@media (min-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
    .products-grid.grid-1 { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid.grid-2 { grid-template-columns: repeat(3, 1fr); }
    .products-grid.grid-1 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .catalog-layout { grid-template-columns: 1fr; gap: 0; }
    .catalog-filters { display: none; }
    .catalog-toolbar-left { display: flex; }
    .filter-toggle-btn { display: flex; }
    .catalog-sort select { min-width: auto; }
    .products-grid { grid-template-columns: 1fr; gap: var(--space-16); }
    .products-grid.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
    .products-grid.grid-2 .product-card-img { aspect-ratio: 3/4; }
    .products-grid.grid-2 .product-card-name { font-size: var(--fs-xs); line-height: 1.3; }
    .products-grid.grid-2 .price-current { font-size: var(--fs-sm); }
    .products-grid.grid-2 .price-old { font-size: var(--fs-xs); }
    .products-grid.grid-2 .product-badges { gap: var(--space-4); }
    .products-grid.grid-2 .product-badge { font-size: 9px; padding: var(--space-2) var(--space-5); }
    .products-grid.grid-2 .product-like-count { font-size: var(--fs-xs); }
    .filters-desktop-actions { display: none; }
    /* Cart fullscreen on mobile */
    #sidebar-cart { width: 100vw; max-width: 100vw; }
}

@media (max-width: 600px) {
    :root { --header-h: 48px; }
    .header-logo { font-size: var(--fs-lg); }
    .header-btn { width: 34px; height: 34px; }
    .header-btn svg { width: 23px; height: 23px; }
}

/* ===== CAROUSEL ARROWS ===== */
.carousel { position: relative; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(255,255,255,0.85); backdrop-filter: blur(4px); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.12); transition: background .2s, opacity .2s; opacity: 0.7; }
.carousel-arrow:hover { background: #fff; opacity: 1; }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow--prev { left: 10px; }
.carousel-arrow--next { right: 10px; }
@media (max-width: 767px) { .carousel-arrow { width: 34px; height: 34px; } .carousel-arrow svg { width: 16px; height: 16px; } .carousel-arrow--prev { left: 6px; } .carousel-arrow--next { right: 6px; } }

/* ===== CUSTOM VIDEO PLAYER ===== */
.video-wrapper { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #000; overflow: hidden; }
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; display: none; }
.video-wrapper.playing video, .video-wrapper video[src] { display: block; }
.video-poster { width: 100%; height: 100%; object-fit: cover; }
.video-play-big { position: absolute; z-index: 3; width: 60px; height: 60px; border: none; border-radius: 50%; background: rgba(0,0,0,0.5); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video-play-big svg { width: 28px; height: 28px; }
.video-play-big:hover { background: rgba(0,0,0,0.7); }
.video-wrapper.playing .video-poster, .video-wrapper.playing .video-play-big { display: none; }

.video-controls { position: absolute; bottom: 0; left: 0; right: 0; z-index: 4; display: flex; align-items: center; gap: var(--space-8); padding: var(--space-8) var(--space-12); background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; opacity: 0; transition: opacity .3s; }
.video-wrapper:hover .video-controls, .video-wrapper.playing .video-controls { opacity: 1; }
.vc-btn { background: none; border: none; color: #fff; cursor: pointer; width: 28px; height: 28px; padding: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vc-btn svg { width: 18px; height: 18px; }
.vc-progress { flex: 1; height: 4px; background: rgba(255,255,255,0.3); border-radius: 2px; cursor: pointer; position: relative; }
.vc-progress-bar { height: 100%; background: var(--accent); border-radius: 2px; width: 0; transition: width .1s; }
.vc-time { font-size: 11px; white-space: nowrap; min-width: 75px; text-align: center; }
.vc-volume { display: flex; align-items: center; gap: var(--space-4); }
.vc-vol-slider { width: 60px; height: 4px; -webkit-appearance: none; appearance: none; background: rgba(255,255,255,0.3); border-radius: 2px; outline: none; cursor: pointer; }
.vc-vol-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; cursor: pointer; }
@media (max-width: 767px) { .vc-volume { display: none; } .vc-time { font-size: 10px; min-width: 60px; } }

/* ===== FILTER SELECTED TAGS ===== */
.filter-selected { padding: 0 0 var(--space-12); }
.filter-selected-tags { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.filter-tag { display: inline-flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-10); font-size: var(--fs-xs); border: 1px solid var(--border); border-radius: 20px; background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s; }
.filter-tag:hover { border-color: var(--red); background: var(--red-light, #fdecea); }
.filter-tag svg { width: 12px; height: 12px; }
.filter-btn-pulse { animation: filterPulse .4s ease; }
@keyframes filterPulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* ===== RESULTS COUNT ===== */
.catalog-results-count { margin-bottom: var(--space-12); color: var(--muted); }

/* ===== COLOR SWATCH (when no image) ===== */
.color-swatch { display: block; width: 100%; height: 100%; border-radius: 6px; border: 1px solid var(--border); }

/* ===== FILTER TOOLBAR BADGE ===== */
.filter-toggle-btn { position: relative; }
.filter-toolbar-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--accent); color: var(--white);
    font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px; line-height: 18px;
    text-align: center; border-radius: 10px;
    padding: 0 var(--space-5);
}