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

:root {
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text, #333);
    line-height: 1.5;
    background: #f5f7fa;
}

a { color: var(--color-primary, #6ec4be); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
    --header-teal: var(--color-primary, #6ec4be);
    --header-teal-light: #e8f6f5;
    --header-teal-light: color-mix(in srgb, var(--color-primary, #6ec4be) 12%, white);
    --header-text: var(--color-text, #3d3d3d);
    --header-text-muted: #9a9a9a;
    --header-text-muted: color-mix(in srgb, var(--color-text, #3d3d3d) 65%, white);
    background: var(--color-header-bg, #fff);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    border-bottom: 1px solid #f0f0f0;
}

.header-top-inner,
.header-bottom-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-top-inner {
    min-height: 72px;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    text-decoration: none;
}

.header-brand:hover { text-decoration: none; }

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: #ececec;
    color: #8f8f8f;
    font-size: 11px;
    font-weight: 500;
    text-transform: lowercase;
    flex-shrink: 0;
}

.header-logo-img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.header-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-brand-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--header-text);
    line-height: 1.3;
}

.header-brand-tagline {
    font-size: 12px;
    font-weight: 400;
    color: var(--header-text-muted);
    line-height: 1.3;
}

.header-brand-city {
    font-size: 12px;
    font-weight: 400;
    color: var(--header-text-muted);
    line-height: 1.3;
}

.header-top-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
    justify-content: center;
}

.header-top-nav > a,
.header-top-nav > button {
    font-size: 14px;
    font-weight: 500;
    color: var(--header-text-muted);
    white-space: nowrap;
}

.header-top-nav > a:hover,
.header-top-nav > button:hover {
    color: var(--header-text);
    text-decoration: none;
}

.header-top-nav > a.is-active {
    color: var(--header-text);
    font-weight: 600;
}

.header-nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    border: 1.5px solid var(--header-teal);
    border-radius: var(--radius-md);
    color: var(--header-teal) !important;
    font-weight: 500;
}

.header-nav-pill:hover {
    background: var(--header-teal-light);
    text-decoration: none;
}

.header-nav-dropdown,
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-chevron {
    flex-shrink: 0;
    opacity: 0.7;
}

.header-nav-more {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
    color: var(--header-text-muted);
    letter-spacing: 1px;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.header-phone {
    font-size: 14px;
    font-weight: 500;
    color: var(--header-text) !important;
    text-decoration: none;
}

.header-phone:hover { text-decoration: none; }

.header-phone-icon {
    flex-shrink: 0;
    display: none;
    width: 20px;
    height: 20px;
}

.header-phone-dropdown {
    position: relative;
}

.header-phone-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.header-phone-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: var(--radius-md);
    z-index: 100;
}

.header-phone-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--header-text);
    white-space: nowrap;
}

.header-phone-menu a:hover {
    background: #f5f5f5;
    text-decoration: none;
}

.header-callback-btn {
    padding: 10px 18px;
    border: 1.5px solid var(--header-teal);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--header-teal);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.header-callback-btn:hover {
    background: var(--header-teal-light);
}

.header-bottom {
    padding: 14px 0;
}

.header-bottom-inner {
    gap: 16px;
}

.header-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: var(--header-teal);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.header-products-btn:hover {
    opacity: 0.92;
    text-decoration: none;
    color: #fff;
}

.header-products-btn.is-open {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.header-catalog-dropdown {
    position: relative;
    flex-shrink: 0;
}

.catalog-mega-menu {
    position: fixed;
    inset: 0;
    z-index: 150;
    pointer-events: none;
}

.catalog-mega-menu:not([hidden]) {
    pointer-events: auto;
}

.catalog-mega-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.catalog-mega-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
    max-height: min(70vh, 520px);
    overflow: hidden;
    z-index: 1;
}

.catalog-mega-menu-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: 1fr auto;
    gap: 0;
    min-height: 280px;
    max-height: min(70vh, 520px);
    position: relative;
}

.catalog-mega-menu-inner:has(.catalog-mega-empty) {
    grid-template-columns: 1fr;
    min-height: auto;
}

.catalog-mega-sidebar {
    grid-row: 1 / -1;
    border-right: 1px solid #f0f0f0;
    padding: 16px 0;
    overflow-y: auto;
    min-height: 0;
}

.catalog-mega-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.catalog-mega-sidebar-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    border: none;
    background: transparent;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--header-text);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-left: 3px solid transparent;
    white-space: normal;
    line-height: 1.35;
    word-break: break-word;
}

.catalog-mega-sidebar-item-label {
    flex: 1;
    min-width: 0;
}

.catalog-mega-sidebar-chevron {
    display: none;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--header-text-muted);
    transition: transform 0.2s;
}

.catalog-mega-mobile-children {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.catalog-mega-sidebar-item:hover {
    background: var(--header-teal-light);
    color: var(--header-teal);
}

.catalog-mega-sidebar-item.is-active {
    background: var(--header-teal-light);
    color: var(--header-teal);
    border-left-color: var(--header-teal);
    font-weight: 600;
}

.catalog-mega-content {
    grid-column: 2;
    grid-row: 1;
    padding: 20px 24px;
    overflow-y: auto;
    min-height: 0;
}

.catalog-mega-panel {
    display: none;
}

.catalog-mega-panel.is-active {
    display: block;
}

.catalog-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.catalog-mega-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.2s, transform 0.2s;
}

.catalog-mega-card:hover {
    background: var(--header-teal-light);
    text-decoration: none;
    transform: translateY(-2px);
}

.catalog-mega-card-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f5f7fa;
    flex-shrink: 0;
}

.catalog-mega-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-mega-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 24px;
    font-weight: 600;
    color: var(--header-teal);
    text-transform: uppercase;
    background: var(--header-teal-light);
}

.catalog-mega-card-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.catalog-mega-all {
    grid-column: 2;
    grid-row: 2;
    position: static;
    padding: 12px 24px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    font-weight: 600;
    color: var(--header-teal);
    text-decoration: none;
}

.catalog-mega-all:hover {
    text-decoration: underline;
}

.catalog-mega-empty {
    grid-column: 1 / -1;
    padding: 40px 24px;
    text-align: center;
    color: var(--header-text-muted);
}

.catalog-mega-mobile-header {
    display: none;
}

.catalog-mega-mobile-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--header-text);
}

.catalog-mega-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-md);
    background: #f4f5f7;
    color: #555;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.catalog-mega-close:hover {
    background: #e8eaee;
}

body.catalog-menu-open {
    overflow: hidden;
}

@keyframes catalog-mega-slide-in {
    from {
        transform: translateY(16px);
        opacity: 0.92;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-search-form {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    min-width: 0;
    background: var(--header-teal-light);
    border-radius: var(--radius-lg);
    padding: 4px 6px 4px 24px;
}

.header-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 12px 12px 12px 0;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: var(--header-text);
    outline: none;
}

.header-search-form input[type="search"]::placeholder {
    color: var(--header-teal);
    opacity: 0.85;
}

.header-search-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--header-text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 0;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.header-search-btn:hover {
    color: var(--header-text);
    background: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: calc((var(--radius-md) + var(--radius-lg)) / 2);
    display: none;
    z-index: 200;
    overflow: hidden;
}

.search-suggestions.active { display: block; }

.search-suggestion-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 10px 12px;
    align-items: center;
    padding: 10px 12px;
    color: var(--color-text);
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}

.search-suggestion-item:last-child { border-bottom: none; }
.search-suggestion-item:hover { background: var(--header-teal-light); text-decoration: none; }

.search-suggestion-image {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f4f5f7;
    flex-shrink: 0;
}

.search-suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-suggestion-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #aaa;
    font-size: 1.25rem;
}

.search-suggestion-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-suggestion-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #2d2e37;
}

.search-suggestion-sku {
    margin-top: 2px;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #6b7280;
}

.search-suggestion-body .ktru-lines {
    margin: 4px 0 0;
}

.search-suggestion-body .ktru-line {
    font-size: 0.8125rem;
    line-height: 1.35;
}

.search-suggestion-price {
    font-size: 14px;
    font-weight: 600;
    color: #2d2e37;
    white-space: nowrap;
    align-self: center;
}

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

.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--header-text-muted);
    border-radius: var(--radius-sm);
    position: relative;
    transition: color 0.2s, background 0.2s;
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.header-action-profile {
    background: var(--header-teal-light);
    border-radius: var(--radius-lg);
    color: var(--header-text-muted);
}

.header-action-profile:focus {
    outline: none;
}

.header-action-profile:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 4px color-mix(in srgb, var(--header-teal) 45%, transparent);
}

.header-action-btn:hover {
    color: var(--header-text);
    background: #f5f5f5;
    text-decoration: none;
}

.header-action-profile:hover {
    color: var(--header-text);
    background: var(--header-teal-light);
    text-decoration: none;
}

