/* DeltaMart - Modern Custom Styles */

:root {
    /* DeltaMart Neon Gradient Palette (matched with logo) */
    --primary-color: #46f0b3;   /* teal/green */
    --primary-hover: #30cfa0;
    --primary-dark: #111827;
    --secondary-color: #22d3ee; /* cyan */
    --accent-color: #facc15;    /* warm accent */
    --accent-pink: #a855f7;     /* purple/magenta */
    --accent-purple: #6366f1;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #0f172a;
    --dark-secondary: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --muted-color: #64748b;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    gap: 8px;
}

.loader span {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader span:nth-child(1) { animation-delay: -0.32s; }
.loader span:nth-child(2) { animation-delay: -0.16s; }
.loader span:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Base Styles */
body {
    font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    background-color: #020617;
    overflow-x: hidden;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Override Bootstrap Primary */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-light {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* Gradient Button */
.btn-gradient {
    /* Darker gradient so white text is clearer */
    background: linear-gradient(135deg, #020617 0%, #0f172a 40%, #111827 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-gradient:hover,
.btn-gradient:focus {
    background: linear-gradient(135deg, #020617 0%, #020617 30%, #0b1120 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.btn-gradient.btn-sm {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 50px;
}

/* Product Card Buttons - Enhanced Styling */
.product-card .btn-outline-light.btn-sm {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(15, 23, 42, 0.8);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.product-card .btn-outline-light.btn-sm:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.product-card .btn-gradient.btn-sm {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-pink) 100%);
    color: white;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(70, 240, 179, 0.4);
}

.product-card .btn-gradient.btn-sm:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--accent-pink) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(70, 240, 179, 0.6);
}

.btn-gradient.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.navbar-brand i {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: white !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

.dropdown-menu {
    background: var(--dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    color: white;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-secondary) 50%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 8rem 0 5rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-pink), var(--secondary-color));
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-purple));
    top: 50%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 30px) rotate(3deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-section h1 .highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.hero-section .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-image {
    position: relative;
    animation: hero-float 6s ease-in-out infinite;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-image img {
    filter: drop-shadow(0 30px 60px rgba(99, 102, 241, 0.4));
}

/* Glow effect behind hero image */
.hero-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: 0;
    left: 0;
    filter: blur(40px);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 4rem;
    }
}

/* Dark Section Backgrounds */
.section-dark {
    background: var(--dark-color);
    color: white;
}

.section-darker {
    background: var(--dark-secondary);
    color: white;
}

.section-gradient {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-secondary) 100%);
    position: relative;
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Product Cards - Dark Theme */
.product-card {
    background: var(--dark-secondary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--dark-color), var(--dark-secondary));
    transition: all 0.4s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.product-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.product-card .card-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    flex-grow: 1;
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card .category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(99, 102, 241, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.35rem 0.85rem;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-pink));
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Swiper Carousel */
.featured-swiper {
    padding: 20px 0 60px;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    width: 30px;
    border-radius: 6px;
}

/* Section Titles - Dark Theme */
.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    position: relative;
}

.section-title .highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Removed decorative line under section title */

/* Category Cards - Dark Theme */
.category-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
}

.category-card:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.category-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.category-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.category-card .icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.category-card h6 {
    color: white;
    font-weight: 600;
    margin: 0;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-pink), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card .icon-box {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.feature-card .icon-box.blue {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.1));
}

.feature-card .icon-box.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
}

.feature-card .icon-box.orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
}

.feature-card .icon-box.pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.1));
}

.feature-card .icon-box i {
    font-size: 2.5rem;
}

.feature-card .icon-box.blue i { color: var(--primary-color); }
.feature-card .icon-box.green i { color: var(--success-color); }
.feature-card .icon-box.orange i { color: var(--accent-color); }
.feature-card .icon-box.pink i { color: var(--accent-pink); }

.feature-card:hover .icon-box {
    transform: scale(1.1);
}

.feature-card h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.7;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin: 0;
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.category-filter .btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.category-filter .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.category-filter .btn-outline-secondary:hover,
.category-filter .btn-outline-secondary.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    border-color: transparent;
    color: white;
}

