/* ══════════════════════════════════════════════════════════════
   krossCart — style.css
   All visual styles: variables, layout, components, pages
   ══════════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ────────────────────────────────────────────── */
:root {
  --bg:      #0b0b0f;
  --surface: #141418;
  --card:    #1a1a22;
  --border:  rgba(255,255,255,0.07);
  --accent:  #ff5c2b;
  --accent2: #ffb347;
  --text:    #f0ede8;
  --muted:   #7a7885;
  --green:   #2fcb87;
  --red:     #ff4040;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

input, select, textarea, button { font-family: 'DM Sans', sans-serif; }
input[type=range]     { accent-color: var(--accent); width: 100%; }
input[type=checkbox]  { accent-color: var(--accent); }
a { color: inherit; text-decoration: none; cursor: pointer; }

/* ── UTILITY ──────────────────────────────────────────────────── */
.accent  { color: var(--accent); }
.green   { color: var(--green); }
.muted   { color: var(--muted); }

/* ── ANIMATIONS ───────────────────────────────────────────────── */
@keyframes slideUp   { from { opacity:0; transform:translateY(16px) } to { opacity:1; transform:translateY(0) } }
@keyframes slideLeft { from { transform:translateX(100%) }             to { transform:translateX(0) } }
@keyframes popIn     { from { opacity:0; transform:scale(0.95) }       to { opacity:1; transform:scale(1) } }
@keyframes fadeIn    { from { opacity:0; transform:translateY(6px) }   to { opacity:1; transform:translateY(0) } }

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn-acc {
  background: var(--accent); color: #fff;
  border: none; border-radius: 10px;
  padding: 13px 26px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.btn-acc:hover { background: #e04818; transform: translateY(-1px); }
.btn-acc:disabled { background: var(--muted); transform: none; cursor: default; }

.btn-out {
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 26px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.btn-out:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }

/* ── TOAST ────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--card); border: 1px solid var(--green);
  border-radius: 12px; padding: 12px 20px;
  font-size: 13px; font-weight: 500; color: var(--green);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: slideUp 0.3s ease;
}

/* ── PAGE SYSTEM ──────────────────────────────────────────────── */
.page { display: none; animation: fadeIn 0.25s ease; }
.page.active { display: block; }

/* ── NAV ──────────────────────────────────────────────────────── */
#navbar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 62px;
  background: rgba(11,11,15,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px;
  letter-spacing: -0.5px; cursor: pointer;
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 0; list-style: none; }
.nav-link {
  display: block; padding: 0 12px; height: 62px; line-height: 62px;
  font-size: 11px; font-weight: 500; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom-color 0.2s;
}
.nav-link:hover  { color: var(--text); }
.nav-link.active { color: var(--text); border-bottom-color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.wish-nav-btn {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 12px; color: var(--muted); cursor: pointer; font-size: 13px;
  transition: border-color 0.2s;
}
.wish-nav-btn:hover { border-color: rgba(255,255,255,0.2); }

.cart-nav-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 8px; font-size: 13px;
}
.cart-badge {
  background: #fff; color: var(--bg);
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  min-width: 18px;
}

/* ── BREADCRUMB ───────────────────────────────────────────────── */
.breadcrumb {
  padding: 10px 1.5rem; font-size: 12px; color: var(--muted);
  border-bottom: 1px solid var(--border);
  display: flex; gap: 6px; align-items: center;
}
.breadcrumb a { cursor: pointer; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--text); }

/* ── PAGE HEADER ──────────────────────────────────────────────── */
.page-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 2rem 2rem 1.25rem;
}
.page-header h2 {
  font-family: 'Syne', sans-serif; font-size: 26px;
  font-weight: 800; letter-spacing: -0.5px; margin-bottom: 4px;
}
.page-header p { font-size: 13px; color: var(--muted); }

/* ── SECTION ──────────────────────────────────────────────────── */
.section { padding: 3rem 2rem; }

.sec-head {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 1.75rem;
}
.sec-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 22px; letter-spacing: -0.4px;
}
.see-all {
  background: none; border: none; border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--muted); cursor: pointer; padding: 2px 0;
  transition: color 0.2s;
}
.see-all:hover { color: var(--text); }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 460px; padding: 0 2rem;
  align-items: center; gap: 3rem;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,92,43,0.09) 0%, transparent 70%);
}
.hero-text { position: relative; z-index: 1; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,92,43,0.1); border: 1px solid rgba(255,92,43,0.22);
  color: var(--accent); border-radius: 100px; padding: 5px 14px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.07em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-pill span { font-size: 7px; }
