/* --- СУЧАСНІ CSS ЗМІННІ (THEME MANAGEMENT) --- */
:root {
    --bg-color: #f7f5f0;
    --text-dark: #1a1a1a;
    --text-muted: #7a7a7a;
    --accent: #c49a6c;
    --accent-light: rgba(196, 154, 108, 0.1);
    --white: #ffffff;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    /* Shadows & Transitions */
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
    --radius-lg: 32px;
    --radius-md: 16px;
}

/* --- RESET & BASE --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Кастомний курсор */
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 40px; 
}

/* --- КУРСОР (ОПТИМІЗАЦІЯ) --- */
.cursor {
    width: 8px; height: 8px; background: var(--text-dark);
    border-radius: 50%; position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
}
.cursor-follower {
    width: 30px; height: 30px; border: 1.5px solid var(--text-dark);
    border-radius: 50%; position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9998; transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s;
}
.cursor-follower.active {
    width: 60px; height: 60px; background: var(--accent-light); border-color: var(--accent);
}

/* --- PRELOADER --- */
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color); z-index: 10000;
    display: flex; justify-content: center; align-items: center;
}
.preloader-text { font-size: 3rem; font-weight: 800; letter-spacing: 12px; color: var(--accent); }

/* --- HEADER --- */
.header { 
    padding: 10px 0; 
    position: absolute; 
    width: 100%; 
    z-index: 100; 
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 26px; font-weight: 800; letter-spacing: 2px; }
.btn-nav { 
    text-decoration: none; color: var(--text-dark); 
    font-weight: 700; text-transform: uppercase; font-size: 13px; 
}

/* --- HERO SECTION & SLIDER --- */
#hero { 
    position: relative;
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
}

.hero-slider { width: 100%; }

.hero-slide-item {
    display: flex !important;
    align-items: center;
    padding: 40px 0;
}

.hero-grid { 
    display: grid; 
    grid-template-columns: 0.8fr 1.2fr; 
    gap: 60px; 
    align-items: start;
}

.hero-title { 
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    font-weight: 800; 
    line-height: 1.05; 
    margin-bottom: 25px; 
    text-transform: uppercase;
    will-change: transform, opacity;
}
.hero-title span { color: var(--accent); font-weight: 300; font-style: italic; text-transform: lowercase; }

.hero-subtitle { 
    font-size: 1.15rem; color: var(--text-muted); 
    margin-bottom: 40px; max-width: 450px; 
    will-change: transform, opacity;
}

.product-label {
    padding-bottom: 10px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 20px; border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    max-width: 420px;
}

