/* =====================================================
   style.css — extracted + cleaned from body.html
   Comments kept as requested (Option A)
   ===================================================== */

/* Global */
:root {
    --brand-dark: #000;
    --brand-muted: #6c757d;
    --bg-light: #f8fafc;
}
html, body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
}

/* Brand helpers */
.brand-dark { color: var(--brand-dark); }
.brand-muted { color: var(--brand-muted); }

/* -------------------------
   Section containers
   ------------------------- */
.section-container {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

/* -------------------------
   Product cards
   ------------------------- */
.product-card {
    border: none !important;
    transition: transform 0.3s ease-in-out;
    position: relative;
}
.product-card:hover { transform: scale(1.03); }

/* image container keeps consistent height */
.product-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: .375rem;
}
@media (min-width: 576px) { .product-image-container { height: 220px; } }
@media (min-width: 768px) { .product-image-container { height: 220px; } }

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* price badge under image */
.product-price {
    font-size: 12px;
    position: absolute;
    bottom: 0px;
    color: #000;
    width: 100%;
    text-align: center;
}
.product-price strike { color: #a9a9a9; font-size: 14px; }
.product-price > div {
    font-size: 12px;
    text-align: center;
    background: white;
    color: #000;
    border-radius: 5px;
    padding: 0 7px;
    width: fit-content;
    margin: 0 auto;
}

/* product tag */
.product-tag {
    background-color: #262626;
    color: white;
    padding: .25rem .5rem;
    font-size: .75rem;
    font-weight: 600;
    border-bottom-right-radius: .375rem;
}

/* promotional overlay card */
.promo-overlay {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: .5rem;
    min-height: 480px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}
.promo-overlay:hover { transform: scale(1.01); }

.promo-text-box {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
    color: white;
    background-color: rgba(0,0,0,0.4);
    width: 100%;
}

/* view more card */
.view-more-card {
    background-image: url('https://placehold.co/400x600/374151/ffffff?text=VIEW+MORE');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    text-decoration: none;
}
.view-more-card .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.4);
    transition: background-color .3s;
    border-radius: .5rem;
}
.view-more-card:hover .overlay { background-color: rgba(0,0,0,0.2); }
.view-more-content { position: relative; z-index: 10; }