/* Product Detail Page */
.product-detail-image {
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-detail-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.product-info {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-info .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Checkout & Forms */
.checkout-card,
.auth-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.bkash-info {
    background: linear-gradient(135deg, #e2136e 0%, #d1125f 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

/* Orders Table */
.orders-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.orders-table th {
    background: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid var(--border-color);
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Admin Panel */
.admin-sidebar {
    background: var(--dark-color);
    min-height: 100vh;
    padding: 1.5rem 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.admin-content {
    background: var(--light-color);
    min-height: 100vh;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stat-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .icon.blue { background: rgba(79, 70, 229, 0.1); color: var(--primary-color); }
.stat-card .icon.green { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.stat-card .icon.orange { background: rgba(245, 158, 11, 0.1); color: var(--accent-color); }
.stat-card .icon.red { background: rgba(239, 68, 68, 0.1); color: var(--danger-color); }

.stat-card h3 {
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
    color: var(--dark-color);
}

.stat-card p {
    margin: 0;
    color: var(--muted-color);
    font-size: 0.875rem;
}

/* Placeholder Image */
.placeholder-image {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 3rem;
}

/* Utilities */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 991.98px) {
    .admin-sidebar {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .product-card .card-img-top {
        height: 150px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted-color);
}

/* Footer Dark Theme */
.footer-dark {
    background: linear-gradient(180deg, var(--dark-secondary) 0%, #0a0f1a 100%);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.footer-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-purple), transparent);
}

.footer-brand-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.5rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.footer-dark h6 {
    color: white;
    position: relative;
    display: inline-block;
}

.footer-dark h6::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-purple));
    border-radius: 2px;
}

.footer-dark ul li a {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s ease;
}

.footer-dark ul li a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

.footer-dark .payment-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
}

.footer-dark hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-dark .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer-dark .text-warning {
    color: #fbbf24 !important;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-secondary) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-secondary) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Products Section */
.products-section {
    background: var(--dark-color);
    min-height: 60vh;
}

/* Filter Card */
.filter-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.filter-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

.filter-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    border-color: transparent;
    color: white;
}

.filter-count {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.filter-item.active .filter-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Search Box Dark */
.search-box-dark .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px 0 0 12px;
    padding: 0.75rem 1rem;
}

.search-box-dark .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box-dark .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
}

.search-box-dark .btn-gradient {
    border-radius: 0 12px 12px 0;
    padding: 0.75rem 1.25rem;
}

/* Empty State */
.empty-state {
    padding: 4rem 2rem;
}

.empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Dark Pagination */
.products-section .pagination .page-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.6rem 1rem;
    margin: 0 0.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.products-section .pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.products-section .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    border-color: transparent;
    color: white;
}

.products-section .pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.3);
}

/* Product Detail Dark Theme */
.product-detail-section {
    background: var(--dark-color);
    min-height: 80vh;
}

.product-detail-image-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    padding: 1rem;
}

.product-detail-image-dark img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
}

.placeholder-image-dark {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 4rem;
}

.product-info-dark {
    padding: 1.5rem;
}

.breadcrumb-dark .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.breadcrumb-dark .breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-dark .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}

.badge-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    color: white;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.price-large {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.alert-success-dark {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.alert-success-dark .alert-link {
    color: #34d399;
}

.how-to-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.related-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Auth Section Dark Theme */
.auth-section {
    background: var(--dark-color);
    min-height: calc(100vh - 200px);
}

.auth-card-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

/* Checkout Section Dark Theme */
.checkout-section {
    background: var(--dark-color);
    min-height: calc(100vh - 200px);
}

.checkout-card-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

/* Dark Form Controls */
.input-group-dark .input-group-text {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    color: rgba(255, 255, 255, 0.5);
}

.input-group-dark .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    color: white;
}

.input-group-dark .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
}

.input-group-dark .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.checkout-card-dark .form-control,
.auth-card-dark .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 10px;
}

.checkout-card-dark .form-control:focus,
.auth-card-dark .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
    color: white;
}

.checkout-card-dark .form-control::placeholder,
.auth-card-dark .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control-dark {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.form-control-dark:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary-color) !important;
}

/* Dark Alerts */
.checkout-card-dark .alert-info,
.auth-card-dark .alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-radius: 12px;
}

.checkout-card-dark .alert-danger,
.auth-card-dark .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    border-radius: 12px;
}

