/* =====================================================
   KURD STORES - MAIN STYLESHEET
   Professional E-commerce Design System
   ===================================================== */

/* === BASE RESET & DEFAULTS === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

@media (max-width: 768px) {
    body {
        padding-top: var(--header-height-mobile);
    }
}

/* Homepage has hero section that accounts for header */
body.homepage {
    padding-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

/* === LAYOUT CONTAINER === */
.container {
    width: 100%;
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
}

/* =====================================================
   HEADER STYLES
   ===================================================== */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    height: var(--header-height);
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.header-container {
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

/* Logo Section */
.logo-section {
    flex-shrink: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.brand-text {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Search Section */
.search-section {
    flex: 1;
    max-width: 500px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.search-input-modern {
    width: 100%;
    height: 44px;
    padding: 0 var(--space-4) 0 var(--space-12);
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: var(--text-sm);
    transition: all var(--transition-base);
}

.search-input-modern::placeholder {
    color: var(--text-muted);
}

.search-input-modern:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 3px rgba(5, 214, 193, 0.15);
}

.search-box.focused .search-icon {
    color: var(--primary);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-item.active {
    color: var(--primary-light);
    background: rgba(5, 214, 193, 0.1);
}

.nav-icon {
    font-size: var(--text-base);
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--error);
    color: white;
    font-size: 10px;
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Section */
.user-section {
    flex-shrink: 0;
}

.user-menu {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.user-trigger:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-secondary);
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-sm);
}

.user-name {
    font-weight: var(--font-medium);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.user-menu.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-primary);
}

.user-info strong {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.user-info small {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.dropdown-items {
    padding: var(--space-2);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-3);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.dropdown-link:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.dropdown-link.business {
    color: var(--primary-light);
}

.dropdown-link.logout {
    color: var(--error);
}

.dropdown-link.logout:hover {
    background: var(--error-bg);
}

.dropdown-link i {
    width: 18px;
    text-align: center;
    font-size: var(--text-sm);
}

.menu-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-primary);
    margin: var(--space-2) 0;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-lg, 10px);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(5, 214, 193, 0.15);
    border: 2px solid rgba(5, 214, 193, 0.3);
    position: relative;
    overflow: hidden;
    color: rgba(5, 214, 193, 1);
    box-shadow: 0 0 0 transparent;
}

.btn-login:hover {
    transform: translateY(-2px);
    color: var(--text-primary);
    border: 2px solid rgba(5, 214, 193, 1);
    background: rgba(5, 214, 193, 1);
    box-shadow: 0 4px 12px rgba(5, 214, 193, 0.3);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-login > * {
    position: relative;
    z-index: 1;
}

.btn-login:hover::before {
    left: 120%;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: var(--text-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: scale(1.05);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: all var(--transition-base);
}

/* Light theme - show moon icon */
.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Dark theme - show sun icon */
[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .theme-toggle {
    background: var(--bg-elevated);
    border-color: var(--border-secondary);
    color: var(--warning);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--warning-light);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    padding: 8px;
}

.menu-line {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    z-index: var(--z-dropdown);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-base);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-search {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-primary);
}

.search-box-mobile {
    position: relative;
}

.search-input-mobile {
    width: 100%;
    height: 48px;
    padding: 0 var(--space-4) 0 var(--space-12);
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: var(--text-base);
}

.search-input-mobile::placeholder {
    color: var(--text-muted);
}

.search-box-mobile .search-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.mobile-menu-items {
    padding: var(--space-4);
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

.mobile-nav-item.active {
    color: var(--primary-light);
}

.mobile-nav-item.logout {
    color: var(--error);
}

.mobile-divider {
    height: 1px;
    background: var(--border-primary);
    margin: var(--space-3) 0;
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-theme-toggle .icon-sun,
.mobile-theme-toggle .icon-moon {
    transition: all var(--transition-base);
}

/* Light theme - show moon icon, hide sun */
.mobile-theme-toggle .icon-sun {
    display: none;
}

.mobile-theme-toggle .icon-moon {
    display: inline-block;
}

.mobile-theme-toggle .theme-label-dark {
    display: none;
}

.mobile-theme-toggle .theme-label-light {
    display: inline;
}

/* Dark theme - show sun icon, hide moon */
[data-theme="dark"] .mobile-theme-toggle .icon-sun {
    display: inline-block;
    color: var(--warning);
}

[data-theme="dark"] .mobile-theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .mobile-theme-toggle .theme-label-dark {
    display: inline;
}

[data-theme="dark"] .mobile-theme-toggle .theme-label-light {
    display: none;
}

/* === RESPONSIVE HEADER === */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .search-section {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .modern-header {
        height: var(--header-height-mobile);
    }
    
    .header-container {
        padding: 0 var(--space-4);
    }
    
    .search-section {
        display: none;
    }
    
    .user-section {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
        top: var(--header-height-mobile);
    }
    
    .brand-text {
        font-size: var(--text-lg);
    }
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-20);
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(5, 214, 193, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(5, 214, 193, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(14, 165, 233, 0.06), transparent);
    pointer-events: none;
}

[data-theme="dark"] .hero-section::before {
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(5, 214, 193, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(5, 214, 193, 0.1), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(14, 165, 233, 0.08), transparent);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(5, 214, 193, 0.2), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(5, 214, 193, 0.15), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(5, 214, 193, 0.18), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(5, 214, 193, 0.12), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(5, 214, 193, 0.2), transparent);
    background-size: 200px 200px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
}

[data-theme="dark"] .hero-particles {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.15), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.12), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.08), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.15), transparent);
}

