@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* ============= Design Tokens ============= */
:root {
    /* Brand - refined indigo + warm amber */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #6366f1;
    --primary-soft: #eef2ff;
    --primary-softer: #f5f3ff;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6d28d9 100%);
    --primary-gradient-soft: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);

    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;
    --accent-soft: #fef3c7;

    /* Surfaces */
    --bg: #f8fafc;
    --bg-2: #f1f5f9;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    --surface-inverse: #0f172a;

    /* Text */
    --text: #0f172a;
    --text-2: #334155;
    --text-muted: #64748b;
    --text-faint: #94a3b8;
    --text-inverse: #ffffff;

    /* Borders */
    --border: #e2e8f0;
    --border-soft: #f1f5f9;
    --border-strong: #cbd5e1;

    /* Semantic */
    --success: #10b981;
    --success-soft: #d1fae5;
    --danger: #ef4444;
    --danger-soft: #fee2e2;
    --warning: #f59e0b;
    --warning-soft: #fef3c7;
    --info: #0ea5e9;
    --info-soft: #e0f2fe;

    /* Shadows - layered for depth */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 4px 12px rgba(15, 23, 42, 0.05), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.10), 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 30px 60px rgba(15, 23, 42, 0.15), 0 8px 20px rgba(15, 23, 42, 0.08);
    --shadow-primary: 0 8px 24px rgba(79, 70, 229, 0.25);
    --shadow-accent: 0 8px 24px rgba(245, 158, 11, 0.25);

    /* Radii */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font: 'Vazirmatn', 'IRANSans', 'Tahoma', system-ui, -apple-system, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Layout */
    --container: 1240px;
    --header-h: 76px;

    /* Backward-compatible aliases (used by older component CSS files) */
    --primary-color: var(--primary);
    --secondary-color: var(--accent);
    --white: #ffffff;
    --dark-color: var(--text);
    --light-gray: var(--surface-3);
    --gray-color: var(--text-muted);
    --border-radius: var(--radius);
    --shadow: var(--shadow-sm);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-weight: var(--font-weight-normal);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

img,
svg {
    max-width: 100%;
    display: block;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

/* ============= Typography ============= */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    color: var(--text);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.625rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-2);
    line-height: 1.8;
}

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

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* ============= Buttons ============= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.5;
    white-space: nowrap;
    user-select: none;
}

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

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

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

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-strong);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-inverse);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-2);
}

.btn-ghost:hover {
    background: var(--surface-3);
    color: var(--text);
}

.btn-light {
    background: var(--white, #ffffff);
    color: var(--primary);
}

.btn-light:hover {
    background: var(--primary-soft);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius);
}

.btn-block {
    width: 100%;
}

/* ============= Header ============= */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-soft);
    height: var(--header-h);
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: var(--font-weight-extrabold);
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--primary-gradient);
    color: var(--text-inverse);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
}

.logo-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent 60%);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text small {
    font-size: 11px;
    font-weight: var(--font-weight-medium);
    color: var(--text-muted);
    letter-spacing: 0;
}

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

.nav-link {
    color: var(--text-2);
    font-weight: var(--font-weight-medium);
    font-size: 14.5px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: var(--font-weight-semibold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-icon {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    background: var(--surface-3);
    transition: var(--transition);
    font-size: 17px;
}

.cart-icon:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger);
    color: var(--text-inverse);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: var(--font-weight-bold);
    border: 2px solid var(--surface);
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--surface-3);
    color: var(--text);
    font-size: 18px;
}

/* ============= Hero ============= */
.hero {
    position: relative;
    background:
        radial-gradient(1200px 600px at 90% -10%, rgba(124, 58, 237, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(79, 70, 229, 0.15), transparent 60%),
        linear-gradient(180deg, #f5f3ff 0%, #ffffff 60%, #f8fafc 100%);
    padding: 96px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(79, 70, 229, 0.07) 1px, transparent 0);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--text-2);
    margin-bottom: 24px;
    box-shadow: var(--shadow-xs);
}

.hero-eyebrow i {
    color: var(--accent);
}

.hero-title {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--text);
    font-weight: var(--font-weight-extrabold);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-description {
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    color: var(--text-2);
    margin-bottom: 36px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    padding: 20px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: right;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-soft);
}

.stat-item .stat-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius);
    background: var(--primary-gradient-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-item:nth-child(2) .stat-icon {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.stat-item:nth-child(3) .stat-icon {
    background: #d1fae5;
    color: var(--success);
}

.stat-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.stat-number {
    font-size: 20px;
    font-weight: var(--font-weight-extrabold);
    color: var(--text);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
}

/* ============= Section Headers ============= */
.categories-section,
.products-section,
.features-section {
    padding: 88px 0;
}

.products-section {
    background: var(--surface);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    font-weight: var(--font-weight-extrabold);
}

.section-description {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============= Categories Grid ============= */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--surface);
    padding: 28px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient-soft);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

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

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

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: 26px;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.05) rotate(-4deg);
}

