:root {
    --primary: #ff0000;
    --primary-dark: #ca7b05;
    --secondary: #ad098a;
    --accent: #F59E0B;
    --danger: #EF4444;
    --dark: #1F2937;
    --light: #F9FAFB;
    --white: #ffffff;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 0.75rem;

    /* Theme colors */
    --bg-main: var(--light);
    --bg-card: var(--white);
    --text-main: var(--dark);
    --text-muted: #6B7280;
    --border-color: var(--gray-200);
    --header-bg: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] {
    --light: #111827;
    --dark: #F9FAFB;
    --white: #1F2937;
    --gray-100: #374151;
    --gray-200: #4B5563;
    --gray-300: #6B7280;

    --bg-main: #111827;
    --bg-card: #1F2937;
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --border-color: #374151;
    --header-bg: rgba(17, 24, 39, 0.9);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    min-height: 100vh;
    line-height: 1.5;
}

input,
button,
select,
textarea {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* padding: 1rem 0; */
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease, background 0.3s ease;
}

header.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease, transform 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Aligned left for modern look */
    padding-left: 10%;
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide-content {
    position: relative;
    color: white;
    max-width: 600px;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0.9;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.hero-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

.slider-nav {
    position: absolute;
    bottom: 2rem;
    right: 4rem;
    /* Right aligned controls */
    left: auto;
    transform: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.slider-dots {
    display: flex;
    gap: 0.75rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding: 5px;
    border-radius: 8px;
}

.logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    mix-blend-mode: multiply;
    filter: contrast(1.1) brightness(1.1);
    /* Aggressively remove off-white background */
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

[data-theme="dark"] .logo img {
    mix-blend-mode: initial;
    filter: brightness(1.3) contrast(1.1);
}

/* Premium Sheen Effect */
.logo::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.logo:hover::after {
    left: 150%;
}

@media (max-width: 768px) {
    .logo img {
        height: 45px;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 45px;
    }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    background: var(--bg-card);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--primary);
}


.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    position: relative;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--dark);
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.icon-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    border-radius: 9999px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid white;
}

/* Search Bar */
.search-area {
    background: var(--bg-card);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--bg-main);
    color: var(--text-main);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: var(--bg-card);
}

.search-btn {
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Category Filter Section */
.category-filter-wrapper {
    position: relative;
    margin: 1rem 0 3rem 0;
}

.category-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    overflow-x: auto;
    padding: 1.5rem 0.5rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.category-filter::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.category-item-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 90px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.category-icon-circle {
    width: 65px;
    height: 65px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.category-item-container span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.category-item-container:hover .category-icon-circle {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

.category-item-container:hover span {
    color: var(--primary);
}

.category-item-container.active .category-icon-circle {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(var(--primary-rgb), 0.3);
}

.category-item-container.active span {
    color: var(--primary);
    font-weight: 700;
}

/* Section Header Styling */
.section-header {
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary);
    padding-left: 1.25rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

/* Products Grid */
.section-title {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: var(--gray-100);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: none;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
    line-height: 1.4;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.product-price {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 800;
}

.add-to-cart-btn {
    padding: 0.75rem 1rem;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: var(--primary);
    transform: translateY(-2px);
}

.add-to-cart-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

/* Modern Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    animation: fadeIn 0.3s;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    padding: 0;
    border-radius: 1rem;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: var(--text-main);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-main);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-300);
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--danger);
    background: var(--bg-main);
}

/* Quantity Selector Styles */
.quantity-selector {
    display: none;
    /* Hidden by default */
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.quantity-selector.active {
    display: flex;
    /* Show when active */
}

.add-cart-btn-wrapper {
    margin-top: 0.75rem;
}

.add-cart-btn-wrapper.hidden {
    display: none;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-display {
    min-width: 40px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.add-cart-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-cart-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Sticky Cart Bar Styles */
.sticky-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    padding: 1rem 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--border-color);
}

.sticky-cart-bar.active {
    transform: translateY(0);
}

.cart-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.cart-bar-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cart-bar-items {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
}

.cart-bar-items i {
    color: var(--primary);
    font-size: 1.25rem;
}

.cart-bar-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-bar-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.cart-bar-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

@media (max-width: 768px) {
    .cart-bar-content {
        gap: 1rem;
    }

    .cart-bar-info {
        gap: 1rem;
    }

    .cart-bar-total {
        font-size: 1.1rem;
    }

    .cart-bar-btn {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}

.modal-body {
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
    transition: background 0.2s;
}

.cart-item:hover {
    background: var(--light);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--gray-100);
    color: var(--dark);
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    background: transparent;
    color: var(--text-main);
}

.qty-input:focus {
    outline: none;
}

.remove-btn {
    color: var(--danger);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: var(--bg-main);
}

.remove-btn:hover {
    background: var(--danger);
    color: white;
}

.cart-total {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--light);
    border-radius: var(--radius);
    text-align: right;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.4);
}

.checkout-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.5);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--bg-card);
    color: var(--text-main);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -45%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Nav Sidebar */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-card);
    z-index: 3000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2999;
    display: none;
    backdrop-filter: blur(2px);
}

