/* ==========================================
   1. Core Variables & Global Theme Styles
   ========================================== */
:root {
    /* Dynamic Theme Colors (Can be overridden from blade layout) */
    --wv-primary: #ff3366;
    --wv-primary-hover: #e02453;
    --wv-dark-bg: #0f172a;
    --wv-body-bg: #f8f9fa;
    --wv-border: #eeeeee;
    --wv-text: #2c3e50;
    --wv-muted: #7f8c8d;

    /* Global Shadows & Transitions */
    --wv-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --wv-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --wv-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    background-color: var(--wv-body-bg);
    color: var(--wv-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================
   2. Header & Topbar Styles
   ========================================== */
.wv-topbar {
    background-color: var(--wv-dark-bg);
    color: #94a3b8;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1060;
}

.wv-topbar a,
.wv-topbar-left a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: var(--wv-transition);
}

.wv-topbar a:hover,
.wv-topbar-left a:hover {
    color: var(--wv-primary);
}

.wv-login-btn {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 14px;
    border-radius: 20px;
    transition: var(--wv-transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wv-login-btn:hover {
    background: var(--wv-primary);
    color: #ffffff !important;
    border-color: var(--wv-primary);
}

.wv-topbar .dropdown-menu {
    border: none;
    border-radius: 10px;
    padding: 8px 0;
    margin-top: 8px !important;
    min-width: 190px;
    z-index: 2000 !important;
}

.wv-topbar .dropdown-item {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    padding: 8px 16px;
    transition: all 0.15s ease;
}

.wv-topbar .dropdown-item:hover {
    background-color: #f8fafc;
    color: var(--wv-primary);
}

.wv-topbar .dropdown-item.text-danger:hover {
    background-color: #fef2f2;
    color: #dc2626 !important;
}

/* ==========================================
   3. Main Header & Navigation
   ========================================== */
.wv-main-header {
    background: #ffffff;
    border-bottom: 1px solid var(--wv-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.wv-logo img {
    height: 45px;
    object-fit: contain;
    padding: 0;
}

.wv-action-item {
    display: flex;
    align-items: center;
    color: var(--wv-text);
    text-decoration: none;
    transition: var(--wv-transition);
}

.wv-action-item:hover {
    color: var(--wv-primary);
}

.wv-action-item .icon-box {
    position: relative;
    font-size: 20px;
}

.wv-action-item .count-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--wv-primary);
    color: #ffffff;
    font-size: 10px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.wv-cart-wrapper {
    position: relative;
}

.wv-mini-cart-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 310px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 18px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--wv-transition);
    border: 1px solid var(--wv-border);
}

.wv-cart-wrapper:hover .wv-mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    top: 100%;
}

.wv-mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 0;
    border-top: 2px dashed #eeeeee;
}

.wv-mini-cart-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.wv-btn-view-cart,
.wv-btn-checkout {
    flex: 1;
    text-align: center;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--wv-transition);
}

.wv-btn-view-cart {
    background: var(--wv-primary);
    color: #ffffff;
}

.wv-btn-view-cart:hover {
    background: var(--wv-primary-hover);
}

.wv-btn-checkout {
    background: #222222;
    color: #ffffff;
}

.wv-navbar {
    background: #ffffff;
    border-top: 1px solid var(--wv-border);
    padding: 0;
}

.wv-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
}

.wv-nav-menu>li {
    position: relative;
    padding: 12px 0;
}

.wv-nav-menu>li>a {
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--wv-transition);
}

.wv-nav-menu>li>a:hover {
    color: var(--wv-primary);
}

/* ==========================================
   4. Search Box Styles
   ========================================== */
.max-w-600 {
    max-width: 600px;
}

.bg-main {
    background-color: var(--wv-primary) !important;
}

.border-danger {
    border-color: var(--wv-primary) !important;
}

.search-input-group {
    border-radius: 6px;
    overflow: hidden;
}

.search-input-group .form-control {
    height: 42px;
    font-size: 14px;
}

.btn-search-custom {
    background-color: var(--wv-primary);
    color: #ffffff;
    border: none;
    transition: var(--wv-transition);
}

.btn-search-custom:hover {
    background-color: var(--wv-primary-hover);
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    border: 1px solid #e0e0e0;
    border-top: none;
    max-height: 380px;
    overflow-y: auto;
    background: #ffffff;
}

