/* ============================================
   GIFTPLACE — Design System 4.0
   Modern 2026: Aurora, Animated Gradients, Spotlight
   ============================================ */

:root {
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-soft: rgba(245, 158, 11, 0.12);
    --accent2: #6366f1;
    --accent3: #ec4899;
    --success: #10b981;
    --danger: #ef4444;

    --gradient-gift: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --gradient-premium: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);

    /* Анимированный градиент для hero */
    --gradient-animated: linear-gradient(
        270deg,
        #f59e0b,
        #ec4899,
        #6366f1,
        #10b981,
        #f59e0b
    );

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Dark theme */
    --bg-primary: #09090b;
    --bg-card: #131316;
    --bg-elevated: #1c1c21;
    --bg-hover: #242429;

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);

    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --header-bg: rgba(9, 9, 11, 0.8);

    /* Grain texture intensity */
    --grain-opacity: 0.03;
}

html.light {
    --bg-primary: #fafafa;
    --bg-card: #ffffff;
    --bg-elevated: #f4f4f5;
    --bg-hover: #e4e4e7;

    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;

    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);

    --glass: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.06);
    --header-bg: rgba(250, 250, 250, 0.85);
    --grain-opacity: 0.015;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
}

/* ===== GRAIN TEXTURE (плёночная текстура поверх всего) ===== */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-animated);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    z-index: 9998;
    width: 0%;
    transition: width 0.1s;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== HEADER ===== */
.header {
    background: var(--header-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background var(--transition), border-color var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: transform 0.2s;
}
.logo:hover { transform: scale(1.02); }
.logo-icon { font-size: 26px; }
.logo-text .accent { color: var(--accent); }

.nav { display: flex; gap: 28px; }
.nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
    position: relative;
    padding: 4px 0;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s;
}
.nav a:hover { color: var(--text-primary); }
.nav a:hover::after { width: 100%; }

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

.theme-toggle {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    line-height: 1;
}
.theme-toggle:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    transform: rotate(20deg) scale(1.05);
}

.cart-btn {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
}
.cart-btn:hover { background: var(--accent-soft); border-color: var(--accent); }

.cart-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: var(--gradient-gift);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.user-btn {
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--border);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    color: var(--text-primary);
}
.user-btn:hover { background: var(--bg-hover); }

.login-btn {
    padding: 10px 24px;
    border-radius: 12px;
    background: var(--gradient-gift);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

/* ===== MAIN ===== */
main {
    position: relative;
    z-index: 2;
}

/* ===== HERO ===== */
.hero {
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Aurora эффект в hero */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 140%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 70%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
    filter: blur(60px);
    pointer-events: none;
    animation: aurora 20s ease-in-out infinite;
}

html.light .hero::before { opacity: 0.7; }

@keyframes aurora {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
    33% { transform: translateX(-48%) translateY(-20px) rotate(2deg); }
    66% { transform: translateX(-52%) translateY(20px) rotate(-2deg); }
}

.hero h1 {
    font-size: clamp(40px, 7vw, 82px);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1.05;
    margin-bottom: 24px;

    /* Анимированный переливающийся градиент */
    background: var(--gradient-animated);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroGradient 8s ease infinite;
    position: relative;
    z-index: 1;
}

@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 44px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Magnetic CTA кнопка */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 20px 48px;
    background: var(--gradient-gift);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
    will-change: transform;
}

.hero-cta:hover {
    box-shadow: 0 16px 48px rgba(245, 158, 11, 0.4);
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-gift);
    border-radius: 50px;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.5;
    animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* ===== MARQUEE (бегущая строка отзывов) ===== */
.marquee-section {
    padding: 40px 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    position: relative;
    z-index: 2;
}

.marquee {
    display: flex;
    gap: 40px;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.marquee:hover { animation-play-state: paused; }

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--bg-elevated);
    border-radius: 50px;
    border: 1px solid var(--border);
    white-space: nowrap;
    font-size: 14px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.marquee-item .rating { color: #ffd700; }
.marquee-item .text { color: var(--text-primary); font-weight: 500; }

/* ===== BENTO GRID ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 48px 0;
}

.bento-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-gift);
    opacity: 0;
    transition: opacity 0.3s;
}

.bento-item:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}
.bento-item:hover::before { opacity: 0.04; }

.bento-icon { font-size: 48px; display: block; margin-bottom: 20px; position: relative; z-index: 1; }
.bento-item h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; position: relative; z-index: 1; }
.bento-item p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; position: relative; z-index: 1; }

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

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    white-space: nowrap;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s;
    color: var(--text-primary);
}

.cat-chip:hover, .cat-chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

/* ===== FILTERS ===== */
.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin: 24px 0;
}

.filters input, .filters select {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.filters input:focus, .filters select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.filters button {
    padding: 12px 32px;
    background: var(--gradient-gift);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.filters button:hover { opacity: 0.9; transform: translateY(-1px); }

/* ===== PRODUCTS GRID + SPOTLIGHT ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
    padding: 24px 0;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform-style: preserve-3d;
    position: relative;
}

/* Spotlight эффект — свечение следует за курсором */
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(245, 158, 11, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

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

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(245, 158, 11, 0.3);
}

.product-image {
    height: 220px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

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

.product-image .placeholder { font-size: 64px; opacity: 0.3; }

.placeholder-gradient {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    background: linear-gradient(135deg, #f59e0b22 0%, #ec489922 100%);
    position: relative;
    z-index: 2;
}

html.light .placeholder-gradient {
    background: linear-gradient(135deg, #f59e0b15 0%, #ec489915 100%);
}

.product-info {
    padding: 20px;
    position: relative;
    z-index: 2;
}
.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.product-info h3 a { transition: color 0.2s; }
.product-info h3 a:hover { color: var(--accent); }

.product-seller { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

.product-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

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

.add-to-cart-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-gift);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    position: relative;
    z-index: 2;
}
.add-to-cart-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

/* ===== SELLERS ===== */
.sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    padding: 24px 0;
}

.seller-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

/* Spotlight на seller-card тоже */
.seller-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(99, 102, 241, 0.12),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.seller-card:hover::before { opacity: 1; }

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

.seller-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--gradient-premium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
}

.seller-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; position: relative; }
.seller-city { color: var(--text-muted); font-size: 13px; margin-bottom: 14px; position: relative; }

.seller-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.seller-stats {
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    flex-wrap: wrap;
    position: relative;
}

.seller-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.2s;
    position: relative;
}
.seller-link:hover { gap: 10px; }