@keyframes particleFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(5, 214, 193, 0.15);
    border: 1px solid rgba(5, 214, 193, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--warning);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: var(--font-bold);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.gradient-text {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: var(--leading-relaxed);
}

/* Hero Categories */
.hero-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-8);
    padding: 0 var(--space-4);
}

.hero-category-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.hero-category-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: white;
    font-size: var(--text-base);
}

.hero-category-name {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.hero-category-show-all {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: transparent;
    border: 1px dashed var(--border-secondary);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all var(--transition-base);
}

.hero-category-show-all:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(5, 214, 193, 0.05);
}

/* === RESPONSIVE HERO === */
@media (max-width: 768px) {
    .hero-section {
        padding: calc(var(--header-height-mobile) + var(--space-12)) 0 var(--space-16);
        min-height: auto;
    }
    
    .hero-description {
        font-size: var(--text-base);
    }
    
    .hero-categories {
        gap: var(--space-2);
    }
    
    .hero-category-card {
        padding: var(--space-2) var(--space-4);
    }
    
    .hero-category-icon {
        width: 36px;
        height: 36px;
        font-size: var(--text-sm);
    }
    
    .hero-category-name {
        font-size: var(--text-xs);
    }
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header-inline {
    margin-bottom: var(--space-10);
}

.section-intro {
    text-align: center;
}

.section-title {
    letter-spacing: -0.02em;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;}

.section-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-top: var(--space-2);
}

.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
margin-bottom: 24px;    gap: var(--space-4);
}

.section-header-left {
    flex: 1;
}

.section-title-modern {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-1);
}

