/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Georgia', serif; background: #faf6f0; color: #2c2b28; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 30px; }

/* ===== HEADER ===== */
.header {
    background: #1e1c1a;
    color: #e8dfd7;
    padding: 18px 0;
    border-bottom: 3px solid #b99a7b;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: inherit;
    text-decoration: none;
}
.logo i { color: #b99a7b; font-size: 2rem; }
.logo span { color: #b99a7b; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.header-nav a {
    color: #e8dfd7;
    transition: color 0.2s;
    position: relative;
}
.header-nav a:hover { color: #b99a7b; }
.header-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #b99a7b;
    transition: width 0.25s;
}
.header-nav a:hover::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 1.2rem;
}
.header-actions a { color: #e8dfd7; transition: color 0.2s; }
.header-actions a:hover { color: #b99a7b; }

.cart { position: relative; }
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #b99a7b;
    color: #1e1c1a;
    font-size: 0.65rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}
.cart-badge-bump {
    transform: scale(1.4);
    background: #4CAF50 !important;
    color: white !important;
}

/* ===== TOPBAR ===== */
.topbar {
    background: #1a1816;
    color: #cbc3bb;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid #2c2b28;
    position: sticky;
    top: 0;
    z-index: 1001;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 24px;
}
.topbar-contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
}
.topbar-contacts a,
.topbar-contacts span {
    color: #cbc3bb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.topbar-contacts a:hover { color: #b99a7b; }
.topbar-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.topbar-social-link {
    color: #cbc3bb;
    font-size: 1.1rem;
    transition: color 0.2s, transform 0.2s;
}
.topbar-social-link:hover {
    color: #b99a7b;
    transform: scale(1.1);
}
.topbar-hidden {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ===== SEARCH ===== */
.header-search {
    position: relative;
    display: inline-block;
}
.header-search input {
    padding: 0.4rem 2.2rem 0.4rem 1rem;
    border-radius: 30px;
    border: 1px solid #d1d5db;
    background: #f5f0eb;
    font-size: 0.9rem;
    width: 180px;
    transition: width 0.3s, border-color 0.3s;
}
.header-search input:focus {
    width: 240px;
    border-color: #b99a7b;
    outline: none;
    background: white;
}
.header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
}
.header-search button:hover { color: #b99a7b; }

/* ===== BURGER ===== */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}
.burger-menu span {
    display: block;
    height: 2px;
    background: #e8dfd7;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.burger-menu.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #2b2825 0%, #1e1c1a 100%);
    color: #f0ebe5;
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(185,154,123,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}
.hero-text h1 span { color: #b99a7b; }
.hero-text .subhead {
    font-size: 1.2rem;
    color: #cbc3bb;
    margin-bottom: 12px;
    font-style: italic;
}
.hero-text .description {
    font-size: 1.05rem;
    color: #d6cec5;
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero-text .region-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(185,154,123,0.15);
    border: 1px solid rgba(185,154,123,0.3);
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 0.95rem;
    color: #d6cec5;
    margin-bottom: 28px;
}
.hero-text .region-badge i { color: #b99a7b; }

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.btn {
    display: inline-block;
    padding: 14px 38px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}
.btn-primary {
    background: #b99a7b;
    color: #1e1c1a;
}
.btn-primary:hover {
    background: #a6876a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(185,154,123,0.3);
}
.btn-outline {
    background: transparent;
    color: #f0ebe5;
    border: 2px solid #b99a7b;
}
.btn-outline:hover {
    background: #b99a7b;
    color: #1e1c1a;
    transform: translateY(-2px);
}

.knife-visual {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1/1;
    background: radial-gradient(circle at 30% 40%, #3d3732, #1e1c1a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(185,154,123,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
}
.knife-visual i {
    font-size: 10rem;
    color: #b99a7b;
    opacity: 0.9;
    transform: rotate(-20deg);
    filter: drop-shadow(0 10px 30px rgba(185,154,123,0.3));
}
.knife-visual .stamp {
    position: absolute;
    bottom: 20%;
    right: 15%;
    font-size: 0.75rem;
    color: #8a7a6a;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(185,154,123,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(30,28,26,0.7);
    backdrop-filter: blur(4px);
}
.hero-knife-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(185,154,123,0.3));
}

/* ===== CATALOG SECTIONS ===== */
.section-catalog,
.section-steel,
.section-popular {
    padding: 70px 0 80px;
    background: #faf6f0;
}
.section-steel,
.section-popular { padding: 60px 0 40px; }
.section-popular { background: #fffdfa; }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e1c1a;
    margin-bottom: 12px;
}
.section-sub {
    text-align: center;
    color: #6e655c;
    font-size: 1.05rem;
    margin-bottom: 44px;
    font-style: italic;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background: #fffdfa;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.04);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid #e5dbd1;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
.product-card .card-img {
    height: 200px;
    background: linear-gradient(145deg, #e8dfd7, #d6cec5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #6e655c;
}
.product-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card .card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card .card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: #1e1c1a;
    line-height: 1.3;
}
.product-card .card-body h3 a {
    color: inherit;
    text-decoration: none;
}
.product-card .card-body h3 a:hover { color: #b99a7b; }
.product-card .card-body .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #ede7e0;
}
.product-card .card-body .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1e1c1a;
}
.product-card .card-body .price small {
    font-weight: normal;
    font-size: 0.8rem;
    color: #8a7a6a;
    margin-left: 4px;
}
.product-card .card-body .btn-sm {
    background: #1e1c1a;
    color: #f0ebe5;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 0.8rem;
    border: none;
    font-weight: 600;
    transition: background 0.2s;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.product-card .card-body .btn-sm:hover {
    background: #b99a7b;
    color: #1e1c1a;
}

.catalog-more {
    text-align: center;
    margin-top: 48px;
}

/* ===== CATEGORIES (grid 4) ===== */
.section-categories {
    padding: 60px 0 40px;
    background: #fffdfa;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #f5efe9;
    border-radius: 16px;
    border: 1px solid #e5dbd1;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: #1e1c1a;
    text-align: center;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.category-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 10px;
}
.category-card span {
    font-weight: 600;
    font-size: 1rem;
}

/* ===== STEEL LIST ===== */
.steel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.steel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: #fffdfa;
    border-radius: 12px;
    border: 1px solid #e5dbd1;
    text-decoration: none;
    color: #1e1c1a;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}
.steel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.steel-name {
    font-weight: 600;
    font-size: 1.1rem;
}
.steel-count {
    font-size: 0.85rem;
    color: #8a7a6a;
    margin-top: 4px;
}

/* ===== HERITAGE ===== */
.section-heritage {
    padding: 80px 0 60px;
    background: #f5efe9;
}
.section-heritage .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.heritage-text h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    color: #1e1c1a;
}
.heritage-text h2 span { color: #8a6f58; }
.heritage-text .lead {
    font-size: 1.1rem;
    color: #4a433d;
    margin-bottom: 16px;
    font-style: italic;
}
.heritage-text p {
    color: #5a524a;
    margin-bottom: 12px;
    line-height: 1.8;
}
.heritage-text .fact-list {
    list-style: none;
    margin-top: 20px;
}
.heritage-text .fact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: #3d3732;
    font-size: 0.98rem;
}
.heritage-text .fact-list li i {
    color: #b99a7b;
    width: 20px;
    text-align: center;
}
.heritage-image .heritage-card {
    background: #fffdfa;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    border: 1px solid #e5dbd1;
    width: 100%;
    max-width: 420px;
}
.heritage-image .heritage-card .icon-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.heritage-image .heritage-card .icon-row i {
    font-size: 2.4rem;
    color: #8a6f58;
}
.heritage-image .heritage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1e1c1a;
}
.heritage-image .heritage-card p {
    color: #5a524a;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== BENEFITS ===== */
.section-benefits {
    background: #1e1c1a;
    color: #f0ebe5;
    padding: 60px 0;
    border-top: 3px solid #b99a7b;
    border-bottom: 3px solid #b99a7b;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}
.benefit-item i {
    font-size: 2.4rem;
    color: #b99a7b;
    margin-bottom: 12px;
}
.benefit-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #f0ebe5;
}
.benefit-item p {
    font-size: 0.9rem;
    color: #cbc3bb;
}

/* ===== FILTERS ===== */
.filter-form {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e5dbd1;
    margin-bottom: 2rem;
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.filter-grid label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 4px;
}
.filter-grid input,
.filter-grid select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}
.filter-grid input:focus,
.filter-grid select:focus {
    border-color: #b99a7b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(185,154,123,0.2);
}
.filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5dbd1;
}
.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

/* ===== CART ===== */
.cart-table-wrapper { overflow-x: auto; }
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fffdfa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cart-table th,
.cart-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #ede7e0;
}
.cart-table th {
    font-weight: 600;
    color: #4a5568;
    background: #f8f4ef;
}
.cart-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5dbd1;
}
.cart-item-name { font-weight: 500; }
.cart-update-form {
    display: flex;
    align-items: center;
    gap: 8px;
}
.qty-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
    font-size: 1rem;
}
.remove-btn {
    color: #e74c3c;
    font-size: 1.3rem;
    transition: color 0.2s;
    text-decoration: none;
}
.remove-btn:hover { color: #c0392b; }
.cart-total-label { text-align: right; }
.cart-total-price {
    font-size: 1.2rem;
    color: #1e1c1a;
}
.cart-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    gap: 12px;
}
.empty-cart {
    text-align: center;
    padding: 60px 0;
}
.empty-cart p {
    font-size: 1.2rem;
    color: #6e655c;
    margin: 16px 0 24px;
}

