/* ===== ENTERPRISE DESIGN SYSTEM ===== */
:root {
    /* Primary Colors */
    --primary-50: #f0f7e6;
    --primary-100: #e1efcd;
    --primary-200: #c3df9b;
    --primary-300: #a5cf69;
    --primary-400: #87bf37;
    --primary-500: #5fa30f;
    --primary-600: #4f8a0d;
    --primary-700: #3f6a0a;
    --primary-800: #2f4f08;
    --primary-900: #1f3505;
    
    /* Neutral Colors */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #eeeeee;
    --neutral-300: #e0e0e0;
    --neutral-400: #bdbdbd;
    --neutral-500: #9e9e9e;
    --neutral-600: #757575;
    --neutral-700: #616161;
    --neutral-800: #424242;
    --neutral-900: #212121;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.02);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.04), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.04), 0 4px 6px -2px rgba(0,0,0,0.02);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.04), 0 10px 10px -5px rgba(0,0,0,0.02);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --header-height: 75px;
    --container-max-width: 1400px;
    --sidebar-width: 280px;
    --sidebar-bg: #ffffff;
    --sidebar-header-bg: #5fa30f;
    --sidebar-header-text: #ffffff;
    --sidebar-item-hover: #f0f7e6;
    --sidebar-border: #e5e5e5;
    --sidebar-shadow: 0 5px 20px rgba(0,0,0,0.08);

    /* Cart */
    --cart-accent: #5fa30f;
    --cart-accent-dark: #4c850c;
    --cart-bg: #ffffff;
    --cart-text: #ffffff;
    --cart-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    --cart-shadow-hover: 0 14px 32px rgba(95, 163, 15, 0.25);
    --cart-radius: 50px;
    --cart-height: 44px;
}
/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--neutral-900);
    line-height: 1.5;
    background: var(--neutral-50);
    overflow-x: hidden;
    padding-top: var(--header-height);
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .container {
        padding: 0 16px;
    }
}


/* Product card */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Badge */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.badge--offer {
    background: #5fa30f;
    color: white;
    box-shadow: 0 2px 6px rgba(95, 163, 15, 0.2);
}

/* Image Wrapper */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #fafafa;
    aspect-ratio: 1/1;
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.5s ease;
    padding: 16px;
}

.product-image--primary {
    opacity: 1;
}

.product-image--secondary {
    opacity: 0;
}

.product-card:hover .product-image--primary {
    opacity: 0;
}

.product-card:hover .product-image--secondary {
    opacity: 1;
    transform: scale(1.05);
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #424242;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    padding: 0;
}

.wishlist-btn:hover {
    background: #5fa30f;
    color: white;
    transform: scale(1.1);
}

/* Cart Icon Button */
.cart-icon-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5fa30f;
    font-size: 25px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 5;
    padding: 0;
}

.cart-icon-btn:hover {
    background: #5fa30f;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(95, 163, 15, 0.2);
}

/* Product info section - fixed height */
.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    min-height: 200px;
}

/* Brand */
.product-brand {
    font-size: 12px;
    margin-bottom: 6px;
    height: 18px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-brand a {
    color: #9e9e9e;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-brand a:hover {
    color: #5fa30f;
}

/* Product title - fixed height for 2 lines */
.product-title {
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 8px;
    font-weight: 500;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #212121;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.product-title a:hover {
    color: #5fa30f;
}

.product-unit {
    color: #9e9e9e;
    font-size: 12px;
    font-weight: 400;
    margin-left: 4px;
    white-space: nowrap;
}

/* Rating section - fixed height */
.product-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 8px 0 12px;
    height: 24px;
    overflow: hidden;
}

.rating-stars {
    display: flex;
    align-items: center;
}

.rating-stars i {
    color: #fbbf24;
    font-size: 12px;
    margin-right: 2px;
}

.rating-value {
    font-weight: 600;
    color: #212121;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    white-space: nowrap;
}

