/* ============================================
   JOINERY CRAFT - ОСНОВНЫЕ СТИЛИ
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #3e2e1f;
    background-color: #faf7f2;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M20 10 L30 8 L40 15 L50 12 L60 18 L70 14 L80 20 L90 18" stroke="%23d4c0a1" fill="none" stroke-width="2" opacity="0.1"/><path d="M15 40 L25 38 L35 45 L45 42 L55 48 L65 44 L75 50 L85 48" stroke="%23b59a7a" fill="none" stroke-width="2" opacity="0.1"/></svg>');
    background-repeat: repeat;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== ВЕРХНЯЯ СЕКЦИЯ ========== */
.top-section {
    background: linear-gradient(rgba(70, 50, 30, 0.7), rgba(50, 35, 20, 0.8));
    background-size: cover;
    background-position: center;
    padding: 30px 0 10px 0;
    overflow-x: hidden;
}

.slider-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
    overflow-x: hidden;
}

.home-slider {
    border-radius: 20px;
    overflow: hidden;
}

.home-slider .splide__track {
    border-radius: 20px;
    overflow: hidden;
}

.home-slider__slide {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-color: #1a1208;
    aspect-ratio: 16 / 7 !important;
}

.home-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-slider__slide .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 25px;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0.9;
    transition: all 0.3s;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.home-slider__slide:hover .slide-caption {
    transform: translateY(0);
    opacity: 1;
    padding-bottom: 30px;
}

.home-slider__slide .slide-caption h5 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.home-slider__slide .slide-caption p {
    font-size: 1rem;
    opacity: 0.9;
}

.home-slider__slide .clickable-zone {
    position: absolute;
    top: 0;
    height: 100%;
    width: 30%;
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 20px;
}

.home-slider__slide .clickable-zone.prev {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.home-slider__slide .clickable-zone.next {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.1), transparent);
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.home-slider__slide:hover .clickable-zone {
    opacity: 0.3;
}

.home-slider .splide__pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    position: relative;
    bottom: 0;
}

.home-slider .splide__pagination__page {
    width: 12px;
    height: 12px;
    background: #cbb99c;
    border-radius: 50%;
    opacity: 0.6;
    margin: 0;
    transition: all 0.3s;
}

.home-slider .splide__pagination__page.is-active {
    background: #d4a574;
    opacity: 1;
    transform: scale(1.2);
}

.home-slider .splide__arrows {
    display: none;
}

.slider-text {
    text-align: center;
    padding: 8px 20px 15px;
    max-width: 800px;
    margin: 0 auto;
}

.slider-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.slider-tagline {
    font-size: 0.9rem;
    color: #f5e6d3;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.slider-text-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a574, #c9a87b, #d4a574, transparent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ============================================================
   КАРТОЧКИ ТОВАРОВ (ВСЕ СТИЛИ В ОДНОМ БЛОКЕ)
   ============================================================ */

/* ----- СЕТКА ----- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 20px;
}

@media (min-width: 1600px) {
    .products-grid {
        max-width: 1600px;
        gap: 12px;
    }
}

@media (max-width: 1400px) {
    .products-grid {
        gap: 10px;
        padding: 0 16px;
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px !important;
        padding: 0 4px !important;
        background: #faf7f2;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 3px !important;
        padding: 0 3px !important;
    }
}

/* ----- КАРТОЧКА (ДЕСКТОП) ----- */
.product-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    cursor: pointer;
    border: 1px solid #ebe5dd;
    will-change: transform, box-shadow;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: #d4a574;
    z-index: 2;
}

.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f7f4f0;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.02);
}

.cart-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 5;
    color: white;
}

.cart-icon svg {
    width: 16px;
    height: 16px;
    stroke: white;
    fill: none;
}

.cart-icon.active {
    background: #d4a574;
}

.cart-icon:hover {
    transform: scale(1.05);
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    border: 1px solid #e8e0d8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.wishlist-btn svg {
    width: 15px;
    height: 15px;
}

.wishlist-btn.active svg path {
    fill: #d4788a;
    stroke: #d4788a;
}

.wishlist-btn:hover {
    transform: scale(1.05);
    border-color: #d4788a;
}

.quick-view-trigger {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    border: 1px solid #e8e0d8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    color: #3e2e1f;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.quick-view-trigger svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
}

.quick-view-trigger:hover {
    background: #2c3e50;
    color: white;
    transform: scale(1.05);
    border-color: #2c3e50;
}

