/* ============================================================
   Vendio — Marketplace Design System
   Light mode · Professional · Exciting
   ------------------------------------------------------------
   Sections:
   1.  Fonts & Design tokens
   2.  Base / reset
   3.  Layout helpers (container, section)
   4.  Buttons
   5.  Forms
   6.  Header / Navigation
   7.  Footer
   8.  Hero
   9.  Category grid
   10. Product cards
   11. Trust strip / feature strip
   12. Breadcrumbs
   13. Product detail
   14. Auth pages
   15. Dashboards (my products / list rows)
   16. Upload dropzone
   17. Empty state
   18. Utilities
   19. Responsive
   ============================================================ */

@import url('fonts.css');

/* ------------------------------------------------------------
   1. Fonts & Design tokens
   ------------------------------------------------------------ */
:root {
  /* Brand — vivid blue */
  --brand-50:  #EFF6FF;
  --brand-100: #DBEAFE;
  --brand-200: #BFDBFE;
  --brand-500: #3B82F6;
  --brand-600: #2563EB;
  --brand-700: #1D4ED8;

  /* Accent — emerald (prices / success) */
  --accent-50:  #ECFDF5;
  --accent-100: #D1FAE5;
  --accent-500: #10B981;
  --accent-600: #059669;
  --accent-700: #047857;

  /* Feedback */
  --danger-50:  #FEF2F2;
  --danger-100: #FEE2E2;
  --danger-600: #DC2626;
  --warning-100: #FEF3C7;
  --warning-600: #D97706;

  /* Neutrals (slate) */
  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* App surfaces */
  --bg:        #F6F9FF;
  --surface:   #FFFFFF;
  --border:    #E8EEF7;
  --border-strong: #D7E0EE;

  /* Category colors */
  --cat-electronics: #2563EB;
  --cat-fashion:     #DB2777;
  --cat-furniture:   #D97706;
  --cat-vehicles:    #7C3AED;
  --cat-books:       #0891B2;
  --cat-other:       #64748B;

  /* Typography */
  --font-display: 'Rubik', system-ui, -apple-system, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;

  /* Shape & elevation */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-full: 999px;
  --sh-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 2px 6px -1px rgba(15, 23, 42, .05);
  --sh:    0 14px 30px -10px rgba(37, 99, 235, .16), 0 4px 12px -6px rgba(15, 23, 42, .06);
  --sh-lg: 0 34px 70px -20px rgba(37, 99, 235, .24), 0 14px 32px -14px rgba(15, 23, 42, .14);

  /* Layout */
  --container: 1180px;
  --gutter: 24px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --t: 180ms var(--ease);
}

/* ------------------------------------------------------------
   2. Base / reset
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-900);
  background:
    radial-gradient(1100px 500px at 100% -10%, rgba(59, 130, 246, .10), transparent 60%),
    radial-gradient(900px 460px at -5% 10%, rgba(16, 185, 129, .08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-600); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--brand-700); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1rem; }

::selection { background: var(--brand-200); color: var(--slate-900); }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .22);
  border-radius: 4px;
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 72px; }
.section-tight { padding-block: 48px; }
.section-sm { padding-block: 32px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head .subtitle { color: var(--slate-500); margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: 14px;
}

.text-center { text-align: center; }
.muted { color: var(--slate-500); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

.grad-text {
  background: linear-gradient(92deg, var(--brand-600), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------ */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background-color var(--t), border-color var(--t), color var(--t);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { min-height: 38px; padding: 8px 15px; font-size: .875rem; }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(37, 99, 235, .55);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 28px -8px rgba(37, 99, 235, .65); transform: translateY(-1px); }

