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

:root {
    --color-primary: #e74c3c;
    --color-primary-dark: #c0392b;
    --color-secondary: #27ae60;
    --color-text: #2c3e50;
    --color-text-light: #666;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--color-text);
    line-height: 1.6;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header */
.header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 0.85rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.tagline {
    font-size: 0.82rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1 1 460px;
    justify-content: center;
    min-width: 0;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.main-nav-link {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    min-height: 38px;
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav-link:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.main-nav-link.active {
    background: #fff;
    color: #b3342b;
}

.cart-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.6rem 0.9rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.cart-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cart-button:active {
    transform: translateY(0);
}

.cart-icon {
    font-size: 1.2rem;
}

.cart-text {
    display: inline;
}

.cart-badge {
    background: #f39c12;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 0.25rem;
}

/* Main Container */
main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    margin-bottom: var(--spacing-lg);
}

/* Search */
.search-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 12px;
}

.search-box {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: all 0.3s;
}

.search-box:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.sort-select {
    width: 100%;
    padding: 0 14px;
    min-height: 56px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    color: var(--color-text);
    font-size: 0.98rem;
    font-weight: 700;
}

.sort-select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.18);
}

/* Trust Section */
.trust-section {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
}

.trust-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #28a745;
    border-radius: 12px;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.trust-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.trust-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    animation: gentle-bounce 2s ease-in-out infinite;
}

@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.trust-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2c3e50;
    margin: 0;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
}

.trust-text br {
    display: block;
    margin: 8px 0;
}

