/**
 * E-Commerce Professional Store - Main Stylesheet
 * Modern, Responsive Design with White & Blue Theme
 * Premium Design with Advanced Animations and Effects
 */

/* Import Fonts */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

/* CSS Variables - Enhanced Color Palette */
:root {
    /* Primary Colors - Rich Blue Gradient */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --primary-lighter: #93c5fd;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    --primary-gradient-hover: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    
    /* Secondary Colors */
    --secondary-color: #0ea5e9;
    --accent-color: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    
    /* Status Colors */
    --success-color: #10b981;
    --success-light: #d1fae5;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --danger-color: #ef4444;
    --danger-light: #fee2e2;
    --info-color: #3b82f6;
    --info-light: #dbeafe;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-muted: #cbd5e1;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    
    /* Border & Shadows */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    --shadow-2xl: 0 24px 64px rgba(0,0,0,0.2);
    --shadow-primary: 0 8px 32px rgba(37, 99, 235, 0.25);
    --shadow-primary-lg: 0 16px 48px rgba(37, 99, 235, 0.35);
    --glow-primary: 0 0 40px rgba(37, 99, 235, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Layout */
    --header-height: 80px;
    --container-width: 1400px;
    --sidebar-width: 280px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-secondary);
    direction: rtl;
    overflow-x: hidden;
}

/* Selection styling */
::selection {
    background: var(--primary-color);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

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

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

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Grid System - Enhanced */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -16px;
}

.col {
    flex: 1;
    padding: 0 16px;
}

.col-2 { flex: 0 0 16.666%; max-width: 16.666%; padding: 0 16px; }
.col-3 { flex: 0 0 25%; max-width: 25%; padding: 0 16px; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 16px; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 16px; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 16px; }
.col-9 { flex: 0 0 75%; max-width: 75%; padding: 0 16px; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 16px; }

/* Typography - Enhanced */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: 3rem; font-weight: 800; }
h2 { font-size: 2.25rem; font-weight: 700; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

/* Buttons - Premium Design */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary-lg);
    color: white;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.4);
}

.btn-white {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

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

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: 18px 42px;
    font-size: 17px;
    border-radius: var(--radius-xl);
}

.btn-xl {
    padding: 20px 50px;
    font-size: 18px;
    border-radius: var(--radius-xl);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* Form Elements - Premium Design */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: var(--bg-primary);
    transition: var(--transition);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), var(--shadow-sm);
    background: white;
}

.form-control:hover:not(:focus) {
    border-color: var(--primary-light);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748b' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 50px;
    cursor: pointer;
}

/* Input with icon */
.input-group {
    position: relative;
}

.input-group .form-control {
    padding-right: 50px;
}

.input-group-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 18px;
}

/* Checkbox & Radio - Modern */
.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 22px;
    height: 22px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Cards - Premium Glass Morphism Design */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

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

.card-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.card-header h3,
.card-header h4 {
    margin: 0;
}

.card-body {
    padding: 28px;
}

.card-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

/* Glass Card */
.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient Card */
.card-gradient {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.card-gradient h1, .card-gradient h2, .card-gradient h3, 
.card-gradient h4, .card-gradient h5, .card-gradient h6,
.card-gradient p {
    color: white;
}

/* Header - Premium Design */
.header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-top {
    background: linear-gradient(135deg, #1e3a8a 0%, var(--primary-dark) 50%, #1d4ed8 100%);
    color: white;
    padding: 10px 0;
    font-size: 10px;
    position: relative;
    overflow: hidden;
}

.header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-top-left,
.header-top-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-top a {
    color: white;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.header-top a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.header-top a i {
    font-size: 14px;
}

.header-main {
    padding: 5px 0;
    background: white;
}

.header-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo img {
    height: 55px;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

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

/* Search Box - Premium */
.search-box {
    flex: 1;
    max-width: 550px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 16px 60px 16px 24px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 15px;
    background: var(--bg-secondary);
    transition: var(--transition);
    color: var(--text-primary);
}

.search-box input:focus {
    border-color: var(--primary-color);
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-box button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 18px;
    box-shadow: var(--shadow-primary);
}

.search-box button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-primary-lg);
}

/* Header Actions - Premium */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    position: relative;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-decoration: none;
}

.header-action:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.header-action-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: var(--transition);
    position: relative;
    border: 2px solid var(--border-light);
}

