:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #e0e7ff;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --accent: #06b6d4;
    --accent-light: #cffafe;
    --accent-red: #ff334c;
    --accent-red-dark: #e02e44;
    --text: #15244d;
    --text-secondary: #334155;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --text-muted: #cbd5e1;
    --bg: #ffffff;
    --bg-light: #f8f8f8;
    --bg-lighter: #f1f2f4;
    --bg-dark: #15244d;
    --border: #e7ebf4;
    --border-light: #f1f2f4;
    --success: #23ce6b;
    --success-light: #d1fae5;
    --warning: #fda10d;
    --warning-light: #fef3c7;
    --danger: #ff334c;
    --danger-light: #fee2e2;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.08);
    --shadow-2xl: 0 25px 50px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --r: 12px;
    --rs: 10px;
    --rl: 20px;
    --rxl: 28px;
    --rp: 9999px;
    --t: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans Georgian', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg-light);
    line-height: 1.2;
    font-size: 15px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--t-fast); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--rp);
    font-weight: 600; font-size: 14px; cursor: pointer;
    transition: var(--t); border: 2px solid transparent;
    white-space: nowrap; letter-spacing: 0.01em;
    position: relative; overflow: hidden;
}
.btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0; transition: var(--t-fast);
}
.btn:hover::after { opacity: 1; }
.btn-primary {
    background: var(--primary);
    color: white; box-shadow: none;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: var(--primary-dark); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
    background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25);
    color: white; backdrop-filter: blur(10px);
}
.btn-outline:hover { background: white; color: var(--accent-red); border-color: white; }
.btn-outline.btn-dark {
    background: transparent; border-color: var(--border); color: var(--text);
}
.btn-outline.btn-dark:hover { border-color: var(--accent-red); color: var(--accent-red); background: #fff0f1; }
.btn-ghost {
    background: transparent; color: var(--text-light); border: none; padding: 10px 16px;
}
.btn-ghost:hover { background: var(--bg-lighter); color: var(--text); }
.btn-cart {
    background: var(--accent-red);
    color: white; border: none; width: 100%; padding: 12px;
    box-shadow: none;
    border-radius: var(--rs);
}
.btn-cart:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: var(--accent-red-dark); }
.btn-cart:active { transform: translateY(0); }
.btn-cart:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-icon {
    width: 40px; height: 40px; padding: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ========== BADGES ========== */
.badge {
    position: absolute; top: 12px; left: 12px;
    padding: 5px 12px; border-radius: var(--rp);
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; z-index: 2;
    backdrop-filter: blur(4px);
}
.badge-new { background: var(--success); color: white; }
.badge-sale { background: var(--accent-red); color: white; }
.badge-out { background: var(--text-lighter); color: white; }
.badge-hot { background: var(--accent-red); color: white; }

/* ========== HEADER ========== */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    transition: var(--t);
}
.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-top {
    background: linear-gradient(135deg, var(--bg-dark), #1e293b);
    color: white; padding: 8px 0; font-size: 12px;
}
.header-top-content { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.header-top-content a, .header-top-content span {
    display: flex; align-items: center; gap: 6px; opacity: 0.8;
    transition: var(--t-fast);
}
.header-top-content a:hover { opacity: 1; color: var(--accent); }
.header-top-content i { font-size: 11px; }

.header-main { padding: 8px 0; }
.header-content { display: flex; align-items: center; gap: 20px; }

.logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
    flex-shrink: 0;
}
.logo-icon {
    width: 36px; height: 36px;
    background: var(--accent-red);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 15px;
    box-shadow: 0 2px 8px rgba(255, 51, 76, 0.3);
}
.logo-text .logo-highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-text .logo-domain { color: var(--text-lighter); font-weight: 400; font-size: 0.7em; }

/* Search bar in header */
.header-search {
    flex: 1; max-width: 480px; position: relative;
}
.header-search input {
    width: 100%; padding: 10px 42px 10px 16px;
    border: 1.5px solid var(--border); border-radius: var(--rp);
    font-size: 13px; background: var(--bg-light);
    transition: var(--t-fast); outline: none; font-family: inherit;
}
.header-search input:focus {
    border-color: var(--primary); background: var(--bg);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search button {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border: none; background: transparent;
    color: var(--text-light); cursor: pointer; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--t-fast); font-size: 13px;
}
.header-search button:hover { background: var(--primary-light); color: var(--primary); }

.main-nav { display: flex; gap: 4px; flex: 1; align-items: center; }
.nav-link {
    padding: 8px 18px; border-radius: var(--rp);
    font-weight: 500; font-size: 14px;
    color: var(--text-secondary);
    position: relative; display: flex; align-items: center; gap: 6px;
    transition: var(--t-fast);
}
.nav-link:hover { color: var(--text); background: var(--bg-lighter); }
.nav-link.active {
    color: var(--accent-red); background: #fff0f1;
    font-weight: 600;
}

.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown .nav-link i { font-size: 10px; transition: var(--t-fast); }
.nav-dropdown:hover .nav-link i { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 0;
    background: var(--bg); backdrop-filter: blur(20px);
    box-shadow: var(--shadow-2xl); border-radius: var(--r);
    padding: 10px; min-width: 220px; display: none; z-index: 50;
    border: 1px solid var(--border-light);
}
.nav-dropdown:hover .dropdown-menu { display: block; animation: fadeDown 0.2s ease; }
.dropdown-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--rs); font-size: 14px; font-weight: 500;
    color: var(--text-secondary);
}
.dropdown-menu a:hover { background: #fff0f1; color: var(--accent-red); }
.dropdown-menu a i { width: 18px; text-align: center; font-size: 13px; opacity: 0.7; }

.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.header-action-btn {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: transparent; cursor: pointer; transition: var(--t-fast);
    position: relative; font-size: 15px; border: none; color: var(--text-secondary);
}
.header-action-btn:hover { background: var(--bg-lighter); color: var(--text); }
.cart-count {
    position: absolute; top: 0; right: 0;
    background: var(--accent-red); color: white;
    font-size: 9px; font-weight: 700;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 51, 76, 0.4);
}