@media (max-width: 768px) {
    .trust-content {
        padding: 25px 20px;
        border-left-width: 3px;
    }

    .trust-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .trust-text {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Filters Section */
.filters-section {
    margin-bottom: var(--spacing-lg);
}

.filters-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.filters-title {
    font-size: 1.3em;
    color: var(--color-primary);
    margin: 0;
    font-weight: 600;
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-toggle-btn {
    display: none;
    border: 1px solid #dfe6e1;
    background: #f8faf9;
    color: #244236;
    border-radius: 8px;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}

.filters-summary {
    display: none;
    color: #66777f;
    font-size: 0.9rem;
    margin: -8px 0 14px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
    font-size: 0.95em;
}

.filter-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.filter-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    color: var(--color-text);
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.filter-btn:hover {
    background: #e8f4f8;
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.clear-filters-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.catalog-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e3ebe6;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 18px 0 8px;
    color: #50636c;
    box-shadow: var(--shadow-sm);
}

.catalog-progress strong {
    color: #263238;
}

.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin: 22px 0 36px;
}

.load-more-btn {
    border: 0;
    background: #244236;
    color: white;
    border-radius: 8px;
    min-height: 46px;
    padding: 0 22px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(36, 66, 54, 0.18);
}

.load-more-btn:hover {
    transform: translateY(-2px);
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: #e33b32;
    color: white;
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(198, 40, 40, 0.28);
    cursor: pointer;
    z-index: 2200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: #c62828;
    outline: none;
    transform: translateY(-2px);
}

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

    .filter-btn {
        width: 100%;
    }

    .product-card {
        padding: 10px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-price-unit {
        font-size: 11px;
    }

    .add-to-cart-btn {
        font-size: 13px;
        padding: 8px;
    }
}

/* Alphabet Navigation */
.alphabet-nav {
    display: none; /* Скрыто по умолчанию */
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.alphabet-nav.show {
    display: flex;
}

.toggle-alphabet-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.toggle-alphabet-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
}

.toggle-alphabet-btn.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.alphabet-toggle-container {
    text-align: center;
    margin-bottom: 20px;
}

.alphabet-nav a {
    display: inline-block;
    padding: 8px 15px;
    text-decoration: none;
    color: #e74c3c;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.alphabet-nav a:hover {
    background: #e74c3c;
    color: white;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

/* Карточка товара - ИДЕАЛЬНАЯ ВЕРСИЯ */
.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Фото товара */
.product-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    background: #f5f5f5;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.product-image:hover {
    transform: scale(1.02);
}

/* Модальное окно для просмотра изображения */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 4000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-modal.open {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 4001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.product-image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #bbb;
}

/* Бейдж */
.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #fbe9e7;
    color: #c62828;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    z-index: 10;
}

/* Название */
.product-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
    margin: 0;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Назначение */
.product-purpose {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    min-height: 1.35em;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Описание товара */
.product-description {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    margin: 6px 0;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

/* Характеристики (максимум 2) */
.product-specs-compact {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #555;
    margin: 6px 0;
    min-height: 18px;
    min-width: 0;
    overflow: hidden;
}

.product-spec-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.product-spec-compact span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spec-icon-compact {
    font-size: 14px;
}

/* Цена */
.product-price-container {
    margin: auto 0 8px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #c62828;
    line-height: 1.2;
}

.product-price-unit {
    display: block;
    font-size: 12px;
    color: #777;
    font-weight: 400;
    margin-top: 2px;
}

/* Кнопка и действия */
.product-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.quantity-input {
    width: 50px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.add-to-cart-btn {
    flex: 1;
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.add-to-cart-btn:hover {
    background: #b71c1c;
}

.cart-icon {
    font-size: 16px;
}

/* Наличие */
.product-availability {
    text-align: center;
    font-size: 11px;
    color: #28a745;
    margin-top: 4px;
    font-weight: 500;
}

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-align: center;
    font-size: 1em;
}

.add-to-cart-btn {
    flex: 1;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    position: relative;
    z-index: 1;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.add-to-cart-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
}

.cart-icon {
    font-size: 1.2em;
}

.product-availability {
    text-align: center;
    font-size: 0.75rem;
    color: #28a745;
    margin-top: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.product-availability::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    font-size: 0.9em;
}

.product-availability-waitlist::before {
    content: '🔔';
    color: inherit;
}

.product-availability-waitlist {
    color: #c62828;
}

.wishlist-button {
    background: rgba(255, 255, 255, 0.16);
    border: 2px solid rgba(255, 255, 255, 0.28);
    color: white;
    padding: 0.6rem 0.9rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.wishlist-button:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-action,
.feature-btn {
    border: 2px solid #dfe5e8;
    background: white;
    color: var(--color-text);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.hero-action:hover,
.feature-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(44, 62, 80, 0.12);
}

.hero-action-primary,
.feature-btn-primary {
    background: #c62828;
    border-color: #c62828;
    color: white;
}

.feature-btn-ghost {
    background: #f8faf9;
    color: #244236;
    border-color: #c9d7cf;
}

.feature-btn:disabled,
.add-to-cart-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

[hidden] {
    display: none !important;
}

.catalog-workbench {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.catalog-workbench > .filters-section {
    grid-column: 1;
    position: sticky;
    top: 112px;
    height: calc(100vh - 128px);
    max-height: calc(100vh - 128px);
    overflow: hidden;
    margin-bottom: 0;
}

.catalog-main {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    width: 100%;
}

.catalog-workbench .container {
    max-width: none;
    padding: 0;
}

.catalog-workbench > .filters-section > .container {
    height: 100%;
    max-height: inherit;
}

.catalog-workbench .filters-container {
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: inherit;
    margin-bottom: 0;
    overflow: hidden;
}

.catalog-workbench .filters-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
}

.catalog-workbench .filters-body::-webkit-scrollbar {
    width: 8px;
}

.catalog-workbench .filters-body::-webkit-scrollbar-track {
    background: #eef3f0;
    border-radius: 999px;
}

.catalog-workbench .filters-body::-webkit-scrollbar-thumb {
    background: #c8d5cf;
    border-radius: 999px;
}

.catalog-main > .alphabet-toggle-container,
.catalog-main > .alphabet-nav,
.catalog-main > .stats-section,
.catalog-main > .trust-section,
.catalog-main > .shelves-section,
.catalog-main > .products-section,
.catalog-main > .container {
    width: 100%;
}

.catalog-main > .alphabet-toggle-container,
.catalog-main > .alphabet-nav,
.catalog-main > .stats-section,
.catalog-main > .trust-section,
.catalog-main > .shelves-section {
    margin-bottom: 0;
}

.view-transition {
    animation: viewFadeIn 0.18s ease-out;
}

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

.smart-category-section,
.selector-section,
.kits-section,
.shelves-section,
.retention-section {
    margin-bottom: var(--spacing-lg);
}

.smart-category-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: thin;
}

.smart-category-btn {
    flex: 0 0 auto;
    border: 1px solid #d8e2dc;
    background: #fff;
    color: #244236;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.smart-category-btn:hover,
.smart-category-btn.active {
    background: #244236;
    color: #fff;
}

.selector-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: stretch;
}

.selector-panel,
.selector-results,
.shelf-block,
.retention-card {
    background: #fff;
    border: 1px solid #e5ece8;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 22px;
}

.feature-eyebrow {
    color: #28794d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.feature-title {
    color: #263238;
    font-size: 1.55rem;
    line-height: 1.2;
    margin: 0 0 16px;
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quiz-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 700;
    color: #2f3f46;
}

.quiz-field-wide {
    grid-column: 1 / -1;
}

.quiz-field select {
    width: 100%;
    min-height: 44px;
    border: 2px solid #dfe5e8;
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
    background: white;
    color: var(--color-text);
}

.quiz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.empty-feature-state {
    height: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #73818a;
    background: #f7faf8;
    border: 1px dashed #cbd8d1;
    border-radius: 10px;
    text-align: center;
    padding: 18px;
}

.quiz-result-header,
.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.quiz-result-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #263238;
}

.mini-product-grid,
.shelf-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

.mini-product-card {
    background: #fff;
    border: 1px solid #e5ece8;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100%;
    min-width: 0;
    overflow: hidden;
}

.mini-product-card img,
.mini-product-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
    background: #f4f6f5;
}

.mini-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b64a3d;
    font-size: 1.8rem;
}

.mini-product-title {
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
    color: #263238;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-product-meta {
    color: #66777f;
    font-size: 0.8rem;
    min-height: 1.35em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.kit-card {
    background: #fff;
    border: 1px solid #e1e8e4;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kit-card h3 {
    color: #263238;
    font-size: 1.08rem;
    line-height: 1.25;
    margin: 0;
}

.kit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #50636c;
    font-size: 0.85rem;
}

.kit-meta span,
.loyalty-steps span {
    background: #f1f7f3;
    border: 1px solid #dce9df;
    border-radius: 999px;
    padding: 6px 10px;
}

.kit-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    min-width: 0;
}