.rating-count {
    color: #9e9e9e;
    font-size: 11px;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Price row - fixed height */
.price-row {
    margin-bottom: 12px;
    height: 60px;
    overflow: hidden;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #212121;
    white-space: nowrap;
}

.old-price {
    font-size: 14px;
    color: #9e9e9e;
    text-decoration: line-through;
    white-space: nowrap;
}

.discount-badge {
    background: #5fa30f;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    line-height: 1.4;
    white-space: nowrap;
}

.save-amount {
    font-size: 12px;
    color: #5fa30f;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Buy button */
.buy-now-form {
    width: 100%;
    margin-top: auto;
}

.btn-buy {
    width: 100%;
    height: 44px;
    background: #212121;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-buy:hover {
    background: #5fa30f;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(95, 163, 15, 0.2);
}

/* Desktop - Large */
@media (min-width: 1200px) {
    #load_data, 
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* Desktop - Medium */
@media (min-width: 992px) and (max-width: 1199px) {
    #load_data, 
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    #load_data, 
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .product-info {
        min-height: 190px;
        padding: 14px;
    }
    
    .product-title {
        font-size: 14px;
        height: 40px;
    }
    
    .current-price {
        font-size: 17px;
    }
    
    .btn-buy {
        height: 42px;
        font-size: 13px;
    }
}

/* Mobile Landscape */
@media (min-width: 576px) and (max-width: 767px) {
    #load_data, 
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .product-info {
        min-height: 180px;
        padding: 12px;
    }
    
    .product-title {
        font-size: 13px;
        height: 38px;
    }
    
    .product-unit {
        font-size: 11px;
    }
    
    .product-rating {
        height: 22px;
    }
    
    .rating-stars i {
        font-size: 11px;
    }
    
    .rating-value,
    .rating-count {
        font-size: 10px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .old-price {
        font-size: 12px;
    }
    
    .price-row {
        height: 55px;
    }
    
    .btn-buy {
        height: 40px;
        font-size: 12px;
    }
    
    .cart-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .wishlist-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    #load_data, 
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-info {
        min-height: 170px;
        padding: 10px;
    }
    
    .product-title {
        font-size: 12px;
        height: 34px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .product-unit {
        font-size: 10px;
    }
    
    .product-rating {
        height: 20px;
        margin: 4px 0 8px;
    }
    
    .rating-stars i {
        font-size: 10px;
    }
    
    .rating-value,
    .rating-count {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .current-price {
        font-size: 15px;
    }
    
    .old-price {
        font-size: 11px;
    }
    
    .discount-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .save-amount {
        font-size: 10px;
    }
    
    .price-row {
        height: 50px;
        margin-bottom: 8px;
    }
    
    .btn-buy {
        height: 36px;
        font-size: 11px;
    }
    
    .cart-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        bottom: 8px;
        right: 8px;
    }
    
    .wishlist-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
        top: 8px;
        right: 8px;
    }
    
    .product-image {
        padding: 10px;
    }
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: white;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

/* ===== COMMON HEADER (CATEGORY + BRAND) ===== */
.category-header,
.brand-header {
    background: white;
    padding: 20px 0;
    margin: 0 0 20px;
    border-bottom: 2px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.category-header-content,
.brand-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.category-title-wrap,
.brand-title-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-title,
.brand-title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
    padding-left: 12px;
    border-left: 4px solid var(--primary-500);
    line-height: 1.2;
}

.category-breadcrumb,
.brand-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--neutral-500);
    font-size: 13px;
}

.category-breadcrumb a,
.brand-breadcrumb a {
    color: var(--primary-500);
    text-decoration: none;
    transition: var(--transition-fast);
}

.category-breadcrumb a:hover,
.brand-breadcrumb a:hover {
    color: var(--primary-600);
    text-decoration: underline;
}

.category-stats,
.brand-stats {
    background: var(--primary-500);
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* ===== BANNER ===== */
.category-banner,
.brand-banner {
    position: relative;
    width: 100%;
    max-height: 250px;
    overflow: hidden;
    background: var(--neutral-100);
    margin-bottom: 25px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
}

.category-banner img,
.brand-banner img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.category-banner:hover img,
.brand-banner:hover img {
    transform: scale(1.02);
}

.brand-slider img {
    max-height: 70px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

.brand-slider .item-image:hover img {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
}

/* ===== FILTER BUTTON ===== */
.filter-toggle {
    display: none;
    width: 100%;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    min-height: 48px;
}

/* ===== SIDEBAR ===== */
.bwp-sidebar {
    flex: 0 0 var(--sidebar-width);
    background: var(--sidebar-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--sidebar-shadow);
    position: sticky;
    top: calc(var(--header-height) + 20px);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

/* ===== WIDGET ===== */
.widget {
    padding: 18px;
    border-bottom: 1px solid var(--sidebar-border);
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    background: var(--sidebar-header-bg);
    margin: -18px -18px 15px;
    padding: 12px 18px;
}

/* ===== CATEGORY LIST ===== */
.product-categories {
    list-style: none;
    padding: 0;
}

.product-categories a {
    color: var(--neutral-700);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    background: transparent;
}

.product-categories a:hover {
    background: var(--sidebar-item-hover);
    padding-left: 15px;
}

/* ===== BRAND FILTER ===== */
.filter_brand_product {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.filter_brand_product a {
    padding: 6px 10px;
    border-radius: 20px;
    background: var(--neutral-100);
}

.filter_brand_product a:hover {
    background: var(--primary-500);
    color: white;
}

/* ===== PRICE FILTER ===== */
.price-range input[type="range"] {
    width: 100%;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
}

.content-shop {
    background: white;
    padding: 20px;
    border-radius: var(--radius-xl);
}

/* ===== PRODUCT GRID ===== */
#load_data {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    margin-bottom: 40px;
    padding: 0;
    width: 100%;
}

#load_data .product-grid__item {
    width: 100%;
    list-style: none;
}

@media (max-width: 1200px) {
    #load_data {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    #load_data {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    #load_data {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    #load_data {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #load_data {
        grid-template-columns: repeat(2, 1fr);
    }

    .bwp-sidebar {
        position: fixed;
        top: -100%;
        width: 100%;
    }

    .bwp-sidebar.active {
        padding-top:130px;
        top: 0;
    }

    .filter-toggle {
        display: flex;
    }
}

/* ===== FILTER TOGGLE - MOBILE ===== */
.filter-toggle-wrap {
    margin-bottom: 15px;
}

.filter-toggle {
    display: none;
    width: 100%;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    min-height: 48px;
}

.filter-toggle:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-toggle i {
    font-size: 16px;
}

.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-overlay.active {
    opacity: 1;
}

@media (max-width: 767px) {
    .filter-toggle {
        display: flex;
    }
    
    .filter-overlay.active {
        display: block;
    }
}

/* ===== LAYOUT ===== */
.main-archive {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

/* ===== SIDEBAR ===== */
.bwp-sidebar {
    flex: 0 0 var(--sidebar-width);
    background: var(--sidebar-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--sidebar-shadow);
    transition: all 0.3s ease;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 20px);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-500) var(--sidebar-border);
}

.bwp-sidebar::-webkit-scrollbar {
    width: 6px;
}

.bwp-sidebar::-webkit-scrollbar-track {
    background: var(--sidebar-border);
    border-radius: 10px;
}

.bwp-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-500);
    border-radius: 10px;
}

.bwp-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-600);
}