.btn-accent {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(5, 150, 105, .55);
}
.btn-accent:hover { color: #fff; box-shadow: 0 14px 28px -8px rgba(5, 150, 105, .65); transform: translateY(-1px); }

.btn-outline { border-color: var(--border-strong); background: var(--surface); color: var(--slate-700); }
.btn-outline:hover { border-color: var(--brand-600); color: var(--brand-600); background: var(--brand-50); }

.btn-ghost { background: transparent; color: var(--slate-600); }
.btn-ghost:hover { background: var(--slate-100); color: var(--slate-900); }

.btn-danger { background: var(--danger-50); color: var(--danger-600); border-color: var(--danger-100); }
.btn-danger:hover { background: var(--danger-100); color: var(--danger-600); }

.btn-plain { background: var(--surface); color: var(--slate-700); border-color: var(--border-strong); }
.btn-plain:hover { border-color: var(--brand-600); color: var(--brand-600); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--slate-500);
  transition: var(--t);
}
.icon-btn:hover { color: var(--danger-600); border-color: var(--danger-100); background: var(--danger-50); transform: scale(1.05); }
.icon-btn svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------
   5. Forms
   ------------------------------------------------------------ */
.field { margin-bottom: 20px; }
.field-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 8px;
  color: var(--slate-800);
}
.field-label .req { color: var(--danger-600); }

.input, .textarea, .select {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--slate-900);
  transition: var(--t);
}
.input::placeholder, .textarea::placeholder { color: var(--slate-400); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}
.input:hover, .textarea:hover, .select:hover { border-color: var(--slate-400); }
.textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  cursor: pointer;
}
.field-hint { font-size: .82rem; color: var(--slate-400); margin-top: 6px; }
.field-error { font-size: .82rem; color: var(--danger-600); margin-top: 6px; display: none; }
.input.is-invalid { border-color: var(--danger-600); }

/* password wrapper */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--slate-400); padding: 8px;
  display: inline-flex; align-items: center;
}
.pw-toggle:hover { color: var(--slate-700); }
.pw-toggle svg { width: 20px; height: 20px; }

/* checkbox row */
.check-row { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--slate-600); }
.check-row input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--brand-600); margin: 0;
}

/* segmented control (New / Used) */
.segment {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  background: var(--slate-100);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment label {
  padding: 9px 22px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  color: var(--slate-500);
  cursor: pointer;
  transition: var(--t);
}
.segment input:checked + label {
  background: var(--surface);
  color: var(--brand-700);
  box-shadow: var(--sh-sm);
}

/* price input with currency prefix */
.price-wrap { position: relative; }
.price-wrap .prefix {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--slate-500); font-family: var(--font-display); font-weight: 600;
}
.price-wrap .input { padding-left: 56px; }

