/* Reset & Base Styles */

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

/* Brand fonts loaded from front/css/fonts.css (Gotham / Helvetica Neue World) */

:root {
    /* ---- Brand -------------------------------------------------
       Red is the brand colour and carries every interactive
       element. Ink black carries structure and typography.
       No brown anywhere in the palette.                          */
    --primary-color: #d62129;   /* brand red */
    --accent-color: #d62129;    /* same red, kept for existing usages */
    --hover-color: #b01b21;     /* pressed / hover red */
    --accent-soft: rgba(214, 33, 41, 0.08);
    --secondary-color: #f2545b; /* light red, gradients only */

    /* ---- Ink & neutrals ----------------------------------------
       Cool porcelain neutrals: they stay out of the way of the
       pastel product photography and keep the red clean.         */
    --ink: #15181d;             /* headings, strong type */
    --ink-soft: #2c313a;
    --text-color: #1f2328;
    --text-light: #6b7280;
    --bg-color: #fff;
    --bg-light: #f1f3f6;        /* neutral surface */
    --bg-tint: #f7f8fa;
    --border-color: #e3e7ec;

    --star-color: #FFD700;
    --shadow: 0 2px 8px rgba(21, 24, 29, 0.08);
    --shadow-hover: 0 8px 24px rgba(21, 24, 29, 0.12);
    /* font stacks come from fonts.css — keep fallbacks here too */
    --font-heading: 'Helvetica Neue World Caps', 'Helvetica Neue World', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-menu: 'Helvetica Neue World Caps', 'Helvetica Neue World', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Helvetica Neue World', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-display: var(--font-heading);
    --heading-transform: uppercase;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    font-feature-settings: "kern" 1, "liga" 1;
    font-weight: 400;
}

body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 100px;
}


/* 100px side padding is far too much on small laptops / tablets and was
   pushing the header menu over the logo. Defined before the 768/480
   overrides below so those still win on phones. */