/* Widget Container */
.widget {
    padding: 18px;
    border-bottom: 1px solid var(--sidebar-border);
    transition: all 0.3s ease;
}

.widget:last-child {
    border-bottom: none;
}

/* Widget Header */
.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--sidebar-header-text);
    background: var(--sidebar-header-bg);
    margin: -18px -18px 15px -18px;
    padding: 12px 18px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

/* ===== CATEGORIES ===== */
.product-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-categories li {
    margin-bottom: 2px;
    position: relative;
}

.product-categories > li {
    border-bottom: 1px dashed var(--sidebar-border);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.product-categories > li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.product-categories a {
    color: var(--neutral-700);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    background: transparent;
}

.product-categories a:hover {
    color: var(--primary-500);
    background: var(--sidebar-item-hover);
    padding-left: 15px;
}

.product-categories a .cat-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-categories a .cat-count {
    background: var(--neutral-100);
    color: var(--neutral-600);
    padding: 2px 6px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    min-width: 30px;
    text-align: center;
}

/* Category with children */
.cat-parent {
    position: relative;
}

.cat-parent > a {
    font-weight: 600;
    color: var(--neutral-900);
    border-left: 3px solid transparent;
}

.cat-parent > a:hover {
    border-left-color: var(--primary-500);
}

.toggle-children {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-500);
    transition: var(--transition-fast);
    z-index: 5;
}

.toggle-children:hover {
    background: var(--sidebar-item-hover);
    color: var(--primary-500);
}

.toggle-children i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.cat-parent.active .toggle-children i {
    transform: rotate(180deg);
}

.children {
    list-style: none;
    padding-left: 15px;
    margin: 5px 0 5px 10px;
    border-left: 2px dashed var(--sidebar-border);
    display: none;
}

.cat-parent.active .children {
    display: block;
}

.children li {
    margin-bottom: 2px;
    position: relative;
}

.children a {
    font-size: 13px;
    padding: 6px 10px;
    color: var(--neutral-600);
}

.children a:hover {
    color: var(--primary-500);
    background: var(--sidebar-item-hover);
    padding-left: 15px;
}

.children a .cat-count {
    background: transparent;
    color: var(--neutral-500);
    font-size: 10px;
}

/* ===== BRANDS ===== */
.brand-search {
    margin-bottom: 15px;
}

