/* Award-Winning E-Commerce Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Premium Color Palette */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    
    /* Gradient System */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warning: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Semantic Colors */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    
    /* Neutral Palette */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing System */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    
    /* Animations */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glass Morphism */
    --glass-backdrop: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Minimalist theme overrides removed to enforce light theme */

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Layout containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

/* Minimal footer */
.site-footer {
    background: white;
    border-top: 1px solid var(--gray-200);
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    padding: var(--space-2xl) 0;
}

.site-footer .footer-title {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.site-footer .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.site-footer a {
    color: var(--gray-600);
}

.site-footer a:hover {
    color: var(--primary-600);
}

.footer-tagline {
    color: var(--gray-600);
}

.footer-form {
    display: flex;
    gap: 0.5rem;
}

.footer-form input[type="email"] {
    flex: 1;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: var(--space-sm);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--gray-100);
    color: var(--gray-600);
    font-size: 0.9rem;
}

.footer-bottom .footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 992px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-form {
        flex-direction: column;
    }
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    /* Mobile footer padding */
    .site-footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .site-footer .footer-grid {
        padding: 1.5rem 0;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-800);
    background: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Premium Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 2rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

.display-1 { font-size: 5rem; font-weight: 900; }
.display-2 { font-size: 4.5rem; font-weight: 800; }
.display-3 { font-size: 4rem; font-weight: 800; }
.display-4 { font-size: 3.5rem; font-weight: 700; }

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Premium Link Styles */
a {
    color: var(--primary-600);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--primary-700);
    text-decoration: none;
}

/* HTMX Loading States */
.htmx-request {
    opacity: 0.7;
    transition: opacity 0.3s ease-in-out;
}

.htmx-request .spinner-border {
    display: inline-block !important;
}

/* Loading Spinner */
.spinner-border {
    display: none;
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
}

/* Add to Cart Button Enhancements */
.add-to-cart-btn {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.add-to-cart-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.add-to-cart-btn .btn-text,
.add-to-cart-btn .btn-spinner {
    transition: all var(--transition-fast);
}

.add-to-cart-btn.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #dc2626;
}

.add-to-cart-btn.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: #b91c1c;
}

/* Award-Winning Product Cards */
.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    position: relative;
    overflow: visible;
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
    pointer-events: none;
}

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

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.3);
}

.product-card .card-body {
    position: relative;
    z-index: 2;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .card-title {
    margin-bottom: var(--space-sm);
    line-height: 1.3;
    min-height: 2.2rem; /* Ensures consistent title height */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.product-card .card-text {
    flex-grow: 1;
    margin-bottom: var(--space-lg);
}

.product-card .mt-auto {
    margin-top: auto !important;
}

.product-image {
    height: 140px;
    object-fit: cover;
    background: #ffffff;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    background: #ffffff;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.product-card:hover .product-image::after {
    transform: translateX(100%);
}

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

/* Product Badges with Premium Styling */
.product-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    z-index: 4;
}

/* Layering fixes for Bootstrap components over custom cards */
.navbar .dropdown-menu {
    z-index: 1100; /* above cards and sidebar */
}

/* Ensure cart sidebar is above navbar and other elements */
#cartOffcanvas {
    z-index: 1050 !important;
}

#cartOffcanvas .offcanvas-header {
    z-index: 1051;
    position: relative;
}

#cartOffcanvas .offcanvas-body {
    z-index: 1050;
    position: relative;
}

/* Theme toggle removed */

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: var(--space-xs);
    display: block;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.6s ease-out;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52) !important;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffd93d, #ff9f43) !important;
    color: var(--gray-800);
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.4);
}

.badge.bg-success {
    background: linear-gradient(135deg, #6bcf7f, #4d9559) !important;
    color: white;
    box-shadow: 0 4px 15px rgba(107, 207, 127, 0.4);
}

/* Glass Morphism Elements */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
}

.hero-stats {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* Premium Gradients */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-secondary {
    background: var(--gradient-secondary) !important;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
}

.bg-gradient-warning {
    background: var(--gradient-warning) !important;
}

.bg-gradient-dark {
    background: var(--gradient-dark) !important;
}

/* Removed duplicate product-image rule - consolidated above */

.product-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-600);
}

.product-old-price {
    text-decoration: line-through;
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Cart Styles */
.cart-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-total {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    padding: 0.25rem;
}

/* Search and Filters */
.search-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-sidebar {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

/* Order Status Badges */
.status-pending { background-color: var(--warning-color); }
.status-confirmed { background-color: var(--info-color); }
.status-processing { background-color: var(--primary-color); }
.status-shipped { background-color: var(--success-color); }
.status-delivered { background-color: var(--success-color); }
.status-cancelled { background-color: var(--danger-color); }
.status-refunded { background-color: var(--secondary-color); }

/* Payment Status Badges */
.payment-pending { background-color: var(--warning-color); }
.payment-completed { background-color: var(--success-color); }
.payment-failed { background-color: var(--danger-color); }
.payment-refunded { background-color: var(--info-color); }

/* Premium Button System */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    text-transform: none;
    letter-spacing: 0.025em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--primary-600);
    color: white;
    border: none;
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    background: var(--primary-700);
    color: white;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-color);
    color: white;
    border: none;
    transition: all var(--transition-normal);
}

.btn-success:hover {
    background: #059669;
    color: white;
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
    border: none;
    transition: all var(--transition-normal);
}

.btn-warning:hover {
    background: #d97706;
    color: white;
    transform: translateY(-1px);
}

.btn-outline-primary {
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid var(--primary-600);
    color: var(--primary-600);
    backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Premium Form Styles */
.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all var(--transition-normal);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-control:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
}

.form-floating > .form-control {
    border-radius: var(--radius-lg);
}

.form-floating > label {
    color: var(--gray-500);
    font-weight: 500;
}