.header-cart-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--color-accent, #e74c3c);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}

.badge {
    background: var(--color-accent);
    color: #fff;
    border-radius: calc((var(--radius-sm) + var(--radius-md)) / 2);
    padding: 2px 7px;
    font-size: 11px;
}

@media (max-width: 1100px) {
    .header-top-nav { display: none; }
    .header-callback-btn { display: none; }
}

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

    .header-brand-tagline { display: none; }

    .header-top-inner {
        min-height: 60px;
        gap: 12px;
    }

    .header-bottom-inner {
        flex-wrap: wrap;
    }

    .header-products-btn {
        padding: 12px 18px;
        font-size: 12px;
    }

    .catalog-mega-backdrop {
        display: none;
    }

    .catalog-mega-menu-panel {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: none;
        height: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        border: none;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        animation: catalog-mega-slide-in 0.22s ease;
    }

    .catalog-mega-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-shrink: 0;
        padding: 12px 16px;
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
        border-bottom: 1px solid #f0f0f0;
        background: #fff;
    }

    .catalog-mega-menu-inner {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        flex: 1;
        min-height: 0;
        max-height: none;
    }

    .catalog-mega-sidebar {
        grid-row: 1;
        grid-column: 1;
        border-right: none;
        border-bottom: none;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .catalog-mega-sidebar-list {
        padding: 0;
    }

    .catalog-mega-sidebar-group {
        border-bottom: 1px solid #f0f0f0;
    }

    .catalog-mega-sidebar-item {
        padding: 14px 16px;
        border-left: none;
        border-radius: 0;
        align-items: center;
    }

    .catalog-mega-sidebar-item.is-active {
        border-left: none;
        background: transparent;
        color: var(--header-text);
        font-weight: 500;
    }

    .catalog-mega-sidebar-chevron {
        display: block;
    }

    .catalog-mega-sidebar-group.is-expanded .catalog-mega-sidebar-chevron {
        transform: rotate(180deg);
    }

    .catalog-mega-mobile-children {
        display: none;
        padding: 0 0 8px;
    }

    .catalog-mega-sidebar-group.is-expanded .catalog-mega-mobile-children {
        display: block;
    }

    .catalog-mega-mobile-child-link {
        display: block;
        padding: 12px 16px 12px 32px;
        min-height: 44px;
        font-size: 14px;
        color: var(--header-text);
        text-decoration: none;
        line-height: 1.35;
    }

    .catalog-mega-mobile-child-link:hover {
        background: var(--header-teal-light);
        color: var(--header-teal);
        text-decoration: none;
    }

    .catalog-mega-content {
        display: none;
    }

    .catalog-mega-all {
        grid-column: 1;
        grid-row: 2;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        background: #fff;
    }

    .header-search-form {
        order: 3;
        flex: 1 1 100%;
        padding-left: 18px;
    }

    .header-phone-label,
    .header-phone-toggle .header-chevron {
        display: none;
    }

    .header-phone-icon {
        display: block;
    }

    .header-phone,
    .header-phone-toggle {
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: var(--radius-sm);
        background: var(--color-primary);
        color: #fff !important;
        transition: background 0.2s, opacity 0.2s;
    }

    .header-phone:hover,
    .header-phone-toggle:hover {
        color: #fff !important;
        background: color-mix(in srgb, var(--color-primary) 85%, black);
        text-decoration: none;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: opacity .2s;
}
.btn:hover { opacity: .9; text-decoration: none; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--color-primary); color: var(--color-primary); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-danger { background: #e74c3c; color: #fff; }

/* Hero slider */
.hero-section {
    max-width: 1320px;
    margin: 24px auto 32px;
    padding: 0 24px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: 480px;
    background: #2a2a2a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-color: #3d4a3a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.15) 55%,
        rgba(0, 0, 0, 0.05) 100%
    );
    pointer-events: none;
}

.hero-slide-overlay--light {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.08) 45%,
        rgba(0, 0, 0, 0) 100%
    );
}

.hero-slider--mockup {
    min-height: 0;
    line-height: 0;
}

.hero-mockup-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.hero-slide-content {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 560px;
    z-index: 2;
    color: #fff;
}

.hero-slide-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #fff;
}

.hero-slide-title {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.hero-slide-subtitle {
    font-size: clamp(14px, 1.5vw, 17px);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 28px;
    opacity: 0.95;
}

.hero-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border: 1.5px solid var(--color-primary, #6ec4be);
    border-radius: 999px;
    background: transparent;
    color: var(--color-primary, #6ec4be);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hero-slide-btn:hover {
    background: color-mix(in srgb, var(--color-primary, #6ec4be) 12%, transparent);
    color: var(--color-primary, #6ec4be);
    border-color: var(--color-primary, #6ec4be);
    text-decoration: none;
}

.hero-slide-btn-arrow {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s;
}

.hero-slide-btn:hover .hero-slide-btn-arrow {
    transform: translateX(3px);
}

.hero-slider-nav {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.hero-slider-nav[hidden] {
    display: none;
}

.hero-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.hero-nav-arrow:hover {
    color: #fff;
}

.hero-nav-prev:hover { transform: translateY(-2px); }
.hero-nav-next:hover { transform: translateY(2px); }

.hero-nav-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-nav-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, width 0.2s, height 0.2s;
}

.hero-nav-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-nav-dot.is-active {
    width: 12px;
    height: 12px;
    background: #fff;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 0 16px;
    }

    .hero-slider {
        min-height: 380px;
        border-radius: calc((var(--radius-md) + var(--radius-lg)) / 2);
    }

    .hero-slide-content {
        left: 24px;
        right: 56px;
        max-width: none;
    }

    .hero-slider-nav {
        right: 16px;
        gap: 10px;
    }

    .hero-nav-dot {
        width: 6px;
        height: 6px;
    }

    .hero-nav-dot.is-active {
        width: 10px;
        height: 10px;
    }
}

/* Advantages */
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 32px auto;
}
.advantage-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
}
.advantage-icon { font-size: 2rem; margin-bottom: 12px; }
.advantage-card h3 { font-size: 1rem; margin-bottom: 8px; }
.advantage-card p { font-size: 13px; color: #666; }

/* Sections */
.section { margin: 40px auto; }
.section-title { font-size: 1.6rem; margin-bottom: 24px; border-bottom: 2px solid var(--color-primary); padding-bottom: 8px; display: inline-block; }
.section-more { text-align: center; margin-top: 24px; }

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}
.category-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow .2s ease;
}
.category-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.category-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: var(--radius-lg);
    text-decoration: none;
}
.category-card-link:hover { text-decoration: none; }
.category-card-image {
    display: block;
    flex-shrink: 0;
    aspect-ratio: 1 / 0.95;
    background: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}
.category-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 20px 20px;
}
.category-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #2d2e37;
    margin-bottom: 10px;
    line-height: 1.35;
}
.category-card:hover .category-card-title { color: var(--color-primary, #76c1ba); }
.category-card-description {
    font-size: 0.75rem;
    font-weight: 400;
    color: #7b7e86;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.category-card-subcats {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: calc(2 * 1.5 * 0.75rem);
}
.category-card-subcats li {
    font-size: 0.75rem;
    font-weight: 400;
    color: #7b7e86;
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 480px) {
    .category-card-body { padding: 14px 12px 14px; }
    .category-card-title { font-size: 0.8125rem; }
    .category-card-description,
    .category-card-subcats { display: none; }
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    align-items: stretch;
}
.product-list-view { grid-template-columns: 1fr; }
.product-list-view .product-card {
    height: auto;
    min-width: 0;
    border-radius: 20px;
}
.product-list-view .product-card-link {
    border-radius: 20px;
}
.product-list-view .product-card-inner {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px 16px;
    align-items: center;
    padding: 12px 16px;
}
.product-list-view .product-card-image {
    aspect-ratio: 1;
    width: 112px;
    max-width: 112px;
    margin-bottom: 0;
}
.product-list-view .product-card-badges {
    gap: 4px;
}
.product-list-view .product-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto;
    column-gap: 20px;
    row-gap: 4px;
    align-items: center;
    min-width: 0;
}
.product-list-view .product-card-sku {
    margin-bottom: 0;
    min-height: 0;
    font-size: 11px;
    grid-column: 1;
    grid-row: 1;
}
.product-list-view .product-card-title {
    margin-bottom: 0;
    min-height: 0;
    font-size: 14px;
    grid-column: 1;
    grid-row: 2;
}
.product-list-view .product-card-brand {
    margin-bottom: 0;
    min-height: 0;
    font-size: 13px;
    grid-column: 1;
    grid-row: 3;
}
.product-list-view .product-card-price-row {
    margin-bottom: 0;
    min-height: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
    grid-column: 1;
    grid-row: 4;
}
.product-list-view .product-card-price {
    min-height: 0;
}
.product-list-view .product-card-current-price {
    font-size: 17px;
}
.product-list-view .product-card-currency {
    font-size: 14px;
}
.product-list-view .product-card-stock {
    padding: 4px 10px;
    font-size: 10px;
}
.product-list-view .product-card-actions {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    justify-self: end;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    max-width: min(280px, 38vw);
    width: max-content;
    min-width: 200px;
    margin-top: 0;
}
.product-list-view .product-card-cart-form {
    width: 100%;
    flex: none;
}
.product-list-view .product-card-qty {
    min-width: 0;
    flex: 0 0 88px;
    padding: 2px 4px;
}
.product-list-view .product-card-qty-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
}
.product-list-view .product-card-btn-cart {
    flex: 1;
    min-width: 0;
    padding: 8px 14px;
    font-size: 13px;
}
.product-list-view .product-card-oneclick-form {
    width: auto;
    flex: none;
}
.product-list-view .product-card-btn-oneclick {
    width: 100%;
    padding: 8px 14px;
    font-size: 13px;
    box-sizing: border-box;
}
.product-list-view .product-card-secondary-actions {
    width: 100%;
    flex: none;
    gap: 8px;
}
.product-list-view .product-card-secondary-actions .product-card-oneclick-form {
    flex: 1;
    min-width: 0;
}
.product-list-view .product-card-btn-compare,
.product-list-view .product-card-btn-favorite {
    width: 56px;
    height: 36px;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .product-list-view .product-card-inner {
        grid-template-columns: 96px minmax(0, 1fr);
        padding: 12px;
    }
    .product-list-view .product-card-image {
        width: 96px;
        max-width: 96px;
    }
    .product-list-view .product-card-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .product-list-view .product-card-sku,
    .product-list-view .product-card-title,
    .product-list-view .product-card-brand,
    .product-list-view .product-card-price-row {
        grid-column: 1;
        grid-row: auto;
    }
    .product-list-view .product-card-actions {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        max-width: none;
        min-width: 0;
        width: 100%;
        margin-top: 8px;
    }
    .product-list-view .product-card-cart-form,
    .product-list-view .product-card-secondary-actions {
        width: 100%;
    }
    .product-list-view .product-card-secondary-actions .product-card-btn-oneclick {
        width: 100%;
    }
}