.mobile-menu-btn {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-menu-btn span {
    width: 22px; height: 2px; background: var(--text);
    transition: var(--t); border-radius: 2px;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 199; opacity: 0; visibility: hidden;
    transition: var(--t);
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }

.mobile-nav {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
    background: var(--bg); box-shadow: var(--shadow-2xl); z-index: 200;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.mobile-nav.active { right: 0; }
.mobile-nav-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid var(--border-light);
}
.mobile-nav-close {
    background: none; border: none; font-size: 20px; cursor: pointer;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light); transition: var(--t-fast);
}
.mobile-nav-close:hover { background: var(--bg-lighter); color: var(--text); }
.mobile-nav-links { flex: 1; overflow-y: auto; padding: 12px 0; }
.mobile-nav-links a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 24px; font-size: 15px; font-weight: 500;
    color: var(--text-secondary); transition: var(--t-fast);
}
.mobile-nav-links a:hover { background: #fff0f1; color: var(--accent-red); }
.mobile-nav-links a i { width: 20px; text-align: center; font-size: 14px; opacity: 0.6; }
.mobile-nav-links .sub-link { padding-left: 56px; font-size: 14px; color: var(--text-light); }
.mobile-nav-footer {
    padding: 16px 24px; border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}

/* ========== FLASH MESSAGES ========== */
.flash-messages { position: fixed; top: 80px; right: 24px; z-index: 150; max-width: 400px; }
.flash {
    background: var(--bg); padding: 14px 20px; border-radius: var(--r);
    box-shadow: var(--shadow-xl); margin-bottom: 10px;
    display: flex; align-items: center; justify-content: space-between;
    border: 1px solid var(--border-light); animation: slideIn 0.3s ease;
}
.flash-success { border-left: 4px solid var(--success); }
.flash-error { border-left: 4px solid var(--danger); }
.flash-close {
    background: none; border: none; font-size: 20px; cursor: pointer;
    margin-left: 16px; opacity: 0.5; color: var(--text-light);
}
.flash-close:hover { opacity: 1; }

/* ========== HERO ========== */
.mega-hero { position: relative; overflow: hidden; background: var(--bg-dark); }
.hero-slider { position: relative; }
.hero-slide {
    display: none; padding: 80px 0; position: relative;
}
.hero-slide.active { display: block; animation: fadeIn 0.6s ease; }
.hero-slide::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(99,102,241,0.15) 0%, transparent 60%);
}
.hero-slide-content {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: center; position: relative; z-index: 1;
}
.hero-slide .hero-text { color: white; }
.hero-slide .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--rp); font-size: 12px; font-weight: 600;
    color: white; margin-bottom: 20px;
}
.hero-slide .hero-text h1 {
    font-size: 48px; line-height: 1.1; margin-bottom: 18px;
    font-weight: 800; letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-slide .hero-text p {
    font-size: 17px; opacity: 0.8; margin-bottom: 32px; line-height: 1.7;
    max-width: 480px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-slide .hero-image {
    border-radius: var(--rl); overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}
.hero-slide .hero-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), transparent);
}
.hero-slide .hero-image img { width: 100%; height: 420px; object-fit: cover; }
.hero-controls {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 10;
}
.hero-dot {
    width: 8px; height: 8px; border-radius: var(--rp);
    border: 2px solid rgba(255,255,255,0.4); background: transparent;
    cursor: pointer; transition: var(--t); padding: 0;
}
.hero-dot.active { background: white; border-color: white; width: 28px; }

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

/* ========== FEATURES STRIP ========== */
.features-strip { padding: 0; margin-top: -32px; position: relative; z-index: 10; }
.features-strip .features-grid {
    background: var(--bg); border-radius: var(--rl);
    box-shadow: var(--shadow-xl); padding: 28px 32px;
    border: 1px solid var(--border-light);
}
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px; border-radius: var(--r); transition: var(--t);
}
.feature-card:hover { background: var(--bg-light); }
.feature-card i {
    width: 48px; height: 48px;
    background: #fff0f1;
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--accent-red); flex-shrink: 0;
}
.feature-card h3 { font-size: 13px; margin-bottom: 2px; font-weight: 700; }
.feature-card p { font-size: 12px; color: var(--text-light); }