.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* Alert Animations */
.alert {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Pagination */
.pagination .page-link {
    border-radius: 0.5rem;
    margin: 0 0.2rem;
    border: none;
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Home Page Pagination Styles */
.pagination-container {
    background: transparent;
    padding: 1.5rem;
    margin-top: 2rem;
}

.pagination-info {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.pagination-controls .btn {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--gray-200);
    background: white;
    color: var(--gray-700);
}

.pagination-controls .btn:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.pagination-controls .btn:active {
    transform: translateY(0);
}

.pagination-controls span {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination-container {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination-controls .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Admin Styles */
.admin-sidebar {
    background: var(--dark-color);
    min-height: calc(100vh - 76px);
    padding: 2rem 1rem;
}

/* Admin Pagination Styles */
.admin-page .pagination {
    margin-bottom: 0;
}

.admin-page .pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-page .pagination .page-link:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-700);
    transform: translateY(-1px);
}

.admin-page .pagination .page-item.active .page-link {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
}

.admin-page .pagination .page-item.disabled .page-link {
    color: var(--gray-400);
    background: var(--gray-100);
    border-color: var(--gray-200);
}

.admin-page .per-page-selector {
    display: flex;
    align-items: center;
}

.admin-page .per-page-selector .form-select {
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    min-width: 60px;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

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

/* Statistics Cards */
.stat-card {
    background: var(--primary-600);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    border: none;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card.success {
    background: var(--success-color);
}

.stat-card.warning {
    background: var(--warning-color);
}

.stat-card.info {
    background: var(--info-color);
}

/* Home Page Layout */
.home-layout {
    display: flex;
    min-height: auto;
    max-width: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: white;
    padding: 24px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: relative;
    height: auto;
    overflow: visible;
    top: auto;
    left: auto;
    z-index: 1000;
    border-radius: 12px;
    margin: 16px;
}

/* Adjust main content to account for fixed sidebar */
.main-content {
    flex: 1;
    padding: 16px;
    margin-left: 0;
    padding-top: 16px;
    position: relative;
    min-height: calc(100vh - 76px);
    width: 100%;
    box-sizing: border-box;
}

.section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    position: relative;
    text-transform: uppercase;
}

/* Search Section */
.search-container {
    position: relative;
    padding: 0;
    margin: 0;
    background: none;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    line-height: 1.4;
    box-sizing: border-box;
    box-shadow: none;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-500);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input:hover {
    border-color: var(--gray-300);
}

.search-input:focus + .search-icon {
    color: var(--primary-500);
    opacity: 0.7;
}

.search-input:hover + .search-icon {
    color: var(--gray-500);
    opacity: 0.7;
}

.search-input::placeholder {
    color: var(--gray-400);
    font-size: 13px;
    font-weight: 400;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    opacity: 0.6;
    color: var(--gray-400);
    transition: all 0.2s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 1px;
}

/* Category Dropdown */
.select-container {
    position: relative;
}

.category-select,
.product-type-select {
    width: 100%;
    padding: 10px 12px 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
    color: var(--gray-700);
}

.category-select:focus,
.product-type-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.product-type-select {
    background: white;
    border-color: var(--gray-200);
}

.product-type-select:hover {
    border-color: var(--gray-300);
    background: white;
}

.product-type-select option {
    padding: 8px 12px;
    font-size: 14px;
    background: white;
    color: var(--gray-700);
}

.product-type-select option:hover {
    background-color: #f8fafc;
}

/* Enhanced Product Type Section */
.section:has(.product-type-select) {
    position: relative;
}

/* Product Type Select Animation */
.product-type-select {
    transform: translateY(0);
    transition: all 0.2s ease;
}

.product-type-select:focus {
    transform: translateY(-1px);
}

/* Product Type Options Styling */
.product-type-select option[value="featured"] {
    background: white;
    color: var(--gray-700);
    font-weight: 500;
}

.product-type-select option[value="quick_sale"] {
    background: white;
    color: var(--gray-700);
    font-weight: 500;
}

.product-type-select option[value="new_arrival"] {
    background: white;
    color: var(--gray-700);
    font-weight: 500;
}

/* Responsive Product Type Select */
@media (max-width: 768px) {
    .search-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 12px 12px 38px;
    }
    
    .search-icon {
        width: 16px;
        height: 16px;
        left: 14px;
    }
    
    .product-type-select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px 40px 14px 15px;
    }
    
    .section:has(.product-type-select)::before {
        display: none; /* Disable hover effects on mobile */
    }
    
    .product-type-select:focus {
        transform: none; /* Disable transform on mobile */
    }
}

/* Dark mode support for product type select */
@media (prefers-color-scheme: dark) {
    .product-type-select {
        background-image: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .product-type-select:hover {
        border-color: #64748b;
        background-image: linear-gradient(135deg, #334155 0%, #475569 100%);
    }
    
    .product-type-select option {
        background: #1e293b;
        color: #e2e8f0;
    }
    
    .product-type-select option:hover {
        background-color: #334155;
    }
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    pointer-events: none;
}

/* Price Range */
.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 8px 6px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    background: white;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.price-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.price-separator {
    color: #666;
    font-weight: 600;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ddd;
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: #3498db;
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch.active .toggle-knob {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 14px;
    color: #666;
}

/* Sort Options */
.sort-option {
    margin-bottom: 15px;
}

.sort-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s ease;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Clear Filters Button */
.clear-filters {
    width: 100%;
    padding: 8px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.clear-filters:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-700);
    transform: translateY(-1px);
}

/* Clear Filters Button (alternative class for products page) */
.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.25px;
}

.clear-filters-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-700);
    transform: translateY(-1px);
    text-decoration: none;
}

.quick-sale-badge {
    position: absolute;
    top: 20px;
    right: 30px;
    background: #f39c12;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.products-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 0;
}

/* Enhanced Product Cards for Sidebar Layout */
.products-grid .product-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-grid .product-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.products-grid .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.products-grid .product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

/* Specific badge styles for different types */
.products-grid .new-arrival-badge {
    background: linear-gradient(135deg, #6bcf7f, #4d9559);
    box-shadow: 0 2px 8px rgba(107, 207, 127, 0.3);
}

.products-grid .quick-sale-badge {
    background: linear-gradient(135deg, #ffd93d, #ff9f43);
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(255, 217, 61, 0.3);
}

.products-grid .product-image {
    width: 100%;
    height: 140px;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    position: relative;
}

.products-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    padding: 8px;
    background: #ffffff;
}

.default-product-image {
    background: #f8f9fa !important;
    color: #6c757d !important;
    flex-direction: column;
    gap: 8px;
}

.default-product-image i {
    font-size: 2.5rem;
    opacity: 0.7;
}

.default-product-image span {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    line-height: 1.2;
}

/* Sale Ribbon */
.sale-ribbon {
    position: absolute;
    top: 15px;
    right: -5px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    transform: rotate(15deg);
}

.sale-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 5px solid #c0392b;
}

.sale-ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    right: -5px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 5px solid #c0392b;
}

/* Quick Sale Ribbon */
.quick-sale-ribbon {
    position: absolute;
    top: 15px;
    right: -5px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
    transform: rotate(15deg);
}

.quick-sale-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 5px solid #e67e22;
}

.quick-sale-ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    right: -5px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 5px solid #e67e22;
}

/* Featured Ribbon */
.featured-ribbon {
    position: absolute;
    top: 15px;
    right: -5px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    transform: rotate(15deg);
}

