/* ======================================================
   TUNDEX MEGA ELECTRONICS - Premium Design System
   ====================================================== */

/* === CSS VARIABLES === */
:root {
    /* Primary Palette */
    --primary: #1a2744;
    --primary-light: #243556;
    --primary-dark: #0f1a2e;
    --accent: #f97316;
    --accent-light: #fdba74;
    --accent-dark: #ea580c;
    --electric-blue: #3b82f6;
    --electric-blue-light: #93c5fd;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(20px);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
    
    /* Spacing */
    --container-max: 1400px;
    --section-padding: 80px;
    --card-radius: 16px;
    --btn-radius: 12px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: var(--font-main);
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
}

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

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

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

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

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

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

main {
    overflow-x: hidden;
}

/* === TOP BAR === */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar__left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar__left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar__left i {
    color: var(--accent);
}

.top-bar__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar__right a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.top-bar__right a:hover {
    color: var(--accent);
}

.top-bar__social {
    display: flex;
    gap: 12px;
}

.top-bar__social a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.top-bar__social a:hover {
    color: var(--accent);
}

/* === MAIN HEADER === */
.header {
    background: var(--white);
    padding: 16px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: var(--glass-blur);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--gray-200);
}

.header .container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__logo {
    flex-shrink: 0;
}

.header__logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.header__logo-text {
    display: flex;
    flex-direction: column;
}

.header__logo-text h1 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.header__logo-text span {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Search */
.header__search {
    flex: 1;
    max-width: 580px;
    position: relative;
}

.header__search form {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header__search form:focus-within {
    border-color: var(--electric-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--white);
}

.header__search input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--gray-800);
    outline: none;
}

.header__search input::placeholder {
    color: var(--gray-400);
}

.header__search button {
    background: var(--electric-blue);
    color: var(--white);
    padding: 10px 22px;
    margin: 4px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background var(--transition-fast);
}

.header__search button:hover {
    background: #2563eb;
}

/* Header Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.header__action-btn--user {
    color: var(--gray-700);
    background: var(--gray-100);
}

.header__action-btn--user:hover {
    background: var(--gray-200);
    color: var(--primary);
}

.header__action-btn--cart {
    background: var(--primary);
    color: var(--white);
}

.header__action-btn--cart:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.header__cart-count {
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile Menu Button */
.header__mobile-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--gray-700);
    font-size: 22px;
    background: var(--gray-100);
    transition: background var(--transition-fast);
}

.header__mobile-btn:hover {
    background: var(--gray-200);
}

/* Mobile Search Button - hidden on desktop */
.header__mobile-search-btn {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #1e293b;
    font-size: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: 6px;
}

/* === NAVIGATION BAR === */
.nav-bar {
    background: var(--primary);
    position: sticky;
    top: 80px;
    z-index: 999;
}

.nav-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    padding: 14px 20px;
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: all var(--transition);
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}

.nav-menu li a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-menu li a:hover::after {
    width: 60%;
}

.nav-menu li a i {
    font-size: 13px;
    opacity: 0.7;
}

/* Categories Mega Menu Trigger */
.nav__categories-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: var(--white);
    padding: 14px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.nav__categories-btn:hover {
    background: var(--accent-dark);
}

.nav__categories-btn i:last-child {
    margin-left: 4px;
    font-size: 12px;
    transition: transform var(--transition-fast);
}

/* === MOBILE MENU === */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--transition);
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 310px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    overflow-y: auto;
    transition: left var(--transition);
    box-shadow: var(--shadow-xl);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu__header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu__header h3 {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
}

.mobile-menu__close {
    color: var(--white);
    font-size: 24px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background var(--transition-fast);
}

.mobile-menu__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu nav {
    padding: 12px 0;
}

.mobile-menu nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: var(--gray-700);
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
}

.mobile-menu nav a i {
    width: 20px;
    color: var(--gray-400);
}

.mobile-menu nav a:hover {
    background: var(--gray-50);
    color: var(--electric-blue);
    padding-left: 28px;
}

.mobile-menu nav a:hover i {
    color: var(--electric-blue);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: var(--primary-dark);
    max-width: 100vw;
}

.hero__slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.hero__slide.active {
    opacity: 1;
    z-index: 2;
}

.hero__slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
}

.hero__content {
    position: relative;
    z-index: 5;
    max-width: 650px;
    padding-left: 8%;
    animation: heroSlideIn 0.8s ease-out;
}

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

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.hero__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
    line-height: 1.5;
    max-width: 450px;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--white);
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    transition: all var(--transition);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.hero__btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.45);
}

.hero__btn--outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
    box-shadow: none;
}

.hero__btn--outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.hero__indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero__indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.hero__indicator.active {
    background: var(--accent);
    width: 56px;
}

/* === SECTION STYLING === */
.section {
    padding: 50px 0;
}

.section--gray {
    background: var(--gray-100);
}

.section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.section__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.3px;
    position: relative;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.section__link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--electric-blue);
    font-weight: 600;
    font-size: 14px;
    transition: gap var(--transition-fast);
}