/* ========== PROMO BANNERS ========== */
.promo-banners { padding: 48px 0; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.promo-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 28px; border-radius: var(--rl); overflow: hidden; color: white;
    transition: var(--t); position: relative;
}
.promo-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.promo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.promo-large { grid-row: span 2; }
.promo-tag {
    display: inline-block; padding: 4px 12px;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(10px);
    border-radius: var(--rp); font-size: 11px; font-weight: 600; margin-bottom: 12px;
}
.promo-content { position: relative; z-index: 1; }
.promo-content h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.promo-large .promo-content h3 { font-size: 28px; }
.promo-content p { font-size: 13px; opacity: 0.85; margin-bottom: 14px; }
.promo-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.promo-link:hover { gap: 12px; }
.promo-image {
    width: 130px; height: 130px; border-radius: var(--r);
    overflow: hidden; flex-shrink: 0; position: relative; z-index: 1;
}
.promo-large .promo-image { width: 180px; height: 180px; }
.promo-image img { width: 100%; height: 100%; object-fit: cover; }

/* ========== SECTIONS ========== */
.section-subtitle {
    display: block; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--accent-red); margin-bottom: 6px;
}
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 32px;
}
.section-header h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.view-all {
    color: var(--accent-red); font-weight: 600; display: flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: var(--rp); background: #fff0f1;
    font-size: 13px;
}
.view-all:hover { background: var(--accent-red); color: white; }

/* ========== CATEGORIES ========== */
.categories-section { padding: 56px 0; }
.categories-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.category-card {
    text-align: center; border-radius: var(--r); overflow: hidden;
    background: var(--bg); border: 1px solid var(--border-light);
    transition: var(--t); position: relative;
}
.category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.category-image { position: relative; height: 120px; overflow: hidden; }
.category-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--t); }
.category-card:hover .category-image img { transform: scale(1.08); }
.category-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,51,76,0.5), rgba(255,51,76,0.3));
    display: flex; align-items: center; justify-content: center;
}
.category-overlay i { font-size: 32px; color: white; }
.category-card h3 { padding: 14px 8px; font-size: 12px; font-weight: 600; }

/* ========== DEALS ========== */
.deals-section { padding: 56px 0; }
.deals-wrapper {
    background: linear-gradient(135deg, #fff5f5, #ffe0e3);
    border-radius: var(--rl); padding: 32px;
    border: 1px solid #ffd0d5;
}
.deals-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.deals-header h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.countdown { display: flex; align-items: center; gap: 6px; }
.countdown-item {
    background: var(--bg-dark); color: white; padding: 10px 14px;
    border-radius: var(--rs); text-align: center; min-width: 60px;
}
.countdown-num { display: block; font-size: 22px; font-weight: 800; line-height: 1; }
.countdown-label { font-size: 10px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; }
.countdown-sep { font-size: 22px; font-weight: 800; color: var(--bg-dark); }
.deals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ========== PRODUCTS ========== */
.products-section { padding: 56px 0; }
.products-section.bg-light { background: var(--bg); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.product-card {
    background: var(--bg); border-radius: var(--r); overflow: hidden;
    border: 1px solid var(--border-light); transition: var(--t);
    position: relative; display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-lg);
    border-color: var(--border);
}
.product-image {
    display: block; height: 220px; overflow: hidden;
    background: var(--bg-lighter); position: relative;
}
.product-image img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-quick-actions {
    position: absolute; top: 12px; right: 12px;
    display: flex; flex-direction: column; gap: 6px;
    opacity: 0; transform: translateX(10px);
    transition: var(--t);
}
.product-card:hover .product-quick-actions {
    opacity: 1; transform: translateX(0);
}
.quick-action-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--bg); border: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--t-fast); color: var(--text-light);
    font-size: 13px; box-shadow: var(--shadow-sm);
}
.quick-action-btn:hover {
    background: var(--accent-red); color: white; border-color: var(--accent-red);
}
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-brand {
    font-size: 11px; color: var(--text-lighter);
    text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600;
}
.product-name {
    display: block; font-size: 14px; font-weight: 600;
    margin: 4px 0 10px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.product-name:hover { color: var(--accent-red); }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; margin-top: auto; }
.current-price { font-size: 18px; font-weight: 800; color: var(--text); }
.old-price { font-size: 13px; color: var(--text-lighter); text-decoration: line-through; }
.add-to-cart-form { margin-top: 4px; }

/* ========== BRANDS ========== */
.brands-section { padding: 56px 0; background: var(--bg); }
.brands-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.brand-card {
    background: var(--bg-light); border: 1px solid var(--border-light);
    border-radius: var(--r); padding: 24px 12px; text-align: center;
    transition: var(--t); cursor: pointer;
}
.brand-card:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-md);
    border-color: var(--border); background: var(--bg);
}
.brand-card span { font-size: 14px; font-weight: 700; color: var(--text-light); }
.brand-card:hover span { color: var(--primary); }