@media (max-width: 1280px) {
    .container {
        padding: 0 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* Header Styles */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-img {
    width: 190px;
    height: auto;
    flex-shrink: 0;
    color: var(--primary-color);
}

.footer-logo-img {
    width: 190px;
    height: auto;
    flex-shrink: 0;
    display: block;
}

.logo-text {
    font-family: var(--font-heading);
    text-transform: var(--heading-transform);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.main-nav .mobile-menu-footer {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-menu);
    font-weight: 700;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.dropdown-toggle::after {
    content: '';
    width: 12px;
    height: 12px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
    margin-top: 2px;
    flex-shrink: 0;
}

.nav-item-dropdown:hover .dropdown-toggle::after,
.nav-item-dropdown:focus-within .dropdown-toggle::after {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    background-color: var(--bg-color);
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    list-style: none;
    margin: 0;
    z-index: 1000;
    /* must stay visible: a 3rd-level submenu sits outside this box and
       `overflow: hidden` used to clip it away entirely */
    overflow: visible;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* `>` matters: with a descendant selector, hovering the top item opened every
   nested level at once. Each level now opens only on its own hover. */
.nav-item-dropdown:hover > .dropdown-menu,
.nav-item-dropdown:focus-within > .dropdown-menu {
    display: block;
}

/* ---- 3rd level: flies out to the side of its parent item -------- */
.dropdown-menu .nav-item-dropdown {
    position: relative;
}

.dropdown-menu .nav-item-dropdown > .dropdown-menu {
    top: -0.5rem;
    left: 100%;
    margin-left: 2px;
    animation: fadeInRight 0.2s ease-out;
}

/* flip to the left edge when there is no room on the right */
.nav-list > li:last-child .dropdown-menu .nav-item-dropdown > .dropdown-menu,
.dropdown-menu .nav-item-dropdown.flip-left > .dropdown-menu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 2px;
}

/* a parent item that has its own submenu gets a chevron */
.dropdown-menu .nav-item-dropdown > .dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dropdown-menu .nav-item-dropdown > .dropdown-link::after {
    content: '';
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    opacity: 0.55;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Bridge area between toggle and menu */
.nav-item-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    z-index: 999;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 400;
}

.dropdown-link:hover,
.dropdown-link.active {
    background-color: var(--bg-light);
    color: var(--accent-color);
    font-weight: 700;
    padding-left: 2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.search-toggle:hover {
    color: var(--primary-color);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s;
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.lang-btn:hover {
    background-color: var(--bg-light);
}

.lang-btn.active {
    background-color: var(--accent-color);
    color: white;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    color: var(--text-color);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 6px;
    padding: 0.5rem;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link[aria-label="Facebook"] svg {
    color: #1877F2;
}

.social-link[aria-label="Instagram"] svg {
    color: #E4405F;
}

.social-link[aria-label="YouTube"] svg {
    color: #FF0000;
}

.social-link[aria-label="Facebook"]:hover {
    background-color: rgba(24, 119, 242, 0.1);
}

.social-link[aria-label="Instagram"]:hover {
    background-color: rgba(228, 64, 95, 0.1);
}

.social-link[aria-label="YouTube"]:hover {
    background-color: rgba(255, 0, 0, 0.1);
}

/* Mobile Menu Header - Hidden on desktop */
.mobile-menu-header {
    display: none;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    width: 28px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    z-index: 1002;
    position: relative;
    border-radius: 6px;
    transition: all 0.3s ease;
    gap: 4px;
    min-width: 28px;
    min-height: 21px;
    align-self: center;
}

.mobile-menu-toggle:hover {
    background-color: rgba(21, 24, 29, 0.06);
}

.mobile-menu-toggle:active {
    background-color: rgba(21, 24, 29, 0.10);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    display: block;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    min-height: 3px;
}

.mobile-menu-toggle span:nth-child(1) {
    transform-origin: top left;
}

.mobile-menu-toggle span:nth-child(3) {
    transform-origin: bottom left;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--primary-color);
    width: calc(100% * 1.414);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    width: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: var(--primary-color);
    width: calc(100% * 1.414);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: all;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
    padding: 4rem 1.5rem 2rem;
}

.mobile-menu-overlay.active .mobile-nav {
    right: 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-menu);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary-color);
}

.mobile-nav-item-dropdown {
    position: relative;
}

.mobile-nav-item-dropdown .mobile-nav-link.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-item-dropdown .mobile-nav-link.dropdown-toggle::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.mobile-nav-item-dropdown.active .mobile-nav-link.dropdown-toggle::after {
    transform: rotate(45deg);
}

.mobile-dropdown-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-item-dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s;
}

.mobile-dropdown-link:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
    padding-left: 2rem;
}

/* Search overlay */
body.search-open {
    overflow: hidden;
}

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 11vh 1.25rem 2rem;
    background: rgba(21, 24, 29, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.search-overlay[hidden] {
    display: none;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-panel {
    width: min(680px, 100%);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(21, 24, 29, 0.18);
    overflow: hidden;
    transform: translateY(-10px);
    transition: transform 0.22s ease;
}

.search-overlay.active .search-panel {
    transform: none;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 0.85rem 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

.search-bar-icon {
    flex-shrink: 0;
    color: var(--text-light);
}

.search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.35rem 0;
    font-size: 1.05rem;
    font-family: var(--font-body);
    color: var(--text-color);
}

.search-input:focus {
    outline: none;
}

.search-input::-webkit-search-cancel-button {
    display: none;
}

.search-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: var(--bg-light);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-close:hover {
    background: var(--accent-soft);
    color: var(--accent-color);
}

.search-hint,
.search-status {
    margin: 0;
    padding: 1.1rem 1.25rem 1.25rem;
    color: var(--text-light);
    font-size: 0.92rem;
}

.search-results {
    max-height: min(52vh, 420px);
    overflow-y: auto;
}

.search-result {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 0.7rem 1rem;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid var(--border-color);
}

.search-result:hover {
    background: var(--bg-tint);
}

.search-result-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
    display: block;
}

.search-result-thumb img,
.search-result-ph {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.search-result-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.search-result-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-type {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-color);
}

@media (max-width: 640px) {
    .search-overlay {
        padding: 4.5rem 0.75rem 1rem;
        align-items: stretch;
    }

    .search-panel {
        border-radius: 16px;
    }
}


/* Cover Section / Slider */
.cover-section {
    margin: 0 !important;
    position: relative !important;
    width: 100% !important;
    height: 60vh !important;
    min-height: 500px !important;
    overflow: hidden !important;
}

.cover-slider {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

.cover-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.cover-slide.active {
    opacity: 1 !important;
    z-index: 2 !important;
}

.cover-link {
    display: block !important;
    text-decoration: none;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.cover-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Caption sits dead centre of the slide, on its own glass plate so the
   artwork underneath can never swallow it. */
.cover-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* keep clear of the prev/next arrows (offset 100px + 50px wide) */
    padding: 2rem 172px;
    color: #fff;
    text-align: center;
    z-index: 3;
    pointer-events: none;
}

.cover-caption {
    max-width: min(90%, 900px);
    padding: 1.25rem 2.5rem;
    border-radius: 20px;
    background: rgba(18, 15, 14, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    backdrop-filter: blur(14px) saturate(130%);
}

/* animate on entrance only, and re-run each time a slide becomes active */
.cover-slide.active .cover-caption {
    animation: coverCaptionIn 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* without backdrop-filter the plate has to carry the contrast on its own */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .cover-caption {
        background: rgba(18, 15, 14, 0.5);
    }
}

.cover-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.06em;
    text-transform: none;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

/* accent rule under the caption */
.cover-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 0.9rem auto 0;
    border-radius: 3px;
    background: var(--accent-color);
}

html[lang="en"] .cover-title,
html[lang="ru"] .cover-title {
    text-transform: uppercase;
}

@keyframes coverCaptionIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .cover-content {
        /* arrows sit at 10px and are 40px wide on small screens */
        padding: 1.5rem 62px;
    }

    .cover-caption {
        padding: 1.1rem 1.5rem;
        border-radius: 16px;
    }

    .cover-title {
        letter-spacing: 0.04em;
    }

    .cover-title::after {
        width: 40px;
        margin-top: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cover-slide.active .cover-caption {
        animation: none;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 10;
    box-shadow: 0 6px 18px rgba(214, 33, 41, 0.32);
}

.slider-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 10px 24px rgba(214, 33, 41, 0.45);
}

.slider-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.slider-prev {
    left: 100px;
}

.slider-next {
    right: 100px;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background-color: var(--accent-color);
    border-color: #fff;
    width: 30px;
    border-radius: 6px;
}

/* Section Titles — მთავრული / caps */
.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--ink);
    text-transform: var(--heading-transform);
}

/* Uppercase → Latin caps + Georgian mtavruli (Helvetica Neue World / Gotham) */
html[lang="ka"] .section-title,
html[lang="en"] .section-title,
html[lang="ru"] .section-title,
html[lang="ka"] .product-name,
html[lang="en"] .product-name,
html[lang="ru"] .product-name,
html[lang="ka"] .product-title,
html[lang="en"] .product-title,
html[lang="ru"] .product-title,
html[lang="ka"] .required-product-name,
html[lang="en"] .required-product-name,
html[lang="ru"] .required-product-name,
body.lang-geo .section-title,
body.lang-eng .section-title,
body.lang-geo .product-name,
body.lang-eng .product-name,
body.lang-geo .product-title,
body.lang-eng .product-title,
body.lang-geo .required-product-name,
body.lang-eng .required-product-name {
    text-transform: uppercase;
}

/* Trending Section */
.trending-section {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.carousel-container {
    position: relative;
}

.carousel-wrapper {
    overflow: hidden;
    margin: 0 50px;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 calc((100% - 100px) / 6);
    min-width: calc((100% - 100px) / 6);
    max-width: calc((100% - 100px) / 6);
    flex-shrink: 0;
}

@media (max-width: 1920px) {
    .carousel-item {
        flex: 0 0 calc((100% - 100px) / 5);
        min-width: calc((100% - 100px) / 5);
        max-width: calc((100% - 100px) / 5);
    }
}

@media (max-width: 1600px) {
    .carousel-item {
        flex: 0 0 calc((100% - 80px) / 4);
        min-width: calc((100% - 80px) / 4);
        max-width: calc((100% - 80px) / 4);
    }
}

@media (max-width: 1200px) {
    .carousel-item {
        flex: 0 0 calc((100% - 60px) / 3);
        min-width: calc((100% - 60px) / 3);
        max-width: calc((100% - 60px) / 3);
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Product Cards */
.product-card,
.product-link {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    display: block;
    box-shadow: var(--shadow);
}

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

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: var(--bg-color);
    padding: 1.5rem 1.25rem 0.75rem;
    box-sizing: border-box;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image img,
.product-link:hover .product-image img {
    transform: scale(1.1);
}

.product-name {
    font-family: var(--font-heading);
    padding: 1rem;
    font-size: 1.1rem;
    text-align: center;
    text-transform: none;
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1rem 1rem;
}

.stars {
    display: flex;
    gap: 2px;
    color: var(--star-color);
}

.star {
    font-size: 1rem;
}

.rating-value {
    font-weight: 600;
    color: var(--text-color);
}

.review-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================================
   About Company Section
   Layout is owned by the template, not by the CMS editor.
   ============================================================ */
.about-company-section {
    position: relative;
    padding: 5rem 0;
    background: var(--bg-tint);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* same metrics as the site-wide .container */
.about-company-inner {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 100px;
}

.about-company-content {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 2fr);
    gap: 4.5rem;
    align-items: start;
}

/* ---- Media column ----------------------------------------- */
.about-company-media {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-company-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.25rem 2rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(21, 24, 29, 0.06);
    overflow: hidden;
    max-width: none;
    max-height: none;
}

.about-company-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 190px;
    object-fit: contain;   /* a logo must never be cropped */
    float: none !important; /* editor sometimes injects float:left */
}

/* Certification badges */
.about-company-badges {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.about-company-badges li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--ink-soft);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.about-badge-ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: var(--accent-color);
    background: var(--accent-soft);
}

.about-badge-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.about-badge-label {
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-light);
}

/* the standards always stay on one line — never split "ISO 9001:2015" */
.about-badge-value {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.2px;
    color: var(--text-color);
    white-space: nowrap;
}

/* ---- Text column ------------------------------------------- */
.about-company-text {
    display: flex;
    flex-direction: column;
}

.about-company-title {
    position: relative;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 1.75rem;
    padding-bottom: 1rem;
}

.about-company-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent-color);
}