.price-wrap { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.old-price { text-decoration: line-through; color: #bbb; font-size: 1.3rem; }
.new-price { font-size: 2.8rem; font-weight: 800; }

.btn-primary {
    display: block; width: 100%; text-align: center; padding: 20px;
    background: var(--text-dark); color: var(--white); text-decoration: none;
    border-radius: var(--radius-md); font-weight: 700; transition: 0.3s;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-3px); }

.btn-secondary {
    display: inline-block; padding: 16px 32px; 
    background: var(--accent); color: var(--white); text-decoration: none;
    border: none; border-radius: var(--radius-md); font-weight: 600;
    font-size: 14px; cursor: pointer; transition: 0.3s;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-secondary:hover { background: var(--text-dark); transform: translateY(-3px); }

.table-footer {
    margin-top: 30px; text-align: center; padding-top: 30px;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

/* Image Container (Fix Spacing) */
.hero-image-wrap { 
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    box-shadow: var(--card-shadow);
}
.parallax-img { 
    width: 100%; height: 120%; 
    object-fit: cover; 
    will-change: transform;
}

/* --- ДИНАМІЧНА ТАБЛИЦЯ --- */
.section-padding { padding: 40px 0; }

.shapes-selector {
    display: flex; justify-content: center; gap: 30px;
}
.shape-item { 
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    text-align: center; opacity: 0.4; 
    transition: 0.4s var(--ease-out); 
}
.shape-item.active { opacity: 1; transform: scale(1.1); }

.shape-icon {
    width: 110px; height: 110px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; border-radius: 24px; margin-bottom: 15px;

}

.shape-img {
    width: 50%;
    height: 50%;
    object-fit: contain;
    display: block;
}

.sizes-table-wrap {
    overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 18px; color: var(--accent); font-weight: 800; border-bottom: 2px solid var(--bg-color); font-size: 14px; }
td { padding: 18px; border-bottom: 1px solid var(--bg-color); font-size: 14px; }



/* --- HERO SECTION (Оптимізація) --- */
#hero { 
    position: relative;
    padding-top: 40px; 
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    min-height: auto; /* Секція стає "резиновою" */
}

.hero-grid { 
    display: grid; 
    grid-template-columns: 1.1fr 1fr; 
    gap: 40px; 
    align-items: center; 
    width: 100%; 
}

/* --- HERO IMAGE WRAP (Чистий квадрат) --- */
.hero-image-wrap { 
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Завжди квадрат */
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    background: var(--white); /* Фон на випадок завантаження */
    box-shadow: var(--card-shadow);
}

.parallax-img { 
    width: 100%; 
    height: 100%; /* Прибрано 120% для уникнення стрибків */
    object-fit: cover; 
    display: block;
    will-change: opacity; /* Залишаємо тільки для плавності фейду */
}



.section-title { 
    font-size: 40px;
    line-height: 1.05; 
    margin-bottom: 40px; 
    text-transform: uppercase;
    text-align: center;
}

.section-desc { 
    font-size: 1.15rem; 
    color: var(--text-muted); 
    margin-bottom: 40px;
    margin-top: 40px; 
    max-width: 1200px; 
    text-align: center; margin-left: auto; margin-right: auto;
}

/* --- СТИЛІ ДЛЯ СЕКЦІЇ ПЕРЕВАГ --- */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки на десктопі */
    gap: 40px;
    margin-top: 60px;
}

.spec-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    transition: all 0.4s var(--ease-out);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 24px;
}

.spec-card:hover {
    transform: translateX(8px);
}

.spec-icon {
    font-size: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--accent-light);
    border-radius: 16px;
    flex-shrink: 0;
    transition: 0.4s var(--ease-out);
}

.spec-card:hover .spec-icon {
    background: var(--accent);
    transform: scale(1.1);
    color: var(--white);
}

.spec-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spec-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.4;
}

.spec-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Адаптивність */
@media (max-width: 1200px) {
    .specs-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки на планшеті */
    }
}

@media (max-width: 900px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на меньшому планшеті */
    }
}

@media (max-width: 600px) {
    .specs-grid {
        grid-template-columns: 1fr; /* 1 колонка на телефоні */
        gap: 15px;
    }
    .spec-card {
        padding: 20px;
    }
}

#specs {
    position: relative;
    padding: 40px 0;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
}

.bg-light {
    background-color: #f9f9f9 !important;
}

/* --- СТИЛІ ДЛЯ ГАЛЕРЕЇ-СЛАЙДЕРА --- */

/* --- СТИЛІ ДЛЯ ГАЛЕРЕЇ --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s var(--ease-out);
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s var(--ease-out);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Lightbox стилі */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--accent);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* --- СТИЛІ ДЛЯ ФОРМИ (ЗАГЛУШКА) --- */
.contact-form-wrap {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    background: var(--bg-color);
    transition: all 0.3s var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

#contactForm .btn-primary {
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: 0.3s;
}

#contactForm .btn-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Адаптивність */
@media (max-width: 600px) {
    .contact-form-wrap {
        padding: 25px;
    }
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
    }
}

/* Адаптивність */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .lightbox-prev, .lightbox-next {
        font-size: 20px;
        padding: 5px 10px;
    }
}
.gallery-slider {
    margin-top: 30px;
}

.gallery-slide {
    position: relative;
    margin: 0 15px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s var(--ease-out);
}

.gallery-slide:hover {
    transform: translateY(-5px);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.gallery-slide:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s var(--ease-out);
}