.featured-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 5px solid #2980b9;
}

.featured-ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    right: -5px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 5px solid #2980b9;
}

/* New Arrival Ribbon */
.product-card .new-arrival-ribbon,
.new-arrival-ribbon {
    position: absolute;
    top: 15px;
    right: -5px;
    left: auto;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    transform: rotate(15deg);
}

.new-arrival-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 5px solid #c0392b;
}

.new-arrival-ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    right: -5px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 5px solid #c0392b;
}

.products-grid .product-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.products-grid .product-title a {
    color: inherit;
    text-decoration: none;
}

.products-grid .product-title a:hover {
    color: #3498db;
}

.products-grid .product-info {
    font-size: 12px;
    color: #3498db;
    margin-bottom: 15px;
}

.products-grid .product-price {
    font-size: 14px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 15px;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    padding: 15px;
    margin-top: 0;
}

/* Responsive Design for Sidebar Layout */
@media (max-width: 768px) {
    .home-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        order: 2;
        padding: 16px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        top: auto;
        margin-top: 0;
        margin: 8px;
        border-radius: 8px;
        display: none; /* Initially hidden on mobile */
    }
    
    .sidebar.show {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    .main-content {
        order: 1;
        margin-left: 0;
        margin-top: 0;
        padding: 20px;
        padding-top: 20px;
        width: 100%;
    }
    
    .mobile-filter-toggle {
        margin-top: 0;
        padding: 15px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .quick-sale-badge {
        position: relative;
        display: inline-block;
        margin-bottom: 20px;
        top: 0;
        right: 0;
    }

    .products-grid {
        margin-top: 20px;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 12px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .products-grid .product-card {
        padding: 10px;
        min-height: 260px;
    }
    
    .products-grid .product-image {
        height: 100px;
        margin-bottom: 8px;
    }
    
    .product-card .card-title {
        font-size: 0.85rem;
        min-height: 1.8rem;
    }
    
    .product-card .card-body {
        padding: var(--space-sm);
    }
    
    .product-card .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .sidebar {
        padding: 12px;
        margin: 4px;
    }
    
    .main-content {
        padding: 15px;
    }

    .price-range {
        flex-direction: column;
        gap: 8px;
    }

    .price-separator {
        display: none;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .quantity-controls {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Dark Mode Support removed */

/* Custom HTMX Indicators */
.htmx-indicator {
    opacity: 0;
    transition: opacity 500ms ease-in;
}

.htmx-request .htmx-indicator {
    opacity: 1;
}

.htmx-request.htmx-indicator {
    opacity: 1;
}

/* Advanced Animations & Micro-interactions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.5); }
    50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.8), 0 0 30px rgba(99, 102, 241, 0.4); }
}

/* Smooth transitions for HTMX swaps */
.htmx-settling {
    transition: all var(--transition-slow);
}

.htmx-swapping {
    opacity: 0;
    transform: scale(0.95);
    transition: all var(--transition-normal);
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Hover Effects */
.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-scale {
    transition: transform var(--transition-normal);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow:hover {
    animation: glow 2s infinite;
}

/* Floating Animation */
.floating {
    animation: float 3s ease-in-out infinite;
}

/* Stagger Animation for Lists */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Premium Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-normal);
    z-index: 1030;
    position: sticky;
    top: 0;
    padding: 0.75rem 0;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(25px);
}

/* Enhanced Brand Styling */
.navbar-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.75rem;
    text-decoration: none !important;
    transition: all var(--transition-fast);
    padding: 0.5rem 0;
}

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

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    font-size: 1.5rem;
    color: var(--primary-600);
}

/* Enhanced Navigation Links */
.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    transition: all var(--transition-fast);
    position: relative;
    padding: 0.75rem 1rem !important;
    border-radius: var(--radius-md);
    margin: 0 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2rem);
}

.nav-link:hover {
    color: var(--primary-600) !important;
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
}

/* Enhanced Dropdowns */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    margin-top: 0.5rem;
    min-width: 280px;
}

.dropdown-menu-categories {
    min-width: 320px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition-fast);
    border-radius: 0;
}

.dropdown-item i {
    width: 1.2rem;
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-50) 0%, rgba(99, 102, 241, 0.08) 100%);
    color: var(--primary-700);
    transform: translateX(4px);
}

.dropdown-item:hover i {
    color: var(--primary-600);
}

.dropdown-header {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
}

.dropdown-divider {
    margin: 0.75rem 1rem;
    border-color: var(--gray-200);
}

/* Enhanced Search Bar */
.navbar-search {
    max-width: 400px;
    position: relative;
    margin: 0 auto;
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Navbar Layout */
.navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-nav {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
}

.search-form {
    position: relative;
}

.search-input-group {
    background: rgba(248, 250, 252, 0.8);
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.search-input-group:focus-within {
    background: white;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.search-input {
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--gray-800);
    outline: none;
    box-shadow: none;
}

.search-input::placeholder {
    color: var(--gray-500);
    font-weight: 400;
}

.btn-search {
    border: none;
    background: var(--primary-600);
    color: white;
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
    border-radius: 0;
}

.btn-search:hover {
    background: var(--primary-700);
    color: white;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1100;
    max-height: 320px;
    overflow-y: auto;
    margin-top: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
}

.search-suggestions-list {
    padding: 0.25rem 0;
}

.suggestion-item {
    display: block;
    padding: 0.4rem 0.75rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    background: rgba(99, 102, 241, 0.04);
    text-decoration: none;
    color: inherit;
    transform: translateX(2px);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-image {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-100);
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.suggestion-image-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    flex-shrink: 0;
    font-size: 0.65rem;
}

.suggestion-details {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.125rem;
    font-size: 0.7rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggestion-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.suggestion-price {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.current-price {
    font-weight: 600;
    color: var(--primary-600);
    font-size: 0.65rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--gray-500);
    font-size: 0.6rem;
}

.suggestion-category {
    font-size: 0.55rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(0, 0, 0, 0.04);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-weight: 500;
}

.suggestion-footer {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(99, 102, 241, 0.02);
}

.view-all-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    color: var(--primary-600);
    font-weight: 500;
    font-size: 0.7rem;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.view-all-results:hover {
    color: var(--primary-700);
    text-decoration: none;
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
}

.view-all-results i {
    font-size: 0.75rem;
}

.search-suggestions-empty {
    padding: 0.75rem;
    text-align: center;
}

/* Enhanced Cart Link */
.cart-link {
    position: relative;
    padding: 0.75rem !important;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.cart-link:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary-600) !important;
    transform: translateY(-1px);
}

.cart-badge {
    top: -0.25rem;
    right: -0.25rem;
    font-size: 0.75rem;
    min-width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.cart-badge:empty {
    display: none;
}

/* Enhanced User Menu */
.user-menu-toggle {
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.user-menu-toggle:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary-600) !important;
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
    color: var(--primary-600);
}

.user-dropdown {
    min-width: 280px;
    padding: 0.5rem 0;
}

.user-dropdown .dropdown-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    margin: 0 0 0.5rem 0;
    border-radius: var(--radius-lg);
}

/* Login/Register Buttons */
.login-link {
    padding: 0.625rem 1.25rem !important;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.login-link:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary-600) !important;
}