/* ==========================================
   5. Hero Slider Section
   ========================================== */
.wv-hero-slider {
    position: relative;
    padding: 0;
}

.wv-hero-slider img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (min-width: 576px) {
    .wv-hero-slider img {
        height: 250px;
    }
}

.wv-hero-slider .owl-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
}

.wv-hero-slider .owl-dot span {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-block;
}

.wv-hero-slider .owl-dot.active span {
    background: #ffffff;
}

.wv-hero-slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
}

.wv-hero-slider .owl-nav button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 24px !important;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    padding: 5px 10px;
    border-radius: 50%;
    transition: var(--wv-transition);
}

.wv-hero-slider .owl-nav button:hover {
    background: rgba(0, 0, 0, 0.6) !important;
}

.wv-hero-slider .owl-nav .owl-prev {
    position: absolute;
    left: 10px;
}

.wv-hero-slider .owl-nav .owl-next {
    position: absolute;
    right: 10px;
}

/* ==========================================
   6. Category Circular Cards
   ========================================== */
.circle-img-wrapper {
    width: 110px;
    height: 110px;
    transition: var(--wv-transition);
    border: 2px solid #ffffff;
    box-shadow: var(--wv-shadow-sm);
    border-radius: 50%;
}

.circle-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    border-radius: 50%;
}

.wv-category-card:hover .circle-img-wrapper {
    border-color: var(--wv-primary) !important;
    box-shadow: 0 8px 20px rgba(255, 51, 102, 0.2);
    transform: translateY(-4px);
}

.wv-category-card:hover .circle-img-wrapper img {
    transform: scale(1.08);
}

.wv-category-card:hover .category-name {
    color: var(--wv-primary) !important;
}

/* ==========================================
   7. Banners Section & Accents
   ========================================== */
.promo-banner {
    transition: var(--wv-transition);
    background-color: #f1f3f5 !important;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.promo-banner:hover {
    transform: translateY(-4px);
    box-shadow: var(--wv-shadow-lg);
}

.main-banner {
    min-height: 400px;
}

.main-banner .banner-content {
    max-width: 65%;
}

.main-banner-img-wrapper img {
    object-fit: cover;
    object-position: center right;
    transition: transform 0.5s ease;
}

.main-banner:hover .main-banner-img-wrapper img {
    transform: scale(1.04);
}

.mini-banner {
    min-height: 190px;
}

.mini-banner .banner-content {
    max-width: 60%;
}

.mini-banner-img-wrapper img {
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.mini-banner:hover .mini-banner-img-wrapper img {
    transform: scale(1.06);
}

.explore-link {
    position: relative;
    padding-bottom: 2px;
}

.explore-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--wv-text);
    transition: var(--wv-transition);
}

.promo-banner:hover .explore-link {
    color: var(--wv-primary) !important;
}

.promo-banner:hover .explore-link::after {
    background-color: var(--wv-primary);
}

.heading-accent {
    width: 4px;
    height: 22px;
    background: var(--wv-primary);
    display: inline-block;
    border-radius: 2px;
}

/* ==========================================
   8. Product Card Styles (UNIFIED - NO DUPLICATES)
   ========================================== */
.wv-product-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #eef2f5;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wv-product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.wv-card-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    background: #f9fafb;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wv-card-thumb .product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.wv-product-card:hover .product-img {
    transform: scale(1.05);
}

.wv-badge {
    position: absolute;
    top: 10px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    z-index: 5;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.wv-badge-sale {
    left: 10px;
    background: var(--wv-primary);
    color: #ffffff;
}

.wv-badge-stock {
    right: 10px;
    background: #333333;
    color: #ffffff;
}

.hover-action-icons {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 6;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(15px);
}

.wv-product-card:hover .hover-action-icons {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.action-btn-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.action-btn-wrapper .action-btn {
    width: 36px;
    height: 36px;
    background: #ffffff;
    color: #444444;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.85rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    border: none;
}

.action-btn-wrapper .btn-tooltip {
    position: absolute;
    right: 46px;
    background: var(--wv-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.action-btn-wrapper .btn-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--wv-primary);
}

.action-btn-wrapper:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
}

.action-btn-wrapper:hover .action-btn {
    background-color: var(--wv-primary);
    color: #ffffff !important;
}

.bottom-cart-btn-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #ffffff;
}

