/* =========================================
   1. GLOBAL VARIABLES & BASE STYLES
   ========================================= */
:root {
    --bg-page: #f6efe5;
    --panel-bg: #fff;
    --accent: #fca311; 
    --brown-dark: #4a2313; 
    --tile-bg: #f8eedd; 
    --hover-brown: #9C5504; 
}

.products-page {
    background: var(--bg-page);
    min-height: 80vh;
    color: #2f2f2f;
    overflow-x: hidden;
}

/* =========================================
   2. SIDEBAR STYLES
   ========================================= */
.sidebar-card {
    background: var(--panel-bg);
    border-radius: 12px;
    padding: 0; 
    min-height: 320px;
    position: sticky;
    top: 90px;
    overflow: hidden; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.sidebar-header { 
    padding: 40px 18px 0 18px; 
}

.sidebar-logo {
    width: 64.42px !important;
    height: 64.42px !important;
    object-fit: contain;
}

.sidebar-header h5 {
    font-weight: 700; 
    color: #000;
    font-size: clamp(18px, 2vw, 25px) !important;
    letter-spacing: 0.5px;
    margin-left: 5px !important;
    margin-top: 0px;
}

.sidebar-divider { 
    border: 0; 
    height: 1px; 
    background-color: #eee; 
    opacity: 0.8; 
    margin: 0 18px; 
}

.sidebar-body { 
    padding: 0 0 18px 0 !important; 
}

.sidebar-body ul { 
    padding-left: 0 !important; 
    margin-left: 0 !important; 
}

.sidebar-link a, .filter-toggle {       
    color: var(--brown-dark);
    text-decoration: none;
    display: flex; 
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px; 
    transition: all .2s ease;
    font-size: 16px !important;
    font-weight: 500 !important;
    width: 100%;
}

.collapse-wrapper { 
    margin-top: 0 !important; 
    padding-top: 0 !important; 
}

.collapse-wrapper li { 
    margin-bottom: 0 !important; 
}

.collapse-wrapper a {
    color: var(--brown-dark);
    text-decoration: none;
    display: block; 
    padding: 8px 18px 8px 30px !important; 
    font-size: 15px !important;
    font-weight: 500 !important;
}

.sidebar-body a:hover, 
.sidebar-body a.active,
.filter-toggle:hover, 
.filter-toggle.active-group { 
    color: #fff !important; 
    background-color: var(--hover-brown) !important; 
}

.filter-toggle { 
    background: transparent; 
    border: none; 
}

.filter-toggle .caret-icon { 
    font-size: 1rem; 
    transition: transform .25s ease; 
    color: #000 !important; 
}

.filter-toggle .caret-icon.rotated { 
    transform: rotate(180deg); 
}

/* =========================================
   3. PRODUCT CARD STYLES
   ========================================= */
.cards-wrapper { 
    border-radius: 12px; 
}

.product-card { 
    background: transparent; 
    border-radius: 12px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    margin-bottom: 30px; 
    height: 100%; 
    transition: transform 0.3s ease;
}

.product-image-container {
    width: 100%;
    max-width: 240px; 
    aspect-ratio: 1 / 1; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    position: relative; 
    margin: 0 auto 15px;
}

.bg-shape {
    width: 85% !important; 
    height: 90% !important;
    position: absolute; 
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FFECCF; 
    border-radius: 12px;
    box-shadow: inset 0px 10px 5px rgba(0, 0, 0, 0.08), 0 10px 18px rgba(0, 0, 0, 0.05);
    z-index: 1;
    transition: all 0.3s ease;
}

.product-img-obj {
    width: 100% !important; 
    height: 95% !important;
    max-width: 240px;
    position: absolute; 
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain; 
    z-index: 2; 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-title { 
    margin-top: 0; 
    font-weight: 600; 
    text-align: center; 
    width: 100%; 
    line-height: 1.3; 
    padding: 0 5px; 
}

.product-title a { 
    color: #3b2f2f; 
    text-decoration: none; 
    padding: 5px 0; 
    font-size: clamp(14px, 1.2vw, 17px) !important;
    font-weight: 500 !important;
    display: block; 
    transition: color 0.2s ease; 
}

/* =========================================
   4. LAPTOP / SMALL NOTEBOOK (992px - 1199px)
   ========================================= */
@media (min-width: 992px) and (max-width: 1199.98px) {
    aside.col-lg-3 {
        flex: 0 0 255px !important;
        max-width: 255px !important;
        width: 255px !important;
    }

    section.col-lg-9 { 
        padding-left: 15px !important; 
    }

    .product-image-container { 
        max-width: 180px;
    }

    .sidebar-header h5 { 
        font-size: 20px !important; 
    }

    .sidebar-link a, .filter-toggle { 
        font-size: 15px !important; 
    }

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

/* =========================================
   5. STANDARD NOTEBOOK (1200px - 1399px)
   ========================================= */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    aside.col-lg-3 {
        flex: 0 0 280px !important; 
        max-width: 280px !important;
        width: 280px !important;
    }

    section.col-lg-9 { 
        padding-left: 20px !important; 
    }

    .product-image-container { 
        max-width: 200px;
    }

    .sidebar-header h5 { 
        font-size: 22px !important; 
    }

    .sidebar-link a, .filter-toggle { 
        font-size: 16px !important; 
    }

    .product-title a { 
        font-size: 15px !important; 
    }
}

/* =========================================
   6. LARGE DESKTOP (1400px+)
   ========================================= */
@media (min-width: 1400px) {
    aside.col-lg-3 { 
        flex: 0 0 335px !important; 
        max-width: 335px !important; 
        width: 335px !important; 
    }

    section.col-lg-9 { 
        padding-left: 35px !important; 
    }

    .col-xl-2-5 { 
        flex: 0 0 20%; 
        max-width: 20%; 
    } 
    
    .product-card:hover .product-img-obj {
        transform: translate(-50%, -55%) scale(1.1); 
    }
}

/* =========================================
   7. DESKTOP BANNER (992px+)
   ========================================= */
@media (min-width: 992px) {
    .mobile-header-section, 
    .mobile-filter-bar, 
    .mobile-page-banner { 
        display: none !important; 
    }

    .page-banner {
        background: #4F200D; 
        color: #fff; 
        padding: 40px; 
        height: 127px; 
        border-radius: 8px; 
        margin-top: 27px; 
        display: block !important;
        width: 100%;
        max-width: 1300px;
    }

    .page-banner h2 { 
        margin: 0; 
        color: var(--accent); 
        font-size: 36px; 
        font-weight: 400; 
    }

    .decor-blocks .square { 
        display: inline-block; 
        width: 58px; 
        height: 127px; 
        background: #4F200D; 
        margin-left: 8px; 
        border-radius: 8px; 
    }

    .product-card:hover .product-img-obj {
        transform: translate(-50%, -55%) scale(1.1); 
    }
}

/* =========================================
   8. TABLET & MOBILE (< 992px)
   ========================================= */
@media (max-width: 991.98px) {
    .page-banner, 
    .decor-blocks { 
        display: none !important; 
    }

    .mobile-page-banner { 
        display: block !important; 
        background: var(--brown-dark); 
        color: #fff; 
        padding: 20px 0; 
        text-align: center; 
    }

    .mobile-page-banner h2 { 
        color: var(--accent); 
        font-size: 1.5rem; 
    }
    
    .mobile-header-section { 
        display: block !important; 
        margin: 0 calc(-.5 * var(--bs-gutter-x)); 
    }

    .mobile-filter-bar { 
        display: block !important; 
        background-color: #f4efe8; 
        padding: 10px 15px; 
        border-bottom: 1px solid #e0e0e0; 
    }
    
    .cards-wrapper { 
        padding: 20px 10px !important; 
    }

    .product-image-container { 
        max-width: 200px; 
    }

    .product-title a { 
        font-size: 15px !important; 
        padding: 10px 0; 
    }
}

/* =========================================
   9. SMALL MOBILE (< 576px)
   ========================================= */
@media (max-width: 575.98px) {
    .product-image-container { 
        max-width: 160px;
    }

    .bg-shape, 
    .product-img-obj { 
        width: 90% !important; 
        height: 90% !important; 
    }

    .product-title { 
        margin-top: -5px; 
    }
}