@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #f85606;
    --secondary-color: #1c0361;
    --success-color: #1CE34E;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --transition-base: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.5;
    font-family: Arial, sans-serif;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition-base);
}

.header:hover {
    box-shadow: var(--shadow-md);
}

.left-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.back-btn {
    color: var(--text-primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    transition: var(--transition-base);
    text-decoration: none;
}

.back-btn:hover {
    color: var(--primary-color);
    transform: translateX(-2px);
}

.search-form {
    flex: 1;
    max-width: 600px;
    display: flex;
    gap: 0.75rem;
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    transition: var(--transition-base);
}

.search-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(248, 86, 6, 0.1);
}

.search-form button {
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.search-form button:hover {
    background: #e64d00;
    transform: translateY(-1px);
}

.right-section {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    color: var(--text-primary);
    font-size: 1.5rem;
    position: relative;
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.cart-icon #cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 1rem;
    min-width: 1.25rem;
    text-align: center;
}

/* Flash Sales Header */
.flash-header {
    background: var(--secondary-color);
    color: white;
    width: 95%;
    margin: 1rem auto;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius-md);
    transition: var(--transition-base);
}

.flash-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.time-left {
    background: linear-gradient(135deg, var(--card-background) 0%, #f8f9fa 100%);
    padding: 1.25rem 1.5rem;
    margin: 1rem auto;
    width: 95%;
    border-radius: var(--border-radius-sm);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 18px;
    color: #e74c3c; /* Red color for urgency */
}

.time-left:before {
    content: '⏰';
    font-size: 1.25rem;
}

#time-countdown {
    font-family: 'Inter', monospace;
    background: rgba(248, 86, 6, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
}

/* Filters Bar */
.filters-bar {
    background: var(--card-background);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.filters-bar:hover {
    box-shadow: var(--shadow-md);
}

.left-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-toggle input {
    display: none;
}

.express-tag, .location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-toggle input:checked + span {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.filter-toggle span,
.dropbtn {
    position: relative;
    overflow: hidden;
}

.filter-toggle span:after,
.dropbtn:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 86, 6, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.filter-toggle span:hover:after,
.dropbtn:hover:after {
    transform: translateX(0);
}

/* Product Cards */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    width:70%;
}

.product-card {
    background: var(--card-background);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    animation: fadeIn 0.5s ease forwards;
    will-change: transform;
}

.product-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.product-card:active {
    transform: translateY(-2px) scale(0.98);
}

.product-card .image-container {
    background: #eee;
}

.product-card .sale-info h3 {
    margin-bottom: 1rem;
    border-radius: 4px;
}

.product-card .sale-info .original-price,
.product-card .sale-info .sale-price {
    width: 60%;
    margin: 0.5rem 0;
    border-radius: 4px;
}

.product-card .sale-info .original-price {
    text-decoration: line-through;
    color: red;
}

.product-card .buy-now-btn {
    background: rgb(128, 240, 128);
    color: rgb(6, 5, 82);
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
}

.image-container {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .image-container img {
    transform: scale(1.05);
}

.discount-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 1;
}

.stock-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.progress-container {
    margin: 1rem;
    background: #f0f0f0;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: shimmer 2s infinite;
}

.sale-info {
    padding: 1rem;
}

.sale-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.categories-sidebar {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.categories-sidebar h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 1.5rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.categories-sidebar ul {
    margin-bottom: 1.5rem;
}

.categories-sidebar a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-base);
}

.categories-sidebar a:hover,
.categories-sidebar a.active {
    background-color: rgba(248, 86, 6, 0.1);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        width: 75%;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem;
    }
    
    .flash-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .page-content {
        flex-direction: column;
    }
    
    .categories-sidebar {
        margin-bottom: 1rem;
    }
    
    .products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
        width: 100%;
    }
    
    .sale-info h3 {
        font-size: 0.875rem;
    }
    
    .sale-price {
        font-size: 1rem;
    }

    .time-left {
        font-size: 0.875rem;
        padding: 1rem;
    }
    
    #time-countdown {
        padding: 0.375rem 0.75rem;
    }
    
    .product-card:hover {
        transform: translateY(-3px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        width: 100%;
    }
    
    .flash-sales-container {
        padding: 0.5rem;
    }
    
    .search-form {
        display: none;
    }

    .time-left:before {
        font-size: 1rem;
    }
    
    .product-card:hover {
        transform: none;
    }
}