.wv-product-card:hover .bottom-cart-btn-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-add-cart-full {
    display: block;
    width: 100%;
    text-align: center;
    border: none;
    padding: 10px 0;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    background: #ffffff;
    color: #222222;
}

.btn-add-cart-full:hover {
    background-color: var(--wv-primary);
    color: #ffffff !important;
}

.btn-add-cart,
.btn-read-more {
    background: #ffffff;
    color: #222222;
}

.btn-add-cart:hover,
.btn-read-more:hover {
    background-color: var(--wv-primary);
    color: #ffffff !important;
}

.product-title {
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.wv-product-card:hover .product-title {
    color: var(--wv-primary) !important;
}

/* ==========================================
   9. Product Gallery & Detail Page
   ========================================== */
.vertical-thumbs-container {
    max-height: 420px;
    overflow-y: auto;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: none;
}

.vertical-thumbs-container::-webkit-scrollbar {
    display: none;
}

.vertical-thumb-wrapper {
    width: 80px;
}

.thumb-box {
    width: 76px;
    height: 76px;
    border: 2px solid #eef2f6;
    border-radius: 12px;
    padding: 4px;
    cursor: pointer;
    background-color: #ffffff;
    transition: var(--wv-transition);
    flex-shrink: 0;
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.thumb-box.active-thumb,
.thumb-box:hover {
    border-color: var(--wv-primary) !important;
    box-shadow: 0 6px 16px rgba(255, 51, 102, 0.18);
    transform: translateY(-2px);
}

.thumb-nav-btn {
    border: 1px solid #e9ecef;
    background: #ffffff;
    color: #495057;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--wv-transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.thumb-nav-btn:hover {
    background: var(--wv-primary);
    color: #ffffff;
    border-color: var(--wv-primary);
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.25);
}

.main-image-wrapper {
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #f1f3f5;
    transition: var(--wv-transition);
}

.main-display-img {
    max-height: 390px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.2s ease;
}

.main-image-wrapper:hover .main-display-img {
    transform: scale(1.05);
}

.product-info-tabs .nav-tabs {
    border-bottom: 2px solid #eef2f6;
}

.product-info-tabs .nav-link {
    color: var(--wv-muted);
    border: none !important;
    border-bottom: 3px solid transparent !important;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--wv-transition);
}

.product-info-tabs .nav-link.active {
    color: var(--wv-primary) !important;
    border-bottom: 3px solid var(--wv-primary) !important;
    background: transparent !important;
}

.glass-badge {
    background: rgba(220, 53, 69, 0.9);
    backdrop-filter: blur(8px);
}

.qty-counter {
    border: 1px solid #dee2e6;
    transition: border-color 0.2s ease;
}

.qty-counter:focus-within {
    border-color: var(--wv-primary);
}

/* ==========================================
   10. Brands & Other Sections
   ========================================== */
.wv-brand-box {
    border: 1px solid var(--wv-border);
    padding: 15px;
    background: #ffffff;
    border-radius: 6px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--wv-transition);
}

.wv-brand-box:hover {
    border-color: var(--wv-primary);
    box-shadow: var(--wv-shadow-sm);
}

.wv-brand-box img {
    max-height: 45px;
    width: auto;
    filter: grayscale(100%);
    transition: var(--wv-transition);
}

.wv-brand-box:hover img {
    filter: grayscale(0%);
}

.feature-icon {
    font-size: 32px;
    color: var(--wv-primary);
}

.floating-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1040;
    width: 90%;
    max-width: 420px;
}

