/* ============================================
   style.css — общие стили для ecotrading.kz
   
   Этот файл содержит стили для НОВЫХ страниц
   (категории, бренды, каталог, о компании, контакты).
   
   ВАЖНО: перед использованием — вынести из текущего
   index.html существующие стили (шрифты, переменные,
   анимации) и объединить с этим файлом.
   ============================================ */


/* ============================================
   0. СБРОС И ПЕРЕМЕННЫЕ
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Цвета — идентичны index (style.css) */
    --color-primary: #2D6A4F;
    --color-primary-light: #40916C;
    --color-primary-dark: #1B4332;
    --color-accent: #D4A373;
    --color-accent-light: #E9C8A4;
    --color-bg: #FFFFFF;
    --color-card-bg: #ffffff;
    --color-text: #1B1B1B;
    --color-text-secondary: #6B7280;
    --color-text-muted: #9CA3AF;
    --color-border: #E5E7EB;
    --color-border-light: #F3F4F6;
    --color-success-bg: #e8f5e9;
    --color-whatsapp: #25d366;
    --color-telegram: #0088cc;

    /* Типографика — идентичны index */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-base: 16px;
    --font-size-md: 17px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 28px;
    --font-size-3xl: 36px;

    /* Размеры */
    --max-width: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 20px;

    /* Тени — идентичны index */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);

    /* Переходы — идентичны index */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s ease;
}

/* Kazakh: Noto Serif supports Ғ, Қ, Ң, Ү, Ұ, Ә, Ө, І */
html[lang="kk"] {
  --font-heading: 'Noto Serif', Georgia, serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

h1, h2, h3 {
    font-family: var(--font-heading);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}


/* ============================================
   1. HEADER — identical to index (style.css)
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.header.scrolled {
    background: rgba(255,255,255,0.95);
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: #2A2A2A;
    position: relative;
    padding: 4px 0;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: var(--transition);
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link:hover { color: var(--color-primary); }

/* Header Phone */
.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}
.header__phone:hover { color: var(--color-primary-dark); }

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.lang-btn {
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    font-family: inherit;
}
.lang-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.lang-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}
.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================
   2. ХЛЕБНЫЕ КРОШКИ
   ============================================ */

.breadcrumbs {
    padding: 20px 0 10px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.breadcrumbs a {
    color: var(--color-text-secondary);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs span {
    margin: 0 6px;
    color: var(--color-text-muted);
}

.breadcrumbs strong {
    color: var(--color-text);
    font-weight: 600;
}


/* ============================================
   3. CATEGORY HERO (заголовок категории/бренда)
   ============================================ */

.category-hero {
    padding: 24px 0 40px;
}

.category-hero h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.category-hero__description {
    font-size: var(--font-size-md);
    color: var(--color-text-secondary);
    max-width: 720px;
    line-height: 1.7;
}


/* ============================================
   4. СЕТКА ТОВАРОВ (products-grid)
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding-bottom: 48px;
}

.products-section-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 40px 0 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-light);
    color: var(--color-text);
}

.products-section-title:first-of-type {
    border-top: none;
    margin-top: 0;
}


/* ============================================
   5. КАРТОЧКА ТОВАРА (product-card)
   ============================================ */

.product-card {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.product-card__image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f4f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.product-card__image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__body {
    padding: 20px;
}

.product-card__brand {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.product-card__category {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.product-card__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
    line-height: 1.3;
}

.product-card__desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.product-card__volume {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-success-bg);
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
}


/* ============================================
   6. СЕТКА КАТЕГОРИЙ (categories-grid)
   Используется на /catalog/ и главной
   ============================================ */

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}
.categories-grid .category-card {
    width: calc(25% - 18px);
}

.category-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #E5E7EB;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    border-color: transparent;
}

.category-card__img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.category-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card__name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1B1B1B;
}

.category-card__desc {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 12px;
}

.category-card__count {
    font-size: 14px;
    font-weight: 500;
    color: #2D6A4F;
}

.catalog-pricelist {
    text-align: center;
    padding: 32px;
    margin-bottom: 40px;
    background: var(--color-border-light);
    border-radius: var(--radius);
}
.catalog-pricelist p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

/* ============================================
   7. БРЕНД-HERO (страница бренда)
   ============================================ */

.brand-hero {
    padding: 24px 0 32px;
}

.brand-hero__header {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.brand-hero__logo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    object-fit: contain;
    background: #fff;
    padding: 12px;
    flex-shrink: 0;
}

