/* ========================================
   ESSENTIALS - STYLES.CSS
   Головний файл стилів для сайту
======================================== */

/* ========================================
   БАЗОВІ СТИЛІ
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    overflow-x: hidden;
    max-width: 100%;
}   

/* КОЛЬОРОВА ПАЛІТРА - змінюйте тут для зміни кольорів */
:root {
    --black: #0a0a0a;        /* Основний чорний фон */
    --gray-900: #1a1a1a;     /* Темно-сірий для карток */
    --gray-800: #2a2a2a;     /* Сірий для рамок */
    --gray-700: #3a3a3a;     /* Середній сірий */
    --gray-300: #b0b0b0;     /* Світло-сірий текст */
    --gray-200: #d0d0d0;     /* Ще світліший */
    --white: #fafafa;        /* Білий текст */
    --accent: #ffffff;       /* Акцентний колір */
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   НАВІГАЦІЯ
======================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-800);
    z-index: 1000;
    padding: 1.5rem 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.nav-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s;
    text-transform: uppercase;
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--white);
}

/* ========================================
   ПЕРЕМИКАЧ МОВ
======================================== */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid var(--gray-700);
    color: var(--gray-300);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* ========================================
   ПОКАЗ/ПРИХОВУВАННЯ СЕКЦІЙ
======================================== */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

/* ========================================
   ГЕРОЇЧНА СЕКЦІЯ
======================================== */
.hero {
    margin-top: 80px;
    padding: 8rem 2rem 4rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-800);
    background: linear-gradient(180deg, var(--black) 0%, var(--gray-900) 100%);
}

.hero h1 {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 0.9rem;
    color: var(--gray-300);
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.05em;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ========================================
   ПАНЕЛЬ ФІЛЬТРІВ
======================================== */
.filter-bar {
    padding: 2rem;
    background: var(--gray-900);
    border-bottom: 1px solid var(--gray-800);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--gray-700);
    color: var(--gray-300);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* ========================================
   СІТКА ТОВАРІВ
======================================== */
.products {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

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

/* ========================================
   КАРТКА ТОВАРУ
======================================== */
.product-card {
    position: relative;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out backwards;
    background: var(--black); /* Фон картки */
    overflow: hidden; /* Прибираємо виступаючі елементи */
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.1s; }
.product-card:nth-child(7) { animation-delay: 0.2s; }
.product-card:nth-child(8) { animation-delay: 0.3s; }
.product-card:nth-child(9) { animation-delay: 0.4s; }
.product-card:nth-child(10) { animation-delay: 0.5s; }
.product-card:nth-child(11) { animation-delay: 0.1s; }
.product-card:nth-child(12) { animation-delay: 0.2s; }
.product-card:nth-child(13) { animation-delay: 0.3s; }
.product-card:nth-child(14) { animation-delay: 0.4s; }
.product-card:nth-child(15) { animation-delay: 0.5s; }
.product-card:nth-child(16) { animation-delay: 0.1s; }
.product-card:nth-child(17) { animation-delay: 0.2s; }
.product-card:nth-child(18) { animation-delay: 0.3s; }
.product-card:nth-child(19) { animation-delay: 0.4s; }
.product-card:nth-child(20) { animation-delay: 0.5s; }
.product-card:nth-child(21) { animation-delay: 0.1s; }
.product-card:nth-child(22) { animation-delay: 0.2s; }
.product-card:nth-child(23) { animation-delay: 0.3s; }
.product-card:nth-child(24) { animation-delay: 0.4s; }
.product-card:nth-child(25) { animation-delay: 0.5s; }
.product-card:nth-child(26) { animation-delay: 0.1s; }
.product-card:nth-child(27) { animation-delay: 0.2s; }
.product-card:nth-child(28) { animation-delay: 0.3s; }
.product-card:nth-child(29) { animation-delay: 0.4s; }
.product-card:nth-child(30) { animation-delay: 0.5s; }




.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: transparent; /* Чорний фон замість сірого */
    overflow: hidden;
    border: 1px solid var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 48%, rgba(248, 245, 245, 0.03) 50%, transparent 52%);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    display: block; /* Прибираємо зайвий простір під inline елементом */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(0%) contrast(1.1);
    transition: transform 0.3s ease, filter 0.3s;
    margin: 0;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1.2);
}

.product-info {
    padding: 0;
    margin-top: 1rem;
}

