/* ============================================================
   YannMarket — style.css
   Inter Variable · Clean Minimal · Black & White
   Inspired by StokShop Framer reference
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Inter Variable Font ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ── Tokens ── */
:root {
  --bg:        #000000;
  --bg2:       #0a0a0a;
  --surface:   #111111;
  --card:      #141414;
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.14);
  --white:     #ffffff;
  --muted:     #555555;
  --muted2:    #777777;
  --accent:    #ffffff;
  --accent-fg: #000000;
  --green:     #22c55e;
  --gold:      #eab308;
  --red:       #ef4444;
  --radius:    11px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,0.8);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.9);
  --font:      'Inter', sans-serif;
  --transition: .18s cubic-bezier(.4,0,.2,1);
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-feature-settings: 'cv01' on, 'cv09' on, 'cv11' on, 'cv05' on;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; cursor: pointer; }
button { cursor: pointer; font-family: var(--font); }
img { max-width: 100%; }
.muted { color: var(--muted2); }

/* ── Loading ── */
#loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease;
}
#loader.hide { opacity: 0; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo {
  font-family: var(--font);
  font-size: 48px; font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 28px;
  animation: pulse 1.5s ease-in-out infinite;
}
.loader-bar {
  width: 160px; height: 1.5px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px; overflow: hidden;
  margin: 0 auto;
}
.loader-fill {
  height: 100%;
  background: var(--white);
  border-radius: 99px;
  animation: loadBar 1.5s ease-in-out infinite;
}
@keyframes loadBar { 0%{width:0%;margin-left:0} 50%{width:70%;margin-left:15%} 100%{width:0%;margin-left:100%} }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* ── Navbar ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background var(--transition), border-color var(--transition);
}
#navbar.scrolled {
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  cursor: pointer; white-space: nowrap;
}
.brand-icon { font-size: 17px; }
.nav-links {
  display: flex; list-style: none; gap: 2px;
  align-items: center;
}
.nav-a {
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--muted2); padding: 6px 13px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  cursor: pointer; white-space: nowrap;
}
.nav-a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-a.active { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-icon-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.nav-icon-btn:hover { background: rgba(255,255,255,0.06); color: var(--white); border-color: var(--border2); }
.nav-icon-btn svg { width: 16px; height: 16px; }
.nav-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--white);
  color: var(--bg);
  border-radius: 99px;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; padding: 10px;
  background: transparent; border: 1px solid var(--border);
  border-radius: 8px;
}
.hamburger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--muted2); border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--white); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--white); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 20px;
  border-radius: var(--radius); border: none;
  font-family: var(--font);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  transition: all var(--transition); white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--white);
  color: var(--bg);
}
.btn-primary:hover { background: rgba(255,255,255,0.88); }
.btn-ghost {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border2);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--muted2);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-green {
  background: #25d366;
  color: #fff;
}
.btn-green:hover { background: #1ebe5d; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 50px; padding: 0 30px; font-size: 15px; }
.btn-full { width: 100%; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative; overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%,-55%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; width: 100%; padding: 0 4px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted2);
  border: 1px solid var(--border2);
  padding: 5px 13px; border-radius: 99px;
  margin-bottom: 32px;
}
.hero-title {
  font-size: clamp(36px, 7.5vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1em;
  display: flex; flex-direction: column; gap: 2px;
  margin-bottom: 24px;
}
.hero-title span:first-child { color: var(--white); }
.hero-sub { font-size: clamp(22px, 5vw, 48px); color: var(--muted2); font-weight: 700; letter-spacing: -0.03em; }
.hero-desc {
  font-size: 15px; line-height: 1.65; color: var(--muted2); font-weight: 400;
  max-width: 520px; margin: 0 auto 36px; letter-spacing: -0.01em;
}
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 52px; }
.hero-stats {
  display: flex; align-items: center; gap: 36px;
  justify-content: center;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat strong { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.stat span { font-size: 11px; color: var(--muted2); letter-spacing: .02em; }
.stat-divider { width: 1px; height: 28px; background: var(--border); }
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: var(--muted);
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ── Section Base ── */
.section { padding: 96px 24px; }
.section-alt { background: var(--bg2); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted2);
  border: 1px solid var(--border2);
  padding: 4px 12px; border-radius: 99px;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.05;
}

/* ── Filter Bar ── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; margin-bottom: 36px;
}
.search-wrap {
  flex: 1; min-width: 200px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0 14px; height: 40px;
  transition: border-color var(--transition);
}
.search-wrap:focus-within { border-color: var(--border2); }
.search-wrap svg { color: var(--muted); flex-shrink: 0; width: 20px; height: 20px; }
.search-wrap input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--white); font-family: var(--font); font-size: 14px; letter-spacing: -0.01em;
}
.search-wrap input::placeholder { color: var(--muted); }
.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.chip {
  height: 34px; padding: 0 13px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; letter-spacing: -0.01em;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted2); transition: all var(--transition);
}
.chip:hover { border-color: var(--border2); color: var(--white); }
.chip.active {
  background: var(--white); border-color: var(--white);
  color: var(--bg);
}
/* Sort Dropdown Custom */
.filter-bar { position: relative; z-index: 10; }
.sort-dropdown { position: relative; }
.sort-btn {
  height: 40px; padding: 0 14px;
  background: transparent; border: 1px solid var(--border2);
  border-radius: var(--radius); color: var(--muted2);
  font-family: var(--font); font-size: 13px; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; transition: all var(--transition);
  white-space: nowrap;
}
.sort-btn:hover, .sort-btn.open { border-color: rgba(255,255,255,0.35); color: var(--white); }
.sort-btn svg { transition: transform var(--transition); flex-shrink: 0; }
.sort-btn.open svg { transform: rotate(180deg); }
.sort-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 160px;
  background: #1a1a1a; border: 1px solid var(--border2);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 200;
}
.sort-menu.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.sort-option {
  padding: 11px 16px; font-size: 13px; font-weight: 500;
  color: var(--muted2); cursor: pointer; letter-spacing: -0.01em;
  transition: background var(--transition), color var(--transition);
}
.sort-option:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.sort-option.active { color: var(--white); background: rgba(255,255,255,0.04); }