/* form footer */
.form-foot { display: flex; gap: 14px; margin-top: 26px; }
.form-divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--slate-400); font-size: .85rem; margin: 22px 0;
}
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* inline alert */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 16px; border-radius: var(--r-sm);
  font-size: .9rem; margin-bottom: 18px;
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert-info { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
.alert-error { background: var(--danger-50); color: var(--danger-600); border: 1px solid var(--danger-100); }
.alert-success { background: var(--accent-50); color: var(--accent-700); border: 1px solid var(--accent-100); }

/* ------------------------------------------------------------
   6. Header / Navigation
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem;
  color: var(--slate-900); letter-spacing: -.02em;
}
.brand:hover { color: var(--brand-600); }
.brand img { width: 38px; height: 38px; }
.brand .tag { font-size: .62rem; font-weight: 600; color: var(--brand-600); letter-spacing: .06em; text-transform: uppercase; }
.brand-mark { display: flex; flex-direction: column; line-height: 1.05; }

.nav-toggle { display: none; }

.nav-menu {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
}
.nav-link {
  position: relative;
  padding: 9px 15px;
  border-radius: 9px;
  font-weight: 600; font-size: .95rem;
  color: var(--slate-600);
  transition: var(--t);
}
.nav-link:hover { color: var(--brand-700); background: var(--brand-50); }
.nav-link.is-active { color: var(--brand-700); background: var(--brand-50); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 10px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  margin-left: auto;
}
.nav-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--slate-700); margin: 0 auto; transition: var(--t); }
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   7. Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-300);
  margin-top: 88px;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #fff; margin-bottom: 16px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-desc { color: var(--slate-400); font-size: .95rem; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255, 255, 255, .06); color: var(--slate-300);
  transition: var(--t);
}
.footer-social a:hover { background: var(--brand-600); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer-col a { display: block; color: var(--slate-400); padding: 6px 0; font-size: .93rem; }
.footer-col a:hover { color: var(--brand-300, #93C5FD); }

.footer-news p { color: var(--slate-400); font-size: .92rem; }
.news-form { display: flex; gap: 8px; margin-top: 14px; }
.news-form .input { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); color: #fff; }
.news-form .input::placeholder { color: var(--slate-500); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--slate-500); font-size: .88rem;
}
.footer-bottom a { color: var(--slate-400); }

/* ------------------------------------------------------------
   8. Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 76px;
  background:
    radial-gradient(760px 340px at 18% 0%, rgba(59, 130, 246, .16), transparent 60%),
    radial-gradient(700px 340px at 88% 8%, rgba(16, 185, 129, .14), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg));
}
.hero-inner { max-width: 780px; }
.hero-title { margin: 0 0 16px; }
.hero-sub { font-size: 1.13rem; color: var(--slate-500); max-width: 620px; margin-bottom: 28px; }

.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 8px 8px 8px 18px;
  box-shadow: var(--sh);
  max-width: 640px;
  transition: var(--t);
}
.hero-search:focus-within { border-color: var(--brand-600); box-shadow: 0 0 0 5px rgba(37, 99, 235, .14), var(--sh); }
.hero-search .search-icon { color: var(--slate-400); flex: none; }
.hero-search .search-icon svg { width: 22px; height: 22px; }
.hero-search input {
  flex: 1;
  border: none; outline: none; background: none;
  font-size: 1rem; color: var(--slate-900); padding: 10px 4px; min-width: 0;
}
.hero-search .btn { flex: none; }

.hero-popular { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: .9rem; color: var(--slate-500); }
.pill {
  padding: 6px 15px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--slate-600); font-weight: 600; font-size: .85rem;
  transition: var(--t);
}
.pill:hover { border-color: var(--brand-600); color: var(--brand-600); background: var(--brand-50); transform: translateY(-1px); }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 36px; margin-top: 40px;
  padding-top: 28px; border-top: 1px solid var(--border);
  max-width: 640px;
}
.hero-stats strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--slate-900); display: block; line-height: 1.1; }
.hero-stats span { color: var(--slate-500); font-size: .88rem; }

/* ------------------------------------------------------------
   9. Category grid
   ------------------------------------------------------------ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 14px 20px;
  color: var(--slate-800);
  transition: var(--t);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--border-strong); color: var(--slate-900); }
.cat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 18px;
}
.cat-icon svg { width: 28px; height: 28px; }
.cat-name { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.cat-count { font-size: .8rem; color: var(--slate-400); }

.cat-icon-electronics { background: var(--brand-50); color: var(--cat-electronics); }
.cat-icon-fashion     { background: #FDF2F8; color: var(--cat-fashion); }
.cat-icon-furniture   { background: #FFF7ED; color: var(--cat-furniture); }
.cat-icon-vehicles    { background: #F5F3FF; color: var(--cat-vehicles); }
.cat-icon-books       { background: #ECFEFF; color: var(--cat-books); }
.cat-icon-other       { background: var(--slate-100); color: var(--cat-other); }

/* ------------------------------------------------------------
   10. Product cards
   ------------------------------------------------------------ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
  transition: var(--t);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--sh); border-color: var(--border-strong); }

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--slate-100);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-media .badge { position: absolute; top: 12px; left: 12px; }
.product-media .fav {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--sh-sm);
}

.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-title { font-family: var(--font-body); font-weight: 700; font-size: 1.04rem; margin: 0; line-height: 1.35; }
.product-title a { color: var(--slate-900); }
.product-title a:hover { color: var(--brand-600); }
.product-meta { display: flex; align-items: center; gap: 6px; color: var(--slate-500); font-size: .85rem; }
.product-meta svg { width: 15px; height: 15px; flex: none; }
.product-price {
  margin-top: auto;
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem;
  color: var(--accent-600);
}

/* badges & chips */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--r-full);
  font-family: var(--font-display); font-weight: 600; font-size: .72rem;
  letter-spacing: .03em; text-transform: uppercase;
}
.badge-new  { background: var(--accent-100); color: var(--accent-700); }
.badge-used { background: var(--warning-100); color: var(--warning-600); }
.badge-featured { background: linear-gradient(135deg, var(--brand-600), var(--accent-600)); color: #fff; }

.chip {
  display: inline-flex; align-items: center;
  padding: 4px 11px; border-radius: var(--r-full);
  font-family: var(--font-display); font-weight: 600; font-size: .75rem;
}
.chip-electronics { background: var(--brand-50); color: var(--cat-electronics); }
.chip-fashion     { background: #FDF2F8; color: var(--cat-fashion); }
.chip-furniture   { background: #FFF7ED; color: var(--cat-furniture); }
.chip-vehicles    { background: #F5F3FF; color: var(--cat-vehicles); }
.chip-books       { background: #ECFEFF; color: var(--cat-books); }
.chip-other       { background: var(--slate-100); color: var(--cat-other); }

/* ------------------------------------------------------------
   11. Trust strip
   ------------------------------------------------------------ */
.trust-strip { border-block: 1px solid var(--border); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 40px; }
.trust-item { display: flex; gap: 16px; align-items: flex-start; }
.trust-icon {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--brand-50); color: var(--brand-600);
}
.trust-icon svg { width: 26px; height: 26px; }
.trust-item h3 { font-size: 1rem; margin-bottom: 3px; }
.trust-item p { color: var(--slate-500); font-size: .9rem; margin: 0; }

/* CTA banner */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--brand-700), var(--brand-600) 55%, var(--accent-600));
  color: #fff;
  padding: 56px 48px;
  text-align: center;
}
.cta-banner::before, .cta-banner::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}
.cta-banner::before { width: 260px; height: 260px; top: -90px; left: -70px; }
.cta-banner::after { width: 320px; height: 320px; bottom: -140px; right: -90px; }
.cta-banner h2 { color: #fff; position: relative; }
.cta-banner p { color: rgba(255, 255, 255, .85); max-width: 560px; margin: 0 auto 24px; position: relative; }
.cta-banner .btn { background: #fff; color: var(--brand-700); box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .3); }
.cta-banner .btn:hover { color: var(--brand-700); transform: translateY(-2px); }

/* ------------------------------------------------------------
   12. Breadcrumbs
   ------------------------------------------------------------ */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--slate-400); padding-block: 22px; }
