/* ===== CSS Variables ===== */
:root {
    --red: #ef4850;
    --red-dark: #d43d45;
    --red-light: #fef0f0;
    --red-border: #fecaca;
    --blue: #2c99d4;
    --blue-dark: #2280b5;
    --blue-light: #eff6ff;
    --blue-border: #bfdbfe;
    --black: #1a1a1a;
    --gray-50: #f8fafb;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #404040;
    --white: #fff;
    --green: #16a34a;
    --green-light: #f0fdf4;
    --yellow: #f59e0b;
    --yellow-light: #fefce8;
    --orange: #f97316;
    --orange-light: #fff7ed;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ===== PRODUCTS HEADER ===== */
.products-header-section {
    background: linear-gradient(135deg, var(--red-light) 0%, var(--blue-light) 100%);
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--gray-200);
}

@media (min-width: 768px) {
    .products-header-section {
        padding: 4rem 0 3rem;
    }
}

.products-header {
    text-align: center;
}

.products-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .products-title {
        font-size: 2.5rem;
    }
}

.products-subtitle {
    font-size: 0.9375rem;
    color: var(--gray-500);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== PRODUCTS CONTENT ===== */
.products-content-section {
    padding: 2rem 0 4rem;
    background: var(--gray-50);
    min-height: 60vh;
}

@media (min-width: 768px) {
    .products-content-section {
        padding: 2.5rem 0 5rem;
    }
}

.products-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .products-layout {
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }
}

/* ===== SIDEBAR ===== */
.products-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 1.25rem;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

@media (max-width: 1023px) {
    .products-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        bottom: 0;
        width: 320px;
        max-width: 85vw;
        z-index: 1100;
        border-radius: 0;
        border: none;
        border-right: 1px solid var(--gray-200);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 0;
        overflow-y: auto;
    }
    
    .products-sidebar.active {
        left: 0;
    }
}

/* Sidebar Mobile Header */
.sidebar-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}

@media (max-width: 1023px) {
    .sidebar-mobile-header {
        display: flex;
    }
}

.sidebar-mobile-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--black);
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
    background: var(--gray-100);
    color: var(--black);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
}

@media (max-width: 1023px) {
    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1090;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* Filter Blocks */
.filter-block {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.filter-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}

/* Filter Search */
.filter-search {
    position: relative;
    margin-bottom: 0.75rem;
}

.filter-search svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.filter-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-family: inherit;
    color: var(--black);
    background: var(--gray-50);
    outline: none;
    transition: all 0.2s ease;
}

.filter-search-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(239, 72, 80, 0.08);
    background: var(--white);
}

.filter-search-input::placeholder {
    color: var(--gray-400);
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.filter-scrollable {
    max-height: 180px;
    overflow-y: auto;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.filter-option:hover {
    background: var(--gray-50);
    color: var(--black);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    display: none;
}

/* Custom Checkbox */
.filter-checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--gray-300);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.filter-option input:checked ~ .filter-checkmark {
    background: var(--red);
    border-color: var(--red);
}

.filter-option input:checked ~ .filter-checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
}

/* Custom Radio */
.filter-radio {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--gray-300);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.filter-option input:checked ~ .filter-radio {
    border-color: var(--red);
}

.filter-option input:checked ~ .filter-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--red);
    border-radius: 50%;
}

/* Price Range */
.price-range {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-inputs input {
    flex: 1;
    padding: 0.5rem 0.625rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-family: inherit;
    color: var(--black);
    outline: none;
    width: 0;
    min-width: 0;
    transition: all 0.2s ease;
}

.price-inputs input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(239, 72, 80, 0.08);
}

.price-inputs span {
    color: var(--gray-400);
    font-size: 0.8125rem;
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: var(--red-light);
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 1px solid var(--red-border);
    text-transform: capitalize;
}

.chip-remove {
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    opacity: 0.7;
}

.chip-remove:hover {
    opacity: 1;
}

.clear-all-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-decoration: underline;
}

.clear-all-btn:hover {
    color: var(--red);
}

/* Apply Filters Button (Mobile) */
.apply-filters-mobile {
    display: none;
    margin-top: 1rem;
}

@media (max-width: 1023px) {
    .apply-filters-mobile {
        display: flex;
    }
}

/* ===== PRODUCTS MAIN ===== */
.products-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Top Bar */
.products-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--white);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    position: sticky;
    top: 76px;
    z-index: 50;
}

@media (min-width: 1024px) {
    .products-topbar {
        top: 90px;
    }
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-toggle-btn {
    display: none;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

@media (max-width: 1023px) {
    .filter-toggle-btn {
        display: flex;
    }
}

.filter-toggle-btn:hover {
    background: var(--gray-200);
}

.filter-count {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: var(--red);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    padding: 0 5px;
}

.results-count {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    white-space: nowrap;
}

.sort-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-family: inherit;
    color: var(--black);
    background: var(--gray-50);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.625rem center;
    transition: all 0.2s ease;
}

.sort-select:focus {
    border-color: var(--red);
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    gap: 1rem;
    transition: opacity 0.2s ease;
}

@media (min-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red-border);
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.1875rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.scheme-badge {
    background: var(--green-light);
    color: var(--green);
    border: 1px solid #bbf7d0;
}

.bestseller-badge {
    background: var(--yellow-light);
    color: #b45309;
    border: 1px solid #fde68a;
    /* top: 2.5rem; */
}

.high-margin-badge {
    background: var(--orange-light);
    color: var(--orange);
    border: 1px solid #fed7aa;
    /* top: 4.25rem; */
}

.product-badges-row {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    /* padding: 0.625rem 0.75rem 0; */
}

.product-badges-row .product-badge {
    position: static;
    padding: 0.1875rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Product Image */
.product-image {
    padding: 1.5rem 1rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.product-image img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.product-placeholder {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--red-light), var(--blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
}

/* Product Info */
.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.product-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-generic {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: -0.25rem;
}

.product-company {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-light);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    display: inline-block;
    width: fit-content;
}

/* Product Meta */
.product-meta {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    border-top: 1px dashed var(--gray-200);
    border-bottom: 1px dashed var(--gray-200);
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.6875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.meta-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
}

.stock-status.in-stock {
    color: var(--green);
}

.stock-status.low-stock {
    color: var(--orange);
}

.stock-status.out-of-stock {
    color: #dc2626;
}

/* Product Pricing */
.product-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pricing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pricing-main {
    background: var(--red-light);
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius-sm);
    margin: 0.125rem -0.5rem;
}

.pricing-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.pricing-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
}