/* ── Product Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}
.card-badge-wrap {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: flex; gap: 5px;
}
.card-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px;
}
.badge-hot { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.badge-new { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.badge-trend     { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.badge-recommend { background: rgba(96,165,250,0.15); color: #60a5fa; border: 1px solid rgba(96,165,250,0.25); }
.card-wishlist {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 7px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  border: 1px solid var(--border); color: var(--muted2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.card-wishlist:hover { color: #f87171; border-color: rgba(248,113,113,0.4); }
.card-wishlist.active { color: #f87171; background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.3); }
.card-wishlist svg { width: 13px; height: 13px; }
.card-img-wrap {
  width: 100%; aspect-ratio: 1;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  padding: 0;  /* ← hapus padding */
  overflow: hidden;
}
.card-img {
  width: 100%;   /* ← ubah jadi 100% */
  height: 100%;
  object-fit: cover;  /* ← cover biar memenuhi kotak */
}
.card-emoji { font-size: 52px; line-height: 1; }
.card-body { padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat {
  font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted2);
}
.card-name {
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--white); line-height: 1.3;
}
.card-desc {
  font-size: 12px; color: var(--muted2); line-height: 1.5; letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
  padding: 0 14px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.card-price-row {
  display: flex; align-items: center; justify-content: space-between;
}
.card-price {
  font-size: 17px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--white);
}
.card-stock { font-size: 11px; color: var(--muted); }
.card-stock.low { color: var(--gold); }
.card-stock.out { color: var(--red); }
.no-results {
  text-align: center; color: var(--muted); padding: 60px 0; font-size: 15px;
}

/* ── Steps ── */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.step-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 22px;
  position: relative; overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.step-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.step-num {
  font-size: 60px; font-weight: 800; letter-spacing: -0.04em;
  color: rgba(255,255,255,0.04);
  position: absolute; top: -8px; right: 14px;
  line-height: 1; pointer-events: none;
}
.step-icon { font-size: 32px; margin-bottom: 14px; }
.step-card h3 {
  font-size: 16px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px;
}
.step-card p { font-size: 13px; color: var(--muted2); line-height: 1.6; }