.breadcrumb a { color: var(--slate-500); }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb svg { width: 14px; height: 14px; color: var(--slate-300); }
.breadcrumb .current { color: var(--slate-700); font-weight: 600; }

/* ------------------------------------------------------------
   13. Product detail
   ------------------------------------------------------------ */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.detail-gallery {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky;
  top: 96px;
}
.detail-gallery .main-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--slate-100); }
.detail-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 12px; padding: 14px; }
.thumbs img { width: 74px; height: 60px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; transition: var(--t); }
.thumbs img:hover, .thumbs img.is-active { border-color: var(--brand-600); }

.detail-info-card, .seller-card, .desc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
}
.detail-price { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; color: var(--accent-600); line-height: 1.1; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.meta-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--r-sm);
  background: var(--slate-50); border: 1px solid var(--border);
  font-size: .88rem; color: var(--slate-600);
}
.meta-item svg { width: 17px; height: 17px; color: var(--brand-600); }
.detail-actions { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }

.seller-card { display: flex; gap: 16px; align-items: flex-start; }
.seller-avatar {
  flex: none;
  width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
}
.seller-info { flex: 1; }
.seller-info h3 { font-size: 1.02rem; margin: 0 0 2px; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-600); font-size: .8rem; font-weight: 600; }
.verified svg { width: 15px; height: 15px; }
.seller-stats { display: flex; gap: 18px; margin-top: 10px; font-size: .85rem; color: var(--slate-500); }
.seller-stats strong { display: block; color: var(--slate-900); font-family: var(--font-display); font-size: 1rem; }

.desc-card h2 { font-size: 1.3rem; margin-bottom: 14px; }
.desc-card p { color: var(--slate-600); }

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 18px; }
.spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--slate-50); border-radius: var(--r-sm); border: 1px solid var(--border); font-size: .92rem; }
.spec-row dt { color: var(--slate-500); }
.spec-row dd { margin: 0; font-weight: 600; color: var(--slate-800); text-align: right; }

