:root{--primary-color:#0a8041;--border-color:#eef0f2;--text-color:#333;--sidebar-bg:#fff;--header-height:55px;--footer-height:65px;}
/* --- FINAL FIX for Full Width & Sticky --- */
.rahi-shop-container{font-family:-apple-system,BlinkMacSystemFont,sans-serif;position:relative;background-color:#f7f8fa;width:100%;}
.rahi-shop-header{
    position:sticky;
    top:0;
    z-index:1000;
    background-color:#fff;
    border-bottom:1px solid var(--border-color);
    padding:10px 15px;
    display:flex;
    gap:10px;
    align-items:center;
    overflow-x:auto
}

/* --- NEW: Search Page Header Styling --- */
.rahi-shop-header-search {
    position:sticky;
    top:0;
    z-index:1000;
    background-color:#fff;
    border-bottom:1px solid var(--border-color);
    padding:15px;
}
.rahi-search-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}
.rahi-search-title strong {
    font-weight: 700;
    color: var(--primary-color);
}
/* --- NEW: Full Width Products Section for Search Page --- */
.rahi-shop-products-full {
    flex-grow: 1;
    padding: 15px;
    width: 100%; 
}
/* Ensure product body is full width */
.rahi-shop-body-search {
    display: flex;
    align-items: flex-start;
    width: 100%;
}
/* --- END NEW SEARCH STYLES --- */

.rahi-header-btn,.rahi-header-chip{border:1px solid #ccc;background-color:#fff;border-radius:18px;padding:6px 14px;cursor:pointer;font-size:14px;white-space:nowrap;color:var(--text-color)!important}
.rahi-shop-body{display:flex;align-items:flex-start}
.rahi-shop-sidebar{width:90px;background-color:var(--sidebar-bg);height:calc(100vh - var(--header-height));position:sticky;top:var(--header-height);overflow-y:auto;flex-shrink:0;border-right:1px solid var(--border-color)}
.rahi-shop-sidebar ul{list-style:none;padding:0;margin:0}
.rahi-cat-item{padding:10px 5px;font-size:12px;text-align:center;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.rahi-cat-item.active{background-color:#f0f0f0;font-weight:600;border-left:4px solid var(--primary-color)}
.cat-image-wrapper{width:50px;height:50px}.cat-image-wrapper img{width:100%;height:100%;object-fit:contain}

/* --- PRODUCT GRID LAYOUT FIXES (MAIN SHOP) --- */
.rahi-shop-products{flex-grow:1;padding:15px}
/* MOBILE DEFAULT (0px to 767px): 2 Columns */
.rahi-products-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    position:relative
}

/* TABLET VIEW (768px to 1199px): 3 Columns */
@media (min-width: 768px) {
    .rahi-products-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

/* PC/DESKTOP VIEW (1200px and up): 4 Columns */
@media (min-width: 1200px) {
    .rahi-products-grid{
        grid-template-columns:repeat(4,1fr);
    }
}
/* --- END PRODUCT GRID LAYOUT FIXES --- */


.rahi-products-grid.loading .rahi-loader-overlay{display:flex}
.rahi-loader-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,.7);z-index:10;display:none;align-items:center;justify-content:center}
.rahi-product-card{border:1px solid var(--border-color);border-radius:8px;overflow:hidden;display:flex;flex-direction:column;background:#fff;position:relative;transition:box-shadow .2s ease}
.rahi-product-card:hover{box-shadow:0 4px 12px rgba(0,0,0,0.08)}

/* --- NEW: PROFESSIONAL DISCOUNT BADGE STYLING --- */
.rahi-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #E74C3C; 
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* --- END NEW DISCOUNT BADGE STYLING --- */

/* Clickable elements to open new modal */
.rahi-product-image-wrapper,.rahi-product-title,.rahi-variable-product-btn{cursor:pointer}
.rahi-product-image-wrapper{padding:10px}.rahi-product-image-wrapper img{width:100%;height:120px;object-fit:contain;border-radius:4px}
.rahi-product-details{padding:0 10px;margin-top:auto}.rahi-product-title{font-size:14px;font-weight:500;margin:5px 0;color:var(--text-color);height:40px;overflow:hidden}
.rahi-product-rating .star-rating{font-size:12px;margin:5px 0}
.rahi-product-price{font-size:16px;font-weight:600;color:#000;margin:5px 0}.rahi-product-price ins{text-decoration:none;background:none}
.rahi-product-button{padding:10px;margin-top:auto}.rahi-product-button .button{width:100%;text-align:center;background-color:var(--primary-color)!important;color:#fff!important;border-radius:6px!important;padding:8px!important;font-size:14px!important;border:none!important}
.rahi-product-button .added_to_cart{display:none!important}
.rahi-product-button .button.loading{opacity:.5}

/* --- NEW: WHATSAPP BUTTON LOOK FIX (RED) --- */
.rahi-whatsapp-btn {
    border: none !important;
    text-shadow: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    transition: background-color 0.2s ease;
}

/* Icon styling (now hidden) */
.rahi-whatsapp-icon-inline {
    display: none !important;
}

/* Modal Button (Full width button in single product modal) */
.rahi-single-add-to-cart-section .rahi-whatsapp-btn {
    padding: 12px 0 !important; 
    font-size: 16px !important;
}

/* Grid Button (Smaller button in product card) */
.rahi-product-button .rahi-whatsapp-btn {
    padding: 6px 10px !important;
    font-size: 13px !important;
    display: flex; 
    justify-content: center; 
    align-items: center;
}
/* --- END WHATSAPP BUTTON LOOK FIX --- */

/* --- MODAL STYLING (SAME AS BEFORE) --- */
.rahi-modal-wrapper{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color:rgba(0,0,0,0.5);
    z-index:10000; 
    display:flex;
    align-items:flex-end;
    visibility:hidden;
    opacity:0;
    transition:all .3s
}
.rahi-modal-wrapper.active{visibility:visible;opacity:1}
.rahi-modal-content{
    background-color:#fff;
    width:100%;
    max-height: calc(100vh - 10px); 
    border-radius:16px 16px 0 0;
    display:flex;
    flex-direction:column;
    transform:translateY(100%);
    transition:transform .3s ease-out;
    z-index: 1000; 
}
#rahi-single-product-modal .rahi-modal-content{max-height:95%;} 
.rahi-modal-wrapper.active .rahi-modal-content{transform:translateY(0)}
.rahi-modal-header{padding:15px;border-bottom:1px solid var(--border-color);display:flex;justify-content:space-between;align-items:center}.rahi-modal-header h3{margin:0;font-size:18px}.rahi-close-btn{border:none;background:none;font-size:24px;cursor:pointer}
.rahi-modal-body{
    padding:15px;
    overflow-y:auto;
    color:var(--text-color);
    flex-grow: 1; 
}
@media (max-width: 768px) {
    #rahi-filter-modal .rahi-modal-body, 
    #rahi-sort-modal .rahi-modal-body, 
    #rahi-quick-view-modal .rahi-modal-body, 
    #rahi-single-product-modal .rahi-modal-body {
        padding-bottom: 15px !important; 
    }
}

/* --- FILTER MODAL STYLING FIXES --- */
.rahi-filter-tabbed-body {
    display: flex;
    height: 100%;
    padding: 0!important; 
}
.rahi-filter-tabs-nav {
    width: 120px; /* FIX: Increased width for better text visibility */
    background-color: #f7f8fa;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
    padding: 0;
}
.rahi-filter-tab-btn {
    display: block;
    width: 100%;
    padding: 15px 10px;
    text-align: left;
    border: none;
    background: none;
    font-size: 14px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    color: var(--text-color);
    font-weight: 500;
}
.rahi-filter-tab-btn.active {
    background-color: #fff;
    border-left-color: var(--primary-color);
    font-weight: 600;
    color: var(--primary-color);
}
.rahi-filter-tabs-content {
    flex-grow: 1;
    padding: 0 15px;
    overflow-y: auto;
    /* ✅ FINAL FIX: Add bottom padding to prevent content being hidden by fixed footer button */
    padding-bottom: 100px; 
}

/* Media query to ensure extra padding on mobile screens only */
@media (max-width: 768px) {
    .rahi-filter-tabs-content {
        /* FIX: 65px (footer height) + 15px (padding) + extra safety margin */
        padding-bottom: 120px; 
    }
}
/* END Filter Tabs Content Padding Fix */

.rahi-filter-tab-pane {
    display: none;
}
.rahi-filter-tab-pane.active {
    display: block;
}

.rahi-filter-group {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.rahi-filter-group:last-child {
    border-bottom: none;
}
.rahi-filter-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}
.rahi-filter-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color); 
}
.rahi-modal-footer {
    position: fixed; 
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001; 
    background-color: #fff;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); 
}
.rahi-apply-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
/* --- END FILTER MODAL STYLING FIXES --- */

.rahi-sort-options li{padding:12px 0;border-bottom:1px solid #f0f0f0;cursor:pointer}.rahi-sort-options li.active{font-weight:bold;color:var(--primary-color)}
.rahi-quick-view-title{padding:0 15px;margin-top:0}
.rahi-variations-list{list-style:none;padding:0;margin:0}.rahi-variation-item{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid var(--border-color)}
.rahi-variation-details{display:flex;flex-direction:column}.rahi-variation-name{font-weight:500}.rahi-variation-price{font-size:14px;color:#555}
.rahi-variation-add-btn{border:1px solid var(--primary-color);color:var(--primary-color);background-color:#fff;font-weight:bold;padding:8px 25px;border-radius:6px;cursor:pointer;white-space:nowrap;}

/* REMOVED QUANTITY SELECTOR STYLING */
.rahi-quantity-selector {
    background-color:#d7ede7!important;
    color:var(--primary-color)!important;
    border:1px solid var(--primary-color)!important;
    border-radius:6px!important;
    font-weight: 600;
    padding: 8px 10px;
    height: 40px;
    box-sizing: border-box;
    cursor: default;
    width: 100%; 
    display: flex;
    justify-content: center;
    align-items: center;
}
.rahi-quantity-selector .rahi-quantity-btn,
.rahi-quantity-selector .rahi-quantity-value {
    display: none !important; 
}
.rahi-quantity-selector::after {
    content: none !important; 
}

/* FLOATING CART BUTTON STYLING FIX (PC only) - REMOVED */
#rahi-view-cart-button{
    display:none!important;
    opacity:0;
    visibility:hidden;
}

/* --- SINGLE PRODUCT WIDGET STYLING --- */
.rahi-single-product-widget-wrapper {
    padding-bottom: 20px;
}
.rahi-single-gallery-container { 
    padding: 0; 
    position: relative; 
}

/* --- FINAL SLIDER CSS FIX --- */
.rahi-single-gallery-slider {
    display: flex;
    overflow-x: scroll; 
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch; 
    padding-bottom: 5px; 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}
.rahi-single-gallery-slider::-webkit-scrollbar {
    display: none; 
}

.rahi-slide-item {
    flex-shrink: 0 !important; 
    width: 100% !important; 
    scroll-snap-align: start; 
    text-align: center;
    padding: 10px 15px; 
    box-sizing: border-box;
}
.rahi-slide-item img { 
    max-height: 400px; 
    width: auto; 
    max-width: 100%;
    object-fit: contain; 
}
/* --- END FINAL SLIDER CSS FIX --- */


.rahi-main-image { 
    margin-bottom: 0; 
}

/* Pagination Dots Styling (SAME AS BEFORE) */
.rahi-gallery-pagination {
    text-align: center;
    margin-top: 5px;
    padding-bottom: 15px;
}
.rahi-gallery-pagination .dot {
    height: 8px;
    width: 8px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}
.rahi-gallery-pagination .dot.active {
    background-color: var(--primary-color);
}


.rahi-single-header-details { padding: 0 15px 15px 15px; border-bottom: 1px solid var(--border-color); }
.rahi-single-title { font-size: 24px; margin: 0 0 5px 0; } 
.rahi-single-price { font-size: 28px; font-weight: 700; color: #000; margin: 0 0 5px 0; } 
.rahi-single-categories { font-size: 13px; color: #777; padding: 15px; }
.rahi-single-add-to-cart-section { padding: 15px; border-bottom: 1px solid var(--border-color); }
.rahi-single-add-to-cart-section .cart { display: flex; flex-direction: column; gap: 10px; }
.rahi-single-add-to-cart-section .quantity { display: none !important; }
.rahi-single-add-to-cart-section .button { width: 100%; }

/* Accordion Styling (SAME AS BEFORE) */
.rahi-single-accordion { border: 1px solid var(--border-color); border-radius: 8px; margin: 15px; overflow: hidden; }
.rahi-accordion-header { padding: 15px; background-color: #f9f9f9; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.rahi-accordion-header::after { content: '\25BC'; font-size: 10px; transition: transform 0.3s; }
.rahi-accordion-header.active::after { transform: rotate(-180deg); }
.rahi-accordion-content { padding: 15px; border-top: 1px solid var(--border-color); line-height: 1.6; font-size: 14px; }

/* Related Products Grid Fix (Single Product Widget ke andar) */
.rahi-related-products-section { padding: 0 15px; margin-top: 20px; }
.rahi-related-products-section h3 { font-size: 18px; margin-bottom: 15px; }

/* Mobile Default: 2 Columns (correct) */
.rahi-related-products-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
}

/* TABLET FIX (768px and up): 3 Columns */
@media (min-width: 768px) {
    .rahi-related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* PC/DESKTOP FIX (1200px and up): 4 Columns */
@media (min-width: 1200px) {
    .rahi-related-products-grid { 
        grid-template-columns: repeat(4, 1fr); 
    }
}


/* --- Sticky Footer Navigation (REMOVED) --- */
.rahi-footer-nav {
    display: none !important; 
}
/* --- FINAL FIX FOR FOOTER AND CART BUTTON (Mobile/Tablet vs PC) --- */
@media (max-width: 1199px) { 
    body {
        padding-bottom: 0 !important;
    }
}
@media (min-width: 1200px) {
    body {
        padding-bottom: 0 !important;
    }
}