.mobile-nav a {
    padding: 1rem 2rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.mobile-nav a:hover {
    background: var(--gray-100);
    color: var(--primary);
    padding-left: 2.5rem;
}

/* Footer */
footer {
    background: #0f172a;
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
}

.footer-links a {
    display: block;
    color: #9CA3AF;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #6B7280;
    font-size: 0.875rem;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .header-content {
        flex-direction: inherit;
        gap: 1rem;
        /* padding: 1rem; */
    }

    .nav-menu {
        display: none;
    }

    /* Force 2 columns on mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Adjust card content for small screens */
    .product-info {
        padding: 0.75rem !important;
    }

    .product-name {
        font-size: 0.9rem !important;
    }

    .product-price {
        font-size: 1rem !important;
    }

    .hero-slider {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .search-container {
        flex-direction: column;
    }

    /* Mobile Cart Modal Fixes */
    .modal-content {
        width: 95%;
        padding: 0;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cart-item img {
        width: 80px;
        height: 80px;
    }
}

/* Specific override for very small screens if user insisted on 50%, 
    but usually <320px needs 1 column. 
    Assuming standard mobile (360px+) repeats 2 columns. */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .add-to-cart-btn {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
}

@media print {
    body * {
        visibility: hidden;
    }

    .invoice,
    .invoice * {
        visibility: visible;
    }

    .invoice {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .print-btn,
    .close-btn {
        display: none;
    }
}

/* Categories Page Styles */
/* Shop Layout */
.shop-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.sidebar {
    width: 25%;
    flex-shrink: 0;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.main-content {
    width: 75%;
    flex-grow: 1;
}

/* Sidebar Header */
.sidebar-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-title i {
    color: var(--primary);
    font-size: 1.25rem;
}

/* Sidebar Category Items */
.sidebar .category-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
}

.sidebar-category-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-category-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.sidebar-category-name {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.sidebar-category-arrow {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    opacity: 0;
}

.sidebar-category-item:hover {
    background: var(--bg-main);
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.sidebar-category-item:hover .sidebar-category-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.sidebar-category-item:hover .sidebar-category-name {
    color: var(--primary);
}

.sidebar-category-item:hover .sidebar-category-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.sidebar-category-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.sidebar-category-item.active .sidebar-category-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.sidebar-category-item.active .sidebar-category-name {
    color: white;
    font-weight: 600;
}

.sidebar-category-item.active .sidebar-category-arrow {
    color: white;
    opacity: 1;
}

@media (max-width: 992px) {
    .shop-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 2rem;
    }

    .main-content {
        width: 100%;
    }

    /* Mobile: Horizontal Scrolling Categories */
    .sidebar .category-filter {
        flex-direction: row !important;
        overflow-x: auto;
        gap: 1rem;
        padding: 1rem 0.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar .category-filter::-webkit-scrollbar {
        display: none;
    }

    .sidebar-category-item {
        min-width: 140px;
        flex-shrink: 0;
        flex-direction: column !important;
        text-align: center;
        padding: 0.75rem;
    }

    .sidebar-category-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.125rem;
        margin: 0 auto 0.5rem;
    }

    .sidebar-category-name {
        font-size: 0.875rem;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
    }

    .sidebar-category-arrow {
        display: none;
    }

    .sidebar-category-item:hover {
        transform: translateY(-3px);
    }

    .sidebar-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .sidebar-title {
        font-size: 1.25rem;
    }
}

/* Product Details Page Styles */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.product-image-large {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 600px;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s;
    background: var(--bg-main);
}

.product-image-large:hover {
    transform: scale(1.02);
}

.image-thumbnails {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.product-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-category-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-main);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.product-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Renamed from .quantity-selector to avoid conflict */
.product-quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.add-to-cart-action {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary);
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Content Card Styles (from contact.php/about.php) */
.content-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-main);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Badge Style (from about.php) */
.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    border-radius: 9999px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid white;
}

/* Newsletter Styles (from contact.php/about.php) */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-input {
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid #374151;
    background: #1F2937;
    color: white;
    flex: 1;
}

.newsletter-btn {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* Autocomplete Styles */
.ui-autocomplete {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 2100 !important;
    padding: 0.5rem !important;
    max-width: 400px;
}

.ui-menu-item {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 2px;
}

.ui-menu-item-wrapper {
    padding: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    color: var(--text-main) !important;
    background: transparent !important;
    border: none !important;
    transition: all 0.2s;
}

.ui-menu-item-wrapper:hover,
.ui-state-active {
    background: var(--gray-100) !important;
    color: var(--primary) !important;
    cursor: pointer;
}

.ui-autocomplete .autocomplete-img {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
}

.ui-autocomplete .autocomplete-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ui-autocomplete .autocomplete-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 2px;
}

.ui-autocomplete .autocomplete-price {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

[data-theme="dark"] .ui-autocomplete {
    background: #1F2937 !important;
    border-color: #374151 !important;
}

[data-theme="dark"] .ui-state-active {
    background: #374151 !important;
}

/* Image Zoom Modal */
.image-zoom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    cursor: zoom-out;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.zoom-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.zoom-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 2rem;
    backdrop-filter: blur(10px);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .zoom-close {
        top: 10px;
        right: 10px;
        font-size: 40px;
        width: 50px;
        height: 50px;
    }

    .zoom-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .zoom-caption {
        bottom: 20px;
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Review System Styles */
.review-section {
    margin-top: 4rem;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.review-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.review-item:hover {
    transform: translateX(10px);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info h4 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
}

.rating-stars {
    color: #FBBF24;
    /* Brighter gold */
    font-size: 1rem;
    display: flex;
    gap: 2px;
}

.review-text {
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1.05rem;
    background: rgba(var(--primary-rgb), 0.03);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
}

/* Review Form Refinement */
.submit-review-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.submit-review-section h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--dark);
    font-weight: 800;
    text-align: center;
}

.submit-review-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .submit-review-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.submit-review-form input,
.submit-review-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-review-form input:focus,
.submit-review-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

/* Premium Rating Input */
.rating-input-wrapper {
    background: var(--bg-main);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid var(--border-color);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 0.75rem;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 2rem;
    color: var(--gray-300);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rating-input label:hover,
.rating-input label:hover~label,
.rating-input input:checked~label {
    color: #FBBF24;
    transform: scale(1.2);
}

.rating-input label:active {
    transform: scale(0.9);
}

.submit-btn-premium {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(var(--primary-rgb), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.submit-btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(var(--primary-rgb), 0.4);
    filter: brightness(1.1);
}

.submit-btn-premium:active {
    transform: translateY(0);
}

.submit-btn-premium:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    box-shadow: none;
}

/* Premium Autocomplete Styles */
.ui-autocomplete {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 1rem !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0.5rem !important;
    z-index: 11000 !important;
    max-height: 400px;
    overflow-y: auto;
}

.ui-menu-item {
    border-radius: 0.75rem !important;
    margin-bottom: 2px !important;
    overflow: hidden;
}

.ui-menu-item-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 0.75rem !important;
    border: none !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
}

.ui-menu-item-wrapper.ui-state-active {
    background: rgba(var(--primary-rgb), 0.1) !important;
    color: var(--primary) !important;
    border: none !important;
}

.autocomplete-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.autocomplete-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.autocomplete-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.autocomplete-price {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

/* Modal Search Refinement */
.search-container {
    position: relative;
    display: flex;
    background: var(--bg-main);
    border-radius: 1rem;
    padding: 2px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 1rem 1.5rem !important;
    outline: none !important;
    color: var(--text-main) !important;
    font-size: 1.1rem !important;
}

.search-btn {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 0.85rem !important;
    margin: 2px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.search-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* ========== FLASH SALE & COUPON STYLES ========== */
.flash-sale-section {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin: 3rem 0;
    border: 1px solid #FEE2E2;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.05);
}

.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.flash-sale-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: #991B1B;
}

.flash-sale-title i {
    color: #DC2626;
    animation: flash-pulse 1.5s infinite;
    filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.5));
}

.flash-sale-section .product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flash-sale-section .product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #FCA5A5;
}

@keyframes flash-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.countdown-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #991B1B;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(153, 27, 27, 0.2);
}

.countdown-box {
    display: flex;
    gap: 0.4rem;
    font-family: 'Inter', sans-serif;
}

.countdown-unit {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    min-width: 2.2rem;
    text-align: center;
}

.flash-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #DC2626;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.flash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .flash-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .flash-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .flash-grid {
        grid-template-columns: 1fr;
    }

    .flash-sale-section {
        padding: 1.5rem;
    }
}

/* Flash Sale Dark Mode */
[data-theme="dark"] .flash-sale-section {
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.15) 0%, rgba(17, 24, 39, 0.8) 100%);
    border-color: rgba(153, 27, 27, 0.3);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .flash-sale-title {
    color: #FCA5A5;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

[data-theme="dark"] .flash-sale-title i {
    color: #EF4444;
}

[data-theme="dark"] .countdown-wrapper {
    background: linear-gradient(135deg, #991B1B 0%, #7F1D1D 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .countdown-unit {
    background: rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .flash-badge {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

[data-theme="dark"] .flash-grid .product-card {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .flash-grid .product-card:hover {
    background: rgba(55, 65, 81, 0.8);
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .countdown-unit {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#couponMessage {
    padding: 0.5rem;
    border-radius: 0.4rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    display: none;
}