.section-link-modern {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.section-link-modern:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.section-link-modern i {
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.section-link-modern:hover i {
    transform: translateX(3px);
}

.section-header-center {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: rgba(5, 214, 193, 0.1);
    border: 1px solid rgba(5, 214, 193, 0.2);
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.section-title-center {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-desc-center {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-top: var(--space-3);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .section-header-modern {
        flex-direction: column;
        text-align: center;
    }
    
    .section-title-modern,
    .section-title,
    .section-title-center {
        font-size: var(--text-xl);
    }
}

/* Globa Modal Styles for showing a popup window of confirmation or a messsage*/
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: scale(0.9) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.confirm-modal {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 16px;
    padding: 28px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.confirm-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: rgba(5, 214, 193, 0.15);
}

.confirm-modal-icon i {
    font-size: 32px;
    color: var(--primary, #05d6c1);
}

.confirm-modal-icon.success { background: rgba(34, 197, 94, 0.15); }
.confirm-modal-icon.success i { color: #22c55e; }

.confirm-modal-icon.error { background: rgba(239, 68, 68, 0.15); }
.confirm-modal-icon.error i { color: #ef4444; }

.confirm-modal-icon.warning { background: rgba(251, 191, 36, 0.15); }
.confirm-modal-icon.warning i { color: #fbbf24; }

.confirm-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0 0 8px 0;
}

.confirm-modal-message {
    font-size: 14px;
    color: var(--text-secondary, #a0a0b0);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.confirm-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-btn.cancel {
    background: var(--bg-elevated, #0f0f1a);
    border: 1px solid var(--border-primary, #2a2a4a);
    color: var(--text-secondary, #a0a0b0);
}

.confirm-btn.cancel:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.confirm-btn.confirm {
    background: linear-gradient(135deg, var(--primary, #05d6c1) 0%, var(--primary-dark, #4fd1c5) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(5, 214, 193, 0.3);
}

.confirm-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 214, 193, 0.4);
}
/* =====================================================
   STORE TYPES SECTION
   ===================================================== */
.store-types-section {
    padding: var(--space-20) 0;
    background: var(--bg-secondary);
}

.store-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.store-type-card {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.store-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.store-type-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.store-type-card:hover::before {
    opacity: 1;
}

.store-type-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    padding: var(--space-3);
}

.store-type-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-type-info {
    flex: 1;
    min-width: 0;
}

.store-type-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.store-type-desc {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-2);
}

.store-type-count {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: rgba(5, 214, 193, 0.1);
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}

.store-type-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.store-type-card:hover .store-type-arrow {
    background: var(--primary);
    color: white;
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .store-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .store-types-section {
        padding: var(--space-12) 0;
    }
    
    .store-types-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .store-type-card {
        padding: var(--space-4);
        gap: var(--space-4);
    }
    
    .store-type-icon {
        width: 56px;
        height: 56px;
    }
}

/* =====================================================
   FEATURED STORES SECTION
   ===================================================== */
.featured-stores-section {
    padding: var(--space-20) 0;
    background: var(--bg-primary);
}

.stores-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.btn-browse-all-stores {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-lg, 10px);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid rgba(34, 197, 94, 0.3);
    position: relative;
    overflow: hidden;
    color: #22c55e;
    box-shadow: 0 0 0 transparent;
}

.btn-browse-all-stores:hover {
    transform: translateY(-2px);
    color: white;
    border: 2px solid #22c55e;
    background: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-browse-all-stores::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-browse-all-stores > * {
    position: relative;
    z-index: 1;
}

.btn-browse-all-stores:hover::before {
    left: 120%;
}

.store-card-modern {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: var(--shadow-card);
}

.store-card-modern:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.store-card-banner {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 14px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #22c55e 0%, #10b981 50%, #06b6d4 100%);
}

.store-logo-modern {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    background: white;
    flex-shrink: 0;
}

.store-logo-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.store-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #22c55e;
    font-size: 24px;
    border-radius: 14px;
}

.store-badge-verified {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    color: white;
    font-size: 12px;
}

.store-banner-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.store-name-modern {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-location-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
}

.store-location-modern i {
    color: white;
    font-size: 10px;
}

.store-rating-modern {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
}

.store-rating-modern i {
    color: #fbbf24;
    font-size: 10px;
}

.store-card-body {
    padding: 16px 20px;
    flex: 1;
}

.store-category-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    font-size: 11px;
    color: #22c55e;
    margin-bottom: 12px;
}

.store-category-modern i {
    font-size: 10px;
    color: #22c55e;
}

.store-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
}

.store-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.store-info-item i {
    font-size: 10px;
    color: var(--text-tertiary);
}

.store-card-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border-primary);
    text-align: center;
}

.store-action-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary-light);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
}

.store-action-link i {
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.store-card-modern:hover .store-action-link i {
    transform: translateX(4px);
}

@media (max-width: 1280px) {
    .stores-grid-modern {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .stores-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .featured-stores-section {
        padding: var(--space-12) 0;
    }
    
    .stores-grid-modern {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

/* =====================================================
   RECOMMENDED PRODUCTS SECTION
   ===================================================== */
.recommended-section {
    padding: var(--space-20) 0;
    background: var(--bg-secondary);
}

.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.product-card-modern {
    display: flex;
    flex-direction: column;
    background: var(--bg-card) ;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-2xl) ;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: var(--shadow-card);
}

.product-card-modern:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.product-link {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--bg-elevated);
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card-modern:hover .product-img {
    transform: scale(1.05);
}

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: var(--text-4xl);
}

.product-discount-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: var(--space-1) var(--space-3);
    background: var(--error);
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
}

.favorite-btn-modern {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0;
    transform: translateY(-10px);
}

.product-card-modern:hover .favorite-btn-modern {
    opacity: 1;
    transform: translateY(0);
}

.favorite-btn-modern:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

.product-details {
    padding: var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-store-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-bottom: var(--space-2);
}

.product-store-tag i {
    font-size: 10px;
    color: var(--primary-light);
}

.product-title-modern {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating-compact {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.rating-stars-compact {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--warning);
    font-size: var(--text-xs);
}

.rating-stars-compact span {
    color: var(--text-primary);
    font-weight: var(--font-semibold);
}

.rating-count {
    font-size: var(--text-xs);
    color: var(--text-muted);
} 

.product-price-modern {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--primary-light);
}

.product-old-price-modern {
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    color: var(--text-muted);
    text-decoration: line-through;
}
/* Action Buttons */
.product-actions {
    display: flex;
    gap: 12px; 
    padding: var(--space-3) var(--space-4) var(--space-4);
}

.btn-add-cart-modern {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-add-cart-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-add-cart-modern i {
    font-size: var(--text-sm);
}

@media (max-width: 1280px) {
    .products-grid-modern {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .products-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .recommended-section {
        padding: var(--space-12) 0;
    }
    
    .products-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    .product-card-modern {
        border-radius: var(--radius-xl);
    }
    
    .product-details {
        padding: var(--space-3);
    }
    
    .product-title-modern {
        font-size: var(--text-xs);
    }
    
    .product-price-modern {
        font-size: var(--text-base);
    }
    
    .product-actions {
        padding: var(--space-2) var(--space-3) var(--space-3);        
        flex-direction: column;

    }
    
    .btn-add-cart-modern {
        padding: var(--space-2);
    }
    
    .btn-add-cart-modern span {
        display: none;
    }
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */
.features-section {
    padding: var(--space-24) 0;
    background: var(--bg-primary);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(5, 214, 193, 0.06), transparent);
    pointer-events: none;
}

[data-theme="dark"] .features-section::before {
    background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(5, 214, 193, 0.08), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    position: relative;
    z-index: 1;
}

.feature-card {
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-2xl);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-card);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.feature-icon-modern {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    color: white;
    font-size: var(--text-2xl);
    box-shadow: 0 8px 24px rgba(5, 214, 193, 0.25);
}

.feature-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.feature-desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-section {
        padding: var(--space-16) 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .feature-card {
        padding: var(--space-6);
    }
    
    .feature-icon-modern {
        width: 56px;
        height: 56px;
        font-size: var(--text-xl);
    }
}

/* =====================================================
   NEWSLETTER SECTION
   ===================================================== */
.newsletter-section {
    padding: var(--space-20) 0;
    background: var(--bg-secondary);
}

.newsletter-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    padding: var(--space-10);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-3xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 214, 193, 0.1) 0%, rgba(5, 214, 193, 0.05) 100%);
    pointer-events: none;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    position: relative;
    z-index: 1;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    color: white;
    font-size: var(--text-2xl);
}

.newsletter-text h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.newsletter-text p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.newsletter-form {
    display: flex;
    gap: var(--space-3);
    position: relative;
    z-index: 1;
}

.newsletter-input {
    width: 300px;
    height: 50px;
    padding: 0 var(--space-5);
    background: var(--bg-input);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: var(--text-sm);
    transition: all var(--transition-base);
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 214, 193, 0.15);
}

.newsletter-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-6);
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