.mini-product-card .kit-actions {
    grid-template-columns: minmax(0, 1fr) 48px;
}

.mini-product-card .feature-btn {
    min-height: 42px;
    padding: 9px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feature-btn-cart {
    width: 48px;
    min-width: 48px;
    padding: 0;
    font-size: 1.05rem;
    line-height: 1;
}

.shelf-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.shelf-tab {
    flex: 0 0 auto;
    border: 1px solid #dce5e0;
    background: #fff;
    color: #33454d;
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 800;
    cursor: pointer;
}

.shelf-tab.active {
    background: #c62828;
    border-color: #c62828;
    color: white;
}

.retention-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 14px;
}

.retention-card p {
    color: #50636c;
    margin: 0 0 16px;
}

.calendar-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.calendar-step {
    border-left: 4px solid #28794d;
    background: #f6faf7;
    border-radius: 8px;
    padding: 10px;
}

.calendar-step strong {
    display: block;
    color: #263238;
    margin-bottom: 2px;
}

.calendar-step span {
    color: #66777f;
    font-size: 0.88rem;
}

.loyalty-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.honest-badge {
    background: #f1f7f3;
    color: #22623f;
    border: 1px solid #d5e7dc;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.1;
}

.product-tools {
    display: grid;
    grid-template-columns: minmax(86px, 1fr) minmax(64px, 0.75fr) 42px;
    gap: 6px;
    margin-top: 2px;
}

