:root {
  --portrait-width: 300px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
}

.sidebar h3{
    color:#ffffff;
}
/* Main Navbar Styling */




.breadcrumb {
    background: #ffffff; /* Subtle gradient for depth */
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #2b1f0d; /* Soft border for separation */
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* Tighter spacing for modern look */
    font-size: 0.95rem; /* Slightly larger for readability */
    color: #2b1e0a; /* Darker neutral for contrast */
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li a {
    color: #8b5e34; /* Warm brown for clickable links */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, border-bottom 0.2s ease; /* Smooth hover transitions */
    border-bottom: 1px solid transparent; /* Subtle underline effect on hover */
}

.breadcrumb-list li a:hover {
    color: #4a2f0e; /* Darker shade on hover */
    border-bottom: 1px solid #4a2f0e; /* Underline for interactivity */
}

.breadcrumb-list li a:focus {
    outline: 2px solid #8b5e34; /* Accessible focus state */
    outline-offset: 2px;
    border-radius: 2px;
}

.breadcrumb-list li.current {
    color: #2b1e0a; /* Darker for emphasis */
    font-weight: 200; /* Bolder for current level */
}

.breadcrumb-list li:not(:last-child)::after {
    content: '\203A'; /* Unicode for right-angle quote (>) for a modern look */
    margin: 0 0.5rem;
    color: #6b5e4b; /* Muted separator color */
    font-size: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 0.75rem 0;
        margin-top: 3rem;
    }
    .breadcrumb-list {
        font-size: 0.85rem; /* Smaller font for mobile */
        gap: 0.5rem;
    }
    .breadcrumb-list li:not(:last-child)::after {
        margin: 0 0.4rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-list {
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    .breadcrumb-list li:not(:last-child)::after {
        margin: 0 0.3rem;
    }
}

.container {
    max-width: 1900px;
    margin: 0 auto;
    padding: 10rem 1.5rem;
    display: flex;
    gap: 2rem;
    min-height: 100vh;
}

.sidebar {
    width: 300px;
    background: #EBEBEB;
    backdrop-filter: blur(15px);
    padding: 0;
    height: fit-content;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(14, 13, 12, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(61, 61, 61, 0.15);
    position: sticky;
    top: 80px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.filter-section{
    margin: 0px 20px;
}

.sidebar:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 209, 81, 0.2);
}

.main-content {
    flex: 1;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 1.5rem;
    color: rgb(53, 52, 52);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
}

.controls {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-section p {
    color: #222222;
    margin-bottom: 15px;
    font-size: 1rem;
    border-bottom: 0.5px solid #919191;
    padding-bottom: 8px;
    opacity: 0.9;
    margin-left: 10px;
    margin-top: 20px;
}

.price-range {
    margin-bottom: 25px;
}

.range-container {
    position: relative;
    margin: 20px 0;
}

.range-slider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #e7e7e3, #3a3a39);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #7e7d7d;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.price-display {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-weight: 600;
    color: #363636;
    padding: 1px 4px; 
}

.category-filter {
    margin-bottom: 25px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    display: block;
    padding: 12px 16px;
    color: #838383;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}
.category-item:hover {
    background: linear-gradient(135deg, #d5d5d5);
    color: #111111;
    transform: translateX(5px);
    border-left-color: #3f3f3e;
    box-shadow: 0 5px 15px rgba(43, 28, 0, 0.2);
}

.category-item.active {
    background: linear-gradient(135deg, #d5d5d5);
    color: #111111;
    border-left-color: #3f3f3e;
    box-shadow: 0 5px 15px rgba(43, 28, 0, 0.3);
}


.category-list > li {
    margin-bottom: 2px;
}

.category-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    border-left: 2px solid #c5c5c5;
    margin-left: 20px;
}


.category-list ul > li {
    position: relative;
    margin-bottom: 2px;
}

.category-list ul > li::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    width: 12px;
    height: 2px;
    background: #c5c5c5;
}

/* Level 3: Sub-subcategories - nested further */
.category-list ul ul {
    margin-left: 24px;
    border-left: 2px solid #d5d5d5;
}

.category-list ul ul > li::before {
    width: 16px;
    background: #d5d5d5;
}

/* Reduce font size for nested levels */
.category-list ul .category-item {
    font-size: 0.9rem;
}

.category-list ul ul .category-item {
    font-size: 0.85rem;
}

.subcategory {
    margin-left: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.sub-subcategory {
    margin-left: 40px;
    font-size: 0.85rem;
    opacity: 0.7;
    padding: 10px 16px;
}

.sub-subcategory:hover {
    background: linear-gradient(135deg, #EBEBEB);
    color: #111111;
    transform: translateX(5px);
    border-left-color: #3f3f3e;
    box-shadow: 0 5px 15px rgba(43, 28, 0, 0.3);
}

.sub-subcategory.active {
    background: linear-gradient(120deg, #EBEBEB);
    color: #111111;
    border-left-color: #3f3f3e;
    box-shadow: 0 0px 15px rgba(43, 28, 0, 0.3);
}

.filter-section.search-sort {
    margin-bottom: 25px;
}

.search-sort .search-box,
.search-sort .sort-controls {
    margin-bottom: 15px;
}

.search-sort .search-box input,
.search-sort .sort-controls select {
    width: 90%;
    padding: 10px 12px;
    border: 0.5px solid #e2e1e1;
    border-radius: 2px;
    background: #EBEBEB;
    color: #b3afaf;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    margin-left: 13px;
}

.search-sort .search-box input:focus,
.search-sort .sort-controls select:focus {
    border-color: #633706;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.specification-filter {
    background: #EBEBEB;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    color: #f3e0b7;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    transform: translateY(-10px);
    border: 1px solid #929292;
}

.specification-filter.show {
    opacity: 1;
    max-height: 600px;
    transform: translateY(0);
}

.specification-filter h3 {
    margin: 0;
    padding: 15px 18px;
    font-size: 1rem;
    color: #DDCAA4;
    border-bottom: 1px solid #2b2924;
    background: #EBEBEB;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.spec-close-btn {
    background: none;
    border: none;
    color: #6e6658;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.spec-close-btn:hover {
    background: rgba(255, 209, 81, 0.2);
    transform: scale(1.1);
}

#specificationContent {
    padding: 15px 18px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

#specificationContent::-webkit-scrollbar {
    width: 6px;
}

#specificationContent::-webkit-scrollbar-track {
    background: #1a0f00;
    border-radius: 3px;
}

#specificationContent::-webkit-scrollbar-thumb {
    background: #31270d;
    border-radius: 3px;
}

#specificationContent::-webkit-scrollbar-thumb:hover {
    background: #c7ba96;
}

.spec-group {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 209, 81, 0.1);
    padding-bottom: 15px;
}

.spec-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-group h4 {
    font-size: 0.95rem;
    color: #b3ab98;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.spec-group h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #3a3832;
    margin-right: 8px;
    border-radius: 2px;
}

.spec-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.spec-options label {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.spec-options label:hover {
    background-color: rgba(255, 209, 81, 0.15);
    border-color: rgba(255, 209, 81, 0.3);
    transform: translateY(-1px);
}

.spec-options input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #ffd151;
    transform: scale(1.1);
    flex-shrink: 0;
}

.spec-options input[type="checkbox"]:checked + span {
    color: #ffd151;
    font-weight: 600;
}

.clear-specs {
    background: transparent;
    border: 1px solid #2b2924;
    color: #a79465;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 15px 18px 18px;
    transition: all 0.3s ease;
    width: calc(100% - 36px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clear-specs:hover {
    background: #ffd151;
    color: #2a1800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 209, 81, 0.3);
}

.clear-specs::before {
    content: '\f1f8';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}


/* Existing styles for product card */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 50px;
    padding: 20px 0;
}

.product-card {
    background: #ffffff;
    backdrop-filter: blur(10px);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e5e5;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffc65c, #e4980a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 12px 12px 0 0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

.product-card:hover::before {
    transform: scaleX(1);
}
.product-image {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #fafafa;
    padding: 20px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* --- Discount Badge --- */
.discount-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
    letter-spacing: 0.5px;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.product-name a:hover {
    color: #e4980a;
}

.product-category {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
    font-size: 0.75rem;
}

.spec-item {
    background: #f5f5f5;
    color: #555;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.spec-item:hover {
    background: #ebebeb;
    border-color: #d0d0d0;
}

.spec-tag {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #020202;
    margin-bottom: 20px;
}



.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none; /* Ensure no underline on button links */
    text-align: center;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #ffc65c);
    color: white;
    flex: 1;
}

.btn-secondary {
    background: #f0f0f0; /* Assuming a neutral background for secondary button */
    color: #2c3e50; /* Match product name color for consistency */
    flex: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e4980a);
}

.btn-secondary:hover {
    background: #e0e0e0; /* Slightly darker for hover effect */
    color: #1a2b3c; /* Match product name hover color */
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgb(63, 32, 2);
}

.no-results h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgb(63, 32, 2);
    margin-bottom: 20px;
    font-weight: 500;
}

.loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: rgb(63, 32, 2);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {  
        flex-direction: column;
        padding: 15px;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .hamburger {
        display: block;
    }

    .nav-links-wrapper {
        display: none;
        margin-top: 0;
    }

    .nav-links-wrapper.active {
        display: block;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #331f08;
        padding: 1rem;
        z-index: 10;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Product Overlay and Buttons */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-quick-view,
.btn-add-cart {
    background: linear-gradient(135deg, #200202, #220202);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 5px;
    transition: all 0.3s ease;
}

.btn-quick-view:hover,
.btn-add-cart:hover {
    background: linear-gradient(135deg, #000000, #411111);
    transform: translateY(-2px);
}

.btn-add-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Modal for Quick View */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.quick-view-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.quick-view-image img {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.quick-view-details h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.quick-view-details .category {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.quick-view-details .price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.quick-view-details .description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.quick-view-details .actions {
    display: flex;
    gap: 10px;
}

.btn-view-details {
    background: #f0f0f0;
    color: #2c3e50;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px;
    color: #721c24;
    background: #f8d7da;
    border-radius: 10px;
    margin: 20px;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.btn-retry {
    background: linear-gradient(135deg, #ffd151, #e4980a);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
}

.btn-retry:hover {
    background: linear-gradient(135deg, #e4980a, #ffd151);
    transform: translateY(-2px);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}



/* no product added by Anirban  */


.no-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-products-message h3 {
    font-size: 2rem;
    margin: 1rem 0;
    color: #333;
}

.no-products-message p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-clear-filters {
    background: #b0b2b4;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

.btn-clear-filters:hover {
    background: #888888;
}


/* -------------------------------------------------
   1. Floating button (mobile only)
   ------------------------------------------------- */
.filter-toggle-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: none;               /* hidden on desktop */
}
.filter-toggle {
    background: #331f08;
    color: #F7E3BA;
    border: none;
    border-radius: 50px;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all .3s ease;
}
.filter-toggle:hover {
    background: #4a2f0a;
    transform: translateY(-2px);
}
.filter-toggle i { font-size: 1.2rem; }

/* -------------------------------------------------
   2. Drawer (off‑canvas panel)
   ------------------------------------------------- */
.sidebar-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity .35s ease, visibility .35s ease;
    display: flex;
    flex-direction: column;
}
.sidebar-drawer.open {
    visibility: visible;
    opacity: 1;
}
.sidebar-drawer .sidebar-header {
    background: #331f08;
    color: #F7E3BA;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
}
.sidebar-drawer .drawer-close {
    background: none;
    border: none;
    color: #F7E3BA;
    font-size: 1.5rem;
    cursor: pointer;
}
.sidebar-drawer .sidebar-content {
    background: #EBEBEB;
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* Make sidebar scrollable when used inside the drawer (mobile filter) */
.sidebar-drawer .sidebar {
    display: block;                    /* ensure visible inside drawer */
    position: relative;                /* keep normal flow */
    height: 100vh;                     /* allow full viewport height */
    max-height: 100vh;                 /* prevent overflow outside viewport */
    overflow-y: auto !important;       /* enable vertical scroll */
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    padding-bottom: 64px;              /* room for floating controls */
}

/* If drawer uses a wrapper element (drawer-body), ensure it also allows scroll */
.sidebar-drawer .drawer-body,
.sidebar-drawer .sidebar-content {
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ------------------------------------------------------------------ */
@media (max-width: 480px) {
  /* ---- Layout --------------------------------------------------- */
  .container { flex-direction: column; padding: 0.75rem; gap: 1rem; }
  .sidebar { width: 100%; position: static; top:auto; border-radius: 0; box-shadow:none; }
  .main-content { padding: 0; }

  /* ---- Sidebar (now a collapsible drawer) ---------------------- */
  .sidebar { display: none; }                     /* hidden by default */
  .sidebar-drawer.open .sidebar { display: block; }/* shown when drawer opens */

  /* ---- Header / Breadcrumb -------------------------------------- */
  .header h1 { font-size: 1.4rem; }
  .breadcrumb-list { font-size: .8rem; gap: .3rem; }
  .breadcrumb-list li:not(:last-child)::after { margin:0 .25rem; }

  /* ---- Controls ------------------------------------------------- */
  .controls { flex-direction: column; gap: .75rem; padding: 1rem; }
  .search-sort .search-box input,
  .search-sort .sort-controls select { width: 100%; margin-left:0; }

  /* ---- Product Grid --------------------------------------------- */
  .product-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-card { transform:none; }               /* disable hover lift on tiny screens */
  .product-card:hover { transform:none; }

  /* ---- Footer --------------------------------------------------- */
  .footer-left, .footer-right { flex-direction: column; text-align:center; }
  .footer-contact-row { flex-direction: column; gap:1rem; }
  .footer-icons { justify-content:center; }
  .footer-right form input { margin-bottom:.5rem; }
}

/* ------------------------------------------------------------------ */
@media (min-width: 481px) and (max-width: 767px) {
  .container { flex-direction: column; padding:1rem; gap:1.5rem; }
  .sidebar { width:100%; position:static; border-radius:0; box-shadow:none; }
  .main-content { padding:0; }

  .header h1 { font-size:1.5rem; }
  .product-grid { grid-template-columns: repeat(2,1fr); gap:2rem; }
}

/* ------------------------------------------------------------------ */
@media (min-width: 768px) and (max-width: 1023px) {
  .container { padding:1.5rem; gap:2rem; }
  .sidebar { width:260px; }
  .product-grid { grid-template-columns: repeat(2,1fr); gap:2.5rem; }

  /* keep navbar hamburger hidden – it’s already hidden by default */
  .hamburger { display:none; }
}

/* ------------------------------------------------------------------ */
@media (min-width: 1024px) and (max-width: 1439px) {
  .container { max-width:1360px; padding:2rem 1.5rem; }
  .sidebar { width:280px; }
  .product-grid { grid-template-columns: repeat(3,1fr); gap:3rem; }
}

/* ------------------------------------------------------------------ */
@media (min-width: 1440px) {
  .container { max-width:1800px; }
  .sidebar { width:300px; }
  .product-grid { grid-template-columns: repeat(4,1fr); gap:1rem; }
}

/* ------------------------------------------------------------------
 *  SIDEBAR DRAWER (mobile only) – toggle via floating button
 * ------------------------------------------------------------------ */
@media (max-width: 767px) {
  /* floating filter button */
  .filter-toggle-wrapper { display:flex; }
  .filter-toggle { 
    box-shadow:0 6px 20px rgba(0,0,0,.25);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%,100%{transform:scale(1);}
    50%{transform:scale(1.08);}
  }

  /* drawer overlay */
  .sidebar-drawer {
    visibility: hidden; opacity:0;
    transition: opacity .3s ease, visibility .3s;
  }
  .sidebar-drawer.open {
    visibility: visible; opacity:1;
  }
  .sidebar-drawer .sidebar-content {
    padding:1.5rem 1rem;
    overflow-y:auto;
    max-height:calc(100vh - 60px);
  }

  /* hide the original sidebar when drawer is active */
  .sidebar { display:none; }
  .sidebar-drawer.open .sidebar { display:block; }
}

/* ------------------------------------------------------------------
 *  GENERAL TOUCH-FRIENDLY IMPROVEMENTS
 * ------------------------------------------------------------------ */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .category-item,
  .spec-options label,
  .cart-item-remove { min-height:44px; }   /* Apple HIG */
}

/* ------------------------------------------------------------------
 *  SMOOTH SCROLL FOR ANCHOR LINKS (optional but nice)
 * ------------------------------------------------------------------ */
html { scroll-behavior:smooth; }

/* ------------------------------------------------------------------
 *  HIGH-CONTRAST / REDUCED MOTION
 * ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count:1 !important;
    transition-duration: .01ms !important;
  }
}



/* =====================================================
   PRODUCT CARD – PERMANENT BUTTONS & SPEC TAGS
   ===================================================== */

/* --- Product Actions: Always Visible Buttons --- */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.product-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 16px;   
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 44px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.product-actions .btn-primary {
    background: linear-gradient(135deg, #130c00, #362403);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 198, 92, 0.25);
}

.product-actions .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffb21e, #201e1a);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 198, 92, 0.35);
}

.product-actions .btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 198, 92, 0.3);
}

.product-actions .btn-primary:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.product-actions .btn-secondary {
    background: #f8f8f8;
    color: #2c3e50;
    border: 2px solid #e5e5e5;
}

.product-actions .btn-secondary:hover {
    background: #ffffff;
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-actions .btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* --- Product Specs: Small Pills (Brand, Size, etc.) --- */
.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
    font-size: 0.78rem;
    line-height: 1.4;
}

.spec-item {
    background: #e8e8e8;
    color: #444;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid #ddd;
}

/* --- Variant Badges (Colors / Sizes count) --- */


.variant-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.variant-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid #90caf9;
    transition: all 0.2s ease;
}

.variant-badge:hover {
    background: linear-gradient(135deg, #bbdefb, #90caf9);
    transform: translateY(-1px);
}

.variant-badge i {
    font-size: 0.85rem;
}


/* --- Original Price (Strikethrough) --- */
.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 8px;
}

/* --- Product Price (Final) --- */
.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 12px 0 8px 0;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    font-weight: 500;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .product-card {
        border-radius: 10px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-name {
        font-size: 1rem;
        min-height: 40px;
    }
    
    .product-price {
        font-size: 1.4rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .product-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-image {
        height: 180px;
        padding: 16px;
    }
    
    .product-info {
        padding: 14px;
        gap: 8px;
    }
    
    .product-name {
        font-size: 0.95rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .product-actions .btn {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    
    .discount-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
        top: 12px;
        right: 12px;
    }
}