.checkout-card-dark .alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    border-radius: 12px;
}

/* Success Icon */
.checkout-card-dark .icon-circle {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
}

/* Orders Section Dark Theme */
.orders-section {
    background: var(--dark-color);
    min-height: calc(100vh - 200px);
}

.orders-table-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.orders-table-dark .table {
    margin-bottom: 0;
}

.orders-table-dark .table thead th {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
}

.orders-table-dark .table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.orders-table-dark .table tbody tr:last-child td {
    border-bottom: none;
}

.orders-table-dark code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #fbbf24;
}

.empty-state-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 3rem;
}

.status-legend-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
}

/* Dark Navbar */
.navbar-dark-custom {
    background: rgba(15, 23, 42, 0.82) !important;
    backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
}

.navbar-dark-custom .navbar-brand {
    color: white !important;
}

.navbar-dark-custom .brand-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-dark-custom .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.navbar-dark-custom .nav-link:hover {
    color: white !important;
}

/* Explicit active state so it never goes black */
.navbar-dark-custom .nav-link.active,
.navbar-dark-custom .nav-link.show,
.navbar-dark-custom .nav-link[aria-current="page"] {
    color: #ffffff !important;
    font-weight: 600;
}

.navbar-dark-custom .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-dark-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-search .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    color: white;
    border-radius: 8px 0 0 8px;
    padding: 0.5rem 1rem;
}

.nav-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.nav-search .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: none;
}

.nav-search .btn-gradient {
    border-radius: 0 8px 8px 0;
    padding: 0.5rem 0.75rem;
}

/* DeltaMart Logo */
.dm-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.6));
}

.dm-logo-text {
    font-weight: 800;
    letter-spacing: 0.03em;
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== New Global Glass Header + Mobile Sidebar ===== */

.dm-header {
    background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.25), transparent 55%),
                radial-gradient(circle at top right, rgba(168, 85, 247, 0.22), transparent 55%),
                rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.75);
    padding: 0.65rem 0;
    z-index: 1040;
}

.dm-brand span {
    color: #fff;
}

.dm-nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1rem;
}

.dm-nav-links a,
.dm-link-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.dm-nav-links a:hover,
.dm-link-btn:hover {
    color: #fff;
    background: rgba(15, 23, 42, 0.75);
}

.dm-nav-links a.active {
    color: #0f172a;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
}

.dm-has-dropdown {
    position: relative;
}

.dm-has-dropdown:hover .dm-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dm-dropdown {
    position: absolute;
    top: 115%;
    left: 0;
    min-width: 220px;
    background: rgba(15, 23, 42, 0.97);
    border-radius: 16px;
    padding: 0.4rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    z-index: 1050;
}

.dm-dropdown a {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dm-dropdown a:hover {
    background: rgba(30, 64, 175, 0.7);
    color: #fff;
}

.dm-nav-search .form-control {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

.dm-user-btn {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.75);
    color: #e5e7eb;
    padding: 0.35rem 0.9rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.dm-user-btn:hover {
    background: rgba(15, 23, 42, 0.95);
}

.dm-login-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
}

.dm-login-link:hover {
    color: #fff;
}

.dm-mobile-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.7);
}

.dm-mobile-toggle i {
    font-size: 1.35rem;
}

.dm-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1054;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.dm-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dm-mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 80%;
    height: 100vh;
    background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.25), transparent 55%),
                radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.25), transparent 55%),
                rgba(15, 23, 42, 0.98);
    border-right: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: 18px 0 50px rgba(15, 23, 42, 0.95);
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
    z-index: 1056;
    padding: 1.1rem 1.1rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.dm-mobile-sidebar.active {
    transform: translateX(0);
}

.dm-sidebar-header {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    margin-bottom: 1rem;
}

.dm-close-btn {
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 1.1rem;
}

.dm-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.dm-auth-actions .btn {
    border-radius: 999px;
    font-weight: 600;
}

.dm-auth-actions .btn-outline-light {
    border-width: 1px;
}