.gallery-slide:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Мобільна версія — текст видимий без hover */
@media (max-width: 768px) {
    .gallery-overlay {
        transform: translateY(0);
    }
    
    .gallery-overlay h4 {
        font-size: 1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.75rem;
    }
    .shapes-selector {
    display: flex; justify-content: center; gap: 30px; margin-bottom: 20px;
}
}

/* Стилі для стрілок Slick (якщо потрібно перевизначити) */
.gallery-slider .slick-prev,
.gallery-slider .slick-next {
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    transition: 0.3s;
}

.gallery-slider .slick-prev:hover,
.gallery-slider .slick-next:hover {
    background: var(--accent);
}

.gallery-slider .slick-prev:before,
.gallery-slider .slick-next:before {
    font-size: 20px;
    color: white;
}

.gallery-slider .slick-dots li button:before {
    font-size: 12px;
    color: var(--text-muted);
}

.gallery-slider .slick-dots li.slick-active button:before {
    color: var(--accent);
}

/* --- СТИЛІ ДЛЯ ВАРІАНТІВ ВИКОРИСТАННЯ --- */
.use-cases-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.use-case-item {
    background: var(--white);
    border: 1px solid var(--glass-border);
    border-radius: 60px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--card-shadow);
}

.use-case-item:hover,
.use-case-item.active {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--accent);
}

.use-case-detail {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-case-detail p {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
    transition: opacity 0.2s;
}

/* Адаптивність */
@media (max-width: 768px) {
    .use-case-item {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .use-case-detail {
        padding: 20px;
    }
    .use-case-detail p {
        font-size: 1rem;
    }
}

/* --- АДАПТИВНІСТЬ --- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-subtitle { margin: 0 auto 40px; }
    .glass-card { margin: 0 auto; }
    .hero-image-wrap { aspect-ratio: 16/9; max-height: 450px; }
    .cursor, .cursor-follower { display: none; }
    body { cursor: auto; }
}

@media (max-width: 600px) {
    .section-title { font-size: 28px; }
    .container { padding: 0 20px; }
    .shapes-selector { gap: 15px; }
    .shape-icon { width: 40px; height: 40px; font-size: 1.8rem; }
    .sizes-table-wrap { padding: 20px; }
    .preloader-text { font-size: 2rem; }
    .shape-item { display: flex; flex-direction: column; align-items: center;}
}

/* Адаптивність для стрілок */
@media (max-width: 768px) {
    .gallery-slider .slick-prev,
    .gallery-slider .slick-next {
        width: 30px;
        height: 30px;
    }
    .gallery-slider .slick-prev:before,
    .gallery-slider .slick-next:before {
        font-size: 16px;
    }
}


/* Адаптація для мобільних пристроїв */
@media (max-width: 1024px) {
    #hero {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .hero-grid { 
        grid-template-columns: 1fr; 
        text-align: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .glass-card {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-image-wrap {
        max-width: 500px; /* Обмежуємо ширину на великих планшетах */
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-image-wrap {
        border-radius: var(--radius-md);
    }
}

/* --- МОБІЛЬНІ КАРТОЧКИ ДЛЯ ТАБЛИЦІ --- */
#sizes-table {
    display: table;
}

.sizes-cards-mobile {
    display: none;
}

@media (max-width: 768px) {
    #sizes-table {
        display: none;
    }
    
    .sizes-cards-mobile {
        display: block;
    }
    
    .product-card {
        background: var(--white);
        border: 1px solid rgba(26, 26, 26, 0.1);
        border-radius: var(--radius-md);
        padding: 12px;
        font-size: 13px;
        line-height: 1.4;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
        transition: box-shadow 0.3s;
    }
    
    .product-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .card-row {
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 8px;
        padding: 6px 0;
        border-bottom: 1px solid rgba(26, 26, 26, 0.05);
        align-items: center;
    }
    
    .card-row:last-child {
        border-bottom: none;
    }
    
    .card-row.card-copy {
        justify-items: center;
        border-bottom: none;
        padding-top: 8px;
        margin-top: 4px;
        border-top: 1px solid rgba(26, 26, 26, 0.1);
    }
    
    .card-label {
        font-weight: 600;
        color: var(--text-muted);
        font-size: 12px;
    }
    
    .card-value {
        color: var(--text-dark);
        word-break: break-word;
    }
    
    .copy-btn-mobile {
        font-size: 12px;
        padding: 6px 10px;
        background: var(--accent-light);
        border-radius: 6px;
        transition: 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: var(--accent);
        font-weight: 600;
    }
    
    .copy-btn-mobile:hover {
        background: var(--accent);
        color: var(--white);
    }
}

footer {
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- SCROLL АНІМАЦІЇ (IntersectionObserver + CSS, без GSAP ScrollTrigger) --- */
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}
.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.stagger-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.spec-icon {
    font-size: 2.5rem; /* Розмір іконки */
    color: #c49a6c;    /* Ваш акцентний колір */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.spec-card:hover .spec-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Налаштування сітки для 10 елементів */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* --- COMPARISON SECTION --- */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.comp-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    position: relative;
    transition: all 0.5s var(--ease-out);
    overflow: hidden;
}

.comp-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-light);
    color: var(--accent);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.comp-header {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.comp-header i {
    font-size: 3rem;
    color: var(--accent);
}

.comp-header h4 {
    font-size: 1.8rem;
    font-weight: 800;
}

.comp-list {
    list-style: none;
    margin-bottom: 40px;
}

.comp-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-dark);
}