@media (max-width: 1024px) {
    .newsletter-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-8);
    }
    
    .newsletter-content {
        flex-direction: column;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
    }
    
    .newsletter-input {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .newsletter-section {
        padding: var(--space-12) 0;
    }
    
    .newsletter-card {
        padding: var(--space-6);
    }
    
    .newsletter-icon {
        width: 50px;
        height: 50px;
        font-size: var(--text-xl);
    }
    
    .newsletter-text h3 {
        font-size: var(--text-lg);
    }
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary); 
    text-align: center !important;
    padding: 80px 40px !important;
    background: var(--bg-card) !important;
    border: 2px dashed var(--border-secondary) !important;
    border-radius: var(--radius-2xl) !important;
}
.empty-state i {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-state p {
    font-size: var(--text-base);
}

/* =====================================================
   FOOTER STYLES
   ===================================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-logo span {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-5);
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer-column h4 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-5);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.copyright {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
}

.footer-bottom-links a {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--text-primary);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: var(--space-12) 0 var(--space-6);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* =====================================================
   MODERN FOOTER
   ===================================================== */
.modern-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-primary);
    margin-top: 0;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(5, 214, 193, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 1;
}

.footer-main {
    padding: var(--space-16) 0 var(--space-10);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
    gap: var(--space-10);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand-col {
    max-width: 320px;
}

.footer-brand {
    margin-bottom: var(--space-5);
}

.footer-logo {
    height: 40px;
    width: auto;
    transition: transform var(--transition-base);
}

.footer-logo:hover {
    transform: scale(1.02);
}

.footer-desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--space-5) 0;
}