.section__link:hover {
    gap: 10px;
}

/* === CATEGORY STRIP === */
.categories-strip {
    display: flex;
    gap: 10px;
    padding: 24px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-strip::-webkit-scrollbar { display: none; }

.category-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    padding: 10px 18px;
    white-space: nowrap;
    transition: all var(--transition-fast);
    cursor: pointer;
    flex-shrink: 0;
}

.category-chip:hover {
    border-color: var(--electric-blue);
    background: #eff6ff;
    color: var(--electric-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-chip__icon {
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--electric-blue);
    transition: all var(--transition-fast);
}

.category-chip:hover .category-chip__icon {
    background: var(--electric-blue);
    color: var(--white);
}

.category-chip__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.category-chip:hover .category-chip__name {
    color: var(--electric-blue);
}

/* Grid version for larger screens */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin: 30px 0;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--electric-blue);
}

.category-card__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    background: var(--gray-50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--electric-blue);
    transition: all var(--transition);
}

.category-card:hover .category-card__icon {
    background: var(--electric-blue);
    color: var(--white);
}

.category-card__name {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    line-height: 1.3;
}

/* === PRODUCT CARDS === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--gray-300);
}

.product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e53e3e;
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 5;
}

.product-card__actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition);
    z-index: 5;
}

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

.product-card__action-btn {
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    color: var(--gray-600);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.product-card__action-btn:hover {
    background: var(--electric-blue);
    color: var(--white);
    transform: scale(1.1);
}

.product-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f8f8;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.04);
}

.product-card__content {
    padding: 12px 14px 14px;
}

.product-card__category {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.product-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    text-decoration: none;
}

a.product-card__name:hover {
    color: var(--electric-blue);
}

a.product-card__image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f8f8;
}

a.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.3s ease;
}

.product-card:hover a.product-card__image img {
    transform: scale(1.04);
}

.product-card__stock {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.product-card__stock--in {
    background: #d1fae5;
    color: #065f46;
}

.product-card__stock--low {
    background: #fef3c7;
    color: #92400e;
}

.product-card__stock--out {
    background: #fee2e2;
    color: #991b1b;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--gray-100);
}

.product-card__price {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--gray-900);
}

.product-card__old-price {
    font-size: 13px;
    color: var(--gray-400);
    text-decoration: line-through;
    font-weight: 500;
    display: block;
}

.product-card__cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.2s;
}

.product-card__cart-btn:hover {
    background: var(--electric-blue);
}

.product-card__cart-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* === BRAND MARQUEE === */
.brand-marquee {
    padding: 30px 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    overflow: hidden;
    position: relative;
}

.brand-marquee__track {
    display: flex;
    gap: 50px;
    animation: marqueeScroll 25s linear infinite;
    width: max-content;
    will-change: transform;
}

.brand-marquee__track:hover {
    animation-play-state: paused;
}

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

.brand-marquee__item {
    height: 40px;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
    filter: grayscale(100%);
    flex-shrink: 0;
}

.brand-marquee__item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* === FLASH SALE === */
.flash-sale {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: 18px;
    padding: 30px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.flash-sale::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.flash-sale__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.flash-sale__title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
}

.flash-sale__title i {
    color: var(--accent);
    font-size: 28px;
    animation: flashPulse 1.5s ease-in-out infinite;
}

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

.flash-sale__countdown {
    display: flex;
    gap: 10px;
}

.flash-sale__time-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px 14px;
    text-align: center;
    min-width: 60px;
}

.flash-sale__time-box .number {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.flash-sale__time-box .label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* === PROMO BANNER === */
.promo-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border-radius: 16px;
    padding: 36px 40px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.promo-banner::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.promo-banner__text h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.promo-banner__text p {
    font-size: 14px;
    opacity: 0.85;
}

.promo-banner__btn {
    background: var(--accent);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    transition: all var(--transition);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
    flex-shrink: 0;
}

.promo-banner__btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.45);
}

/* === FEATURE STRIP === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 40px 0;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 22px 16px;
    text-align: center;
    transition: all var(--transition);
}

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

.feature-card__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--electric-blue);
}

.feature-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 12px;
    color: var(--gray-500);
}

/* === NEWSLETTER === */
.newsletter {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 44px 0;
    text-align: center;
}

.newsletter__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.newsletter__subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 24px;
}

.newsletter__form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 8px;
}

.newsletter__form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter__form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter__form input:focus {
    border-color: var(--accent);
}

.newsletter__form button {
    background: var(--accent);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.newsletter__form button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* === FOOTER === */
.footer {
    background: #fff;
    color: #555;
    padding: 30px 0 0;
    margin-top: 40px;
    border-top: 1px solid #e5e5e5;
}

.footer__main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    gap: 30px;
    flex-wrap: wrap;
}

.footer__info h4 {
    color: #222;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer__contact-list p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.footer__contact-list i {
    color: #999;
    width: 14px;
    font-size: 13px;
}

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

.footer__social a {
    width: 34px;
    height: 34px;
    background: #f3f3f3;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    transition: all 0.2s;
}

