        :root {
            --primary: #5d6d3e; /* Лесной зеленый */
            --accent: #d35400;
            --dark: #2c3e50;
            --light: #f4f1ea;
            --white: #ffffff;
            --overlay: rgba(0, 0, 0, 0.7);
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'Alice', 'Georgia', serif;
            margin: 0;
            padding: 0;
            background-color: var(--light);
            color: var(--dark);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            line-height: 1.6;
        }

        /* --- HEADER & NAV --- */
        header {
            background: var(--white);
            padding: 15px 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            position: sticky; top: 0; z-index: 1000;
            overflow: visible;
        }

        .logo { 
            font-weight: bold; 
            font-size: 1.3rem; 
            color: var(--primary); 
            display: flex; 
            align-items: center; 
            gap: 10px;
            text-decoration: none;
            font-family: 'Lora', serif;
        }

        .nav-links {
            display: flex;
            flex-direction: column;
            gap: 6px;
            align-items: center;
        }

        .nav-links .nav-row {
            display: flex;
            gap: 20px;
            align-items: center;
            justify-content: center;
        }
        
        @media (min-width: 769px) {
            .nav-links {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                flex-direction: row;
                gap: 0;
                align-items: center;
            }
            .nav-links .nav-row {
                display: contents;
            }
        }

        .nav-links a {
            text-decoration: none;
            color: var(--dark);
            font-weight: bold;
            font-size: 0.95rem;
            transition: color 0.3s;
            position: relative;
            font-family: 'Alice', serif;
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background-color: var(--accent);
            transition: width 0.3s;
        }

        .nav-links a:hover { color: var(--accent); }
        .nav-links a:hover::after { width: 100%; }
        
        /* Hide mobile navigation on desktop */
        .nav-below-hero {
            display: none;
        }

        .header-controls {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .lang-switcher {
            display: flex;
            gap: 10px;
            margin-right: 15px;
            font-family: 'Lora', serif;
            font-size: 0.9rem;
        }
        .lang-switcher a {
            text-decoration: none;
            color: var(--dark);
            opacity: 0.6;
            transition: opacity 0.3s;
        }
        .lang-switcher a:hover {
            opacity: 0.8;
        }
        .lang-switcher a.active {
            opacity: 1;
            font-weight: bold;
            border-bottom: 2px solid var(--accent);
        }

        .cart-wrapper {
            position: relative;
            cursor: pointer;
        }
        .cart-wrapper:hover { color: var(--accent); }
        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--accent);
            color: white;
            font-size: 0.7rem;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        /* --- HERO SECTION --- */
        .hero {
            background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../img/head.webp') center/cover no-repeat;
            height: 60vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: white;
            padding: 0 20px;
        }

        .hero h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
            font-family: 'Lora', serif;
            font-weight: 600;
            color: white;
            border-bottom: none;
        }

        .hero p {
            font-size: 1.2rem;
            max-width: 600px;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
        }

        .container {
            width: 90%;
            max-width: 1240px;
            margin: 0 auto;
            flex: 1;
        }

        h2 {
            font-size: 2rem;
            color: var(--primary);
            text-align: center;
            margin: 50px 0 30px;
            display: block; 
            position: relative;
            font-family: 'Lora', serif;
            font-weight: 600;
        }
        
        h2::after {
            content: '';
            display: block;
            width: 60px;
            height: 3px;
            background: var(--accent);
            margin: 10px auto 0;
        }

        /* --- ABOUT SECTION --- */
        .about-section {
            background: #fff;
            padding: 28px 36px 32px 36px;
            margin: 30px 0;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            text-align: left;
        }
        .about-section h2 {
            margin-top: 0;
            margin-bottom: 20px;
            text-align: center;
        }
        .about-content {
            max-width: 860px;
            margin: 0 auto;
            font-size: 1.1rem;
            line-height: 1.75;
            text-align: left;
        }
        .about-highlight {
            color: var(--accent);
            font-weight: bold;
        }
        .custom-order-note {
            background-color: var(--light);
            border-left: 4px solid var(--primary);
            padding: 15px;
            margin-top: 25px;
            border-radius: 4px;
            font-style: italic;
        }

        /* --- CATALOG GRID (FLEX FOR PYRAMID) --- */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            margin-bottom: 80px;
        }

        @media (max-width: 992px) {
            .category-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

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

        .category-preview { box-sizing: border-box;
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s, box-shadow 0.3s;
            text-align: center;
            padding-bottom: 25px;
            display: flex;
            flex-direction: column;
            border: 1px solid #eee;
        }

        .category-preview:hover { 
            transform: translateY(-7px); 
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }

        .category-preview img {
            width: 100%;
            height: 280px;
            object-fit: cover;
            transition: transform 0.5s;
        }
        .category-preview:hover img { transform: scale(1.03); }

        .category-preview h3 {
            margin: 15px 0 5px;
            color: var(--dark);
            font-family: 'Lora', serif;
            font-weight: 600;
        }

        .price-wrapper {
            display: flex;
            justify-content: center;
            gap: 4px;
            font-weight: bold;
            margin-bottom: 15px;
        }
        
        .cat-price {
            color: var(--primary);
            font-size: 1.1rem;
        }

        .btn-group {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: auto;
            padding: 0 15px;
        }

        .btn {
            background: var(--primary);
            color: white;
            padding: 10px 20px;
            text-decoration: none;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            font-size: 0.95rem;
            transition: background 0.3s;
            font-family: inherit;
        }
        .btn:hover { background: #4a5732; }
        
        .btn-outline {
            background: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
            padding: 8px 18px;
            border-radius: 6px;
            font-weight: bold;
            text-decoration: none;
            display: inline-block;
        }
        .btn-outline:hover { background: var(--primary); color: white; }

        /* --- FOOTER --- */
        footer {
            background: #2a3320;
            color: var(--light);
            padding: 40px 5%;
            margin-top: auto;
        }
        .footer-content {
            display: flex;
            flex-wrap: nowrap;
            justify-content: space-between;
            max-width: 1200px;
            margin: 0 auto;
            gap: 40px;
            align-items: flex-start;
        }
        .footer-logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--white);
            margin-bottom: 10px;
            display: block;
            font-family: 'Lora', serif;
        }
        .social-links {
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: flex-end;
        }
        .social-item {
            color: #bdc3c7;
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .social-item:hover { color: var(--accent); }
        .social-item i { width: 20px; text-align: center; }
        .social-item span { width: 20px; text-align: center; display: inline-block; }

        /* --- MODALS --- */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: var(--overlay);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(3px);
        }

        .modal-window {
            background: white;
            padding: 40px;
            border-radius: 12px;
            width: 90%;
            max-width: 620px;
            position: relative;
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: 0 20px 50px rgba(0,0,0,0.3);
        }

        .close-modal {
            position: absolute;
            top: 15px; right: 20px;
            font-size: 1.8rem;
            cursor: pointer;
            color: #aaa;
            transition: color 0.3s;
        }
        .close-modal:hover { color: var(--dark); }

        .cart-items {
            list-style: none;
            padding: 0;
            margin: 20px 0;
            border-top: 1px solid #eee;
        }
        .cart-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 0;
            border-bottom: 1px solid #eee;
            min-width: 0;
            overflow: hidden;
            gap: 12px;
            font-size: 1rem;
        }
        .cart-total {
            font-weight: bold;
            text-align: right;
            font-size: 1.3rem;
            margin-top: 20px;
            color: var(--primary);
        }

        .contact-links {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 25px;
        }
        .contact-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 14px;
            border-radius: 8px;
            text-decoration: none;
            color: white;
            font-weight: bold;
            transition: transform 0.2s, opacity 0.2s;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        .contact-btn:hover { opacity: 0.9; transform: translateY(-2px); }
        
        .btn-inst { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
        .btn-tg { background: #0088cc; }
        .btn-threads { background: #000000; }
        .btn-vk { background: #0077FF; }
        .contact-btn i, .contact-btn span { margin-right: 12px; font-size: 1.3rem; }

        @media (max-width: 768px) {
            header {
                padding: 30px 15px 15px 15px;
                flex-direction: row;
                flex-wrap: wrap;
                position: relative;
            }
            .logo { 
                font-size: 1.1rem; 
                order: 1;
                flex: 0 0 auto;
            }
            .header-controls { 
                order: 2; 
                display: flex;
                align-items: center;
                gap: 15px;
                margin-left: auto;
            }
            .lang-switcher {
                font-size: 0.85rem;
                display: flex;
                gap: 8px;
            }
            .cart-wrapper {
                position: relative;
            }
            
            /* Hide navigation in header for index page on mobile */
            body.index-page .nav-links:not(.nav-below-hero) { 
                display: none !important;
            }
            
            .hero { height: 40vh; }
            .hero h1 { font-size: 1.8rem; }
            footer { 
                padding: 30px 5% 80px 5%;
            }
            .footer-content {
                flex-direction: column-reverse;
                gap: 30px;
            }
            .footer-content > div:last-child {
                text-align: right !important;
            }
            .social-links {
                align-items: flex-end !important;
            }
            
            /* Navigation below hero for index page - inverted pyramid */
            .nav-below-hero {
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: wrap !important;
                justify-content: center !important;
                align-items: stretch !important;
                position: static !important;
                transform: none !important;
                left: auto !important;
                padding: 14px 12px;
                margin: 0;
                background: transparent;
                box-shadow: none;
                gap: 8px;
                box-sizing: border-box;
                width: 100%;
            }
            .nav-below-hero .nav-row {
                display: contents;
            }
            .nav-below-hero a {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                text-align: center;
                padding: 10px 14px;
                font-size: 0.82rem;
                border: 2px solid var(--primary);
                border-radius: 8px;
                background: var(--white);
                font-weight: 600;
                white-space: nowrap;
                flex: 0 0 auto;
                box-sizing: border-box;
            }
            .nav-below-hero a::after {
                display: none !important;
            }
        }
        body { font-family: 'Alice', 'Georgia', serif; background-color: var(--light); color: var(--dark); margin: 0; display: flex; flex-direction: column; min-height: 100vh; }
        
        /* Хедер и Корзина */
        header { background: var(--white); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
        .nav-links a { margin: 0 10px; text-decoration: none; color: var(--dark); font-weight: bold; font-size: 0.95rem; font-family: 'Alice', serif; }
        .nav-links a:hover { color: var(--accent); }
        .logo a { text-decoration: none; color: var(--primary); font-size: 1.3rem; font-weight: bold; font-family: 'Lora', serif; }

        .cart-wrapper { position: relative; cursor: pointer; }
        .cart-count { position: absolute; top: -8px; right: -8px; background: var(--accent); color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.8rem; font-weight: bold; }

        .container { width: 90%; max-width: 1200px; margin: 40px auto; flex: 1; }
        h1 { color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 10px; font-family: 'Lora', serif; font-weight: 600; }
        h3 { font-family: 'Lora', serif; font-weight: 600; }

        /* Описание категории */
        .category-description {
            background-color: var(--light);
            border-left: 4px solid var(--primary);
            border-radius: 4px;
            padding: 20px 24px;
            margin: 16px 0 28px;
            color: var(--dark);
            font-size: 1.12rem;
            line-height: 1.8;
        }
        .category-description p {
            margin: 0 0 10px;
        }
        .category-description p:last-child {
            margin-bottom: 0;
        }
        /* Important notice paragraph inside category description */
        .category-note {
            margin-top: 16px !important;
            padding: 14px 18px;
            background: rgba(139, 90, 43, 0.08);
            border: 1.5px solid var(--primary);
            border-radius: 6px;
            font-size: 1.05em;
            line-height: 1.75;
        }
        /* Inline gnome-link button inside category description */
        /* ── Collection cards (fluffies/any index) ── */
        article.collection-card,
        .collection-card {
            display: flex !important;
            flex-direction: row !important;
            text-align: left;
            padding: 0 !important;
            overflow: hidden;
            min-height: unset;
            background: #1e1a14 !important;
            box-shadow: 0 6px 24px rgba(0,0,0,0.13) !important;
            transform: none !important;
            align-items: stretch;
        }
        article.collection-card:hover { transform: translateY(-4px) !important; }
        .collection-card-link { display: block; text-decoration: none; flex-shrink: 0; width: 55%; }
        .collection-card-img-wrap { position: relative; width: 100%; }
        .collection-card-img-wrap img { width: 100%; height: auto; display: block; transition: transform .4s; }
        /* Fluffies only: image fills card height */
        .fluffies-page .collection-card { min-height: 420px; }
        .fluffies-page .collection-card-link { position: relative; }
        .fluffies-page .collection-card-img-wrap { position: absolute; inset: 0; width: 100%; height: 100%; }
        .fluffies-page .collection-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
        .collection-card:hover .collection-card-img-wrap img { transform: scale(1.04); }
        .collection-card-badge { position: absolute; bottom: 14px; left: 14px; background: rgba(255,255,255,.88); backdrop-filter: blur(4px); font-size: 0.78rem; padding: 4px 12px; border-radius: 20px; color: #5a4530; font-family: 'Alice', serif; }
        .collection-card-body { padding: 36px 40px; display: flex !important; flex-direction: column !important; flex: 1; justify-content: center; background: #1e1a14; }
        .collection-card-meta { font-size: 0.82rem; color: #a09070; font-family: 'Alice', serif; margin-bottom: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
        .collection-card h3, article.collection-card h3 { margin: 0 0 6px; font-size: 2.6rem; font-family: 'Alice', serif; }
        .collection-card h3 a { color: #f0e8d5; text-decoration: none; }
        .collection-card h3 a:hover { color: #c8b88a; }
        .collection-card-divider { width: 48px; height: 2px; background: #a09070; margin: 12px 0 18px; }
        .collection-card-desc { font-size: 1rem; color: #c8b898; line-height: 1.7; margin: 0 0 22px; }
        .collection-card-creatures { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; }
        .collection-card-creatures span { font-size: 0.8rem; background: rgba(255,255,255,0.07); color: #d4c4a0; padding: 4px 11px; border-radius: 14px; font-family: 'Alice', serif; border: 1px solid rgba(255,255,255,0.1); }
        .collection-card .btn-details { background: transparent; color: #d4c4a0; border: 1px solid #6b5a3e; border-radius: 6px; padding: 11px 24px; font-size: 0.95rem; font-family: 'Alice', serif; text-decoration: none; display: inline-block; transition: background .25s, color .25s; align-self: flex-start; }
        .collection-card .btn-details:hover { background: #5d6d3e; color: #fff; border-color: #5d6d3e; }
        /* ── /Collection cards ── */
        .btn-gnome-link {
            display: inline-block;
            background: var(--primary);
            color: #fff !important;
            text-decoration: none !important;
            font-weight: 600;
            font-size: 0.95em;
            padding: 3px 11px;
            border-radius: 20px;
            white-space: nowrap;
            transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
            box-shadow: 0 2px 6px rgba(93,109,62,0.25);
            vertical-align: middle;
            position: relative;
            top: -1px;
        }
        .btn-gnome-link:hover {
            background: #4a5930;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(93,109,62,0.4);
        }
        .btn-gnome-link:active {
            transform: translateY(0px) scale(0.97);
            box-shadow: 0 1px 4px rgba(93,109,62,0.3);
        }
        /* Prevent btn-gnome-link from stretching full-width inside product-info */
        .product-info .btn-gnome-link,
        .product-desc .btn-gnome-link {
            width: auto;
            max-width: fit-content;
            display: inline-block;
        }

        /* ==================== УТИЛИТЫ (замена inline-стилей) ==================== */
        /* Футер — колонки */
        .footer-col        { flex: 1; min-width: 250px; }
        .footer-col-right  { flex: 1; min-width: 250px; text-align: right; }
        /* Футер — текст */
        .footer-copy       { font-size: 0.85rem; color: #aaa; margin-top: 8px; }
        .footer-disclaimer { font-size: 0.7rem; color: #aaa; margin-top: 8px; text-align: right; }
        .footer-social-heading { color: var(--white); margin-top: 0; }
        .footer-social-links   { align-items: flex-end; }
        /* Корзина — пустое состояние */
        .cart-empty-msg    { text-align: center; color: #777; }
        /* Кнопка «Оформить заказ» в корзине */
        .btn-checkout {
            background: var(--primary);
            color: white;
            border: none;
            padding: 15px;
            font-size: 1.1rem;
            border-radius: 6px;
            cursor: pointer;
            width: 100%;
            margin-top: 20px;
            font-weight: bold;
            transition: background 0.3s;
        }
        .btn-checkout:hover { background: #4a5832; }
        /* Модалка заказа */
        .order-modal-title  { text-align: center; }
        .order-modal-text   { text-align: center; color: #555; }
        .order-modal-note   { font-size: 0.75rem; color: #888; margin-top: 12px; text-align: center; }
        /* SVG иконка корзины в хедере */
        .icon-cart-color   { color: var(--primary); }
        /* Сортировка — лейбл */
        .sort-label        { font-weight: bold; }
        /* add-to-cart-btn-inline — полная ширина (мобильный вариант) */
        .add-to-cart-btn-inline { width: 100%; }
        /* Заглушка пустой категории */
        .catalog-empty-msg {
            color: #888;
            font-style: italic;
            grid-column: 1 / -1;
            text-align: center;
            padding: 40px 0;
        }


        .controls { display: flex; justify-content: flex-end; align-items: center; margin: 20px 0; padding: 15px; background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); font-size: 1.05rem; box-sizing: border-box; width: 100%; overflow: hidden; }
        .sort-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }
        .sort-select { padding: 9px 15px; border: 2px solid var(--primary); background: white; color: var(--primary); cursor: pointer; border-radius: 4px; transition: 0.3s; font-family: 'Georgia', serif; min-width: 200px; font-size: 1.05rem; box-sizing: border-box; }
        .sort-select:hover { background: var(--light); }

        @media (max-width: 480px) {
            .controls { padding: 10px; justify-content: space-between; }
            .sort-controls { width: 100%; justify-content: space-between; }
            .sort-select { min-width: 0; flex: 1; font-size: 0.95rem; padding: 8px 10px; }
        }

        /* Карточки товаров */
        .products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; opacity: 0; }
        .fluffies-page .products-grid { grid-template-columns: 1fr; }

        @media (max-width: 768px) {
            html, body { overflow-x: hidden; max-width: 100%; }
            .container { width: 100%; box-sizing: border-box; padding-left: 12px; padding-right: 12px; margin: 20px 0; }
            .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
            .fluffies-page .products-grid { grid-template-columns: 1fr !important; }
            article.collection-card, .collection-card { flex-direction: column !important; min-height: unset !important; }
            .collection-card-link { width: 100%; }
            /* Fix: absolute positioning collapses image on mobile — reset to static flow */
            .fluffies-page .collection-card-link { position: static; }
            .fluffies-page .collection-card-img-wrap { position: relative; width: 100%; height: auto; }
            .fluffies-page .collection-card-img-wrap img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; object-position: center center; }
            .collection-card-img-wrap img { aspect-ratio: 4/3; height: auto; object-position: center top; }
            .collection-card-body { padding: 20px 18px 22px !important; }
            .collection-card h3, article.collection-card h3 { font-size: 1.7rem !important; }
            .product-card { padding: 8px; min-width: 0; box-sizing: border-box; }
            .product-card h3 { font-size: 0.82rem; margin: 6px 0 5px; }
            .product-card-buttons { gap: 5px; flex-direction: column; }
            .btn-details, .btn-add-to-cart {
                padding: 9px 8px;
                font-size: 1rem;
                white-space: nowrap;
                text-align: center;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                box-sizing: border-box;
            }
        }
        
        .product-card { background: white; padding: 15px; border-radius: 8px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s; display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box; }
        .product-card:hover { transform: translateY(-5px); }
        .product-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 5px; cursor: pointer; transition: opacity 0.3s; }
        .product-card img:hover { opacity: 0.85; }
        .product-card h3 { margin: 15px 0 10px 0; color: var(--dark); font-size: 1.1rem; }
        .price { color: var(--primary); font-weight: bold; display: block; margin: 10px 0; font-size: 1.2rem; }
        
        .product-card-buttons { display: flex; gap: 10px; margin-top: auto; padding-top: 12px; overflow: hidden; }
        .btn-details { 
            flex: 1;
            min-width: 0;
            padding: 10px 8px;
            background: white;
            color: var(--primary);
            border: 2px solid var(--primary);
            border-radius: 5px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            box-sizing: border-box;
        }
        .btn-details:hover {
            background: var(--primary);
            color: white;
        }
        .btn-add-to-cart {
            flex: 1;
            min-width: 0;
            padding: 10px 8px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.9rem;
            transition: 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            box-sizing: border-box;
        }
        .btn-add-to-cart:hover {
            background: #4a5832;
        }
        
        @media (max-width: 768px) {
            body:not(.index-page) header {
                padding: 15px;
                position: sticky;
                top: 0;
                background: var(--white);
                z-index: 100;
                box-shadow: 0 2px 5px rgba(0,0,0,0.1);
                display: flex;
                flex-direction: column;
                gap: 12px;
            }
            
            /* Первая строка: логотип и корзина */
            body:not(.index-page) .logo {
                text-align: left;
                font-size: 1.1rem;
                position: relative;
                order: 1;
            }
            
            body:not(.index-page) .header-controls {
                position: absolute;
                right: 15px;
                top: 15px;
                display: flex;
                align-items: center;
                gap: 10px;
                order: 2;
                z-index: 10;
            }
            
            body:not(.index-page) .cart-wrapper {
                cursor: pointer;
                position: relative;
                z-index: 10;
            }
            
            /* Вторая строка: навигация — перевёрнутая пирамида */
            body:not(.index-page) .nav-links {
                display: flex;
                flex-direction: column;
                align-items: stretch;
                gap: 6px;
                width: 100%;
                margin-top: 8px;
                order: 3;
                box-sizing: border-box;
            }
            body:not(.index-page) .nav-links .nav-row {
                display: flex;
                justify-content: center;
                gap: 6px;
                width: 100%;
                box-sizing: border-box;
            }
            body:not(.index-page) .nav-links a {
                text-align: center;
                padding: 7px 4px;
                font-size: 0.68rem;
                border: 1px solid #ddd;
                border-radius: 6px;
                background: var(--light);
                white-space: nowrap;
                flex: 1 1 0;
                min-width: 0;
                overflow: hidden;
                text-overflow: ellipsis;
                box-sizing: border-box;
            }
            .controls { flex-direction: column; align-items: stretch; }
            footer {
                padding: 30px 5% 80px 5%;
            }
            .footer-content {
                flex-direction: column-reverse;
                gap: 30px;
                align-items: flex-start;
            }
            .footer-content > div:first-child {
                text-align: left;
            }
            .footer-content > div:last-child {
                text-align: right;
                align-self: flex-end;
            }
            .social-links {
                align-items: flex-end;
            }
        }
        
        /* Кнопки */
        .card-actions { display: flex; gap: 10px; justify-content: center; margin-top: 15px; }
        .btn { padding: 10px 20px; border-radius: 4px; cursor: pointer; text-decoration: none; font-size: 0.9rem; transition: 0.3s; border: 2px solid var(--primary); }
        
        .btn-buy { background: var(--primary); color: white; }
        .btn-buy:hover { background: #4a5832; border-color: #4a5832; }
        
        .btn-details { background: transparent; color: var(--primary); }
        .btn-details:hover { background: var(--primary); color: white; }

        .back-link { display: inline-block; margin-bottom: 20px; color: var(--dark); text-decoration: none; font-size: 1.05rem; }

        /* --- FOOTER --- */
        footer {
            background: #2a3320;
            color: var(--light);
            padding: 40px 5%;
            margin-top: auto;
        }
        .footer-content {
            display: flex;
            flex-wrap: nowrap;
            justify-content: space-between;
            max-width: 1200px;
            margin: 0 auto;
            gap: 40px;
            align-items: flex-start;
        }
        .footer-logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--white);
            margin-bottom: 10px;
            display: block;
            font-family: 'Lora', serif;
        }
        .social-links {
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: flex-end;
        }
        .social-item {
            color: #bdc3c7;
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .social-item:hover { color: var(--accent); }
        .social-item i { width: 20px; text-align: center; }
        .social-item span { width: 20px; text-align: center; display: inline-block; }
        .social-item span { width: 20px; text-align: center; display: inline-block; }

        /* --- MODALS --- */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(3px);
        }

        .modal-window {
            background: white;
            padding: 40px;
            border-radius: 12px;
            width: 90%;
            max-width: 620px;
            position: relative;
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: 0 20px 50px rgba(0,0,0,0.3);
        }

        .close-modal {
            position: absolute;
            top: 15px; right: 20px;
            font-size: 1.8rem;
            cursor: pointer;
            color: #aaa;
            transition: color 0.3s;
        }
        .close-modal:hover { color: var(--dark); }

        .cart-items {
            list-style: none;
            padding: 0;
            margin: 20px 0;
            border-top: 1px solid #eee;
        }
        .cart-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 0;
            border-bottom: 1px solid #eee;
            min-width: 0;
            overflow: hidden;
            gap: 12px;
            font-size: 1rem;
        }
        .cart-total {
            font-weight: bold;
            text-align: right;
            font-size: 1.3rem;
            margin-top: 20px;
            color: var(--primary);
        }

        /* Контакты в модалке */
        .contact-links {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 25px;
        }
        .contact-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 14px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: bold;
            transition: 0.3s;
            gap: 10px;
        }
        .btn-vk { background: #0077ff; color: white; }
        .btn-vk:hover { background: #0066dd; }
        .btn-tg { background: #0088cc; color: white; }
        .btn-tg:hover { background: #0077bb; }
        .btn-inst { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: white; }
        .btn-inst:hover { opacity: 0.9; }
        .btn-threads { background: #000000; color: white; }
        .btn-threads:hover { background: #333333; }
        body { font-family: 'Alice', 'Georgia', serif; background-color: var(--light); color: var(--dark); margin: 0; display: flex; flex-direction: column; min-height: 100vh; }
        
        /* Повторяем хедер для единого стиля */
        header { background: var(--white); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
        .logo a { text-decoration: none; color: var(--primary); font-size: 1.2rem; font-weight: bold; font-family: 'Lora', serif; }
        .nav-links { display: flex; gap: 10px; }
        .nav-links a { margin: 0 10px; text-decoration: none; color: var(--dark); font-weight: bold; font-size: 0.95rem; font-family: 'Alice', serif; transition: color 0.3s; }
        .nav-links a:hover { color: var(--accent); }
        .cart-wrapper { position: relative; cursor: pointer; }
        .cart-count { position: absolute; top: -8px; right: -8px; background: var(--accent); color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.8rem; font-weight: bold; }

        /* Сетка страницы товара */
        .product-container {
            max-width: 1100px; margin: 40px auto; padding: 0 20px;
            display: grid; grid-template-columns: 45% 1fr; gap: 50px;
            align-items: start;
        }

        /* Галерея */
        .gallery { display: flex; flex-direction: column; gap: 15px; position: sticky; top: 20px; align-self: start; }
        .main-image { aspect-ratio: 3 / 4; background: var(--light); border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
        .main-image img { width: 100%; height: 100%; border-radius: 10px; object-fit: contain; box-shadow: 0 5px 15px rgba(0,0,0,0.1); cursor: pointer; transition: opacity 0.3s; }
        .main-image img:hover { opacity: 0.9; }
        .thumbnails { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
        .thumbnails img { width: 80px; height: 80px; object-fit: cover; border-radius: 5px; cursor: pointer; opacity: 0.6; transition: 0.3s; border: 2px solid transparent; }
        .thumbnails img:hover, .thumbnails img.active { opacity: 1; border-color: var(--primary); }

        /* Информация о товаре */
        .product-info h1 { color: var(--primary); margin-top: 0; font-size: 2.5rem; font-family: 'Lora', serif; font-weight: 600; }
        .product-price { font-size: 2rem; color: var(--primary); font-weight: bold; margin: 20px 0; }
        .product-desc { line-height: 1.85; color: #555; margin-bottom: 30px; font-size: 1.08rem; }
        .product-desc p { margin-bottom: 15px; }
        .specs { background: white; padding: 20px; border-radius: 8px; margin-bottom: 20px; font-size: 1.05rem; }
        .specs li { margin-bottom: 8px; list-style-type: none; }
        .specs strong { color: var(--primary); }

        .add-to-cart-btn {
            background: var(--primary); color: white; border: none; padding: 18px 50px; 
            font-size: 1.3rem; border-radius: 8px; cursor: pointer; transition: 0.3s; 
            width: auto;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-weight: bold;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
            margin-top: 20px;
        }
        .add-to-cart-btn:hover { 
            background: #4a5832; 
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0,0,0,0.2);
        }
        .add-to-cart-btn:active {
            transform: translateY(0);
        }
        
        /* Inline button (after price) - visible on desktop */
        .add-to-cart-btn-inline {
            display: inline-flex;
            background: var(--primary);
            color: white;
            border: none;
            padding: 15px 40px;
            font-size: 1.1rem;
            border-radius: 8px;
            cursor: pointer;
            transition: 0.3s;
            align-items: center;
            gap: 10px;
            font-weight: bold;
            margin: 20px 0;
        }
        
        .add-to-cart-btn-inline:hover {
            background: #4a5832;
            transform: translateY(-2px);
        }

        /* Lightbox для полноэкранного просмотра */
        .lightbox {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }
        .lightbox.active { display: flex; }
        .lightbox img {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
            border-radius: 8px;
        }
        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 40px;
            font-size: 40px;
            color: white;
            cursor: pointer;
            background: none;
            border: none;
            transition: 0.3s;
        }
        .lightbox-close:hover { color: var(--accent); }
        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 50px;
            color: white;
            cursor: pointer;
            background: rgba(0, 0, 0, 0.5);
            border: none;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.3s;
        }
        .lightbox-nav:hover { background: rgba(0, 0, 0, 0.8); color: var(--accent); }
        .lightbox-prev { left: 20px; }
        .lightbox-next { right: 20px; }
        .lightbox-counter {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 1.1rem;
            background: rgba(0, 0, 0, 0.6);
            padding: 8px 16px;
            border-radius: 20px;
        }

        /* Мобильная версия */
        @media (max-width: 768px) {
            body {
                overflow-x: hidden;
            }
            header {
                flex-direction: column;
                padding: 15px;
                gap: 12px;
                position: sticky;
                top: 0;
                background: var(--white);
                z-index: 100;
                box-shadow: 0 2px 5px rgba(0,0,0,0.1);
                align-items: stretch;
            }
            
            /* Первая строка: только лого и язык+корзина */
            .logo {
                font-size: 1.1rem;
                text-align: left;
            }
            
            .header-controls {
                position: absolute;
                top: 15px;
                right: 15px;
                display: flex;
                align-items: center;
                gap: 10px;
            }
            
            .lang-switcher {
                margin-right: 0;
                font-size: 0.8rem;
            }
            
            .cart-wrapper {
                position: relative;
            }
            
            /* Вторая строка: навигация (для главной страницы - 2 большие кнопки) */
            .nav-links {
                display: flex;
                justify-content: space-between;
                gap: 10px;
                width: 100%;
                position: static;
                transform: none;
                flex-wrap: nowrap;
            }
            
            .nav-links a {
                text-align: center;
                padding: 12px 15px;
                font-size: 0.85rem;
                border: 2px solid var(--primary);
                border-radius: 8px;
                background: var(--white);
                flex: 1;
                font-weight: 600;
                transition: all 0.3s;
                white-space: normal;
                line-height: 1.2;
            }
            
            .nav-links a:hover {
                background: var(--primary);
                color: var(--white);
            }
            
            .nav-links a::after {
                display: none;
            }
            
            /* Навигация на страницах каталога — пирамида, строки 3+2 */
            body:not(.index-page) .nav-links {
                display: flex !important;
                flex-direction: column !important;
                align-items: stretch !important;
                gap: 6px !important;
                width: 100% !important;
                box-sizing: border-box !important;
            }
            body:not(.index-page) .nav-links .nav-row {
                display: flex !important;
                gap: 6px !important;
                width: 100% !important;
                box-sizing: border-box !important;
            }
            body:not(.index-page) .nav-links a {
                padding: 8px 4px !important;
                font-size: 0.7rem !important;
                border: 1px solid #ddd !important;
                border-radius: 6px !important;
                background: var(--light) !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                flex: 1 1 0 !important;
                min-width: 0 !important;
                box-sizing: border-box !important;
                text-align: center !important;
            }
            
            /* О мастерской - мобильные стили */
            .about-section {
                padding: 20px 15px;
                margin: 20px 10px;
            }
            
            .about-content {
                font-size: 1.1rem;
                line-height: 1.7;
            }
            
            .custom-order-note {
                padding: 12px;
                margin-top: 15px;
                font-size: 1rem;
            }
            
            /* Добавляем отступы для основного контейнера */
            .container {
                padding-left: 15px;
                padding-right: 15px;
            }
            
            .product-container { 
                display: flex;
                flex-direction: column;
                width: 100%;
                max-width: 100vw;
                padding: 0;
                margin: 0;
                gap: 0;
                box-sizing: border-box;
            }
            .gallery {
                width: 100%;
                padding: 15px;
                box-sizing: border-box;
                order: 1;
                position: static;
            }
            .main-image {
                width: 100%;
                max-width: 100%;
                position: static;
                aspect-ratio: 3 / 4;
                background: var(--light);
                border-radius: 10px;
                overflow: hidden;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .main-image img {
                width: 100%;
                height: 100%;
                object-fit: contain;
                display: block;
            }
            .thumbnails {
                width: 100%;
                overflow-x: auto;
                display: flex;
                gap: 8px;
                padding-bottom: 10px;
            }
            .thumbnails img {
                width: 60px;
                height: 60px;
                flex-shrink: 0;
            }
            .add-to-cart-btn {
                width: 100%;
                margin-top: 15px;
                box-sizing: border-box;
            }
            
            /* Hide button in gallery on mobile */
            .gallery .add-to-cart-btn {
                display: none;
            }
            
            /* Show inline button on mobile */
            .add-to-cart-btn-inline {
                display: block !important;
                width: 100%;
                margin: 15px 0;
                padding: 15px;
                font-size: 1.1rem;
            }
            
            .product-info {
                width: 100%;
                padding: 15px;
                box-sizing: border-box;
                order: 2;
            }
            .product-info * {
                max-width: 100%;
                box-sizing: border-box;
            }
            .product-info h1 {
                font-size: 1.3rem;
                line-height: 1.3;
                word-wrap: break-word;
                overflow-wrap: break-word;
            }
            .product-info nav {
                font-size: 0.75rem;
                word-wrap: break-word;
                overflow-wrap: break-word;
            }
            .product-price {
                font-size: 1.5rem;
            }
            .product-desc {
                font-size: 1rem;
                line-height: 1.7;
                width: 100%;
            }
            .product-desc p {
                margin-bottom: 12px;
                word-wrap: break-word;
                overflow-wrap: break-word;
                word-break: keep-all;
            }
            .specs {
                font-size: 1rem;
                padding: 15px;
                width: 100%;
                box-sizing: border-box;
            }
            .specs li {
                word-wrap: break-word;
                overflow-wrap: break-word;
                margin-bottom: 10px;
            }
            footer {
                padding: 30px 5% 80px 5%;
            }
            .footer-content {
                flex-direction: column-reverse;
                gap: 30px;
                align-items: flex-start;
            }
            .footer-content > div:first-child {
                text-align: left;
            }
            .footer-content > div:last-child {
                text-align: right;
                align-self: flex-end;
            }
            .social-links {
                align-items: flex-end;
            }
        }

        /* --- FOOTER --- */
        footer {
            background: #2a3320;
            color: var(--light);
            padding: 40px 5%;
            margin-top: auto;
        }
        .footer-content {
            display: flex;
            flex-wrap: nowrap;
            justify-content: space-between;
            max-width: 1200px;
            margin: 0 auto;
            gap: 40px;
            align-items: flex-start;
        }
        .footer-logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--white);
            margin-bottom: 10px;
            display: block;
            font-family: 'Lora', serif;
        }
        .social-links {
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: flex-end;
        }
        .social-item {
            color: #bdc3c7;
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .social-item:hover { color: var(--accent); }
        .social-item i { width: 20px; text-align: center; }
        .social-item span { width: 20px; text-align: center; display: inline-block; }
        .social-item span { width: 20px; text-align: center; display: inline-block; }

        /* --- MODALS --- */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(3px);
        }

        .modal-window {
            background: white;
            padding: 40px;
            border-radius: 12px;
            width: 90%;
            max-width: 620px;
            position: relative;
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: 0 20px 50px rgba(0,0,0,0.3);
        }

        .close-modal {
            position: absolute;
            top: 15px; right: 20px;
            font-size: 1.8rem;
            cursor: pointer;
            color: #aaa;
            transition: color 0.3s;
        }
        .close-modal:hover { color: var(--dark); }

        .cart-items {
            list-style: none;
            padding: 0;
            margin: 20px 0;
            border-top: 1px solid #eee;
        }
        .cart-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 0;
            border-bottom: 1px solid #eee;
            min-width: 0;
            overflow: hidden;
            gap: 12px;
            font-size: 1rem;
        }
        .cart-total {
            font-weight: bold;
            text-align: right;
            font-size: 1.3rem;
            margin-top: 20px;
            color: var(--primary);
        }

        /* Контакты в модалке */
        .contact-links {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 25px;
        }
        .contact-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 14px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: bold;
            transition: 0.3s;
            gap: 10px;
        }
        .btn-vk { background: #0077ff; color: white; }
        .btn-vk:hover { background: #0066dd; }
        .btn-tg { background: #0088cc; color: white; }
        .btn-tg:hover { background: #0077bb; }
        .btn-inst { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: white; }
        .btn-inst:hover { opacity: 0.9; }
        .btn-threads { background: #000000; color: white; }
        .btn-threads:hover { background: #333333; }



/* ==================== HOVER НА МИНИАТЮРАХ КАТАЛОГА ==================== */
.product-card {
    transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.product-card a img {
    transition: transform 0.35s ease;
    overflow: hidden;
}
.product-card:hover a img {
    transform: scale(1.04);
}

        /* --- PACKAGING SECTION --- */
        .packaging-section {
            margin-bottom: 60px;
        }
        .packaging-section > h2 {
            font-family: 'Lora', serif;
            font-size: 1.8rem;
            color: var(--dark);
            margin-bottom: 20px;
        }
        .packaging-card {
            background: white;
            border-radius: 16px;
            border: 1px solid #e8e4da;
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
            overflow: hidden;
        }
        .packaging-inner {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0;
        }
        @media (max-width: 768px) {
            .packaging-inner { grid-template-columns: 1fr; }
        }
        .packaging-text {
            padding: 35px 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 16px;
        }
        @media (max-width: 768px) {
            .packaging-text { padding: 25px 20px; order: 2; }
        }
        .packaging-text h3 {
            font-family: 'Lora', serif;
            font-size: 1.45rem;
            color: var(--dark);
            margin: 0 0 8px;
        }
        .packaging-text p {
            color: #555;
            line-height: 1.75;
            font-size: 1.05rem;
            margin: 0;
        }
        .packaging-text .pack-features {
            list-style: none;
            padding: 0;
            margin: 8px 0 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .packaging-text .pack-features li {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            font-size: 1rem;
            color: #555;
        }
        .packaging-text .pack-features li::before {
            content: '✦';
            color: var(--primary);
            flex-shrink: 0;
            margin-top: 2px;
            font-size: 0.8rem;
        }
        .packaging-gallery {
            padding: 20px;
            background: var(--light);
            border-left: 1px solid #e8e4da;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        @media (max-width: 768px) {
            .packaging-gallery { border-left: none; border-bottom: 1px solid #e8e4da; order: 1; }
        }
        .packaging-gallery-title {
            font-size: 0.8rem;
            font-weight: bold;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .pack-photos {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }
        .pack-photo {
            aspect-ratio: 1;
            overflow: hidden;
            border-radius: 8px;
            cursor: zoom-in;
            position: relative;
            background: #ddd;
        }
        .pack-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
            display: block;
        }
        .pack-photo:hover img { transform: scale(1.05); }
        .pack-photo-placeholder {
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #e8e4da 0%, #d4cfc5 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: #aaa;
        }
        /* Packaging lightbox reuses existing lightbox styles */

        /* --- FAQ SECTION --- */
        .faq-section {
            margin-bottom: 60px;
        }
        .faq-section h2 {
            font-family: 'Lora', serif;
            font-size: 1.8rem;
            color: var(--dark);
            margin-bottom: 20px;
        }
        .faq-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .faq-item {
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            border: 1px solid #eee;
            overflow: hidden;
        }
        .faq-question {
            width: 100%;
            background: none;
            border: none;
            padding: 18px 22px;
            text-align: left;
            font-family: 'Alice', serif;
            font-size: 1rem;
            color: var(--dark);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }
        .faq-question:hover { color: var(--accent); }
        .faq-question::after {
            content: '+';
            font-size: 1.4rem;
            color: var(--primary);
            flex-shrink: 0;
            transition: transform 0.3s;
        }
        .faq-item.open .faq-question::after {
            transform: rotate(45deg);
        }
        .faq-answer {
            display: none;
            padding: 0 22px 18px;
            color: #555;
            line-height: 1.7;
            font-size: 1.02rem;
        }
        .faq-item.open .faq-answer { display: block; }

        /* --- BLOG SECTION --- */
        .blog-section {
            margin-bottom: 60px;
        }
        .blog-section h2 {
            font-family: 'Lora', serif;
            font-size: 1.8rem;
            color: var(--dark);
            margin-bottom: 20px;
        }
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
            margin-bottom: 24px;
            align-items: stretch;
        }
        @media (max-width: 768px) {
            .blog-grid { grid-template-columns: 1fr; }
        }
        .blog-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 3px 12px rgba(0,0,0,0.07);
            border: 1px solid #eee;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s, box-shadow 0.3s;
            height: 420px;
        }
        .blog-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        .blog-card img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            object-position: center center;
        }
        .blog-card-body {
            padding: 18px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .blog-card-date {
            font-size: 0.85rem;
            color: #999;
            margin-bottom: 8px;
        }
        .blog-card h3 {
            font-family: 'Lora', serif;
            font-size: 1.15rem;
            color: var(--dark);
            margin: 0 0 10px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .blog-card p {
            font-size: 1rem;
            color: #666;
            margin: 0 0 16px;
            line-height: 1.6;
            flex: 1;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .blog-card a.btn-blog {
            display: inline-block;
            color: var(--primary);
            font-weight: bold;
            font-size: 0.92rem;
            text-decoration: none;
            border: 1.5px solid var(--primary);
            border-radius: 6px;
            padding: 7px 14px;
            transition: background 0.3s, color 0.3s;
            align-self: flex-start;
        }
        .blog-card a.btn-blog:hover {
            background: var(--primary);
            color: white;
        }
        .blog-all-link {
            text-align: center;
            margin-top: 8px;
        }
        .blog-all-link a {
            color: var(--primary);
            font-weight: bold;
            text-decoration: none;
            border-bottom: 2px solid var(--primary);
            padding-bottom: 2px;
        }

        /* --- CATALOG GRID: 3+3 rows + 1 centered last --- */
        .category-grid-wrapper {
            display: flex;
            flex-direction: column;
            gap: 30px;
            margin-bottom: 80px;
            overflow: hidden;
        }
        .category-grid-main {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }
        .category-grid-center {
            display: flex;
            justify-content: center;
            gap: 30px;
        }
        .category-grid-center .category-preview {
            width: calc(33.333% - 20px);
            min-width: 0;
            max-width: 340px;
        }
        @media (max-width: 992px) {
            .category-grid-main { grid-template-columns: repeat(2, 1fr); }
            .category-grid-center .category-preview { width: calc(50% - 15px); max-width: none; }
        }
        @media (max-width: 576px) {
            .category-grid-main { grid-template-columns: 1fr; gap: 16px; width: 100%; box-sizing: border-box; }
            .category-grid-wrapper { gap: 16px; width: 100%; box-sizing: border-box; overflow: hidden; }
            .category-grid-center { flex-direction: column; align-items: stretch; width: 100%; box-sizing: border-box; }
            .category-grid-center .category-preview { width: 100%; max-width: none; box-sizing: border-box; }
        }
        @media (max-width: 768px) {
            .category-grid-main { width: 100%; box-sizing: border-box; }
            .category-grid-wrapper { width: 100%; box-sizing: border-box; overflow: hidden; }
        }

        /* ================================================
           BLOG INDEX PAGE
        ================================================ */
        .blog-index-grid {
            display: flex;
            flex-direction: column;
            gap: 28px;
            margin-bottom: 60px;
        }
        .blog-index-card {
            display: grid;
            grid-template-columns: 340px 1fr;
            gap: 0;
            background: white;
            border-radius: 14px;
            overflow: hidden;
            border: 1px solid #eee;
            box-shadow: 0 3px 12px rgba(0,0,0,0.06);
            transition: box-shadow 0.3s, transform 0.3s;
            position: relative;
            min-height: 240px;
        }
        .blog-index-card:hover {
            box-shadow: 0 8px 24px rgba(0,0,0,0.1);
            transform: translateY(-3px);
        }
        /* Full-card click overlay */
        .blog-card-link {
            position: absolute;
            inset: 0;
            z-index: 1;
        }
        .blog-index-body h2 a,
        .blog-index-body .btn-blog {
            position: relative;
            z-index: 2;
        }
        .blog-index-img-link {
            display: block;
            overflow: hidden;
        }
        .blog-index-img-link img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            min-height: 240px;
            max-height: 320px;
            transition: transform 0.4s;
            display: block;
        }
        .blog-index-card:hover .blog-index-img-link img { transform: scale(1.04); }
        .blog-index-body {
            padding: 30px 36px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: stretch;
            gap: 12px;
        }
        .blog-meta {
            align-self: stretch;
            margin-bottom: 4px;
        }
        .blog-index-body h2 {
            font-family: 'Lora', serif;
            font-size: 1.5rem;
            margin: 0;
            color: var(--dark);
            line-height: 1.3;
            text-align: center;
        }
        .blog-index-body h2 a {
            text-decoration: none;
            color: inherit;
            transition: color 0.2s;
        }
        .blog-index-body h2 a:hover { color: var(--accent); }
        .blog-index-body p {
            color: #555;
            font-size: 1.08rem;
            line-height: 1.75;
            margin: 0;
            text-align: left;
        }
        .blog-index-body .btn-blog {
            align-self: center;
            margin-top: 4px;
            display: inline-block;
            color: var(--primary);
            font-weight: bold;
            font-size: 0.92rem;
            text-decoration: none;
            border: 1.5px solid var(--primary);
            border-radius: 6px;
            padding: 7px 18px;
            transition: background 0.3s, color 0.3s;
        }
        .blog-index-body .btn-blog:hover {
            background: var(--primary);
            color: white;
        }
        @media (max-width: 700px) {
            .blog-index-card {
                grid-template-columns: 1fr;
                min-height: unset;
            }
            .blog-index-img-link img { min-height: 200px; max-height: 240px; }
            .blog-index-body { padding: 22px 20px; }
        }

        /* ================================================
           BLOG META / TAGS
        ================================================ */
        .blog-meta {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 3px;
            flex-wrap: wrap;
        }
        .blog-date {
            font-size: 0.95rem;
            color: #999;
            font-family: 'Lora', serif;
        }
        .blog-tag {
            font-size: 0.82rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--primary);
            background: rgba(93,109,62,0.1);
            padding: 3px 8px;
            border-radius: 20px;
        }
        /* No text-indent on centered blog card content */
        .blog-index-body p { text-indent: 0 !important; }

        /* ================================================
           ARTICLE PAGE
        ================================================ */
        .blog-article {
            max-width: 760px;
            margin: 0 auto;
            padding-top: 20px;
            padding-bottom: 60px;
        }
        .article-header {
            margin-bottom: 28px;
        }
        .article-header h1 {
            font-family: 'Lora', serif;
            font-size: 2rem;
            line-height: 1.3;
            color: var(--dark);
            margin: 10px 0 14px;
            padding-bottom: 14px;
            border-bottom: 3px solid var(--primary);
            display: block;
            position: static;
            text-align: center;
        }
        /* Sticky article title bar */
        .article-sticky-title {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 200;
            background: rgba(255,255,255,0.97);
            backdrop-filter: blur(6px);
            border-bottom: 2px solid var(--primary);
            padding: 10px 24px;
            text-align: center;
            font-family: 'Lora', serif;
            font-size: 1rem;
            font-weight: 600;
            color: var(--dark);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
            transition: opacity 0.25s ease, transform 0.25s ease;
            opacity: 0;
            transform: translateY(-100%);
        }
        .article-sticky-title.visible {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }
        @media (max-width: 640px) {
            .article-header h1 { font-size: 1.5rem; }
            .article-sticky-title { font-size: 0.9rem; }
        }
        .article-lead {
            display: none;
        }
        .article-hero-img {
            margin: 0 0 32px;
            border-radius: 12px;
            overflow: hidden;
        }
        .article-hero-img img {
            width: 100%;
            max-height: 480px;
            object-fit: cover;
            display: block;
        }
        .article-hero-img figcaption {
            font-size: 0.92rem;
            color: #888;
            text-align: center;
            padding: 8px 16px;
            background: var(--light);
        }
        .article-body {
            font-size: 1.1rem;
            line-height: 1.85;
            color: #444;
        }
        .article-body h2 {
            font-family: 'Lora', serif;
            font-size: 1.5rem;
            color: var(--dark);
            margin: 36px 0 14px;
            padding-bottom: 8px;
            border-bottom: 2px solid var(--light);
        }
        .article-body p {
            margin: 0 0 20px;
        }
        .article-body figure {
            margin: 28px 0;
            border-radius: 10px;
            overflow: hidden;
        }
        .article-body figure img {
            width: 100%;
            height: auto;
            display: block;
        }
        .article-body figcaption {
            font-size: 0.92rem;
            color: #888;
            text-align: center;
            padding: 8px 16px;
            background: var(--light);
        }
        .article-gallery {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin: 28px 0;
        }
        .article-gallery figure {
            margin: 0;
        }
        .article-gallery figure img {
            height: auto;
        }
        @media (max-width: 480px) {
            .article-gallery { grid-template-columns: 1fr; }
        }
        .article-quote {
            border-left: 4px solid var(--accent);
            margin: 28px 0;
            padding: 16px 24px;
            background: rgba(211,84,0,0.04);
            border-radius: 0 8px 8px 0;
        }
        .article-quote p {
            font-style: italic;
            font-size: 1.05rem;
            color: #555;
            margin: 0;
        }

        /* Steps (How it's made template) */
        .article-steps {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin: 24px 0;
        }
        .step-card {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            background: white;
            border: 1px solid #eee;
            border-radius: 10px;
            padding: 16px 20px;
        }
        .step-num {
            font-family: 'Lora', serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            opacity: 0.5;
            flex-shrink: 0;
            min-width: 32px;
        }
        .step-card strong {
            display: block;
            margin-bottom: 4px;
            color: var(--dark);
        }
        .step-card p {
            font-size: 1rem;
            color: #666;
            margin: 0;
        }

        /* Article footer */
        .article-footer {
            margin-top: 48px;
            padding-top: 24px;
            border-top: 1px solid #eee;
        }
        .article-share {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            font-size: 1rem;
            color: #888;
        }
        .share-btn {
            display: inline-block;
            padding: 7px 16px;
            border: 1.5px solid var(--primary);
            border-radius: 20px;
            color: var(--primary);
            font-size: 0.95rem;
            font-weight: 600;
            text-decoration: none;
            transition: background 0.2s, color 0.2s;
        }
        .share-btn:hover { background: var(--primary); color: white; }

        /* ================================================
           PACKAGING LIGHTBOX HELPER
        ================================================ */
        .pack-lightbox-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.85);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            cursor: zoom-out;
        }
        .pack-lightbox-overlay.active { display: flex; }
        .pack-lightbox-overlay img {
            max-width: 90vw;
            max-height: 88vh;
            border-radius: 8px;
            object-fit: contain;
        }
        .pack-lightbox-overlay .close-lbx {
            position: absolute;
            top: 18px;
            right: 24px;
            color: white;
            font-size: 2rem;
            cursor: pointer;
            line-height: 1;
        }

        /* Blog card — fully clickable wrapper */
        .blog-card-link-wrap {
            display: flex;
            flex-direction: column;
            text-decoration: none;
            color: inherit;
            height: 100%;
        }
        .blog-card-link-wrap .blog-card {
            height: 100%;
        }
        .blog-card-link-wrap:hover .blog-card {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            align-items: stretch;
        }
        @media (max-width: 768px) {
            .blog-grid { grid-template-columns: 1fr; }
        }

        /* ================================================
           PARAGRAPH INDENTS — all pages except main
        ================================================ */
        body:not(.index-page) .category-description p,
        body:not(.index-page) .product-desc p,
        body:not(.index-page) .article-body p,
        body:not(.index-page) .article-quote p,
        body:not(.index-page) .packaging-text p,
        body:not(.index-page) .blog-index-body p,
        body:not(.index-page) .faq-answer p {
            text-indent: 1.5em;
        }

        /* No indent on first paragraph after heading or block element */
        body:not(.index-page) .category-description p:first-child,
        body:not(.index-page) .product-desc p:first-child,
        body:not(.index-page) .article-body h2 + p,
        body:not(.index-page) .article-body h3 + p,
        body:not(.index-page) .article-body figure + p,
        body:not(.index-page) .article-body blockquote + p,
        body:not(.index-page) .article-body p:first-child,
        body:not(.index-page) .article-quote p,
        body:not(.index-page) .faq-answer p:first-child,
        body:not(.index-page) .packaging-text p:first-child,
        body:not(.index-page) .blog-index-body p:first-child {
            text-indent: 0;
        }

        body:not(.index-page) .product-desc p:has(.btn-gnome-link),
        body:not(.index-page) .category-description p:has(.btn-gnome-link),
        body:not(.index-page) .article-body p:has(.btn-gnome-link) {
            text-indent: 0;
        }

        /* No indent inside link buttons themselves */
        .btn-gnome-link {
            text-indent: 0 !important;
        }

.icon-cart-plus, .icon-basket, .icon-chevron-left, .icon-chevron-right,
.icon-check, .icon-trash {
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
    flex-shrink: 0;
}
.icon-basket { color: var(--primary); }

        /* ── Breadcrumb navigation ── */
        .breadcrumb-nav {
            font-size: 0.88rem;
            margin-bottom: 12px;
            color: #888;
        }
        .breadcrumb-nav ol {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            align-items: center;
        }
        .breadcrumb-nav li {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .breadcrumb-nav li + li::before {
            content: "/";
            color: #bbb;
        }
        .breadcrumb-nav a {
            color: #888;
            text-decoration: none;
        }
        .breadcrumb-nav a:hover { color: var(--primary); }
        .breadcrumb-nav [aria-current="page"] { color: var(--dark); font-weight: 500; }

        /* ── Mobile header sticky + hero overlap fix ── */
        @media (max-width: 768px) {
            header {
                position: sticky !important;
                top: 0 !important;
                z-index: 1000 !important;
            }
            .hero {
                padding-top: 20px;
                padding-bottom: 20px;
                min-height: 35vh;
                height: auto;
                box-sizing: border-box;
            }
            .hero h1 {
                font-size: 1.6rem;
                padding: 0 10px;
            }
            .hero p {
                font-size: 1rem;
                padding: 0 10px;
            }
        }

        /* ── Hero two-line title ── */
        .hero h1 {
            font-size: 3rem;
            margin-bottom: 4px;
        }
        .hero-seo-subtitle {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0,0,0,0);
            white-space: nowrap;
            border: 0;
        }
        .hero-sub {
            font-size: 1.3rem;
            font-family: 'Lora', serif;
            color: rgba(255,255,255,0.92);
            margin: 0 0 12px 0;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
            font-weight: 400;
            letter-spacing: 0.02em;
        }
        @media (max-width: 768px) {
            .hero h1 { font-size: 2rem; }
            .hero-sub { font-size: 1.05rem; }
        }

        /* ── Master photo block ── */
        .about-master {
            display: flex;
            gap: 40px;
            align-items: flex-start;
            margin-bottom: 24px;
        }
        .about-master-photo {
            flex-shrink: 0;
            width: 240px;
        }
        .about-master-photo img {
            width: 240px;
            height: 300px;
            object-fit: cover;
            object-position: center 15%;
            border-radius: 12px;
            display: block;
            box-shadow: 0 6px 24px rgba(0,0,0,0.14);
        }
        .about-master-photo figcaption {
            font-size: 0.78rem;
            color: #999;
            text-align: center;
            margin-top: 8px;
            font-style: italic;
        }
        .about-master-text { flex: 1; padding-top: 4px; }
        .about-master-text p { margin-bottom: 16px; }
        @media (max-width: 640px) {
            .about-master {
                flex-direction: column;
                align-items: center;
            }
            .about-master-photo { width: 100%; max-width: 280px; }
            .about-master-photo img { width: 100%; height: 300px; }
        }