.brand-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--sidebar-border);
    border-radius: 30px;
    font-size: 13px;
    transition: var(--transition-fast);
}

.brand-search input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(95, 163, 15, 0.1);
}

.filter_brand_product {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.filter_brand_product li {
    margin: 0;
}

.filter_brand_product a {
    color: var(--neutral-700);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 20px;
    background: var(--neutral-100);
    border: 1px solid var(--sidebar-border);
}

.filter_brand_product a:hover {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(95, 163, 15, 0.2);
}

.filter_brand_product a mark {
    background: transparent;
    color: inherit;
    font-size: 11px;
    margin-left: 4px;
    opacity: 0.8;
}

.filter_brand_product a:hover mark {
    color: white;
}

.filter_brand_product .active a {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
    font-weight: 500;
}

.view-all-brands {
    background: none;
    border: none;
    color: var(--primary-500);
    font-size: 12px;
    cursor: pointer;
    padding: 8px 0;
    width: 100%;
    text-align: center;
    transition: var(--transition-fast);
}

.view-all-brands:hover {
    color: var(--primary-600);
    text-decoration: underline;
}

/* ===== PRICE FILTER ===== */
.content-filter-price {
    padding: 5px 0;
}

.price-slider-container {
    padding: 10px 5px 20px;
}

.price-range {
    position: relative;
    height: 30px;
    margin: 20px 0;
}

.price-range input[type="range"] {
    position: absolute;
    width: 100%;
    height: 5px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-500);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.price-range input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    background: var(--primary-500);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.price-range .slider-track {
    position: absolute;
    height: 5px;
    background: var(--sidebar-border);
    width: 100%;
    border-radius: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.price-range .slider-range {
    position: absolute;
    height: 5px;
    background: var(--primary-500);
    border-radius: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.price-inputs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    background: var(--neutral-100);
    border-radius: 30px;
    padding: 8px 15px;
}

.price-input-group {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.price-input-group span {
    color: var(--neutral-500);
}

.price-input-group input {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid var(--sidebar-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-500);
    text-align: center;
    background: white;
}

.price-input-group input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 2px rgba(95, 163, 15, 0.1);
}

.price-separator {
    color: var(--neutral-500);
    font-size: 12px;
}

.price-filter-btn {
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.price-filter-btn:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 163, 15, 0.3);
}

.price-filter-btn i {
    font-size: 14px;
}

/* Active filters */
.active-filters {
    margin-top: 15px;
    padding: 10px;
    background: var(--neutral-100);
    border-radius: var(--radius-lg);
}

.active-filters-title {
    font-size: 12px;
    color: var(--neutral-500);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    background: white;
    border: 1px solid var(--primary-500);
    color: var(--primary-500);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background: var(--primary-500);
    color: white;
}

.filter-tag i {
    font-size: 10px;
}

.clear-all-filters {
    color: var(--neutral-500);
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 8px;
    display: inline-block;
}

.clear-all-filters:hover {
    color: var(--primary-500);
}

/* No results state */
.no-results {
    padding: 20px;
    text-align: center;
    color: var(--neutral-500);
    font-size: 13px;
}

.no-results i {
    font-size: 30px;
    color: var(--sidebar-border);
    margin-bottom: 10px;
    display: block;
}

/* ===== RESPONSIVE SIDEBAR ===== */
@media (max-width: 991px) {
    .main-archive {
        flex-direction: column;
    }
    
    .bwp-sidebar {
        position: static;
        max-height: none;
        margin-bottom: 30px;
        width: 100%;
    }
    
    .filter_brand_product {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 767px) {
    .bwp-sidebar {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        max-height: 85vh;
        z-index: 1050;
        overflow-y: auto;
        transition: top 0.3s ease;
        border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
        box-shadow: var(--shadow-2xl);
    }
    
    .bwp-sidebar.active {
        top: 0;
    }
    
    .close-filter {
        display: flex !important;
        position: sticky;
        top: 10px;
        right: 10px;
        margin-left: auto;
        width: 40px;
        height: 40px;
        background: white;
        border: 1px solid var(--neutral-200);
        border-radius: 50%;
        font-size: 20px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #dc3545;;
        transition: var(--transition-base);
        z-index: 1060;
        box-shadow: var(--shadow-sm);
    }
    
    .close-filter:hover {
        background: var(--primary-500);
        color: white;
        border-color: var(--primary-500);
        transform: rotate(90deg);
    }
    
    .filter_brand_product {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .widget-title {
        font-size: 15px;
        padding: 10px 15px;
    }
    
    .price-input-group input {
        width: 60px;
    }
}

@media (min-width: 768px) {
    .close-filter {
        display: none !important;
    }
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
}

.content-shop {
    background: white;
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

/* ===== TOOLBAR ===== */
.bwp-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--neutral-200);
}

.woocommerce-result-count {
    color: var(--neutral-600);
    font-size: 13px;
}

.woocommerce-ordering {
    position: relative;
}

.pwb-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: var(--neutral-100);
    border: 1px solid var(--neutral-300);
    padding: 8px 30px 8px 12px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 13px;
    min-width: 180px;
    text-align: left;
    position: relative;
}

.dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-500);
    transition: var(--transition-fast);
}