/* ========== CTA BANNER ========== */
.cta-banner { padding: 56px 0; }
.cta-content {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: center; background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    border-radius: var(--rl); padding: 48px; color: white; overflow: hidden;
    position: relative;
}
.cta-content::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 90% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}
.cta-text { position: relative; z-index: 1; }
.cta-text h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.cta-text p { font-size: 15px; opacity: 0.9; margin-bottom: 24px; line-height: 1.7; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-image { border-radius: var(--r); overflow: hidden; position: relative; z-index: 1; }
.cta-image img { width: 100%; height: 300px; object-fit: cover; }

/* ========== NEWSLETTER ========== */
.newsletter {
    padding: 56px 0;
    background: linear-gradient(135deg, var(--bg-dark), #1e293b);
    color: white; position: relative; overflow: hidden;
}
.newsletter::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.newsletter-content { text-align: center; max-width: 500px; margin: 0 auto; position: relative; z-index: 1; }
.newsletter-icon { font-size: 44px; margin-bottom: 16px; opacity: 0.6; }
.newsletter-content h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.newsletter-content p { margin-bottom: 24px; opacity: 0.8; font-size: 15px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
    flex: 1; padding: 14px 20px; border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--rp); font-size: 14px; font-family: inherit;
    outline: none; background: rgba(255,255,255,0.08); color: white;
    transition: var(--t);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { border-color: var(--primary); background: rgba(255,255,255,0.12); }
.newsletter-form .btn-primary { background: white; color: var(--accent-red); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-light) 100%);
    padding: 32px 0; border-bottom: 1px solid var(--border-light);
}
.page-header h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent-red); }

/* ========== SHOP ========== */
.shop-section { padding: 32px 0; }
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }

.shop-sidebar { position: sticky; top: 100px; align-self: start; }
.filter-group {
    background: var(--bg); padding: 20px; border-radius: var(--r);
    margin-bottom: 12px; border: 1px solid var(--border-light);
}
.filter-group h3 {
    font-size: 14px; font-weight: 700; margin-bottom: 14px;
    padding-bottom: 12px; border-bottom: 1px solid var(--border-light);
}
.filter-list li { margin-bottom: 2px; }
.filter-list a {
    display: block; padding: 8px 12px; border-radius: var(--rs);
    font-size: 13px; font-weight: 500; color: var(--text-secondary);
}
.filter-list a:hover, .filter-list a.active { background: #fff0f1; color: var(--accent-red); }

.shop-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding: 12px 18px;
    background: var(--bg); border-radius: var(--r);
    border: 1px solid var(--border-light);
}
.results-count { font-size: 13px; color: var(--text-light); font-weight: 500; }
.sort-form select {
    padding: 8px 14px; border: 2px solid var(--border);
    border-radius: var(--rp); font-family: inherit;
    font-size: 13px; outline: none; background: var(--bg); cursor: pointer;
}
.sort-form select:focus { border-color: var(--accent-red); }

.mobile-filter-toggle {
    display: none; width: 100%; padding: 12px;
    background: var(--bg); border: 1px solid var(--border-light);
    border-radius: var(--r); margin-bottom: 16px;
    font-weight: 600; font-size: 14px; cursor: pointer;
    color: var(--text-secondary);
}
.mobile-filter-toggle i { margin-right: 8px; }

.no-results { text-align: center; padding: 60px 20px; color: var(--text-light); }
.no-results i { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }
.no-results h3 { margin-bottom: 6px; color: var(--text); }

