@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #d946ef 100%);
    --gradient-mesh: radial-gradient(circle at 15% 20%, rgba(99,102,241,0.5), transparent 40%),
                      radial-gradient(circle at 85% 10%, rgba(217,70,239,0.45), transparent 45%),
                      radial-gradient(circle at 50% 90%, rgba(139,92,246,0.4), transparent 50%),
                      linear-gradient(135deg, #4338ca, #7c3aed 60%, #c026d3);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --dark: #0b1120;
    --ink: #1e2536;
    --page-bg: #f7f8fc;
    --card-bg: #ffffff;
    --border: #e7e9f2;
    --text-muted: #6b7280;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-soft: 0 2px 8px rgba(15,23,42,0.04), 0 1px 2px rgba(15,23,42,0.03);
    --shadow-lift: 0 24px 48px -12px rgba(76,29,149,0.18);
    --shadow-btn: 0 10px 25px -8px rgba(124,58,237,0.55);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--page-bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand, .logo { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
a { text-decoration: none; color: inherit; }

/* ---- Header ---- */
.site-header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.header-inner { max-width: 1240px; margin: 0 auto; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo-badge {
    width: 38px; height: 38px; border-radius: 11px; background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center; color: white;
    box-shadow: var(--shadow-btn); font-size: 16px;
}
.main-nav { display: flex; gap: 30px; font-weight: 600; font-size: 14.5px; }
.main-nav a { position: relative; padding: 6px 0; color: var(--ink); opacity: 0.75; transition: opacity 0.2s; }
.main-nav a:hover { opacity: 1; }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 22px; border-radius: 12px; font-size: 14px; font-weight: 700;
    border: none; cursor: pointer; letter-spacing: -0.01em; transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn-primary { background: var(--gradient-primary); color: white; box-shadow: var(--shadow-btn); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(124,58,237,0.65); }
.btn-outline { background: rgba(255,255,255,0.6); border: 1.5px solid var(--border); color: var(--ink); }
.btn-outline:hover { border-color: #a78bfa; background: #faf9ff; }
.btn-block { width: 100%; }

/* ---- Hero ---- */
.hero {
    position: relative;
    background: var(--gradient-mesh);
    background-size: 180% 180%;
    animation: meshFloat 16s ease infinite;
    color: white;
    padding: 90px 24px 100px;
    text-align: center;
    overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(255,255,255,0.15), transparent 60%);
}
@keyframes meshFloat { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
    padding: 7px 16px; border-radius: 30px; font-size: 12.5px; font-weight: 600;
    backdrop-filter: blur(8px); margin-bottom: 22px; position: relative; z-index: 1;
}
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; position: relative; z-index: 1; line-height: 1.15; }
.hero p { font-size: 17px; opacity: 0.92; max-width: 540px; margin: 0 auto 30px; position: relative; z-index: 1; line-height: 1.6; }
.hero-stats { display: flex; gap: 40px; justify-content: center; position: relative; z-index: 1; flex-wrap: wrap; margin-top: 10px; }
.hero-stats .stat-num { font-size: 26px; font-weight: 800; }
.hero-stats .stat-lbl { font-size: 12.5px; opacity: 0.8; margin-top: 2px; }
.hero .btn-primary { background: white; color: #6d28d9; box-shadow: 0 14px 30px -10px rgba(0,0,0,0.35); }
.hero .btn-primary:hover { transform: translateY(-2px); }

/* ---- Sections ---- */
.section { max-width: 1240px; margin: 0 auto; padding: 64px 28px; }
.section-eyebrow { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #7c3aed; margin-bottom: 8px; }
.section-title { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 30px; }

/* ---- Product grid ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 26px; }
.product-card {
    background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); box-shadow: var(--shadow-soft);
    transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.product-card .img-wrap { position: relative; overflow: hidden; background: linear-gradient(135deg,#f1f0ff,#fdf2ff); }
.product-card img { width: 100%; height: 190px; object-fit: cover; display: block; transition: transform 0.4s; }
.product-card:hover img { transform: scale(1.06); }
.product-card .body { padding: 18px; }
.product-card .name { font-weight: 700; font-size: 15px; margin-bottom: 8px; letter-spacing: -0.01em; line-height: 1.35; }
.product-card .price { font-size: 19px; font-weight: 800; color: #6d28d9; }
.product-card .old-price { font-size: 13px; color: var(--text-muted); text-decoration: line-through; margin-left: 7px; font-weight: 500; }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items:center; gap:5px; padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.01em; }
.badge-commission { background: linear-gradient(135deg,#dcfce7,#bbf7d0); color: #15803d; }
.badge-no-commission { background: #f1f5f9; color: #64748b; }

/* ---- Category filter pills ---- */
.pill-row { display:flex; gap:10px; margin-bottom:28px; flex-wrap:wrap; }
.pill { padding: 9px 18px; border-radius: 30px; font-size: 13.5px; font-weight: 600; border: 1.5px solid var(--border); background: white; transition: all 0.2s; }
.pill.active { background: var(--gradient-primary); color: white; border-color: transparent; box-shadow: var(--shadow-btn); }
.pill:not(.active):hover { border-color: #a78bfa; }

/* ---- Product detail ---- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.product-gallery img.main { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); border: 1px solid var(--border); }
.thumb-row { display: flex; gap: 10px; margin-top: 12px; }
.thumb-row img { width: 62px; height: 62px; object-fit: cover; border-radius: 9px; cursor: pointer; border: 2px solid var(--border); transition: border-color 0.2s; }
.thumb-row img.active, .thumb-row img:hover { border-color: #8b5cf6; }
.product-info .price-row { font-size: 32px; font-weight: 800; color: #6d28d9; margin: 16px 0; letter-spacing: -0.02em; }
.icon-box-row { display: flex; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.icon-box { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; background: white; border: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.icon-box .icon { width: 30px; height: 30px; border-radius: 9px; background: var(--gradient-primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: #94a3b8; padding: 20px 24px; text-align: center; margin-top: 70px; font-size: 13px; }

@media (max-width: 768px) {
    .product-detail { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .hero h1 { font-size: 32px; }
}
