:root {
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Преміальна палітра */
    --color-bg-main: #fcfaf8; 
    --color-bg-card: #fdfaf6; 
    --color-text-main: #3d3530; 
    --color-text-muted: #8c827a; 
    --color-border: #e6dfd8; 
    --color-bg-light: #f5f0eb; 

    /* Головний акцентний колір */
    --color-brand: #4a3f35; 
    --color-brand-hover: #332b24;

    /* Кольори статусів */
    --color-sale: #8f5c54; 
    --color-sale-bg: #f7eceb;

    --color-stock-bg: #edf2ed;
    --color-stock-text: #405c44;
    --color-stock-border: #d4e0d6;

    --color-out-bg: #fcebeb;
    --color-out-text: #8a4f4f;
    --color-out-border: #f0d5d5;

    /* ШРИФТИ: Ідеальна пара для Fashion UI */
    --font-logo: 'GFS Didot', serif; /* Для лого та заголовків */
    --font-main: 'Montserrat', sans-serif; /* Для кнопок, цифр, описів */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    font-weight: 500;
    font-size: 15px; 
}

/* ЗАГОЛОВКИ (GFS Didot) */
h1, h2, h3, h4, h5, h6, .drawer-title, .welcome-title, .card-brand, .premium-action-btn {
    font-family: var(--font-logo);
    font-weight: 400; /* GFS Didot має лише товщину 400 */
    letter-spacing: 0.5px;
}

/* Виключення для Логотипу */
.brand-logo, .welcome-main-logo {
    font-family: var(--font-logo);
    font-weight: 400;
}

.layout {
    display: flex;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
}

button, input, select {
    font-family: var(--font-main); 
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   МЕНЮ-ШТОРКИ (ЛІВЕ ТА ПРАВЕ)
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(43, 36, 31, 0.5); 
    z-index: 9000;
    transition: opacity 0.3s ease;
}

.drawer-left, .drawer-right, .drawer-cart {
    position: fixed;
    top: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--color-bg-main); 
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 9001;
    display: flex;
    flex-direction: column;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-overflow-scrolling: touch;
}

.drawer-left {
    left: -100%;
    width: 330px;
    max-width: 85vw;
    border-right: 1px solid var(--color-border);
    box-shadow: 4px 0 20px rgba(61, 53, 48, 0.08);
}

.drawer-left.open { left: 0; }

.drawer-right {
    right: -100%;
    width: 320px;
    max-width: 85vw;
    border-left: 1px solid var(--color-border);
    box-shadow: -4px 0 20px rgba(61, 53, 48, 0.08);
}

.drawer-right.open { right: 0; }

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: var(--color-bg-main);
    z-index: 2;
}

.drawer-title {
    font-size: 1.3rem;
}

.drawer-close-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.drawer-content {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.drawer-section-title {
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-main);
    margin-bottom: 0.8rem;
    text-align: center;
}

.cat-nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cat-item {
    font-family: var(--font-main);
    padding: 0.7rem 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
    transition: all 0.2s ease;
}

.cat-item:hover {
    background: var(--color-bg-light);
}

.cat-item.active {
    background: var(--color-brand) !important;
    color: var(--color-white) !important;
    box-shadow: 0 2px 8px rgba(74, 63, 53, 0.25);
}

.info-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.6rem;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
    color: var(--color-text-main); 
}

.social-btn svg {
    flex-shrink: 0;
}

.social-btn:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
    transform: translateY(-1px);
}

.contacts-center-box {
    align-items: center;
    text-align: center;
}

.contacts-address {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.4;
    text-align: center;
}

.address-muted {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.contacts-time {
    color: var(--color-text-muted);
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.map-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.2s ease;
    width: fit-content;
    margin: 0.2rem auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.map-link-btn:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
    transform: translateY(-1px);
}

.sidebar-phones {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--color-border);
    width: 100%;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-main);
    font-size: 1rem;
    font-weight: 600;
}

.contact-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* --- ФІЛЬТРИ --- */
.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.filter-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-label {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-count-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.filter-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    user-select: none;
}

.filter-checkbox-row input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-brand);
    cursor: pointer;
}

/* Мульти-вибір чіпси */
.filter-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
}

.filter-chip {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1.2;
}

.filter-chip:hover {
    border-color: var(--color-text-muted);
}

.filter-chip.active {
    background: var(--color-text-main);
    border-color: var(--color-text-main);
    color: var(--color-white);
    box-shadow: 0 2px 6px rgba(74, 63, 53, 0.25);
}