/* ========== PRODUCT DETAIL ========== */
.product-detail { padding: 32px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.product-gallery {}
.main-image {
    border-radius: var(--rl); overflow: hidden;
    background: var(--bg); border: 1px solid var(--border-light);
    margin-bottom: 12px;
}
.main-image img { width: 100%; height: 480px; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumb {
    width: 72px; height: 72px; border-radius: var(--rs);
    overflow: hidden; border: 2px solid var(--border-light);
    cursor: pointer; transition: var(--t-fast); opacity: 0.6;
}
.gallery-thumb:hover, .gallery-thumb.active {
    border-color: var(--accent-red); opacity: 1;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info {
    background: var(--bg); padding: 28px; border-radius: var(--rl);
    border: 1px solid var(--border-light);
    position: sticky; top: 100px;
}
.product-detail-info .badge { position: static; display: inline-block; margin-right: 6px; margin-bottom: 12px; }
.product-brand-large {
    font-size: 12px; color: var(--accent-red); text-transform: uppercase;
    letter-spacing: 1.5px; font-weight: 700;
}
.product-detail-info h1 {
    font-size: 26px; font-weight: 800; margin: 8px 0 12px;
    letter-spacing: -0.02em; line-height: 1.3;
}
.product-description { color: var(--text-light); margin-bottom: 20px; line-height: 1.7; font-size: 14px; }
.product-price-large { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.product-price-large .current-price { font-size: 32px; font-weight: 800; color: var(--text); }
.product-price-large .old-price { font-size: 18px; }
.discount {
    background: var(--accent-red);
    color: white; padding: 4px 12px; border-radius: var(--rp);
    font-size: 12px; font-weight: 700;
}
.product-stock {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 20px; font-weight: 600; font-size: 13px;
}
.in-stock { color: var(--success); }
.out-of-stock { color: var(--danger); }

.add-to-cart-detail { display: flex; gap: 12px; align-items: center; }
.quantity-selector {
    display: flex; align-items: center;
    border: 2px solid var(--border); border-radius: var(--rp); overflow: hidden;
}
.qty-btn {
    width: 40px; height: 44px; background: var(--bg-light);
    border: none; cursor: pointer; font-size: 13px; transition: var(--t-fast);
    color: var(--text-secondary);
}
.qty-btn:hover { background: #fff0f1; color: var(--accent-red); }
.quantity-selector input {
    width: 44px; text-align: center; border: none;
    font-size: 15px; font-weight: 700; font-family: inherit; outline: none;
}

.product-specs { margin-top: 40px; }
.product-specs h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.specs-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    border-radius: var(--r); overflow: hidden; border: 1px solid var(--border-light);
}
.specs-table tr { border-bottom: 1px solid var(--border-light); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 14px 18px; font-size: 14px; }
.specs-table td:first-child { font-weight: 600; width: 40%; background: var(--bg-light); color: var(--text-light); }

/* ========== CART ========== */
.cart-section { padding: 32px 0; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }

.cart-item {
    display: grid; grid-template-columns: 88px 1fr auto auto auto auto;
    gap: 18px; align-items: center; padding: 18px;
    background: var(--bg); border-radius: var(--r);
    border: 1px solid var(--border-light); margin-bottom: 10px;
    transition: var(--t);
}
.cart-item:hover { box-shadow: var(--shadow-md); }
.cart-item-image {
    width: 88px; height: 88px; border-radius: var(--rs);
    overflow: hidden; background: var(--bg-lighter);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 700; display: block; font-size: 14px; }
.cart-item-brand { font-size: 11px; color: var(--text-lighter); }
.cart-item-price { font-weight: 700; font-size: 14px; }
.cart-item-quantity {
    display: flex; align-items: center;
    border: 2px solid var(--border); border-radius: var(--rp); overflow: hidden;
}
.cart-item-quantity .qty-btn { width: 34px; height: 38px; }
.cart-item-quantity input {
    width: 40px; text-align: center; border: none;
    font-family: inherit; font-size: 13px; font-weight: 600; outline: none;
}
.cart-item-subtotal { font-weight: 800; font-size: 16px; color: var(--text); min-width: 70px; text-align: right; }
.cart-item-remove button {
    background: none; border: none; color: var(--text-lighter);
    cursor: pointer; font-size: 14px; padding: 8px; border-radius: 50%;
    transition: var(--t-fast);
}
.cart-item-remove button:hover { color: var(--danger); background: var(--danger-light); }

.cart-actions { display: flex; gap: 10px; margin-top: 16px; }

.cart-summary {
    background: var(--bg); padding: 24px; border-radius: var(--r);
    position: sticky; top: 100px; border: 1px solid var(--border-light);
}
.cart-summary h3 {
    font-size: 16px; font-weight: 700; margin-bottom: 18px;
    padding-bottom: 14px; border-bottom: 1px solid var(--border-light);
}
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; }
.summary-row .free { color: var(--success); font-weight: 700; }
.summary-total {
    display: flex; justify-content: space-between; padding: 18px 0 0;
    margin-top: 12px; border-top: 2px solid var(--border-light);
    font-size: 18px; font-weight: 800;
}

.empty-cart { text-align: center; padding: 80px 20px; }
.empty-cart i { font-size: 64px; color: var(--text-lighter); margin-bottom: 16px; opacity: 0.3; }
.empty-cart h2 { margin-bottom: 6px; font-weight: 800; }
.empty-cart p { color: var(--text-light); margin-bottom: 24px; }

/* ========== CHECKOUT ========== */
.checkout-section { padding: 32px 0; }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.checkout-group {
    background: var(--bg); padding: 24px; border-radius: var(--r);
    border: 1px solid var(--border-light); margin-bottom: 12px;
}
.checkout-group h3 {
    font-size: 15px; font-weight: 700; margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px;
}
.checkout-group h3 i { color: var(--accent-red); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 12px; }
.form-group label {
    display: block; font-size: 12px; font-weight: 600;
    margin-bottom: 6px; color: var(--text-light);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 2px solid var(--border);
    border-radius: var(--rs); font-size: 14px; font-family: inherit;
    outline: none; transition: var(--t); background: var(--bg);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--accent-red); box-shadow: 0 0 0 4px rgba(255, 51, 76, 0.1);
}

.payment-methods { display: flex; flex-direction: column; gap: 8px; }
.payment-option {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; border: 2px solid var(--border);
    border-radius: var(--rs); cursor: pointer; transition: var(--t-fast);
}
.payment-option:has(input:checked) { border-color: var(--accent-red); background: #fff0f1; }
.payment-option:hover { border-color: var(--primary-light); }
.payment-option input { display: none; }
.payment-option span { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
.payment-option i { color: var(--accent-red); }

.checkout-summary {
    background: var(--bg); padding: 24px; border-radius: var(--r);
    position: sticky; top: 100px; height: fit-content;
    border: 1px solid var(--border-light);
}
.checkout-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.checkout-note { text-align: center; font-size: 12px; color: var(--text-light); margin-top: 12px; }

/* ========== CONTACT ========== */
.contact-section { padding: 32px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h2, .contact-form-wrapper h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.contact-info > p { color: var(--text-light); margin-bottom: 24px; line-height: 1.7; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-item i {
    width: 48px; height: 48px;
    background: #fff0f1;
    color: var(--accent-red); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.contact-item h4 { font-size: 14px; margin-bottom: 2px; font-weight: 700; }
.contact-item p { font-size: 13px; color: var(--text-light); }
.contact-form-wrapper {
    background: var(--bg); padding: 28px; border-radius: var(--r);
    border: 1px solid var(--border-light);
}

/* ========== ORDER SUCCESS ========== */
.order-success { padding: 32px 0; }
.success-content { max-width: 600px; margin: 0 auto; text-align: center; }
.success-icon { font-size: 64px; color: var(--success); margin-bottom: 16px; }
.success-content h2 { margin-bottom: 6px; font-weight: 800; }
.order-details {
    background: var(--bg); padding: 24px; border-radius: var(--r);
    margin: 20px 0; text-align: left; border: 1px solid var(--border-light);
}
.order-details h3 { font-size: 16px; font-weight: 700; margin: 16px 0 10px; }
.order-details table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.order-details td, .order-details th { padding: 10px 12px; border-bottom: 1px solid var(--border-light); text-align: left; font-size: 13px; }
.order-details th { font-weight: 600; width: 100px; color: var(--text-light); }
.order-items th { background: var(--bg-light); }
.order-total { text-align: right; font-size: 18px; padding-top: 10px; font-weight: 800; }

/* ========== FOOTER ========== */
.footer { background: var(--bg-dark); color: white; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 36px; padding-bottom: 36px; }
.footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 22px; font-weight: 800; margin-bottom: 14px;
}
.footer-logo .logo-icon { background: var(--accent-red); }
.footer-logo .logo-highlight {
    background: linear-gradient(135deg, #818cf8, #22d3ee);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-logo .logo-domain { color: rgba(255,255,255,0.4); font-weight: 400; }
.footer-col p { font-size: 13px; opacity: 0.6; line-height: 1.7; margin-bottom: 18px; }
.footer-col h4 {
    font-size: 13px; margin-bottom: 16px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; opacity: 0.8;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 13px; opacity: 0.6; }
.footer-col ul a:hover { opacity: 1; color: var(--accent-red); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
    width: 40px; height: 40px; background: rgba(255,255,255,0.06);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    transition: var(--t); font-size: 14px;
}
.footer-socials a:hover { background: var(--accent-red); transform: translateY(-2px); }
.contact-info li {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; opacity: 0.6; margin-bottom: 10px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0; text-align: center; font-size: 13px; opacity: 0.5;
}

/* ========== MOBILE BOTTOM NAV ========== */
.mobile-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bg); border-top: 1px solid var(--border-light);
    z-index: 100; padding: 6px 0 env(safe-area-inset-bottom, 6px);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.mobile-bottom-nav-items {
    display: flex; justify-content: space-around; align-items: center;
}
.mobile-nav-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; padding: 6px 12px; font-size: 10px; font-weight: 600;
    color: var(--text-light); transition: var(--t-fast);
    position: relative;
}
.mobile-nav-item i { font-size: 18px; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--accent-red); }
.mobile-nav-item .cart-count {
    top: 0; right: 4px; width: 16px; height: 16px; font-size: 9px;
}

/* ========== ANIMATIONS ========== */
/* ========== MARKETPLACE HEADER ========== */
.marketplace-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--t);
    width: 100%;
}
.marketplace-header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.marketplace-header.scrolled {
    box-shadow: var(--shadow-md);
}
.marketplace-header .container {
    display: flex;
    align-items: center;
    gap: 16px;
}
.marketplace-header .logo {
    flex-shrink: 0;
}
.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: var(--rp);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--t-fast);
    white-space: nowrap;
    font-family: inherit;
    text-decoration: none;
}
.category-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 51, 76, 0.35);
    color: white;
    background: var(--accent-red-dark);
}
.category-btn i { font-size: 16px; }
.marketplace-search {
    flex: 1;
    position: relative;
    max-width: 560px;
}
.marketplace-search input {
    width: 100%;
    padding: 10px 44px 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--rp);
    font-size: 13px;
    background: var(--bg-light);
    outline: none;
    font-family: inherit;
    transition: var(--t-fast);
}
.marketplace-search input:focus {
    border-color: var(--accent-red);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(255, 51, 76, 0.1);
}
.marketplace-search input::placeholder { color: var(--text-muted); }
.marketplace-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t-fast);
    font-size: 13px;
}
.marketplace-search button:hover {
    background: #fff0f1;
    color: var(--accent-red);
}
.header-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.header-icon-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--rp);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--t-fast);
    font-family: inherit;
    position: relative;
    text-decoration: none;
}
.header-icon-btn:hover {
    background: var(--bg-lighter);
    color: var(--text);
}
.header-icon-btn i { font-size: 16px; }
.header-icon-btn .cart-count {
    position: absolute;
    top: 2px;
    right: 6px;
    width: 14px;
    height: 14px;
    font-size: 8px;
}
.discount-btn {
    background: var(--accent-red) !important;
    color: white !important;
    font-weight: 600 !important;
}
.discount-btn:hover {
    background: var(--accent-red-dark) !important;
    color: white !important;
}