.header-action:hover .header-action-icon {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-primary);
    transform: scale(1.05);
}

.header-action-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
    min-width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 6px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    animation: pulse-badge 2s infinite;
}

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

.header-action-text {
    display: flex;
    flex-direction: column;
}

.header-action-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.header-action-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
}

/* Navigation - Premium Design */
.nav {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    position: relative;
}

.nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0.1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 24px;
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition);
    border-radius: var(--radius-md);
    position: relative;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link i {
    font-size: 16px;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 260px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: var(--transition);
    z-index: 100;
    padding: 12px;
    border: 1px solid var(--border-light);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px) scale(1);
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
}

.nav-dropdown a:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);
    color: var(--primary-color);
    padding-right: 24px;
}

.nav-dropdown a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

/* Hero Slider - Premium Design */
.hero-section {
    padding: 24px 0;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.hero-slide {
    position: relative;
    min-height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(37, 99, 235, 0.85) 50%, rgba(59, 130, 246, 0.7) 100%);
}

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

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 650px;
    padding: 50px;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 24px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 36px;
    line-height: 1.8;
    color: white;
}

.hero-content .btn {
    font-size: 18px;
    padding: 18px 40px;
}

/* Hero Decorative Elements */
.hero-decoration {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

/* Products Section - Premium */
.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2rem;
    position: relative;
    padding-right: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.section-title::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    opacity: 0.5;
}

.section-more {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.section-more:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

.section-more i {
    transition: var(--transition);
}

.section-more:hover i {
    transform: translateX(-4px);
}

/* Product Grid - Improved */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* Product Card - Premium Design */
.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.product-badge.new {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.product-badge.hot {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.product-actions {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(-15px);
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 44px;
    height: 44px;
    background: var(--bg-primary);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    font-size: 16px;
}

.product-action-btn:hover {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-primary);
}

.product-action-btn.active {
    background: var(--danger-color);
    color: white;
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.product-info {
    padding: 24px;
}

.product-category {
    font-size: 12px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
    line-height: 1.5;
}

.product-name a {
    color: inherit;
}

.product-name a:hover {
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-price .current {
    font-size: 20px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-price .old {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fbbf24;
    font-size: 15px;
}

.product-rating span {
    color: var(--text-secondary);
    font-weight: 600;
}

.add-to-cart-btn {
    padding: 10px 20px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-primary);
}

.add-to-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-primary-lg);
}

/* Product Detail Page */
.product-detail {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.gallery-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg-tertiary);
}

.gallery-main img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: var(--bg-tertiary);
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary-color);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-detail {
    padding-right: 20px;
}

.product-info-detail h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.product-category-link {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    margin-bottom: 16px;
}

.product-rating-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.product-rating-detail .stars {
    display: flex;
    gap: 4px;
}

.product-rating-detail .stars i {
    color: var(--border-color);
}

.product-rating-detail .stars i.active {
    color: #fbbf24;
}

.product-rating-detail .separator {
    color: var(--border-color);
}

.product-price-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
}

.product-price-detail .current {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
}