.product-category {
    font-size: 0.7rem;
    color: var(--gray-300);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-name {
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.product-description {
    font-size: 0.75rem;
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.product-price {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.product-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--gray-300);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ========================================
   СТОРІНКА ТОВАРУ
======================================== */
.product-page {
    margin-top: 80px;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--gray-700);
    color: var(--gray-300);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 3rem;
}

.back-button:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* ========================================
   ГАЛЕРЕЯ ЗОБРАЖЕНЬ
======================================== */
.product-gallery {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.main-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
}

.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(0%) contrast(1.1);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.gallery-nav button {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.gallery-nav button:hover {
    background: var(--white);
    color: var(--black);
}

.thumbnails {
    display: none;
   
}

.thumbnail {
    aspect-ratio: 3/3;
    cursor: pointer;
    border: 1px solid var(--gray-800);
    overflow: hidden;
    opacity: 0.5;
    transition: all 0.3s;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--white);
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
}

/* ========================================
   ДЕТАЛЬНА ІНФОРМАЦІЯ ПРО ТОВАР
======================================== */
.product-detail-info {
    padding-top: 2rem;
}

.product-title {
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.product-detail-price {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-800);
}

.product-detail-description {
    font-size: 0.95rem;
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.info-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-800);
}

.info-section:last-child {
    border-bottom: none;
}


.info-section h3 {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--white);
}

.info-section p {
    font-size: 0.9rem;
    color: var(--gray-300);
    line-height: 1.8;
}

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

