:root {
    --color-primary: #1a1a1a;
    --color-accent: #4CAF50;
    --color-accent-hover: #43a047;
    --color-bg: #f8f9fa;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
    /* Шрифты — только системные, без обращений к сторонним сервисам (152-ФЗ: не передаём IP пользователей третьим лицам).
       Чтобы вернуть фирменный Inter — положите woff2 в /fonts и раскомментируйте @font-face ниже (self-hosted, без сторонних CDN). */
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --container-max: 1280px;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

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

.btn-secondary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background: #333;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    box-shadow: var(--shadow);
}

.header-top {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 13px;
    padding: 8px 0;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contacts {
    display: flex;
    gap: 20px;
}

.header-links {
    display: flex;
    gap: 20px;
}

.header-links a {
    opacity: 0.8;
    transition: opacity 0.2s;
}

.header-links a:hover {
    opacity: 1;
}

.header-main {
    padding: 16px 0;
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

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

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

.main-nav {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text);
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.2s;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text);
}

.phone-link:hover {
    color: var(--color-accent);
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--color-bg);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
}

.cart-count {
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
}

.account-link {
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text-light);
}

.account-link:hover {
    color: var(--color-accent);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d2d2d 100%);
    color: var(--color-white);
    padding: 80px 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: center;
}

.hero-image { height: auto; }
.hero-image img { width: 100%; height: auto; display: block; border-radius: 12px; }

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    font-size: 14px;
    opacity: 0.7;
}

.hero-image-placeholder {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0.6;
    border: 2px dashed rgba(255,255,255,0.2);
}

/* Section title */
.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

/* Categories */
.categories {
    padding: 80px 0;
    background: var(--color-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.category-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.category-count {
    font-size: 14px;
    color: var(--color-text-light);
}

.categories-more {
    text-align: center;
    margin-top: 40px;
}

/* Features */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 15px;
}

/* Production teaser */
.production-teaser {
    padding: 80px 0;
    background: var(--color-bg);
}

.production-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.production-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.production-content p {
    font-size: 17px;
    color: var(--color-text-light);
    margin-bottom: 28px;
    line-height: 1.7;
}

.production-image-placeholder {
    background: #e0e0e0;
    border-radius: var(--radius);
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-text-light);
    border: 2px dashed var(--color-border);
}

/* Price teaser */
.price-teaser {
    padding: 80px 0;
    text-align: center;
}

.price-inner {
    max-width: 600px;
    margin: 0 auto;
}

.price-teaser p {
    font-size: 17px;
    color: var(--color-text-light);
    margin-bottom: 28px;
}

.price-teaser .hero-buttons {
    justify-content: center;
    margin-top: 8px;
}

.cart-min-order {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #856404;
}

/* Footer */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo-img {
    height: 40px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    opacity: 0.7;
    font-size: 14px;
    line-height: 1.6;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    opacity: 0.7;
    font-size: 14px;
    transition: opacity 0.2s;
}