/* ── Testimoni ── */
.testi-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.testi-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color var(--transition);
}
.testi-card:hover { border-color: var(--border2); }
.testi-stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.testi-text { font-size: 14px; color: var(--muted2); line-height: 1.65; flex: 1; letter-spacing: -0.005em; }
.testi-user { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--white); flex-shrink: 0;
}
.testi-user div { display: flex; flex-direction: column; gap: 1px; }
.testi-user strong { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.testi-user span { font-size: 11px; color: var(--muted2); }

/* ── FAQ ── */
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--border2); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  background: none; border: none; color: var(--white);
  font-family: var(--font); font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  text-align: left; gap: 12px;
  transition: color var(--transition);
}
.faq-q:hover { color: rgba(255,255,255,0.7); }
.faq-q svg { flex-shrink: 0; color: var(--muted2); transition: transform var(--transition); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding: 0 22px 18px; font-size: 13px; color: var(--muted2); line-height: 1.7; letter-spacing: -0.005em; }

/* ── Kontak ── */
.kontak-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  flex-wrap: wrap;
}
.kontak-text { flex: 1; min-width: 280px; }
.kontak-text h2 {
  font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.04em;
  margin: 12px 0 14px;
}
.kontak-text p { font-size: 14px; color: var(--muted2); line-height: 1.65; margin-bottom: 22px; letter-spacing: -0.005em; }
.kontak-info { display: flex; flex-direction: column; gap: 9px; }
.kontak-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted2); letter-spacing: -0.01em; }
.kontak-item span:first-child { font-size: 16px; }
.kontak-actions { flex-shrink: 0; }

/* ── Footer ── */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 56px 24px 0; }
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .brand-big {
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px;
}
.footer-brand p { font-size: 13px; color: var(--muted2); line-height: 1.65; letter-spacing: -0.005em; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted2); margin-bottom: 14px; }
.footer-col a {
  display: block; font-size: 13px; color: var(--muted2); letter-spacing: -0.01em;
  margin-bottom: 9px; transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  max-width: 1120px; margin: 0 auto;
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 12px; color: var(--muted); letter-spacing: -0.005em; }

/* ── Float Buttons ── */
.float-wa {
  position: fixed; bottom: 84px; right: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: var(--radius);
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: all var(--transition);
}
.float-wa:hover { transform: scale(1.07); }
.back-top {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border2); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  opacity: 0; pointer-events: none; transform: translateY(12px);
}
.back-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-top:hover { background: var(--white); color: var(--bg); }

/* ── Toast ── */
.toast-container {
  position: fixed; bottom: 22px; left: 22px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 12px 16px;
  font-size: 13px; font-weight: 500; letter-spacing: -0.01em;
  box-shadow: var(--shadow);
  animation: toastIn .25s ease; max-width: 300px;
}
.toast.removing { animation: toastOut .25s ease forwards; }
.toast-icon { font-size: 16px; flex-shrink: 0; }
@keyframes toastIn { from{opacity:0;transform:translateX(-16px)} to{opacity:1;transform:translateX(0)} }
@keyframes toastOut { to{opacity:0;transform:translateX(-16px)} }

/* ── Overlay ── */
.overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.overlay.active { opacity: 1; pointer-events: all; }
.modal-wrap { width: 100%; max-width: 480px; }

/* ── Modal ── */
.modal {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  animation: modalIn .22s cubic-bezier(.34,1.4,.64,1);
  max-height: 90vh; overflow-y: auto;
}
.modal::-webkit-scrollbar { width: 3px; }
.modal::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
@keyframes modalIn { from{opacity:0;transform:scale(0.94) translateY(16px)} to{opacity:1;transform:scale(1) translateY(0)} }