.register-btn {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    background: var(--gradient-primary);
    border: none;
    transition: all var(--transition-fast);
    margin-left: 0.5rem;
}

.register-btn:hover {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-900) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Mobile Navigation Enhancements */
.navbar-toggler {
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.navbar-toggler:hover {
    background: rgba(99, 102, 241, 0.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.mobile-search {
    padding: 1rem 0 0.5rem;
    border-top: 1px solid var(--gray-200);
}

.mobile-search .input-group {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-search .form-control {
    border: none;
    background: var(--gray-50);
    padding: 0.875rem 1rem;
}

.mobile-search .btn {
    border: none;
    padding: 0.875rem 1.25rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-brand .brand-text {
        display: none;
    }
    
    .navbar-nav {
        padding-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 0 !important;
        margin: 0;
        border-radius: 0;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .user-menu-toggle {
        padding: 0.75rem 0 !important;
    }
    
    .user-name {
        display: inline !important;
    }
    
    .register-btn {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .dropdown-menu {
        min-width: 250px;
    }
    
    .user-dropdown {
        min-width: 250px;
    }
}

/* Premium Cards */
.card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .display-1 { font-size: 3rem; }
    .display-4 { font-size: 2.5rem; }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .products-grid .product-card {
        padding: 12px;
        min-height: 280px;
    }
    
    .products-grid .product-image {
        height: 120px;
        margin-bottom: 10px;
    }
    
    .product-card .card-title {
        font-size: 0.9rem;
        min-height: 2rem;
    }
    
    .product-card .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .product-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
    }
}

/* Immersive Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-bg {
    background: var(--gradient-primary);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
    animation: float 6s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(168, 85, 247, 0.3) 0%, transparent 50%);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85);
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-stats-container {
    z-index: 2;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-1 {
    top: 10%;
    right: 10%;
    animation: float 4s ease-in-out infinite;
}

.floating-2 {
    bottom: 20%;
    right: 25%;
    width: 40px;
    height: 40px;
    animation: float 5s ease-in-out infinite reverse;
}

.floating-3 {
    top: 40%;
    right: 5%;
    width: 30px;
    height: 30px;
    animation: float 3s ease-in-out infinite;
}

.scroll-indicator {
    z-index: 10;
}

.scroll-arrow {
    opacity: 0.7;
    transition: opacity var(--transition-normal);
}

.scroll-arrow:hover {
    opacity: 1;
}

/* Dark theme variables/selectors removed */

/* Advanced Loading States */
.skeleton-card {
    background: var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    height: 1rem;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }
.skeleton-text.w-25 { width: 25%; }

/* Minimalist Design System */
.minimal-hero {
    background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 100%);
    padding: var(--space-3xl) 0 var(--space-2xl);
    border-bottom: 1px solid var(--gray-100);
}

/* Modern Profile Page */
.modern-profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    background: #fafafa;
    min-height: 100vh;
}

/* Hero Section */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.profile-avatar-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.avatar-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.avatar-wrapper:hover {
    transform: scale(1.05);
}

/* Profile Image Classes - Consistent Sizing */
.profile-image-modern {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    border: 2px solid #f1f5f9;
}

.profile-image-small {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
}

.profile-image-medium {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
}

.profile-image-large {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    border: 3px solid #f1f5f9;
}

.profile-image-xl {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    border: 4px solid #f1f5f9;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 2rem;
}

.avatar-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    font-size: 1.5rem;
}

.upload-btn-modern {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: fit-content;
}

.upload-btn-modern:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.profile-info-modern {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0.5rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.4rem 0;
    line-height: 1.2;
}

.profile-email {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 0.75rem 0;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f0f9ff;
    color: #0369a1;
    padding: 0.3rem 0.6rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

/* Profile Details */
.profile-details {
    margin-bottom: 1.5rem;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.details-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.edit-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #667eea;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.profile-form {
    margin-bottom: 1rem;
}

.profile-input,
.profile-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    background: white;
    transition: all 0.3s ease;
}

.profile-input:focus,
.profile-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.profile-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.cancel-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.save-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.save-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Product Image Upload Styles */
.image-preview-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-preview-wrapper img {
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.image-preview-wrapper .btn {
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.image-preview-wrapper .btn:hover {
    opacity: 1;
}

/* Product form enhancements */
.form-text {
    font-size: 0.8rem;
    color: #6c757d;
}

.input-group .btn {
    border-left: none;
}

.input-group .form-control:focus + .btn {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Enhanced image preview styles */
.image-preview-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-preview-wrapper:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.image-preview-wrapper img {
    display: block;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-preview-wrapper:hover img {
    transform: scale(1.02);
}

.image-preview-wrapper .btn {
    z-index: 10;
    opacity: 0.8;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    background: rgba(220, 53, 69, 0.9);
    border: none;
    color: white;
}

.image-preview-wrapper .btn:hover {
    opacity: 1;
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

/* Product table image styles */
.product-thumbnail {
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.product-thumbnail-placeholder {
    transition: all 0.2s ease;
}

.product-thumbnail-placeholder:hover {
    background: #e9ecef !important;
    color: #495057 !important;
}

/* Dark mode styles for profile editing */
@media (prefers-color-scheme: dark) {
    .details-header h2 {
        color: #f1f5f9;
    }
    
    .profile-input,
    .profile-textarea {
        background: #1e293b;
        border-color: #475569;
        color: #f1f5f9;
    }
    
    .profile-input:focus,
    .profile-textarea:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    }
    
    .cancel-btn {
        background: #334155;
        color: #cbd5e1;
        border-color: #475569;
    }
    
    .cancel-btn:hover {
        background: #475569;
        color: #f1f5f9;
    }
    
    .form-actions {
        border-top-color: #475569;
    }
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.detail-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: #f0f9ff;
    color: #0369a1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.detail-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

.detail-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.detail-value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.action-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.action-card.admin-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-card.admin-action .action-content h3,
.action-card.admin-action .action-content p {
    color: white;
}

.action-icon {
    width: 48px;
    height: 48px;
    background: #f0f9ff;
    color: #0369a1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.action-card.admin-action .action-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.action-content {
    flex: 1;
}

.action-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.action-content p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.action-card i.bi-arrow-right {
    color: #cbd5e1;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.action-card:hover i.bi-arrow-right {
    transform: translateX(4px);
    color: #64748b;
}

.action-card.admin-action i.bi-arrow-right {
    color: rgba(255, 255, 255, 0.7);
}

.action-card.admin-action:hover i.bi-arrow-right {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-profile-container {
        padding: 1rem;
    }
    
    .profile-hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .modern-profile-container {
        background: #0f172a;
    }
    
    .profile-hero,
    .detail-card,
    .action-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .profile-name {
        color: #f1f5f9;
    }
    
    .profile-email {
        color: #94a3b8;
    }
    
    .detail-content h3 {
        color: #f1f5f9;
    }
    
    .detail-value {
        color: #f1f5f9;
    }
    
    .detail-label {
        color: #94a3b8;
    }
    
    .action-content h3 {
        color: #f1f5f9;
    }
    
    .action-content p {
        color: #94a3b8;
    }
    
    .upload-btn-modern {
        background: #334155;
        color: #e2e8f0;
        border-color: #475569;
    }
    
    .upload-btn-modern:hover {
        background: #475569;
    }
}

/* Admin Dashboard - Minimal Modern */

.admin-stats-compact .admin-stat-card {
    padding: 0.75rem;
    min-height: 60px;
}

.admin-stats-compact .stat-label {
    font-size: 0.75rem;
    font-weight: 500;
}

.admin-stats-compact .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.admin-stats-compact {
    margin-bottom: 2rem;
}

.admin-quick-actions .section-title-minimal {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.admin-quick-actions .admin-action-item {
    padding: 0.75rem;
    min-height: 60px;
}

.admin-quick-actions .action-title {
    font-size: 0.875rem;
    font-weight: 600;
}

.admin-quick-actions .action-sub {
    font-size: 0.75rem;
}

.admin-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-md);
}

.admin-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.admin-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    color: var(--primary-700);
}

.admin-icon i { font-size: 1.6rem; }

.admin-subtitle { margin: 0; color: var(--gray-600); }

.admin-status-chip {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: var(--warning-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.admin-stat-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(99, 102, 241, 0.02) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.admin-stat-card:hover::before {
    opacity: 1;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

/* Stat Card Icon */
.admin-stat-card .stat-icon {
    font-size: 1.25rem;
    color: #0369a1;
    width: 48px;
    height: 48px;
    background: #f0f9ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.admin-stat-card:hover .stat-icon {
    background: #0369a1;
    color: white;
    transform: scale(1.05);
}

/* Stat Card Content */
.admin-stat-card .stat-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-label { 
    color: #64748b; 
    font-weight: 600; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.admin-stat-card:hover .stat-label {
    color: #475569;
}

.stat-value { 
    color: #1e293b; 
    font-weight: 700; 
    font-size: 1.75rem; 
    line-height: 1.1; 
    margin: 0;
    transition: color 0.3s ease;
}

.admin-stat-card:hover .stat-value {
    color: #0369a1;
}

/* Stat Card Variations */
.admin-stat-card.stat-users .stat-icon {
    background: #f0f9ff;
    color: #0369a1;
}

.admin-stat-card.stat-users:hover .stat-icon {
    background: #0369a1;
    color: white;
}

.admin-stat-card.stat-orders .stat-icon {
    background: #fef3c7;
    color: #d97706;
}

.admin-stat-card.stat-orders:hover .stat-icon {
    background: #d97706;
    color: white;
}

.admin-stat-card.stat-revenue .stat-icon {
    background: #dcfce7;
    color: #16a34a;
}

.admin-stat-card.stat-revenue:hover .stat-icon {
    background: #16a34a;
    color: white;
}

.admin-stat-card.stat-payments .stat-icon {
    background: #fce7f3;
    color: #ec4899;
}

.admin-stat-card.stat-payments:hover .stat-icon {
    background: #ec4899;
    color: white;
}

.admin-stat-card.stat-pending .stat-icon {
    background: #fef2f2;
    color: #dc2626;
}

.admin-stat-card.stat-pending:hover .stat-icon {
    background: #dc2626;
    color: white;
}

.admin-stat-card.stat-active .stat-icon {
    background: #f0fdf4;
    color: #059669;
}

.admin-stat-card.stat-active:hover .stat-icon {
    background: #059669;
    color: white;
}

.admin-notice {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: linear-gradient(135deg, #f8fafc, #fff);
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.admin-notice i { color: var(--warning-color); font-size: 1.25rem; }

.admin-quick-actions { margin-top: var(--space-xl); }

.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.admin-action-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: white;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    min-height: 80px;
}

.admin-action-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
    text-decoration: none;
    color: #1e293b;
}

.admin-action-item i { 
    font-size: 1.25rem; 
    color: #0369a1; 
    width: 48px;
    height: 48px;
    background: #f0f9ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.action-text { 
    display: flex; 
    flex-direction: column; 
    flex: 1;
}
.action-title { 
    font-weight: 600; 
    color: #1e293b; 
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}
.action-sub { 
    color: #64748b; 
    font-size: 0.9rem; 
    margin: 0;
    line-height: 1.4;
}
.action-arrow { 
    color: #cbd5e1; 
    font-size: 1.1rem; 
    transition: transform 0.3s ease;
}

.admin-action-item:hover .action-arrow {
    transform: translateX(4px);
    color: #64748b;
}

/* Quick Actions Management Styles */
.quick-actions-management {
    padding: 1rem;
}

.quick-action-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.quick-action-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.1);
}

.quick-action-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-action-title {
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 1rem;
}

.quick-action-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

.quick-action-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.quick-action-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.quick-action-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.quick-action-actions .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
    white-space: nowrap;
}

.drag-handle {
    cursor: move;
    color: #6c757d;
    margin-right: 0.5rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.drag-handle:hover {
    color: #007bff;
    background: rgba(0,123,255,0.1);
}

.sortable-ghost {
    opacity: 0.5;
    background: #f8f9fa;
}

.sortable-chosen {
    background: #e3f2fd;
    border-color: #007bff;
}

/* Modal Responsive Fixes */
.modal-dialog {
    max-width: 90vw;
    margin: 1.75rem auto;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
    }
}

@media (min-width: 768px) {
    .modal-dialog.modal-lg {
        max-width: 800px;
    }
}

/* Form Responsive Fixes */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

.form-row > .col,
.form-row > [class*="col-"] {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .admin-page {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--space-md);
    }
    
    .admin-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .admin-stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .admin-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    
    .quick-action-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .quick-action-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 768px) {
    .admin-header { 
        grid-template-columns: 1fr; 
        gap: var(--space-md); 
        text-align: center;
    }
    
    .admin-status-chip { 
        justify-self: center; 
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--space-sm);
    }
    
    .admin-stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .admin-stat-card .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .admin-actions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .admin-action-item {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        min-height: 100px;
    }
    
    .admin-action-item i {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .action-text {
        text-align: center;
    }
    
    .action-arrow {
        display: none;
    }
    
    .quick-actions-management {
        padding: 0.5rem;
    }
    
    .quick-action-item {
        padding: 0.75rem;
    }
    
    .quick-action-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .quick-action-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .form-row > .col,
    .form-row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .admin-page {
        padding: var(--space-lg) var(--space-sm);
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .admin-stat-card {
        padding: 1rem;
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    
    .admin-stat-card .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
}



/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .admin-action-item:hover {
        transform: none;
    }
    
    .admin-stat-card:hover {
        transform: none;
    }
    
    .quick-action-item:hover {
        border-color: #dee2e6;
        box-shadow: none;
    }
    
    .drag-handle {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Loading states */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: block;
}

.htmx-request.htmx-indicator {
    display: block;
}

/* Form validation improvements */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* Accessibility improvements */
.admin-action-item:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.quick-action-item:focus-within {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .admin-action-item,
    .quick-action-item {
        break-inside: avoid;
        border: 1px solid #000;
    }
    
    .admin-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Drag and Drop Styles */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    will-change: transform, opacity;
}

.product-card.dragging {
    cursor: grabbing !important;
    transform: rotate(2deg) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
    z-index: 1000;
    transition: none !important;
}

.product-card.drag-placeholder {
    opacity: 0.5;
    border: 2px dashed var(--primary-400);
    background: var(--primary-50);
    min-height: 350px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: placeholderPulse 1.5s ease-in-out infinite;
}

.product-card:not(.dragging):hover {
    cursor: grab;
}

.product-card:not(.dragging):active {
    cursor: grabbing;
}

/* Drag feedback animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes placeholderPulse {
    0%, 100% {
        opacity: 0.5;
        border-color: var(--primary-400);
    }
    50% {
        opacity: 0.7;
        border-color: var(--primary-600);
    }
}

/* Enhanced drag visual feedback */
.products-grid {
    position: relative;
}

.products-grid.drag-active {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 10px;
    margin: -10px;
}

/* Drag handle */
.drag-handle {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: var(--gray-100);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 10;
    border: 1px solid var(--gray-200);
}

.drag-handle:hover {
    background: var(--gray-200);
    opacity: 0.8;
}

.product-card:hover .drag-handle {
    opacity: 0.6;
}

.product-card.dragging .drag-handle {
    opacity: 0.8;
    background: var(--primary-200);
    cursor: grabbing;
}

.drag-handle i {
    color: var(--gray-600);
    font-size: 12px;
}

.product-card.dragging .drag-handle i {
    color: var(--primary-700);
}

/* Mobile drag support */
@media (max-width: 768px) {
    .product-card {
        touch-action: pan-y;
    }
    
    .product-card.dragging {
        transform: scale(1.05) !important;
        rotate: none !important;
    }
    
    .drag-handle {
        width: 28px;
        height: 28px;
    }
    
    .drag-handle i {
        font-size: 14px;
    }
}

/* Drag feedback toast */
.drag-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
}

.drag-feedback i {
    font-size: 1.1rem;
}

/* Disable text selection during drag */
.products-grid.drag-active * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Smooth transitions for all drag states */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card.dragging {
    transition: none;
}

.product-card.dragging:hover {
    transform: rotate(2deg) scale(1.02);
}

/* Smooth animations for card repositioning */
.product-card {
    animation: cardSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardSlideIn {
    from {
        opacity: 0.8;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced grid transitions */
.products-grid {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth card movement during drag */
.product-card:not(.dragging) {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   MODAL FOOTER & BUTTON GROUPING
   ======================================== */

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modal-footer .btn {
    min-width: 120px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.modal-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.modal-footer .btn:active {
    transform: translateY(0);
}

/* ========================================
   PRODUCT DETAIL PAGE - MINIMALIST DESIGN
   ======================================== */

.product-detail-page {
    background: var(--gray-50);
    min-height: 100vh;
    padding: var(--space-lg) 0;
}

.product-detail-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-md) 0;
    margin-bottom: var(--space-lg);
}

.minimal-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.breadcrumb-link {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.breadcrumb-link:hover {
    color: var(--primary-700);
}

.breadcrumb-separator {
    color: var(--gray-400);
}

.breadcrumb-current {
    color: var(--gray-800);
    font-weight: 500;
}

.product-detail-main {
    padding: 0;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Product Image Section */
.product-image-section {
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
}

.product-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal);
}

.product-main-image:hover {
    transform: scale(1.05);
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
}

.placeholder-content {
    text-align: center;
    color: var(--gray-500);
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: block;
}

.placeholder-content span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Product Info Section */
.product-info-section {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.product-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin: 0;
}

/* Product Badges */
.product-badges {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.badge {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-featured {
    background: var(--gradient-primary);
    color: white;
}

.badge-new {
    background: var(--gradient-success);
    color: white;
}

.badge-sale {
    background: var(--gradient-secondary);
    color: white;
}

.badge-expiry {
    background: var(--gradient-warning);
    color: var(--gray-800);
}

/* Product Price Section */
.product-price-section {
    margin: var(--space-md) 0;
}

.price-comparison {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.original-price {
    font-size: 1.1rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-600);
}

.discount-badge {
    background: var(--success-color);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Product Description */
.product-description {
    background: var(--gray-50);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-500);
}

.product-description h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-md);
}

.product-description p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Product Details */
.product-details {
    background: var(--gray-50);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
}

.detail-grid {
    display: grid;
    gap: var(--space-sm);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--gray-200);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--gray-800);
    font-weight: 500;
}

.detail-value.in-stock {
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.detail-value.out-of-stock {
    color: var(--danger-color);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Add to Cart Section */
.add-to-cart-section {
    background: var(--gray-50);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
}

.quantity-selector {
    margin-bottom: var(--space-md);
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    max-width: 200px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray-300);
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quantity-btn:hover {
    border-color: var(--primary-500);
    color: var(--primary-600);
    background: var(--primary-50);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    flex: 1;
    height: 40px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    background: white;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.add-to-cart-btn {
    width: 100%;
    height: 45px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Product Actions */
.product-actions {
    margin-top: var(--space-md);
}

.product-actions .btn {
    width: 100%;
    height: 40px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-fast);
    border: 2px solid var(--primary-500);
    color: var(--primary-600);
    background: white;
}

.product-actions .btn:hover {
    background: var(--primary-50);
    border-color: var(--primary-600);
    color: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Product Not Found */
.product-not-found {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.empty-state-container {
    text-align: center;
    max-width: 400px;
}

.empty-state-content {
    background: white;
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: var(--space-lg);
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-md);
}

.empty-state-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        margin: 0 var(--space-md);
    }
    
    .product-image-section {
        min-height: 250px;
    }
    
    .product-info-section {
        padding: var(--space-md);
    }
    
    .product-title {
        font-size: 1.25rem;
    }
    
    .current-price {
        font-size: 1.25rem;
    }
    
    .quantity-controls {
        max-width: 100%;
    }
    
    .add-to-cart-section {
        padding: var(--space-md);
    }
}

@media (max-width: 480px) {
    .product-detail-page {
        padding: var(--space-md) 0;
    }
    
    .product-detail-header {
        padding: var(--space-sm) 0;
        margin-bottom: var(--space-md);
    }
    
    .product-info-section {
        padding: var(--space-sm);
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .price-comparison {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
}

/* Mobile Sidebar Styles */
.mobile-sidebar {
    width: 320px;
    max-width: 85vw;
}

.mobile-sidebar .offcanvas-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
    background: var(--gray-50);
}

.mobile-sidebar .offcanvas-title {
    font-weight: 600;
    color: var(--gray-800);
}

.mobile-sidebar .offcanvas-body {
    padding: 0;
    overflow-y: auto;
}

/* Mobile Search */
.mobile-search {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: white;
}

.mobile-search .input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.mobile-search .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.mobile-search .btn {
    border: none;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
}

.mobile-search .btn:hover {
    background: var(--primary-600);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    padding: 0;
}

.mobile-nav-section {
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-section:last-child {
    border-bottom: none;
}

.mobile-nav-title {
    padding: 1rem 1.5rem 0.5rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gray-50);
}

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

.mobile-nav-list li {
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.mobile-nav-link:hover {
    background: var(--gray-50);
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-nav-link:active {
    background: var(--gray-100);
    transform: translateY(1px);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
    font-size: 1rem;
}

/* Mobile User Info */
.mobile-user-info {
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.mobile-user-info .profile-image-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: var(--gray-100);
}

.mobile-menu-toggle:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Cart Badge for Mobile */
#cart-count-mobile {
    top: -8px;
    right: -8px;
    font-size: 0.75rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .mobile-sidebar {
        width: 100%;
        max-width: 100vw;
    }
    
    .mobile-sidebar .offcanvas-header {
        padding: 1rem;
    }
    
    .mobile-search {
        padding: 1rem;
    }
    
    .mobile-nav-title {
        padding: 1rem 1rem 0.5rem;
    }
    
    .mobile-nav-link {
        padding: 1rem;
    }
    
    .mobile-user-info {
        padding: 1rem;
    }
}

/* Animation for mobile sidebar */
.mobile-sidebar.offcanvas {
    transition: transform 0.3s ease-in-out;
}

/* Backdrop for mobile sidebar */
.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Ensure proper z-index */
.mobile-sidebar {
    z-index: 1045;
}

/* Hide desktop navigation on mobile */
@media (max-width: 991px) {
    .navbar .d-none.d-lg-flex {
        display: none !important;
    }
    
    .navbar .d-lg-none {
        display: flex !important;
    }
}

/* Show desktop navigation on large screens */
@media (min-width: 992px) {
    .navbar .d-none.d-lg-flex {
        display: flex !important;
    }
    
    .navbar .d-lg-none {
        display: none !important;
    }
}

/* Modern Mobile Filter System */
.mobile-filter-system {
    position: relative;
}

/* Floating Filter Button */
.floating-filter-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4), 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255, 255, 255, 0.9);
    animation: filterButtonPulse 2s ease-in-out infinite;
}

.floating-filter-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5), 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 1);
}

.floating-filter-btn:active {
    transform: translateY(-1px) scale(0.98);
}

@keyframes filterButtonPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4), 0 4px 16px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 8px 32px rgba(59, 130, 246, 0.6), 0 4px 16px rgba(0, 0, 0, 0.1);
    }
}

.filter-btn-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.filter-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.filter-count.show {
    opacity: 1;
    transform: scale(1);
}

/* Bottom Sheet Filter Panel */
.filter-bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-bottom-sheet.show {
    visibility: visible;
    opacity: 1;
}

.filter-bottom-sheet-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-bottom-sheet.show .filter-bottom-sheet-backdrop {
    opacity: 1;
}

.filter-bottom-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.15);
}

.filter-bottom-sheet.show .filter-bottom-sheet-content {
    transform: translateY(0);
}

/* Bottom Sheet Header */
.filter-bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    background: white;
    border-radius: 20px 20px 0 0;
}