/* Повзунок ціни */
.sidebar-price-box {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.sidebar-price-values {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-align: center;
}

.dual-range-wrapper {
    position: relative;
    width: 100%;
    height: 24px;
    display: flex;
    align-items: center;
}

.range-track {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: #dfd8d2; 
    border-radius: 2px;
    z-index: 1;
}

.range-highlight {
    position: absolute;
    height: 4px;
    background: var(--color-brand);
    border-radius: 2px;
    z-index: 2;
}

.range-slider-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.range-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-brand);
    border: 2px solid var(--color-white);
    box-shadow: 0 1px 4px rgba(74, 63, 53, 0.4);
    cursor: pointer;
    pointer-events: auto;
}

.range-slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-brand);
    border: 2px solid var(--color-white);
    box-shadow: 0 1px 4px rgba(74, 63, 53, 0.4);
    cursor: pointer;
    pointer-events: auto;
}

.sidebar-reset-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1.5px solid var(--color-border);
    background-color: var(--color-white);
    color: var(--color-text-main);
    font-size: 0.9rem;
    font-weight: 600; 
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar-reset-btn:hover {
    background-color: var(--color-bg-light);
    border-color: var(--color-text-muted);
}

.sidebar-reset-btn:active {
    transform: scale(0.98);
}

.apply-btn {
    font-family: var(--font-main);
    width: 100%;
    padding: 0.85rem;
    background: var(--color-brand) !important;
    color: var(--color-white) !important;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 0.2rem;
    box-shadow: 0 3px 10px rgba(74, 63, 53, 0.25);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.apply-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* ==========================================================================
   ПЛАВАЮЧИЙ ГРАДІЄНТНИЙ ХЕДЕР ТА НАВІГАЦІЯ
   ========================================================================== */
.catalog-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.floating-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
    background: linear-gradient(to bottom,
            rgba(252, 250, 248, 0.98) 0%,
            rgba(252, 250, 248, 0.85) 60%,
            rgba(252, 250, 248, 0) 100%);
    padding: 0.8rem 1.2rem 2.2rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.floating-header * {
    pointer-events: auto;
}

.header-left,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-right {
    justify-content: flex-end;
}

.header-center {
    flex: 1.4;
    text-align: center;
}

.brand-logo {
    font-size: 2.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-text-main);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
    user-select: none;
}

.nav-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Збільшений відступ між іконкою та текстом */
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 10px 24px; /* Робимо кнопку відчутно більшою */
    border-radius: 25px;
    font-size: 1.05rem; /* Збільшуємо шрифт */
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(61, 53, 48, 0.06);
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Примусово збільшуємо іконки всередині кнопок на десктопі */
.nav-pill-btn svg {
    width: 18px;
    height: 18px;
}

.nav-pill-btn:hover {
    border-color: var(--color-text-muted);
}

.filter-counter {
    background: var(--color-brand);
    color: var(--color-white);
    font-size: 0.9rem; /* Трохи більша цифра лічильника */
    font-weight: 700;
    border-radius: 12px;
    padding: 2px 8px;
    line-height: 1.2;
}

/* ==========================================================================
   ВІТАЛЬНЕ МОДАЛЬНЕ ВІКНО (ВІЗИТКА)
   ========================================================================== */
.welcome-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(43, 36, 31, 0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.welcome-modal-card {
    background: var(--color-bg-card);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    border-radius: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(15px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.welcome-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #000; 
}

.welcome-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.welcome-logo-overlay {
    display: none; 
}

.welcome-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
    color: var(--color-text-main);
}

.welcome-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.premium-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.premium-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
}

.center-item {
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}

.premium-icon {
    color: var(--color-text-muted);
}

.large-icon {
    transform: scale(1.2);
}

.premium-info-text {
    font-size: 0.85rem;
    font-weight: 500; 
    color: var(--color-text-main);
    line-height: 1.3;
}

.premium-stat-box {
    background: var(--color-bg-light);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.premium-address-box {
    background: var(--color-bg-light);
    border-radius: 8px;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    justify-content: center; 
}

.address-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center; 
}

.address-muted {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.address-bold {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-align: center;
}

.premium-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    width: fit-content;
    transition: all 0.2s ease;
}

.premium-map-btn:hover {
    border-color: var(--color-text-muted);
}