/* ===== ORDER STATUS BADGES ===== */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-new { background: #dbeafe; color: #1e40af; }
.status-processing { background: #fef3c7; color: #92400e; }
.status-paid { background: #d1fae5; color: #065f46; }
.status-shipped { background: #e0e7ff; color: #3730a3; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* ===== PROFILE ===== */
.profile-menu { list-style: none; padding: 0; }
.profile-menu li { margin-bottom: 8px; }
.profile-menu a {
    display: block;
    padding: 8px 16px;
    border-radius: 6px;
    color: #4a5568;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.profile-menu a:hover {
    background: #f5efe9;
    color: #1e1c1a;
}
.profile-menu a.active {
    background: #b99a7b;
    color: #1e1c1a;
    font-weight: 600;
}

/* ===== SPECIFICATIONS TABLE ===== */
.product-specifications { margin: 30px 0 20px; }
.product-specifications h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #1e1c1a;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fffdfa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.specs-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #ede7e0;
}
.specs-table tr:last-child td { border-bottom: none; }
.specs-table td:first-child {
    font-weight: 600;
    color: #4a5568;
    width: 40%;
    background: #f8f4ef;
}
.specs-table td:last-child { color: #1e1c1a; }

/* ===== TOAST ===== */
.toast-message {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #1e1c1a;
    color: #f0ebe5;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    font-size: 0.95rem;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-left: 4px solid #b99a7b;
    pointer-events: none;
}
.toast-message.toast-visible {
    opacity: 1;
    transform: translateX(0);
}
.toast-message.toast-error { border-left-color: #e74c3c; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-text .description { max-width: 100%; }
    .hero-text .btn-group { justify-content: center; }
    .hero-text .region-badge { justify-content: center; }
    .hero-image .knife-visual { max-width: 320px; margin: 0 auto; }
    .hero-image .knife-visual i { font-size: 6rem; }
    .section-heritage .container { grid-template-columns: 1fr; text-align: center; }
    .heritage-text .fact-list li { justify-content: center; }
    .heritage-image .heritage-card { max-width: 100%; }
    .footer .container { grid-template-columns: 1fr 1fr; gap: 32px; }
    .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
    .burger-menu { display: flex; }
    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1e1c1a;
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        border-top: 2px solid #b99a7b;
        transform: scaleY(0);
        transform-origin: top center;
        transition: transform 0.3s ease;
        opacity: 0;
        pointer-events: none;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        z-index: 999;
    }
    .header-nav.open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }
    .header-nav a {
        font-size: 1.1rem;
        padding: 6px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        width: 100%;
        text-align: left;
    }
    .header-nav a:last-child { border-bottom: none; }
    .header-actions .fa-search { display: none; }

    .header { padding: 8px 0 !important; }
    .header .container { gap: 8px !important; flex-wrap: nowrap !important; }
    .logo { font-size: 1.1rem !important; gap: 6px !important; }
    .logo i { font-size: 1.3rem !important; }
    .header-actions { gap: 10px !important; font-size: 1rem !important; }
    .cart-badge { width: 16px !important; height: 16px !important; font-size: 0.55rem !important; top: -6px !important; right: -8px !important; }
    .header-search input { width: 120px !important; padding: 4px 8px !important; font-size: 0.8rem !important; }
    .header-search button { right: 4px !important; font-size: 0.8rem !important; }
    .burger-menu { width: 24px !important; height: 18px !important; }
    .burger-menu span { height: 2px !important; }
    .header-nav.open { padding: 14px 20px !important; gap: 10px !important; }
    .header-nav a { font-size: 1rem !important; padding: 4px 0 !important; }
    .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
    .hero { padding: 50px 0 40px; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-text .subhead { font-size: 1rem; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-card { padding: 16px 12px; }
}

@media (max-width: 480px) {
    .header .container { flex-wrap: wrap !important; justify-content: center !important; }
    .logo { font-size: 1rem !important; }
    .header-search input { width: 100px !important; }
    .header-actions { gap: 6px !important; font-size: 0.9rem !important; }
    .header-actions a { padding: 2px !important; }
    .cart-badge { width: 14px !important; height: 14px !important; font-size: 0.5rem !important; top: -5px !important; right: -6px !important; }
    .burger-menu { width: 20px !important; height: 16px !important; }
    .header-nav.open { padding: 10px 16px !important; }
    .header-nav a { font-size: 0.9rem !important; }
    .catalog-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hero-text h1 { font-size: 1.8rem; }
    .btn { padding: 12px 28px; font-size: 0.9rem; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .category-card span { font-size: 0.85rem; }
    .specs-table td { padding: 8px 12px; font-size: 0.9rem; }
    .toast-message { top: 70px; right: 10px; left: 10px; text-align: center; font-size: 0.9rem; }
}

.product-specifications {
    margin: 20px 0;
}
.product-specifications h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1e1c1a;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fffdfa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.specs-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #ede7e0;
}
.specs-table tr:last-child td {
    border-bottom: none;
}
.specs-table td:first-child {
    font-weight: 600;
    color: #4a5568;
    width: 40%;
    background: #f8f4ef;
}
.specs-table td:last-child {
    color: #1e1c1a;
}
.breadcrumb {
    font-size: 0.9rem;
    color: #8a7a6a;
    margin-bottom: 20px;
}
.breadcrumb a {
    color: #8a7a6a;
    text-decoration: none;
}
.breadcrumb a:hover {
    color: #b99a7b;
}
.product-meta a {
    color: #b99a7b;
    text-decoration: none;
}
.product-meta a:hover {
    text-decoration: underline;
}

/* ===== НАСЛЕДИЕ МАСТЕРОВ (FULL-WIDTH) ===== */
.heritage-fullwidth {
    width: 100%;
    background: #f5efe9;
    /* фон на всю ширину */
}

.heritage-fullwidth .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.category-name {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.card-img-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ----- Улучшенный фильтр ----- */
.filter-form {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e5dbd1;
    margin-bottom: 2rem;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-row:last-of-type {
    margin-bottom: 0;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group.filter-checkbox {
    flex: 0 1 auto;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0.25rem;
}

.filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 4px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.filter-input:focus,
.filter-select:focus {
    border-color: #b99a7b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(185, 154, 123, 0.2);
}

.filter-checkbox-input {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #b99a7b;
    margin-right: 6px;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #4a5568;
    cursor: pointer;
    margin-bottom: 0;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    .filter-group {
        min-width: unset;
    }
    .filter-actions {
        justify-content: center;
    }
}

/* ----- Компактный фильтр ----- */
.filter-form-compact {
    background: white;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e5dbd1;
    margin-bottom: 1.5rem;
}

.filter-row-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.filter-item {
    flex: 0 1 auto;
    min-width: 120px;
}

.filter-item.filter-price {
    min-width: 80px;
    flex: 0 1 100px;
}

.filter-item.filter-checkbox-compact {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.filter-input-compact,
.filter-select-compact {
    width: 100%;
    padding: 0.35rem 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 80px;
}

.filter-input-compact:focus,
.filter-select-compact:focus {
    border-color: #b99a7b;
    outline: none;
    box-shadow: 0 0 0 2px rgba(185, 154, 123, 0.2);
}

.filter-checkbox-input-compact {
    width: 1rem;
    height: 1rem;
    accent-color: #b99a7b;
    margin-right: 4px;
    cursor: pointer;
}

.checkbox-label-compact {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #4a5568;
    cursor: pointer;
    white-space: nowrap;
}

.filter-actions-compact {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-left: auto;
}

.btn-sm {
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-sm.btn-primary {
    background: #b99a7b;
    color: #1e1c1a;
}
.btn-sm.btn-primary:hover {
    background: #a6876a;
}

.btn-sm.btn-outline {
    background: transparent;
    color: #1e1c1a;
    border: 1px solid #b99a7b;
}
.btn-sm.btn-outline:hover {
    background: #b99a7b;
    color: #1e1c1a;
}

/* Адаптив */
@media (max-width: 992px) {
    .filter-row-compact {
        gap: 0.5rem;
    }
    .filter-item {
        min-width: 100px;
        flex: 1 1 120px;
    }
    .filter-item.filter-price {
        min-width: 70px;
        flex: 1 1 90px;
    }
}

@media (max-width: 768px) {
    .filter-form-compact {
        padding: 0.6rem;
    }
    .filter-row-compact {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .filter-item {
        min-width: unset;
        flex: 1 1 auto;
    }
    .filter-item.filter-price {
        min-width: unset;
        flex: 1 1 auto;
    }
    .filter-actions-compact {
        margin-left: 0;
        justify-content: center;
    }
}

/* ===== КРУПНЫЕ ПОЛЯ ФОРМ ===== */
.form-control-lg {
    padding: 12px 16px;
    font-size: 1.05rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-control-lg:focus {
    border-color: #b99a7b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(185, 154, 123, 0.2);
}

.btn-block {
    width: 100%;
    display: block;
}

.auth-box {
    max-width: 520px;
    margin: 0 auto;
    background: #fffdfa;
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e5dbd1;
}

@media (max-width: 480px) {
    .auth-box {
        padding: 24px 16px;
    }
    .form-row {
        grid-template-columns: 1fr !important;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: #141210;
    color: #cbc3bb;
    padding: 48px 0 32px;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand .logo-footer {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f0ebe5;
    margin-bottom: 8px;
}
.footer-brand .logo-footer span { color: #b99a7b; }
.footer-brand p {
    font-size: 0.9rem;
    max-width: 260px;
    line-height: 1.7;
}
.footer-brand .domain {
    display: block;
    margin-top: 6px;
    font-size: 0.95rem;
    color: #b99a7b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.social-row {
    display: flex;
    gap: 14px;
    margin-top: 12px;
}
.social-row a {
    color: #cbc3bb;
    font-size: 1.3rem;
    transition: color 0.2s;
}
.social-row a:hover { color: #b99a7b; }

.footer-col h5 {
    color: #f0ebe5;
    font-size: 1.05rem;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: #cbc3bb;
    font-size: 0.9rem;
    transition: color 0.2s;
    text-decoration: none;
}
.footer-col ul li a:hover { color: #b99a7b; }
.footer-col ul li i { margin-right: 8px; }

.copy {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid #2c2b28;
    font-size: 0.85rem;
    color: #6e655c;
}
.copy span { color: #b99a7b; }

/* ===== АДАПТИВ ФУТЕРА ===== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .footer-brand p { max-width: 100%; margin: 0 auto; }
    .social-row { justify-content: center; }
    .footer-col ul { padding: 0; }
    .footer-col ul li { text-align: center; }
    .footer-col ul li i { display: none; }
}