/* bottom strip */
.bottom-strip { background-color: #f7f7f7; }
.bottom-strip a { font-size: .65rem; font-weight: 600; color: #333; text-decoration: none; transition: color .2s; }
.bottom-strip a:hover { color: #000; }
@media (min-width:768px) { .bottom-strip a { font-size: 1rem; } }

/* promo text row */
.promo-text-row { background-color: #e6f7ff; padding: 10px 0; font-size: .9rem; text-align: center; border-bottom: 1px solid #cceeff; }
.promo-text-row a { color: #007bff; font-weight: 600; text-decoration: none; }

/* New arrival banner */
.new-arrival-banner { background-color: #000000; padding: .7rem 0; color: #f7f7f7; }

/* Category card */
.category-card {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
    background-color: #fff;
    position: relative;
    margin-bottom: 15px;
}
.category-card:hover { transform: translateY(-3px); box-shadow: 0 5px 10px rgba(0,0,0,.1); }

.category-name {
    padding: 4px 10px;
    background: #fff;
    /* border-radius: 0 0 10px 10px; */
    text-decoration: none;
    color: black;
    font-size: .7rem;
    font-weight: 500;
    box-shadow: 0 5px 15px 0 rgba(37,44,97,.15), 0 2px 4px 0 rgba(93,100,148,.2);
}

/* Mega menu */
.mega-dropdown { position: static !important; }
.mega-dropdown .dropdown-menu {
    width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    padding: 20px 0;
    left: 0;
    margin-top: 0;
}
.mega-dropdown .dropdown-header { font-size: 1rem; font-weight: 700; color: #333; padding-left: 15px; margin-bottom: 10px; }
.mega-dropdown .dropdown-item { padding: 8px 15px; font-size: .95rem; }
.mega-dropdown .dropdown-item:hover { color: #000; background-color: #f8f9fa; }

/* shop button hover */
#shopDropdown .btn-outline-dark:hover { color: white !important; background-color: #212529; }

/* Search bar & results */
.search-container { position: relative; max-width: 400px; width: 100%; margin: 0; }
.search-results-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    z-index: 1000; background: #fff; border: 1px solid #ddd; border-top: none;
    box-shadow: 0 4px 6px rgba(0,0,0,.1); max-height: 300px; overflow-y: auto; display: none;
}
.search-product-item { display:flex; align-items:center; padding:8px 15px; text-decoration:none; color:#333; transition: background-color .15s; }
.search-product-item:hover { background-color:#f8f9fa; }
.search-product-image { width:40px; height:40px; object-fit:cover; border-radius:3px; margin-right:10px; }
.search-product-info p { margin:0; font-size:.9rem; line-height:1.2; }
.search-product-info .price { font-weight:bold; color:#dc3545; }

/* mini cart/wishlist */
.mini-cart, .mini-wishlist { width:300px; right:0; left:auto; }
.cart-item { padding:10px 15px; border-bottom:1px solid #eee; }

/* account dropdown custom */
.account-dropdown .dropdown-menu { background-color:#000; border:1px solid #333; padding:0; }
.account-dropdown .dropdown-item { color:#fff; padding:10px 15px; font-weight:500; }
.account-dropdown .dropdown-item:hover { background-color:#333; color:#fff; }

/* top bar */
.top-bar { height:40px; font-size:.8rem; }
.top-bar .btn-link { color:white; text-decoration:none; padding:0 1rem; border-radius:0; transition: background-color .2s; }
.top-bar .btn-link:hover { background-color: rgba(255,255,255,.1); }

/* carousel */
.carousel-item {
    min-height: 500px; background-position: center center; background-size: cover;
    display:flex; align-items:center; justify-content:center; color:#fff;
    text-shadow:2px 2px 4px rgba(0,0,0,.6); position:relative; transition: transform .6s ease-in-out;
}

/* Tablet */
@media (max-width: 768px){
    .carousel-item{
        min-height:300px;
    }
}

/* Mobile */
@media (max-width: 480px){
    .carousel-item{
        min-height:165px;
    }
}

@media (max-width: 991px) {
    #mainNav .search-results-dropdown {
        position: static;      /* inside navbar collapse */
        margin-top: 5px;
        max-height: 250px;
        overflow-y: auto;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    /* Make dropdown items full width */
    #mainNav .search-product-item {
        width: 100%;
    }
}

/* Mobile Sidebar Filter with Toggler */
@media (max-width: 991px) {
    .sidebar-menu {
        display: none !important;
        width: 100% !important;
        height: auto !important;
        border-right: none !important;
        border-bottom: 1px solid #eee;
        padding: 15px !important;
        margin-bottom: 20px;
        overflow-y: visible !important;
    }

    /* Show sidebar when toggled */
    .sidebar-menu.show {
        display: block !important;
    }

    .product-display {
        width: 100% !important;
    }

    .sidebar-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .sidebar-list {
        padding-left: 20px !important;
    }

    .filter-checkbox {
        width: 16px !important;
        height: 16px !important;
        margin: 0 8px !important;
    }

    .sidebar-subtitle {
        font-size: 0.9rem;
    }

    /* Filter Toggler Button */
    .filter-toggle-btn {
        display: block !important;
        width: 100%;
        margin-bottom: 15px;
        padding: 10px;
        background-color: #000;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-weight: 600;
        text-align: left;
    }

    .filter-toggle-btn:hover {
        background-color: #333;
    }
}

@media (max-width: 576px) {
    .sidebar-menu {
        padding: 12px !important;
    }

    .sidebar-title {
        font-size: 1rem;
    }

    .sidebar-subtitle {
        font-size: 0.85rem;
    }

    .sidebar-list {
        padding-left: 15px !important;
    }

    .filter-toggle-btn {
        padding: 8px !important;
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .filter-toggle-btn {
        display: none !important;
    }

    .sidebar-menu {
        display: block !important;
    }
}

.slide-1 { background-image: url('https://fabrilife.com/image-gallery/69221af255306.jpg'); }
.slide-2 { background-image: url('https://fabrilife.com/image-gallery/69221af255306.jpg'); }
.slide-3 { background-image: url('https://fabrilife.com/image-gallery/69221af255306.jpg'); }

/* sticky navbar */
.sticky-navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
}

/* footer small helpers */
.footer .form-control { background-color: #495057; color: #f8f9fa; border-color: #495057; }
.footer .form-control::placeholder { color: #ced4da; opacity: .7; }

/* small utilities */
.premium-badge { margin: 1rem; }
.carousel-head { letter-spacing:15px; }


/* shop page css start */


/* Secondary Search/Filter Bar */
.secondary-search-bar {
    display: flex;
    position: relative;
    max-width: 300px;
}

.secondary-search-input {
    border-radius: 0;
    border-right: none;
    border-color: #ccc;
}

.secondary-search-btn {
    border-radius: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    color: #000;
}

/* Active Filters Section */
.filter-section {
    padding-left: 10px;
}

.active-filter-tag {
    background-color: #000000;
    color: white;
    padding: 0px 5px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 500;
    position: relative;
    margin-right: 15px;
}

.active-filter-tag .btn-close {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    opacity: 1;
    background: none;
    color: white;
    font-size: 0.7rem;
    padding: 0;
    margin: 0;
}

.btn-close:focus {
    box-shadow: none;
}

.btn-clear-adjustments {
    color: #000000;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px;
    margin: 0;
    border: 1px solid #000;
}

/* --- Product Card Styles --- */
.product-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    padding-bottom: 10px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffc107; /* Amber/Yellow for SALE */
    color: #000;
    font-weight: 700;
    padding: 2px 8px;
    font-size: 0.75rem;
    z-index: 10;
    border-radius: 3px;
}

.product-image-container {
    background-color: #f9f9f9; /* Light background for the image section */
    height: 250px; /* Fixed height for uniformity */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 0px;
}

.product-item-card .product-image-container{
    margin-bottom: 10px;
}

.out-of-stock-tag {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 5;
    border-radius: 3px;
}

.product-image-container img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    opacity: 1.5; 
}

.product-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #000;
}

.price-section {
    margin-bottom: 10px;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
    font-size: 0.85rem;
}

.new-price {
    color: #dc3545; /* Red for the main price */
    font-size: 1.1rem;
    font-weight: 700;
}

.buy-now-btn {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
    padding: 5px 20px;
    font-weight: 600;
    border-radius: 5px;
    font-size: 0.9rem;
    width: 80%;
    transition: all 0.2s;
}

.buy-now-btn:hover {
    background-color: #f0f0f0;
}

/* Media Queries for Responsiveness (Bootstrap handles most, but for fine-tuning) */
@media (max-width: 992px) {
    .sidebar-menu {
        display: none; /* Hide sidebar on smaller screens, typically replaced by a toggle */
        height: auto;
    }
    .product-display {
        width: 100%;
    }
}


/* new  */


/* --- Main Content Layout --- */
.main-content-area {
    padding: 0;
    margin-top: 0;
}

/* 1. APPLYING 30PX PADDING TO LEFT/RIGHT CONTENT */
.product-display {
    padding: 20px 30px 20px 20px; /* 30px right, original left for spacing */
}
.sidebar-menu {
    background-color: #fff;
    padding: 20px 30px 20px 20px; /* Adjusted padding to the right for the menu itself */
    height: 100vh;
    border-right: 1px solid #eee;
    overflow-y: scroll; /* Changed to scroll for custom styling */
}

/* --- Sidebar Styles --- */

/* 2. CUSTOM THIN BLACK SCROLLBAR STYLING */
.sidebar-menu::-webkit-scrollbar {
    width: 6px; /* Width of the scrollbar */
}
.sidebar-menu::-webkit-scrollbar-track {
    background: #f1f1f1; /* Color of the tracking area */
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: #333; /* Color of the scroll thumb */
    border-radius: 3px;
}
.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: #555; /* Color on hover */
}


.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.sidebar-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    text-transform: uppercase;
    padding-left: 5px;
}

.sidebar-subtitle.active {
    color: #000000;
}

.sidebar-subtitle a{
    color: #000;
    text-decoration: none;
}

.sidebar-list {
    margin-left: 0;
    padding-left: 5px;
    list-style: none;
}

/* Styling the list item content container */
.sidebar-list li {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 0.9rem;
    color: #666;
    align-items: center; /* Vertically align checkbox and text */
}

.sidebar-list li a {
    display: flex;
    justify-content: space-between;
    flex-grow: 1; /* Allows the link to take up all space */
    padding-right: 10px;
    color: #666;
}

.sidebar-list li a:hover {
    color: #000;
}

.sidebar-list li a span {
    font-weight: 500;
    color: #999;
}

/* Checkbox styling */
.category-checkbox {
    width: 14px;
    height: 14px;
    margin-left: auto;
    cursor: pointer;
}

.list-unstyled li a{
    text-decoration: none;
}

/* shop page css end */

/* end of style.css */