.filter-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
}

.filter-clear-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.filter-clear-btn:hover {
    background: var(--primary-50);
}

.filter-close-btn {
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-close-btn:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

/* Bottom Sheet Body */
.filter-bottom-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem 1.5rem;
}

/* Mobile Filter Search */
.mobile-filter-search {
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper:focus-within {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.mobile-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    color: #374151;
}

.mobile-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 1.1rem;
}

/* Mobile Filter Sections */
.mobile-filter-section {
    margin-bottom: 2rem;
}

.mobile-filter-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8fafc;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

/* Filter Chips */
.mobile-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-chip:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.filter-chip.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    font-weight: 700;
}

.filter-chip.active:hover {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

/* Price Range Slider */
.price-range-slider {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-inputs .price-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    transition: all 0.2s ease;
    font-weight: 500;
}

.price-inputs .price-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.price-inputs .price-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.price-separator {
    color: #6b7280;
    font-weight: 600;
    font-size: 1rem;
}

/* Bottom Sheet Footer */
.filter-bottom-sheet-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: white;
}

.filter-bottom-sheet-footer .btn {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}

.filter-bottom-sheet-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .floating-filter-btn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .filter-bottom-sheet-content {
        max-height: 90vh;
    }
    
    .filter-bottom-sheet-header {
        padding: 1.25rem 1rem 0.75rem;
    }
    
    .filter-bottom-sheet-body {
        padding: 0 1rem 1rem;
    }
    
    .filter-bottom-sheet-footer {
        padding: 0.75rem 1rem 1rem;
    }
    
    .mobile-filter-options {
        gap: 0.375rem;
    }
    
    .filter-chip {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Animation for filter count */
@keyframes filterCountPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.filter-count.animate {
    animation: filterCountPulse 0.3s ease;
}

/* Hide on desktop */
@media (min-width: 768px) {
    .mobile-filter-system {
        display: none;
    }
}

.filter-btn-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.floating-filter-btn:hover .filter-btn-label {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .floating-filter-btn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .filter-btn-label {
        font-size: 0.65rem;
        padding: 3px 6px;
        bottom: -28px;
    }
}

/* Subscriber Management Mobile Responsiveness */
@media (max-width: 768px) {
    /* Header adjustments */
    .subscribers-header .btn-group {
        width: 100%;
        justify-content: stretch;
    }
    
    .subscribers-header .btn-group .btn {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Statistics cards */
    .stat-card .card-body {
        padding: 1rem;
    }
    
    .stat-card .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .stat-card .flex-shrink-0 {
        align-self: center;
    }
    
    .stat-card .flex-grow-1 {
        text-align: center;
    }
    
    /* Table improvements */
    .table-responsive {
        border-radius: 0.5rem;
        overflow: hidden;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .table th {
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    /* Action buttons */
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Pagination */
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    /* Further mobile optimizations */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    /* Statistics cards on very small screens */
    .col-6 .stat-card .card-body {
        padding: 0.75rem;
    }
    
    .col-6 .stat-card .d-flex {
        gap: 0.25rem;
    }
    
    .col-6 .stat-card h5 {
        font-size: 1.25rem;
    }
    
    .col-6 .stat-card small {
        font-size: 0.75rem;
    }
    
    /* Table on very small screens */
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    /* Hide less important columns on very small screens */
    .d-lg-table-cell {
        display: none !important;
    }
    
    /* Button groups */
    .btn-group .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Form controls */
    .form-select,
    .form-control {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
}

/* Ensure proper spacing for flex-wrap buttons */
.btn-group.flex-wrap {
    gap: 0.25rem;
}

.btn-group.flex-wrap .btn {
    margin: 0;
    border-radius: 0.375rem !important;
}

.btn-group.flex-wrap .btn:first-child {
    border-top-left-radius: 0.375rem !important;
    border-bottom-left-radius: 0.375rem !important;
}

.btn-group.flex-wrap .btn:last-child {
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
}

/* Improve table responsiveness */
.table-responsive {
    border: 0;
}

.table-responsive .table {
    margin-bottom: 0;
}

/* Better mobile table scrolling */
@media (max-width: 768px) {
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .table-responsive::-webkit-scrollbar {
        height: 4px;
    }
    
    .table-responsive::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 2px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
}

.pagination-info small {
    font-size: 0.7rem;
}

/* Notification Management Mobile Responsiveness */
@media (max-width: 768px) {
    /* Quick actions buttons */
    .btn-group.flex-wrap {
        gap: 0.25rem;
    }
    
    .btn-group.flex-wrap .btn {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.75rem !important;
        padding: 0.375rem 0.5rem !important;
    }
    
    /* Statistics cards */
    .stat-card .card-body {
        padding: 1rem;
    }
    
    .stat-card .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .stat-card .flex-shrink-0 {
        align-self: center;
    }
    
    .stat-card .flex-grow-1 {
        text-align: center;
    }
    
    /* Table improvements */
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .table th {
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    /* Action buttons in table */
    .table .btn-group .btn {
        padding: 0.25rem 0.375rem !important;
        font-size: 0.7rem !important;
    }
    
    /* Pagination */
    .pagination {
        gap: 0.125rem;
    }
    
    .pagination .page-link {
        padding: 0.25rem 0.375rem;
        font-size: 0.75rem;
    }
    
    /* Form controls */
    .form-select,
    .form-control {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    /* Further mobile optimizations */
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Header spacing */
    .row.mb-4 {
        margin-bottom: 1rem !important;
    }
    
    /* Quick actions */
    .card-body h6 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    /* Button groups */
    .btn-group .btn {
        padding: 0.375rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
    
    /* Quick actions buttons on very small screens */
    .btn-group.flex-wrap .btn {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.375rem !important;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Table on very small screens */
    .table th,
    .table td {
        padding: 0.375rem 0.125rem;
        font-size: 0.75rem;
    }
    
    /* Hide less important columns on very small screens */
    .d-lg-table-cell {
        display: none !important;
    }
    
    /* Notification type badges */
    .table td .d-md-none .badge {
        font-size: 0.6rem !important;
        padding: 0.125rem 0.25rem !important;
    }
    
    /* Card headers */
    .card-header {
        padding: 0.75rem !important;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    /* Pagination on very small screens */
    .pagination .page-link {
        padding: 0.25rem 0.25rem;
        font-size: 0.7rem;
    }
    
    .pagination-info small {
        font-size: 0.7rem;
    }
}

/* Camera Modal Styles */
#cameraModal .modal-dialog {
    max-width: 600px;
}

#cameraModal .modal-body {
    padding: 1.5rem;
}

#cameraVideo {
    border: 2px solid var(--gray-200);
    background: var(--gray-100);
}

#cameraCanvas {
    border: 2px solid var(--gray-200);
    background: var(--gray-100);
}

#cameraBtn {
    transition: all 0.2s ease;
}

#cameraBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#captureBtn, #retakeBtn, #usePhotoBtn {
    min-width: 120px;
}

/* Mobile camera optimizations */
@media (max-width: 768px) {
    #cameraModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    #cameraModal .modal-body {
        padding: 1rem;
    }
    
    #cameraVideo, #cameraCanvas {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    #captureBtn, #retakeBtn, #usePhotoBtn {
        min-width: 100px;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile optimizations */
    .container {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    /* Quick actions buttons on extra small screens */
    .btn-group.flex-wrap .btn {
        font-size: 0.6rem !important;
        padding: 0.25rem 0.25rem !important;
    }
    
    .btn-group.flex-wrap .btn i {
        font-size: 0.7rem;
    }
    
    /* Statistics cards on extra small screens */
    .stat-card .card-body {
        padding: 0.75rem;
    }
    
    .stat-card h5 {
        font-size: 1.1rem;
    }
    
    .stat-card small {
        font-size: 0.7rem;
    }
    
    /* Form controls on extra small screens */
    .form-select,
    .form-control {
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
    }
    
    .form-label {
        font-size: 0.75rem;
    }
    
    /* Extra small mobile footer padding */
    .site-footer .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .site-footer .footer-grid {
        padding: 1rem 0;
    }
    
    .footer-bottom {
        padding: 0.75rem 0;
    }
}