.footer-list a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .categories-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-inner,
    .production-inner {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .main-nav,
    .phone-link {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .categories-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* Catalog page */
.catalog-page {
    padding: 40px 0 80px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

.catalog-sidebar {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    max-height: calc(100vh - 160px);
    padding-right: 8px;
}

.category-list::-webkit-scrollbar {
    width: 6px;
}
.category-list::-webkit-scrollbar-track {
    background: transparent;
}
.category-list::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.category-list li {
    margin-bottom: 4px;
}

.category-list a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.category-list a:hover,
.category-list a.active {
    background: var(--color-bg);
    color: var(--color-accent);
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.catalog-search {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 280px;
    max-width: 480px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.search-btn:hover {
    opacity: 1;
}

/* Account tabs */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.account-note {
    background: #e8f5e9;
    border-left: 4px solid var(--color-accent);
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: #2e7d32;
}

.account-menu a.active {
    background: var(--color-bg);
    color: var(--color-accent);
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.address-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.address-info p {
    margin-top: 4px;
    font-size: 14px;
    color: var(--color-text-light);
}

.address-actions {
    display: flex;
    gap: 16px;
}

.text-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-accent);
    transition: opacity 0.2s;
}

.text-link:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .catalog-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .catalog-search {
        max-width: 100%;
    }
    
    .address-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.catalog-count {
    font-size: 14px;
    color: var(--color-text-light);
}

.catalog-sort {
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--color-white);
    cursor: pointer;
}

.catalog-per-page {
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--color-white);
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    height: 100px;
    background: var(--color-bg);
    display: block;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--color-text-light);
    margin: 0;
}

.product-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info::before {
    content: '';
    flex-grow: 1;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    min-height: 54px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.product-price-per-unit {
    font-size: 12px;
    color: var(--color-text);
    margin-bottom: 2px;
}

.product-pack-select {
    background: var(--color-white);
    cursor: pointer;
}

.product-pack-select:focus {
    outline: 2px solid var(--color-accent);
    border-color: var(--color-accent);
}

.product-unit {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 2px;
}

.product-code {
    font-size: 11px;
    color: var(--color-text-light);
    margin-bottom: 4px;
    font-weight: 500;
}

.product-pack-select {
    width: 100%;
    padding: 5px 6px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 11px;
    background: var(--color-white);
    margin-bottom: 6px;
    cursor: pointer;
    min-height: 30px;
}

.product-pack-select-placeholder {
    min-height: 30px;
    margin-bottom: 6px;
    visibility: hidden;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 0;
}

.product-bottom {
}

.product-qty {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.product-qty button {
    width: 24px;
    height: 24px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: background 0.2s;
}

.product-qty button:hover {
    background: var(--color-bg);
}

.product-qty input {
    width: 32px;
    height: 24px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    -moz-appearance: textfield;
}

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

.btn-add-cart {
    flex: 1;
    padding: 5px 8px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 12px;
}

.btn-add-cart:hover {
    background: var(--color-accent);
}

/* Product page */
.product-page {
    padding: 40px 0 80px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-gallery {
    background: var(--color-bg);
    border-radius: var(--radius);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-text-light);
    overflow: hidden;
}

.product-meta h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-meta .price {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.product-meta .description {
    color: var(--color-text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

/* Cart page */
.cart-page {
    padding: 40px 0 80px;
}

.cart-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

.cart-items {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--color-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--color-text-light);
}

img.cart-item-image {
    display: block;
    object-fit: cover;
    background: none;
    border: none;
}

.cart-item-name {
    font-weight: 600;
}

.cart-item-price {
    font-weight: 700;
    color: var(--color-accent);
    min-width: 80px;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
}

.cart-item-remove:hover {
    color: #e53935;
}

.cart-summary {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.summary-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.order-detail-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
}

.order-detail-row > span:first-child {
    text-align: left;
}

.order-detail-row > span:nth-child(2) {
    text-align: right;
    color: var(--color-text-light);
    font-size: 13px;
    white-space: nowrap;
}

.order-detail-row > span:last-child {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
    min-width: 90px;
}

.summary-row.total {
    font-size: 22px;
    font-weight: 700;
    border-top: 2px solid var(--color-border);
    padding-top: 16px;
    margin-top: 16px;
}

.btn-checkout {
    width: 100%;
    margin-top: 20px;
}

/* Checkout page */
.checkout-page {
    padding: 40px 0 80px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

.checkout-form {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.form-section {
    margin-bottom: 32px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Account page */
.account-page {
    padding: 40px 0 80px;
}

.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

.account-menu {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.account-menu a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.2s;
}

.account-menu a:hover,
.account-menu a.active {
    background: var(--color-bg);
    color: var(--color-accent);
}

.account-content {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.account-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.orders-table th {
    font-weight: 600;
    background: var(--color-bg);
}

.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #eceff1;
    color: #455a64;
    white-space: nowrap;
}

/* Цвета статусов заказа */
.order-status.st-new { background: #e3f2fd; color: #1565c0; }
.order-status.st-confirmed { background: #e8f5e9; color: #2e7d32; }
.order-status.st-assembling { background: #fff8e1; color: #f9a825; }
.order-status.st-shipped { background: #e1f5fe; color: #0277bd; }
.order-status.st-delivered { background: #dcedc8; color: #558b2f; }
.order-status.st-cancelled { background: #ffebee; color: #c62828; }

.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-processing {
    background: #fff3e0;
    color: #ef6c00;
}

/* Production page */
.production-page {
    padding: 40px 0 80px;
}

.production-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d2d2d 100%);
    color: var(--color-white);
    padding: 60px 0;
    margin-bottom: 60px;
}

.production-hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.production-hero p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 600px;
}

.production-section {
    margin-bottom: 60px;
}

.production-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.production-section p {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.production-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.production-gallery-item {
    background: var(--color-bg);
    border-radius: var(--radius);
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--color-text-light);
    border: 2px dashed var(--color-border);
}

/* Price page */
.price-page {
    padding: 40px 0 80px;
    text-align: center;
}

.price-page h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.price-page p {
    font-size: 17px;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.price-downloads {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.price-card {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 32px;
    width: 280px;
    text-align: center;
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.price-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.price-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.price-card p {
    font-size: 14px;
    margin-bottom: 24px;
}

/* Mobile responsive additions */
@media (max-width: 1024px) {
    .catalog-layout,
    .cart-layout,
    .checkout-layout,
    .account-layout {
        grid-template-columns: 1fr;
    }
    
    .catalog-sidebar,
    .account-menu {
        position: static;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .production-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr auto;
        gap: 12px;
    }
    
    .cart-item-price,
    .cart-item-remove {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .production-gallery {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .price-downloads {
        flex-direction: column;
        align-items: center;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cart-item-image {
        margin: 0 auto;
    }
}

/* Contacts page */
.contacts-page {
    padding: 40px 0 80px;
}

.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.contact-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-card a {
    color: var(--color-accent);
    font-weight: 500;
}

.contact-card a.contact-address-link {
    color: var(--color-text-light);
    font-weight: 400;
    text-decoration: none;
}

.contact-card a.contact-address-link:hover {
    text-decoration: underline;
    color: var(--color-accent);
}

.contact-card p {
    color: var(--color-text-light);
    font-size: 15px;
}

.contacts-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 450px;
}

/* Fixed contact button */
.fixed-contact-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    padding: 16px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text-light);
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.modal-body {
    padding: 24px;
}

/* Login page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--color-bg);
}

.login-box {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px 32px;
    width: 100%;
    max-width: 460px;
}

.login-box .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.login-box .logo-img {
    height: 56px;
}

.login-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--color-border);
}

.login-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.login-tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.login-panel {
    display: none;
}

.login-panel.active {
    display: block;
}

.login-note {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 8px;
}

@media (max-width: 768px) {
    .contacts-layout {
        grid-template-columns: 1fr;
    }
    
    .contacts-map {
        min-height: 300px;
    }
    
    .fixed-contact-btn {
        bottom: 16px;
        right: 16px;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .login-box {
        padding: 28px 20px;
    }
}

/* Catalog pagination */
.catalog-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.pagination-info {
    font-size: 14px;
    color: var(--color-text-light);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.pagination-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn.nav {
    padding: 0 16px;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--color-text-light);
    font-size: 14px;
}

/* Product page breadcrumb */
.product-breadcrumb {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.product-breadcrumb a {
    color: var(--color-text-light);
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: var(--color-accent);
}

.product-breadcrumb span {
    margin: 0 8px;
    color: var(--color-border);
}

/* Product link in catalog */
.product-link-name {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-link-img {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-link-img:hover,
.product-link-name:hover {
    opacity: 0.9;
}

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

/* Related products */
.product-related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.product-related-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Price filter */
.price-filter {
    padding: 0 0 16px;
}

.price-filter-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-filter-inputs span {
    color: var(--color-text-light);
    font-size: 13px;
}

.price-filter-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    width: 0;
}

.price-filter-input:focus {
    outline: 2px solid var(--color-accent);
    border-color: var(--color-accent);
}

.price-filter-btn,
.price-filter-reset {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    margin-bottom: 8px;
}

.price-filter-btn {
    background: var(--color-primary);
    color: var(--color-white);
}

.price-filter-btn:hover {
    background: var(--color-accent);
}

.price-filter-reset {
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.price-filter-reset:hover {
    background: var(--color-border);
}

/* ============================================================
   152-ФЗ: согласие на обработку ПДн + правовой блок в подвале
   ============================================================ */

/* Self-hosted Inter (опционально, без сторонних CDN). Положите файлы в /fonts и раскомментируйте:
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/Inter-VariableFont.woff2') format('woff2');
}
*/

.consent-group {
    margin-top: 12px;
    margin-bottom: 12px;
}
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--color-text-light);
    cursor: pointer;
    font-weight: 400;
}
.consent-label .consent-checkbox {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 0;
    accent-color: var(--color-accent);
    cursor: pointer;
}
.consent-label a {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer-legal {
    margin-top: 8px;
    margin-bottom: 8px;
}
.footer-legal .footer-requisites {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 6px;
}
.footer-legal .footer-legal-links a {
    font-size: 13px;
    color: var(--color-text-light);
    text-decoration: underline;
}
.footer-legal .footer-legal-links a:hover {
    color: var(--color-accent);
}

/* Правовые страницы (политика обработки ПДн) */
.legal-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--color-primary);
}
.legal-content p {
    margin-bottom: 14px;
    color: var(--color-text);
}
.legal-content ul {
    margin: 0 0 16px 22px;
    color: var(--color-text);
}
.legal-content li {
    margin-bottom: 8px;
}

/* ============================================================
   Единый стиль карточек каталога (одинаковая высота, фото вписывается)
   ============================================================ */
.products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: stretch;
}
.products-grid .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
/* Фиксированная зона изображения: товар вписывается целиком (contain) на белом фоне */
.products-grid .product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #ffffff;
    padding: 12px;
    display: block;
    border-bottom: 1px solid var(--color-border);
}
.products-grid .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px 14px;
}
.products-grid .product-info::before { content: none; } /* убрать старый распорный псевдоэлемент */
/* Название — ровно 2 строки у всех карточек */
.products-grid .product-name {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.products-grid .product-code { font-size: 12px; color: var(--color-text-light); }
.products-grid .product-price { font-size: 17px; font-weight: 700; color: var(--color-accent); }
/* Кнопка всегда прижата к низу — карточки выглядят одинаково */
.products-grid .product-info .btn { margin-top: auto; }

@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .products-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Каталог: количество в карточке, мобильный тоггл фильтров, сворачивание категорий
   ============================================================ */
.catalog-filter-toggle { display: none; }

.products-grid .product-buy {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}
.product-card .product-pack-select { font-size: 13px; min-height: 38px; margin: 0 0 10px; border: 1.5px solid var(--color-accent); border-radius: 8px; font-weight: 500; padding-right: 30px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.products-grid .product-buy .qty-stepper { align-self: stretch; width: 100%; }
.products-grid .product-buy .qty-stepper input { flex: 1; width: auto; min-width: 0; }
.products-grid .product-buy .btn {
    width: 100%;
    padding: 11px 8px;
    white-space: nowrap;
}

/* Анимация добавления в корзину */
@keyframes cartBump { 0% { transform: scale(1); } 30% { transform: scale(1.5); } 100% { transform: scale(1); } }
.cart-count.bump { animation: cartBump .45s ease; }
@keyframes btnPop { 0% { transform: scale(1); } 40% { transform: scale(.95); } 100% { transform: scale(1); } }
.btn.added { animation: btnPop .3s ease; }
/* «летящая» точка от карточки к корзине */
.fly-dot {
    position: fixed; z-index: 3000; width: 16px; height: 16px; border-radius: 50%;
    background: var(--color-accent); box-shadow: 0 2px 8px rgba(76,175,80,.5);
    pointer-events: none; transition: transform .7s cubic-bezier(.2,.6,.3,1), opacity .7s ease;
}

.qty-stepper {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--color-accent);
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 auto;
}
.qty-stepper button {
    flex: 0 0 40px; width: 40px; height: 38px;
    border: none; background: var(--color-accent);
    font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; color: #fff;
    transition: background 0.15s;
}
.qty-stepper button:hover { background: var(--color-accent-hover); }
.qty-stepper button:active { transform: scale(0.94); }
.qty-stepper input {
    width: 44px; min-width: 0; height: 38px; border: none; text-align: center;
    font-size: 15px; font-weight: 600; color: var(--color-text); -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* сворачивание списка категорий по клику на заголовок */
.sidebar-title.collapsible { cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.sidebar-title .cat-arrow { font-size: 13px; transition: transform .2s; }
.sidebar-title.collapsed .cat-arrow { transform: rotate(-90deg); }
.category-list.collapsed { display: none; }

/* Планшет/мобайл: товары сразу, фильтры — за кнопкой (не встречаем категориями) */
@media (max-width: 1024px) {
    .catalog-layout { display: flex; flex-direction: column; gap: 0; }
    .catalog-content { order: 1; }
    .catalog-filter-toggle {
        display: flex; justify-content: space-between; align-items: center;
        width: 100%; padding: 14px 16px; margin-bottom: 12px;
        background: var(--color-white); border: 1px solid var(--color-border);
        border-radius: var(--radius); font-weight: 600; font-size: 15px; cursor: pointer;
        box-shadow: var(--shadow);
    }
    .catalog-filter-toggle .cft-arrow { transition: transform .2s; }
    .catalog-filter-toggle.open .cft-arrow { transform: rotate(180deg); }
    .catalog-sidebar { display: none; position: static; max-height: none; margin-bottom: 12px; }
    .catalog-sidebar.open { display: flex; }
    .category-list { max-height: 55vh; }
}

/* Заблокированная кнопка (например, «Оформить заказ» при пустой корзине) */
.btn.btn-disabled,
.btn-checkout.btn-disabled {
    background: #cfd4da !important;
    color: #fff !important;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}
/* Пустая корзина */
.cart-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--color-text-light);
    font-size: 16px;
    line-height: 2;
}
.cart-empty a { color: var(--color-accent); font-weight: 600; }

/* ============================================================
   Корзина: аккуратная сетка, картинки целиком, ничего не вылезает
   ============================================================ */
.cart-item { grid-template-columns: 80px minmax(0, 1fr) auto auto auto; }
img.cart-item-image { object-fit: contain; background: #fff; padding: 4px; }
.cart-item-info { min-width: 0; }
.cart-item-name { font-weight: 600; line-height: 1.3; word-break: break-word; }
.cart-item-meta { color: var(--color-text-light); font-size: 13px; margin-top: 4px; }
.cart-item .cart-qty { flex: 0 0 auto; }
.cart-item .cart-qty input { width: 36px; }
.cart-item-price { white-space: nowrap; }

/* Мобильная раскладка позиции корзины */
@media (max-width: 600px) {
    .cart-item {
        grid-template-columns: 56px minmax(0, 1fr) auto;
        grid-template-areas:
            "img info del"
            "img qty  sum";
        gap: 8px 12px;
        padding: 16px;
    }
    .cart-item-image { width: 56px; height: 56px; grid-area: img; align-self: start; }
    .cart-item-info { grid-area: info; }
    .cart-item .cart-qty { grid-area: qty; align-self: center; }
    .cart-item-price { grid-area: sum; align-self: center; text-align: right; }
    .cart-item-remove { grid-area: del; justify-self: end; align-self: start; }
}

/* Кликабельный товар в корзине (картинка + название → страница товара) */
a.cart-item-image { overflow: hidden; cursor: pointer; }
a.cart-item-image img { width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
a.cart-item-name { display: block; color: var(--color-text); cursor: pointer; transition: color .15s; }
a.cart-item-name:hover { color: var(--color-accent); }

/* Прижатие подвала к низу страницы (sticky footer), когда контента мало */
body:not(.login-body) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body:not(.login-body) .footer { margin-top: auto; }

/* ============================================================
   Мобильное выпадающее меню (гамбургер)
   ============================================================ */
@media (max-width: 768px) {
    .header-main { position: relative; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--color-border);
        padding: 8px 24px 16px;
        gap: 2px;
        z-index: 200;
    }
    .main-nav.open .nav-link {
        display: block;
        padding: 13px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--color-border);
    }
    .main-nav.open .nav-link:last-child { border-bottom: none; }
    /* гамбургер в «крестик» при открытом меню */
    .mobile-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .mobile-menu-toggle span { transition: all .2s ease; }
}

/* Логотип в мобильной шапке: не сжимать, сохранить пропорции */
@media (max-width: 768px) {
    .header-main-inner { gap: 14px; }
    .logo { flex-shrink: 0; }
    .logo-img { height: 40px; width: auto; max-width: none; }
}

/* Кабинет на мобильном: меню — горизонтальные вкладки (не «съезжает») */
@media (max-width: 1024px) {
    /* grid-элементы не должны раздуваться по контенту шире экрана (иначе горизонтальная прокрутка всей страницы) */
    .account-menu, .account-content { min-width: 0; }
    .account-menu {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .account-menu a {
        white-space: nowrap;
        border-bottom: none;
        border-right: 1px solid var(--color-border);
    }
    .account-content { padding: 20px; }
}

/* Таблица заказов в ЛК — карточки на телефоне (без горизонтальной полосы) */
@media (max-width: 768px) {
    .orders-table, .orders-table tbody, .orders-table tr, .orders-table td { display: block; width: 100%; }
    .orders-table thead { display: none; }
    .orders-table tr { border: 1px solid var(--color-border); border-radius: 10px; margin-bottom: 12px; padding: 6px 14px; }
    .orders-table td { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--color-border); text-align: right; }
    .orders-table tr td:last-child { border-bottom: none; }
    .orders-table td::before { content: attr(data-label); font-weight: 600; color: var(--color-text-light); text-align: left; }
    .orders-table td[data-label=""] { justify-content: flex-start; }
    .orders-table td[data-label=""]::before { display: none; }
    .orders-table td[colspan] { text-align: left; }
}

/* Категории на главной: одинаковая высота + скелетон при загрузке (без «прыжков») */
.categories-grid .category-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.categories-grid .category-name { min-height: 44px; display: flex; align-items: center; }
.category-skeleton {
    cursor: default;
    background: #fff;
    animation: catPulse 1.2s ease-in-out infinite;
}
@keyframes catPulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* Согласие на cookie (152-ФЗ, с категориями) */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2000;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    border-radius: 14px;
    padding: 16px 20px;
    max-width: 960px;
    margin: 0 auto;
}
.cookie-main { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookie-text { font-size: 14px; line-height: 1.5; color: var(--color-text); flex: 1; min-width: 240px; }
.cookie-text a { color: var(--color-accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; }
.cookie-link { background: none; border: none; color: var(--color-accent); cursor: pointer; font-size: 14px; text-decoration: underline; padding: 6px; }
.cookie-settings { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cookie-settings[hidden] { display: none; }
.cookie-opt { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--color-text); }
.cookie-opt input { width: 18px; height: 18px; accent-color: var(--color-accent); }
.cookie-settings-link { cursor: pointer; }
@media (max-width: 700px) {
    .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px 16px; }
    .cookie-main { flex-direction: column; align-items: stretch; }
    .cookie-actions { flex-direction: column; }
    .cookie-actions .btn, .cookie-actions .cookie-link { width: 100%; }
}

/* Экран «Заказ принят» */
.order-success { text-align: center; padding: 64px 24px; max-width: 640px; margin: 0 auto; }
.order-success-icon { font-size: 64px; line-height: 1; }
.order-success h1 { font-size: 32px; font-weight: 700; margin: 16px 0 10px; }
.order-success p { font-size: 17px; color: var(--color-text-light); line-height: 1.6; }
.order-success-actions { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Плавающая кнопка «Связаться с нами» (на всех страницах) */
.fb-fab {
    position: fixed; right: 20px; bottom: 20px; z-index: 250;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 18px; border: none; border-radius: 30px;
    background: var(--color-accent); color: #fff; font-weight: 600; font-size: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,.18); cursor: pointer; transition: background .15s, transform .15s;
}
.fb-fab:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
.fb-fab span { font-size: 18px; }
@media (max-width: 600px) {
    .fb-fab { right: 14px; bottom: 14px; padding: 12px 14px; font-size: 14px; }
}


.stock-indicator { display:flex; align-items:center; gap:6px; font-size:12px; margin:4px 0; }
.stock-dot { width:8px; height:8px; border-radius:50%; display:inline-block; }
.in-stock .stock-dot { background:#2e7d32; }
.low-stock .stock-dot { background:#c62828; }
.in-stock { color:#2e7d32; }
.low-stock { color:#c62828; }