.category-name {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 4px;
    color: var(--text);
}

.category-count {
    font-size: 13px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============= Products Grid ============= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--danger);
    color: var(--text-inverse);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: var(--font-weight-bold);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.product-image {
    background: var(--primary-gradient-soft);
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 56px;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15), transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.product-image i {
    position: relative;
    z-index: 1;
}

.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 10px;
    align-self: flex-start;
}

.product-title {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.45;
}

.product-description {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border);
}

.product-range {
    font-size: 12.5px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.product-range i {
    color: var(--primary);
    font-size: 11px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 10px;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-old {
    font-size: 13px;
    color: var(--text-faint);
    text-decoration: line-through;
}

.price-current {
    font-size: 17px;
    font-weight: var(--font-weight-extrabold);
    color: var(--primary);
    letter-spacing: -0.01em;
}

.add-to-cart {
    flex-shrink: 0;
}

/* ============= Features Grid ============= */
.features-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at top right, var(--primary-soft), transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    background: var(--primary-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: 22px;
    box-shadow: var(--shadow-primary);
    position: relative;
    z-index: 1;
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: var(--shadow-accent);
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.feature-card:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, #ec4899, #be185d);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.25);
}

.feature-card:nth-child(5) .feature-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.25);
}

.feature-card:nth-child(6) .feature-icon {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}

.feature-title {
    font-size: 17px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 8px;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.feature-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ============= CTA Section ============= */
.cta-section {
    background:
        radial-gradient(800px 400px at 80% 50%, rgba(124, 58, 237, 0.4), transparent 60%),
        radial-gradient(600px 300px at 20% 50%, rgba(79, 70, 229, 0.4), transparent 60%),
        linear-gradient(135deg, #312e81 0%, #4f46e5 50%, #6d28d9 100%);
    padding: 80px 0;
    color: var(--text-inverse);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    margin-bottom: 12px;
    color: var(--text-inverse);
    font-weight: var(--font-weight-extrabold);
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 17px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-primary:hover {
    background: var(--accent);
    color: var(--text-inverse);
    box-shadow: var(--shadow-accent);
}

.cta-section .btn-outline {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--text-inverse);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.cta-section .btn-outline:hover {
    background: var(--surface);
    color: var(--primary);
    border-color: var(--surface);
}

/* ============= Footer ============= */
.footer {
    background: var(--surface-inverse);
    color: var(--text-inverse);
    padding: 64px 0 24px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col {
    min-width: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand .logo-mark {
    width: 42px;
    height: 42px;
}

.footer-brand-text {
    font-size: 18px;
    font-weight: var(--font-weight-extrabold);
    color: var(--text-inverse);
    letter-spacing: -0.01em;
}

.footer-title {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 18px;
    color: var(--text-inverse);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--text-inverse);
    transform: translateX(-4px);
}

.footer-contact i {
    color: var(--primary-light);
    width: 18px;
    text-align: center;
}

.footer-trust {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.footer-trust img {
    max-width: 110px;
    height: auto;
    border-radius: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13.5px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
}

.form-input::placeholder {
    color: var(--text-faint);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* ============= Animations ============= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============= Notifications ============= */
.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--surface);
    color: var(--text);
    padding: 14px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    z-index: 9999;
    border: 1px solid var(--border);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-success {
    border-right: 4px solid var(--success);
}

.notification-success i {
    color: var(--success);
}

.notification-info i {
    color: var(--info);
}

/* ============= Loading Overlay ============= */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.loading-spinner {
    background: var(--surface);
    padding: 32px 48px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-xl);
}

.loading-spinner i {
    font-size: 32px;
    color: var(--primary);
}

.loading-spinner p {
    font-size: 14px;
    color: var(--text-2);
    margin: 0;
}

/* ============= Selection ============= */
::selection {
    background: var(--primary);
    color: var(--text-inverse);
}

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

::-webkit-scrollbar-track {
    background: var(--surface-3);
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 5px;
    border: 2px solid var(--surface-3);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-faint);
}

/* ============= Responsive ============= */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    .container {
        padding: 0 16px;
    }

    .nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        right: 0;
        left: 0;
        background: var(--surface);
        flex-direction: column;
        gap: 0;
        padding: 12px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .header-actions .btn {
        display: none;
    }

    .hero {
        padding: 64px 0 56px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-item {
        padding: 14px 16px;
    }

    .stat-number {
        font-size: 18px;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .categories-section,
    .products-section,
    .features-section {
        padding: 56px 0;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 20px 12px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .products-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .notification {
        right: 16px;
        left: 16px;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .logo-text small {
        display: none;
    }

    .hero-eyebrow {
        font-size: 12px;
        padding: 6px 12px;
    }
}