.hero-text h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 4.5vw, 52px); font-weight: 800;
  line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 15px; color: var(--muted);
  line-height: 1.7; max-width: 420px; margin-bottom: 2rem;
}
.cta-row { display: flex; gap: 12px; }

.hero-visual {
  position: relative; z-index: 1;
  display: flex; justify-content: center;
}
.feat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.75rem; width: 240px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.4);
}
.feat-img {
  background: var(--bg); border-radius: 14px; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative; margin-bottom: 1rem;
}
.feat-emoji { font-size: 80px; }
.feat-new-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--green); color: #042;
  border-radius: 6px; padding: 3px 9px; font-size: 10px; font-weight: 700;
}
.feat-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.feat-sub  { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.feat-price { font-size: 20px; font-weight: 700; color: var(--accent); }
.feat-price s { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 4px; }

/* ── STATS BAR ────────────────────────────────────────────────── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.stat {
  padding: 1.5rem 2rem; border-right: 1px solid var(--border); text-align: center;
}
.stat:last-child { border-right: none; }
.stat-n { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; }
.stat-l { font-size: 11px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── CATEGORIES ───────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem 1.25rem;
  text-align: center; cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.cat-card:hover { border-color: rgba(255,92,43,0.4); transform: translateY(-3px); }
.cat-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 10px;
}
.cat-name  { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.cat-count { font-size: 11px; color: var(--muted); }

/* ── FILTER BUTTONS ───────────────────────────────────────────── */
.filter-row { display: flex; gap: 8px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.fbtn {
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); border-radius: 100px;
  padding: 6px 16px; font-size: 11px; font-weight: 500;
  cursor: pointer; text-transform: uppercase; letter-spacing: 0.05em;
  transition: all 0.2s;
}
.fbtn:hover, .fbtn.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ── PRODUCT GRID ─────────────────────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── PRODUCT CARD ─────────────────────────────────────────────── */
.pcard {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; cursor: pointer; position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.pcard:hover { border-color: rgba(255,92,43,0.4); transform: translateY(-4px); }
.pcard:hover .add-show { opacity: 1 !important; transform: translateY(0) !important; }

.pimg {
  width: 100%; aspect-ratio: 1;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; position: relative;
}
.pbadge {
  position: absolute; top: 10px; left: 10px;
  border-radius: 6px; padding: 3px 8px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.pbadge.new  { background: var(--green); color: #042; }
.pbadge.sale { background: var(--accent); color: #fff; }

.disc-badge {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(11,11,15,0.85); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 8px; font-size: 10px; font-weight: 700;
  color: var(--accent);
}
.wish-btn {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(11,11,15,0.75); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; transition: background 0.2s;
}
.wish-btn:hover { background: rgba(255,92,43,0.2); }

.pinfo { padding: 12px 14px 14px; }
.pcat  { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.pname { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 13px; line-height: 1.3; margin-bottom: 5px; }
.prat  { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.stars { color: var(--accent2); }
.pfoot { display: flex; align-items: center; justify-content: space-between; }
.pprice { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; }
.pprice s { font-size: 11px; color: var(--muted); text-decoration: line-through; margin-left: 4px; font-weight: 400; }
.stock-warn { font-size: 10px; color: var(--accent); margin-top: 6px; font-weight: 500; }

.add-show {
  background: var(--accent); color: #fff; border: none;
  border-radius: 8px; padding: 7px 12px; font-size: 11px; font-weight: 500;
  cursor: pointer; opacity: 0; transform: translateY(4px);
  transition: all 0.2s;
}
.add-show:hover { background: #e04818; }

/* ── PROMO BANNER ─────────────────────────────────────────────── */
.promo-banner {
  margin: 0 2rem 3rem;
  background: linear-gradient(120deg, #1a0f08 0%, #291510 40%, #1a1a22 100%);
  border: 1px solid rgba(255,92,43,0.2); border-radius: 20px;
  padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem; position: relative; overflow: hidden;
}
.promo-glow {
  position: absolute; right: -80px; top: -80px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,92,43,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.promo-text  { position: relative; z-index: 1; }
.promo-tag   {
  background: var(--accent); color: #fff; border-radius: 6px;
  padding: 4px 12px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  display: inline-block; margin-bottom: 1rem;
}
.promo-title {
  font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800;
  letter-spacing: -0.8px; line-height: 1.1; margin-bottom: 8px;
}
.promo-sub { font-size: 13px; color: var(--muted); }

.timer { display: flex; gap: 10px; position: relative; z-index: 1; }
.tbox  {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; text-align: center; min-width: 64px;
}
.tnum  { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; line-height: 1; }
.tlbl  { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }

/* ── CATALOG PAGE ─────────────────────────────────────────────── */
.catalog-body { padding: 1.5rem 2rem; }

.search-sort-bar {
  display: flex; gap: 12px; margin-bottom: 1.5rem;
  flex-wrap: wrap; align-items: center;
}
.search-sort-bar input {
  flex: 1; min-width: 180px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 16px;
  font-size: 13px; color: var(--text); outline: none;
  transition: border-color 0.2s;
}
.search-sort-bar input:focus { border-color: rgba(255,92,43,0.5); }
.search-sort-bar select {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 16px;
  font-size: 13px; color: var(--text); outline: none; cursor: pointer;
}
.search-sort-bar select option { background: var(--surface); }

.catalog-layout { display: grid; grid-template-columns: 210px 1fr; gap: 1.5rem; align-items: start; }

.sidebar {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.25rem;
  position: sticky; top: 70px;
}
.sidebar-title {
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  margin-bottom: 1rem; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.filter-group  { margin-bottom: 1.25rem; }
.filter-label  {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 8px;
}
.cat-filter-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; border-radius: 8px; margin-bottom: 3px;
  cursor: pointer; border: 1px solid transparent;
  font-size: 13px; transition: all 0.15s;
}
.cat-filter-item:hover      { background: rgba(255,255,255,0.03); }
.cat-filter-item.active     { background: rgba(255,92,43,0.1); border-color: rgba(255,92,43,0.25); }
.cat-filter-item.active span:first-child { color: var(--accent); }
.cat-count-badge { font-size: 11px; color: var(--muted); }

.range-label   { font-size: 12px; color: var(--muted); margin-top: 4px; }

.rating-option {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px; cursor: pointer; font-size: 13px; color: var(--muted);
}
.radio-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--muted);
  background: none; transition: all 0.15s; flex-shrink: 0;
}
.rating-option.active .radio-dot { border-color: var(--accent); background: var(--accent); }
.rating-option.active { color: var(--text); }

.check-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; cursor: pointer; margin-bottom: 8px;
}
.reset-btn {
  width: 100%; background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px; font-size: 12px; color: var(--muted);
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.reset-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

.empty-state {
  text-align: center; padding: 4rem; color: var(--muted); font-size: 14px;
}

/* ── CONTACT PAGE ─────────────────────────────────────────────── */
.contact-wrap  { max-width: 900px; margin: 0 auto; padding: 2rem; }
.contact-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }

.contact-form-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.75rem;
}
.contact-form-card h3 {
  font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 1.25rem;
}
.form-group       { margin-bottom: 1rem; }
.form-group label {
  font-size: 11px; color: var(--muted); display: block;
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; color: var(--text); outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(255,92,43,0.5); }
.form-group textarea   { resize: vertical; }
.form-group select option { background: var(--surface); }

.send-btn   { width: 100%; font-size: 14px; }
.success-msg {
  margin-top: 12px; background: rgba(47,203,135,0.1);
  border: 1px solid rgba(47,203,135,0.3); border-radius: 10px;
  padding: 14px; font-size: 13px; color: var(--green); text-align: center;
}

.contact-info { display: flex; flex-direction: column; gap: 12px; }
.info-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.25rem;
}
.info-icon { font-size: 20px; margin-bottom: 8px; }
.info-card h4 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; margin-bottom: 4px;
}
.info-card p  { font-size: 12px; color: var(--muted); line-height: 1.6; }

.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.faq-q {
  padding: 10px 14px; font-size: 12px; font-weight: 500;
  display: flex; justify-content: space-between;
  background: var(--bg); cursor: pointer; transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q span:last-child { color: var(--muted); }
.faq-a {
  padding: 0 14px; font-size: 12px; color: var(--muted);
  line-height: 1.6; background: var(--surface);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-a.open { max-height: 200px; padding: 10px 14px 12px; }

/* ── POLICY PAGES ─────────────────────────────────────────────── */
.policy-wrap      { max-width: 760px; margin: 0 auto; padding: 2rem; }
.policy-highlight {
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem; margin-bottom: 2rem;
  font-size: 13px; color: var(--muted); line-height: 1.6;
}
.policy-section    { margin-bottom: 2rem; }
.policy-section h3 {
  font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700;
  border-left: 3px solid var(--accent); padding-left: 10px;
  margin-bottom: 10px; color: var(--text);
}
.policy-section p,
.policy-section li { font-size: 14px; color: rgba(240,237,232,0.75); line-height: 1.75; margin-bottom: 6px; }
.policy-section ul { padding-left: 1.25rem; }
.policy-section li { list-style: disc; }

/* ── FOOTER ───────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 2rem; }

.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 1.5rem;
}
.footer-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.footer-logo span { color: var(--accent); }
.footer-brand p { font-size: 12px; color: var(--muted); line-height: 1.7; max-width: 220px; }

.footer-col h4 {
  font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a  { font-size: 12px; color: var(--muted); cursor: pointer; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
}
.footer-bottom p { font-size: 11px; color: var(--muted); }
.footer-badges   { display: flex; gap: 8px; }
.footer-badges span {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 10px; font-size: 10px; color: var(--muted);
}

/* ── CART DRAWER ──────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 500;
  backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: flex-end;
}
.drawer {
  width: 420px; height: 100vh; background: var(--surface);
  border-left: 1px solid var(--border); overflow-y: auto;
  animation: slideLeft 0.28s ease;
  display: flex; flex-direction: column;
}
.drawer-header {
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.drawer-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px;
}
.close-btn {
  background: none; border: 1px solid var(--border); border-radius: 50%;
  width: 30px; height: 30px; cursor: pointer; color: var(--muted);
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.close-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

.cart-empty {
  padding: 4rem 2rem; text-align: center; color: var(--muted);
  font-size: 14px;
}
.cart-empty .cart-empty-icon { font-size: 48px; margin-bottom: 1rem; }

.cart-item {
  display: flex; gap: 14px; padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 64px; height: 64px; background: var(--card);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 28px; flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-weight: 500; font-size: 13px; margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cart-item-price { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.cart-item-foot  { display: flex; align-items: center; justify-content: space-between; }

.qty-ctrl {
  display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.qty-ctrl button {
  width: 28px; height: 28px; background: none; border: none;
  color: var(--text); font-size: 14px; cursor: pointer;
  transition: background 0.15s;
}
.qty-ctrl button:hover { background: rgba(255,255,255,0.06); }
.qty-ctrl span { width: 24px; text-align: center; font-size: 13px; font-weight: 600; }
.remove-btn {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 16px; transition: color 0.2s;
}
.remove-btn:hover { color: var(--red); }
.cart-line-price {
  font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700;
}

.drawer-footer {
  padding: 1.25rem 1.5rem; border-top: 1px solid var(--border);
  position: sticky; bottom: 0; background: var(--surface);
}
.cart-summary { margin-bottom: 1rem; }
.summary-row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--muted); margin-bottom: 6px;
}
.summary-row span:last-child { color: var(--text); }
.shipping-hint { font-size: 11px; color: var(--muted); margin: 4px 0 8px; }
.summary-total {
  display: flex; justify-content: space-between;
  font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700;
  border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px;
}
.checkout-btn { width: 100%; font-size: 14px; }

/* ── MODAL ────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  z-index: 600; backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  animation: popIn 0.25s ease;
  padding: 1.75rem;
}

/* product modal */
.modal-header    { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; }
.modal-cat       { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; }
.modal-name      { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.modal-img       {
  background: var(--bg); border-radius: 14px; aspect-ratio: 2/1;
  display: flex; align-items: center; justify-content: center;
  font-size: 96px; margin-bottom: 1.5rem; position: relative;
}
.modal-disc-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: #fff;
  border-radius: 8px; padding: 4px 12px; font-size: 12px; font-weight: 700;
}
.modal-rating    { display: flex; align-items: center; gap: 8px; margin-bottom: 0.75rem; font-size: 13px; color: var(--muted); }
.modal-price     { display: flex; align-items: baseline; gap: 10px; margin-bottom: 1rem; }
.modal-price .big { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; }
.modal-price s   { font-size: 14px; color: var(--muted); }
.modal-price .save { font-size: 12px; color: var(--green); font-weight: 600; }
.modal-tags      { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.25rem; }
.tag-pill {
  background: rgba(255,92,43,0.1); border: 1px solid rgba(255,92,43,0.2);
  border-radius: 100px; padding: 3px 10px; font-size: 11px; color: var(--accent);
}
.modal-stock {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}
.modal-qty       { display: flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; }
.qty-box {
  display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.qty-box button  {
  width: 38px; height: 38px; background: none; border: none;
  color: var(--text); font-size: 18px; cursor: pointer; transition: background 0.15s;
}
.qty-box button:hover { background: rgba(255,255,255,0.06); }
.qty-box span    { width: 32px; text-align: center; font-size: 14px; font-weight: 600; }
.modal-actions   { display: flex; gap: 10px; }
.modal-add-btn   { flex: 1; font-size: 14px; }
.modal-wish-btn  {
  width: 46px; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; font-size: 18px;
  transition: border-color 0.2s;
}
.modal-wish-btn:hover { border-color: rgba(255,92,43,0.4); }
.already-in-cart { font-size: 12px; color: var(--muted); }

/* checkout modal */
.checkout-modal  { max-width: 520px; }
.checkout-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem;
}
.checkout-title  { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 18px; }
.checkout-steps  { display: flex; gap: 6px; }
.step-dot {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; transition: all 0.2s;
}
.step-dot.done   { background: var(--accent); border: 1px solid var(--accent); color: #fff; }
.step-dot.pending { background: var(--card); border: 1px solid var(--border); color: var(--muted); }

.checkout-step-title { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 1rem; }

.payment-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 8px; cursor: pointer;
  transition: all 0.2s; font-size: 13px; font-weight: 500;
}
.payment-option:hover   { border-color: rgba(255,92,43,0.3); }
.payment-option.active  { border-color: var(--accent); background: rgba(255,92,43,0.08); }
.pay-radio {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--muted); background: none;
  flex-shrink: 0; transition: all 0.2s;
}
.payment-option.active .pay-radio { border-color: var(--accent); background: var(--accent); }

.order-summary-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px; margin-bottom: 1.25rem;
}
.order-summary-title { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.order-summary-item  { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.order-summary-item span:first-child { color: var(--muted); }
.order-summary-total {
  display: flex; justify-content: space-between;
  font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700;
  border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px;
}

.btn-row { display: flex; gap: 10px; }

/* success modal */
.success-modal {
  text-align: center; max-width: 400px; padding: 3rem 2rem;
}
.success-modal h2 {
  font-family: 'Syne', sans-serif; font-size: 22px;
  font-weight: 800; margin-bottom: 8px;
}
.success-modal p { font-size: 14px; color: var(--muted); margin-bottom: 0.5rem; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hide-mobile        { display: none !important; }
  .hero-grid          { grid-template-columns: 1fr !important; min-height: auto; padding: 2rem; }
  .prod-grid          { grid-template-columns: repeat(2, 1fr) !important; }
  .cat-grid           { grid-template-columns: repeat(2, 1fr) !important; }
  .stats-bar          { grid-template-columns: repeat(2, 1fr) !important; }
  .catalog-layout     { grid-template-columns: 1fr !important; }
  .contact-grid       { grid-template-columns: 1fr !important; }
  .footer-grid        { grid-template-columns: 1fr 1fr !important; }
  .drawer             { width: 100vw !important; }
  .promo-banner       { flex-direction: column; }
  .cta-row            { flex-wrap: wrap; }
}