/* ========== CATEGORY PILLS ========== */
.category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0 12px;
}
.category-pills::-webkit-scrollbar { display: none; }
.category-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--rp);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--t-fast);
    text-decoration: none;
}
.category-pill:hover, .category-pill.active {
    background: #fff0f1;
    border-color: #ffd0d5;
    color: var(--accent-red);
}
.category-pill i { font-size: 14px; }

/* ========== HORIZONTAL CAROUSEL ========== */
.carousel-section {
    padding: 20px 0;
}
.carousel-section .section-header {
    margin-bottom: 16px;
}
.carousel-wrapper {
    position: relative;
}
.carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0 12px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .product-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    min-width: 200px;
}
.carousel-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--t-fast);
    color: var(--text-secondary);
    font-size: 14px;
}
.carousel-btn:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}
.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }

/* ========== PRODUCT CARD MARKETPLACE ========== */
.product-card-mp {
    flex: 0 0 200px;
    min-width: 200px;
    scroll-snap-align: start;
    background: var(--bg);
    border-radius: var(--r);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--t);
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card-mp:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}
.product-card-mp .mp-image {
    height: 180px;
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: relative;
    overflow: hidden;
}
.product-card-mp .mp-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.product-card-mp:hover .mp-image img {
    transform: scale(1.05);
}
.product-card-mp .mp-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}
.mp-badge {
    padding: 3px 8px;
    border-radius: var(--rp);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.mp-badge-best {
    background: var(--accent-red);
    color: white;
}
.mp-badge-new {
    background: var(--success);
    color: white;
}
.mp-badge-sale {
    background: var(--accent-red);
    color: white;
}
.product-card-mp .mp-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-mp .mp-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}
.product-card-mp .mp-price .current {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}
.product-card-mp .mp-price .old {
    font-size: 12px;
    color: var(--text-lighter);
    text-decoration: line-through;
}
.product-card-mp .mp-name {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.product-card-mp .mp-name a:hover {
    color: var(--primary);
}
.product-card-mp .mp-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}
.mp-add-btn {
    flex: 1;
    padding: 8px 12px;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: var(--rs);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--t-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}