/* Animations */
/*@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); 
    left: 10px;
    color: black; /* Change color as needed 
    font-weight: bold;
    font-size: 12px; /* Adjust size as needed 
  }
  .no-deals-message {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}*/

/* Add these new styles */
.filters-bar {
    background: #fff;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.left-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-toggle {
    cursor: pointer;
}

.filter-toggle input {
    display: none;
}

.express-tag, .location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-toggle input:checked + span {
    background: #f85606;
    color: white;
    border-color: #f85606;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: white;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
    margin-top: 5px;
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}

.dropdown-content.show {
    transform: scaleY(1);
    opacity: 1;
}

.dropdown-content label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-content label:hover {
    background: #f5f5f5;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .filters-bar {
        padding: 10px;
        overflow-x: auto;
    }

    .left-filters {
        gap: 10px;
        flex-wrap: nowrap;
        width: max-content;
    }

    .express-tag, .location, .dropbtn {
        font-size: 12px;
        padding: 4px 10px;
        white-space: nowrap;
    }

    .dropdown-content {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 60vh;
        overflow-y: auto;
        border-radius: 15px 15px 0 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        margin-top: 0;
    }
}

.page-content {
    display: flex;
    background: #fff;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 8px;
}

.categories-sidebar h3 {
    font-size: 14px;
    color: #666;
    margin: 15px 0 10px;
}

.categories-sidebar ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.categories-sidebar li {
    margin: 8px 0;
}

.categories-sidebar a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.categories-sidebar a:hover {
    background-color: #f5f5f5;
}

.categories-sidebar a.active {
    background-color: #e0e0e0;
    font-weight: bold;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin: 10px 0;
    cursor: pointer;
}

.product-count {
    color: #666;
    font-size: 14px;
    margin-left: 10px;
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-section select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Add these additional styles */
.active-filter {
    background-color: #f85606;
    color: white;
}

.price-filter {
    padding: 15px;
    border-top: 1px solid #eee;
}

.price-range-slider {
    margin: 20px 0;
}

.noUi-connect {
    background: #f85606;
}

.price-inputs {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.price-inputs input {
    width: 45%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 15px;
    margin: 5px;
    font-size: 12px;
}

.filter-badge .remove {
    margin-left: 5px;
    cursor: pointer;
    color: #666;
}

.filter-badge .remove:hover {
    color: #f85606;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 0;
}

/* Update existing styles */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    margin-top: 5px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
    .filter-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .price-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .price-inputs input {
        width: 100%;
    }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Black Friday Theme Styles */
body.black-friday-theme {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

body.black-friday-theme .header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 2px solid #dc2626;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

body.black-friday-theme .header:hover {
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.4);
}

body.black-friday-theme .back-btn,
body.black-friday-theme .nav-link {
    color: #fff;
}

body.black-friday-theme .back-btn:hover,
body.black-friday-theme .nav-link:hover {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

body.black-friday-theme .search-form input {
    background: #2d2d2d;
    color: #fff;
    border-color: #444;
}

body.black-friday-theme .search-form input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

body.black-friday-theme .search-form button {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

body.black-friday-theme .search-form button:hover {
    background: linear-gradient(135deg, #ef4444 0%, #ff4444 100%);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
    transform: translateY(-2px);
}

body.black-friday-theme .flash-header {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 50%, #7f1d1d 100%);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4), 
                0 0 40px rgba(220, 38, 38, 0.2) inset;
    border: 2px solid #ff4444;
    position: relative;
    overflow: hidden;
}

body.black-friday-theme .flash-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

body.black-friday-theme .flash-header h1 {
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.8),
                 0 0 40px rgba(255, 68, 68, 0.4),
                 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    letter-spacing: 1px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 68, 68, 0.8),
                     0 0 40px rgba(255, 68, 68, 0.4),
                     2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 68, 68, 1),
                     0 0 60px rgba(255, 68, 68, 0.6),
                     2px 2px 4px rgba(0, 0, 0, 0.5);
    }
}

body.black-friday-theme .time-left {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #dc2626;
    color: #ff4444;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3),
                0 0 30px rgba(220, 38, 38, 0.1) inset;
    font-weight: 700;
}

body.black-friday-theme #time-countdown {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5);
    animation: pulse-countdown 1s ease-in-out infinite;
}