.product-info {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 600;
    color: #4a3727;
    margin-bottom: 4px;
}

.product-title {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
    color: #5a4a3a;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    mask-image: linear-gradient(to right, black 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 75%, transparent 100%);
}

@supports not (mask-image: linear-gradient(to right, black 75%, transparent 100%)) {
    .product-title {
        text-overflow: ellipsis;
    }
}

.product-card:hover .product-title {
    mask-image: linear-gradient(to right, black 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 75%, transparent 100%);
    overflow: hidden;
    white-space: nowrap;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 0.7rem;
    color: #d5cdc5;
}

.star.filled {
    color: #d4a574;
}

.reviews-count {
    font-size: 0.65rem;
    color: #a09080;
}

.purchased-badge {
    display: inline-block;
    color: #2d7a4a;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    background: #e8f5e9;
    padding: 2px 14px;
    border-radius: 20px;
    border: 1px solid #c8e6c9;
    margin-left: 0;
}

/* ----- КАРТОЧКА (МОБИЛЬНАЯ ВЕРСИЯ) ----- */
@media (max-width: 768px) {
    .product-card {
        border-radius: 6px;
        border: 1px solid #ebe5dd;
        box-shadow: none;
        min-height: 260px;
        transition: none;
    }

    .product-card:hover {
        transform: none;
        box-shadow: none;
        border-color: #ebe5dd;
        z-index: 1;
    }

    .product-info {
        padding: 8px 8px 10px;
    }

    .product-price {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .product-title {
        font-size: 0.75rem;
        mask-image: linear-gradient(to right, black 75%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 75%, transparent 100%);
    }

    .product-card:hover .product-title {
        mask-image: linear-gradient(to right, black 75%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 75%, transparent 100%);
        overflow: hidden;
        white-space: nowrap;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .stars .star {
        font-size: 0.6rem;
    }
    .reviews-count {
        font-size: 0.55rem;
    }

    .cart-icon {
        width: 32px !important;
        height: 32px !important;
        bottom: 8px;
        right: 8px;
    }
    .cart-icon svg {
        width: 15px !important;
        height: 15px !important;
    }

    .wishlist-btn {
        width: 30px !important;
        height: 30px !important;
        top: 8px;
        right: 8px;
    }
    .wishlist-btn svg {
        width: 14px !important;
        height: 14px !important;
    }

    .quick-view-trigger {
        width: 30px !important;
        height: 30px !important;
        top: 8px;
        left: 8px;
    }
    .quick-view-trigger svg {
        width: 14px !important;
        height: 14px !important;
    }

    .purchased-badge {
        font-size: 0.6rem;
        padding: 1px 8px;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .product-card {
        border-radius: 4px;
        min-height: 220px;
    }

    .product-info {
        padding: 6px 6px 8px;
    }

    .product-price {
        font-size: 0.8rem;
        margin-bottom: 1px;
    }

    .product-title {
        font-size: 0.68rem;
        mask-image: linear-gradient(to right, black 80%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    }

    .stars .star {
        font-size: 0.55rem;
    }
    .reviews-count {
        font-size: 0.5rem;
    }

    .cart-icon {
        width: 28px !important;
        height: 28px !important;
        bottom: 6px;
        right: 6px;
    }
    .cart-icon svg {
        width: 14px !important;
        height: 14px !important;
    }

    .wishlist-btn {
        width: 26px !important;
        height: 26px !important;
        top: 6px;
        right: 6px;
    }
    .wishlist-btn svg {
        width: 13px !important;
        height: 13px !important;
    }

    .quick-view-trigger {
        width: 26px !important;
        height: 26px !important;
        top: 6px;
        left: 6px;
    }
    .quick-view-trigger svg {
        width: 13px !important;
        height: 13px !important;
    }

    .purchased-badge {
        font-size: 0.55rem;
        padding: 1px 6px;
        margin-left: 0;
    }
}

/* ============================================================
   БЫСТРЫЙ ПРОСМОТР
   ============================================================ */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.quick-view-modal.open {
    visibility: visible;
    opacity: 1;
}

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s ease;
}

.quick-view-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 880px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 12px;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.quick-view-modal.open .quick-view-container {
    transform: translate(-50%, -50%) scale(1);
}

.quick-view-container::-webkit-scrollbar {
    width: 6px;
}

.quick-view-container::-webkit-scrollbar-track {
    background: #f5f0e8;
    border-radius: 3px;
}

.quick-view-container::-webkit-scrollbar-thumb {
    background: #d4c5b5;
    border-radius: 3px;
}

.quick-view-container::-webkit-scrollbar-thumb:hover {
    background: #b8955c;
}

.quick-view-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    z-index: 10;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.quick-view-close:hover {
    color: #3e2e1f;
    background: rgba(0, 0, 0, 0.04);
}

.quick-view-content {
    padding: 24px 28px 28px;
}

.quick-view-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #7a6852;
    font-size: 0.95rem;
}

.quick-view-loader::after {
    content: "";
    width: 32px;
    height: 32px;
    margin-left: 14px;
    border: 2px solid #e8e0d8;
    border-top-color: #b8955c;
    border-radius: 50%;
    animation: quickViewSpin 0.8s linear infinite;
}

@keyframes quickViewSpin {
    to { transform: rotate(360deg); }
}

.quick-view-error {
    text-align: center;
    padding: 60px 20px;
    color: #b8955c;
    font-size: 1rem;
}

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #5a3e2b;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #a67b5b;
    margin: 15px auto;
    border-radius: 2px;
}

/* ============================================================
   КАТАЛОГ
   ============================================================ */
.catalog-header {
    margin: 20px auto 25px;
    max-width: 1400px;
    padding: 0 20px;
    text-align: center;
}

.results-count {
    font-size: 0.9rem;
    color: #7a6852;
    background: #fef8f0;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 40px;
}

.results-count strong {
    color: #8b5a2b;
    font-weight: 600;
}

@media (max-width: 768px) {
    .catalog-header {
        margin: 15px auto 20px;
        padding: 0 15px;
    }
    .results-count {
        font-size: 0.8rem;
        padding: 5px 14px;
    }
}

/* ============================================================
   ФИЛЬТРЫ
   ============================================================ */
.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 auto 30px;
    align-items: center;
    justify-content: flex-start;
    max-width: 1400px;
}