.product-card {
    --product-card-stock-bg: #e8f5e9;
    --product-card-stock-text: #4caf50;
    --product-card-qty-bg: color-mix(in srgb, var(--color-primary, #6ec4be) 12%, white);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 32px;
    transition: box-shadow .2s ease;
}
.product-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.product-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 32px;
    text-decoration: none;
}
.product-card-link:hover { text-decoration: none; }

.product-card-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    padding: 20px;
}

.product-card-image {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 16px;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-card-no-image {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #bdbdbd;
    font-size: 14px;
}
.no-image { background: #eee; display: flex; align-items: center; justify-content: center; height: 100%; color: #999; font-size: 13px; }
.no-image.large { min-height: 300px; }

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.product-badge-icon {
    display: none;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    margin: 0;
    vertical-align: middle;
    object-fit: contain;
}

.product-card-badges {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    z-index: 1;
}

.product-detail-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

.product-card-sku {
    font-size: 12px;
    color: #9e9e9e;
    margin-bottom: 6px;
    line-height: 1.3;
    min-height: calc(12px * 1.3);
}

.product-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.35;
    color: var(--color-text, #333);
}

.product-card-brand {
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: calc(14px * 1.3);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary, #6ec4be);
}

.product-card-brand--empty {
    visibility: hidden;
    user-select: none;
}

.product-card-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
    min-height: 16px;
}
.product-card-star {
    color: #e0e0e0;
    flex-shrink: 0;
}
.product-card-star path { fill: transparent; }
.product-card-star.is-filled {
    color: #ffc107;
}
.product-card-star.is-filled path {
    fill: #ffc107;
    stroke: #ffc107;
}

.product-card-price-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 16px;
    min-height: 0;
}
.product-card-price {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2px;
    min-width: 0;
    min-height: 0;
}
.product-card-old-price {
    font-size: 13px;
    color: #9e9e9e;
    text-decoration: line-through;
    line-height: 1.3;
    min-height: calc(13px * 1.3);
}
.product-card-old-price[aria-hidden="true"] {
    visibility: hidden;
    text-decoration: none;
}
.product-card-current-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text, #1a1a1a);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.product-card-currency {
    font-size: 16px;
    font-weight: 700;
}

.product-card-stock {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--product-card-stock-bg);
    color: var(--product-card-stock-text);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.product-card-stock--out {
    background: #fce8e8;
    color: #e74c3c;
    font-style: normal;
}

.product-card-stock--on-order {
    background: #fff3e0;
    color: #e65100;
    font-style: normal;
}

.product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.product-card-secondary-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.product-card-secondary-actions .product-card-oneclick-form {
    flex: 1;
    min-width: 0;
    width: auto;
}

.product-card-secondary-actions .product-card-btn-oneclick {
    width: 100%;
}

.product-card-secondary-actions .product-card-btn-compare,
.product-card-secondary-actions .product-card-btn-favorite {
    flex-shrink: 0;
}