.footer__social a:hover {
    background: var(--electric-blue);
    color: #fff;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 6px;
}

.footer__bottom p {
    font-size: 12px;
    color: #999;
}

.footer__credit a {
    color: var(--electric-blue);
    font-weight: 600;
    transition: color 0.2s;
}

.footer__credit a:hover {
    color: var(--accent);
}

/* === MOBILE BOTTOM NAV === */
/* Handled via inline styles in footer.php for maximum compatibility */

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--electric-blue);
    color: var(--white);
}

.btn--primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--accent {
    background: var(--accent);
    color: var(--white);
}

.btn--accent:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

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

.btn--outline:hover {
    border-color: var(--electric-blue);
    color: var(--electric-blue);
    background: #eff6ff;
}

/* === SKELETON LOADER === */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 8px;
}

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

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(5, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
    }
    
    .top-bar { display: none; }
    
    .header {
        padding: 12px 0;
    }
    
    .header .container {
        gap: 12px;
    }
    
    .header__mobile-btn { display: flex; }
    .header__search { display: none; }
    .header__action-btn--user { display: none; }
    .header__mobile-search-btn { display: flex; }
    
    .header__action-btn--cart span:not(.header__cart-count) {
        display: none;
    }
    
    .header__action-btn--cart {
        padding: 10px 14px;
    }
    
    .nav-bar { display: none; }
    
    .hero { height: 340px; }
    .hero__content { padding-left: 5%; }
    .hero__title { font-size: 1.7rem; }
    .hero__subtitle { font-size: 0.85rem; margin-bottom: 20px; }
    .hero__btn { padding: 12px 24px; font-size: 13px; }
    
    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
    .category-card { padding: 12px 8px; border-radius: 10px; }
    .category-card__icon { width: 32px; height: 32px; font-size: 13px; margin-bottom: 6px; }
    .category-card__name { font-size: 10px; }
    
    .categories-strip { gap: 8px; padding: 16px 0; }
    .category-chip { padding: 8px 14px; }
    .category-chip__icon { width: 28px; height: 28px; font-size: 12px; }
    .category-chip__name { font-size: 12px; }
    
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card { border-radius: 10px; }
    .product-card__content { padding: 10px 10px 12px; }
    .product-card__name { font-size: 12px; }
    .product-card__category { font-size: 9px; margin-bottom: 3px; }
    .product-card__price { font-size: 14px; }
    .product-card__old-price { font-size: 10px; }
    .product-card__cart-btn { width: 30px; height: 30px; font-size: 11px; border-radius: 6px; }
    .product-card__stock { font-size: 10px; padding: 2px 8px; margin-bottom: 6px; }
    .product-card__actions { display: none; }
    .product-card__image img { padding: 8px; }
    
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .feature-card { padding: 16px 12px; border-radius: 10px; }
    .feature-card__icon { width: 40px; height: 40px; font-size: 16px; margin-bottom: 10px; }
    .feature-card h4 { font-size: 13px; }
    .feature-card p { font-size: 11px; }
    
    .promo-banner { flex-direction: column; text-align: center; padding: 28px 20px; border-radius: 16px; margin: 30px 0; }
    .promo-banner__text h3 { font-size: 18px; }
    .promo-banner__text p { font-size: 13px; }
    .promo-banner__btn { padding: 12px 28px; font-size: 13px; }
    
    .flash-sale { padding: 16px; margin: 16px 0; border-radius: 12px; }
    .flash-sale__header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .flash-sale__title { font-size: 16px; }
    .flash-sale .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
    .flash-sale .product-card__content { padding: 8px 8px 10px; }
    .flash-sale .product-card__name { font-size: 11px; }
    
    .footer__main { flex-direction: column; align-items: flex-start; }
    .footer__bottom { flex-direction: column; text-align: center; padding-bottom: 10px; }
    
    .newsletter { padding: 40px 0; }
    .newsletter__title { font-size: 20px; }
    .newsletter__form { flex-direction: column; padding: 0 16px; }
    .newsletter__form button { width: 100%; }
    
    .footer { margin-bottom: 60px; }
    
    .section { padding: 30px 0; }
    .section__header { margin-bottom: 16px; }
    .section__title { font-size: 18px; }
    .section__title::after { bottom: -4px; width: 30px; height: 2px; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .flash-sale__countdown { gap: 6px; }
    .flash-sale__time-box { min-width: 50px; padding: 6px 10px; }
    .flash-sale__time-box .number { font-size: 18px; }
}

/* === ANIMATIONS === */
@media (prefers-reduced-motion: no-preference) {
    .product-card,
    .category-card,
    .feature-card {
        animation: fadeInUp 0.5s ease backwards;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* === TOAST NOTIFICATION === */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--gray-900);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast--success { background: #16a34a; }
.toast--error { background: #dc2626; }

/* === UTILITY CLASSES === */
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-blue { color: var(--electric-blue); }
.text-muted { color: var(--gray-500); }
.font-display { font-family: var(--font-display); }
.fw-800 { font-weight: 800; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