/* ------------------------------------------------------------
   14. Auth pages
   ------------------------------------------------------------ */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--gutter) 64px;
  min-height: calc(100vh - 72px);
}
.auth-card {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  width: 100%;
  max-width: 960px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.auth-panel {
  position: relative;
  overflow: hidden;
  padding: 48px 42px;
  background: linear-gradient(160deg, var(--brand-700), var(--brand-600) 48%, var(--accent-600));
  color: #fff;
  display: flex;
  flex-direction: column;
}
.auth-panel::before, .auth-panel::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .13);
}
.auth-panel::before { width: 260px; height: 260px; top: -80px; right: -60px; }
.auth-panel::after { width: 300px; height: 300px; bottom: -120px; left: -90px; }
.auth-panel > * { position: relative; }
.auth-panel .brand { color: #fff; margin-bottom: 34px; }
.auth-panel h2 { color: #fff; font-size: 1.65rem; margin-bottom: 12px; }
.auth-panel > p { color: rgba(255, 255, 255, .85); font-size: .98rem; margin-bottom: 26px; }
.auth-feature { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: .94rem; color: rgba(255, 255, 255, .92); }
.auth-feature svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: #fff; }
.auth-quote {
  margin-top: auto;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .1);
  font-size: .9rem;
  font-style: italic;
  color: rgba(255, 255, 255, .95);
}

.auth-main { padding: 48px 46px; }
.auth-main .auth-head { margin-bottom: 26px; }
.auth-main .auth-head h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-main .auth-head p { color: var(--slate-500); margin: 0; }
.auth-alt { text-align: center; color: var(--slate-500); font-size: .94rem; margin: 22px 0 0; }
.auth-alt a { font-weight: 700; }

/* centered variant (forgot / otp / reset) */
.auth-card-center {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 44px 42px;
  text-align: center;
}
.auth-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 20px;
  background: var(--brand-50); color: var(--brand-600);
  margin-bottom: 20px;
}
.auth-icon svg { width: 30px; height: 30px; }
.auth-card-center .auth-head h1 { font-size: 1.55rem; }
.auth-card-center .auth-head p { color: var(--slate-500); font-size: .95rem; max-width: 340px; margin: 0 auto; }
.auth-card-center .field { text-align: left; }
.auth-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--slate-500); font-size: .92rem; font-weight: 600; }
.auth-back svg { width: 16px; height: 16px; }

/* OTP boxes */
.otp-row { display: flex; gap: 12px; justify-content: center; margin: 26px 0 6px; }
.otp-row .otp {
  width: 54px; height: 60px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: var(--t);
}
.otp-row .otp:focus { border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }

/* ------------------------------------------------------------
   15. Dashboards (my products / list rows)
   ------------------------------------------------------------ */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-block: 36px 8px;
}
.page-head h1 { margin-bottom: 4px; font-size: 1.9rem; }
.page-head p { color: var(--slate-500); margin: 0; }

.list-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.list-row {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  transition: var(--t);
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: var(--slate-50); }
.list-thumb {
  flex: none;
  width: 92px; height: 72px; border-radius: var(--r-sm);
  overflow: hidden; background: var(--slate-100);
}
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-info { flex: 1; min-width: 0; }
.list-info .list-title { font-weight: 700; font-size: 1rem; margin-bottom: 3px; }
.list-info .list-title a { color: var(--slate-900); }
.list-info .list-title a:hover { color: var(--brand-600); }
.list-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: var(--slate-500); }
.list-price { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--accent-600); white-space: nowrap; }
.list-actions { display: flex; gap: 8px; flex: none; }
.icon-btn-sm { width: 34px; height: 34px; }
.icon-btn-sm svg { width: 16px; height: 16px; }
.icon-btn-edit:hover { color: var(--brand-600); border-color: var(--brand-100); background: var(--brand-50); }
.icon-btn-del:hover { color: var(--danger-600); border-color: var(--danger-100); background: var(--danger-50); }