.pwb-dropdown:hover .dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 8px 0;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    margin-top: 8px;
}

.pwb-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 6px 15px;
    color: var(--neutral-700);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--primary-50);
    color: var(--primary-600);
}

.dropdown-menu .active a {
    background: var(--primary-500);
    color: white;
}

/* ===== PRODUCT GRID ===== */
#load_data {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    margin-bottom: 40px;
    width: 100%;
}

@media (max-width: 1200px) {
    #load_data {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    #load_data {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    #load_data {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ===== LOADING STATES ===== */
#load_data_message {
    text-align: center;
    padding: 30px 0;
    grid-column: 1 / -1;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(95, 163, 15, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-500);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-more-products {
    color: var(--neutral-500);
    font-size: 14px;
    padding: 25px;
    background: var(--neutral-100);
    border-radius: var(--radius-lg);
}

.error-message {
    color: var(--error);
    font-size: 14px;
    padding: 18px;
    background: #fff5f5;
    border: 1px solid var(--error);
    border-radius: var(--radius-lg);
}

/* ===== LOAD MORE ===== */
.bwp-top-bar.bottom {
    margin-top: 30px;
    border-bottom: none;
    justify-content: center;
}

.woocommerce-load-more {
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 12px 35px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.woocommerce-load-more:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.woocommerce-load-more:disabled {
    background: var(--neutral-500);
    cursor: not-allowed;
    transform: none;
}

.loading-filter {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

/* ===== WHATSAPP FLOAT ===== */
.float-wa {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-xl);
    z-index: 100;
    text-decoration: none;
    transition: var(--transition-base);
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.float-wa:hover {
    transform: scale(1.1) rotate(5deg);
    color: white;
}

@media (max-width: 767px) {
    .float-wa {
        width: 48px;
        height: 48px;
        font-size: 24px;
        bottom: 15px;
        left: 15px;
    }
}

/* ===== ANIMATIONS ===== */
.wow {
    visibility: hidden;
}

.animated {
    visibility: visible;
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* ===== UTILITIES ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

[class*="col-"] {
    padding: 0 10px;
}

@media (min-width: 768px) {
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
    .d-md-none { display: none; }
    .d-md-block { display: block; }
}

@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
}

.d-none { display: none; }
.d-block { display: block; }
.text-center { text-align: center; }

/* ===== BRAND SLIDER ===== */
.brand-slider .slick-slider {
    margin: 0 -10px;
}

.brand-slider .slick-slide {
    padding: 0 10px;
}

.brand-slider .item {
    transition: var(--transition-base);
}

.brand-slider .item:hover {
    transform: translateY(-5px);
}

.brand-slider .item-image {
    background: white;
    border-radius: var(--radius-lg);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: var(--transition-base);
    text-align: center;
    height: 100px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.brand-slider .item-image:hover {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-md);
}

.brand-slider .item-image img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition-base);
    filter: grayscale(100%);
    opacity: 0.7;
}

.brand-slider .item-image:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.brand-slider .item.active .item-image {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 2px var(--primary-500);
}

/* Slick Arrows - Custom Styling */
.brand-slider .slick-prev,
.brand-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-base);
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.brand-slider .slick-prev {
    left: 0;
}

.brand-slider .slick-next {
    right: 0;
}

.brand-slider .slick-prev:hover,
.brand-slider .slick-next:hover {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: white;
    box-shadow: var(--shadow-lg);
}

.brand-slider .slick-prev i,
.brand-slider .slick-next i {
    font-size: 16px;
}

/* Hide default slick arrows text */
.brand-slider .slick-prev:before,
.brand-slider .slick-next:before {
    display: none;
}

/* Hide dots completely */
.brand-slider .slick-dots {
    display: none !important;
}