/* ===== PRODUCT PAGE ===== */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px 0;
}

.product-gallery .main-image {
    width: 100%; height: 480px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.product-gallery .main-image img { width: 100%; height: 100%; object-fit: cover; }

.product-details h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.product-details .seller-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}
.product-details .seller-link:hover { color: var(--accent); }

.product-details .description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
}

.product-details .story {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 28px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
}
.product-details .story h4 { color: var(--accent); margin-bottom: 10px; font-size: 15px; }
.product-details .story p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

.buy-section {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-top: 28px;
}

.buy-section .price { font-size: 32px; }

.buy-section button {
    flex: 1;
    padding: 18px;
    background: var(--gradient-gift);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s;
}
.buy-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3);
}

/* ===== REVIEWS ===== */
.reviews-section { padding: 48px 0; }
.reviews-section h2 { margin-bottom: 28px; font-size: 26px; font-weight: 800; }

.review-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.review-card:hover { border-color: var(--border-hover); }

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.review-rating { color: #ffd700; font-size: 14px; }
.review-date { color: var(--text-muted); font-size: 13px; }
.review-text { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* ===== CART ===== */
.cart-page { padding: 48px 0; }
.cart-page h1 { margin-bottom: 36px; font-size: 32px; font-weight: 800; }

.cart-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.cart-item:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sm); }

.cart-item-image {
    width: 80px; height: 80px;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 15px; margin-bottom: 6px; }

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    padding: 8px;
    transition: color 0.2s;
}
.cart-item-remove:hover { color: var(--danger); }

.cart-summary {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 36px;
    margin-top: 28px;
    border: 1px solid var(--border);
}

.cart-summary .total-row {
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 28px;
}

.checkout-btn {
    width: 100%;
    padding: 20px;
    background: var(--gradient-gift);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    transition: all 0.2s;
}
.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(245, 158, 11, 0.3);
}

/* ===== AUTH ===== */
.auth-page {
    max-width: 460px;
    margin: 80px auto;
    padding: 52px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.auth-page h1 { text-align: center; margin-bottom: 36px; font-size: 30px; font-weight: 800; }
.form-group { margin-bottom: 22px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 16px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient-gift);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    margin-top: 8px;
    transition: all 0.2s;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.auth-switch { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.auth-switch a { color: var(--accent); font-weight: 600; }

/* ===== AI BAR ===== */
.ai-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 92vw);
    z-index: 1000;
}

.ai-input-wrap {
    display: flex;
    align-items: center;
    background: var(--header-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}

.ai-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-lg);
}

.ai-icon { font-size: 20px; margin-right: 12px; }

#aiInput {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}
#aiInput::placeholder { color: var(--text-muted); }

.ai-send {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gradient-gift);
    border: none;
    color: #fff;
    font-size: 18px;
    transition: transform 0.2s;
}
.ai-send:hover { transform: scale(1.1); }

.ai-results {
    margin-top: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    max-height: 400px;
    overflow-y: auto;
}

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

.ai-product-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}
.ai-product-item:hover { background: var(--bg-elevated); }

.ai-product-thumb {
    width: 56px; height: 56px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
    flex-shrink: 0;
}

.ai-product-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.ai-product-item .reason { font-size: 12px; color: var(--text-muted); }

.ai-loading { text-align: center; padding: 24px; color: var(--text-secondary); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-secondary); }
.empty-state .empty-icon { font-size: 64px; margin-bottom: 20px; }
.empty-state h3 { margin-bottom: 10px; color: var(--text-primary); font-size: 20px; }

/* ===== FOOTER ===== */
.footer {
    margin-top: 80px;
    padding: 40px 0 140px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    transition: border-color var(--transition);
    position: relative;
    z-index: 2;
}

/* ===== EFFECTS LAYER (z-index: 0 — под всем) ===== */
.orbs-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
    animation: orbFloat 25s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}

html.light .orb {
    opacity: 0.5;
    mix-blend-mode: multiply;
}

@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(40px, -50px) scale(1.08); }
    50%  { transform: translate(-30px, 40px) scale(0.94); }
    75%  { transform: translate(20px, -30px) scale(1.04); }
    100% { transform: translate(-10px, 20px) scale(1); }
}

.stars-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s;
}

html.light .stars-canvas { opacity: 0; }

.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,158,11,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    will-change: left, top;
    transition: opacity 0.3s;
}

html.light .cursor-glow { display: none; }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav { display: none; }
    .bento-grid { grid-template-columns: 1fr; }
    .product-page { grid-template-columns: 1fr; gap: 32px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
    .sellers-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 36px; letter-spacing: -1.5px; }
    .hero p { font-size: 16px; }
    .header-inner { padding: 12px 16px; }
    .hero { padding: 60px 0 50px; }

    .ai-bar {
        bottom: 12px;
        width: calc(100vw - 24px);
    }

    .footer {
        padding-bottom: 120px;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

::selection {
    background: rgba(245, 158, 11, 0.3);
    color: var(--text-primary);
}