.tool-btn {
    min-width: 0;
    border: 1px solid #dfe6e1;
    background: #fff;
    border-radius: 8px;
    min-height: 34px;
    cursor: pointer;
    color: #2f3f46;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-btn:hover,
.tool-btn.active {
    background: #244236;
    color: #fff;
    border-color: #244236;
}

.feature-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 3800;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.feature-modal.open {
    display: flex;
}

.feature-modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: min(760px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    position: relative;
}

.feature-modal-wide {
    width: min(1050px, 98vw);
}

.feature-modal-close {
    position: absolute;
    right: 14px;
    top: 12px;
    border: none;
    background: #eef2f0;
    color: #263238;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
}

.passport-hero {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: start;
    padding-right: 24px;
}

.passport-hero img,
.passport-hero-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    background: #f4f6f5;
}

.passport-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #b64a3d;
}

.passport-title {
    color: #263238;
    font-size: 1.6rem;
    margin: 0 0 8px;
    line-height: 1.2;
}

.passport-description {
    color: #50636c;
    margin: 10px 0 0;
    line-height: 1.55;
}

.passport-stat-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.passport-stat {
    background: #f7faf8;
    border: 1px solid #e2ebe6;
    border-radius: 8px;
    padding: 10px;
}

.passport-stat span {
    display: block;
    color: #73818a;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.passport-stat strong {
    display: block;
    color: #263238;
    font-size: 0.98rem;
    margin-top: 4px;
}

.passport-actions {
    margin-top: 14px;
}

.passport-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.passport-field {
    background: #f7faf8;
    border: 1px solid #e2ebe6;
    border-radius: 8px;
    padding: 10px;
}

.passport-field span {
    display: block;
    color: #73818a;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 3px;
}

.passport-field strong {
    color: #263238;
    font-size: 0.95rem;
}

.similar-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.compare-table-wrap {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.compare-table th,
.compare-table td {
    border: 1px solid #e1e8e4;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.compare-table th {
    background: #f1f7f3;
    color: #263238;
}

.compare-bar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%) translateY(140%);
    width: min(760px, calc(100vw - 24px));
    background: #263238;
    color: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 12px;
    z-index: 3600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: transform 0.25s;
}

.compare-bar.show {
    transform: translateX(-50%) translateY(0);
}

.compare-bar-actions {
    display: flex;
    gap: 8px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -430px;
    top: 0;
    width: 430px;
    height: 100vh;
    background: #f7faf8;
    box-shadow: -18px 0 40px rgba(38, 50, 56, 0.18);
    transition: right 0.3s;
    z-index: 3700;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    background: #244236;
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.35em;
    margin: 0;
}

.close-cart {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e1e8e4;
    border-radius: 8px;
    background: #fff;
    align-items: start;
    margin-bottom: 10px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 800;
    margin-bottom: 5px;
    color: #263238;
    line-height: 1.25;
}

.cart-item-price {
    color: #b3342b;
    font-weight: 800;
    font-size: 0.92rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-column: 1;
}

.quantity-btn {
    background: #f1f7f3;
    border: 1px solid #d7e5dc;
    color: #244236;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 900;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: #244236;
    color: #fff;
}

.remove-item {
    background: #fff5f3;
    color: #b3342b;
    border: 1px solid #f1cbc4;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.86em;
    font-weight: 800;
    transition: all 0.3s;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
}

.remove-item:hover {
    background: #b3342b;
    color: white;
}

.cart-footer {
    padding: 18px 20px 20px;
    border-top: 1px solid #e1e8e4;
    background: #fff;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25em;
    font-weight: 900;
    margin-bottom: 16px;
    color: #263238;
}

.checkout-btn {
    width: 100%;
    background: #244236;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(36, 66, 54, 0.22);
}

.empty-cart {
    text-align: center;
    padding: 42px 18px;
    color: #66777f;
    background: #fff;
    border: 1px dashed #cbd8d1;
    border-radius: 8px;
}

/* Order Form Modal */
.order-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(24, 35, 32, 0.62);
    z-index: 3900;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.order-modal.open {
    display: flex;
}

.order-form {
    background: white;
    border-radius: 8px;
    padding: 26px;
    max-width: 560px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(24, 35, 32, 0.26);
}

.order-form-header {
    border-bottom: 1px solid #e1e8e4;
    margin: -4px 0 20px;
    padding-bottom: 14px;
}

.order-form-header h2 {
    color: #263238;
    font-size: 1.45rem;
    line-height: 1.2;
    margin: 0;
}