/* Product Detail Modal */
.modal-img-wrap {
  width: 100%; aspect-ratio: 16/9;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.modal-img { max-height: 140px; max-width: 60%; object-fit: contain; }
.modal-emoji { font-size: 72px; line-height: 1; }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.modal-cat { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted2); }
.modal-name { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.modal-desc { font-size: 13px; color: var(--muted2); line-height: 1.6; }
.modal-price { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.modal-stock { font-size: 11px; color: var(--muted2); padding: 5px 11px; background: rgba(255,255,255,0.05); border-radius: 99px; display: inline-block; border: 1px solid var(--border); }
.modal-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.modal-btns .btn { flex: 1; min-width: 110px; }

/* Checkout Modal */
.checkout-modal { background: var(--card); border: 1px solid var(--border2); border-radius: var(--radius-xl); overflow: hidden; max-height: 90vh; overflow-y: auto; animation: modalIn .22s ease; }
.checkout-modal::-webkit-scrollbar { width: 3px; }
.checkout-modal::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
.checkout-header { padding: 22px 22px 0; display: flex; align-items: center; justify-content: space-between; }
.checkout-header h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.modal-close-btn {
  width: 32px; height: 32px; border-radius: 7px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--muted2); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close-btn:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.checkout-body { padding: 22px; display: flex; flex-direction: column; gap: 18px; }

/* Order Summary */
.order-summary {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; display: flex; gap: 12px; align-items: center;
}
.order-summary .os-emoji { font-size: 36px; }
.order-summary .os-info { flex: 1; }
.order-summary .os-name { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.order-summary .os-price { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--white); }

/* Qty */
.qty-row { display: flex; align-items: center; justify-content: space-between; }
.qty-label { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.qty-ctrl { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn {
  width: 34px; height: 34px; background: rgba(255,255,255,0.05);
  border: none; color: var(--white); font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.qty-btn:hover { background: rgba(255,255,255,0.1); }
.qty-val { min-width: 38px; text-align: center; font-weight: 700; font-size: 14px; }
.total-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); }
.total-label { font-size: 13px; color: var(--muted2); }
.total-value { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--white); }

/* Payment Methods */
.pay-section label { font-size: 11px; font-weight: 700; color: var(--muted2); display: block; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .07em; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.pay-method {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 8px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; transition: all var(--transition);
}
.pay-method:hover { border-color: var(--border2); }
.pay-method.active { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); }
.pay-method .pay-logo { font-size: 20px; }
.pay-method span { font-size: 11px; font-weight: 600; color: var(--muted2); letter-spacing: -0.005em; }
.pay-method.active span { color: var(--white); }

/* Buyer Info */
.buyer-input {
  width: 100%; height: 42px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--white);
  font-family: var(--font); font-size: 14px; letter-spacing: -0.01em; outline: none;
  transition: border-color var(--transition);
}
.buyer-input:focus { border-color: var(--border2); }
.buyer-input::placeholder { color: var(--muted); }
.input-label { font-size: 11px; font-weight: 700; color: var(--muted2); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .07em; display: block; }

/* Payment Screen */
.pay-screen { display: flex; flex-direction: column; gap: 14px; }
.qr-wrap {
  background: #111111; border-radius: var(--radius-sm);
  padding: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.qr-wrap img {
  width: 100%; height: auto;
  display: block; object-fit: cover;
}
.qr-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #111;
}
.qr-placeholder .qr-icon { font-size: 72px; }
.qr-placeholder p { font-size: 12px; font-weight: 600; text-align: center; }
.pay-number-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pay-number { font-size: 17px; font-weight: 700; letter-spacing: 2px; font-family: monospace; }
.countdown-wrap { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted2); }
.countdown-wrap span { font-weight: 700; color: var(--gold); font-size: 15px; font-family: monospace; }
.countdown-wrap.urgent span { color: var(--red); }

