:root {
    --red: #ef4850; --red-dark: #d43d45; --red-light: #fef0f0;
    --blue: #2c99d4; --blue-light: #eff6ff;
    --black: #1a1a1a; --gray-50: #f8fafb; --gray-100: #f5f5f5;
    --gray-200: #e5e5e5; --gray-400: #a3a3a3; --gray-500: #737373; --gray-600: #404040;
    --white: #fff; --green: #16a34a; --green-light: #f0fdf4;
    --orange: #f97316; --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --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);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-section { padding: 0.875rem 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; }
.breadcrumb-nav a:hover { color: var(--red); }
.breadcrumb-nav span { color: var(--gray-600); font-weight: 500; }

/* ===== CATEGORY HEADER ===== */
.category-detail-hero { background: linear-gradient(135deg, var(--red-light) 0%, var(--blue-light) 100%); padding: 2.5rem 0; }
.category-detail-header { display: flex; gap: 1.25rem; align-items: center; }
.category-detail-icon { width: 72px; height: 72px; border-radius: 20px; background: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); flex-shrink: 0; }
.category-detail-title { font-size: 1.75rem; font-weight: 800; color: var(--black); margin-bottom: 0.25rem; }
@media(min-width:768px){.category-detail-title{font-size:2.25rem}}
.category-detail-desc { font-size: 0.9375rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.category-detail-stats { display: flex; gap: 1.25rem; font-size: 0.8125rem; color: var(--gray-500); }
.category-detail-stats strong { color: var(--black); }

/* ===== PRODUCTS ===== */
.category-products-section { padding: 2rem 0 5rem; background: var(--gray-50); min-height: 60vh; }

/* Toolbar */
.products-toolbar { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 0.875rem 1.25rem; margin-bottom: 1.25rem; }
.toolbar-row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.toolbar-search { position: relative; flex: 1; min-width: 200px; }
.toolbar-search svg { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); }
.search-input { width: 100%; padding: 0.5rem 0.75rem 0.5rem 2.5rem; border: 1.5px solid var(--gray-200); border-radius: 9999px; font-size: 0.8125rem; font-family: inherit; outline: none; }
.search-input:focus { border-color: var(--red); }

.sort-select { padding: 0.5rem 1rem; border: 1.5px solid var(--gray-200); border-radius: 9999px; font-size: 0.8125rem; font-family: inherit; outline: none; cursor: pointer; }

.quick-filter-btn { display: flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.875rem; border: 1.5px solid var(--gray-200); border-radius: 9999px; font-size: 0.75rem; font-weight: 600; color: var(--gray-500); background: var(--white); cursor: pointer; transition: all 0.2s; font-family: inherit; }
.quick-filter-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }
.quick-filter-btn:hover:not(.active) { border-color: var(--gray-300); }

/* Results */
.results-info { margin-bottom: 1rem; }
.results-info span { font-size: 0.8125rem; color: var(--gray-500); }

/* Products Grid */
.products-grid { display: grid; gap: 1rem; }
@media(min-width:480px){.products-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.products-grid{grid-template-columns:repeat(3,1fr)}}

.product-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: 16px; overflow: hidden; transition: all 0.3s ease;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card-image { height: 120px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-400); }
.product-card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-card-name { font-size: 0.9375rem; font-weight: 700; color: var(--black); }
.product-card-company { font-size: 0.75rem; color: var(--blue); font-weight: 600; }
.product-card-meta { display: flex; gap: 0.75rem; font-size: 0.75rem; color: var(--gray-500); }
.product-card-meta span { display: flex; align-items: center; gap: 0.25rem; }
.product-card-pricing { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--gray-100); }
.product-price { font-size: 1.125rem; font-weight: 800; color: var(--black); }
.product-mrp { font-size: 0.75rem; color: var(--gray-400); text-decoration: line-through; }
.product-scheme { padding: 0.125rem 0.5rem; background: var(--green-light); color: var(--green); border-radius: 9999px; font-size: 0.625rem; font-weight: 700; }

/* Pagination */
.pagination-wrapper { display: flex; justify-content: center; margin-top: 2rem; }
.pagination { display: inline-flex; align-items: center; gap: 0.25rem; background: var(--white); padding: 0.375rem; border-radius: 9999px; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.page-btn { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 2px solid transparent; background: transparent; color: var(--gray-600); font-size: 0.875rem; font-weight: 600; border-radius: 9999px; cursor: pointer; transition: all 0.3s; 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); box-shadow: 0 4px 12px rgba(239,72,80,0.3); }
.page-btn.disabled { opacity: 0.3; cursor: not-allowed; }

/* Empty */
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 4rem 2rem; text-align: center; }
.empty-state h3 { font-size: 1.125rem; font-weight: 700; margin: 1rem 0 0.5rem; }
.empty-state p { color: var(--gray-500); }

/* Toast */
.category-detail-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: 9999px; font-size: 0.875rem; display: flex; align-items: center; gap: 0.625rem; z-index: 9999; opacity: 0; transition: all 0.3s; box-shadow: var(--shadow-xl); white-space: nowrap; }
.category-detail-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.category-detail-toast-success { border: 1px solid var(--green); }

@media(max-width:640px){.category-detail-title{font-size:1.5rem}.toolbar-row{flex-direction:column}}