/* ===== FOOTER — ЕДИНЫЙ ВИД НА ВСЕХ СТРАНИЦАХ ===== */

/* ===== FOOTER LINKS ===== */
.footer-link {
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: #FF6B00 !important;
}

/* ===== FOOTER SECTION (Mobile Accordion) ===== */
.footer-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-section summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: white;
}
.footer-section summary::-webkit-details-marker {
    display: none;
}
.footer-section summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    transition: transform 0.3s;
}
.footer-section[open] summary::after {
    transform: rotate(45deg);
}
@media (min-width: 1024px) {
    .footer-section summary {
        pointer-events: none;
    }
    .footer-section summary::after {
        display: none;
    }
}

/* ===== MOBILE SIDEBAR ===== */
.mobile-overlay {
    transition: opacity 0.3s;
}
.mobile-panel {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: auto !important;
    max-height: 100vh !important;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.mobile-panel::-webkit-scrollbar {
    display: none !important;
}
.mobile-panel nav {
    padding-top: 0.5rem;
    padding-bottom: calc(56px + env(safe-area-inset-bottom) + 1.5rem) !important;
}

/* ===== SVG ICON COLOR UNIFICATION ===== */
.menu-svg-icon {
    color: #FF6B00 !important;
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.menu-svg-icon svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
.menu-svg-icon svg [fill]:not([fill="none"]) {
    fill: currentColor !important;
}
.menu-svg-icon svg [stroke]:not([stroke="none"]) {
    stroke: currentColor !important;
}


/* ===== QUICK VIEW MODAL ===== */
.stage {
    position: relative;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #fff 0%, #f8f9fc 100%);
    overflow: hidden;
    cursor: zoom-in;
}
.stage > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.stage:hover > img {
    transform: scale(1.05);
}

.stage-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 10;
}
.stage-action {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #E4EAF3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #172033;
}
.stage-action:hover {
    background: #FF6B00;
    color: white;
    border-color: #FF6B00;
    transform: translateY(-2px);
}

.stage-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #E4EAF3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
    color: #172033;
}
@media (hover: hover) {
    .stage:hover .stage-arrow {
        opacity: 1;
    }
    .stage-arrow:hover {
        background: #FF6B00;
        color: white;
        border-color: #FF6B00;
    }
}
.stage-arrow {
    opacity: 0.7;
}
.stage-arrow.prev {
    left: 12px;
}
.stage-arrow.next {
    right: 12px;
}

.stage-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(11, 27, 51, 0.72);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
}

.thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.thumbs::-webkit-scrollbar {
    display: none;
}

.thumb {
    flex: 0 0 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    scroll-snap-align: start;
}
.thumb.active {
    border-color: #FF6B00;
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.25);
}
.thumb:hover {
    transform: translateY(-2px);
}
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== PRODUCT FAVORITE BUTTON ===== */
.product-favorite {
    transition: all 0.2s ease;
}
.product-favorite.active .bi-heart {
    color: #FF3B30 !important;
}
.product-favorite.active .bi-heart-fill {
    color: #FF3B30 !important;
}

/* ===== ADD TO CART BUTTON ===== */
.btn-add-cart {
    transition: all 0.2s ease;
}

/* ===== QUICK VIEW MODAL CONTAINER ===== */
#quick-view-overlay {
    transition: opacity 0.3s ease;
}
#quick-view-modal {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== BOOTSTRAP ICON SIZE ===== */
.fs-5 {
    font-size: 1.125rem;
}

/* ===== CATEGORY HIDDEN PRODUCTS ===== */
.category-hidden {
    display: none !important;
}

/* ===== QUICK VIEW MODAL SCROLLBAR ===== */
#qv-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
    scroll-behavior: smooth;
}
#qv-scroll-container::-webkit-scrollbar {
    width: 6px;
}
#qv-scroll-container::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}
#qv-scroll-container::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
    transition: background 0.2s;
}
#qv-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Lightbox */
#qv-lightbox {
    transition: opacity 0.3s ease;
}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
    display: none;
}

@media screen and (max-width: 1023px) {
    .mobile-bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: #ffffff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
        border-top: 1px solid #F1F5F9;
        z-index: 999;
        padding-bottom: env(safe-area-inset-bottom);
        min-width: 320px;
        overflow: visible;
    }
    
    body {
        padding-bottom: 56px !important;
    }
    
    .mobile-bottom-nav-container {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 100%;
        width: 100%;
        overflow: visible;
    }
    
    .mobile-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        flex-shrink: 0;
        height: 100%;
        color: #64748B;
        text-decoration: none;
        transition: all 0.2s ease;
        font-size: 10px;
        font-weight: 500;
        gap: 1px;
    }
    
    .mobile-bottom-nav-item i {
        transition: transform 0.2s ease;
        width: 20px;
        height: 20px;
        color: #64748B;
    }
    
    .mobile-bottom-nav-item:hover,
    .mobile-bottom-nav-item.active {
        color: #FF6B00;
    }
    
    .mobile-bottom-nav-item:hover i,
    .mobile-bottom-nav-item.active i {
        color: #FF6B00;
        transform: scale(1.05);
    }
    
    /* Central Elevated Button */
    .mobile-bottom-nav-item.center-btn {
        position: relative;
        overflow: visible;
    }
    
    .center-btn-inner {
        position: absolute;
        top: -10px;
        width: 36px;
        height: 36px;
        background: #FF6B00;
        color: #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
        border: 2.5px solid #ffffff;
        transition: all 0.2s ease;
    }
    
    .center-btn-inner i {
        color: #ffffff !important;
        width: 16px;
        height: 16px;
    }
    
    .mobile-bottom-nav-item.center-btn span {
        margin-top: 22px;
    }
    
    .mobile-bottom-nav-item.center-btn:hover .center-btn-inner,
    .mobile-bottom-nav-item.center-btn.active .center-btn-inner {
        background: #e66000;
        transform: scale(1.05) translateY(-2px);
        box-shadow: 0 6px 14px rgba(255, 107, 0, 0.4);
    }

    /* Badges */
    .mobile-bottom-nav-item .cart-count-val,
    .mobile-bottom-nav-item .fav-products-count {
        position: absolute;
        top: 2px;
        right: calc(50% - 14px);
        background: #FF3B30;
        color: #ffffff;
        font-size: 8px;
        font-weight: 700;
        border-radius: 999px;
        min-width: 14px;
        height: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        border: 1px solid #ffffff;
        line-height: 1;
        z-index: 10;
    }
}