.comp-list li i.ph-check { color: #2d6a4f; font-size: 1.2rem; }
.comp-list li i.ph-warning-circle { color: #c46c6c; font-size: 1.2rem; }

.comp-footer {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    border-top: 1px solid var(--bg-color);
    padding-top: 20px;
    text-transform: uppercase;
}

/* Hover effects */
.comparison-grid:hover .comp-card:not(:hover) {
    opacity: 0.6;
    transform: scale(0.98);
    filter: blur(1px);
}

.comp-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: #fff;
    z-index: 2;
}

@media (max-width: 900px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .comp-list li {
        font-size: 0.95rem;
    }
    .comp-header h4 {
        font-size: 1.5rem;
    }
    .comp-card {        
        padding: 30px 20px;
    } 
    .comp-badge {
        top: 10px;
        right: 10px;
        padding: 4px 12px;
        font-size: 0.6rem;
    }
    .comp-header {
    margin-top: 20px;
    margin-bottom: 20px;
    }
}

/* --- МОБІЛЬНИЙ СЛАЙДЕР КАРТОЧОК ТОВАРІВ --- */
/* ── МОБІЛЬНИЙ SWIPER КАРТОЧОК ─────────────────────────────────────── */
@media (max-width: 768px) {
    .sizes-cards-mobile {
        overflow: hidden;
    }

    .sizes-cards-mobile .swiper-slide {
        height: auto;
    }

    .sizes-cards-mobile .product-card {
        margin: 0;
        border-radius: var(--radius-md);
        box-shadow: 0 4px 20px rgba(0,0,0,0.07);
        border: 1px solid var(--glass-border);
        background: var(--white);
        padding: 16px;
        height: 100%;
        box-sizing: border-box;
        transition: border-color 0.3s, box-shadow 0.3s;
    }

    .sizes-cards-mobile .swiper-slide-active .product-card {
        border-color: var(--accent);
        box-shadow: 0 8px 28px rgba(196, 154, 108, 0.2);
    }

    .card-copy {
        display: flex !important;
        justify-content: center !important;
        padding-top: 10px;
        margin-top: 6px;
        border-top: 1px solid rgba(26,26,26,0.08) !important;
        border-bottom: none !important;
    }

    .order-btn-mobile {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--accent);
        color: var(--white);
        border: none;
        border-radius: 8px;
        padding: 8px 0;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        font-family: 'Montserrat', sans-serif;
        width: 100%;
        justify-content: center;
        transition: background 0.2s;
    }

    .order-btn-mobile:active {
        background: var(--text-dark);
    }
}

/* ── HINT ─────────────────────────────────────────────────────────── */
.sizes-cards-mobile + .swiper-hint,
.swiper-hint {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 500;
    margin-top: 12px;
    display: none;
}
@media (max-width: 768px) {
    .swiper-hint { display: block; }
}