.brand-hero__header h1 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.25;
}

.brand-hero__description {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 700px;
}

/* Подкатегории бренда (якорные ссылки) */
.brand-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0 32px;
}

.brand-subcategory {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: #fff;
    transition: all var(--transition);
}

.brand-subcategory:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-success-bg);
}


/* ============================================
   8. SEO-ТЕКСТ
   ============================================ */

.seo-text {
    padding: 40px 0 60px;
    border-top: 1px solid var(--color-border);
}

.seo-text h2 {
    font-size: var(--font-size-xl);
    margin-bottom: 16px;
    color: var(--color-text);
    line-height: 1.3;
}

.seo-text h3 {
    font-size: var(--font-size-lg);
    margin: 24px 0 8px;
    color: var(--color-text);
}

.seo-text p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
    max-width: 800px;
}

.seo-text a {
    color: var(--color-primary);
    font-weight: 500;
}


/* ============================================
   9. О КОМПАНИИ (about)
   ============================================ */

.about-hero {
    padding: 24px 0 16px;
}

.about-hero h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    line-height: 1.2;
}

.about-content {
    padding-bottom: 60px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.about-text h2 {
    font-size: var(--font-size-xl);
    margin: 32px 0 12px;
    color: var(--color-text);
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.about-image img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
}

/* Счётчики */
.about-stats {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 48px;
}

.about-stat {
    text-align: center;
    flex: 1;
}

.about-stat__number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.about-stat__label {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* Бренды-партнёры */
.about-brands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 20px 0 48px;
}

.about-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--color-text);
}

.about-brand:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.about-brand img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.about-brand span {
    font-size: 14px;
    font-weight: 600;
}

/* CTA */
.about-cta {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.about-cta p {
    font-size: var(--font-size-md);
    color: var(--color-text);
    margin-bottom: 20px;
}


/* ============================================
   10. КОНТАКТЫ (contacts)
   ============================================ */

.contacts-page {
    padding-bottom: 60px;
}

.contacts-page h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin: 16px 0 8px;
}

.contacts-page__subtitle {
    font-size: var(--font-size-md);
    color: var(--color-text-secondary);
    margin-bottom: 36px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
}

.contact-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-border-light);
    color: var(--color-primary);
    margin-bottom: 14px;
}
.contact-card h2 {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: var(--font-size-base);
    color: var(--color-text);
    line-height: 1.6;
}

.contact-card__link {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-primary);
    display: block;
}

.contact-card__link:hover {
    color: var(--color-primary-light);
}

/* Карта */
.contacts-map {
    margin-top: 40px;
    margin-bottom: 40px;
}
.contacts-map h2 {
    font-size: var(--font-size-lg);
    margin-bottom: 16px;
}
.contacts-map__frame {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.contacts-map__frame iframe {
    display: block;
}

/* Прайс-лист */
.contacts-pricelist {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.contacts-pricelist h2 {
    font-size: var(--font-size-lg);
    margin-bottom: 8px;
}

.contacts-pricelist p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}


/* ============================================
   11. КНОПКИ (btn)
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    border: 2px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.btn:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: #fff;
}


/* ============================================
   12. FOOTER — identical to index (style.css)
   ============================================ */

/* Logo (reused in footer) */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    flex-shrink: 0;
}
.logo__icon { display: flex; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-weight: 700; font-size: 16px; letter-spacing: -0.3px; }
.logo__sub { font-weight: 400; font-size: 13px; color: var(--color-text-secondary); }
.logo--light { color: #fff; }
.logo--light .logo__sub { color: rgba(255,255,255,0.6); }
.logo--light .logo__icon img { filter: brightness(0) invert(1); }

.footer {
    background: #1B1B1B;
    color: rgba(255,255,255,0.7);
    padding-top: 60px;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer__brand p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
}
.footer__links h4,
.footer__contact h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer__links a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    padding: 4px 0;
}
.footer__links a:hover { color: #fff; }
.footer__contact p,
.footer__contact a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}
.footer__contact a:hover { color: #fff; }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}


/* ============================================
   13. ПЛАВАЮЩИЕ КНОПКИ (WhatsApp + Telegram)
   ============================================ */

.floating-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition), box-shadow var(--transition);
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.floating-btn--whatsapp {
    background: var(--color-whatsapp);
}

.floating-btn--telegram {
    background: var(--color-telegram);
}