/* stats cards (dashboard top) */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 22px; display: flex; align-items: center; gap: 16px;
}
.stat-icon {
  flex: none; width: 50px; height: 50px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-600);
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.stat-label { color: var(--slate-500); font-size: .86rem; }

/* ------------------------------------------------------------
   16. Upload dropzone
   ------------------------------------------------------------ */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 10px;
  min-height: 260px;
  padding: 30px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--slate-50);
  cursor: pointer;
  transition: var(--t);
}
.dropzone:hover { border-color: var(--brand-600); background: var(--brand-50); }
.dropzone input[type="file"] { display: none; }
.dropzone .dz-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 20px;
  background: var(--surface); color: var(--brand-600);
  box-shadow: var(--sh-sm);
}
.dropzone .dz-icon svg { width: 28px; height: 28px; }
.dropzone .dz-title { font-family: var(--font-display); font-weight: 600; color: var(--slate-800); }
.dropzone .dz-hint { color: var(--slate-400); font-size: .85rem; margin: 0; }

/* ------------------------------------------------------------
   17. Empty state
   ------------------------------------------------------------ */
.empty-state {
  text-align: center;
  padding: 72px 24px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
}
.empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: 24px;
  background: var(--brand-50); color: var(--brand-600);
  margin-bottom: 20px;
}
.empty-icon svg { width: 34px; height: 34px; }
.empty-state h2 { font-size: 1.35rem; margin-bottom: 8px; }
.empty-state p { color: var(--slate-500); max-width: 400px; margin: 0 auto 22px; }

/* ------------------------------------------------------------
   17b. Marketplace search / filter / sort toolbar
   Maps directly to the API query params: ?search= &category= &condition= &sort=
   ------------------------------------------------------------ */
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px;
  box-shadow: var(--sh-sm);
  margin-bottom: 26px;
}
.filter-search { position: relative; flex: 1 1 200px; min-width: 180px; }
.filter-search .input { width: 100%; padding-left: 40px; }
.search-ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--slate-400); pointer-events: none;
}
.filter-select { flex: 0 1 180px; }
.filter-bar .btn { white-space: nowrap; }

@media (max-width: 700px) {
  .filter-search { flex: 1 1 100%; }
  .filter-select { flex: 1 1 calc(50% - 10px); }
  .filter-bar .btn { flex: 1 1 auto; }
}

/* ------------------------------------------------------------
   18. Utilities
   ------------------------------------------------------------ */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* page title bar shared by inner pages */