.about-company-lead {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--ink-soft);
    font-weight: 500;
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
    border-left: 3px solid var(--accent-color);
}

/* On a wide container the copy flows into balanced columns instead of
   running as one very long line. column-width decides the count itself. */
.about-company-body {
    columns: 430px auto;
    column-gap: 4rem;
}

.about-company-paragraph {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-color);
    margin: 0 0 1.1rem;
    break-inside: avoid-column;
}

.about-company-paragraph:last-child {
    margin-bottom: 0;
}

/* ---- Read more --------------------------------------------- */
.about-company-more {
    overflow: hidden;
}

.about-company-more.is-collapsed {
    position: relative;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.about-company-more:not(.is-collapsed) {
    max-height: 400vh;
    opacity: 1;
    transition: max-height 0.5s ease, opacity 0.35s ease;
}

.about-company-toggle {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.7rem 1.4rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    background: transparent;
    border: 1px solid rgba(214, 33, 41, 0.35);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.about-company-toggle:hover {
    color: #fff;
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.about-company-toggle:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.about-toggle-ico {
    transition: transform 0.25s ease;
}

.about-company-toggle.is-open .about-toggle-ico {
    transform: rotate(180deg);
}

/* ---- Responsive -------------------------------------------- */
/* wide enough for two text columns — show everything, drop the toggle */
@media (min-width: 1500px) {
    .about-company-more,
    .about-company-more.is-collapsed {
        max-height: none;
        opacity: 1;
        pointer-events: auto;
    }

    .about-company-toggle {
        display: none;
    }
}

@media (max-width: 1400px) {
    .about-company-inner {
        padding: 0 3rem;
    }

    .about-company-content {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .about-company-content {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .about-company-media {
        position: static;
        max-width: 460px;
    }

    .about-company-text {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .about-company-section {
        padding: 3rem 0;
    }

    .about-company-inner {
        padding: 0 1.5rem;
    }

    .about-company-image {
        padding: 1.5rem 1.25rem;
    }

    .about-company-image img {
        max-height: 130px;
    }

    .about-company-title {
        font-size: 1.6rem;
        margin-bottom: 1.35rem;
    }

    .about-company-lead {
        font-size: 1rem;
        padding-left: 1rem;
    }

    .about-company-paragraph {
        font-size: 0.95rem;
        line-height: 1.75;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-company-more,
    .about-company-toggle,
    .about-toggle-ico {
        transition: none;
    }
}

/* New Flavors Section */
.new-flavors-section {
    padding: 3rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1880px;
    margin: 0 auto;
}

@media (max-width: 1600px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.products-grid .product-card,
.products-grid .product-link {
    height: 100%;
}

/* ============================================================
   Footer — modern redesign
   ============================================================ */
.footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(160deg, #2a2320 0%, #1c1917 55%, #141110 100%);
    color: #fff;
    padding: 4.5rem 0 1.5rem;
    margin-top: 4rem;
}

/* thin accent line on top */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--accent-color) 0%,
        var(--secondary-color) 45%,
        var(--primary-color) 100%);
}

/* soft coloured glow behind the content */
.footer-glow {
    position: absolute;
    top: -180px;
    left: 50%;
    width: 900px;
    height: 420px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(214, 33, 41, 0.22), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.footer .container {
    position: relative;
}

/* Logo left · social centre · contact right, all on one centred row so
   the two sides read as an even pair. */
.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem 3rem;
    align-items: center;
    padding-bottom: 2rem;
    margin-bottom: 0;
}

.footer-social-col {
    order: 2;
    justify-self: center;
}

.footer-contact-col {
    order: 3;
    justify-self: end;
    text-align: right;
}

/* visually hidden but kept for screen readers / SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ---- Brand ------------------------------------------------ */
.footer-brand .footer-logo-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-brand .footer-logo-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.footer .footer-logo-img {
    width: 210px;
    max-width: 100%;
}

/* ---- Headings --------------------------------------------- */
.footer-title,
.footer-subtitle {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
}

.footer-title {
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.footer-subtitle {
    position: relative;
    display: inline-block;
    font-size: 0.95rem;
    margin-bottom: 1.35rem;
    padding-bottom: 0.65rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.footer-subtitle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

/* the contact column is right-aligned, so its underline is too */
.footer-contact-col .footer-subtitle {
    margin-bottom: 1rem;
}

.footer-contact-col .footer-subtitle::after {
    left: auto;
    right: 0;
}

.footer-section:hover .footer-subtitle::after {
    width: 46px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* ---- Links ------------------------------------------------ */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* Contact list with icons */
.footer-contact li {
    margin-bottom: 0.65rem;
}

.footer-contact li:last-child {
    margin-bottom: 0;
}

/* right column: icons hug the right edge so the block has a clean edge */
.footer-contact a {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.7rem;
    line-height: 1.4;
    text-align: right;
    word-break: break-word;
}

.footer-contact a:hover {
    transform: translateX(-3px);
}

.footer-ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.footer-contact a:hover .footer-ico {
    color: #fff;
    background: rgba(214, 33, 41, 0.25);
    border-color: rgba(214, 33, 41, 0.55);
}

/* ---- Social ----------------------------------------------- */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.footer-social .social-link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, background-color 0.25s ease,
                border-color 0.25s ease, box-shadow 0.25s ease;
}

.footer-social .social-link svg {
    color: inherit;
}

.footer-social .social-link:hover {
    transform: translateY(-3px);
    color: #fff;
}

.footer-social .social-link[aria-label="Facebook"]:hover {
    background: rgba(24, 119, 242, 0.9);
    border-color: rgba(24, 119, 242, 0.9);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.32);
}

.footer-social .social-link[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888);
    border-color: rgba(220, 39, 67, 0.9);
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.32);
}

.footer-social .social-link[aria-label="YouTube"]:hover {
    background: rgba(255, 0, 0, 0.9);
    border-color: rgba(255, 0, 0, 0.9);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.footer-social .social-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* ---- CTA buttons ------------------------------------------ */
.footer-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
    transition: transform 0.25s ease, background-color 0.25s ease,
                border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-about {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-about:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
}

.btn-contact {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(214, 33, 41, 0.28);
}

.btn-contact:hover {
    background: #b01b21;
    border-color: #b01b21;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(214, 33, 41, 0.4);
}

.footer-cta-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ---- Bottom bar -------------------------------------------- */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.85rem;
    text-align: center;
}

.footer-copy {
    margin: 0;
}

/* ---- Footer responsive ------------------------------------- */
@media (max-width: 1100px) {
    /* not enough room for one row — stack and centre everything */
    .footer-content {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 2.25rem;
    }

    .footer-social-col,
    .footer-contact-col {
        order: 0;
        justify-self: center;
        text-align: center;
    }

    .footer-contact-col .footer-subtitle::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    /* centre the list as a block, but keep the rows left-aligned so the
       icons line up in a column instead of staggering */
    .footer-contact {
        display: inline-block;
        max-width: 100%;
        text-align: left;
    }

    .footer-contact a {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .footer-contact a:hover {
        transform: translateX(3px);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.25rem;
        margin-top: 2.5rem;
    }

    .footer-content {
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .footer-brand {
        text-align: center;
    }

    .footer .footer-logo-img {
        width: 175px;
        margin: 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-cta-btn,
    .footer-social .social-link,
    .footer-contact a,
    .footer-brand .footer-logo-link,
    .footer-subtitle::after {
        transition: none;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.4rem;
        letter-spacing: 0.5px;
    }

    .header-actions {
        gap: 0.75rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .logo-img {
        width: 160px;
        height: auto;
    }
}

@media (max-width: 968px) {
    .nav-link {
        font-size: 0.75rem;
        padding: 0.5rem 0.3rem;
        letter-spacing: 0.4px;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }

    .nav-list {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-item-dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: none;
        box-shadow: var(--shadow);
    }

    .nav-item-dropdown:hover > .dropdown-menu,
    .nav-item-dropdown:focus-within > .dropdown-menu {
        display: block;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        order: 2;
        align-self: center;
        margin: 0 0.5rem;
    }

    .mobile-menu-toggle.active {
        display: none;
    }

    .header {
        padding: 0.75rem 0;
    }

    .header-content {
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .logo {
        flex: 1;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-img {
        width: 140px;
        height: auto;
    }

    /* Mobile Menu Backdrop - separate overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 1000;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
                    visibility 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        backdrop-filter: blur(4px);
        pointer-events: all;
    }

    .main-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(180deg, var(--bg-color) 0%, rgba(255, 255, 255, 0.98) 100%);
        z-index: 1001;
        overflow-y: auto;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%);
        transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
                    visibility 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        pointer-events: none;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: all;
    }

    /* Mobile Menu Header */
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 2rem;
        background: linear-gradient(135deg, var(--bg-color) 0%, rgba(255, 255, 255, 0.98) 100%);
        border-bottom: 2px solid rgba(0, 0, 0, 0.08);
        position: sticky;
        top: 0;
        z-index: 10;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.1s,
                    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
    }

    .main-nav.active .mobile-menu-header {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-menu-logo {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-decoration: none;
        color: var(--text-color);
        transition: all 0.3s ease;
    }

    .mobile-menu-logo:hover {
        transform: translateX(4px);
        color: var(--primary-color);
    }

    .mobile-menu-logo .logo-img {
        width: 160px;
        height: auto;
        flex-shrink: 0;
    }

    .mobile-menu-logo .logo-text {
        font-family: var(--font-heading);
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--primary-color);
        text-transform: var(--heading-transform);
    }

    .mobile-menu-close {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 8px;
        color: var(--text-color);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }

    .mobile-menu-close:hover {
        background-color: rgba(21, 24, 29, 0.08);
        color: var(--primary-color);
        transform: rotate(90deg);
    }

    .mobile-menu-close svg {
        width: 24px;
        height: 24px;
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        width: 100%;
        flex: 1;
        padding: 1.5rem 2rem;
        margin-top: 0;
    }

    .main-nav .nav-link {
        width: 100%;
        padding: 1.25rem 1.5rem;
        font-size: 1.15rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        display: block;
        color: var(--text-color);
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: 8px;
        margin-bottom: 0.25rem;
        position: relative;
        overflow: hidden;
        opacity: 0;
        transform: translateX(-20px);
        animation: slideInMenuItem 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    }

    .main-nav.active .nav-link:nth-child(1) {
        animation-delay: 0.1s;
    }

    .main-nav.active .nav-link:nth-child(2) {
        animation-delay: 0.15s;
    }

    .main-nav.active .nav-link:nth-child(3) {
        animation-delay: 0.2s;
    }

    .main-nav.active .nav-link:nth-child(4) {
        animation-delay: 0.25s;
    }

    .main-nav.active .nav-link:nth-child(5) {
        animation-delay: 0.3s;
    }

    .main-nav.active .nav-link:nth-child(6) {
        animation-delay: 0.35s;
    }

    .main-nav.active .nav-link:nth-child(7) {
        animation-delay: 0.4s;
    }

    @keyframes slideInMenuItem {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .main-nav .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background-color: var(--accent-color);
        transform: scaleY(0);
        transition: transform 0.3s ease;
        transform-origin: bottom;
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        color: var(--accent-color);
        background-color: rgba(214, 33, 41, 0.06);
        padding-left: 2rem;
        font-weight: 700;
    }

    .main-nav .nav-link:hover::before,
    .main-nav .nav-link.active::before {
        transform: scaleY(1);
    }

    .main-nav .nav-item-dropdown .dropdown-menu {
        position: static;
        display: none !important;
        background: linear-gradient(180deg, rgba(21, 24, 29, 0.035) 0%, rgba(21, 24, 29, 0.015) 100%);
        box-shadow: none;
        padding: 0.5rem 0;
        margin: 0.5rem 0 0.5rem 1.5rem;
        width: calc(100% - 1.5rem);
        border-radius: 8px;
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 2px solid var(--primary-color);
    }

    /* Disable hover effects in mobile menu */
    .main-nav .nav-item-dropdown:hover .dropdown-menu,
    .main-nav .nav-item-dropdown:focus-within .dropdown-menu {
        display: none !important;
        max-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .main-nav .nav-item-dropdown.active .dropdown-menu {
        display: block !important;
        max-height: 500px !important;
        padding: 0.5rem 0 !important;
        margin: 0.5rem 0 0.5rem 1.5rem !important;
    }

    .main-nav .nav-item-dropdown.active .dropdown-toggle {
        color: var(--primary-color);
        background-color: rgba(21, 24, 29, 0.06);
    }

    .main-nav .nav-item-dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
        opacity: 1;
        color: var(--primary-color);
    }

    .main-nav .nav-item-dropdown .dropdown-toggle::after {
        content: '';
        width: 12px;
        height: 12px;
        display: inline-block;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.3s ease,
                    color 0.3s ease;
        opacity: 0.7;
        margin-top: 2px;
        flex-shrink: 0;
        margin-left: auto;
    }

    .main-nav .dropdown-link {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        color: var(--text-color);
        display: block;
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: 6px;
        margin: 0.2rem 0.5rem;
        position: relative;
        padding-left: 2rem;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    }

    .main-nav .nav-item-dropdown.active .dropdown-link {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.05s;
    }

    .main-nav .dropdown-link::before {
        content: '→';
        position: absolute;
        left: 1rem;
        opacity: 0;
        transform: translateX(-5px);
        transition: all 0.3s ease;
        color: var(--accent-color);
    }

    .main-nav .dropdown-link:hover,
    .main-nav .dropdown-link.active {
        background-color: rgba(214, 33, 41, 0.1);
        color: var(--accent-color);
        font-weight: 700;
        padding-left: 2.5rem;
        transform: translateX(4px);
    }

    .main-nav .dropdown-link:hover::before {
        opacity: 1;
        transform: translateX(0);
    }

    .main-nav .dropdown-link:last-child {
        border-bottom: none;
    }

    .main-nav .mobile-menu-footer {
        display: block;
        margin-top: auto;
        padding: 2rem;
        padding-bottom: 3rem;
        border-top: 2px solid rgba(0, 0, 0, 0.1);
        width: 100%;
        background: linear-gradient(180deg, transparent 0%, rgba(21, 24, 29, 0.015) 100%);
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.3s,
                    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.3s;
    }

    .main-nav.active .mobile-menu-footer {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-lang-switcher {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 0.75rem;
        background-color: var(--bg-light);
        border-radius: 10px;
        padding: 0.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .mobile-lang-switcher .lang-btn {
        flex: 1;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        font-weight: 600;
        max-width: calc(50% - 0.375rem);
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .mobile-lang-switcher .lang-btn:hover {
        background-color: rgba(21, 24, 29, 0.06);
    }

    .header-actions {
        gap: 0.5rem;
        order: 3;
        flex-wrap: nowrap;
    }

    .header-actions .language-switcher {
        display: none;
    }

    .social-links {
        gap: 0.4rem;
        display: none;
    }

    .social-link {
        width: 28px;
        height: 28px;
    }

    .search-toggle {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .footer-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-cta-btn {
        width: 100%;
        max-width: 280px;
    }

    /* Trending Section - Mobile: Grid Layout instead of Carousel */
    .trending-section .carousel-container {
        position: relative;
    }

    .trending-section .carousel-wrapper {
        margin: 0;
        overflow: visible;
    }

    .trending-section .carousel-track {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        transform: none !important;
        transition: none;
    }

    .trending-section .carousel-item {
        flex: none !important;
        min-width: auto !important;
        max-width: none !important;
        width: 100%;
    }

    /* Hide carousel buttons on mobile for trending section */
    .trending-section .carousel-btn {
        display: none !important;
    }

    /* Show only first 4 items on mobile */
    .trending-section .carousel-item:nth-child(n+5) {
        display: none;
    }

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

    .cover-section {
        height: 40vh;
        min-height: 300px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .nav-list {
        gap: 1rem;
        font-size: 0.9rem;
    }


    .carousel-item {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

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

/* Products Page */
.products-page {
    padding: 3rem 0;
    min-height: 60vh;
}

.products-page-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Products Filters Sidebar */
.products-filters {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filters-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--ink);
    text-transform: var(--heading-transform);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

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

.filters-section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-transform: var(--heading-transform);
    font-weight: 600;
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.3s;
    user-select: none;
}

.filter-checkbox:hover {
    background-color: rgba(21, 24, 29, 0.04);
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.filter-checkbox span {
    color: var(--text-color);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.filter-checkbox input[type="checkbox"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.filter-clear {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.filter-clear:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Products Main Area */
.products-main {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--ink);
    text-transform: var(--heading-transform);
    margin: 0;
}

.products-count {
    color: var(--text-light);
    font-size: 0.95rem;
}

.products-count span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Products Grid for Products Page */
.products-page .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

@media (max-width: 1200px) {
    .products-page-content {
        grid-template-columns: 220px 1fr;
        gap: 2rem;
    }
    
    .products-page .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 968px) {
    .products-page-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .products-filters {
        position: static;
        max-height: none;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .products-page {
        padding: 2rem 0;
    }
    
    .products-filters {
        padding: 1.5rem;
    }
    
    .products-page .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-page .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Product Page */
.product-page {
    padding: 2rem 0 3rem;
    min-height: 60vh;
}

.breadcrumbs {
    display: flex;
    align-items: center;
        gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

.breadcrumbs span {
    color: var(--text-light);
}

.breadcrumb-current {
    color: var(--text-color);
}

/* Product Content */
.product-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    max-width: 100%;
    align-items: flex-start;
}

/* Product Page & Recipe Detail Page - Sticky Images */
.product-page .product-images,
.recipe-detail-page .product-images {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    z-index: 10;
}

.product-main-image {
    flex: 1;
    max-width: 450px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(12, 12, 12, 0.92);
    padding: 2rem;
}

.product-lightbox.is-open {
    display: flex;
}

.product-lightbox-image {
    max-width: min(92vw, 1100px);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.product-lightbox.is-ready .product-lightbox-image {
    opacity: 1;
    transform: scale(1);
}

.product-lightbox-close,
.product-lightbox-prev,
.product-lightbox-next {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

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

.product-lightbox-close {
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    line-height: 1;
}

.product-lightbox-prev,
.product-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 2rem;
}

.product-lightbox-prev {
    left: 1.25rem;
}

.product-lightbox-next {
    right: 1.25rem;
}

.product-lightbox-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.product-lightbox.is-single .product-lightbox-prev,
.product-lightbox.is-single .product-lightbox-next,
.product-lightbox.is-single .product-lightbox-counter {
    display: none;
}

@media (max-width: 640px) {
    .product-lightbox {
        padding: 1rem;
    }

    .product-lightbox-prev,
    .product-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
}

.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    max-height: 450px;
    padding-right: 0.5rem;
}

.thumbnail {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    background-color: var(--bg-color);
    /* breathing room so the artwork never touches the hover border */
    padding: 6px;
}

.thumbnail:hover {
    border-color: var(--primary-color);
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-color);
    text-transform: none;
    margin: 0;
}

.product-rating-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    font-family: var(--font-body);
}

.product-description p,
.product-description span,
.product-description strong,
.product-description b,
.product-description em,
.product-description i,
.product-description a,
.product-description li,
.product-description div,
.product-description font {
    font-size: 1rem !important;
    font-family: inherit !important;
    line-height: 1.7;
    color: inherit;
}

.product-description p {
    margin: 0;
}

.product-subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--ink);
    text-transform: var(--heading-transform);
    font-weight: 600;
    margin: 0.5rem 0 !important;
}

.product-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-tag {
        padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-clean {
    background-color: #10b981;
    color: white;
}

.tag-popular {
    background-color: var(--primary-color);
    color: white;
}

/* Product Sizes */
.product-sizes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sizes-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-color);
    text-transform: var(--heading-transform);
    font-weight: 600;
    margin: 0;
}

.size-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.size-option {
    min-width: 7.5rem;
    padding: 0.85rem 1.1rem;
    border: 1.5px solid #e6e6e6;
    background-color: #fff;
    color: var(--text-color);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    text-transform: none;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.size-option-label {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.size-option-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-color);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.size-option:hover {
    border-color: rgba(214, 33, 41, 0.45);
    background-color: #fff;
    box-shadow: 0 4px 14px rgba(214, 33, 41, 0.08);
}

.size-option.active {
    background-color: #fff;
    color: var(--text-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color), 0 6px 18px rgba(214, 33, 41, 0.12);
    font-weight: 700;
}

.size-option.active .size-option-price {
    color: var(--accent-color);
}

.product-sizes-section {
    margin-top: 0.25rem;
}

/* Product Buy Section */
.product-buy-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.btn-buy {
    display: inline-block;
    width: auto;
    padding: 0.65rem 1.5rem;
    background-color: #10b981;
    color: white;
    border: 2px solid #10b981;
    border-radius: 6px;
        font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s;
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-buy:hover {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-buy:active {
    transform: translateY(0);
}

/* Recipe Inspiration Section */
.recipe-inspiration-section {
    margin: 4rem 0;
    padding: 3rem 0;
    background-color: var(--bg-light);
    border-radius: 12px;
}

.recipe-inspiration-header {
    margin-bottom: 2rem;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.recipe-inspiration-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--ink);
    text-transform: var(--heading-transform);
    margin: 0;
    flex: 1;
}

.recipe-cards-container {
    position: relative;
    padding: 0 2rem;
}

.recipe-cards-container::before,
.recipe-cards-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 1rem;
    width: 60px;
    z-index: 1;
    pointer-events: none;
}

.recipe-cards-container::before {
    left: 2rem;
    background: linear-gradient(to right, var(--bg-light), transparent);
}

.recipe-cards-container::after {
    right: 2rem;
    background: linear-gradient(to left, var(--bg-light), transparent);
}

.recipe-cards-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 1rem;
}

.recipe-cards-inner {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.recipe-card {
    flex: 0 0 280px;
    background-color: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.recipe-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.recipe-card:hover .recipe-image img {
    transform: scale(1.1);
}

.recipe-name {
    padding: 1rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-color);
    text-transform: var(--heading-transform);
    text-align: center;
    margin: 0;
}

.recipe-view-all {
    padding: 0.65rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    font-family: var(--font-heading);
}

.recipe-view-all:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(214, 33, 41, 0.28);
}

/* Related Products Section */
.related-products-section {
    margin-top: 3.5rem;
    padding: 2.25rem 1.75rem 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.related-products-header {
    margin-bottom: 1.5rem;
}

.related-products-section .section-title {
    font-size: 1.15rem;
    margin: 0;
    text-align: left;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.related-products-section .related-products-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0;
}

.related-products-section .required-product-card {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-products-section .required-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(214, 33, 41, 0.12);
}

.related-products-section .required-product-link {
    margin-bottom: 0;
    gap: 0;
    height: 100%;
}

.related-products-section .required-product-image {
    height: 170px;
    padding: 1rem 0.85rem 0.5rem;
    background: #fff;
    border-radius: 0;
}

.related-products-section .required-product-image img {
    object-fit: contain;
}

.related-products-section .required-product-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem 1rem;
}

.related-products-section .required-product-name {
    font-size: 0.88rem;
    min-height: 2.4em;
}

.related-products-section .required-product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.related-products-section .required-product-rating .star {
    color: var(--star-color);
}

.related-products-section .required-product-link:hover .required-product-name {
    color: var(--accent-color);
}

@media (max-width: 1200px) {
    .related-products-section .related-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .related-products-section {
        padding: 1.5rem 1rem;
        margin-top: 2.5rem;
    }

    .related-products-section .related-products-grid {
        display: flex;
        overflow-x: auto;
        gap: 0.85rem;
        padding-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .related-products-section .required-product-card {
        flex: 0 0 168px;
        scroll-snap-align: start;
    }

    .related-products-section .required-product-image {
        height: 140px;
    }
}


/* Responsive Product Page */
@media (max-width: 968px) {
    .product-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-page .product-images,
    .recipe-detail-page .product-images {
        position: relative;
        top: 0;
    }

    .product-images {
        flex-direction: column;
        max-width: 450px;
        margin: 0 auto;
    }

    .product-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
        max-height: none;
        padding-right: 0;
        padding-bottom: 0.5rem;
    }

    .product-main-image {
        max-width: 100%;
    }

    .recipe-inspiration-header,
    .recipe-cards-container {
        padding: 0 1.5rem;
    }

    .recipe-cards-container::before,
    .recipe-cards-container::after {
        width: 40px;
    }

    .recipe-cards-container::before {
        left: 1.5rem;
    }

    .recipe-cards-container::after {
        right: 1.5rem;
    }

    .recipe-inspiration-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .recipe-view-all {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 1.5rem;
    }

    .btn-buy {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }

    .product-thumbnails {
        gap: 0.75rem;
    }

    .thumbnail {
        flex: 0 0 80px;
        width: 80px;
        height: 80px;
    }

    .recipe-inspiration-section {
        margin: 3rem 0;
        padding: 2rem 0;
    }

    .recipe-inspiration-title {
        font-size: 1.75rem;
    }

    .recipe-card {
        flex: 0 0 240px;
    }
}

@media (max-width: 480px) {
    .product-page {
        padding: 1.5rem 0 2rem;
    }

    .breadcrumbs {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

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

    .size-options {
        flex-direction: row;
        gap: 0.65rem;
    }

    .size-option {
        width: auto;
        flex: 1 1 calc(50% - 0.65rem);
        min-width: 0;
    }

    .btn-buy {
        padding: 0.55rem 1.1rem;
        font-size: 0.8rem;
    }

    .product-buy-section {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }

    .recipe-cards-wrapper {
        gap: 1.5rem;
    }

    .recipe-card {
        flex: 0 0 200px;
    }

    .recipe-inspiration-header,
    .recipe-cards-container {
        padding: 0 1rem;
    }

    .recipe-cards-container::before,
    .recipe-cards-container::after {
        width: 30px;
    }

    .recipe-cards-container::before {
        left: 1rem;
    }

    .recipe-cards-container::after {
        right: 1rem;
    }

    .recipe-inspiration-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .recipe-view-all {
        width: 100%;
        text-align: center;
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Recipe Detail Page */
.recipe-detail-page {
    padding: 2rem 0 3rem;
    min-height: 60vh;
}

.recipe-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.btn-print {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

.btn-print:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(214, 33, 41, 0.28);
}

.btn-print svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-print span {
    white-space: nowrap;
}

.recipe-description {
    margin-bottom: 1.5rem;
}

.recipe-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

.recipe-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.recipe-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.ingredients-list,
.instructions-list {
    margin: 1rem 0 0 0;
    padding-left: 0;
    list-style: none;
}

.ingredients-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ingredients-list li:before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.2;
}

.ingredients-list li:last-child {
    border-bottom: none;
}

.instructions-list li {
    padding: 1rem 0;
    padding-left: 2.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    position: relative;
    counter-increment: step-counter;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.instructions-list {
    counter-reset: step-counter;
}

.instructions-list li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.instructions-list li:last-child {
    border-bottom: none;
}

.recipe-buy-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.recipe-buy-section .product-subtitle {
    margin-bottom: 1.5rem;
}

.required-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.required-product-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

.required-product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    margin-bottom: 1rem;
}

.required-product-image {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.required-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

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

.required-product-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-color);
    text-transform: none;
    margin: 0;
    text-align: center;
    font-weight: 600;
    line-height: 1.4;
}

.required-product-link:hover .required-product-name {
    color: var(--primary-color);
}

.btn-buy-small {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .btn-print,
    .recipe-buy-section,
    .breadcrumbs {
        display: none !important;
    }

    .recipe-detail-page {
        padding: 0;
    }

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

    .product-images {
        flex-direction: column;
        max-width: 100%;
    }

    .product-thumbnails {
        display: none;
    }

    .product-main-image {
        max-width: 100%;
    }

    .product-title {
        font-size: 1.5rem;
        page-break-after: avoid;
    }

    .recipe-section {
        page-break-inside: avoid;
    }
}

/* Responsive Recipe Detail */
@media (max-width: 968px) {
    .recipe-header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .btn-print {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .recipe-header-actions {
        flex-direction: column;
    }

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

    .ingredients-list li,
    .instructions-list li {
        font-size: 0.95rem;
        padding-left: 1.75rem;
    }

    .instructions-list li:before {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.85rem;
        top: 0.95rem;
    }

    .instructions-list li {
        padding-left: 2.25rem;
    }

    .required-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.25rem;
    }

    .required-product-image {
        height: 120px;
    }

    .required-product-name {
        font-size: 0.95rem;
    }

    .btn-buy-small {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .recipe-detail-page {
        padding: 1.5rem 0 2rem;
    }

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

    .btn-print {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .ingredients-list li,
    .instructions-list li {
        font-size: 0.9rem;
        padding: 0.65rem 0;
        padding-left: 1.5rem;
    }

    .instructions-list li:before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
        top: 0.65rem;
    }

    .instructions-list li {
        padding-left: 2rem;
    }

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

    .required-product-image {
        height: 140px;
    }

    .required-product-name {
        font-size: 0.9rem;
    }

    .btn-buy-small {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* News Page */
.news-page {
    padding: 2rem 0 3.5rem;
    min-height: 60vh;
}

.news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.news-header-text {
    min-width: 0;
}

.news-page .page-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-color);
    text-transform: var(--heading-transform);
    margin: 0 0 0.35rem;
}

.news-header-sub {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.news-header-count {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.news-meta-date {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.65rem;
}

.news-readmore {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    transition: gap 0.2s ease, transform 0.2s ease;
}

.news-readmore::after {
    content: "→";
    margin-left: 0.4rem;
    transition: transform 0.2s ease;
}

.news-featured-link:hover .news-readmore::after,
.news-card-link:hover .news-readmore::after {
    transform: translateX(4px);
}

/* Featured lead story — full container width */
.news-featured {
    margin-bottom: 1.75rem;
}

.news-featured-link {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 0;
    min-height: 380px;
    text-decoration: none;
    color: inherit;
    background: #faf7f4;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-featured-link:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.news-featured-media {
    position: relative;
    min-height: 380px;
    background: var(--bg-light);
    overflow: hidden;
}

.news-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.news-featured-link:hover .news-featured-media img {
    transform: scale(1.04);
}

.news-featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.25rem 2rem;
}

.news-featured-title {
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    color: var(--text-color);
    text-transform: var(--heading-transform);
    margin: 0 0 1rem;
    line-height: 1.25;
}

.news-featured-excerpt {
    margin: 0;
    font-size: 1.02rem;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Remaining news — fill container */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    border-color: rgba(214, 33, 41, 0.18);
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-light);
}

.news-card-image--empty {
    background: linear-gradient(135deg, #f3ece6, #faf7f4);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.news-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem 1.2rem 1.35rem;
}

.news-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-color);
    text-transform: var(--heading-transform);
    margin: 0 0 0.65rem;
    line-height: 1.35;
    font-weight: 600;
}

.news-card-link:hover .news-card-title {
    color: var(--accent-color);
}

.news-card-excerpt {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-empty,
.no-news {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    background: #faf7f4;
    border-radius: 16px;
    border: 1px dashed var(--border-color);
}

.news-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* News Detail Page — full container use */
.news-detail-page {
    padding: 1.5rem 0 3.5rem;
    min-height: 60vh;
}

.news-detail-breadcrumbs {
    margin-bottom: 1.25rem;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
}

.news-detail-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.25rem;
}

.news-detail-main {
    min-width: 0;
    width: 100%;
}

.news-detail-header {
    margin-bottom: 1.35rem;
}

.news-detail-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.6vw, 2.35rem);
    color: var(--text-color);
    text-transform: var(--heading-transform);
    margin: 0;
    line-height: 1.25;
    max-width: none;
}

.news-detail-hero {
    width: 100%;
    margin: 0 0 1.75rem;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 21 / 9;
    max-height: 520px;
}

.news-detail-hero img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-detail-body {
    width: 100%;
    max-width: none;
    line-height: 1.8;
    font-size: 1.05rem;
}

.news-excerpt {
    font-size: 1.12rem;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.news-excerpt p {
    margin: 0;
}

.news-full-content {
    font-size: 1.02rem;
    color: var(--text-color);
}

.news-full-content p {
    margin: 0 0 1.25rem;
}

.news-full-content p:last-child {
    margin-bottom: 0;
}

.news-full-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.news-detail-footer {
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.news-back-link:hover {
    transform: translateX(-3px);
}

/* Related sidebar — fills right side of container */
.news-detail-aside {
    position: sticky;
    top: 100px;
    padding: 1.25rem;
    background: #faf7f4;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
}

.news-aside-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin: 0 0 1rem;
    color: var(--text-color);
    text-transform: var(--heading-transform);
}

.news-aside-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.news-aside-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    padding: 0.55rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.news-aside-item:hover {
    border-color: rgba(214, 33, 41, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.news-aside-thumb {
    width: 88px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-light);
}

.news-aside-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-aside-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-aside-body .news-meta-date {
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
}

.news-aside-item-title {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--text-color);
    text-transform: var(--heading-transform);
    font-family: var(--font-heading);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-aside-item:hover .news-aside-item-title {
    color: var(--accent-color);
}

/* Legacy related block (if used elsewhere) */
.related-news-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-news-section .section-title {
    margin-bottom: 1.25rem;
    text-align: left;
    font-size: 1.15rem;
}

/* Responsive News Pages */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-detail-layout.has-sidebar {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 1.5rem;
    }
}

@media (max-width: 968px) {
    .news-featured-link {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .news-featured-media {
        min-height: 260px;
        aspect-ratio: 16 / 9;
    }

    .news-featured-body {
        padding: 1.5rem 1.35rem 1.75rem;
    }

    .news-detail-layout.has-sidebar {
        grid-template-columns: 1fr;
    }

    .news-detail-aside {
        position: static;
    }

    .news-aside-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .news-aside-item {
        grid-template-columns: 1fr;
    }

    .news-aside-thumb {
        width: 100%;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .news-page {
        padding: 1.5rem 0 2.5rem;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.25rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-detail-hero {
        aspect-ratio: 16 / 10;
        max-height: none;
        border-radius: 14px;
    }

    .news-aside-list {
        grid-template-columns: 1fr;
    }

    .news-aside-item {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .news-aside-thumb {
        width: 88px;
        height: 72px;
    }
}

@media (max-width: 480px) {
    .news-featured-body {
        padding: 1.2rem 1.1rem 1.4rem;
    }

    .news-card-content {
        padding: 1rem 1.05rem 1.15rem;
    }

    .news-card-title {
        font-size: 1.05rem;
    }

    .news-detail-title {
        font-size: 1.45rem;
    }
}


/* ============================================================
   CMS content blocks
   Moved here from moduls/content.php, which used to echo this as a
   raw <style> before the doctype and broke the document head.
   ============================================================ */
/* ============================================================
   About / story page (moduls/content.php → story_page_html)
   ============================================================ */
.story-page {
    padding: 2.5rem 0 4.5rem;
}

/* ---- hero --------------------------------------------------- */
.story-hero {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid var(--border-color);
}

.story-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.story-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-color);
}

.story-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.01em;
    color: var(--ink);
}

html[lang="en"] .story-title,
html[lang="ru"] .story-title {
    text-transform: uppercase;
}

.story-since {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-color);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.story-lead {
    margin: 0;
    font-size: clamp(1.08rem, 1.5vw, 1.3rem);
    line-height: 1.7;
    color: var(--ink-soft);
}

/* ---- cards -------------------------------------------------- */
.story-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.story-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 1.9rem 1.9rem 1.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(21, 24, 29, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.story-card:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(21, 24, 29, 0.09);
}

.story-card.is-wide {
    grid-column: 1 / -1;
}

.story-card.is-milestone {
    background: linear-gradient(160deg, #fff 0%, var(--bg-tint) 100%);
}

.story-card-year {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--accent-color);
}

.story-card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-color);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
}

.story-card p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-color);
}

.story-card strong {
    font-weight: 700;
    color: var(--ink);
}

/* ---- highlights (short taglines) --------------------------- */
.story-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.story-highlight {
    position: relative;
    margin: 0;
    padding: 2.6rem 1.9rem 1.75rem;
    border-radius: 20px;
    background: var(--bg-tint);
    border: 1px solid var(--border-color);
}

.story-highlight.is-wide {
    grid-column: 1 / -1;
}

.story-highlight::before {
    content: "\201C";
    position: absolute;
    top: 0.55rem;
    left: 1.6rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.6rem;
    line-height: 1;
    color: var(--accent-color);
    opacity: 0.85;
}

.story-highlight p {
    margin: 0;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.6;
    font-weight: 500;
    color: var(--ink);
}

/* ---- statement (paragraph the editor bolded throughout) ------ */
.story-statement {
    margin: 1.25rem 0 0;
    padding: 1.9rem 2rem 1.9rem 2.25rem;
    border-radius: 20px;
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
}

.story-statement p {
    margin: 0;
    font-size: clamp(1.08rem, 1.6vw, 1.3rem);
    line-height: 1.65;
    font-weight: 600;
    color: var(--ink);
}

/* ---- uses --------------------------------------------------- */
.story-uses {
    margin-top: 1.25rem;
    padding: 1.9rem 2rem 1.8rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.story-uses h2 {
    margin: 0 auto 1.25rem;
    max-width: none;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--ink);
    text-align: center;
    text-transform: none;
}

.story-uses ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.story-uses li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex: 0 0 240px;
    width: 240px;
    max-width: 100%;
    padding: 0.85rem 1rem;
    min-height: 64px;
    line-height: 1.35;
    text-align: center;
    border-radius: 14px;
    background: var(--bg-light);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.story-uses li:hover {
    background: var(--accent-soft);
    color: var(--accent-color);
}


.story-uses-note {
    margin: 1.25rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-color);
    max-width: 52rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.story-check {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-color);
}

.story-check::after {
    content: "";
    position: absolute;
    left: 7.5px;
    top: 4.5px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

/* ---- closing CTA band -------------------------------------- */
.story-close {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1.25rem;
    padding: 2.2rem 2.4rem;
    border-radius: 22px;
    background: linear-gradient(150deg, #24201e 0%, #15181d 100%);
    color: #fff;
}

.story-close::before {
    content: "";
    position: absolute;
    right: -120px;
    top: -140px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(214, 33, 41, 0.35), transparent 70%);
    pointer-events: none;
}

.story-close p {
    position: relative;
    margin: 0;
    max-width: 44rem;
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1.55;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.story-close strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.story-cta {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(214, 33, 41, 0.35);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.story-cta:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(214, 33, 41, 0.45);
}

.story-cta span {
    transition: transform 0.2s ease;
}

.story-cta:hover span {
    transform: translateX(3px);
}

/* ---- desktop: editorial split hero ------------------------- */
@media (min-width: 992px) {
    .story-page {
        padding: 3.5rem 0 5.5rem;
    }

    .story-hero {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        column-gap: 4.5rem;
        align-items: end;
        margin-bottom: 3rem;
        padding-bottom: 3rem;
    }
}

/* ---- tablet / phone ----------------------------------------- */
@media (max-width: 800px) {
    .story-page {
        padding: 1.75rem 0 3rem;
    }

    .story-cards {
        grid-template-columns: 1fr;
    }

    .story-highlights {
        grid-template-columns: 1fr;
    }

    .story-highlight {
        padding-top: 2.4rem !important;
    }

    .story-card,
    .story-highlight,
    .story-uses,
    .story-statement {
        padding: 1.5rem 1.35rem;
        border-radius: 16px;
    }

    .story-close {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.75rem 1.5rem;
        border-radius: 18px;
    }

    .story-uses ul {
        justify-content: center;
    }

    .story-uses li {
        flex-basis: calc(50% - 0.4rem);
        width: calc(50% - 0.4rem);
    }
}

@media (max-width: 420px) {
    .story-uses li {
        flex-basis: 100%;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-card,
    .story-cta,
    .story-cta span,
    .story-uses li {
        transition: none;
    }
}

/* About page sections: history, mission/vision, partner logos */
.story-about .story-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.story-about .story-since {
    margin: 0 0 0.35rem;
    flex-shrink: 0;
}

.story-history {
    display: grid;
    grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
    gap: 2rem 3rem;
    align-items: start;
}

.story-label,
.story-partners h2,
.story-pair-card .story-label {
    margin: 0 0 0.85rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--accent-color);
    text-transform: uppercase;
}

.story-prose p {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

.story-prose p:last-child {
    margin-bottom: 0;
}

.story-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.story-pair-card {
    margin: 0;
    padding: 1.6rem 1.5rem 1.45rem;
    background: var(--bg-light);
    border-radius: 18px;
}

.story-span {
    max-width: 720px;
    margin: 1.25rem auto 0;
    padding: 1.6rem 1.7rem 1.45rem;
    background: var(--bg-light);
    border-radius: 18px;
    text-align: center;
}

.story-span .story-label,
.story-span .story-prose,
.story-span .story-prose p,
.story-prose.is-center,
.story-prose.is-center p {
    text-align: center;
}

.story-partners {
    margin-top: 2rem;
}

.story-partners h2 {
    max-width: none;
    margin-bottom: 1.1rem;
    color: var(--ink);
    text-align: center;
    text-transform: none;
    font-size: 1.35rem;
}

.story-partners img {
    display: block;
    width: 100%;
    max-width: 1080px;
    height: auto;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    object-fit: contain;
}

.story-about .story-uses,
.story-about .story-close {
    margin-top: 1.5rem;
}

@media (max-width: 800px) {
    .story-about .story-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .story-history,
    .story-pair {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .story-partners h2 {
        white-space: normal;
    }

    .story-partners img {
        padding: 0.75rem;
    }
}

.cms-page {
    padding: 2rem 0 3.5rem;
}

.cms-page .page-title {
    margin-bottom: 1.25rem;
}

.cms-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-color);
}

.cms-content p {
    color: var(--text-color);
    line-height: 1.75;
    margin: 0 0 1rem;
}

.cms-content strong {
    font-weight: 700;
}

.cms-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.cms-content h1,
.cms-content h2,
.cms-content h3 {
    font-family: var(--font-heading);
    color: var(--ink);
    line-height: 1.3;
    margin: 0 0 0.85rem;
    text-transform: var(--heading-transform);
}

.cms-content ul,
.cms-content ol {
    margin: 0 0 1rem 1.25rem;
}

.footer_ {
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* ============================================================
   Header fit between 969px and 1280px
   Logo + menu + actions must stay on one line without overlapping.
   (≤968px the menu already drops onto its own row.)
   ============================================================ */
@media (max-width: 1200px) {
    /* the same links live in the footer and in the mobile menu */
    .header-actions .social-links {
        display: none;
    }
}

@media (max-width: 1100px) {
    .header-content {
        gap: 1.25rem;
    }

    .nav-list {
        gap: 0.75rem;
    }
}