.order-form-header p {
    color: #66777f;
    font-size: 0.95rem;
    margin: 6px 0 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 13px;
    border: 2px solid #dfe6e1;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
    background: #fbfcfb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #244236;
    box-shadow: 0 0 0 3px rgba(36, 66, 54, 0.11);
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    color: #2c3e50;
    font-weight: 700;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex: 0 0 auto;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.submit-order-btn {
    flex: 1;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.cancel-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-btn:hover {
    background: #7f8c8d;
}

/* Section Title */
.section-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin: var(--spacing-xl) 0 var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--color-primary);
    font-weight: 700;
}

/* Info Sections */
.info-section {
    scroll-margin-top: 100px;
}

/* Stats Section */
.stats-section {
    margin-bottom: var(--spacing-lg);
}

.stats {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--color-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    color: var(--color-text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.stat-item {
    font-size: 1rem;
}

.stat-item strong {
    color: var(--color-primary);
    font-weight: 700;
}

.stat-separator {
    color: var(--color-text-light);
    opacity: 0.5;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 4000;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
    }
    to {
        transform: translateX(0);
    }
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3200;
}

.overlay.show {
    display: block;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-contacts,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: white;
    transform: translateX(4px);
}

.footer-icon {
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0.25rem 0;
}

.footer-domain {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1040px) {
    .main-nav {
        order: 3;
        flex-basis: 100%;
    }

    .header-nav {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .main-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        padding: 0.45rem 0.55rem calc(0.45rem + env(safe-area-inset-bottom));
        background: linear-gradient(135deg, #e74c3c 0%, #b3342b 100%);
        border: 0;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -12px 30px rgba(44, 62, 80, 0.18);
        z-index: 1800;
    }

    .main-nav-link {
        flex: 1 1 0;
        min-width: 0;
    }

    .header-nav {
        order: 1;
        width: auto;
        justify-content: flex-end;
        margin-left: auto;
    }

    .catalog-workbench {
        display: block;
    }

    .catalog-workbench > .filters-section {
        position: static;
        height: auto;
        max-height: none;
        overflow: visible;
        margin-bottom: 14px;
    }

    .catalog-workbench > .filters-section > .container {
        height: auto;
        max-height: none;
    }

    .catalog-main {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .filter-toggle-btn,
    .filters-summary {
        display: block;
    }

    .filters-container {
        padding: 16px;
        margin-bottom: 14px;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .catalog-workbench .filters-body {
        overflow: visible;
        padding-right: 0;
    }

    .filters-container.is-collapsed .filter-group,
    .filters-container.is-collapsed .clear-filters-btn {
        display: none;
    }

    .filters-header {
        margin-bottom: 12px;
    }

    .back-to-top {
        right: 16px;
        bottom: calc(88px + env(safe-area-inset-bottom));
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }

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

    .selector-layout,
    .retention-grid,
    .passport-hero {
        grid-template-columns: 1fr;
    }

    .quiz-grid,
    .calendar-preview,
    .passport-grid {
        grid-template-columns: 1fr;
    }

    .selector-panel,
    .selector-results,
    .shelf-block,
    .retention-card {
        padding: 16px;
    }

    .feature-title {
        font-size: 1.28rem;
    }

    .kit-actions,
    .product-tools {
        grid-template-columns: 1fr;
    }

    .compare-bar {
        align-items: stretch;
        flex-direction: column;
        bottom: calc(78px + env(safe-area-inset-bottom));
        transform: translateX(-50%) translateY(calc(100% + 92px));
    }

    .compare-bar.show {
        transform: translateX(-50%) translateY(0);
    }

    .header-content {
        flex-direction: row;
        text-align: left;
    }

    .logo-wrapper {
        align-items: flex-start;
        flex: 1 1 180px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .cart-text {
        display: none;
    }
}

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

    .logo {
        font-size: 1.25rem;
    }

    .tagline {
        display: none;
    }

    .main-nav-link {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.5rem 0.35rem;
        font-size: 0.78rem;
        text-align: center;
    }

    .feature-modal-content,
    .order-form {
        padding: 20px;
        width: 96vw;
    }

    .passport-stat-strip,
    .form-actions {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }
}