.floating-cart-inner {
    background: var(--wv-dark-bg);
    color: #ffffff;
    border-radius: 40px;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hidden {
    display: none !important;
}

/* ==========================================
   11. Footer Section
   ========================================== */
.footer-section {
    background-color: #ffffff !important;
    font-family: inherit;
    color: var(--wv-muted);
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: #222222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--wv-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--wv-transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--wv-primary);
    transform: translateX(3px);
}

.footer-contact-item {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact-item i {
    color: var(--wv-primary);
    margin-top: 3px;
}

.newsletter-input {
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 10px 14px;
    font-size: 14px;
}

.newsletter-input:focus {
    box-shadow: none;
    border-color: var(--wv-primary);
}

.newsletter-btn {
    background-color: var(--wv-primary);
    color: #ffffff;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--wv-transition);
}

.newsletter-btn:hover {
    background-color: var(--wv-primary-hover);
    color: #ffffff;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f1f1f1;
    color: #555555;
    margin-right: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: var(--wv-transition);
}

.social-links a:hover {
    background-color: var(--wv-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    margin-top: 35px;
    font-size: 13px;
}

.brand-highlight {
    color: var(--wv-primary);
    font-weight: 600;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    background-color: var(--wv-primary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--wv-transition);
}

.back-to-top:hover {
    background-color: #222222;
    color: #ffffff;
}



/* ==========================================
   Desktop & Laptop Hover Effects
   ========================================== */
@media (min-width: 768px) {
    .wv-card-thumb {
        position: relative;
        overflow: hidden;
    }

    .bottom-cart-btn-wrapper {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        transform: translateY(100%);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 2;
    }

    .wv-product-card:hover .bottom-cart-btn-wrapper {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Breadcrumb */
.shop-breadcrumb {
    background: #f8f9fa;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--wv-border);
}

.shop-breadcrumb a {
    color: var(--wv-gray);
    text-decoration: none;
}

.shop-breadcrumb a:hover {
    color: var(--wv-primary);
}

/* Sidebar Widgets */
.shop-sidebar {
    background: #fff;
}

.widget-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--wv-border);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: var(--wv-primary);
}

/* Category List Widget */
.sidebar-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-cat-list li {
    margin-bottom: 8px;
}

.sidebar-cat-list li a {
    color: #444;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--wv-transition);
    cursor: pointer;
}

.sidebar-cat-list li a:hover,
.sidebar-cat-list li.active>a {
    color: var(--wv-primary);
    font-weight: 600;
    padding-left: 5px;
}

.sidebar-cat-list .sub-menu {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
    display: none;
}

.sidebar-cat-list li.active .sub-menu {
    display: block;
}

/* Price Range Slider */
.price-range-slider {
    position: relative;
    width: 100%;
    height: 5px;
    background: #e4e4e4;
    border-radius: 5px;
}

.price-range-slider .range-track {
    height: 100%;
    position: absolute;
    background: var(--wv-primary);
    border-radius: 5px;
}

.price-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 5px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    top: 0;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--wv-primary);
    pointer-events: auto;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.filter_price {
    background: #ff3366;
    color: #ffffff;
    transition: all 0.3s ease;
}

.filter_price:hover {
    background: #ffffff;
    color: #000000;
    border-color: green;
}

/* Top Toolbar */
.shop-toolbar {
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--wv-border);
    margin-bottom: 20px;
}

/* Scrollable Container */
.sidebar-cat-wrapper {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Smooth Scrollbar */
.sidebar-cat-wrapper::-webkit-scrollbar {
    width: 4px;
}

.sidebar-cat-wrapper::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.sidebar-cat-wrapper::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Search Input Style */
.category-search-box input {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    padding: 6px 10px;
}

/* Loader */
.product-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.product-loader.active {
    opacity: 1;
    pointer-events: auto;
}

/* Desktop / Mobile Toggle Rules */
.desktop-sidebar {
    display: block;
}

.filter-btn-mobile {
    display: none;
}

/* MOBILE RESPONSIVE MEDIA QUERIES */
@media (max-width: 991.98px) {
    .desktop-sidebar {
        display: none;
    }

    .filter-btn-mobile {
        display: inline-flex;
        align-items: center;
    }
}


/* ==========================================
   Mobile Responsive Styles (Fixed Height & Layout)
   ========================================== */
@media (max-width: 767.98px) {
    .wv-main-header {
        padding: 6px 0;
    }

    .search-box-wrapper.d-none-mobile {
        display: none !important;
    }

    .wv-logo img {
        height: 38px;
    }

    /* Product Card Base Layout */
    .wv-product-card {
        padding: 8px;
        display: flex !important;
        flex-direction: column !important;
        height: 100%;
    }

    /* Thumbnail Container (Height fixed & relative position for image overlap) */
    .wv-card-thumb {
        height: auto !important;
        /* ফিক্সড হাইট তুলে দেওয়া হলো */
        position: relative;
        overflow: hidden !important;
        display: block !important;
    }

    .wv-card-thumb>a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 110px;
        /* ইমেজের জন্য পারফেক্ট হাইট */
        width: 100%;
    }

    .wv-card-thumb .product-img {
        max-width: 100%;
        max-height: 100px;
        /* ছবি ছোট করে স্পেস ঠিক রাখা */
        object-fit: contain;
    }

    /* Floating Action Icons (Mobile) */
    .hover-action-icons {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        top: 6px;
        right: 6px;
        gap: 4px;
        z-index: 3;
    }

    .hover-action-icons .action-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .action-btn-wrapper .btn-tooltip {
        display: none !important;
    }

    /* Product Info Details Container */
    .wv-card-details {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-grow: 1;
        margin-top: 6px;
    }

    /* Bottom Add-to-Cart Button (Card Bottom Position) */
    .bottom-cart-btn-wrapper {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        margin-top: 8px;
        width: 100%;
    }

    .btn-add-cart-full {
        width: 100%;
        display: block;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0;
        font-size: 11px;
        background: var(--wv-primary);
        color: #ffffff !important;
        line-height: 1.2;
    }

    /* Title & Pricing layout tuning */
    .product-title {
        font-size: 12px;
        line-height: 1.3;
        margin-top: 4px;
        margin-bottom: 2px;
    }

    .small,
    small {
        font-size: 0.700em;
    }

    /* Gallery & Floating Elements */
    .product-gallery-layout {
        flex-direction: column-reverse;
    }

    .vertical-thumb-wrapper {
        width: 100%;
    }

    .vertical-thumbs-container {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .thumb-nav-btn {
        display: none !important;
    }

    .main-image-wrapper {
        min-height: 320px;
    }

    .main-display-img {
        max-height: 290px;
    }

    .back-to-top {
        bottom: 80px;
    }
}




/* ==========================================
           Shop Page Mobile Responsive CSS
           ========================================== */

@media (max-width: 991.98px) {
    .desktop-sidebar {
        display: none !important;
    }

    .filter-btn-mobile {
        display: inline-flex !important;
        align-items: center;
    }
}

@media (max-width: 767.98px) {

    /* Toolbar Optimization */
    .shop-toolbar {
        padding: 10px;
        gap: 10px !important;
    }

    .shop-toolbar select {
        font-size: 12px;
        padding: 4px 24px 4px 8px;
    }

    /* Product Card Base Layout */
    .wv-product-card {
        padding: 10px;
        border-radius: 10px;
        display: flex !important;
        flex-direction: column !important;
        height: 100%;
        position: relative;
        background: #ffffff;
        border: 1px solid #e2e8f0;
    }

    /* Thumbnail Section Fix */
    .wv-card-thumb {
        position: relative;
        height: 120px !important;
        width: 100%;
        overflow: hidden !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background-color: #f8fafc;
        border-radius: 6px;
    }

    .wv-card-thumb>a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 4px;
    }

    .wv-card-thumb .product-img {
        max-width: 100%;
        max-height: 110px;
        object-fit: contain;
    }

    /* Badges Style for Mobile */
    .wv-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
        z-index: 2;
    }

    /* Product Details Layout */
    .wv-card-details {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-grow: 1;
        padding-top: 8px !important;
    }

    .product-title {
        font-size: 13px !important;
        line-height: 1.3;
        margin-top: 2px;
        margin-bottom: 4px;
        height: auto !important;
        white-space: normal !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .current-price {
        font-size: 14px !important;
    }

    .old-price {
        font-size: 11px !important;
    }

    /* Add To Cart Button Display Fix (Always Visible on Mobile) */
    .bottom-cart-btn-wrapper {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        margin-top: 10px !important;
        width: 100% !important;
        z-index: 1;
    }

    .btn-add-cart-full {
        width: 100% !important;
        display: block !important;
        text-align: center;
        border-radius: 6px;
        padding: 7px 0 !important;
        font-size: 12px !important;
        font-weight: 600;
        background: #e2e8f0;
        color: #0f172a !important;
        border: none;
        text-decoration: none !important;
        transition: all 0.2s ease-in-out;
    }

    .btn-add-cart-full:active,
    .btn-add-cart-full:focus {
        background: #0d6efd !important;
        color: #ffffff !important;
    }
}

@media (max-width: 480px) {
    .row.g-3 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }
}