.page-banner {
  padding: 44px 0 12px;
  background:
    radial-gradient(700px 260px at 20% -20%, rgba(59, 130, 246, .14), transparent 60%),
    linear-gradient(180deg, #fff, transparent);
}

/* generic surface card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
}

/* ------------------------------------------------------------
   18b. Logged-in header & product form extras
   ------------------------------------------------------------ */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--slate-700);
  font-weight: 600;
  font-size: .9rem;
  transition: var(--t);
}
.user-chip:hover { border-color: var(--brand-600); color: var(--slate-900); box-shadow: var(--sh-sm); }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
}

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 26px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--sh-sm); }
.form-card h2 { font-size: 1.1rem; margin-bottom: 4px; }
.form-card .form-sub { color: var(--slate-500); font-size: .9rem; margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-actions { display: flex; justify-content: flex-end; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.dropzone.is-tall { min-height: 320px; }
.dropzone.has-image { padding: 8px; position: relative; }
.dropzone.has-image img {
  width: 100%; height: 100%; min-height: 280px;
  object-fit: cover; border-radius: calc(var(--r-lg) - 8px);
}
.dropzone.has-image .dz-overlay {
  position: absolute; inset: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(15, 23, 42, .42);
  color: #fff; font-weight: 600; font-size: .95rem;
  border-radius: calc(var(--r-lg) - 8px);
  opacity: 0; transition: var(--t);
}
.dropzone.has-image:hover .dz-overlay { opacity: 1; }

/* ------------------------------------------------------------
   20. Motion & polish (pure CSS, no JS)
   ------------------------------------------------------------ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -24px) scale(1.07); }
}
@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}
@keyframes shine { to { left: 135%; } }

/* hero ambient blobs */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(46px); z-index: 0;
}
.hero::before {
  width: 340px; height: 340px; top: -90px; right: 4%;
  background: rgba(59, 130, 246, .22);
  animation: blobFloat 12s ease-in-out infinite;
}
.hero::after {
  width: 280px; height: 280px; bottom: -80px; left: 6%;
  background: rgba(16, 185, 129, .18);
  animation: blobFloat 15s ease-in-out infinite reverse;
}
.hero-inner { position: relative; z-index: 1; }

/* floating hero art (desktop only) */
.hero-art {
  position: absolute; z-index: 1;
  top: 50%; right: max(1vw, 12px);
  transform: translateY(-50%);
  width: 340px; height: 340px;
  display: none;
}
@media (min-width: 1240px) { .hero-art { display: block; } }
.float-card, .float-chip {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  padding: 10px 13px;
  box-shadow: var(--sh);
  animation: floatY 6s ease-in-out infinite;
}
.float-card img { width: 46px; height: 40px; object-fit: cover; border-radius: 10px; }
.float-card strong { display: block; font-family: var(--font-display); font-size: .98rem; line-height: 1.1; color: var(--slate-900); }
.float-card span { font-size: .76rem; color: var(--slate-500); }
.float-chip {
  border-radius: 999px; padding: 9px 14px;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  color: var(--slate-800); white-space: nowrap;
}
.float-chip svg { width: 18px; height: 18px; color: var(--accent-600); }
.fc-1 { top: 6px; left: 6px; transform: rotate(-6deg); }
.fc-2 { bottom: 4px; right: 10px; transform: rotate(5deg); animation-delay: -3s; }
.fc-3 { top: 96px; right: -8px; animation-delay: -1.5s; }
.fc-4 { bottom: 118px; left: -12px; animation-delay: -4.5s; }

/* button shine sweep */
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}
.btn-primary:hover::after, .btn-accent:hover::after { opacity: 1; animation: shine .9s var(--ease); }

/* nav link animated underline */
.nav-link::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 5px; height: 2px;
  border-radius: 2px; background: var(--brand-600);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--t);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

/* category icon pop */
.cat-icon { transition: transform var(--t); }
.cat-card:hover .cat-icon { transform: scale(1.1) rotate(-4deg); }

/* product media gradient depth on hover */
.product-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, .22));
  opacity: 0; transition: opacity var(--t);
  pointer-events: none;
}
.product-card:hover .product-media::after { opacity: 1; }

/* trust icon lift */
.trust-icon { transition: transform var(--t); }
.trust-item:hover .trust-icon { transform: translateY(-3px) scale(1.06); }

/* entrance animations (reduced-motion handled globally) */
.hero-inner > *,
.section-head,
.page-head { animation: fadeUp .7s var(--ease) backwards; }
.hero-inner > *:nth-child(2) { animation-delay: .08s; }
.hero-inner > *:nth-child(3) { animation-delay: .16s; }
.hero-inner > *:nth-child(4) { animation-delay: .24s; }
.hero-inner > *:nth-child(5) { animation-delay: .32s; }
.hero-inner > *:nth-child(6) { animation-delay: .40s; }

.cat-card { animation: fadeUp .6s var(--ease) backwards; }
.cat-grid .cat-card:nth-child(1) { animation-delay: .04s; }
.cat-grid .cat-card:nth-child(2) { animation-delay: .10s; }
.cat-grid .cat-card:nth-child(3) { animation-delay: .16s; }
.cat-grid .cat-card:nth-child(4) { animation-delay: .22s; }
.cat-grid .cat-card:nth-child(5) { animation-delay: .28s; }
.cat-grid .cat-card:nth-child(6) { animation-delay: .34s; }