@keyframes pulse-countdown {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(220, 38, 38, 0.7);
    }
}

body.black-friday-theme .product-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(220, 38, 38, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.black-friday-theme .product-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: #dc2626;
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.4),
                0 0 60px rgba(220, 38, 38, 0.2),
                0 0 0 2px rgba(220, 38, 38, 0.3);
}

body.black-friday-theme .discount-tag {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5),
                0 0 20px rgba(220, 38, 38, 0.3);
    animation: bounce-discount 2s ease-in-out infinite;
}

@keyframes bounce-discount {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
    }
}

body.black-friday-theme .stock-status {
    background: rgba(220, 38, 38, 0.9);
    border: 1px solid #ff4444;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

body.black-friday-theme .progress-bar {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 50%, #ff4444 100%);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

body.black-friday-theme .sale-info {
    background: transparent;
    color: #fff;
}

body.black-friday-theme .sale-info h3 {
    color: #fff;
}

body.black-friday-theme .sale-info .original-price {
    color: #999;
}

body.black-friday-theme .sale-info .sale-price {
    color: #ff4444;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

body.black-friday-theme .buy-now-btn {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    transition: all 0.3s ease;
    border: 2px solid #ff4444;
}

body.black-friday-theme .buy-now-btn:hover {
    background: linear-gradient(135deg, #ef4444 0%, #ff4444 100%);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.6),
                0 0 30px rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
}

body.black-friday-theme .categories-sidebar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body.black-friday-theme .categories-sidebar h3 {
    color: #fff;
    border-bottom: 2px solid #dc2626;
    padding-bottom: 0.5rem;
}

body.black-friday-theme .categories-sidebar a {
    color: #ccc;
    border-left: 3px solid transparent;
}

body.black-friday-theme .categories-sidebar a:hover,
body.black-friday-theme .categories-sidebar a.active {
    background: rgba(220, 38, 38, 0.2);
    color: #ff4444;
    border-left-color: #dc2626;
}

body.black-friday-theme .page-content {
    background: transparent;
}

body.black-friday-theme .sort-section select {
    background: #2d2d2d;
    color: #fff;
    border-color: #444;
}

body.black-friday-theme .sort-section select:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

body.black-friday-theme .product-count {
    color: #ccc;
}

body.black-friday-theme .no-deals-message {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    border: 2px solid #333;
    border-radius: var(--border-radius-md);
}

body.black-friday-theme .no-deals-message h2 {
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

/* Improved General Styling */
.flash-sales-container {
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.flash-header {
    position: relative;
}

.title-section h1 {
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

@media (max-width: 768px) {
    .title-section h1 {
        font-size: 1.5rem;
    }
}

.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::after {
    opacity: 1;
}

.sale-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 0.875rem;
    opacity: 0.7;
}

.buy-now-btn {
    display: inline-block;
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    font-weight: 600;
    width: 100%;
}

.buy-now-btn:hover {
    transform: translateY(-2px);
}

/* Enhanced Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(n+7) { animation-delay: 0.7s; }