@media (max-width: 1400px) {
    .filters-row {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .filters-row {
        padding: 0 15px;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 20px;
    }
}

.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    background: white;
    border: 1px solid #ddd;
    border-radius: 40px;
    padding: 8px 18px;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3e2e1f;
    white-space: nowrap;
}

.dropdown-trigger:hover {
    border-color: #d4a574;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    list-style: none;
    padding: 8px 0;
    min-width: 200px;
    display: none;
    z-index: 100;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-menu li {
    padding: 8px 20px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.dropdown-menu li::before {
    content: "○";
    font-size: 1rem;
    color: #aaa;
    width: 18px;
    display: inline-block;
}

.dropdown-menu li.active::before {
    content: "●";
    color: #d4a574;
}

.dropdown-menu li:hover {
    background: #fef8f0;
}

.filter-trigger {
    background: white;
    border: 1px solid #ddd;
    border-radius: 40px;
    padding: 8px 18px;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-trigger:hover {
    border-color: #d4a574;
}

/* ============================================================
   ПАГИНАЦИЯ
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px auto 30px;
    max-width: 1400px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid #e0d2c0;
    border-radius: 40px;
    text-decoration: none;
    color: #3e2e1f;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.page-link:hover {
    background: #fef8f0;
    border-color: #d4a574;
}

.page-link.active {
    background: #d4a574;
    border-color: #d4a574;
    color: white;
}

/* ============================================================
   ФИЛЬТРЫ (МОДАЛКА)
   ============================================================ */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    visibility: hidden;
    z-index: 2000;
}

.filter-modal.open {
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.filter-modal.open .modal-overlay {
    opacity: 1;
}

.modal-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 90%;
    max-width: 400px;
    height: 100%;
    background: white;
    border-radius: 24px 0 0 24px;
    box-shadow: -2px 0 20px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.filter-modal.open .modal-content {
    transform: translateX(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0e6d8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.modal-body .filter-group {
    margin-bottom: 24px;
}

.modal-body .filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #5a3e2b;
    margin-bottom: 8px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #f0e6d8;
}

.btn-filter {
    background: #d4a574;
    color: #2c1e0e;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.btn-filter:hover {
    background: #c48b56;
}

/* ============================================================
   ФУТЕР
   ============================================================ */
footer {
    background-color: #3a2e22;
    color: #b8a99a;
    text-align: center;
    padding: 1rem 0 0.8rem 0;
    margin-top: 60px;
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.footer-links a {
    color: #b8a99a;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffd79c;
}

.footer-copyright p {
    margin: 4px 0;
    font-size: 0.85rem;
}

/* ============================================================
   ФИКС ФУТЕРА ВНИЗУ
   ============================================================ */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

/* ============================================================
   АДАПТИВ (МОБИЛЬНАЯ ВЕРСИЯ)
   ============================================================ */

@media (max-width: 768px) {
    .top-section {
        padding: 25px 0 5px 0;
    }
    .slider-container {
        padding: 0 15px;
    }
    .home-slider__slide {
        aspect-ratio: 16 / 7 !important;
    }
    .home-slider__slide .clickable-zone {
        display: none !important;
    }
    .home-slider__slide .slide-caption h5 {
        font-size: 1rem;
    }
    .home-slider__slide .slide-caption p {
        font-size: 0.7rem;
    }
    .slider-title {
        font-size: 1.3rem;
    }
    .slider-tagline {
        font-size: 0.8rem;
    }
    .slider-text {
        padding: 5px 15px 8px;
    }
    .slider-text-line {
        width: 50px;
        margin-top: 6px;
    }
    .home-slider .splide__pagination {
        gap: 8px;
        margin-top: 15px;
    }
    .home-slider .splide__pagination__page {
        width: 8px;
        height: 8px;
    }

    .section {
        padding: 30px 0 40px;
    }
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    .section-title::after {
        width: 50px;
        height: 2px;
        margin: 8px auto;
    }

    .filters-row {
        gap: 6px;
        margin-bottom: 15px;
        padding: 0 10px !important;
    }
    .dropdown-trigger,
    .filter-trigger {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    .dropdown-trigger i,
    .filter-trigger i {
        font-size: 0.7rem;
    }
    #categoryDropdown,
    #formatDropdown {
        display: none !important;
    }
    .dropdown-trigger .desktop-text {
        display: none;
    }
    .dropdown-trigger .mobile-icon {
        display: inline-block;
    }
    .filter-trigger .desktop-text {
        display: none;
    }

    .pagination {
        gap: 6px;
        margin: 25px auto 20px;
    }
    .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 0.75rem;
    }

    .quick-view-container {
        width: 95%;
        max-height: 80vh;
        border-radius: 10px;
    }
    .quick-view-content {
        padding: 16px 18px 20px;
    }
    .quick-view-close {
        top: 0;
        right: 0;
        font-size: 28px;
        padding: 4px 10px;
    }
    .quick-view-loader {
        min-height: 200px;
        font-size: 0.85rem;
    }

    footer {
        padding: 0.6rem 0 0.4rem 0;
        margin-top: 30px;
    }
    .footer-links {
        gap: 10px;
        flex-wrap: nowrap;
        white-space: nowrap;
        margin-bottom: 5px;
    }
    .footer-links a,
    .footer-copyright p {
        font-size: 0.65rem;
    }
    .footer-copyright {
        padding-bottom: 10px;
    }
}

/* ========================================================== */

/* ===== БЕЗОПАСНАЯ ЗОНА ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 768px) {
        .footer-copyright {
            padding-bottom: calc(75px + env(safe-area-inset-bottom));
        }
    }
    @media (max-width: 480px) {
        .footer-copyright {
            padding-bottom: calc(70px + env(safe-area-inset-bottom));
        }
    }
}

/* ========================================================== */

/* ===== FIX LAYOUT SHIFT (CLS) ===== */
.home-slider {
    min-height: 200px;
}
.home-slider__slide {
    aspect-ratio: 16 / 7 !important;
    background-color: #1a1208;
}
.home-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.top-section {
    min-height: 380px;
}
.slider-text {
    min-height: 100px;
}
.products-grid {
    min-height: 400px;
}
.search-submit-btn {
    min-width: 40px;
}
.burger-btn {
    min-width: 40px;
    min-height: 40px;
}
.section {
    padding: 60px 0;
}

@media (max-width: 768px) {
    .top-section {
        min-height: 280px;
    }
    .slider-text {
        min-height: 70px;
    }
    .section {
        padding: 30px 0 40px;
    }
}

@media (max-width: 480px) {
    .top-section {
        min-height: 220px;
    }
    .slider-text {
        min-height: 60px;
    }
}