.footer-title {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: #ffffff;
    margin: 0 0 var(--space-5) 0;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: var(--space-3);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-fast);
}

.footer-links a:hover {
    color: #4DA6FF;
    transform: translateX(6px);
}

.footer-links a:hover::before {
    width: 12px;
}

.footer-newsletter-col {
    max-width: 280px;
}

.footer-newsletter-text {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 var(--space-4) 0;
    line-height: var(--leading-relaxed);
}

.footer-newsletter-col .newsletter-form {
    margin: 0;
    display: block;
}

.newsletter-input-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.newsletter-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 214, 193, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-input-wrapper .newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: var(--space-3) var(--space-4);
    color: #ffffff;
    font-size: var(--text-sm);
    outline: none;
    width: auto;
    height: auto;
    border-radius: 0;
}

.newsletter-input-wrapper .newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-input-wrapper .newsletter-btn {
    background: var(--gradient-primary);
    border: none;
    padding: var(--space-3) var(--space-4);
    color: white;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: 0;
    height: auto;
    border-radius: 0;
}

.newsletter-input-wrapper .newsletter-btn:hover {
    filter: brightness(1.1);
}

.newsletter-input-wrapper .newsletter-btn span {
    display: none;
}

.footer-bottom {
    border-top: 1px solid var(--border-primary);
    padding: var(--space-6) 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-5);
}

.copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-xs);
    margin: 0;
}

.footer-links-inline {
    display: flex;
    gap: var(--space-6);
}

.footer-links-inline a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: var(--text-xs);
    transition: all var(--transition-fast);
    position: relative;
}

.footer-links-inline a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width var(--transition-fast);
}

.footer-links-inline a:hover {
    color: #4DA6FF;
}

.footer-links-inline a:hover::after {
    width: 100%;
}

.footer-selects {
    display: flex;
    gap: var(--space-3);
}

.footer-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23666' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.footer-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.footer-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 214, 193, 0.15);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-size: var(--text-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-glow);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-lg);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-wrapper {
    text-align: center;
}

.loading-overlay .spinner {
    width: 56px;
    height: 56px;
    border: 3px solid var(--border-secondary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Alert Container */
.alert-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 420px;
}

.alert-container .alert {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-5);
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.alert-container .alert.success {
    border-left: 4px solid var(--success);
}

.alert-container .alert.error {
    border-left: 4px solid var(--error);
}

.alert-container .alert.info {
    border-left: 4px solid var(--secondary);
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
    
    .footer-brand-col {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }
    
    .footer-brand-col .social-links {
        justify-content: center;
    }
    
    .footer-newsletter-col {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: var(--space-12) 0 var(--space-8);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
    
    .footer-brand-col,
    .footer-newsletter-col {
        grid-column: 1 / -1;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }
    .stores-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .footer-links-inline {
        justify-content: center;
    }
    
    .footer-selects {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 46px;
        height: 46px;
        font-size: var(--text-base);
    }
    
    .alert-container {
        right: var(--space-4);
        left: var(--space-4);
        max-width: none;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 var(--space-4);
    }
    
    .footer-main {
        padding: var(--space-10) 0 var(--space-6);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .footer-brand-col,
    .footer-newsletter-col {
        max-width: 100%;
    }
        .stores-grid-modern {
        grid-template-columns: 1fr;
    }
    .footer-links-inline {
        flex-wrap: wrap;
        gap: var(--space-4);
    }
    .favorite-product-card .product-actions {
        flex-direction: column !important;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        border-radius: var(--radius-lg);
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* === AOS (Animate on Scroll) fallback === */
[data-aos] {
    opacity: 0;
    transition: all 0.6s ease;
}

[data-aos].aos-animate,
[data-aos="fade-up"].aos-animate,
[data-aos="fade-down"].aos-animate,
[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-down"] { transform: translateY(-30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }

/* Trigger animations when page loads if AOS library isn't loaded */
body.aos-loaded [data-aos] {
    opacity: 1;
    transform: none;
}

/* Fallback for when AOS is not loaded */
@media (prefers-reduced-motion: no-preference) {
    [data-aos] {
        opacity: 1;
        transform: none;
    }
}