.mp-add-btn:hover {
    background: var(--accent-red-dark);
    transform: translateY(-1px);
}
.mp-add-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}
.mp-wishlist-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--rs);
    border: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--t-fast);
    color: var(--text-light);
    font-size: 12px;
    flex-shrink: 0;
}
.mp-wishlist-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-light);
}

/* ========== BRAND CARD CAROUSEL ========== */
.brand-card-carousel {
    flex: 0 0 160px;
    min-width: 160px;
    scroll-snap-align: start;
    background: var(--bg);
    border-radius: var(--r);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--t);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.brand-card-carousel:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}
.brand-card-carousel .brand-image {
    height: 120px;
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
}
.brand-card-carousel .brand-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.brand-card-carousel .brand-info {
    padding: 12px;
}
.brand-card-carousel .brand-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.brand-card-carousel .brand-model {
    font-size: 11px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-card-carousel .brand-arrow {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* ========== PROMO BANNER LARGE ========== */
.promo-banner-large {
    margin: 20px 0;
    border-radius: var(--rl);
    overflow: hidden;
    position: relative;
}
.promo-banner-large img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.promo-banner-large .promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.85), rgba(6,182,212,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    text-align: center;
    padding: 20px;
}
.promo-banner-large .promo-overlay h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.promo-banner-large .promo-overlay p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 16px;
}

/* ========== MARKETPLACE RESPONSIVE ========== */
@media (max-width: 768px) {
    .marketplace-header .container {
        flex-wrap: wrap;
        gap: 10px;
    }
    .marketplace-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }
    .header-icon-btn span { display: none; }
    .header-icon-btn { padding: 8px 10px; }
    .category-btn span { display: none; }
    .category-btn { padding: 10px 14px; }
    .carousel-track .product-card,
    .product-card-mp {
        flex: 0 0 160px;
        min-width: 160px;
    }
    .product-card-mp .mp-image { height: 140px; }
    .product-card-mp .mp-image img { object-fit: contain; padding: 8px; }
    .promo-banner-large .promo-overlay h2 { font-size: 24px; }
    .brand-card-carousel { flex: 0 0 140px; min-width: 140px; }
    .carousel-btn { display: none; }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 4px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: var(--bg-lighter);
    border-radius: 12px;
}
::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red-dark);
}
@media (max-width: 1024px) {
    ::-webkit-scrollbar { display: none; }
    * { scrollbar-width: none; }
}