.product-price-detail .old {
    font-size: 20px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-price-detail .discount {
    background: var(--danger-color);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
}

.product-short-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.product-variations {
    margin-bottom: 24px;
}

.variation-group {
    margin-bottom: 16px;
}

.variation-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variation-option {
    position: relative;
}

.variation-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.variation-option span {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.variation-option input:checked + span,
.variation-option:hover span {
    border-color: var(--primary-color);
    background: var(--primary-lighter);
    color: var(--primary-dark);
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.product-stock.in-stock {
    color: var(--success-color);
}

.product-stock.out-of-stock {
    color: var(--danger-color);
}

.product-actions-detail {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-tertiary);
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

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

.qty-input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
}

.btn-add-cart {
    flex: 1;
    padding: 14px 28px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.btn-add-cart:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

.btn-wishlist-lg {
    width: 52px;
    height: 52px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.btn-wishlist-lg:hover,
.btn-wishlist-lg.active {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.product-meta {
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.product-meta-item strong {
    color: var(--text-primary);
    min-width: 100px;
}

.product-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.product-share span {
    font-size: 14px;
    color: var(--text-secondary);
}

.product-share a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: var(--transition);
}

.product-share a:hover {
    background: var(--primary-color);
    color: white;
}

/* Product Tabs */
.product-tabs {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 24px;
}

.tab-btn {
    padding: 16px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

/* Reviews */
.reviews-list {
    margin-top: 24px;
}

.review-item {
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.review-author-info h5 {
    margin: 0;
    font-size: 15px;
}

.review-author-info span {
    font-size: 13px;
    color: var(--text-secondary);
}

.review-rating {
    display: flex;
    gap: 4px;
    color: #fbbf24;
}

.review-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.review-form {
    background: var(--bg-tertiary);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-top: 32px;
}

.review-form h4 {
    margin-bottom: 16px;
}

/* Related Products */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    margin-bottom: 32px;
}

/* Categories - Premium Design */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

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

.category-card:hover * {
    position: relative;
    z-index: 1;
}

.category-card:hover h4,
.category-card:hover span {
    color: white;
}

.category-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
}

.category-card:hover .category-icon {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.category-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 700;
    transition: var(--transition);
}

.category-card span {
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

/* Features - Premium Design */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 50px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: var(--transition);
}

.feature-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-primary);
}

.feature-text h4 {
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Footer - Premium Dark Design */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 50px;
    padding-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-column h4 {
    color: white;
    font-size: 20px;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 16px;
    font-weight: 700;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 2;
}

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.footer-social a {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-social a:hover {
    background: var(--primary-gradient);
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary);
    border-color: transparent;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.footer-links a::before {
    content: '←';
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    color: var(--primary-color);
}

.footer-links a:hover {
    color: white;
    padding-right: 16px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: rgba(255,255,255,0.7);
    font-size: 15px;
}

.footer-contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-light);
    font-size: 18px;
}

.footer-newsletter input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.05);
    color: white;
    margin-bottom: 14px;
    transition: var(--transition);
}

.footer-newsletter input:focus {
    border-color: var(--primary-color);
    outline: none;
    background: rgba(255,255,255,0.1);
}

.footer-newsletter input::placeholder {
    color: rgba(255,255,255,0.5);
}

.footer-newsletter button {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    font-size: 15px;
}

.footer-newsletter button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-copyright {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.footer-payments {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-payments img {
    height: 36px;
    opacity: 0.7;
    transition: var(--transition);
    filter: grayscale(100%) brightness(2);
}

.footer-payments img:hover {
    opacity: 1;
    filter: none;
}

/* Alerts - Premium Design */
.alert {
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid transparent;
    animation: slideIn 0.3s ease;
}

.alert-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-success .alert-icon {
    background: var(--success-color);
    color: white;
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-error .alert-icon {
    background: var(--danger-color);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.2);
}

.alert-warning .alert-icon {
    background: var(--warning-color);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.2);
}

.alert-info .alert-icon {
    background: var(--info-color);
    color: white;
}

/* Pagination - Premium */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 600;
    border: 2px solid var(--border-color);
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination span.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}

/* Modal - Premium Glass Effect */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 24px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-2xl);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.modal-header h3 {
    margin: 0;
    font-weight: 700;
}

.modal-close {
    background: var(--bg-tertiary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Breadcrumb - Premium */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

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

.breadcrumb-separator {
    color: var(--text-light);
}

.breadcrumb span:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

/* Tables - Premium Design */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
}

.table th,
.table td {
    padding: 18px 20px;
    text-align: right;
    border-bottom: 1px solid var(--border-light);
}

.table th {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.table tr:hover td {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.02) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.table-striped tr:nth-child(even) td {
    background: var(--bg-secondary);
}

/* Badge - Premium */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
}

.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: #047857;
}

.badge-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: #b45309;
}

.badge-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #b91c1c;
}

.badge-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: #1d4ed8;
}

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

/* Loading - Premium Spinner */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