.product-card { animation: fadeUp .6s var(--ease) backwards; }
.products-grid .product-card:nth-child(1) { animation-delay: .04s; }
.products-grid .product-card:nth-child(2) { animation-delay: .09s; }
.products-grid .product-card:nth-child(3) { animation-delay: .14s; }
.products-grid .product-card:nth-child(4) { animation-delay: .19s; }
.products-grid .product-card:nth-child(5) { animation-delay: .24s; }
.products-grid .product-card:nth-child(6) { animation-delay: .29s; }
.products-grid .product-card:nth-child(7) { animation-delay: .34s; }
.products-grid .product-card:nth-child(8) { animation-delay: .39s; }

.trust-item { animation: fadeUp .55s var(--ease) backwards; }
.trust-grid .trust-item:nth-child(1) { animation-delay: .05s; }
.trust-grid .trust-item:nth-child(2) { animation-delay: .12s; }
.trust-grid .trust-item:nth-child(3) { animation-delay: .19s; }
.trust-grid .trust-item:nth-child(4) { animation-delay: .26s; }

.stat-card { animation: fadeUp .55s var(--ease) backwards; }
.stat-grid .stat-card:nth-child(1) { animation-delay: .05s; }
.stat-grid .stat-card:nth-child(2) { animation-delay: .11s; }
.stat-grid .stat-card:nth-child(3) { animation-delay: .17s; }
.stat-grid .stat-card:nth-child(4) { animation-delay: .23s; }

.list-row { animation: fadeUp .5s var(--ease) backwards; }
.list-card .list-row:nth-child(1) { animation-delay: .06s; }
.list-card .list-row:nth-child(2) { animation-delay: .12s; }
.list-card .list-row:nth-child(3) { animation-delay: .18s; }
.list-card .list-row:nth-child(4) { animation-delay: .24s; }

.auth-card, .auth-card-center { animation: fadeUp .65s var(--ease) backwards; }
.detail-gallery, .detail-info-card, .seller-card, .desc-card { animation: fadeUp .6s var(--ease) backwards; }

/* ------------------------------------------------------------
   19. Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .form-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-gallery { position: static; }
}

@media (max-width: 820px) {
  .nav-menu {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh);
    padding: 14px var(--gutter) 20px;
    display: none;
  }
  .nav-toggle:checked ~ .nav-menu { display: flex; }
  .nav-burger { display: inline-flex; }
  .nav-link { padding: 12px 14px; }
  .nav-cta { margin: 10px 0 0; gap: 10px; }
  .nav-cta .btn { flex: 1; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-main { padding: 36px 28px; }
  .spec-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .section { padding-block: 52px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trust-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 56px 0 52px; }
  .hero-search { flex-wrap: wrap; padding: 10px; }
  .hero-search input { width: 100%; }
  .hero-search .btn { width: 100%; }
  .hero-stats { gap: 22px; }
  .detail-actions { grid-template-columns: 1fr; }
  .list-row { flex-wrap: wrap; gap: 12px; }
  .list-actions { margin-left: auto; }
  .form-foot { flex-direction: column; }
  .form-foot .btn { width: 100%; }
  .otp-row { gap: 8px; }
  .otp-row .otp { width: 44px; height: 52px; }
  .cta-banner { padding: 40px 24px; }
}

/* ===== extra responsive polish (small phones & wide screens) ===== */
@media (max-width: 1240px) {
  .hero-art { display: none; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-body { padding: 12px 12px 14px; }
  .product-title { font-size: .92rem; }
  .product-price { font-size: 1.02rem; }
  .product-meta { font-size: .78rem; }
  .hero-stats { gap: 14px; }
  .hero-stats strong { font-size: 1.3rem; }
  .stat-card { padding: 16px; gap: 12px; }
  .stat-icon { width: 42px; height: 42px; border-radius: 12px; }
  .stat-num { font-size: 1.2rem; }
  .auth-page { padding: 24px 14px 48px; }
  .auth-card-center { padding: 30px 22px; }
  .auth-main { padding: 30px 22px; }
  .list-row { padding: 14px; gap: 12px; }
  .list-thumb { width: 72px; height: 58px; }
  .list-info .list-title { font-size: .9rem; }
  .page-head h1 { font-size: 1.55rem; }
  .breadcrumb { font-size: .82rem; }
  .form-card { padding: 22px 18px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .news-form { flex-direction: column; }
  .news-form .btn { width: 100%; }
}
@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 12px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