.premium-contacts-box {
    background: var(--color-bg-light);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-person {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    gap: 0.2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 1rem;
}

.contact-name {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.premium-guide-box {
    background: var(--color-bg-light);
    border-radius: 8px;
    padding: 0.9rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-main);
    line-height: 1.4;
}

.hanger-icon {
    padding-left: 0.5rem;
}

.premium-action-btn {
    background: var(--color-brand) !important;
    color: var(--color-white) !important;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.15rem; 
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.2s ease;
}

.premium-action-btn:hover {
    opacity: 0.95;
}

/* ==========================================================================
   MAIN GRID & CARDS
   ========================================================================== */
.catalog-container {
    flex: 1;
    min-height: 0;
    padding: 4.8rem 2rem 2rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem 1.5rem;
    align-items: stretch;
}

.card {
    background: 0 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    position: relative;
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: var(--color-bg-light);
    cursor: zoom-in;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px; 
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: opacity 0.3s ease;
}

.card-img:hover {
    opacity: 0.9;
}

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-sale);
    color: var(--color-white);
    padding: 5px 9px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.sku-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 0.2rem;
}

.card-sku {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600; 
    cursor: pointer;
    background: var(--color-bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.card-sku:hover {
    background: var(--color-border);
    color: var(--color-text-main);
}

.card-brand {
    font-size: 1.4rem;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.25;
    margin-top: 0.2rem;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-muted);
    margin-top: 0.1rem;
}

.price-block {
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 2.2rem;
    justify-content: center;
}

.price-usd-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.price-main {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text-main);
}

.price-main.price-discount {
    color: var(--color-sale);
}

.price-strike {
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

.discount-badge {
    background: var(--color-sale-bg);
    color: var(--color-sale);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.price-uah-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-uah-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.price-uah-strike {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.price-pending {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    line-height: 1.3;
}

.var-group {
    margin-top: 0.35rem;
}

.var-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.var-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.var-badge {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-main);
}

.var-badge.out-stock {
    background: var(--color-bg-main);
    color: var(--color-text-muted);
    border-color: transparent;
    text-decoration: line-through;
}

.variations-wrapper {
    margin-bottom: 1.2rem;
}

/* Кнопки вибору розміру у модалці */
.size-picker-btn {
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-main);
    border-radius: 8px;
    padding: 10px 18px;
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.size-picker-btn:hover {
    border-color: var(--color-text-main);
    color: var(--color-text-main);
}

/* Кнопка корзини (неактивна) */
.add-to-cart-btn:disabled {
    background-color: var(--color-bg-light) !important;
    color: var(--color-text-muted) !important;
    border-color: var(--color-border) !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.add-to-cart-btn:disabled:hover {
    transform: none !important;
}

/* ==========================================================================
   UTILITIES & LIGHTBOX
   ========================================================================== */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    color: var(--color-text-muted);
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(252, 250, 248, 0.98);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-bg-light);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-text-main);
    color: var(--color-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 50;
    border: none;
    transition: transform 0.3s ease, background 0.2s ease;
}

.scroll-top-btn:hover {
    background: var(--color-brand);
    transform: translateY(-3px);
}

/* ==========================================================================
   КОРЗИНА (CART)
   ========================================================================== */
.cart-floating-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--color-text-main);
    color: var(--color-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(61, 53, 48, 0.3);
    cursor: pointer;
    z-index: 50;
    border: none;
    transition: transform 0.3s ease, background 0.2s ease;
}

.cart-floating-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--color-brand);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg-main);
}

.drawer-cart {
    right: -100%;
    width: 400px;
    max-width: 90vw;
    border-left: 1px solid var(--color-border);
    box-shadow: -4px 0 20px rgba(61, 53, 48, 0.15);
}

.drawer-cart.open { right: 0; }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.cart-item-img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--color-bg-light);
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.3;
}

.cart-item-sku {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.cart-item-price-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-price-old {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: line-through;
    line-height: 1;
    margin-bottom: 2px;
}

.cart-item-price.sale-color {
    color: var(--color-sale);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-bg-light);
    border-radius: 20px;
    padding: 2px 4px;
}

.qty-btn {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text-main);
}

.qty-btn:hover {
    border-color: var(--color-text-muted);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
}

.remove-btn:hover {
    text-decoration: underline;
}

.cart-footer {
    padding: 1.4rem;
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.6rem;
    background: var(--color-white);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: auto;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    background: var(--color-bg-light);
    border-color: var(--color-text-muted);
}