.floating-btn svg {
    width: 28px;
    height: 28px;
}


/* ============================================
   14. АДАПТИВНОСТЬ
   ============================================ */

/* Планшет */
@media (max-width: 1024px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .brand-hero__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* Мобильный */
@media (max-width: 768px) {
    :root {
        --font-size-3xl: 28px;
        --font-size-2xl: 24px;
        --font-size-xl: 20px;
    }

    /* Mobile nav — identical to index */
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        border-bottom: 1px solid var(--color-border);
    }
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav__link {
        font-size: 16px;
        padding: 14px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--color-border-light);
    }
    .header__phone { display: none; }
    .lang-switcher { order: 1; }
    .burger { display: flex; order: 2; }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .categories-grid .category-card { width: calc(50% - 12px); }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-stats {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .about-brands {
        justify-content: center;
    }

    .about-cta {
        padding: 24px;
    }

    /* Плавающие кнопки: уменьшить на мобильных */
    .floating-buttons {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
    }

    .floating-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Маленькие экраны */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid .category-card { width: 100%; }

    .category-hero h1 {
        font-size: 24px;
    }

    .brand-hero__logo {
        width: 80px;
        height: 80px;
    }

    .floating-btn {
        width: 44px;
        height: 44px;
    }

    .floating-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox__content {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    max-width: 640px;
    width: calc(100vw - 140px);
    max-height: 90vh;
    cursor: default;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}
.lightbox.active .lightbox__content {
    transform: scale(1);
}
.lightbox__content img {
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
    background: #f5f5f5;
    padding: 16px;
    flex-shrink: 0;
}
.lightbox__info {
    padding: 20px 24px 24px;
}
.lightbox__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    background: #2D6A4F;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}
.lightbox__name {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.lightbox__desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
}
.lightbox__volume {
    font-size: 13px;
    font-weight: 500;
    color: #999;
}
.lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.lightbox__close:hover {
    background: rgba(0, 0, 0, 0.6);
}
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.3);
}
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (max-width: 768px) {
    .lightbox__content { max-width: 95vw; width: calc(100vw - 32px); }
    .lightbox__nav { width: 36px; height: 36px; font-size: 24px; }
    .lightbox__nav--prev { left: 8px; }
    .lightbox__nav--next { right: 8px; }
    .lightbox__name { font-size: 18px; }
    .lightbox__info { padding: 16px 20px 20px; }
}

/* Product card cursor for lightbox */
.product-card__image img {
    cursor: pointer;
}

/* ===== BLOG ===== */

/* Blog index — card grid */
.blog-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-top: 40px;
}
.blog-card {
    width: calc((100% - 56px) / 3);
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.blog-card__img {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-card:hover .blog-card__img img {
    transform: scale(1.05);
}
.blog-card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card__date {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}
.blog-card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
    line-height: 1.3;
}
.blog-card__preview {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}
.blog-card__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
}
.blog-card__link:hover {
    color: var(--color-primary-light);
}

/* Blog article page */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px;
}
.blog-article__header {
    margin-bottom: 32px;
}
.blog-article__date {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}
.blog-article__hero {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
}
.blog-article__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-article__content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
}
.blog-article__content h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--color-text);
}
.blog-article__content p {
    margin-bottom: 16px;
}
.blog-article__content ul,
.blog-article__content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}
.blog-article__content li {
    margin-bottom: 8px;
}
.blog-article__content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.blog-article__content a:hover {
    color: var(--color-primary-light);
}
.blog-article__content strong {
    font-weight: 600;
}

/* CTA block after article */
.blog-article__cta {
    margin-top: 48px;
    padding: 32px;
    background: #f8f8f6;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    text-align: center;
}
.blog-article__cta h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}
.blog-article__cta p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.blog-article__cta .cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.blog-article__cta .btn--primary {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}
.blog-article__cta .btn--primary:hover {
    background: var(--color-primary-light);
}
.blog-article__cta .btn--outline {
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    transition: var(--transition);
}
.blog-article__cta .btn--outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Blog responsive */
@media (max-width: 768px) {
    .blog-cards { gap: 20px; }
    .blog-card { width: 100%; }
    .blog-article__content h2 { font-size: 22px; }
    .blog-article__cta { padding: 24px 20px; }
}
@media (max-width: 480px) {
    .blog-card__title { font-size: 18px; }
    .blog-article__hero { border-radius: 12px; }
}