.dm-sidebar-nav a {
    display: block;
    padding: 0.55rem 0.4rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.dm-sidebar-nav a.active,
.dm-sidebar-nav a:hover {
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
}

@media (min-width: 992px) {
    .dm-mobile-toggle,
    .dm-mobile-sidebar,
    .dm-sidebar-overlay {
        display: none !important;
    }
}

/* Glass header & footer helpers */
.dm-glass-header {
    background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.25), transparent 55%),
                radial-gradient(circle at top right, rgba(168, 85, 247, 0.22), transparent 55%),
                rgba(15, 23, 42, 0.85) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.45);
}

.dm-glass-footer {
    background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 60%),
                radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.16), transparent 60%),
                rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 -20px 50px rgba(15, 23, 42, 0.9);
}

/* Section Dark Themes */
.section-dark {
    background: var(--dark-color);
}

.section-darker {
    background: var(--dark-secondary);
}

.section-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
}

/* Preloader Hidden State */
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Card Image Wrapper */
.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-img-wrapper .card-img-top {
    transition: transform 0.4s ease;
}

.product-card:hover .card-img-wrapper .card-img-top {
    transform: scale(1.05);
}

/* Responsive fixes */
@media (max-width: 991.98px) {
    .nav-search {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .nav-search .form-control {
        border-radius: 8px 0 0 8px;
    }
    
    .hero-section {
        padding: 4rem 0 3rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .stat-item h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* ===== Mobile Responsive Fixes ===== */
@media (max-width: 767.98px) {
    /* Header adjustments */
    .dm-header {
        padding: 0.5rem 0;
    }

    .dm-brand {
        font-size: 0.9rem;
    }

    .dm-logo {
        height: 32px;
        width: 32px;
    }

    .dm-logo-text {
        font-size: 1.1rem;
    }

    /* Main content padding for fixed header */
    main {
        padding-top: 4rem !important;
        margin-top: 0 !important;
    }

    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Cards */
    .product-card,
    .category-card,
    .feature-card,
    .checkout-card,
    .order-summary-card {
        margin-bottom: 1.5rem;
    }

    /* Tables */
    .table-responsive {
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Forms */
    .form-control-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Payment options */
    .payment-options {
        flex-direction: column;
        gap: 0.75rem;
    }

    .payment-option {
        width: 100%;
    }

    /* Footer */
    .dm-glass-footer {
        padding: 2.5rem 0 1.5rem;
    }

    .dm-glass-footer .row > div {
        margin-bottom: 2rem;
    }

    /* Product cards grid */
    .row.g-4 > [class*="col-"] {
        margin-bottom: 1.5rem;
    }

    /* Section titles */
    .section-title {
        font-size: 1.75rem;
    }

    .display-5,
    .display-6 {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    /* Extra small devices */
    .dm-header {
        padding: 0.4rem 0;
    }

    .dm-mobile-toggle {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    main {
        padding-top: 3.5rem !important;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }

    .checkout-card,
    .order-summary-card {
        padding: 1.25rem 1rem;
    }

    .product-preview {
        flex-direction: column;
        text-align: center;
    }

    .product-preview img {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    /* Product detail page */
    .product-detail-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .product-detail-image-dark,
    .product-info-dark {
        margin-bottom: 2rem;
    }

    .product-info-dark h1 {
        font-size: 1.5rem;
    }

    .price-large {
        font-size: 1.75rem;
    }

    /* My orders page */
    .orders-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .orders-table-dark .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .orders-table-dark table {
        min-width: 800px;
        font-size: 0.85rem;
    }

    .orders-table-dark th,
    .orders-table-dark td {
        padding: 0.75rem 0.5rem;
    }

    .orders-table-dark code {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }

    /* Products grid */
    .products-grid .row.g-4 > [class*="col-"] {
        margin-bottom: 1.5rem;
    }

    /* Page header */
    .page-header {
        padding: 3rem 0 2rem !important;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    /* Category filter */
    .category-filter {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .category-filter .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    /* Product Card Buttons - Mobile */
    .product-card .btn-outline-light.btn-sm,
    .product-card .btn-gradient.btn-sm {
        padding: 0.55rem 1.25rem;
        font-size: 0.9rem;
    }

    .product-card .d-flex.gap-2 {
        gap: 0.75rem !important;
    }
}

@media (max-width: 575.98px) {
    .product-card .btn-outline-light.btn-sm,
    .product-card .btn-gradient.btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .product-card .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
}