/* Upload Proof */
.upload-area {
  border: 1.5px dashed var(--border); border-radius: var(--radius);
  padding: 28px; text-align: center;
  cursor: pointer; transition: all var(--transition); position: relative; overflow: hidden;
}
.upload-area:hover { border-color: var(--border2); }
.upload-area.has-file { border-color: rgba(34,197,94,0.4); border-style: solid; }
.upload-icon { font-size: 32px; margin-bottom: 8px; }
.upload-area p { font-size: 13px; color: var(--muted2); }
.upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-preview {
  width: 100%; max-height: 160px; object-fit: contain;
  border-radius: var(--radius-sm); margin-top: 12px;
  display: none;
}
.status-waiting {
  display: flex; align-items: center; gap: 10px;
  background: rgba(234,179,8,0.08); border: 1px solid rgba(234,179,8,0.2);
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 13px; font-weight: 500; color: var(--gold);
}
.status-waiting .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulseAnim 1.5s infinite; flex-shrink: 0; }
@keyframes pulseAnim { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

/* Cart / Wishlist Sidebar */
.cart-sidebar {
  position: fixed; top: 0; right: -420px; width: 420px; max-width: 100vw; height: 100%;
  background: var(--card); border-left: 1px solid var(--border);
  z-index: 160; transition: right .22s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 155;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.sidebar-overlay.active { opacity: 1; pointer-events: all; }
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.sidebar-header h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.sidebar-close {
  width: 32px; height: 32px; border-radius: 7px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--muted2); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-close:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.cart-items { flex: 1; overflow-y: auto; padding: 14px 22px; display: flex; flex-direction: column; gap: 10px; }
.cart-items::-webkit-scrollbar { width: 3px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.cart-item {
  display: flex; gap: 10px; align-items: center;
  padding: 10px; background: var(--surface); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.cart-item-emoji { font-size: 28px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.cart-item-price { font-size: 12px; color: var(--white); font-weight: 700; }
.cart-item-qty { font-size: 11px; color: var(--muted2); }
.cart-item-remove {
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.18);
  color: #f87171; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
}
.cart-item-remove:hover { background: rgba(239,68,68,0.15); }
.cart-footer {
  padding: 18px 22px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.cart-total { display: flex; justify-content: space-between; align-items: center; }
.cart-total span { font-size: 13px; color: var(--muted2); }
.cart-total strong { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.cart-empty { text-align: center; color: var(--muted); padding: 48px 0; font-size: 13px; }
.cart-empty .empty-icon { font-size: 40px; margin-bottom: 12px; }

/* Invoice */
.invoice-modal { background: var(--card); border: 1px solid var(--border2); border-radius: var(--radius-xl); overflow: hidden; animation: modalIn .22s ease; }
.invoice-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 22px; text-align: center; }
.invoice-header h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.invoice-header p { font-size: 11px; color: var(--muted2); margin-top: 4px; letter-spacing: .02em; }
.invoice-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.invoice-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.invoice-row:last-of-type { border-bottom: none; }
.invoice-row span:first-child { font-size: 12px; color: var(--muted2); letter-spacing: -0.005em; }
.invoice-row span:last-child { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.invoice-total .invoice-row span:last-child { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }

/* Reveal animations */
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.reveal-up:nth-child(2) { transition-delay: .08s; }
.reveal-up:nth-child(3) { transition-delay: .16s; }
.reveal-up:nth-child(4) { transition-delay: .24s; }
.reveal-up:nth-child(5) { transition-delay: .12s; }
.reveal-up:nth-child(6) { transition-delay: .20s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .kontak-box { padding: 36px; }
}
@media (max-width: 700px) {
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99; background: rgba(0,0,0,0.97); backdrop-filter: blur(20px); padding: 16px; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .kontak-box { flex-direction: column; text-align: center; padding: 28px 22px; }
  .kontak-info { align-items: center; }
  .hero-stats { gap: 18px; }
  .pay-methods { grid-template-columns: repeat(2, 1fr); }
  .cart-sidebar { width: 100%; right: -100%; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .steps-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-wrap { min-width: unset; }
  .section { padding: 68px 16px; }
  .hero { padding: 96px 16px 56px; }
  .hero-desc { font-size: 14px; }
  .hero-stats { gap: 14px; }
  .stat strong { font-size: 18px; }
  .hero-btns { gap: 8px; }
  .hero-btns .btn { flex: 1; min-width: 0; padding: 0 12px; font-size: 13px; }
}