/* Disabled state */
.brand-slider .slick-prev.slick-disabled,
.brand-slider .slick-next.slick-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-slider {
        padding: 0 35px;
    }
    
    .brand-slider .slick-prev,
    .brand-slider .slick-next {
        width: 35px;
        height: 35px;
    }
    
    .brand-slider .slick-prev i,
    .brand-slider .slick-next i {
        font-size: 14px;
    }
    
    .brand-slider .item-image {
        height: 85px;
        padding: 10px;
    }
    
    .brand-slider .item-image img {
        max-height: 55px;
    }
}

@media (max-width: 480px) {
    .brand-slider {
        padding: 0 30px;
    }
}


.rating-stars i {
    color: #fbbf24 !important;
    font-size: 12px;
    margin-right: 2px;
}

.rating-value {
    font-weight: 600;
    color: #212121;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
}

.rating-count {
    color: #9e9e9e;
    font-size: 11px;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Price Row */
.price-row {
    margin-bottom: 16px;
}


.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #212121;
}

.old-price {
    font-size: 14px;
    color: #9e9e9e;
    text-decoration: line-through;
}

.discount-badge {
    background: #5fa30f;
    color: white;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    line-height: 1.4;
}

.save-amount {
    font-size: 12px;
    color: #5fa30f;
    font-weight: 500;
}

/* Buy Now Form */
.buy-now-form {
    width: 100%;
    margin-top: auto;
}

/* Buy Now Button */
.btn-buy {
    width: 100%;
    height: 44px;
    background: #212121;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-buy:hover {
    background: #5fa30f;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(95, 163, 15, 0.2);
}

.btn-buy:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-unit {
        font-size: 11px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .old-price {
        font-size: 12px;
    }
    
    .btn-buy {
        height: 40px;
        font-size: 13px;
    }
    
    .cart-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .wishlist-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .rating-stars i {
        font-size: 11px;
    }
    
    .rating-value,
    .rating-count {
        font-size: 10px;
        padding: 1px 4px;
    }
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-xl);
    z-index: 100;
    text-decoration: none;
    transition: var(--transition-base);
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 767px) {
    .whatsapp-float {
        display: none;
    }
}

/* ===== BANNER SECTION ===== */
.banner {
    position: relative;
    margin-bottom: 40px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
    min-height: 300px;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    mix-blend-mode: overlay;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 700px;
    z-index: 2;
}

.banner-subtitle {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    opacity: 0.9;
    animation: fadeInDown 0.8s ease;
}

.banner-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.banner-description {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.banner-button {
    display: inline-block;
    padding: 14px 36px;
    background: white;
    color: var(--primary-600);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.banner-button:hover {
    background: var(--primary-500);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sidebar */
.sidebar {
    flex: 0 0 var(--sidebar-width);
    position: sticky;
    top: calc(var(--header-height) + 20px);
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: var(--primary-500);
    margin: -24px -24px 20px -24px;
    padding: 16px 24px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    font-size: 18px;
}

/* Categories */
.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 12px;
    border-bottom: 1px solid var(--neutral-200);
    padding-bottom: 12px;
}

.category-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--neutral-700);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-fast);
    padding: 4px 0;
}

.category-link:hover {
    color: var(--primary-500);
    padding-left: 8px;
}

.category-count {
    background: var(--neutral-100);
    color: var(--neutral-600);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.children-list {
    list-style: none;
    padding-left: 20px;
    margin-top: 8px;
}

.children-list .category-item {
    border-bottom: none;
    margin-bottom: 8px;
    padding-bottom: 0;
}

/* Brands */
.brand-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

.brand-item {
    margin-bottom: 12px;
}

.brand-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--neutral-700);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-fast);
    padding: 6px 0;
}

.brand-link:hover {
    color: var(--primary-500);
    padding-left: 8px;
}

.brand-count {
    background: var(--neutral-100);
    color: var(--neutral-600);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 16px 20px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.result-count {
    color: var(--neutral-600);
    font-size: 15px;
}

.result-count strong {
    color: var(--neutral-900);
    font-weight: 600;
}

/* Sorting Dropdown */
.sorting-dropdown {
    position: relative;
}

.sorting-toggle {
    background: var(--neutral-100);
    border: 1px solid var(--neutral-300);
    padding: 10px 40px 10px 16px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    min-width: 200px;
    text-align: left;
    position: relative;
    transition: var(--transition-fast);
}

.sorting-toggle:hover {
    border-color: var(--primary-400);
    background: white;
}

.sorting-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-500);
    transition: var(--transition-fast);
}

.sorting-dropdown:hover .sorting-toggle::after {
    transform: translateY(-50%) rotate(180deg);
}

.sorting-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 8px 0;
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
}

.sorting-dropdown:hover .sorting-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sorting-item {
    list-style: none;
}

