/* Nadi Spasibenko storefront palette and base styles. */
:root{
  --bg: #f5f5f5;
  --bg-soft: #eeeae8;
  --bg-soft-2: #e8e3e1;
  --surface: #ffffff;
  --border: #dfdad7;
  --border-strong: #c8bfbb;
  --ink: #211d1e;
  --text: #292526;
  --text-muted: #635c5d;
  --text-faint: #6e6667;
  --accent: #54353b;
  --accent-hover: #40262b;
  --accent-2: #78585e;
  --accent-soft: #efe6e7;
  --accent-2-soft: #f2eceb;
  --green: #1fae8b;
  --red: #ff3b30;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --serif: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1280px;
  --grid-gap: 24px;
  --ease: cubic-bezier(.22,.68,.16,1);
  --shadow-sm: 0 1px 2px rgba(20,20,30,.04);
  --shadow-md: 0 8px 24px rgba(20,20,30,.06);
  --shadow-lg: 0 24px 48px rgba(20,20,30,.10);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family: inherit; cursor:pointer; }
h1,h2,h3,h4{ font-family: var(--serif); font-weight: 800; margin:0; letter-spacing: -0.02em; line-height:1.08; }
p{ margin:0; }
::selection{ background: var(--accent); color:#fff; }

.container{ max-width: var(--container); margin:0 auto; padding: 0 32px; position:relative; z-index:1; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--sans); font-size: 12.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color: var(--accent);
}
.eyebrow::before{ content:""; width:16px; height:1px; background: var(--accent); }
.muted{ color: var(--text-muted); }
.section{ padding: 88px 0; position:relative; z-index:1; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:40px; flex-wrap:wrap; }
.section-head h2{ font-size: clamp(28px, 3.2vw, 40px); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 14px 26px; border-radius: 100px; border:1px solid transparent;
  font-family: var(--sans); font-weight:600; font-size:14.5px; letter-spacing:.01em;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active{ transform: scale(.97); }
.btn-primary{ background: var(--accent); color:#fff; }
.btn-primary:hover{ background:var(--accent-hover); box-shadow: var(--shadow-md); }
.btn-outline{ border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-outline:hover{ border-color: var(--ink); background: var(--bg-soft); }
.btn-ghost{ color: var(--text-muted); padding: 14px 8px; }
.btn-ghost:hover{ color: var(--text); }
.btn-block{ width:100%; }
.btn-sm{ padding: 9px 18px; font-size:13px; }

/* ---------- header (two-tier) ---------- */
.site-header{
  position: sticky; top:0; z-index:50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-top{ border-bottom: 1px solid var(--border); }
.header-top .container{ display:grid; grid-template-columns: 1fr auto 1fr; align-items:center; gap:20px; height:96px; }
.admin-header-row{ display:grid; grid-template-columns: 1fr auto 1fr; align-items:center; gap:20px; height:96px; }
.header-bottom .container{ display:flex; align-items:center; height:50px; }

.logo{ display:flex; align-items:center; justify-self:center; }
.logo img{ height: 58px; width:auto; display:block; }

.main-nav{ display:flex; align-items:center; justify-content:center; gap:32px; width:100%; overflow-x:auto; scrollbar-width:none; }
.main-nav::-webkit-scrollbar{ display:none; }
.main-nav a{
  font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color: var(--text-muted);
  transition:color .2s; white-space:nowrap; padding-bottom:3px; border-bottom:2px solid transparent; flex-shrink:0;
}
.main-nav a:hover{ color: var(--accent); }
.main-nav a.active{ color: var(--ink); border-bottom-color: var(--accent); }

.nav-search{ justify-self:start; max-width:380px; width:100%; position:relative; display:flex; align-items:center; }
.nav-search svg{ position:absolute; left:16px; color: var(--text-faint); pointer-events:none; }
.nav-search input{
  width:100%; background: var(--bg-soft); border:1px solid transparent; border-radius:100px;
  padding: 11px 16px 11px 42px; font-family: var(--sans); font-size:14px; color: var(--text); outline:none;
  transition: border-color .2s, background .2s;
}
.nav-search input:focus{ background:var(--surface); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.nav-search input::placeholder{ color: var(--text-faint); }

.header-actions{ display:flex; align-items:center; gap:4px; justify-self:end; }
.icon-btn{
  width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  border:1px solid transparent; color: var(--text); position:relative; transition:border-color .2s, background .2s;
}
.icon-btn:hover{ background: var(--bg-soft); }
.icon-btn svg{ width:19px; height:19px; }
.cart-btn{ transition: background .2s, color .2s, transform .2s; }
.cart-btn:hover{ background: var(--accent-soft); color: var(--accent); }
.cart-btn:active{ transform: scale(.92); }
.cart-btn.pulse .cart-icon-svg{ animation: cartPulse .5s var(--ease); }
@keyframes cartPulse{
  0%{ transform: scale(1) rotate(0); color: currentColor; }
  30%{ transform: scale(1.25) rotate(-8deg); color: var(--accent); }
  60%{ transform: scale(1.1) rotate(6deg); color: var(--accent); }
  100%{ transform: scale(1) rotate(0); color: currentColor; }
}
.cart-count{
  position:absolute; top:-1px; right:-1px; background: var(--accent); color:#fff;
  font-size:10px; font-weight:800; min-width:17px; height:17px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-family: var(--sans);
  border:2px solid #fff; transition: transform .3s var(--ease);
}
.cart-count.pop{ animation: cartCountPop .4s var(--ease); }
@keyframes cartCountPop{ 0%{ transform:scale(1); } 40%{ transform:scale(1.5); } 100%{ transform:scale(1); } }
.admin-link{ font-family: var(--sans); font-size:12.5px; font-weight:600; color: var(--text-muted); border:1px solid var(--border); border-radius:100px; padding:8px 15px; margin-left:8px; transition:.2s; flex-shrink:0; }
.admin-link:hover{ color: var(--ink); border-color: var(--border-strong); background: var(--bg-soft); }
.nav-toggle{ display:none; }

/* ---------- footer ---------- */
.site-footer{ background: var(--bg-soft); border-top:1px solid var(--border); padding: 64px 0 32px; margin-top: 60px; position:relative; z-index:1;}
.footer-grid{ display:grid; grid-template-columns: 6fr 2fr 2fr 2fr; gap:var(--grid-gap); padding-bottom:48px; }
.footer-grid h4{ font-family: var(--sans); font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color: var(--text-faint); margin-bottom:18px; }
.footer-grid li{ margin-bottom:11px; }
.footer-grid a{ color: var(--text-muted); font-size:14.5px; }
.footer-grid a:hover{ color: var(--accent); }
.footer-about p{ color: var(--text-muted); font-size:14.5px; max-width:320px; margin-top:14px; line-height:1.6; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:28px; border-top:1px solid var(--border); font-size:13px; color: var(--text-faint); flex-wrap:wrap; gap:10px;}
.footer-social{ display:flex; gap:14px; }

/* ---------- hero ---------- */
.hero{ padding: 64px 0 20px; position:relative; z-index:1; }
.hero-grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap: var(--grid-gap); align-items:center; }
.hero-copy{ grid-column: span 7; }
.hero-visual{ grid-column: span 5; }
.hero h1{ font-size: clamp(42px, 5.4vw, 72px); font-weight:800; margin: 16px 0 20px; }
.hero h1 .accent{ color: var(--accent); }
.hero p.lead{ font-size:18px; color: var(--text-muted); max-width: 480px; line-height:1.6; margin-bottom:30px; }
.hero-search{ max-width:460px; margin-bottom:22px; }
.hero-search .nav-search input{ padding:16px 18px 16px 48px; font-size:15px; border:1.5px solid var(--border); border-radius:100px; }
.hero-search svg{ left:18px; width:19px; height:19px; }
.hero-tags{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:13.5px; color: var(--text-faint); margin-bottom:36px; }
.hero-tags a{ color: var(--text-muted); font-weight:500; }
.hero-tags a:hover{ color: var(--accent); }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:36px; margin-top:44px; }
.hero-stats div strong{ display:block; font-family: var(--sans); font-size:28px; font-weight:800; letter-spacing:-.02em; }
.hero-stats div span{ font-size:12.5px; color: var(--text-faint); text-transform:uppercase; letter-spacing:.06em; }

.hero-visual{ position:relative; aspect-ratio: 1/1.02; border-radius: var(--radius-lg); overflow:hidden; background: var(--accent); }
.hero-visual .glyph{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:var(--sans); font-size: 260px; color: rgba(255,255,255,0.65); font-weight:800; letter-spacing:-.04em; }
.hero-visual .float-card{ position:absolute; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border:1px solid rgba(255,255,255,0.6); border-radius: var(--radius-md); padding:16px 18px; box-shadow: var(--shadow-lg); }
.hero-visual .card-a{ top:28px; left:24px; font-family:var(--serif); font-size:16px; color: var(--text); }
.hero-visual .card-b{ bottom:28px; right:24px; font-size:13px; color:var(--text-muted); display:flex; align-items:center; gap:8px; }
.dot-live{ width:7px; height:7px; border-radius:50%; background: var(--green); box-shadow:0 0 0 3px rgba(31,174,139,.18); }

/* ---------- marquee ---------- */
.marquee{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); overflow:hidden; padding: 18px 0; background: var(--bg-soft); }
.marquee-track{ display:flex; align-items:center; gap:14px; white-space:nowrap; animation: scroll 30s linear infinite; width:max-content; will-change: transform; }
.marquee-track span{ display:inline-flex; align-items:baseline; gap:8px; font-family: var(--sans); font-weight:500; font-size:17px; letter-spacing:-.005em; color: var(--text-muted); }
.marquee-track span em{ color:var(--accent); font-style:normal; font-family:var(--sans); font-weight:700; font-size:17px; }
.marquee-dot{ color: var(--border-strong); font-size:17px; }
@keyframes scroll{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation: none; } }

/* ---------- category tiles ---------- */
.cat-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: var(--grid-gap); }
.cat-tile{ border:1px solid var(--border); border-radius: var(--radius-lg); padding:30px; min-height:200px; display:flex; flex-direction:column; justify-content:space-between; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; background: var(--surface); }
.cat-tile:hover{ border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-tile .cat-icon{ width:48px; height:48px; border-radius:14px; display:flex; align-items:center; justify-content:center; margin-bottom:24px; }
.cat-tile:nth-child(1) .cat-icon{ background: var(--accent-soft); color: var(--accent); }
.cat-tile:nth-child(2) .cat-icon{ background: var(--accent-2-soft); color: var(--accent-2); }
.cat-tile:nth-child(3) .cat-icon{ background: rgba(31,174,139,.10); color: var(--green); }
.cat-tile h3{ font-size:22px; font-weight:700; margin-bottom:8px; }
.cat-tile p{ color: var(--text-muted); font-size:14px; }
.cat-tile .cat-count{ margin-top:18px; font-family: var(--sans); font-size:13px; font-weight:600; color: var(--text-faint); }

/* ---------- tabs (trending / new / hits) ---------- */
.tab-row{ display:flex; gap:6px; background: var(--bg-soft); padding:5px; border-radius:100px; width:fit-content; }
.tab-btn{ padding:9px 18px; border-radius:100px; font-size:13.5px; font-weight:600; color: var(--text-muted); background:transparent; border:none; }
.tab-btn.active{ background:#fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- product grid & cards ---------- */
.filters-bar{ display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:34px; flex-wrap:wrap; }
.chip-row{ display:flex; gap:10px; flex-wrap:wrap; }
.chip{ padding:9px 18px; border-radius:100px; border:1px solid var(--border); font-size:13.5px; font-weight:600; color: var(--text-muted); transition: all .2s; background:#fff; }
.chip:hover{ color: var(--text); border-color: var(--border-strong); }
.chip.active{ background: var(--ink); border-color: var(--ink); color:#fff; }
.sort-select{ background: #fff; border:1px solid var(--border); color: var(--text-muted); padding:9px 16px; border-radius:100px; font-size:13.5px; font-family: var(--sans); }

.product-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:32px var(--grid-gap); }
.product-card{ background: transparent; display:flex; flex-direction:column; }
.thumb{ aspect-ratio: 4/3; position:relative; display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius: var(--radius-md); box-shadow: 0 0 0 1px var(--border); transition: box-shadow .3s var(--ease); }
.product-card:hover .thumb{ box-shadow: var(--shadow-lg), 0 0 0 1px var(--border); }
.thumb-bg{ position:absolute; inset:0; transition: transform .5s var(--ease); }
.product-card:hover .thumb-bg{ transform: scale(1.06); }
.thumb .glyph{ font-size:30px; font-weight:600; color: rgba(255,255,255,0.94); z-index:2; text-align:center; padding: 0 10px;}
.badge{ position:absolute; top:12px; left:12px; z-index:3; font-family: var(--sans); font-size:11px; font-weight:700; letter-spacing:.03em; padding:6px 11px 6px 8px; border-radius:100px; background: rgba(255,255,255,0.92); backdrop-filter: blur(6px); display:flex; align-items:center; gap:6px; color: var(--text); }
.badge::before{ content:""; width:6px; height:6px; border-radius:50%; }
.badge.new::before{ background: var(--accent-2); }
.badge.hit::before{ background: var(--accent); }
.quick-add{ position:absolute; left:10px; right:10px; bottom:10px; z-index:3; background: var(--ink); color:#fff; border:none; outline:none; border-radius:100px; padding:10px 16px; font-size:13px; font-weight:600; display:flex; align-items:center; justify-content:center; gap:8px; opacity:0; transform: translateY(12px); transition: opacity .2s var(--ease), transform .25s var(--ease); pointer-events:none; box-shadow: 0 8px 20px rgba(18,18,24,.25); }
.product-card:hover .quick-add{ opacity:1; transform: translateY(0); pointer-events:auto; }
.card-body{ padding:14px 2px 0; display:flex; flex-direction:column; gap:7px; flex:1; }
.card-cat{ font-family: var(--sans); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color: var(--text-faint); }
.card-title{ font-family: var(--sans); font-size:16.5px; font-weight:700; letter-spacing:-.01em; }
.card-title a:hover{ color: var(--accent); }
.card-stats{ display:flex; align-items:center; gap:14px; }
.stat-like, .stat-views{ display:inline-flex; align-items:center; gap:5px; font-size:12.5px; color: var(--text-faint); font-weight:600; font-family: var(--sans); }
.stat-like{ background:none; border:none; padding:0; transition: color .2s; }
.stat-like svg{ width:14px; height:14px; transition: transform .15s var(--ease); }
.stat-like:hover{ color: var(--text-muted); }
.stat-like.liked{ color: var(--red); }
.stat-like.liked svg{ fill: var(--red); }
.stat-like.pop svg{ animation: heartPop .45s var(--ease); }
@keyframes heartPop{ 0%{ transform:scale(1); } 35%{ transform:scale(1.4); } 60%{ transform:scale(.88); } 100%{ transform:scale(1); } }
.card-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:6px; }
.price{ font-family: var(--sans); font-size:15px; font-weight:700; color: var(--text); }
.price .old{ color: var(--text-faint); text-decoration: line-through; font-weight:500; margin-right:8px; font-size:13px; }
.add-btn{ width:36px; height:36px; border-radius:50%; border:1px solid var(--border-strong); display:flex; align-items:center; justify-content:center; color:var(--text); transition:.2s; flex-shrink:0; }
.add-btn:hover{ background: var(--ink); border-color: var(--ink); color:#fff; transform: scale(1.06); }

/* ---------- font swatches on category thumbs ---------- */
.tf-caveat{ font-family:'Caveat', cursive; font-style:normal; }
.tf-playfair{ font-family:'Playfair Display', serif; font-style:normal; }
.tf-bebas{ font-family:'Bebas Neue', sans-serif; letter-spacing:.03em; font-style:normal; }
.tf-pacifico{ font-family:'Pacifico', cursive; font-style:normal; }
.tf-space{ font-family:'Space Grotesk', sans-serif; font-style:normal; }
.tf-dmserif{ font-family:'DM Serif Display', serif; font-style:normal; }
.tf-marker{ font-family:'Permanent Marker', cursive; font-style:normal; }
.tf-cormorant{ font-family:'Cormorant Garamond', serif; font-weight:600; font-style:normal; }

/* ---------- band / cta ---------- */
.band{ padding: 0 0 20px; }
.band-inner{
  display:flex; align-items:center; justify-content:space-between; padding:52px 56px; gap:24px; flex-wrap:wrap;
  background: linear-gradient(120deg, var(--accent-soft), var(--accent-2-soft));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.band h2{ font-size: clamp(24px,2.8vw,34px); max-width:560px; font-weight:800; }

/* ---------- page header (inner pages) ---------- */
.page-header{ padding: 52px 0 36px; border-bottom:1px solid var(--border); }
.page-header h1{ font-size: clamp(32px,4vw,48px); margin-top:12px; font-weight:800; }
.breadcrumbs{ font-size:13px; color: var(--text-faint); display:flex; gap:8px; align-items:center; margin-bottom: 16px;}
.breadcrumbs a:hover{ color: var(--accent); }

/* ---------- product detail ---------- */
.product-detail{ display:grid; grid-template-columns: repeat(12, 1fr); gap: var(--grid-gap); padding: 48px 0; }
.pd-gallery, .pd-info{ grid-column: span 6; }
.pd-gallery .thumb{ aspect-ratio: 1/1; border-radius: var(--radius-lg); border:1px solid var(--border); }
.pd-gallery .glyph{ font-size:130px; }
.pd-thumbs{ display:flex; gap:10px; margin-top:14px; }
.pd-thumbs .mini{ width:64px; height:64px; border-radius:10px; border:1px solid var(--border); opacity:.6; }
.pd-thumbs .mini.active{ opacity:1; border-color: var(--ink); }
.pd-cat{ font-family: var(--sans); font-size:12.5px; font-weight:700; color:var(--accent); text-transform:uppercase; letter-spacing:.06em; margin-bottom:12px; display:block;}
.pd-title{ font-size: clamp(30px,3.2vw,42px); margin-bottom:14px; font-weight:800; }
.pd-sub{ color: var(--text-muted); font-size:16px; margin-bottom:22px; line-height:1.6; }
.pd-price-row{ display:flex; align-items:center; gap:14px; margin-bottom:26px; }
.pd-price{ font-family: var(--sans); font-size:28px; font-weight:800; }
.pd-meta-list{ display:flex; flex-direction:column; gap:10px; margin: 24px 0; padding:20px; background: var(--bg-soft); border-radius: var(--radius-md); }
.pd-meta-list > div{ display:flex; justify-content:space-between; align-items:center; font-size:14px; }
.pd-meta-list span:first-child{ color: var(--text-faint); }

/* ---------- license popover ---------- */
.license-trigger-wrap{ position:relative; }
.license-trigger{ display:inline-flex; align-items:center; gap:5px; background:none; border:none; padding:2px 0; font-family:var(--sans); font-size:14px; font-weight:700; color:var(--text); cursor:pointer; }
.license-trigger svg{ color: var(--text-faint); transition: color .15s; }
.license-trigger:hover svg{ color: var(--accent); }
.license-trigger-wrap.open .license-trigger svg{ color: var(--accent); }
.license-popover{
  position:absolute; top: calc(100% + 12px); right:-8px; width:272px; background:#fff; border:1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding:18px; z-index:20; text-align:left;
  opacity:0; transform: translateY(-6px) scale(.98); pointer-events:none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.license-popover::before{ content:""; position:absolute; top:-6px; right:24px; width:12px; height:12px; background:#fff; border-left:1px solid var(--border); border-top:1px solid var(--border); transform:rotate(45deg); }
.license-trigger-wrap.open .license-popover{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.license-list{ display:flex; flex-direction:column; gap:9px; margin-bottom:14px; }
.license-list li{ display:flex; align-items:flex-start; gap:8px; font-size:13px; line-height:1.4; color: var(--text-muted); }
.license-list li svg{ flex-shrink:0; margin-top:2px; }
.license-list li.allow svg{ color: var(--green); }
.license-list li.deny svg{ color: var(--red); }
.license-full-link{ display:block; font-size:12.5px; font-weight:700; color: var(--accent); padding-top:12px; border-top:1px solid var(--border); }
.license-full-link:hover{ text-decoration:underline; }
.pd-actions{ display:flex; gap:12px; margin-bottom:22px; }
.pd-tags{ display:flex; gap:8px; flex-wrap:wrap; margin-top:20px; }
.tag{ font-size:12.5px; font-weight:500; padding:6px 13px; border:1px solid var(--border); border-radius:100px; color: var(--text-muted); }
.pd-tabs{ margin-top:20px; border-top:1px solid var(--border); padding-top:20px; }
.pd-tabs p{ color: var(--text-muted); line-height:1.7; }
.pd-tabs ul{ margin-top:12px; }
.pd-tabs li{ position:relative; padding-left:24px; color: var(--text-muted); margin-bottom:10px; font-size:14.5px; }
.pd-tabs li::before{ content:"✓"; position:absolute; left:0; top:-1px; color: var(--accent); font-weight:700; }

/* ---------- fonts demo page ---------- */
.demo-shell{ display:grid; grid-template-columns: 260px 1fr; gap:40px; padding: 16px 0 90px; }
.demo-side{ border-right:1px solid var(--border); padding-right:26px; position:sticky; top:134px; align-self:start; }
.demo-side h4{ font-family: var(--sans); text-transform:uppercase; font-size:12px; font-weight:700; letter-spacing:.08em; color: var(--text-faint); margin-bottom:16px; }
.font-list{ display:flex; flex-direction:column; gap:2px; }
.font-list button{ text-align:left; background:transparent; border:none; border-left:2px solid transparent; color: var(--text-muted); padding:11px 14px; border-radius:0 10px 10px 0; font-size:15px; display:flex; justify-content:space-between; align-items:center; }
.font-list button:hover{ background: var(--bg-soft); color: var(--text); }
.font-list button.active{ background: var(--bg-soft); color: var(--ink); border-left-color: var(--accent); }
.font-list button .fname{ font-family: var(--sans); font-weight:600; font-size:15px; }
.demo-main{ min-width:0; }
.demo-toolbar{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin-bottom:18px; padding-bottom:18px; border-bottom:1px solid var(--border); }
.demo-toolbar .grow{ flex:1; }
.demo-toolbar label{ font-size:12px; font-weight:700; color: var(--text-faint); text-transform:uppercase; letter-spacing:.05em; margin-right:8px; }
.demo-toolbar input[type=range]{ width:140px; accent-color: var(--ink); vertical-align:middle; }
.demo-toolbar select{ background: var(--bg-soft); border:1px solid var(--border); color:var(--text); padding:8px 14px; border-radius:100px; font-size:13px; }
.demo-align-group{ display:flex; gap:4px; background: var(--bg-soft); border-radius:100px; padding:4px; }
.demo-align-group button{ width:32px; height:32px; border-radius:50%; background:transparent; border:none; color: var(--text-muted); display:flex; align-items:center; justify-content:center; }
.demo-align-group button.active{ background: var(--ink); color:#fff; }
.demo-canvas{ min-height: 320px; padding: 30px 0; }
.demo-canvas [contenteditable]{ outline:none; font-size: 76px; line-height:1.12; word-break: break-word; color: var(--text); }
.demo-canvas [contenteditable]:empty::before{ content: attr(data-placeholder); color: var(--text-faint); }
.demo-info-card{ margin-top:30px; display:flex; align-items:center; justify-content:space-between; border:1px solid var(--border); border-radius: var(--radius-md); padding:22px 26px; background: var(--bg-soft); flex-wrap:wrap; gap:16px;}
.demo-info-card .glyphs{ font-size:14px; color:var(--text-muted); }

/* ---------- blog ---------- */
.blog-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: var(--grid-gap); }
.post-card{ border:1px solid var(--border); border-radius: var(--radius-md); overflow:hidden; background: var(--surface); transition: transform .25s var(--ease), box-shadow .25s; }
.post-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card:hover .thumb-bg{ transform: scale(1.06); }
.post-thumb{ aspect-ratio: 16/10; }
.post-body{ padding:22px; }
.post-meta{ font-family: var(--sans); font-size:11.5px; font-weight:700; color: var(--text-faint); text-transform:uppercase; letter-spacing:.04em; margin-bottom:10px;}
.post-title{ font-family: var(--sans); font-size:19px; font-weight:700; letter-spacing:-.01em; margin-bottom:10px; line-height:1.3; }
.post-excerpt{ color: var(--text-muted); font-size:14.5px; line-height:1.6; }
.post-card.featured{ grid-column: span 2; }
.post-card.featured .post-title{ font-size:29px; }

.article{ max-width: 740px; margin: 0 auto; padding: 46px 0 100px; }
.article-cover{ aspect-ratio: 16/8; border-radius: var(--radius-lg); margin-bottom:40px; }
.article h1{ font-size: clamp(32px,4vw,48px); margin-bottom:18px; font-weight:800; }
.article .lede{ font-size:19px; color: var(--text-muted); line-height:1.7; margin-bottom:36px; }
.article h2{ font-size:25px; font-weight:800; margin: 40px 0 16px; }
.article p{ color: #33333d; line-height:1.85; font-size:16.5px; margin-bottom:20px; }
.article em{ font-style: normal; font-weight:700; color: var(--accent); }
.article blockquote{ border-left:3px solid var(--accent); padding: 4px 0 4px 22px; margin: 30px 0; font-size:22px; font-weight:700; letter-spacing:-.01em; color: var(--text); }
.article-author{ display:flex; align-items:center; gap:14px; margin-top:44px; padding-top:30px; border-top:1px solid var(--border); }
.avatar{ width:46px; height:46px; border-radius:50%; background: linear-gradient(135deg,var(--accent),var(--accent-2)); flex-shrink:0; }

/* ---------- cart drawer ---------- */
.overlay{ position:fixed; inset:0; background: rgba(20,20,26,0.35); backdrop-filter: blur(2px); z-index:90; opacity:0; pointer-events:none; transition: opacity .3s var(--ease); }
.overlay.open{ opacity:1; pointer-events:auto; }
.cart-drawer{ position:fixed; top:0; right:0; bottom:0; width:420px; max-width:92vw; background: #fff; box-shadow: -20px 0 60px rgba(20,20,30,.12); z-index:95; transform: translateX(100%); transition: transform .35s var(--ease); display:flex; flex-direction:column; }
.cart-drawer.open{ transform: translateX(0); }
.cart-head{ display:flex; align-items:center; justify-content:space-between; padding:24px 24px; border-bottom:1px solid var(--border); }
.cart-head h3{ font-size:19px; font-weight:800; }
.close-btn{ width:36px; height:36px; border-radius:50%; border:none; background:transparent; display:flex; align-items:center; justify-content:center; color:var(--text-muted); }
.close-btn:hover{ color:var(--text); background:var(--bg-soft); }
.cart-items{ flex:1; overflow-y:auto; padding: 10px 24px; }
.cart-item{ display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--border); }
.cart-item .thumb{ width:64px; height:64px; border-radius:10px; flex-shrink:0; aspect-ratio:auto; }
.cart-item .thumb .glyph{ font-size:16px; }
.ci-info{ flex:1; }
.ci-title{ font-family: var(--sans); font-size:14.5px; font-weight:700; margin-bottom:6px; }
.ci-row{ display:flex; justify-content:space-between; align-items:center; }
.ci-remove{ color: var(--text-faint); font-size:12.5px; }
.ci-remove:hover{ color: var(--accent); }
.cart-empty{ padding: 60px 20px; text-align:center; color: var(--text-faint); }
.cart-foot{ padding:22px 24px 26px; border-top:1px solid var(--border); }
.cart-subtotal{ display:flex; justify-content:space-between; font-size:16px; margin-bottom:16px; }
.cart-subtotal strong{ font-family: var(--sans); font-size:19px; font-weight:800; }

/* ---------- checkout ---------- */
.checkout-grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap: var(--grid-gap); padding: 46px 0 100px; align-items:start;}
.checkout-form-col{ grid-column: span 7; }
.checkout-summary-col{ grid-column: span 5; }
.form-group{ margin-bottom:18px; }
.form-group label{ display:block; font-size:12.5px; font-weight:700; color: var(--text-faint); margin-bottom:8px; text-transform:uppercase; letter-spacing:.04em;}
.form-group input, .form-group select, .form-group textarea{
  width:100%; background: var(--bg-soft); border:1px solid var(--border); color: var(--text);
  padding:13px 16px; border-radius:10px; font-family: var(--sans); font-size:14.5px; outline:none;
  transition: border-color .2s, background .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{ border-color: var(--ink); background:#fff; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.pay-methods{ display:flex; flex-direction:column; gap:10px; margin: 18px 0 26px; }
.pay-method{ display:flex; align-items:center; gap:14px; border:1px solid var(--border); border-radius: var(--radius-md); padding:16px 18px; transition:.2s; }
.pay-method.selected{ border-color: var(--ink); background: var(--bg-soft); }
.pay-method input{ accent-color: var(--ink); width:16px; height:16px; }
.pay-method .rk-badge{ margin-left:auto; font-family:var(--sans); font-size:10.5px; font-weight:700; color: var(--text-faint); border:1px solid var(--border); padding:4px 9px; border-radius:100px; }
.summary-card{ border:1px solid var(--border); border-radius: var(--radius-lg); padding:26px; background: var(--bg-soft); position:sticky; top:134px; }
.summary-line{ display:flex; justify-content:space-between; font-size:14.5px; padding:10px 0; color: var(--text-muted); border-bottom:1px solid var(--border); }
.summary-line.total{ color: var(--text); font-size:17px; border-bottom:none; padding-top:18px; }
.summary-line.total strong{ font-family: var(--sans); font-weight:800; }
.note-box{ margin-top:20px; font-size:13px; color: var(--text-muted); background: #fff; border:1px dashed var(--border-strong); border-radius:10px; padding:14px 16px; line-height:1.6; }

/* ---------- admin ---------- */
.admin-shell{ display:grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 78px); background: var(--bg-soft); }
.admin-sidebar{ padding: 30px 20px; }
.admin-sidebar .a-link{ display:flex; align-items:center; gap:10px; padding:11px 14px; border-radius:10px; color: var(--text-muted); font-size:14.5px; font-weight:600; margin-bottom:4px; }
.admin-sidebar .a-link.active{ background: var(--ink); color:#fff; }
.admin-sidebar .a-link:hover:not(.active){ background: #fff; color: var(--text); }
.admin-main{ padding: 36px 40px; }
.admin-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:30px; flex-wrap:wrap; gap:14px; }
.admin-head h1{ font-size:28px; font-weight:800; }
.stat-row{ display:grid; grid-template-columns: repeat(4,1fr); gap:18px; margin-bottom:36px; }
.stat-card{ border:1px solid var(--border); border-radius: var(--radius-md); padding:20px 22px; background: #fff; }
.stat-card span{ font-size:12px; font-weight:600; color: var(--text-faint); text-transform:uppercase; letter-spacing:.05em; }
.stat-card strong{ display:block; font-family: var(--sans); font-size:26px; font-weight:800; letter-spacing:-.02em; margin-top:8px; }
.admin-panel{ border:1px solid var(--border); border-radius: var(--radius-lg); background: #fff; overflow:hidden; }
.analytics-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); }
.bar-list{ display:flex; flex-direction:column; gap:14px; }
.bar-row{ display:grid; grid-template-columns: 130px 1fr 34px; align-items:center; gap:14px; }
.bar-row .bar-label{ font-size:13px; font-weight:600; color: var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bar-row .bar-track{ height:8px; background: var(--bg-soft-2); border-radius:100px; overflow:hidden; }
.bar-row .bar-fill{ display:block; height:100%; background: var(--accent); border-radius:100px; transition: width .6s var(--ease); }
.bar-row .bar-value{ font-size:13px; font-weight:700; color: var(--text-muted); text-align:right; }
.admin-panel-head{ padding:20px 24px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.admin-form{ padding:24px; display:grid; grid-template-columns: 1fr 1fr; gap:16px 20px; border-bottom:1px solid var(--border); background: var(--bg-soft); }
.admin-form .full{ grid-column: 1/-1; }
.a-table{ width:100%; border-collapse: collapse; }
.a-table th{ text-align:left; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color: var(--text-faint); padding: 14px 24px; border-bottom:1px solid var(--border); }
.a-table td{ padding: 14px 24px; border-bottom:1px solid var(--border); font-size:14.5px; vertical-align:middle; }
.a-table tr:last-child td{ border-bottom:none; }
.a-thumb{ width:38px; height:38px; border-radius:8px; display:inline-block; vertical-align:middle; margin-right:12px; }
.a-cat-badge{ font-family: var(--sans); font-size:11px; font-weight:600; padding:4px 10px; border-radius:100px; border:1px solid var(--border); color: var(--text-muted); text-transform:capitalize;}
.a-row-actions{ display:flex; gap:8px; }
.a-icon-btn{ width:30px; height:30px; border-radius:8px; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color: var(--text-muted); }
.a-icon-btn:hover{ color: var(--accent); border-color: var(--accent); }
.empty-state{ padding: 70px 20px; text-align:center; color: var(--text-faint); }
.toast{ position:fixed; bottom:26px; left:50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding:13px 22px; border-radius:100px; font-size:14px; font-weight:600; z-index:200; opacity:0; pointer-events:none; transition: all .3s var(--ease); box-shadow: var(--shadow-lg); }
.toast.show{ opacity:1; transform: translateX(-50%) translateY(0); }

/* ---------- rating stars ---------- */
.stars{ display:inline-flex; gap:2px; color: #ffb400; flex-shrink:0; }
.stars svg{ width:15px; height:15px; }
.stars.stars-lg svg{ width:20px; height:20px; }
.rating-row{ display:flex; align-items:center; gap:10px; margin: 4px 0 20px; }
.rating-row .rv-count{ color: var(--text-muted); font-size:13.5px; }
.rating-row .rv-count a{ color: var(--text); font-weight:600; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset:3px; }
.rating-row .rv-count a:hover{ color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- check list ---------- */
.check-list{ display:flex; flex-direction:column; gap:12px; }
.check-list li{ display:flex; align-items:flex-start; gap:11px; font-size:15px; color: var(--text-muted); }
.check-list li svg{ width:19px; height:19px; flex-shrink:0; margin-top:1px; color: var(--accent); }

/* ---------- trust row (product page) ---------- */
.trust-row{ display:flex; flex-wrap:wrap; gap:18px; margin-top:6px; }
.trust-row span{ display:flex; align-items:center; gap:7px; font-size:12.5px; color: var(--text-faint); font-weight:600; }
.trust-row svg{ width:15px; height:15px; color: var(--accent); }

/* ---------- like button (product page) ---------- */
.pd-like-btn{ display:inline-flex; align-items:center; gap:8px; }
.pd-like-btn svg{ width:17px; height:17px; transition: transform .15s var(--ease); }
.pd-like-btn.liked{ border-color: var(--red); color: var(--red); }
.pd-like-btn.liked svg{ fill: var(--red); }
.pd-like-btn.pop svg{ animation: heartPop .45s var(--ease); }

/* ---------- font tester on product page ---------- */
.pd-tester{ border:1px solid var(--border); border-radius: var(--radius-lg); overflow:hidden; background: var(--surface); box-shadow: var(--shadow-sm); margin-top:28px; }
.pd-tester-head{ padding:20px 20px 4px; }
.pd-tester-head h3{ font-size:17px; font-weight:800; }
.pd-tester-head p{ font-size:13px; color: var(--text-muted); margin-top:4px; }
.pd-tester-toolbar{ display:flex; align-items:center; gap:16px; padding:14px 20px; border-bottom:1px solid var(--border); background: var(--bg-soft); flex-wrap:wrap; margin-top:16px; }
.pd-tester-toolbar label{ font-size:11px; font-weight:700; color: var(--text-faint); text-transform:uppercase; letter-spacing:.05em; margin-right:8px; }
.pd-tester-toolbar input[type=range]{ width:100px; accent-color: var(--ink); vertical-align:middle; }
.pd-tester canvas, .pd-tester-canvas{ padding: 28px 20px; min-height:150px; display:flex; align-items:center; }
.pd-tester-canvas [contenteditable]{ outline:none; width:100%; line-height:1.15; word-break:break-word; color: var(--text); }
.pd-tester-canvas [contenteditable]:empty::before{ content: attr(data-placeholder); color: var(--text-faint); }
.pd-tester-foot{ display:flex; align-items:center; justify-content:space-between; padding:12px 20px; border-top:1px solid var(--border); }
.pd-tester-foot a{ font-size:13px; font-weight:600; color: var(--accent); }
.pd-tester-foot a:hover{ text-decoration:underline; }

/* ---------- reviews page ---------- */
.rv-hero{ display:flex; align-items:flex-end; gap:28px; flex-wrap:wrap; margin-bottom:8px; }
.rv-hero-num{ font-size: clamp(64px,9vw,104px); font-weight:800; letter-spacing:-.05em; line-height:.9; }
.rv-hero-meta{ display:flex; flex-direction:column; gap:8px; padding-bottom:10px; }
.rv-hero-line{ font-size:14px; color: var(--text-muted); font-weight:600; }
.rv-hero-line strong{ color: var(--text); }

.rv-marquee{ margin: 36px 0 44px; }

.review-wall{ column-count:2; column-gap:56px; }
.review-entry{ break-inside: avoid; margin-bottom:44px; padding-top:22px; border-top:1px solid var(--border); position:relative; }
.review-entry .qmark{ position:absolute; top:14px; right:2px; font-size:60px; font-weight:800; color: var(--accent-soft); line-height:1; user-select:none; pointer-events:none; }
.rv-entry-head{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.rv-avatar{ width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family: var(--sans); font-size:13px; font-weight:700; color:#fff; flex-shrink:0; }
.rv-entry-name{ font-weight:700; font-size:14px; }
.rv-entry-meta{ font-size:12px; color: var(--text-faint); font-weight:600; display:flex; align-items:center; gap:7px; }
.rv-entry-meta .stars svg{ width:11px; height:11px; }
.review-entry p{ font-size:17px; line-height:1.55; color: var(--text); font-weight:500; letter-spacing:-.005em; margin-bottom:14px; max-width:48ch; position:relative; z-index:1; }
.rv-tag{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; color: var(--text-muted); }
.rv-tag:hover{ color: var(--accent); }
.rv-tag::after{ content:"→"; transition: transform .2s var(--ease); }
.rv-tag:hover::after{ transform: translateX(3px); }

/* ---------- licenses page ---------- */
.license-page-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; margin-bottom:48px; }
.license-col-title{ display:flex; align-items:center; gap:10px; font-size:18px; margin-bottom:18px; }
.license-col-icon{ width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.license-col-icon.allow-bg{ background: rgba(31,174,139,0.12); color: var(--green); }
.license-col-icon.deny-bg{ background: rgba(255,59,48,0.10); color: var(--red); }
.license-full-list{ display:flex; flex-direction:column; gap:16px; }
.license-full-list li{ font-size:14.5px; line-height:1.6; color: var(--text-muted); padding-left:0; }
.license-full-list li strong{ color: var(--text); font-weight:700; }
.license-note-block{ background: var(--bg-soft); border:1px solid var(--border); border-radius: var(--radius-lg); padding:32px; text-align:center; }
.license-faq{ display:grid; grid-template-columns:1fr 1fr; gap:28px 40px; margin-top:24px; }
.license-faq-item h4{ font-family: var(--sans); font-size:15px; font-weight:700; margin-bottom:8px; }
.license-faq-item p{ font-size:14px; line-height:1.6; color: var(--text-muted); }

/* ---------- scroll reveal ---------- */
.reveal{ opacity:0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in{ opacity:1; transform: translateY(0); }
.reveal.instant{ transition:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  .thumb-bg, .product-card:hover .thumb-bg{ transition:none; transform:none; }
}
body{ opacity:0; }
body.loaded{ opacity:1; transition: opacity .45s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 1080px){
  .product-grid{ grid-template-columns: repeat(3,1fr); }
  .cat-grid{ grid-template-columns: 1fr; }
  .hero-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .checkout-grid{ grid-template-columns:1fr; }
  .product-detail{ grid-template-columns:1fr; }
  .demo-shell{ grid-template-columns:1fr; }
  .demo-side{ position:static; border-right:none; border-bottom:1px solid var(--border); padding-right:0; padding-bottom:20px; }
  .blog-grid{ grid-template-columns: 1fr 1fr; }
  .post-card.featured{ grid-column: span 2; }
  .admin-shell{ grid-template-columns: 1fr; }
  .admin-sidebar{ display:flex; flex-direction:row; overflow-x:auto; gap:6px; padding:14px 20px; border-right:none; border-bottom:1px solid var(--border); scrollbar-width:none; }
  .admin-sidebar::-webkit-scrollbar{ display:none; }
  .admin-sidebar .a-link{ flex-shrink:0; margin-bottom:0; white-space:nowrap; }
  .analytics-grid{ grid-template-columns: 1fr; }
  .site-header .nav-search{ display:none; }
}
@media (max-width: 720px){
  .header-top .container{ height:78px; }
  .logo img{ height:42px; }
  .main-nav{ justify-content:flex-start; }
  .product-grid{ grid-template-columns: repeat(2,1fr); }
  .blog-grid{ grid-template-columns: 1fr; }
  .post-card.featured{ grid-column: span 1; }
  .stat-row{ grid-template-columns: 1fr 1fr; }
  .admin-form{ grid-template-columns: 1fr; }
  .demo-canvas [contenteditable]{ font-size: 42px; }
  .form-row{ grid-template-columns: 1fr; }
  .band-inner{ padding:36px 24px; }
  .review-wall{ column-count:1; }
  .rv-hero{ align-items:flex-start; flex-direction:column; gap:14px; }
  .pd-tester-toolbar{ gap:10px 16px; }
  .license-page-grid{ grid-template-columns:1fr; gap:32px; }
  .license-faq{ grid-template-columns:1fr; }
  .license-popover{ width:240px; right:-60px; }
}

/* Payment checkout */
.checkout-layout { display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.8fr);gap:48px;align-items:start; }
.checkout-card { border:1px solid #e6e6ec;border-radius:24px;background:#f7f7f9;padding:32px; }
.checkout-card h2 { margin-bottom:16px; }
.checkout-card p { margin:16px 0; }
.checkout-email { display:block;font-weight:600;margin:24px 0; }
.checkout-email input { display:block;box-sizing:border-box;width:100%;margin-top:10px;padding:16px;border:1px solid #dcdce4;border-radius:12px;background:#fff;font:inherit; }
.checkout-consent { display:flex;align-items:flex-start;gap:12px;margin:20px 0;font-size:14px;line-height:1.6; }
.checkout-consent input { flex:0 0 auto;margin-top:5px;width:18px;height:18px; }
.checkout-consent a { text-decoration:underline; }
.checkout-hint { font-size:13px;overflow-wrap:anywhere; }
.payment-result { max-width:740px;margin:auto; }
.payment-result h1 { font-size:clamp(28px,4vw,44px); }
.payment-refresh { display:inline-block;margin-top:16px; }
@media(max-width:767px) { .checkout-layout { grid-template-columns:1fr;gap:28px; } .checkout-card { padding:24px; } }