/* ── КНОПКА ЗАМОВИТИ В ТАБЛИЦІ ────────────────────────────────────── */
.order-btn-table {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}
.order-btn-table:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
}

/* ── TOAST ────────────────────────────────────────────────────────── */
#order-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--text-dark);
    color: var(--white);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    z-index: 99999;
    max-width: 460px;
    width: calc(100% - 40px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
#order-toast.toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.toast-icon {
    width: 34px; height: 34px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700; flex-shrink: 0;
}
.toast-body {
    display: flex; flex-direction: column; gap: 3px; flex: 1;
}
.toast-body strong {
    font-size: 0.85rem; font-weight: 700; color: var(--accent);
}
.toast-body span {
    font-size: 0.8rem; color: rgba(255,255,255,0.8); line-height: 1.4;
}
.toast-body kbd {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px; padding: 1px 5px;
    font-family: monospace; font-size: 0.78rem; color: var(--white);
}
.toast-close {
    background: none; border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1rem; cursor: pointer;
    padding: 4px; line-height: 1; flex-shrink: 0;
    transition: color 0.2s;
}
.toast-close:hover { color: var(--white); }

/* --- PHONE DROPDOWN --- */
.phone-dropdown {
    position: relative;
}

.phone-main {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
}

.phone-main svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.phone-dropdown.open .phone-main svg {
    transform: rotate(180deg);
}

.phone-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #fffffff2;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 200;
}

.phone-dropdown.open .phone-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.phone-item {
    display: flex;
    flex-direction: column;
    padding: 12px 18px;
    text-decoration: none;
    border-bottom: 1px solid var(--bg-color);
    transition: background 0.2s;
}

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

.phone-item:hover {
    background: var(--accent-light);
}

.phone-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.phone-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

@media (max-width: 768px) {
    .phone-main .phone-label {
        display: none;
    }

    .phone-main svg.arrow {
        display: none;
    }

    .phone-main svg.phone-icon {
        width: 22px;
        height: 22px;
    }

    .phone-dropdown-menu {
        right: -10px;
        min-width: 180px;
    }
    .header {
        position: fixed;
        background: #fffffff2;
    }
}

/* ══ КОШИК ══════════════════════════════════════════════════════════ */
.cart-block {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--glass-border);
    margin-bottom: 24px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.cart-block.cart-error {
    border-color: #c46c6c;
    box-shadow: 0 0 0 3px rgba(196, 108, 108, 0.15);
    animation: cart-shake 0.4s ease;
}

@keyframes cart-shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-6px); }
    75%       { transform: translateX(6px); }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--glass-border);
    background: var(--white);
}

.cart-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.cart-title svg { color: var(--accent); }

.cart-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    padding: 3px 10px;
    border-radius: 50px;
}

.cart-items {
    min-height: 80px;
    max-height: 280px;
    overflow-y: auto;
}

/* Порожній стан */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.5;
}

/* Рядок товару */
.cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--glass-border);
    background: var(--white);
    animation: cart-row-in 0.25s ease;
}

@keyframes cart-row-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cart-row:last-child { border-bottom: none; }

.cart-row-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.cart-row-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-row-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-row-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cart-qty-btn {
    width: 28px; height: 28px;
    border-radius: 6px;
    border: 1.5px solid var(--glass-border);
    background: var(--bg-color);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    line-height: 1;
}

.cart-qty-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.cart-qty-val {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
    color: var(--text-dark);
}

.cart-remove-btn {
    width: 28px; height: 28px;
    border-radius: 6px;
    border: 1.5px solid rgba(196, 108, 108, 0.25);
    background: rgba(196, 108, 108, 0.06);
    color: #c46c6c;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    margin-left: 4px;
}

.cart-remove-btn:hover {
    background: #c46c6c;
    border-color: #c46c6c;
    color: var(--white);
}

@media (max-width: 480px) {
    .cart-row-meta { display: none; }
    .cart-row { padding: 10px 14px; }
    .cart-header { padding: 12px 14px; }
}

#lightbox {
    cursor: none;
}

.cursor {
    z-index: 999999;
}
.cursor-follower {
    z-index: 999998;
}