.sorting-link {
    display: block;
    padding: 10px 20px;
    color: var(--neutral-700);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
}

.sorting-link:hover {
    background: var(--primary-50);
    color: var(--primary-600);
}

.sorting-item.active .sorting-link {
    background: var(--primary-500);
    color: white;
}

/* ===== UPDATED PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.badge-sale {
    background: #5fa30f;
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(95, 163, 15, 0.2);
    display: inline-block;
    line-height: 1.4;
}

/* Hide old elements but preserve functionality */
.quick-actions,
.product-actions,
.btn-cart,
.product-vendor,
.product-price {
    display: none;
}

/* ===== LOAD MORE ===== */
.load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: white;
    border: 2px solid var(--neutral-200);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-700);
    cursor: pointer;
    transition: var(--transition-base);
}

.load-more-btn:hover {
    border-color: var(--primary-500);
    color: var(--primary-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.load-more-btn i {
    transition: var(--transition-fast);
}

.load-more-btn:hover i {
    transform: translateX(5px);
}

/* ===== MOBILE SIDEBAR TOGGLE ===== */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--neutral-700);
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 767px) {
    .sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        z-index: 1000;
        overflow-y: auto;
        padding: 20px;
        box-shadow: var(--shadow-2xl);
    }

    .sidebar.active {
        display: block;
    }

    .mobile-filter-toggle {
        display: flex;
    }

    .main-archive {
        flex-direction: column;
    }

    .main-content {
        width: 100%;
    }
}

/* ===== ANIMATIONS ===== */
.wow {
    visibility: hidden;
}

.animated {
    visibility: visible;
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* ===== UTILITY CLASSES ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

[class*="col-"] {
    padding: 0 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-info {
        padding: 12px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .old-price {
        font-size: 12px;
    }
    
    .btn-buy {
        height: 40px;
        font-size: 13px;
    }
    
    .cart-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .wishlist-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Touch device optimization */
.touch-device .cart-icon-btn,
.touch-device .wishlist-btn {
    opacity: 1;
}

/* Main container for products */
#load_data, 
.products-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Individual product item */
.product-grid__item {
    width: 100%;
    min-width: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.badge--offer {
    background: #5fa30f;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(95, 163, 15, 0.2);
}

/* Image wrapper - fixed aspect ratio */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #fafafa;
    aspect-ratio: 1 / 1;
    width: 100%;
    flex-shrink: 0;
}
/* ===== FIXED GRID SIZE FOR ALL DEVICES ===== */

/* Main container for products */
#load_data, 
.products-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Individual product item */
.product-grid__item {
    width: 100%;
    min-width: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Product card */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Badge */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.badge--offer {
    background: #5fa30f;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(95, 163, 15, 0.2);
}

/* Image wrapper - fixed aspect ratio */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #fafafa;
    aspect-ratio: 1 / 1;
    width: 100%;
    flex-shrink: 0;
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.5s ease;
    padding: 16px;
}

.product-image--primary {
    opacity: 1;
}

.product-image--secondary {
    opacity: 0;
}

.product-card:hover .product-image--primary {
    opacity: 0;
}

.product-card:hover .product-image--secondary {
    opacity: 1;
    transform: scale(1.05);
}

/* Wishlist button */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #424242;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    padding: 0;
}

.wishlist-btn:hover {
    background: #5fa30f;
    color: #ffffff;
    transform: scale(1.1);
}

/* =========================================
   AUTO-SIZE EXPAND CART BUTTON
========================================= */

.cart-btn-pro {
    position: absolute;
    bottom: 14px;
    right: 14px;

    height: var(--cart-height);
    padding-left: 0;
    padding-right: 12px;

    border: none;
    border-radius: var(--cart-radius);
    background: var(--cart-bg);

    display: inline-flex;
    align-items: center;
    justify-content: flex-end;

    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;

    box-shadow: var(--shadow-lg);

    transition:
        padding var(--transition-slow),
        background var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-fast);

    z-index: 10;
}

/* Icon */
.cart-btn-pro svg {
    width: 20px;
    height: 20px;
    fill: var(--cart-accent);
    flex-shrink: 0;
    transition: fill var(--transition-base);
}

/* Text */
.cart-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #ffffff;

    margin-right: 10px;
    opacity: 0;
    max-width: 0;

    overflow: hidden;

    transition:
        opacity var(--transition-fast),
        max-width var(--transition-slow);
}

/* Hover → padding auto adjust */
.cart-btn-pro:hover {
    padding-left: 16px;
    background: var(--cart-accent);
    box-shadow: var(--shadow-xl);
}