/* ========== ORIGINAL STYLES BELOW ========== */

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .products-grid, .deals-grid { grid-template-columns: repeat(3, 1fr); }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .brands-grid { grid-template-columns: repeat(4, 1fr); }
    .hero-slide .hero-text h1 { font-size: 40px; }
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-content { padding: 36px; }
    .promo-grid { grid-template-columns: 1fr; }
    .promo-large { grid-row: span 1; }
    .header-search { display: none; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .marketplace-header .container { padding: 0 12px; gap: 8px; }
    .header-top { display: none; }
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .header-content { gap: 12px; }
    .logo { font-size: 20px; }
    .logo-icon { width: 34px; height: 34px; font-size: 15px; }

    /* Mobile bottom nav */
    .mobile-bottom-nav { display: block; }
    body { padding-bottom: 64px; }

    /* Hero */
    .hero-slide-content { grid-template-columns: 1fr; gap: 24px; }
    .hero-slide .hero-image { display: none; }
    .hero-slide .hero-text h1 { font-size: 26px; }
    .hero-slide .hero-text p { font-size: 14px; }
    .hero-slide { padding: 48px 0 60px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }

    /* Features */
    .features-strip { margin-top: -20px; }
    .features-strip .features-grid { padding: 16px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .feature-card { padding: 10px; gap: 10px; }
    .feature-card i { width: 38px; height: 38px; font-size: 15px; border-radius: 10px; }
    .feature-card h3 { font-size: 12px; }
    .feature-card p { font-size: 11px; }

    /* Sections */
    .categories-section, .products-section, .deals-section,
    .brands-section, .cta-banner, .newsletter, .promo-banners { padding: 32px 0; }
    .section-header { margin-bottom: 20px; }
    .section-header h2 { font-size: 22px; }
    .view-all { font-size: 12px; padding: 6px 14px; }

    /* Products */
    .products-grid, .deals-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-image { height: 160px; }
    .product-info { padding: 12px; }
    .product-brand { font-size: 10px; }
    .product-name { font-size: 13px; margin-bottom: 6px; }
    .current-price { font-size: 15px; }
    .old-price { font-size: 11px; }
    .btn-cart { padding: 10px; font-size: 12px; }
    .product-quick-actions { display: none; }

    /* Categories */
    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .category-image { height: 80px; }
    .category-overlay i { font-size: 22px; }
    .category-card h3 { padding: 8px 4px; font-size: 11px; }

    /* Deals */
    .deals-wrapper { padding: 16px; }
    .deals-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .deals-header h2 { font-size: 20px; }
    .countdown-item { padding: 8px 10px; min-width: 48px; }
    .countdown-num { font-size: 18px; }

    /* Shop */
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar {
        position: fixed; top: 0; left: -300px; width: 280px; height: 100vh;
        background: var(--bg); z-index: 150; padding: 20px;
        overflow-y: auto; transition: left 0.3s ease;
        box-shadow: var(--shadow-2xl);
    }
    .shop-sidebar.active { left: 0; }
    .mobile-filter-toggle { display: flex; align-items: center; justify-content: center; }
    .shop-toolbar { flex-direction: column; gap: 10px; align-items: stretch; }

    /* Product detail */
    .product-detail-grid { grid-template-columns: 1fr; gap: 20px; }
    .main-image img { height: 320px; }
    .product-detail-info { position: static; padding: 20px; }
    .product-detail-info h1 { font-size: 22px; }
    .product-price-large .current-price { font-size: 26px; }
    .gallery-thumbs { display: none; }

    /* Cart */
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-item {
        grid-template-columns: 64px 1fr; gap: 10px; padding: 14px;
    }
    .cart-item-image { width: 64px; height: 64px; }
    .cart-item-price, .cart-item-quantity, .cart-item-subtotal, .cart-item-remove { grid-column: 2; }
    .cart-item-subtotal { text-align: left; }
    .cart-summary { position: static; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 24px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer { padding: 36px 0 0; }

    /* CTA */
    .cta-content { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
    .cta-image { display: none; }
    .cta-buttons { flex-direction: column; }
    .cta-text h2 { font-size: 24px; }

    /* Newsletter */
    .newsletter-form { flex-direction: column; }
    .newsletter-content h2 { font-size: 22px; }

    /* Promo */
    .promo-card { padding: 20px; }
    .promo-content h3 { font-size: 18px; }
    .promo-image { width: 100px; height: 100px; }

    /* Brands */
    .brands-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .brand-card { padding: 16px 8px; }
    .brand-card span { font-size: 12px; }

    /* Page header */
    .page-header { padding: 20px 0; }
    .page-header h1 { font-size: 22px; }

    /* Flash messages */
    .flash-messages { top: 60px; right: 12px; left: 12px; max-width: none; }
}

@media (max-width: 480px) {
    .products-grid, .deals-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-image { height: 140px; }
    .product-info { padding: 10px; }
    .product-name { font-size: 12px; }
    .current-price { font-size: 14px; }
    .btn-cart { padding: 8px; font-size: 11px; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .brands-grid { grid-template-columns: repeat(3, 1fr); }
    .form-row { grid-template-columns: 1fr; }
}