.spinner-lg {
    width: 64px;
    height: 64px;
    border-width: 5px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive - Enhanced */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .header-main-content {
        flex-wrap: wrap;
    }
    
    .search-box {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
        margin-top: 6px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-slide {
        min-height: 420px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        height: 100%;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        box-shadow: var(--shadow-2xl);
        transition: var(--transition);
        z-index: 1001;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 16px 20px;
    }
    
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        padding: 0;
        padding-right: 20px;
    }
    
    .nav-item.active .nav-dropdown {
        display: block;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .section {
        padding: 50px 0;
    }
    
    .hero-slide {
        min-height: 350px;
    }
    
    .hero-content {
        padding: 30px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .row {
        margin: 0 -10px;
    }
    
    .col, .col-2, .col-3, .col-4, .col-6, .col-8, .col-9, .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 10px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .header-action {
        padding: 6px;
    }
    
    .header-action-text {
        display: none;
    }
    
    .header-action-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .hero-content .btn {
        font-size: 14px;
        padding: 14px 28px;
    }
    
    .product-card {
        border-radius: var(--radius-lg);
    }
    
    .product-image {
        height: 240px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .header-top-left,
    .header-top-right {
        gap: 12px;
    }
    
    .header-top a span {
        display: none;
    }
}

/* Utility Classes - Enhanced */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-muted { color: var(--text-secondary) !important; }

.bg-primary { background: var(--primary-color) !important; }
.bg-gradient { background: var(--primary-gradient) !important; }
.bg-white { background: white !important; }
.bg-light { background: var(--bg-secondary) !important; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.my-1 { margin-top: 10px; margin-bottom: 10px; }
.my-2 { margin-top: 20px; margin-bottom: 20px; }
.my-3 { margin-top: 30px; margin-bottom: 30px; }
.my-4 { margin-top: 40px; margin-bottom: 40px; }

.mx-auto { margin-left: auto; margin-right: auto; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.p-4 { padding: 40px; }
.p-5 { padding: 50px; }

.py-1 { padding-top: 10px; padding-bottom: 10px; }
.py-2 { padding-top: 20px; padding-bottom: 20px; }
.py-3 { padding-top: 30px; padding-bottom: 30px; }
.py-4 { padding-top: 40px; padding-bottom: 40px; }
.py-5 { padding-top: 50px; padding-bottom: 50px; }

.px-1 { padding-left: 10px; padding-right: 10px; }
.px-2 { padding-left: 20px; padding-right: 20px; }
.px-3 { padding-left: 30px; padding-right: 30px; }
.px-4 { padding-left: 40px; padding-right: 40px; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }
.d-grid { display: grid; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }
.gap-4 { gap: 40px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

.slide-in-right {
    animation: slideInRight 0.5s ease;
}

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

.scale-in {
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

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

/* Gradient Text */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Banner Cards */
.banner-card {
    border-radius: var(--radius-xl);
    padding: 48px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

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

.banner-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.banner-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 700;
    color: white;
}

.banner-card p {
    margin-bottom: 24px;
    opacity: 0.9;
    font-size: 16px;
    color: white;
}

.banner-card-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.banner-card-secondary {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

/* Button Variants */
.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

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

/* Section Variants */
.section-white {
    background: white;
    padding-top: 60px;
    padding-bottom: 60px;
}

.section-gradient {
    background: linear-gradient(180deg, #f8fafc 0%, white 100%);
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-banner {
    padding: 50px 0;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

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

/* Divider */
.divider {
    height: 1px;
    background: var(--border-color);
    margin: 30px 0;
}

.divider-gradient {
    height: 3px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 48px;
    color: var(--text-light);
}

.empty-state h3 {
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Stats Cards */
.stat-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 28px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-icon.blue {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    color: var(--primary-color);
}

.stat-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: var(--success-color);
}

.stat-icon.orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: var(--warning-color);
}

.stat-icon.red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: var(--danger-color);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--bg-dark);
    color: white;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

/* Progress Bar */
.progress {
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 13px;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Avatar */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.avatar-sm { width: 36px; height: 36px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; }

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    margin-left: -12px;
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .chat-widget,
    .btn,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