.add-to-cart-btn.in-cart {
    background: var(--color-brand) !important;
    color: var(--color-white) !important;
    border-color: var(--color-brand) !important;
}

.add-to-cart-btn.in-cart:hover {
    background: var(--color-brand-hover) !important;
    border-color: var(--color-brand-hover) !important;
}

.continue-btn {
    width: 100%;
    padding: 0.6rem;
    background: var(--color-white);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.continue-btn:hover {
    border-color: var(--color-text-muted);
}

.clear-cart-btn {
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    color: var(--color-text-muted);
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.4rem;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.clear-cart-btn:hover {
    color: var(--color-text-main);
}

.empty-cart {
    text-align: center;
    color: var(--color-text-muted);
    margin-top: 2rem;
}

/* ==========================================================================
   СПОВІЩЕННЯ ТА МОДАЛЬНІ ВІКНА (TOAST & CONFIRM)
   ========================================================================== */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--color-text-main);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 9999999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    white-space: nowrap;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(43, 36, 31, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.confirm-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.confirm-modal-card {
    background: var(--color-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: all 0.2s ease;
}

.confirm-modal-overlay.show .confirm-modal-card {
    transform: scale(1);
}

.confirm-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.confirm-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.confirm-btn {
    flex: 1;
    padding: 0.7rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.confirm-btn.cancel {
    background: var(--color-white);
    color: var(--color-text-main);
    border-color: var(--color-border);
}

.confirm-btn.cancel:hover {
    border-color: var(--color-text-muted);
}

.confirm-btn.danger {
    background: var(--color-text-main);
    color: var(--color-white);
}

.confirm-btn.danger:hover {
    background: var(--color-black);
}

/* ==========================================================================
   TOOLTIP (ДОВІДКА ДЛЯ ФІЛЬТРІВ)
   ========================================================================== */
.tooltip-wrapper {
    /* ПРИБРАНО position: relative; тепер вікно орієнтується на ширину всієї панелі */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.tooltip-wrapper:hover {
    color: var(--color-brand);
}

.tooltip-content {
    position: absolute;
    top: calc(100% + 5px); /* Трохи нижче хедера */
    left: 1rem;  /* Безпечний відступ від лівого краю сайдбару */
    right: 1rem; /* Безпечний відступ від правого краю сайдбару */
    width: auto; /* Автоматично заповнює доступну ширину без обрізань */
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-text-main);
    box-shadow: 0 4px 15px rgba(61, 53, 48, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: none; 
}

.tooltip-content.show {
    opacity: 1;
    visibility: visible;
}

/* Стрілочка (куточок), що вказує на іконку */
.tooltip-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 80px; /* Вказує рівно на іконку "і" з урахуванням відступів */
    width: 10px;
    height: 10px;
    background: var(--color-white);
    border-left: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    transform: rotate(45deg);
}

.tooltip-content b {
    font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .brand-logo {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .nav-pill-btn {
        padding: 6px 12px; /* Повертаємо компактні відступи */
        font-size: 0.85rem; /* Повертаємо дрібний шрифт */
        gap: 4px;
    }

    /* Повертаємо маленькі іконки на мобільному */
    .nav-pill-btn svg {
        width: 14px;
        height: 14px;
    }

    /* Зменшуємо лічильник фільтрів на мобільному */
    .filter-counter {
        font-size: 0.75rem;
        padding: 1px 6px;
    }

    .floating-header {
        padding: 0.6rem 0.6rem 1.8rem 0.6rem;
    }

    .catalog-container {
        padding: 3.8rem 0.5rem 1rem 0.5rem;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 0.5rem;
    }

    .card-brand {
        font-size: 1.15rem;
    }

    .card-title {
        font-size: 0.9rem;
        line-height: 1.25;
    }

    .price-main {
        font-size: 1.3rem;
    }

    .price-strike {
        font-size: 1rem;
    }

    .price-uah-main {
        font-size: 1.15rem;
    }

    .price-uah-strike {
        font-size: 0.95rem;
    }

    .var-badge {
        font-size: 0.8rem;
        padding: 3px 5px;
    }

    .sale-badge {
        font-size: 0.75rem;
        top: 6px;
        left: 6px;
        padding: 3px 6px;
    }

    .cart-floating-btn {
        bottom: 1rem;
        left: 1rem;
        width: 50px;
        height: 50px;
    }

    .toast-notification {
        top: 15px;
        width: 90%;
        font-size: 0.95rem;
    }
}