.info-section ul li {
    font-size: 0.9rem;
    color: var(--gray-300);
    line-height: 1.8;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-section ul li::before {
    content: '—';
    position: absolute;
    left: 0;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.badge {
    padding: 0.5rem 1rem;
    background: var(--black);
    border: 1px solid var(--gray-700);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-box {
    background: var(--gray-900);
    padding: 2rem;
    border: 1px solid var(--gray-700);
    margin-top: 2rem;
}

.contact-box h3 {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.contact-box p {
    font-size: 0.85rem;
    color: var(--gray-300);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.contact-box a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-700);
    transition: border-color 0.3s;
}

.contact-box a:hover {
    border-color: var(--white);
}

/* Span в контактах НЕ повинен виглядати як посилання */
.contact-box span {
    color: var(--gray-300);
    border-bottom: none;
}

/* ========================================
   КОНТАКТИ
======================================== */
.contact {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-top: 1px solid var(--gray-800);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-size: 0.7rem;
    color: var(--gray-300);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-value {
    font-size: 0.9rem;
    color: var(--white);
}

.contact-value a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-value a:hover {
    color: var(--gray-300);
}

/* ========================================
   ФУТЕР
======================================== */
footer {
    border-top: 1px solid var(--gray-800);
    padding: 3rem 2rem;
    background: var(--gray-900);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.75rem;
    color: var(--gray-300);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    font-size: 0.7rem;
    color: var(--gray-300);
    letter-spacing: 0.05em;
}

/* ========================================
   БЛОГ
======================================== */
.blog {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-top: 1px solid var(--gray-800);
}

.blog-section-title {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.blog-card {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--white);
}

.blog-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0%) contrast(1.1);
    transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-desc {
    font-size: 0.85rem;
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-read-more {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-read-more::after {
    content: '→';
    transition: transform 0.3s;
}

.blog-card:hover .blog-read-more::after {
    transform: translateX(5px);
}

/* ========================================
   МОДАЛЬНЕ ВІКНО БЛОГУ
======================================== */
.blog-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(5px);
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.blog-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.blog-modal-content {
    background: var(--black);
    border: 1px solid var(--gray-700);
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: fadeInUp 0.4s ease-out;
}

.blog-modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    color: var(--black-300);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 10;
}

.blog-modal-close:hover {
    color: var(--white);
}

.blog-modal-body {
    padding: 0;
}

.blog-modal-body img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-bottom: 1px solid var(--gray-800);
}

.blog-modal-title {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    font-weight: 300;
    margin: 2rem;
    line-height: 1.2;
}

.blog-modal-text {
    padding: 0 2rem 3rem;
    font-size: 0.95rem;
    color: var(--gray-200);
    line-height: 1.8;
}

/* ========================================
   АНІМАЦІЇ
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   АДАПТИВНИЙ ДИЗАЙН
======================================== */
@media (max-width: 968px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .product-title {
        font-size: 2.5rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Покращена навігація для мобільних */
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0rem;
    }

    .logo {
        font-size: 1.2rem;
        order: 1;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .language-switcher {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }

    .nav-links li a {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .lang-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    /* Hero секція */
    .hero {
        margin-top: 170px;
        padding: 4rem 1.5rem 3rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.95rem;
        max-width: 100%;
        line-height: 1.6;
    }

    /* Фільтри */
    .filter-bar {
        padding: 1.5rem 1rem;
        position: static; /* Прибираємо sticky на мобільних */
        top: auto;
    }

    .filter-container {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center; /* Вирівнювання зліва для кращого читання */
    }

    .filter-btn {
        font-size: 0.75rem;
        padding: 0.7rem 1.2rem;
        min-width: auto;
        flex: 0 1 auto; /* Кнопки адаптуються до розміру тексту */
    }

    /* Сітка товарів */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .product-card {
        max-width: 100%;
    }

    .product-image {
        aspect-ratio: 1/1; /* Зберігаємо пропорції 3:4 */
        height: auto;
        width: 100%;
    }

    .product-info {
        padding: 0; /* Тільки зверху і знизу, без бічних */
        margin-top: 1rem;
    }

    .product-name {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .product-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .product-price {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .product-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    /* Детальна сторінка товару */
    .product-page {
        padding: 2rem 1.5rem;
        margin-top: 170px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .main-image {
        aspect-ratio: 1/1; /* Зберігаємо пропорції */
        width: 100%;
        height: auto;
        margin: 0 auto;
    }
    
    .main-image img {
        height: 100%;
        object-fit: contain;
    }

    .gallery-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .product-detail-info {
        padding: 0;
    }

    .product-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .product-detail-price {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .product-detail-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .info-section {
        margin-bottom: 2rem;
    }

    .info-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .info-section p,
    .info-section ul {
        font-size: 0.9rem;
    }

    .info-section ul li {
        padding: 0.3rem 0;
    }

    .contact-box {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .contact-box h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .contact-box p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    /* Контакти */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-details {
        text-align: left;
    }

    .contact-item {
        margin-bottom: 1.5rem;
    }

    .contact-label {
        font-size: 0.9rem;
    }

    .contact-value {
        font-size: 1rem;
    }

    .contact-value iframe {
        width: 100%;
        height: 250px;
    }

    /* Футер */
    .footer-content {
        flex-direction: ;
        text-align: center;
        padding: 2rem 1rem;
    }

    .footer-links {
        margin-top: 1rem;
    }

    .footer-links li {
        margin: 0 0.5rem;
    }

    /* Кнопка назад */
    .back-button {
        margin-bottom: 2rem;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
    }
}

/* Додаткові стилі для дуже малих екранів */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .filter-bar {
        padding: 1.25rem 0.75rem;
    }

    .filter-btn {
        font-size: 0.7rem;
        padding: 0.6rem 1rem;
        min-width: auto;
    }

    .product-image {
        aspect-ratio: 3/3; /* Зберігаємо вертикальні пропорції */
        height: auto;
    }

    .product-info {
        padding: 1rem 0; /* Тільки зверху і знизу */
    }

    .product-name {
        font-size: 1.2rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .main-image {
        aspect-ratio: 1/1;
        width: 100%;
        height: auto;
    }
    
    .main-image img {
        height: 100%;
    }

    .thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-detail-price {
        font-size: 1.3rem;
    }

    .product-page {
        padding: 1rem 0.5rem;
    }
}

/* ========================================
   ВІДЖЕТ ЗВОРОТНОГО ДЗВІНКА
======================================== */
.callback-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

.callback-btn {
    width: 60px;
    height: 60px;
    background: var(--white);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid var(--gray-700);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.callback-btn:hover {
    transform: scale(1.1);
}

.phone-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transform-origin: 50% 50%;
    /* Додаємо оптичне зміщення, бо іконка по діагоналі може здаватися не по центру */
    margin-right: -1px; 
    margin-bottom: -1px;
    animation: wiggling 2.5s infinite ease-in-out;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: inherit;
    z-index: -1;
    animation: pulsing 2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

.callback-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 8px;
    padding: 10px 0;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 1;
}

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

.callback-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--white);
    transition: background 0.3s;
}

.callback-item:hover {
    background: var(--gray-800);
}

.callback-icon {
    font-size: 20px;
    margin-right: 15px;
}

.callback-text {
    font-size: 14px;
    letter-spacing: 0.05em;
    font-family: 'IBM Plex Mono', monospace;
}

@keyframes pulsing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes wiggling {
    0%, 10%, 20%, 30%, 40%, 100% { transform: rotate(0deg); }
    5%, 15%, 25%, 35% { transform: rotate(15deg); }
    12%, 22%, 32% { transform: rotate(-15deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
    .callback-widget {
        bottom: 20px;
        right: 20px;
    }
}