/* Text reveal (auto width based on content) */
.cart-btn-pro:hover .cart-label {
    opacity: 1;
    max-width: 300px; /* large enough for any text */
}

/* Icon color change */
.cart-btn-pro:hover svg {
    fill: #ffffff;
}

/* Click feel */
.cart-btn-pro:active {
    transform: scale(0.96);
}

/* Mobile → শুধু icon */
@media (max-width: 768px) {
    .cart-label {
        display: none;
    }

    .cart-btn-pro {
        padding-left: 0;
        padding-right: 0;
        width: 44px;
        justify-content: center;
    }
}
/* Product info section - fixed height */
.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    min-height: 200px;
}

/* Brand */
.product-brand {
    font-size: 12px;
    margin-bottom: 6px;
    height: 18px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-brand a {
    color: #9e9e9e;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-brand a:hover {
    color: #5fa30f;
}

/* Product title - fixed height for 2 lines */
.product-title {
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 8px;
    font-weight: 500;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #212121;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline;
}

.product-title a:hover {
    color: #5fa30f;
}

.product-unit {
    color: #9e9e9e;
    font-size: 12px;
    font-weight: 400;
    margin-left: 4px;
    white-space: nowrap;
}

/* Rating section - fixed height */
.product-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 8px 0 12px;
    height: 24px;
    overflow: hidden;
}

.rating-stars {
    display: flex;
    align-items: center;
}

.rating-stars i {
    color: #fbbf24;
    font-size: 12px;
    margin-right: 2px;
}

.rating-value {
    font-weight: 600;
    color: #212121;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    white-space: nowrap;
}

.rating-count {
    color: #9e9e9e;
    font-size: 11px;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Price row - fixed height */
.price-row {
    margin-bottom: 12px;
    height: 60px;
    overflow: hidden;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #212121;
    white-space: nowrap;
}

.old-price {
    font-size: 14px;
    color: #9e9e9e;
    text-decoration: line-through;
    white-space: nowrap;
}

.discount-badge {
    background: #5fa30f;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    line-height: 1.4;
    white-space: nowrap;
}

.save-amount {
    font-size: 12px;
    color: #5fa30f;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Buy button */
.buy-now-form {
    width: 100%;
    margin-top: auto;
}

.btn-buy {
    width: 100%;
    height: 44px;
    background: #212121;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-buy:hover {
    background: #5fa30f;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(95, 163, 15, 0.2);
}

/* Desktop - Large */
@media (min-width: 1200px) {
    #load_data, 
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* Desktop - Medium */
@media (min-width: 992px) and (max-width: 1199px) {
    #load_data, 
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    #load_data, 
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .product-info {
        min-height: 190px;
        padding: 14px;
    }
    
    .product-title {
        font-size: 14px;
        height: 40px;
    }
    
    .current-price {
        font-size: 17px;
    }
    
    .btn-buy {
        height: 42px;
        font-size: 13px;
    }
}

/* Mobile Landscape */
@media (min-width: 576px) and (max-width: 767px) {
    #load_data, 
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .product-info {
        min-height: 180px;
        padding: 12px;
    }
    
    .product-title {
        font-size: 13px;
        height: 38px;
    }
    
    .product-unit {
        font-size: 11px;
    }
    
    .product-rating {
        height: 22px;
    }
    
    .rating-stars i {
        font-size: 11px;
    }
    
    .rating-value,
    .rating-count {
        font-size: 10px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .old-price {
        font-size: 12px;
    }
    
    .price-row {
        height: 55px;
    }
    
    .btn-buy {
        height: 40px;
        font-size: 12px;
    }
    
    .cart-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .wishlist-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    #load_data, 
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-info {
        min-height: 170px;
        padding: 10px;
    }
    
    .product-title {
        font-size: 12px;
        height: 34px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .product-unit {
        font-size: 10px;
    }
    
    .product-rating {
        height: 20px;
        margin: 4px 0 8px;
    }
    
    .rating-stars i {
        font-size: 10px;
    }
    
    .rating-value,
    .rating-count {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .current-price {
        font-size: 15px;
    }
    
    .old-price {
        font-size: 11px;
    }
    
    .discount-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .save-amount {
        font-size: 10px;
    }
    
    .price-row {
        height: 50px;
        margin-bottom: 8px;
    }
    
    .btn-buy {
        height: 36px;
        font-size: 11px;
    }
    
    .cart-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        bottom: 8px;
        right: 8px;
    }
    
    .wishlist-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
        top: 8px;
        right: 8px;
    }
    
    .product-image {
        padding: 10px;
    }
}