.product-card-cart-form {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.product-card-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--product-card-qty-bg);
    border-radius: 999px;
    padding: 4px 6px;
    min-width: 100px;
    flex-shrink: 0;
}
.product-card-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--color-text, #555);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50%;
    line-height: 1;
    padding: 0;
    transition: background .15s;
}
.product-card-qty-btn:hover { background: rgba(0, 0, 0, 0.06); }
.product-card-qty-input {
    width: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text, #333);
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0;
}
.product-card-qty-input::-webkit-outer-spin-button,
.product-card-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-card-btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    border: none;
    border-radius: 999px;
    background: var(--color-primary, #6ec4be);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 20px;
    cursor: pointer;
    transition: opacity .2s;
    white-space: nowrap;
}
.product-card-btn-cart-icon,
.product-card-btn-oneclick-icon {
    display: none;
    flex-shrink: 0;
}
.product-card-btn-cart:hover { opacity: .92; }
.product-card-btn-cart:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.product-card-oneclick-form { width: 100%; }
.product-card-btn-oneclick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    border: 1.5px solid var(--color-accent, #e74c3c);
    border-radius: 999px;
    background: transparent;
    color: var(--color-accent, #e74c3c);
    font-size: 14px;
    font-weight: 600;
    padding: 11px 20px;
    cursor: pointer;
    transition: background .2s, color .2s;
    text-align: center;
}
.product-card-btn-oneclick:hover {
    background: color-mix(in srgb, var(--color-accent, #e74c3c) 10%, transparent);
}
.product-card-btn-oneclick:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.product-card-btn-compare {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #f5f5f5;
    color: #9e9e9e;
    cursor: pointer;
    transition: background .2s, color .2s;
    padding: 0;
}
.product-card-btn-compare:hover {
    background: #eeeeee;
    color: #757575;
}

.product-card-btn-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #f5f5f5;
    color: #9e9e9e;
    cursor: pointer;
    transition: background .2s, color .2s;
    padding: 0;
}
.product-card-btn-favorite:hover {
    background: #eeeeee;
    color: #757575;
}
.product-card-btn-favorite.is-active {
    color: var(--color-accent, #e74c3c);
    background: color-mix(in srgb, var(--color-accent, #e74c3c) 12%, white);
}
.product-card-btn-favorite.is-active svg path {
    fill: currentColor;
}

.product-card-cart-form:not(.is-qty-mode) .product-card-qty {
    display: none;
}

.product-card-cart-form.is-qty-mode .product-card-btn-cart {
    display: none;
}

/* Legacy product detail classes */
.product-sku { font-size: 12px; color: #888; margin-bottom: 4px; }
.product-stock { font-size: 12px; margin-bottom: 8px; }
.in-stock { color: #27ae60; }
.out-of-stock { color: #e74c3c; }
.product-price { margin-bottom: 8px; }
.old-price { text-decoration: line-through; color: #999; font-size: 13px; margin-right: 6px; }
.current-price { font-size: 18px; font-weight: 700; color: var(--color-primary); }
.product-rating { font-size: 13px; color: #f39c12; margin-bottom: 10px; }

/* Catalog page */
.catalog-page {
    background: #f4f5f7;
    padding: 24px 0 48px;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.catalog-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9a9da6;
    margin-bottom: 12px;
}
.catalog-breadcrumbs a {
    color: #9a9da6;
    text-decoration: none;
    transition: color .15s;
}
.catalog-breadcrumbs a:hover { color: var(--color-primary, #6ec4be); }
.catalog-breadcrumbs-sep { color: #c5c8d0; }

.catalog-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-text, #2d2e37);
    margin: 0 0 20px;
    line-height: 1.2;
}

.catalog-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.catalog-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: var(--radius-lg);
    border: 1.5px solid color-mix(in srgb, var(--color-primary, #6ec4be) 50%, white);
    background: #fff;
    color: var(--color-primary, #6ec4be);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}
.catalog-chip:hover {
    border-color: var(--color-primary, #6ec4be);
    text-decoration: none;
}
.catalog-chip.is-active {
    background: var(--color-primary, #6ec4be);
    border-color: var(--color-primary, #6ec4be);
    color: #fff;
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    margin-bottom: 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}
.catalog-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.catalog-filter-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--color-primary, #6ec4be);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: opacity .15s;
    white-space: nowrap;
}
.catalog-filter-open:hover { opacity: .92; }
.catalog-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-primary, #6ec4be);
    font-size: 11px;
    font-weight: 700;
}

.catalog-sort-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.catalog-sort-select {
    appearance: none;
    padding: 12px 36px 12px 18px;
    border: 1.5px solid color-mix(in srgb, var(--color-primary, #6ec4be) 35%, white);
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--color-text, #555);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    min-width: 160px;
}
.catalog-sort-icon {
    position: absolute;
    right: 14px;
    pointer-events: none;
    color: var(--color-primary, #6ec4be);
}

.catalog-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-lg);
    background: #f4f5f7;
}
.catalog-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: #b0b4bd;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.catalog-view-btn.is-active {
    background: var(--color-primary, #6ec4be);
    color: #fff;
}
.catalog-view-btn:hover:not(.is-active) { color: var(--color-primary, #6ec4be); }

.catalog-results { position: relative; min-height: 120px; }
.catalog-results.is-loading { opacity: .55; pointer-events: none; }
.catalog-results-meta { margin-bottom: 16px; }
.catalog-results-count {
    margin: 0;
    font-size: 14px;
    color: #7b7e86;
}
.catalog-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 40px 0;
    color: #7b7e86;
    font-size: 15px;
}

.catalog-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
@media (max-width: 1200px) {
    .catalog-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .product-card-badges {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .product-badge {
        position: relative;
        width: 24px;
        height: 24px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
        line-height: 0;
    }

    .product-badge-icon {
        display: block;
        width: 12px;
        height: 12px;
    }

    .product-badge-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .catalog-product-grid:not(.product-list-view) {
        gap: 12px;
    }

    .catalog-product-grid:not(.product-list-view) .product-card {
        border-radius: 20px;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-link {
        border-radius: 20px;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-inner {
        padding: 8px;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-image {
        margin-bottom: 6px;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-sku,
    .catalog-product-grid:not(.product-list-view) .product-card-brand,
    .catalog-product-grid:not(.product-list-view) .product-card-body .ktru-lines {
        display: none;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-title {
        font-size: 13px;
        min-height: 0;
        margin-bottom: 2px;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-price-row {
        margin-bottom: 8px;
        min-height: 0;
        gap: 4px;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-price {
        min-height: 0;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-old-price[aria-hidden="true"] {
        display: none;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-current-price {
        font-size: 17px;
        white-space: nowrap;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-currency {
        font-size: 13px;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-stock {
        padding: 3px 6px;
        font-size: 9px;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-secondary-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        width: 100%;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-cart-form {
        flex: 1;
        flex-direction: row;
        gap: 6px;
        min-width: 0;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-cart-form:not(.is-qty-mode) .product-card-btn-cart {
        flex: 1;
        width: auto;
        height: auto;
        padding: 10px 12px;
        border-radius: 999px;
        font-size: 12px;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-qty {
        flex: 1;
        min-width: 0;
        padding: 2px 4px;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-qty-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-qty-input {
        width: 24px;
        font-size: 12px;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-secondary-actions .product-card-oneclick-form {
        flex: 0 0 36px;
        width: 36px;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-secondary-actions .product-card-btn-oneclick {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-secondary-actions .product-card-btn-oneclick-label {
        display: none;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-secondary-actions .product-card-btn-oneclick-icon {
        display: block;
    }

    .catalog-product-grid:not(.product-list-view) .product-card-secondary-actions .product-card-btn-compare,
    .catalog-product-grid:not(.product-list-view) .product-card-secondary-actions .product-card-btn-favorite {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }
}

.product-grid.catalog-product-grid.product-list-view {
    grid-template-columns: 1fr;
    gap: 12px;
}

.catalog-pagination { margin: 32px 0 0; }

/* Filter modal */
.catalog-filter-root[hidden] {
    display: none !important;
}

.catalog-filter-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.catalog-filter-shell {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
}

.catalog-filter-panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
    overflow: hidden;
}

.catalog-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #eceef2;
    flex-shrink: 0;
}

.catalog-filter-header h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2d2e37;
    line-height: 1.3;
}

.catalog-filter-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-md);
    background: #f4f5f7;
    color: #555;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.catalog-filter-close:hover { background: #e8eaee; }

.catalog-filter-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.catalog-filter-body {
    overflow-y: auto;
    padding: 8px 24px 20px;
    flex: 1 1 auto;
}

.catalog-filter-section {
    padding: 16px 0;
    border-bottom: 1px solid #f0f2f5;
}

.catalog-filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.catalog-filter-label {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #2d2e37;
}

.catalog-filter-categories {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.catalog-filter-category-item { margin: 0; }

.catalog-filter-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background .15s;
    color: #2d2e37;
}
.catalog-filter-radio:hover {
    background: #f7f8fa;
}

.catalog-filter-radio-input {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 18px;
    accent-color: var(--color-primary, #6ec4be);
    cursor: pointer;
}

.catalog-filter-radio-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #2d2e37;
}

.catalog-filter-price {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.catalog-filter-field {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dfe3ea;
    border-radius: var(--radius-md);
    background: #f7f8fa;
    color: #2d2e37;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color .15s, background .15s;
}

.catalog-filter-field::placeholder {
    color: #9aa0ab;
}

.catalog-filter-field:focus {
    outline: none;
    border-color: var(--color-primary, #6ec4be);
    background: #fff;
}

.catalog-filter-select-wrap {
    position: relative;
}

.catalog-filter-select {
    appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.catalog-filter-select-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #9aa0ab;
    border-bottom: 2px solid #9aa0ab;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.catalog-filter-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid #eceef2;
    flex-shrink: 0;
    background: #fff;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.catalog-filter-reset,
.catalog-filter-apply {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, background .15s, border-color .15s;
}

.catalog-filter-reset {
    border: 1.5px solid #dfe3ea;
    background: #fff;
    color: #555;
}

.catalog-filter-reset:hover {
    border-color: #c5cad3;
    background: #f7f8fa;
}

.catalog-filter-apply {
    border: none;
    background: var(--color-primary, #6ec4be);
    color: #fff;
}

.catalog-filter-apply:hover { opacity: .92; }

.pagination { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 32px 0; }
.pagination a { padding: 8px 14px; background: #fff; border: 1px solid #ddd; border-radius: var(--radius-sm); text-decoration: none; color: inherit; }

/* Comparison */
.header-compare-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--color-accent, #e74c3c);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.header-action-compare { position: relative; }

.header-favorites-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--color-accent, #e74c3c);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.header-action-favorites { position: relative; }

.product-card-btn-compare.is-active {
    color: var(--color-primary, #6ec4be);
    background: color-mix(in srgb, var(--color-primary, #6ec4be) 12%, white);
}

.compare-page { padding: 32px 0 48px; }
.compare-page h1 { margin-bottom: 24px; }
.compare-empty {
    padding: 48px 24px;
    text-align: center;
    background: #fff;
    border-radius: var(--radius-lg, 16px);
    color: #7b7e86;
}
.compare-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.compare-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: var(--radius-lg, 16px);
    padding: 16px;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}
.compare-table th,
.compare-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}
.compare-table th {
    background: #f8f9fa;
    font-weight: 600;
    width: 180px;
}
.compare-product-cell { text-align: center; min-width: 180px; }
.compare-product-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 12px;
    display: block;
}
.compare-product-name {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}
.compare-product-price {
    font-weight: 700;
    margin-bottom: 8px;
}
.compare-remove-btn {
    border: none;
    background: none;
    color: #e74c3c;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}
.compare-stock-in { color: #4caf50; font-weight: 600; }
.compare-stock-out { color: #e74c3c; font-weight: 600; }
.compare-stock-on-order { color: #e65100; font-weight: 600; }

@media (max-width: 768px) {
    .catalog-toolbar { padding: 12px; }
    .catalog-filter-open { padding: 10px 14px; font-size: 11px; }
    .catalog-sort-select { min-width: 140px; padding: 10px 32px 10px 14px; }
    .catalog-filter-shell {
        align-items: flex-end;
        padding: 0;
    }
    .catalog-filter-panel {
        width: 100%;
        max-width: none;
        max-height: 92dvh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .catalog-filter-footer {
        border-radius: 0;
    }
}

/* Product detail */
.product-detail-page {
    background: #f5f6f8;
    padding: 24px 0 48px;
}

.product-detail-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--color-text, #2d2e37);
    margin: 0 0 20px;
    line-height: 1.25;
}

.product-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
    gap: 28px;
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
}

.product-detail-gallery-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    background: #fafafa;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.product-detail-gallery-main img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    cursor: zoom-in;
}
.product-detail-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.product-detail-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.product-detail-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s;
}
.product-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-detail-thumb:hover,
.product-detail-thumb.is-active {
    border-color: var(--color-accent, #e74c3c);
}

.product-detail-specs {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 4px;
}
.product-detail-sku {
    font-size: 13px;
    color: #9e9e9e;
    margin-bottom: 10px;
}
.product-detail-rating {
    margin-bottom: 10px;
}
.product-detail-brand {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary, #6ec4be);
    margin-bottom: 18px;
}

.product-detail-attrs {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-detail-attr-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    align-items: center;
    margin: 0;
}
.product-detail-attr-row dt {
    font-size: 14px;
    color: #9e9e9e;
    font-weight: 400;
    margin: 0;
}
.product-detail-attr-row dd {
    font-size: 14px;
    color: var(--color-text, #333);
    font-weight: 500;
    margin: 0;
}

.product-detail-color-select {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 220px;
}
.product-detail-color-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid color-mix(in srgb, var(--color-primary, #6ec4be) 40%, white);
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-primary, #6ec4be) 8%, white);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text, #333);
    text-align: left;
}
.product-detail-color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}
.product-detail-color-label {
    flex: 1;
}
.product-detail-color-chevron {
    flex-shrink: 0;
    color: #9e9e9e;
}
.product-detail-color-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 10;
}
.product-detail-color-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--color-text, #333);
    font-size: 14px;
    transition: background .15s;
}
.product-detail-color-option:hover {
    background: #f5f5f5;
    text-decoration: none;
}
.product-detail-color-option.is-current {
    background: color-mix(in srgb, var(--color-primary, #6ec4be) 12%, white);
    font-weight: 600;
}
.product-detail-color-static {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.product-detail-buy-card {
    border: 1.5px solid #e8eaed;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}
.product-detail-price-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.product-detail-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-detail-old-price {
    font-size: 14px;
    color: #9e9e9e;
    text-decoration: line-through;
}
.product-detail-current-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text, #2d2e37);
    line-height: 1.1;
}

.product-detail-cart-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product-detail-qty {
    width: 100%;
    justify-content: center;
}
.product-detail-btn-cart {
    width: 100%;
    border: none;
    border-radius: 999px;
    background: var(--color-primary, #6ec4be);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 20px;
    cursor: pointer;
    transition: opacity .2s;
}
.product-detail-btn-cart:hover { opacity: .92; }
.product-detail-btn-cart:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.product-detail-oneclick-form { width: 100%; }
.product-detail-btn-oneclick {
    width: 100%;
    border: 1.5px solid var(--color-primary, #6ec4be);
    border-radius: 999px;
    background: #fff;
    color: var(--color-primary, #6ec4be);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.product-detail-btn-oneclick:hover {
    background: color-mix(in srgb, var(--color-primary, #6ec4be) 8%, white);
}
.product-detail-btn-oneclick:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.product-detail-btn-compare {
    align-self: center;
    margin-top: 4px;
}
.product-detail-btn-favorite {
    align-self: center;
    margin-top: 4px;
}

.product-detail-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
}
.product-detail-share-label {
    font-size: 13px;
    color: #9e9e9e;
}
.product-detail-share-links {
    display: flex;
    gap: 8px;
}
.product-detail-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: opacity .15s;
}
.product-detail-share-btn:hover {
    opacity: .85;
    text-decoration: none;
    color: #fff;
}
.product-detail-share-btn--tg { background: #2aabee; }
.product-detail-share-btn--vk { background: #4a76a8; }
.product-detail-share-btn--ok { background: #ee8208; }

.product-detail-print {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: none;
    padding: 0;
    font-size: 13px;
    color: #9e9e9e;
    cursor: pointer;
    transition: color .15s;
}
.product-detail-print:hover {
    color: var(--color-primary, #6ec4be);
}

.product-detail-tabs {
    background: #fff;
    border-radius: 24px;
    padding: 24px 28px 28px;
    margin-bottom: 32px;
}
.product-detail-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.product-detail-tab {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--color-primary, #6ec4be);
    background: #fff;
    color: var(--color-primary, #6ec4be);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.product-detail-tab:hover {
    background: color-mix(in srgb, var(--color-primary, #6ec4be) 8%, white);
}
.product-detail-tab.is-active {
    background: var(--color-primary, #6ec4be);
    color: #fff;
}
.product-detail-tabpanel[hidden] {
    display: none;
}
.product-detail-tab-content {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}
.product-detail-tab-content p {
    margin-bottom: 1em;
}
.product-detail-tab-empty {
    color: #9e9e9e;
    font-size: 15px;
}
.product-detail-cross-sell {
    margin-top: 8px;
}

@media (max-width: 1023px) {
    .product-detail-hero {
        grid-template-columns: 1fr 1fr;
    }
    .product-detail-buy {
        grid-column: 1 / -1;
    }
    .product-detail-buy-card {
        max-width: 400px;
    }
}
@media (max-width: 767px) {
    .product-detail-hero {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    .product-detail-buy-card {
        max-width: none;
    }
    .product-detail-attr-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media print {
    .site-header,
    .site-footer,
    .product-detail-share,
    .product-detail-print,
    .product-detail-btn-compare,
    .product-detail-btn-favorite,
    .product-detail-cart-form,
    .product-detail-oneclick-form,
    .product-detail-tablist,
    .product-detail-cross-sell {
        display: none !important;
    }
    .product-detail-page {
        background: #fff;
        padding: 0;
    }
    .product-detail-hero,
    .product-detail-tabs {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    .product-detail-tabpanel[hidden] {
        display: block !important;
    }
}

.specs-table { width: 100%; border-collapse: collapse; margin: 16px 0 32px; background: #fff; border-radius: var(--radius-md); overflow: hidden; }
.specs-table th, .specs-table td { padding: 12px 16px; border-bottom: 1px solid #eee; text-align: left; }
.specs-table th { background: #f8f9fa; width: 40%; font-weight: 500; }

.product-description, .product-specs, .product-reviews { margin-bottom: 32px; }
.review-card { background: #fff; padding: 16px; border-radius: var(--radius-md); margin-bottom: 12px; }
.review-form { background: #fff; padding: 20px; border-radius: var(--radius-md); margin-top: 16px; }

/* Cart */
.cart-table { width: 100%; background: #fff; border-collapse: collapse; border-radius: var(--radius-md); overflow: hidden; margin: 24px 0; }
.cart-table th, .cart-table td { padding: 14px; border-bottom: 1px solid #eee; text-align: left; }
.cart-table th { background: #f8f9fa; }

/* Cart drawer */
.cart-drawer-root[hidden] {
    display: none !important;
}

.cart-drawer-root {
    position: fixed;
    inset: 0;
    z-index: 10002;
    pointer-events: none;
}

.cart-drawer-root.is-open {
    pointer-events: auto;
}

.cart-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.cart-drawer-root.is-open .cart-drawer-backdrop {
    opacity: 1;
}

.cart-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 440px);
    height: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.cart-drawer-root.is-open .cart-drawer-panel {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #eceef2;
    flex-shrink: 0;
}

.cart-drawer-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d2e37;
}

.cart-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-md);
    background: #f4f5f7;
    color: #555;
    cursor: pointer;
    transition: background 0.15s;
}

.cart-drawer-close:hover {
    background: #e8eaee;
}

.cart-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-drawer-footer {
    flex-shrink: 0;
    padding: 16px 24px 24px;
    border-top: 1px solid #eceef2;
    background: #fff;
}

.cart-drawer-footer[hidden] {
    display: none !important;
}

.cart-drawer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cart-drawer-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eceef2;
}

.cart-drawer-item-image {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f4f5f7;
}

.cart-drawer-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-drawer-item-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #aaa;
    font-size: 1.25rem;
}

.cart-drawer-item-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2d2e37;
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 4px;
}

.cart-drawer-item-title:hover {
    color: var(--color-primary);
}

.cart-drawer-item-body .ktru-lines {
    margin: 0 0 6px;
}

.cart-drawer-item-body .ktru-line {
    font-size: 0.8125rem;
    line-height: 1.35;
}

.cart-drawer-item-price {
    margin: 0 0 10px;
    font-size: 0.875rem;
    color: #6b7280;
}

.cart-drawer-item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.cart-drawer-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0e2e8;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cart-drawer-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f4f5f7;
    color: #2d2e37;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
}

.cart-drawer-qty-btn:hover {
    background: #e8eaee;
}

.cart-drawer-qty-input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid #e0e2e8;
    border-right: 1px solid #e0e2e8;
    text-align: center;
    font-size: 0.875rem;
    font-family: inherit;
    -moz-appearance: textfield;
}

.cart-drawer-qty-input::-webkit-outer-spin-button,
.cart-drawer-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-drawer-remove-btn {
    border: none;
    background: none;
    padding: 0;
    font-size: 0.8125rem;
    color: #9ca3af;
    cursor: pointer;
    text-decoration: underline;
}

.cart-drawer-remove-btn:hover {
    color: #ef4444;
}

.cart-drawer-item-subtotal {
    margin: 0;
    align-self: start;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2d2e37;
    white-space: nowrap;
}

.cart-drawer-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    font-size: 1rem;
}

.cart-drawer-total-value {
    font-size: 1.25rem;
    color: #2d2e37;
}

.cart-drawer-checkout-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #fff;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    transition: opacity 0.15s;
}

.cart-drawer-checkout-btn:hover {
    opacity: 0.92;
}

.cart-drawer-login-hint {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

.cart-drawer-login-hint a,
.cart-drawer-login-link {
    color: var(--color-primary);
    font-weight: 600;
}

.cart-drawer-login-link {
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.cart-drawer-login-link:hover {
    opacity: 0.9;
}

.cart-drawer-empty {
    text-align: center;
    padding: 48px 16px;
}

.cart-drawer-empty p {
    margin: 0 0 16px;
    font-size: 1rem;
    color: #6b7280;
}

.cart-drawer-catalog-link {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
}

.cart-drawer-catalog-link:hover {
    opacity: 0.9;
}

/* Auth & Account */
.auth-modal-root[hidden] {
    display: none !important;
}

.auth-modal-root {
    position: fixed;
    inset: 0;
    z-index: 11000;
    pointer-events: none;
}

.auth-modal-root.is-open {
    pointer-events: auto;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
    cursor: pointer;
}

.auth-modal-root.is-open .auth-modal-backdrop {
    opacity: 1;
}

.auth-modal-shell {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
}

.auth-modal-panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100dvh - 48px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.auth-modal-root.is-open .auth-modal-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 12px;
    flex-shrink: 0;
}

.auth-modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #2d2e37;
}

.auth-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-md);
    background: #f4f5f7;
    color: #555;
    cursor: pointer;
}

.auth-modal-close:hover {
    background: #e8eaef;
}

.auth-modal-tabs {
    display: flex;
    gap: 4px;
    margin: 0 24px 16px;
    padding: 4px;
    background: #f4f5f7;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.auth-modal-tab {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: calc(var(--radius-md) - 2px);
    background: transparent;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.auth-modal-tab.is-active {
    background: #fff;
    color: #2d2e37;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-modal-body {
    padding: 0 24px 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.auth-modal-pane {
    display: none;
}

.auth-modal-pane.is-active {
    display: block;
}

.auth-modal-errors {
    margin-bottom: 12px;
    padding: 10px 12px;
    font-size: 0.875rem;
    color: #b42318;
    background: #fef3f2;
    border-radius: var(--radius-sm);
}

.auth-modal-field {
    margin-bottom: 14px;
}

.auth-modal-field.has-error input {
    border-color: #f04438;
}

.auth-modal-field-error {
    display: block;
    margin-top: 4px;
    font-size: 0.8125rem;
    color: #b42318;
}

.auth-modal-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 14px;
}

.auth-modal-form .auth-modal-field input[type="text"],
.auth-modal-form .auth-modal-field input[type="password"],
.auth-modal-form .auth-modal-field input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 14px;
    box-sizing: border-box;
}

.password-input-wrap {
    position: relative;
    display: block;
}

.password-input-wrap input[type="password"],
.password-input-wrap input[type="text"] {
    width: 100%;
    padding-right: 44px;
    box-sizing: border-box;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.password-toggle-btn:hover {
    color: #374151;
    background: rgba(0, 0, 0, 0.04);
}

.password-toggle-btn.is-active {
    color: var(--color-primary);
}

.auth-form .password-input-wrap input {
    width: 100%;
}

.auth-modal-field .helptext {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #6b7280;
}

.auth-modal-field input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

.auth-modal-submit {
    width: 100%;
    margin-top: 8px;
}

.auth-page { max-width: 600px; margin: 40px auto; }

/* Checkout page */
.checkout-page {
    padding: 32px 0 56px;
}

.checkout-header {
    margin-bottom: 24px;
}

.checkout-eyebrow {
    margin: 0 0 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.checkout-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 700;
    color: var(--color-text);
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.checkout-main {
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.checkout-note {
    margin: 0;
    padding: 14px 20px;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #4b5563;
    background: color-mix(in srgb, var(--color-primary) 8%, #fff);
    border-bottom: 1px solid #eceef2;
}

.checkout-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checkout-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid #f0f2f5;
}

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

.checkout-item-media {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f4f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-no-image {
    color: #9ca3af;
    font-size: 1.25rem;
}

.checkout-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-item-top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    justify-content: space-between;
}

.checkout-item-info {
    flex: 1 1 200px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-item-name {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: #2d2e37;
    text-decoration: none;
}

a.checkout-item-name:hover {
    color: var(--color-primary);
}

.checkout-item-meta {
    font-size: 0.8125rem;
    color: #6b7280;
}

.checkout-item-price {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.checkout-item-qty {
    font-size: 0.8125rem;
    color: #6b7280;
}

.checkout-item-subtotal {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2d2e37;
}

.checkout-ktru-select {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkout-ktru-select--hidden {
    display: none;
}

.checkout-ktru-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.checkout-ktru-field {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    font: inherit;
    background: #fff;
}

.checkout-sidebar {
    position: sticky;
    top: 24px;
}

.checkout-form {
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    padding: 24px;
}

.checkout-form-fields {
    margin-bottom: 20px;
}

.checkout-field {
    margin-bottom: 12px;
}

.checkout-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    margin-bottom: 16px;
    border-top: 1px solid #eceef2;
    border-bottom: 1px solid #eceef2;
    font-size: 1rem;
    color: #374151;
}

.checkout-summary strong {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.checkout-payment-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-pay-btn {
    width: 100%;
}

.checkout-payment-hint {
    margin: 12px 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #6b7280;
    text-align: center;
}

.checkout-payment-hint--hidden {
    display: none;
}

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        position: static;
    }
}

@media (max-width: 520px) {
    .checkout-page {
        padding: 24px 0 40px;
    }

    .checkout-item {
        flex-direction: column;
        padding: 16px;
    }

    .checkout-item-media {
        width: 100%;
        height: 160px;
    }

    .checkout-item-price {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .checkout-form {
        padding: 16px;
    }
}

/* Electronic certificates page */
.e-cert-page {
    width: 100%;
    padding: 32px 0 48px;
    box-sizing: border-box;
}

.e-cert-page > .container {
    width: 100%;
    box-sizing: border-box;
}

.e-cert-page-title {
    margin: 0 0 28px;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

.e-cert-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.e-cert-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    background: #fff;
}

@media (min-width: 768px) {
    .e-cert-card {
        grid-template-columns: minmax(160px, 280px) minmax(0, 1fr);
        align-items: start;
        gap: 24px;
        padding: 24px;
    }
}

.e-cert-card-body {
    min-width: 0;
    width: 100%;
}

.e-cert-card-media {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f0f4f8;
}

.e-cert-card-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.e-cert-card-title {
    margin: 0 0 12px;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text);
}

.e-cert-card-description {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--color-text);
}

.e-cert-card-description p {
    margin: 0 0 10px;
}

.e-cert-card-description p:last-child {
    margin-bottom: 0;
}

.e-cert-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.e-cert-card-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.875rem;
    line-height: 1.35;
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.e-cert-card-btn:hover {
    filter: brightness(1.05);
    color: #fff;
}

.e-cert-empty {
    color: #666;
    font-size: 1rem;
}

/* Account (личный кабинет) */
.account-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 32px auto 48px;
    align-items: start;
}

@media (min-width: 768px) {
    .account-layout {
        grid-template-columns: 260px 1fr;
        gap: 32px;
    }
}

.account-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(45, 46, 55, 0.08);
    border: 1px solid #eceef2;
}

.account-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.account-user-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.account-user-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2d2e37;
    line-height: 1.3;
}

.account-user-email {
    margin: 4px 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
    word-break: break-word;
}

.account-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

@media (min-width: 768px) {
    .account-nav {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 4px;
    }
}

.account-nav-link {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.account-nav-link:hover {
    background: #f4f5f7;
    color: #2d2e37;
}

.account-nav-link.is-active {
    background: color-mix(in srgb, var(--color-primary) 12%, #fff);
    color: var(--color-primary);
    font-weight: 600;
}

.account-logout-form {
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid #eceef2;
}

@media (min-width: 768px) {
    .account-logout-form {
        margin-top: auto;
        padding-top: 16px;
    }

    .account-sidebar {
        min-height: 420px;
    }
}

.account-logout-btn {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    background: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.account-logout-btn:hover {
    border-color: #9ca3af;
    color: #374151;
    background: #f9fafb;
}

.account-main {
    min-width: 0;
}

.account-main-header {
    margin-bottom: 20px;
}

.account-main-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d2e37;
    line-height: 1.25;
}

.account-main-lead {
    margin: 8px 0 0;
    font-size: 0.9375rem;
    color: #6b7280;
}

.account-card {
    padding: 28px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(45, 46, 55, 0.08);
    border: 1px solid #eceef2;
}

.account-card--flush {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.account-card .auth-form p,
.account-profile-form .account-form-field {
    margin-bottom: 0;
}

.account-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 640px) {
    .account-form-grid .account-form-field--first_name,
    .account-form-grid .account-form-field--last_name {
        grid-column: span 1;
    }

    .account-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .account-form-grid .account-form-field--email,
    .account-form-grid .account-form-field--phone {
        grid-column: 1 / -1;
    }
}

.account-form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
}

.account-form-field input,
.account-form-field textarea {
    width: 100%;
    box-sizing: border-box;
}

.account-field-error {
    display: block;
    margin-top: 4px;
    font-size: 0.8125rem;
    color: #b42318;
}

.account-form-actions {
    margin-top: 24px;
    padding-top: 8px;
}

.account-empty {
    margin: 0;
    padding: 32px 16px;
    text-align: center;
    font-size: 1rem;
    color: #6b7280;
}

.account-favorites-grid {
    margin: 0;
}

.product-card-favorite-remove,
.favorite-remove-btn {
    display: block;
    width: 100%;
    border: none;
    background: none;
    color: #e74c3c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-align: center;
    padding: 0;
    position: relative;
    z-index: 2;
}
.product-card-favorite-remove:hover,
.favorite-remove-btn:hover {
    opacity: .85;
}

.order-card {
    background: #f9fafb;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid #eceef2;
}

.order-card:last-child {
    margin-bottom: 0;
}

.order-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.order-card-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #2d2e37;
}

.order-card-status {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-primary) 14%, #fff);
    color: var(--color-primary);
}

.order-card-meta {
    margin: 0 0 12px;
    font-size: 0.875rem;
    color: #6b7280;
}

.order-card-note {
    margin: 0 0 12px;
    font-size: 0.9375rem;
    color: #4b5563;
}

.order-card-items {
    margin: 0 0 12px;
    padding-left: 1.25rem;
    font-size: 0.9375rem;
    color: #374151;
}

.order-card-total {
    margin: 0 0 16px;
    font-size: 1rem;
}

.ktru-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.ktru-line {
    display: block;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.35;
}

.ktru-lines--compact {
    margin-top: 2px;
}

/* Manager carts in account */
.manager-carts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.manager-cart-account-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(45, 46, 55, 0.08);
}

.manager-cart-account-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #eceef2;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.manager-cart-account-eyebrow {
    margin: 0 0 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.manager-cart-account-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d2e37;
    line-height: 1.25;
}

.manager-cart-account-manager {
    margin: 6px 0 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.manager-cart-account-badge {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--color-primary) 12%, #fff);
    color: var(--color-primary);
}

.manager-cart-account-note {
    padding: 14px 24px;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #4b5563;
    background: color-mix(in srgb, var(--color-primary) 6%, #fff);
    border-bottom: 1px solid #eceef2;
}

.manager-cart-account-table-wrap {
    overflow-x: auto;
}

.manager-cart-account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.manager-cart-account-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #eceef2;
    white-space: nowrap;
}

.manager-cart-account-table thead th:nth-child(2),
.manager-cart-account-table thead th:nth-child(3),
.manager-cart-account-table thead th:nth-child(4),
.manager-cart-account-table tbody td:nth-child(2),
.manager-cart-account-table tbody td:nth-child(3),
.manager-cart-account-table tbody td:nth-child(4),
.manager-cart-account-table tfoot td:last-child {
    text-align: right;
}

.manager-cart-account-table tbody td {
    padding: 14px 16px;
    vertical-align: top;
    border-bottom: 1px solid #f0f2f5;
    color: #374151;
}

.manager-cart-account-product {
    min-width: 220px;
}

.manager-cart-account-item-name {
    display: block;
    font-weight: 600;
    line-height: 1.4;
    color: #2d2e37;
}

.manager-cart-account-item-meta {
    display: block;
    margin-top: 2px;
    font-size: 0.8125rem;
    color: #6b7280;
}

.manager-cart-account-table tfoot td {
    padding: 14px 16px;
    background: #f9fafb;
    border-top: 1px solid #eceef2;
    font-size: 0.9375rem;
    color: #374151;
}

.manager-cart-account-table tfoot td:last-child {
    font-size: 1.0625rem;
    color: #2d2e37;
}

.manager-cart-account-footer {
    display: flex;
    justify-content: flex-end;
    padding: 18px 24px 22px;
    border-top: 1px solid #eceef2;
}

.manager-cart-account-pay {
    min-width: 160px;
}

.manager-carts-empty {
    padding: 28px;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(45, 46, 55, 0.08);
}

@media (max-width: 640px) {
    .manager-cart-account-header,
    .manager-cart-account-note,
    .manager-cart-account-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .manager-cart-account-table thead {
        display: none;
    }

    .manager-cart-account-table tbody tr {
        display: block;
        padding: 12px 16px;
        border-bottom: 1px solid #f0f2f5;
    }

    .manager-cart-account-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 4px 0;
        border: none;
        text-align: right;
    }

    .manager-cart-account-table tbody td::before {
        content: attr(data-label);
        font-size: 0.8125rem;
        font-weight: 500;
        color: #6b7280;
        text-align: left;
    }

    .manager-cart-account-table tbody td.manager-cart-account-product {
        display: block;
        padding-bottom: 10px;
        margin-bottom: 6px;
        border-bottom: 1px solid #f0f2f5;
        text-align: left;
    }

    .manager-cart-account-table tbody td.manager-cart-account-product::before {
        display: none;
    }

    .manager-cart-account-table tfoot tr {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 14px 16px;
        background: #f9fafb;
    }

    .manager-cart-account-table tfoot td {
        padding: 0;
        border: none;
        background: transparent;
    }

    .manager-cart-account-total-label {
        flex: 1;
        text-align: left;
    }

    .manager-cart-account-total-value {
        flex: 0 0 auto;
        text-align: right;
    }

    .manager-cart-account-footer {
        justify-content: stretch;
    }

    .manager-cart-account-pay {
        width: 100%;
    }
}

/* Manager cart share link landing */
.manager-cart-link-page {
    padding: 40px 0 56px;
}

.manager-cart-link-card {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.manager-cart-link-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid #eceef2;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.manager-cart-link-eyebrow {
    margin: 0 0 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.manager-cart-link-title {
    margin: 0;
    font-size: clamp(1.375rem, 2.5vw, 1.625rem);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.25;
}

.manager-cart-link-note {
    margin: 0;
    padding: 14px 24px;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #4b5563;
    background: color-mix(in srgb, var(--color-primary) 8%, #fff);
    border-bottom: 1px solid #eceef2;
}

.manager-cart-link-items {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.manager-cart-link-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f2f5;
}

.manager-cart-link-item:last-child {
    border-bottom: none;
}

.manager-cart-link-item-main {
    flex: 1 1 240px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.manager-cart-link-item-name {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: #2d2e37;
}

.manager-cart-link-item-meta {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.35;
    word-break: break-word;
}

.manager-cart-link-item-price {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.manager-cart-link-item-qty {
    font-size: 0.8125rem;
    color: #6b7280;
}

.manager-cart-link-item-subtotal {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2d2e37;
    white-space: nowrap;
}

.manager-cart-link-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #eceef2;
    font-size: 1rem;
    color: #374151;
}

.manager-cart-link-summary strong {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
}

.manager-cart-link-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid #eceef2;
}

.manager-cart-link-hint {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #4b5563;
    text-align: center;
}

.manager-cart-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.manager-cart-link-actions .btn {
    flex: 1 1 140px;
    max-width: 220px;
}

@media (max-width: 520px) {
    .manager-cart-link-page {
        padding: 24px 0 40px;
    }

    .manager-cart-link-header,
    .manager-cart-link-note,
    .manager-cart-link-item,
    .manager-cart-link-summary,
    .manager-cart-link-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .manager-cart-link-item-price {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .manager-cart-link-actions {
        flex-direction: column;
    }

    .manager-cart-link-actions .btn {
        max-width: none;
        width: 100%;
    }
}

.ktru-check-box {
    background: transparent;
    padding: 0;
    border-radius: 0;
    text-align: center;
}

.ktru-check-box p {
    margin: 0 0 12px;
    font-size: 1rem;
    color: #374151;
}

.ktru-check-price {
    font-weight: 600;
    color: #2d2e37;
}

.ktru-check-form {
    margin: 20px 0 16px;
}

.ktru-check-hint {
    margin-bottom: 16px;
}

.ktru-check-results {
    margin: 20px 0;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md, 8px);
    text-align: left;
}

.ktru-check-results h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.ktru-check-results-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ktru-check-results-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.ktru-check-results-list li:last-child {
    border-bottom: none;
}

.ktru-check-basket {
    margin: 20px 0;
    text-align: left;
}

.ktru-check-basket-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.ktru-check-basket-summary {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: #374151;
}

.ktru-check-basket-table-wrap {
    max-height: min(60vh, 520px);
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md, 8px);
    background: #fff;
}

.ktru-check-basket-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.ktru-check-basket-table th,
.ktru-check-basket-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
}

.ktru-check-basket-table th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    font-weight: 600;
    z-index: 1;
}

.ktru-check-basket-tru code {
    font-size: 0.75rem;
    word-break: break-all;
}
.ktru-check-row-approved {
    background: #ecfdf3;
}
.ktru-check-row-not-approved {
    background: #f8fafc;
}
.ktru-check-row-not-checked {
    background: #fffbeb;
}
.ktru-check-running {
    margin: 32px auto;
    max-width: 420px;
    padding: 32px 24px;
    text-align: center;
}
.ktru-check-running-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: ktru-check-spin 0.9s linear infinite;
}
@keyframes ktru-check-spin {
    to { transform: rotate(360deg); }
}
.ktru-check-running-title {
    margin: 0 0 8px;
    font-size: 1.25rem;
}
.ktru-check-running-step {
    margin: 0 0 12px;
    font-size: 1rem;
}
.ktru-check-form--hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.ktru-check-certificates {
    margin: 20px 0;
    text-align: left;
}
.ktru-check-certificates-title {
    margin: 0 0 12px;
    font-size: 1.15rem;
}
.ktru-check-certificates-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.ktru-check-certificate-card {
    padding: 14px 16px;
    border: 1px solid #dbeafe;
    border-radius: var(--radius-md, 8px);
    background: #eff6ff;
}
.ktru-check-certificate-id {
    margin: 0 0 8px;
    font-size: 0.9rem;
    word-break: break-all;
}
.ktru-check-certificate-comp,
.ktru-check-certificate-tru {
    margin: 0 0 4px;
    font-size: 0.9rem;
}
.auth-form p, .checkout-form p { margin-bottom: 14px; }
.auth-form label, .checkout-form label { display: block; margin-bottom: 4px; font-weight: 500; font-size: 14px; }
.auth-form input, .auth-form textarea, .checkout-form input, .checkout-form textarea,
.review-form input, .review-form textarea, .review-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.checkout-form .checkout-payment-method {
    margin: 0 0 20px;
    padding: 0;
    border: none;
    min-width: 0;
}

.checkout-form .checkout-payment-method-label {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    float: none;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
}

.checkout-form .checkout-payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: #374151;
    cursor: pointer;
}

.checkout-form .checkout-payment-option:last-child {
    margin-bottom: 0;
}

.checkout-form .checkout-payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.checkout-form .checkout-payment-option span {
    flex: 1;
    min-width: 0;
}

.text-muted { color: #888; margin-top: 16px; }

/* Messages */
.messages { margin-top: 16px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 8px; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error, .alert-danger { background: #f8d7da; color: #721c24; }
.alert-info, .alert-warning { background: #fff3cd; color: #856404; }

/* Footer */
.site-footer {
    background: var(--color-footer-bg, #2c3e50);
    color: #ecf0f1;
    margin-top: 60px;
    padding: 40px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    padding-bottom: 32px;
}
.site-footer h3, .site-footer h4 { margin-bottom: 12px; }
.site-footer a { color: #bdc3c7; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; text-align: center; font-size: 13px; color: #95a5a6; }

.main-content { min-height: 60vh; }

/* Legal consent checkboxes */
.legal-consent-fields {
    margin: 18px 0 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e6ebf1;
    border-radius: var(--radius-md);
    box-sizing: border-box;
}

.legal-consent-item {
    margin: 0;
}

.legal-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.auth-modal-field.legal-consent-item .legal-consent-label,
.callback-modal-field.legal-consent-item .legal-consent-label {
    display: flex;
    margin-bottom: 0;
    font-weight: 400;
}

.legal-consent-checkbox-wrap {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.legal-consent-checkbox {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.legal-consent-checkbox-ui {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    border: 1.5px solid #c8d0da;
    border-radius: 5px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.legal-consent-checkbox:hover + .legal-consent-checkbox-ui {
    border-color: color-mix(in srgb, var(--color-primary) 55%, #c8d0da);
}

.legal-consent-checkbox:focus-visible + .legal-consent-checkbox-ui {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 22%, transparent);
    border-color: var(--color-primary);
}

.legal-consent-checkbox:checked + .legal-consent-checkbox-ui {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.legal-consent-checkbox:checked + .legal-consent-checkbox-ui::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
    box-sizing: border-box;
}

.legal-consent-text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #4a5563;
}

.legal-consent-text a {
    color: #0d7a8c;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.legal-consent-text a:hover {
    color: var(--color-primary);
}

.legal-consent-item.has-error .legal-consent-text {
    color: #8b3a3a;
}

.legal-consent-item.has-error .legal-consent-checkbox-ui {
    border-color: #e57373;
}

.legal-consent-error {
    display: block;
    margin-top: 6px;
    padding-left: 32px;
    font-size: 12px;
    line-height: 1.4;
    color: #c0392b;
}

.auth-modal-field.legal-consent-item,
.callback-modal-field.legal-consent-item {
    margin: 0;
}

.auth-modal-field.legal-consent-item .legal-consent-error,
.callback-modal-field.legal-consent-item .legal-consent-error {
    padding-left: 32px;
}

@media (max-width: 480px) {
    .legal-consent-fields {
        padding: 12px 14px;
        gap: 12px;
    }

    .legal-consent-text {
        font-size: 12px;
        line-height: 1.5;
    }
}

/* Legal document page */
.legal-doc-page {
    width: 100%;
    padding: 32px 0 48px;
    box-sizing: border-box;
}

.legal-doc-page-title {
    margin: 0 0 24px;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-text);
}

.legal-doc-content {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text);
}

.legal-doc-content h2,
.legal-doc-content h3 {
    margin: 1.5em 0 0.75em;
    font-weight: 600;
}

.legal-doc-content p {
    margin: 0 0 1em;
}

.legal-doc-content ul,
.legal-doc-content ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}

.legal-doc-content a {
    color: var(--color-primary);
}

.legal-doc-empty {
    color: #666;
}

/* Free page */
.free-page {
    width: 100%;
    padding: 32px 0 48px;
    box-sizing: border-box;
}

.free-page-title {
    margin: 0 0 24px;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-text);
}

.free-page-content {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text);
}

.free-page-content h2,
.free-page-content h3 {
    margin: 1.5em 0 0.75em;
    font-weight: 600;
}

.free-page-content p {
    margin: 0 0 1em;
}

.free-page-content ul,
.free-page-content ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}

.free-page-content a {
    color: var(--color-primary);
}

.free-page-content img {
    max-width: 100%;
    height: auto;
}

.free-page-empty {
    color: #666;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    padding: 16px 0;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1 1 320px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
}

.cookie-banner-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner-accept,
.cookie-banner-decline {
    min-width: 120px;
}

/* Callback modal */
.callback-modal-root[hidden] {
    display: none !important;
}

.callback-modal-root {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.callback-modal-root.is-open {
    pointer-events: auto;
}

.callback-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.callback-modal-root.is-open .callback-modal-backdrop {
    opacity: 1;
}

.callback-modal-shell {
    position: relative;
    width: 100%;
    max-width: 440px;
    z-index: 1;
}

.callback-modal-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    max-height: calc(100vh - 32px);
    overflow: auto;
}

.callback-modal-root.is-open .callback-modal-panel {
    transform: translateY(0);
    opacity: 1;
}

.callback-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 12px;
}

.callback-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.callback-modal-close {
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    padding: 4px;
}

.callback-modal-body {
    padding: 0 24px 24px;
}

.callback-modal-errors {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: #f8d7da;
    color: #721c24;
    font-size: 14px;
}

.callback-modal-errors[hidden] {
    display: none !important;
}

.callback-modal-field {
    margin-bottom: 14px;
}

.callback-modal-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

.callback-modal-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font: inherit;
}

.callback-modal-field.has-error .callback-modal-input {
    border-color: #c0392b;
}

.callback-modal-field-error {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #c0392b;
}

.callback-modal-field-error[hidden] {
    display: none !important;
}

.callback-modal-submit {
    width: 100%;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-banner-accept,
    .cookie-banner-decline {
        flex: 1;
    }
}