.pricing-value.mrp {
    text-decoration: line-through;
    color: var(--gray-400);
    font-weight: 400;
}

.pricing-value.ptr {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--black);
}

.pricing-value.margin {
    color: var(--gray-500);
}

.pricing-value.margin.high {
    color: var(--green);
    font-weight: 700;
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 0.625rem;
    border: 1.5px solid var(--red);
    background: var(--white);
    color: var(--red);
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    margin-top: 0.5rem;
}

.add-to-cart-btn:hover:not(.disabled):not(.in-cart) {
    background: var(--red);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 72, 80, 0.25);
}

.add-to-cart-btn.in-cart {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.add-to-cart-btn.disabled {
    background: var(--gray-100);
    color: var(--gray-400);
    border-color: var(--gray-200);
    cursor: not-allowed;
}

.product-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.product-card-actions .add-to-cart-btn {
    margin-top: 0;
}

.view-details-btn {
    width: 100%;
    padding: 0.625rem;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    text-decoration: none;
}

.view-details-btn:hover {
    border-color: var(--black);
    color: var(--black);
}

/* Cart Quantity Editor */
.cart-quantity-editor {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    background: var(--green-light);
    border: 1.5px solid var(--green);
    border-radius: var(--radius);
    justify-content: space-between;
    padding: 0.375rem 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--green);
    background: var(--white);
    color: var(--green);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    font-family: inherit;
}

.qty-btn:hover {
    background: var(--green);
    color: var(--white);
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-display {
    font-weight: 700;
    color: var(--green);
    min-width: 30px;
    text-align: center;
    font-size: 0.9375rem;
}

.qty-decrement,
.qty-increment {
    flex: 1;
}

.qty-delete {
    background: #fef0f0;
    color: var(--red);
    border-color: var(--red);
}

.qty-delete:hover {
    background: var(--red);
    color: var(--white);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* ===== LOADING STATE ===== */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-state p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ===== PAGINATION ===== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--white);
    padding: 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.page-btn {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--gray-600);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.page-btn:hover:not(.disabled):not(.active) {
    background: var(--gray-100);
    color: var(--black);
}

.page-btn.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-dots {
    width: 38px;
    text-align: center;
    color: var(--gray-400);
    font-weight: 600;
    letter-spacing: 2px;
}

/* ===== CART TOAST ===== */
.cart-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: var(--black);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.cart-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== BUTTONS (Shared) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn-primary:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 72, 80, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    border-color: var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

/* ===== SCROLLBAR ===== */
.filter-scrollable::-webkit-scrollbar {
    width: 4px;
}

.filter-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.filter-scrollable::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

.products-sidebar::-webkit-scrollbar {
    width: 4px;
}

.products-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.products-sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 479px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-topbar {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .topbar-left,
    .topbar-right {
        justify-content: space-between;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 0.375rem;
    }
    
    .pagination {
        gap: 0.125rem;
    }
    
    .page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

/* ===== BREADCRUMB ===== */
.breadcrumb-section { padding: 0.625rem 0; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.breadcrumb-nav { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; }
.breadcrumb-nav a { color: var(--gray-500); text-decoration: none; transition: color 0.2s; }
.breadcrumb-nav a:hover { color: var(--red); }
.breadcrumb-nav span { color: var(--gray-600); font-weight: 500; }

/* ===== COMPACT HEADER ===== */
.products-header-section { background: linear-gradient(135deg, var(--red-light) 0%, var(--blue-light) 100%); padding: 1.25rem 0 1rem; border-bottom: 1px solid var(--gray-200); text-align: center; }
.products-header { max-width: 600px; margin: 0 auto; }
.products-title { font-size: 1.5rem; font-weight: 800; color: var(--black); margin-bottom: 0.25rem; }
.products-subtitle { font-size: 0.8125rem; color: var(--gray-500); }
@media (min-width: 768px) { .products-title { font-size: 2rem; } }

/* ===== PRODUCT CODE ===== */
.product-code-display { font-size: 0.75rem; font-weight: 700; color: var(--red); letter-spacing: 0.05em; }

/* ===== PTR WITH GST ===== */
.ptr-with-gst { font-size: 0.9375rem; font-weight: 700; color: var(--blue); }

/* ===== SCHEME ROW ===== */
.pricing-scheme { background: var(--green-light); padding: 0.25rem 0.5rem; border-radius: var(--radius-sm); margin: 0.125rem -0.5rem; }
.pricing-value.scheme { color: var(--green); font-weight: 700; }

/* ===== LOW STOCK BADGE ===== */
.low-stock-badge { background: #fff7ed; color: var(--orange); border: 1px solid #fed7aa; }
