/**
 * ============================================================================
 * ফাইল: products.css
 * অবস্থান: public/themes/bogura-bazar/css/pages/products.css
 *
 * এই ফাইলে রয়েছে:
 * 1. ফিল্টার সাইডবার স্টাইল (sidebar-filter)
 * 2. প্রোডাক্ট গ্রিড ও কার্ড স্টাইল (product-grid)
 * 3. মোবাইল ফিল্টার সাইডবার ও সর্টিং বটম শীট
 * 4. লোডিং ও খালি স্টেট স্টাইল
 * 5. প্যাজিনেশন স্টাইল
 * 6. রেসপন্সিভ ডিজাইন (মোবাইল-ফার্স্ট)
 * ============================================================================
 */

/* ============================================
   1. টপ বার (ফিল্টার ও সর্টিং)
   ============================================ */
.products-top-bar {
    background     : white;
    padding        : 10px 16px;
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    gap            : 12px;
    border-bottom  : 1px solid var(--gray-200, #e5e7eb);
    box-shadow     : var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05));
    border-radius: 12px 12px 0 0;
}

/* ফিল্টার ট্রিগার বাটন */
.filter-trigger-btn {
    display      : flex;
    align-items  : center;
    gap          : 8px;
    padding      : 8px 16px;
    border       : 1px solid var(--gray-200, #e5e7eb);
    border-radius: 10px;
    font-size    : 14px;
    font-weight  : 500;
    cursor       : pointer;
    transition   : all 0.2s ease;
    background   : #fff;
    color: var(--primary, #017e3d);
}

.filter-trigger-btn i {
    font-size: 16px;
    color: var(--primary, #017e3d);
}

.filter-trigger-btn.active {
    background: var(--primary, #017e3d);
    border-color: var(--primary, #017e3d);
    color: var(--white, #ffffff);
}

.filter-trigger-btn.active i {
    color: var(--white, #ffffff);
}

/* ফিল্টার কাউন্ট ব্যাজ */
.filter-count-badge {
    background   : #ef4444;
    color        : white;
    font-size    : 11px;
    font-weight  : 600;
    padding      : 2px 6px;
    border-radius: 20px;
    line-height  : 1;
    margin-left  : 4px;
    display      : inline-block;
    transition   : all 0.2s ease;
}

.filter-trigger-btn.active .filter-count-badge {
    background: white;
    color: var(--primary, #017e3d);
}

/* ============================================
   2. লাইভ সার্চ ফিল্টার
   ============================================ */
.products-search {
    background: transparent;
    border-bottom: none;
}

.search-input-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.search-icon {
    position      : absolute;
    left          : 15px;
    top           : 50%;
    transform     : translateY(-50%);
    color         : var(--gray-400, #9ca3af);
    font-size     : 16px;
    pointer-events: none;
    z-index       : 1;
}

.search-input {
    width        : 100%;
    padding      : 6px 45px 6px 45px;
    border       : 1px solid var(--gray-200, #e5e7eb);
    border-radius: 12px;
    font-size    : 14px;
    color        : var(--gray-700, #374151);
    background   : var(--gray-50, #f9fafb);
    transition   : all 0.3s ease;
    outline      : none;
}

.search-input:focus {
    border-color: var(--primary, #017e3d);
    background: white;
    box-shadow: 0 0 0 3px rgba(1, 126, 61, 0.1);
}

.search-clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400, #9ca3af);
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
    transition: color 0.2s;
}

.search-clear-btn:hover {
    color: var(--gray-600, #4b5563);
}

/* ============================================
   3. সর্টিং ড্রপডাউন
   ============================================ */
.sorting-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-label {
    font-size: 14px;
    color: var(--gray-600, #4b5563);
}

.sort-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-700, #374151);
    background: white;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    min-height: 40px;
}

.sort-select:focus {
    border-color: var(--primary, #017e3d);
    box-shadow: 0 0 0 2px rgba(1, 126, 61, 0.1);
}

/* মোবাইল সর্টিং বাটন */
.sort-trigger-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-100, #f3f4f6);
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700, #374151);
    cursor: pointer;
}

/* ============================================
   4. ফিল্টার সাইডবার (ডেস্কটপ)
   ============================================ */
.filter-sidebar {
    background: #fff;
    border-radius: var(--radius-md, 12px);
    border: 1px solid var(--gray-200, #e5e7eb);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05));
}

.filter-header {
    padding: 16px 20px;
    background: var(--gray-50, #f9fafb);
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--gray-800, #1f2937);
}

.filter-title i {
    color: var(--primary, #017e3d);
    margin-right: 8px;
}

.filter-clear-all {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-clear-all:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* ফিল্টার গ্রুপ */
.filter-group {
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
}

.filter-group-header {
    padding    : 14px 20px;
    display    : flex;
    align-items: center;
    gap        : 10px;
    cursor     : pointer;
    font-weight: 500;
    color      : var(--gray-700, #374151);
    background : #fff;
    transition : background 0.2s ease;
}

.filter-group-header:hover {
    background: var(--gray-50, #f9fafb);
}

.filter-group-header i:first-child {
    width: 20px;
    color: var(--primary, #017e3d);
}

.filter-group-header .filter-toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: var(--gray-400, #9ca3af);
}

.filter-group.open .filter-toggle-icon {
    transform: rotate(180deg);
}

.filter-group-body {
    padding: 0 20px 16px 20px;
    display: none;
}

.filter-group.open .filter-group-body {
    display: block;
}

/* ফিল্টার সার্চ */
.filter-search {
    margin-bottom: 12px;
    position: relative;
}

.filter-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.filter-search-input:focus {
    border-color: var(--primary, #017e3d);
    box-shadow: 0 0 0 2px rgba(1, 126, 61, 0.1);
}

/* ফিল্টার অপশন */
.filter-options {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.filter-options::-webkit-scrollbar {
    width: 4px;
}

.filter-options::-webkit-scrollbar-track {
    background: var(--gray-100, #f3f4f6);
    border-radius: 4px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: var(--gray-300, #d1d5db);
    border-radius: 4px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-600, #4b5563);
    transition: color 0.2s ease;
}

.filter-option:hover {
    color: var(--primary, #017e3d);
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary, #017e3d);
}

.filter-option-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.filter-count {
    font-size  : 12px;
    flex-shrink: 0;
    width      : 35px;
}

.filter-subcategory {
    margin-left: 24px;
}

.filter-subcategory .filter-option {
    padding: 6px 0;
    font-size: 13px;
}

/* মূল্য স্লাইডার */
.price-range-container {
    padding: 8px 0;
}

.price-slider-wrapper {
    margin-bottom: 20px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
}

.price-currency {
    padding: 8px 10px;
    background: var(--gray-50, #f9fafb);
    color: var(--gray-500, #6b7280);
    font-size: 14px;
    border-right: 1px solid var(--gray-200, #e5e7eb);
}

.price-input {
    flex: 1;
    padding: 8px 10px;
    border: none;
    outline: none;
    font-size: 14px;
}

.price-separator {
    color: var(--gray-400, #9ca3af);
}

/* রেটিং অপশন */
.rating-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 0;
}

.rating-option input[type="radio"] {
    accent-color: var(--primary, #017e3d);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.rating-stars {
    color: #fbbf24;
    font-size: 14px;
}

.rating-text {
    font-size: 13px;
    color: var(--gray-500, #6b7280);
}

/* স্পেশাল ফিল্টার */
.special-filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
}

.special-filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary, #017e3d);
    cursor: pointer;
}

.special-filter-text {
    font-size: 14px;
    color: var(--gray-600, #4b5563);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ফিল্টার অ্যাকশন বাটন */
.filter-actions {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--gray-50, #f9fafb);
    border-top: 1px solid var(--gray-200, #e5e7eb);
}

.filter-apply-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary, #017e3d);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-apply-btn:hover {
    background: var(--primary-dark, #00632f);
}

.filter-reset-btn {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 8px;
    color: var(--gray-500, #6b7280);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-reset-btn:hover {
    background: var(--gray-100, #f3f4f6);
    border-color: var(--gray-300, #d1d5db);
}

/* অ্যাক্টিভ ফিল্টার ব্যাজ */
.active-filters-container {
    padding: 12px 20px;
    background: #fef3c7;
    border-bottom: 1px solid #fde68a;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #fff;
    border-radius: 20px;
    font-size: 12px;
    color: #d97706;
    border: 1px solid #fde68a;
}

.filter-badge i {
    cursor: pointer;
    font-size: 10px;
}

/* ============================================
   5. প্রোডাক্ট গ্রিড ও কার্ড
   ============================================ */
.products-layout {
    display: flex;
    gap    : 30px;
    margin : 15px 0 20px;
}

.products-sidebar-desktop {
    width: 280px;
    flex-shrink: 0;
}

.products-content {
    flex: 1;
    min-width: 0;
}

.products-grid {
    display              : grid;
    grid-template-columns: repeat(4, 1fr);
    gap                  : 20px;
    margin-bottom        : 30px;
    margin-top           : 20px;
}

.product-card {
    background   : #fff;
    border-radius: var(--radius-md, 12px);
    overflow     : hidden;
    box-shadow   : var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05));
    transition   : transform 0.2s ease, box-shadow 0.2s ease;
    position     : relative;
    display      : flex;
    flex-direction: column;
    height       : 100%;
}

.product-card:hover {
    transform : translateY(-4px);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
}

.product-card:active {
    transform: scale(0.98);
}

.product-image-wrapper {
    position    : relative;
    aspect-ratio: 4 / 3;
    overflow    : hidden;
    background  : var(--gray-100, #f3f4f6);
    flex-shrink : 0;
}

.product-image {
    width     : 100%;
    height    : 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.discount-badge {
    position     : absolute;
    top          : 8px;
    left         : 8px;
    background   : #ef4444;
    color        : white;
    font-size    : 11px;
    font-weight  : 600;
    padding      : 4px 8px;
    border-radius: 20px;
    z-index      : 2;
}

.product-card .wishlist-btn {
    position       : absolute;
    top            : 8px;
    right          : 8px;
    background     : white;
    border         : none;
    width          : 32px;
    height         : 32px;
    border-radius  : 50%;
    display        : flex;
    align-items    : center;
    justify-content: center;
    cursor         : pointer;
    box-shadow     : var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.05));
    z-index        : 2;
    transition     : all 0.2s ease;
}

.product-card .wishlist-btn:hover {
    background: #fee2e2;
    transform : scale(1.1);
}

.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size         : 14px;
    font-weight       : 500;
    color             : var(--gray-800, #1f2937);
    margin-bottom     : 8px;
    line-height       : 1.4;
    min-height        : 38px;
    text-decoration   : none;
    transition        : color 0.2s ease;
    text-align        : center;
    display           : -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow          : hidden;
}

.product-title:hover {
    color: var(--primary, #017e3d);
}

.product-price {
    display      : flex;
    align-items  : baseline;
    justify-content: center;
    gap          : 8px;
    flex-wrap    : wrap;
    margin-bottom: 8px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary, #017e3d);
}

.old-price {
    font-size: 12px;
    color: var(--gray-400, #9ca3af);
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    font-size: 10px;
    color: #fbbf24;
}

.stars i.far {
    color: var(--gray-300, #d1d5db);
}

.rating-count {
    font-size: 10px;
    color: var(--gray-500, #6b7280);
}

.product-cart-btn {
    width: 100%;
    padding: 10px 12px;
    background: var(--primary, #017e3d);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    min-height: 44px;
}

.product-cart-btn:hover {
    background: var(--primary-dark, #00632f);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.1));
}

.product-cart-btn:active {
    transform: translateY(0);
}

.product-cart-btn i {
    font-size: 14px;
}

.product-cart-btn span {
    display: inline-block;
}

.product-cart-btn.out-of-stock {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

.product-cart-btn.out-of-stock:hover {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

.product-cart-btn.out-of-stock:active {
    transform: none;
}

/* ============================================
   6. মোবাইল ফিল্টার সাইডবার
   ============================================ */
.filter-sidebar-mobile {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.filter-sidebar-mobile.open {
    left: 0;
}

.filter-sidebar-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.filter-sidebar-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--gray-800, #1f2937);
}

.filter-sidebar-header h4 i {
    color: var(--primary, #017e3d);
    margin-right: 8px;
}

.close-filter {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-400, #9ca3af);
}

.filter-sidebar-body {
    padding-bottom: 80px;
}

.filter-sidebar-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    background: white;
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200, #e5e7eb);
    z-index: 10;
}

.filter-apply-btn-mobile {
    width: 100%;
    padding: 12px;
    background: var(--primary, #017e3d);
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

/* ============================================
   7. মোবাইল সর্টিং বটম শীট
   ============================================ */
.sort-bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 1000;
    transition: bottom 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.sort-bottom-sheet.open {
    bottom: 0;
}

.sort-sheet-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sort-sheet-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.close-sort-sheet {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-400, #9ca3af);
}

.sort-options-list {
    padding: 8px 0;
    margin-bottom: 20px;
}

.sort-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    width: 100%;
    background: none;
    border: none;
    font-size: 16px;
    color: var(--gray-700, #374151);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.sort-option i:first-child {
    width: 24px;
    color: var(--gray-400, #9ca3af);
}

.sort-option .check-icon {
    margin-left: auto;
    color: var(--primary, #017e3d);
    display: none;
}

.sort-option.active {
    background: var(--primary-light, #e8f5e9);
    color: var(--primary, #017e3d);
}

.sort-option.active .check-icon {
    display: block;
}

/* ============================================
   8. ওভারলে
   ============================================ */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.filter-overlay.show {
    display: block;
}

/* ============================================
   9. লোডিং ও লোড মোর স্টেট
   ============================================ */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-200, #e5e7eb);
    border-top-color: var(--primary, #017e3d);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.load-more-container {
    text-align: center;
}

.load-more-btn {
    padding      : 12px 28px;
    background   : var(--primary, #017e3d);
    border       : 1px solid var(--gray-200, #e5e7eb);
    border-radius: 12px;
    font-size    : 14px;
    font-weight  : 500;
    color        : var(--white, #ffffff);
    cursor       : pointer;
    display      : inline-flex;
    align-items  : center;
    gap          : 8px;
    transition   : all 0.2s;
}

.load-more-btn:hover {
    background: var(--warning, #ffc107);
}

/* ============================================
   10. খালি স্টেট
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--gray-50, #f9fafb);
    border-radius: var(--radius-lg, 16px);
}

.empty-state i {
    font-size: 64px;
    color: var(--gray-300, #d1d5db);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--gray-700, #374151);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--gray-500, #6b7280);
    margin-bottom: 24px;
}

.empty-state-btn {
    background: var(--primary, #017e3d);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
}

/* ============================================
   11. প্যাজিনেশন
   ============================================ */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 40px;
}
/* ============================================
   12. রেসপন্সিভ ডিজাইন
   ============================================ */

/* ডেস্কটপ ও ট্যাবলেটের জন্য */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
    .filter-trigger-btn {
        display: none !important;
    }
}

/* ট্যাবলেট */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-sidebar-desktop {
        width: 260px;
    }

    .products-layout {
        gap: 20px;
        padding: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* মোবাইলের জন্য */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .products-top-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 12px;
        border-radius: 12px;
        background: #ffffff;
        border-bottom: 1px solid var(--gray-200, #e5e7eb);
    }

    .products-search {
        grid-column: 1 / -1;
        width: 100%;
        order: -1;
        padding: 0;
        border-bottom: none;
        background: transparent;
    }

    .search-input {
        height: 42px;
        padding: 6px 45px;
        font-size: 14px;
        border-radius: 10px;
        border: 1px solid var(--gray-200, #e5e7eb);
        background: var(--gray-50, #f9fafb);
    }

    .filter-trigger-btn {
        grid-column: 1;
        width: 100%;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 16px;
        border: 1px solid var(--gray-200, #e5e7eb);
        border-radius: 10px;
        background: #ffffff;
        color: var(--primary, #017e3d);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .sort-trigger-btn {
        display: none !important;
    }

    .sorting-wrapper {
        grid-column: 2;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .sort-select {
        width           : 100%;
        height          : 42px;
        min-height      : 42px;
        padding         : 0 32px 0 12px;
        font-size       : 14px;
        border-radius   : 10px;
        background-color: var(--gray-50, #f9fafb);
        border-color    : var(--gray-200, #e5e7eb);
    }

    .sort-label {
        display: none;
    }

    .products-layout {
        padding: 12px;
        flex-direction: column;
        gap: 0;
    }

    .products-sidebar-desktop {
        display: none;
    }

    .products-content {
        padding: 0 4px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-info {
        padding: 10px;
    }

    .product-title {
        font-size: 13px;
        min-height: 34px;
    }

    .current-price {
        font-size: 14px;
    }

    .discount-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .product-card .wishlist-btn {
        width: 28px;
        height: 28px;
    }

    .product-cart-btn {
        width: 100%;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 500;
        min-height: 44px;
    }

    .product-cart-btn i {
        font-size: 14px;
        margin: 0;
    }

    .product-cart-btn span {
        display: inline-block !important;
        font-size: 13px;
    }
}

/* ছোট মোবাইলের জন্য */
@media (max-width: 480px) {
    .products-grid {
        gap: 10px;
    }

    .product-info {
        padding: 8px;
    }



    .product-cart-btn {
        padding: 8px 10px;
        font-size: 12px;
        min-height: 38px;
        gap: 6px;
    }

    .product-cart-btn i {
        font-size: 13px;
    }

    .product-cart-btn span {
        font-size: 12px;
    }
}
