:root {
  --ink: #e8edf7;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --line: #22304d;
  --line-strong: #2f4066;
  --surface: #101827;
  --surface-2: #0d1422;
  --bg: #0a0f1c;
  --brand: #4338ca;
  --brand-dark: #3730a3;
  --brand-deep: #1e1b4b;
  --brand-soft: rgba(67, 56, 202, .18);
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, .14);
  --danger: #fca5a5;
  --danger-soft: rgba(185, 28, 28, .18);
  --success: #6ee7b7;
  --success-soft: rgba(4, 120, 87, .18);
  --warning: #fbbf24;
  --warning-soft: rgba(180, 83, 9, .2);
  --info: #93c5fd;
  --info-soft: rgba(30, 64, 175, .22);
  --shadow-sm: 0 4px 18px -10px rgba(0, 0, 0, .5);
  --shadow-md: 0 20px 45px -24px rgba(0, 0, 0, .65);
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .75);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background:
    radial-gradient(1000px 600px at 85% -100px, rgba(67, 56, 202, .24), transparent 60%),
    radial-gradient(700px 420px at 5% 5%, rgba(249, 115, 22, .06), transparent 60%),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 700;
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
}

h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem);
}

h3 {
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 22px;
}

.page {
  min-height: 55vh;
  padding: 36px 0 clamp(48px, 2rem + 4vw, 88px);
}

.muted {
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 40px);
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 1.28rem;
  color: var(--ink);
  flex: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-size: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), var(--shadow-sm);
}

.brand-text strong {
  color: var(--brand);
}

.brand-light,
.brand-light:hover {
  color: #fff;
}

.brand-light .brand-mark {
  background: rgba(255, 255, 255, .14);
}

.brand-light .brand-text strong {
  color: #8ee4d8;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: clamp(2px, .4vw, 8px);
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.main-nav a {
  padding: 8px 11px;
  border-radius: 9px;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.header-search {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  background: #f2f4f0;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 6px 0 14px;
  transition: border-color .15s, background .15s;
}

.header-search:focus-within {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .1);
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 0;
  font: inherit;
  color: var(--ink);
  outline: none;
}

.header-search button {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.header-search button:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.lang-switch:hover {
  border-color: var(--brand);
  color: var(--brand);
}

@media (max-width: 1080px) {
  .lang-switch {
    height: 40px;
    min-width: 44px;
  }
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 190px;
}

.user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  flex: none;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px 9px 12px;
  border-radius: 12px;
  background: var(--brand-deep);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  margin-left: 4px;
}

.cart-button:hover {
  background: var(--brand);
  color: #fff;
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .18);
  font-size: .78rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  padding: 11px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.inline-form {
  display: inline;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 650;
  cursor: pointer;
  text-align: center;
  transition: background .15s, transform .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
}

.btn-danger {
  background: var(--danger-soft);
  border-color: #fecdca;
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--brand-deep);
}

.btn-light:hover {
  background: var(--accent-soft);
  color: var(--brand-deep);
}

.btn-small {
  padding: 9px 16px;
  font-size: .85rem;
  border-radius: 8px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
}

.btn-icon:hover {
  background: var(--danger-soft);
  border-color: #fecdca;
  color: var(--danger);
}

.link-arrow {
  font-size: .9rem;
  font-weight: 650;
  color: var(--brand);
  white-space: nowrap;
}

.subnav {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 26px;
  overflow-x: auto;
}

.subnav a {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.subnav a:hover {
  background: #f3f5f1;
}

.subnav a.is-active {
  background: var(--brand-deep);
  color: #fff;
}

/* ---------- Flash & alerts ---------- */
.flash-wrap {
  margin-top: 18px;
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-size: .92rem;
  font-weight: 550;
  box-shadow: var(--shadow-sm);
  transition: opacity .3s, transform .3s;
}

.flash-success {
  background: var(--success-soft);
  border-color: #abefc6;
  color: #085d3a;
}

.flash-error {
  background: var(--danger-soft);
  border-color: #fecdca;
  color: #912018;
}

.flash-warning {
  background: var(--warning-soft);
  border-color: #fedf89;
  color: #93370d;
}

.flash-info {
  background: var(--info-soft);
  border-color: #b2ddff;
  color: #194185;
}

.flash-close {
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  color: inherit;
  opacity: .6;
  cursor: pointer;
  padding: 2px 4px;
}

.flash-close:hover {
  opacity: 1;
}

.flash-out {
  opacity: 0;
  transform: translateY(-6px);
}

.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: .92rem;
  font-weight: 550;
  margin-bottom: 20px;
}

.alert-error {
  background: var(--danger-soft);
  border-color: #fecdca;
  color: #912018;
}

.alert-warning {
  background: var(--warning-soft);
  border-color: #fedf89;
  color: #93370d;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 2vw, 40px);
  padding: clamp(32px, 4vw, 64px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(249, 115, 22, .22), transparent 55%),
    radial-gradient(500px 300px at 0% 100%, rgba(45, 212, 191, .18), transparent 60%),
    linear-gradient(135deg, #0a3431, #0d524c 55%, #0f766e);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .35;
  pointer-events: none;
  mask-image: linear-gradient(to left, #000, transparent 65%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

.hero .eyebrow {
  color: #8ee4d8;
}

.eyebrow-light {
  color: #8ee4d8;
}

.hero h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  letter-spacing: -.035em;
}

.hero h1 em {
  font-style: normal;
  color: #ffc59b;
}

.hero-lead {
  margin-top: 18px;
  max-width: 52ch;
  color: rgba(255, 255, 255, .78);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero .btn {
  background: #fff;
  color: var(--brand-deep);
}

.hero .btn:hover {
  background: var(--accent-soft);
  color: var(--brand-deep);
}

.hero .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .42);
  color: #fff;
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
  color: #fff;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 30px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .75);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-points li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #8ee4d8;
  font-size: .68rem;
  font-weight: 700;
}

.hero-panel {
  align-self: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .16);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin: 22px 0;
}

.hero-stats strong {
  display: block;
  font-size: 1.65rem;
  letter-spacing: -.03em;
  color: #fff;
}

.hero-stats span {
  font-size: .78rem;
  color: rgba(255, 255, 255, .6);
}

.panel-note {
  font-size: .83rem;
  color: rgba(255, 255, 255, .7);
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 16px;
}

.panel-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  font-size: .76rem;
  color: #8ee4d8;
  font-weight: 650;
}

/* ---------- Sections ---------- */
.section {
  margin-top: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem);
}

.section-head h2 {
  margin-top: 2px;
}

.section-head-tight {
  margin-top: 36px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: #a9d6cf;
  box-shadow: var(--shadow-md);
}

.category-emoji {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  font-size: 1.3rem;
  flex: none;
}

.category-name {
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.3;
}

.category-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.category-count {
  color: var(--muted);
  font-size: .72rem;
}

.category-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: .95rem;
}

.category-card:hover .category-arrow {
  color: var(--brand);
}

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.product-grid-wide {
  grid-template-columns: repeat(6, 1fr);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #b9dcd6;
  box-shadow: var(--shadow-md);
}

.product-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.736;
  background:
    radial-gradient(circle at 30% 20%, #fff, transparent 45%),
    linear-gradient(150deg, #e9f7f3, #f6f1e4);
  font-size: 3rem;
  line-height: 1;
}

.product-card:nth-child(4n + 2) .product-thumb {
  background: linear-gradient(150deg, #fdf2e7, #f2f7ea);
}

.product-card:nth-child(4n + 3) .product-thumb {
  background: linear-gradient(150deg, #eef4ff, #eefaf6);
}

.product-card:nth-child(4n + 4) .product-thumb {
  background: linear-gradient(150deg, #f7efff, #fdf5ec);
}

.product-emoji {
  filter: drop-shadow(0 12px 18px rgba(16, 32, 29, .18));
  transition: transform .2s;
}

.product-card:hover .product-emoji {
  transform: scale(1.06) rotate(-2deg);
}

.product-format {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px);
  color: var(--ink-soft);
  font-size: .6rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 999px;
  letter-spacing: .06em;
  border: 1px solid rgba(16, 32, 29, .08);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 14px;
}

.product-vendor {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand);
}

.product-name {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-name a:hover {
  color: var(--brand);
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.price {
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
}

.price-xl {
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem);
}

.license-tag {
  font-size: .62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  white-space: nowrap;
}

/* ---------- Vendors ---------- */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.vendor-grid-wide {
  grid-template-columns: repeat(3, 1fr);
}

.vendor-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}

.vendor-card:hover {
  transform: translateY(-3px);
  border-color: #b9dcd6;
  box-shadow: var(--shadow-md);
}

.vendor-emoji {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--brand-soft), #fef3c7);
  font-size: 1.7rem;
  flex: none;
}

.vendor-card-body {
  min-width: 0;
}

.vendor-card-body h3 {
  font-size: 1.15rem;
}

.vendor-meta,
.vendor-card-body > p {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 3px;
}

.vendor-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px !important;
  font-size: .84rem !important;
  color: var(--ink-soft) !important;
}

.vendor-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 1.05rem;
  align-self: center;
}

.vendor-card:hover .vendor-arrow {
  color: var(--brand);
}

.vendor-card-large {
  align-items: center;
}

/* ---------- CTA ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: clamp(44px, 6vw, 76px);
  padding: clamp(26px, 4vw, 46px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 260px at 90% 10%, rgba(249, 115, 22, .28), transparent 60%),
    linear-gradient(120deg, #0a3431, #0f5f58);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  margin-bottom: 8px;
}

.cta-band p {
  max-width: 60ch;
  color: rgba(255, 255, 255, .72);
  font-size: .95rem;
}

/* ---------- Page structure ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.page-head-tight {
  margin-bottom: 20px;
}

.page-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: .94rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font-size: .82rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--ink-soft);
  font-weight: 550;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: .83rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .15s, border-color .15s, color .15s;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.chip.is-active {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}

.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-search {
  flex: 1;
  min-width: 220px;
}

.filter-sort {
  min-width: 190px;
}

/* ---------- Forms ---------- */
input,
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .1);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.form-card {
  padding: clamp(24px, 3vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.form-card h2 {
  font-size: 1.15rem;
  margin: 26px 0 16px;
}

.form-card h2:first-child {
  margin-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field-full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  font-weight: 400;
}

.field span {
  color: var(--ink-soft);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-hint {
  margin-top: 14px;
  font-size: .78rem;
  color: var(--muted);
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- Product detail ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 54px);
  margin-top: 10px;
  align-items: stretch;
}

.product-gallery {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 25%, #fff, transparent 45%),
    linear-gradient(150deg, #e6f6f1, #f7f0e1);
  border: 1px solid var(--line);
  overflow: hidden;
}

.product-emoji-xl {
  font-size: clamp(6rem, 12vw, 10rem);
  line-height: 1;
  filter: drop-shadow(0 26px 34px rgba(16, 32, 29, .2));
}

.gallery-badge {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(6px);
  font-size: .76rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.product-gallery:not(.has-images) {
  align-self: start;
}

.product-gallery.has-images {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}

.product-gallery.has-images .gallery-badge {
  top: 14px;
  left: 14px;
  bottom: auto;
}

.gallery-main {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 660px;
  overflow: hidden;
  border-radius: 0;
  background: none;
}

.gallery-main-backdrop {
  position: absolute;
  inset: -28px;
  width: calc(100% + 56px);
  height: calc(100% + 56px);
  object-fit: cover;
  filter: blur(28px) brightness(.42) saturate(1.1);
  pointer-events: none;
  z-index: 0;
}

.gallery-main-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.gallery-thumb {
  width: 74px;
  height: 104px;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: none;
  opacity: .8;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.image-manager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.image-manage-item {
  width: 110px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: .72rem;
  color: var(--ink-soft);
}

.image-manage-item img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  border-radius: 7px;
}

.image-manage-item span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.image-manage-item input[type="checkbox"] {
  width: auto;
  accent-color: var(--danger);
}

.image-uploader {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.image-gallery-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-gallery-editor:empty {
  display: none;
}

.image-tile {
  position: relative;
  width: 128px;
  height: 90px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.image-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-tile.is-main {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.image-tile-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .68);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.image-tile-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .68);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.image-tile-remove:hover {
  background: var(--danger);
}

.image-upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.file-button {
  cursor: pointer;
}

.upload-status {
  font-size: .78rem;
  color: var(--muted);
}

.upload-status.is-error {
  color: var(--danger);
}

.upload-status.is-busy {
  color: var(--brand);
}

.variant-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.variant-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 92px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
}

.variant-editor-row input {
  width: 100%;
}

.variant-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .variant-editor-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px;
  }

  .variant-editor-row input[name="variant_label"] {
    grid-column: 1 / -1;
  }
}

.product-info h1 {
  margin: 6px 0 14px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.product-short-description {
  margin: 4px 0 10px;
  max-width: 62ch;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.6;
}

.product-description {
  color: var(--ink-soft);
  font-size: .96rem;
  max-width: 62ch;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.product-details-section {
  margin-top: 32px;
}

.product-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.product-tab {
  padding: 12px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .94rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.product-tab:hover {
  color: var(--ink);
}

.product-tab.is-active {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.product-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: .72rem;
}

.js .product-tab-panel:not(.is-active) {
  display: none;
}

.product-long-description {
  max-width: 78ch;
  color: var(--ink-soft);
  font-size: .96rem;
  line-height: 1.75;
  white-space: pre-line;
}

.reviews-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.reviews-panel-head h3 {
  font-size: 1.2rem;
}

.buy-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.variant-picker {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.variant-title {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.variant-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.variant-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.variant-option:hover {
  border-color: var(--brand);
}

.variant-option:has(input:checked) {
  border-color: var(--brand);
  background: rgba(67, 56, 202, .16);
}

.variant-option input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--brand);
  flex: none;
}

.variant-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .85rem;
}

.variant-body small {
  font-size: .72rem;
  color: var(--muted);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 6px 0 4px;
}

.spec-grid > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.spec-grid span {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-grid strong {
  font-size: .92rem;
}

.digital-pill {
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  white-space: nowrap;
}

.buy-form .btn {
  flex: 1;
  min-width: 200px;
}

.buy-note {
  margin: -6px 0 20px;
  font-size: .78rem;
  color: var(--muted);
}

.favorite-row {
  margin: 0 0 20px;
}

.favorite-btn.is-active {
  color: #fda4af;
  border-color: rgba(244, 63, 94, .45);
  background: rgba(244, 63, 94, .14);
}

.rating-summary {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.rating-summary strong {
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
}

.rating-summary span {
  color: var(--muted);
  font-size: .85rem;
}

.rating-summary small {
  margin-left: 6px;
  color: var(--muted);
  font-size: .8rem;
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.review-head time {
  margin-left: auto;
  color: var(--muted);
  font-size: .78rem;
}

.review-stars {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: .95rem;
}

.review-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .92rem;
}

.review-body {
  padding: 16px 20px;
}

.review-form {
  margin-top: 24px;
  max-width: 760px;
}

.review-form h3 {
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.notice {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin: 14px 0;
}

.notice-warning {
  background: var(--warning-soft);
  border: 1px solid #fedf89;
  color: #93370d;
}

.assurance-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 22px;
}

.assurance-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .84rem;
}

.assurance-list strong {
  color: var(--ink);
}

.assurance-list span {
  color: var(--muted);
  text-align: right;
}

.seller-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  border: 1px solid #cdeae4;
}

.seller-card:hover {
  border-color: var(--brand);
  color: inherit;
}

.seller-emoji {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  font-size: 1.5rem;
  flex: none;
}

.seller-info {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.seller-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}

.seller-meta {
  font-size: .78rem;
  color: var(--muted);
}

.seller-arrow {
  margin-left: auto;
  color: var(--brand);
}

/* ---------- Store page ---------- */
.store-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 200px at 90% 0%, rgba(249, 115, 22, .14), transparent 60%),
    linear-gradient(130deg, #0a3431, #0f5f58);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.store-avatar {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 2.6rem;
  flex: none;
}

.store-hero-copy {
  min-width: 0;
}

.store-hero .eyebrow {
  color: #8ee4d8;
}

.store-hero h1 {
  color: #fff;
}

.store-hero p {
  margin-top: 8px;
  max-width: 62ch;
  color: rgba(255, 255, 255, .74);
  font-size: .92rem;
}

.store-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .75);
}

.store-hero > .btn {
  margin-left: auto;
  flex: none;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

.store-hero > .btn:hover {
  background: #fff;
  color: var(--brand-deep);
}

/* ---------- Deschide un magazin ---------- */
.sell-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
  padding: clamp(28px, 4vw, 54px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 260px at 95% 0%, rgba(249, 115, 22, .24), transparent 55%),
    linear-gradient(135deg, #0a3431, #0f5f58);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.sell-hero .eyebrow {
  color: #8ee4d8;
}

.sell-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.3rem);
}

.sell-hero p {
  margin-top: 14px;
  max-width: 56ch;
  color: rgba(255, 255, 255, .76);
}

.sell-hero .btn {
  background: #fff;
  color: var(--brand-deep);
}

.sell-hero .btn:hover {
  background: var(--accent-soft);
  color: var(--brand-deep);
}

.sell-hero .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}

.sell-hero .btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.sell-note {
  margin-top: 18px !important;
  font-size: .8rem;
  color: rgba(255, 255, 255, .58) !important;
}

.sell-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
}

.sell-panel > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sell-panel strong {
  font-size: 1.55rem;
  letter-spacing: -.03em;
}

.sell-panel span {
  font-size: .75rem;
  color: rgba(255, 255, 255, .62);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step-card p {
  font-size: .85rem;
  color: var(--muted);
}

.step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
}

.sell-existing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.sell-existing h2 {
  margin-top: 4px;
}

.sell-separate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.sell-separate h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.sell-separate p {
  font-size: .88rem;
  color: var(--muted);
  max-width: 62ch;
}

@media (max-width: 720px) {
  .sell-separate {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1080px) {
  .sell-hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .sell-panel {
    gap: 14px;
  }

  .sell-existing {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Cart ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  align-items: start;
}

.cart-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cart-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  background: #fbfcf9;
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
}

.cart-group-head a {
  font-weight: 700;
  color: var(--brand-dark);
}

.cart-group-head span {
  color: var(--muted);
  font-weight: 600;
}

.cart-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
}

.cart-line + .cart-line {
  border-top: 1px solid var(--line);
}

.cart-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 13px;
  background: linear-gradient(150deg, #edf7f4, #fbf3e7);
  font-size: 1.7rem;
}

.cart-line-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cart-line-info a {
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.35;
}

.cart-line-info span {
  font-size: .78rem;
  color: var(--muted);
}

.cart-line-total {
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  min-width: 84px;
  text-align: right;
}

.cart-group-foot {
  padding: 11px 20px;
  background: #fbfcf9;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted);
  text-align: right;
}

.cart-group-foot strong {
  color: var(--success);
}

.summary-card {
  position: sticky;
  top: 96px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.summary-card h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 20px;
}

.summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .9rem;
  color: var(--ink-soft);
}

.summary-list dt,
.summary-list dd {
  margin: 0;
}

.summary-total {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  font-size: 1.05rem !important;
  font-weight: 750;
  color: var(--ink) !important;
}

.summary-note {
  margin-top: 14px;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
}

.summary-group {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.summary-group-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .82rem;
  color: var(--ink-soft);
  padding: 3px 0;
}

.summary-line-name small {
  color: var(--muted);
}

.summary-line-muted {
  color: var(--muted);
  font-size: .78rem;
}

/* ---------- Checkout ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.checkout-form {
  display: flex;
  flex-direction: column;
}

.payment-options {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.payment-option:hover {
  border-color: var(--brand);
}

.payment-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.payment-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand);
  flex: none;
}

.payment-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .9rem;
}

.payment-body small {
  color: var(--muted);
  font-size: .78rem;
}

/* ---------- Auth ---------- */
.auth-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
  max-width: 980px;
  margin: 10px auto 0;
}

.auth-layout-wide {
  max-width: 1080px;
  grid-template-columns: 1fr 1.25fr;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 260px at 90% 0%, rgba(249, 115, 22, .22), transparent 55%),
    linear-gradient(135deg, #0a3431, #0f5f58);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.auth-aside h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  margin-bottom: 14px;
}

.auth-aside > p {
  color: rgba(255, 255, 255, .72);
  font-size: .93rem;
}

.auth-points {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  font-size: .86rem;
  color: rgba(255, 255, 255, .82);
}

.auth-points li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.auth-points li::before {
  content: "✓";
  color: #8ee4d8;
  font-weight: 700;
}

.auth-card {
  align-self: center;
  padding: clamp(24px, 3vw, 38px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.auth-card-wide {
  align-self: stretch;
}

.auth-card h1 {
  font-size: clamp(1.5rem, 1.2rem + .8vw, 1.9rem);
}

.auth-sub {
  margin: 6px 0 22px;
  color: var(--muted);
  font-size: .9rem;
}

.auth-alt {
  margin-top: 18px;
  font-size: .86rem;
  color: var(--muted);
  text-align: center;
}

.auth-alt a {
  color: var(--brand);
  font-weight: 650;
}

.role-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 6px;
}

.role-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.role-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.role-option input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--brand);
  flex: none;
}

.role-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .88rem;
}

.role-body small {
  color: var(--muted);
  font-size: .76rem;
}

.vendor-fields {
  padding: 18px;
  border-radius: 14px;
  background: #fbfcf9;
  border: 1px dashed var(--line-strong);
}

.vendor-fields legend {
  padding: 0 8px;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
}

.vendor-fields[hidden] {
  display: none;
}

/* ---------- Orders ---------- */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 20px;
  background: #fbfcf9;
  border-bottom: 1px solid var(--line);
}

.order-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.order-code {
  font-size: .9rem;
  font-weight: 750;
  letter-spacing: -.01em;
}

.order-date {
  font-size: .78rem;
  color: var(--muted);
}

.order-vendor {
  font-size: .82rem;
  font-weight: 650;
  color: var(--brand-dark);
}

.order-vendor-email {
  font-size: .78rem;
  color: var(--muted);
  text-decoration: none;
}

.order-vendor-email:hover {
  color: var(--brand);
  text-decoration: underline;
}

.order-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.order-items {
  padding: 8px 20px;
}

.order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  padding: 12px 0;
  font-size: .88rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.order-item:last-child {
  border-bottom: 0;
}

.order-item-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.order-item-name {
  font-weight: 600;
}

.order-item-meta {
  font-size: .76rem;
  color: var(--muted);
}

.order-item-meta code {
  font-size: .74rem;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.order-item-simple {
  grid-template-columns: minmax(0, 1fr) auto;
}

.order-item-total {
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

.order-item-summary {
  color: var(--brand);
  font-size: .82rem;
}

.order-customer {
  padding: 18px 20px;
  background: #fbfcf9;
  border-left: 1px solid var(--line);
  font-size: .82rem;
  color: var(--ink-soft);
}

.order-customer h3 {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.order-customer p {
  margin-bottom: 3px;
}

.order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #fbfcf9;
}

.order-delivery {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: .8rem;
  color: var(--muted);
}

.order-delivery strong {
  color: var(--ink);
}

.order-totals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: .8rem;
  color: var(--muted);
}

.order-totals strong {
  font-size: 1rem;
  color: var(--ink);
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.status-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-form select {
  width: auto;
  min-width: 140px;
  padding: 8px 10px;
  font-size: .84rem;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.table-hint {
  display: none;
}

@media (max-width: 720px) {
  .table-hint {
    display: block;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: .78rem;
  }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 680px;
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fbfcf9;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tr:hover td {
  background: #fdfefc;
}

.table-product {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 200px;
}

.table-emoji {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(150deg, #edf7f4, #fbf3e7);
  font-size: 1.2rem;
  flex: none;
}

.table-product small,
.table-sub {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  font-weight: 400;
}

.cell-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  text-align: right;
  justify-content: flex-end;
}

.cell-actions form {
  display: inline-flex;
}

.data-table th.cell-actions {
  justify-content: flex-end;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-info {
  background: var(--info-soft);
  color: var(--info);
}

/* ---------- Dashboard ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stats-grid-wide {
  grid-template-columns: repeat(6, 1fr);
}

.stat-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-card > span {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin: 6px 0 2px;
  font-size: clamp(1.25rem, 1rem + .8vw, 1.7rem);
  letter-spacing: -.03em;
}

.stat-card small {
  font-size: .74rem;
  color: var(--muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

.dashboard-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel h2 {
  font-size: 1.05rem;
}

.panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-side {
  position: sticky;
  top: 96px;
}

.panel-side h2 {
  margin-bottom: 12px;
}

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 16px 0 0;
}

.mini-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .83rem;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.mini-list dt {
  color: var(--muted);
}

.mini-list dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.mini-list code {
  font-size: .76rem;
  color: var(--brand-dark);
  word-break: break-all;
}

.side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-orders {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.account-links {
  display: grid;
  gap: 10px;
}

.account-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: border-color .15s, background .15s;
}

.account-links a:hover {
  border-color: var(--brand);
  background: rgba(67, 56, 202, .12);
}

.account-links a strong {
  font-size: .93rem;
}

.account-links a span {
  font-size: .78rem;
  color: var(--muted);
  text-align: right;
}

.mini-order {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: .79rem;
  transition: border-color .15s, background .15s;
}

.mini-order:hover {
  border-color: var(--brand);
  background: #fbfefd;
}

.mini-order-code {
  font-weight: 700;
}

.mini-order-vendor {
  color: var(--muted);
  font-size: .74rem;
}

.mini-order-total {
  font-weight: 700;
  text-align: right;
}

.mini-order .badge {
  justify-self: end;
  font-size: .64rem;
}

.panel-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .84rem;
  color: var(--ink-soft);
}

.todo-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.todo-list span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: .76rem;
  font-weight: 700;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

/* ---------- Empty & error ---------- */
.empty-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(48px, 8vw, 90px) 24px;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.empty-emoji {
  font-size: 2.6rem;
  margin-bottom: 14px;
}

.empty-state h2,
.error-state h1 {
  font-size: clamp(1.3rem, 1.1rem + .7vw, 1.8rem);
  margin-bottom: 8px;
}

.empty-state p,
.error-state p {
  max-width: 52ch;
  color: var(--muted);
  font-size: .93rem;
}

.empty-state .btn,
.error-actions {
  margin-top: 22px;
}

.error-code {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 54px 0 26px;
  background:
    radial-gradient(700px 280px at 85% 0%, rgba(15, 118, 110, .22), transparent 60%),
    #0a2623;
  color: rgba(255, 255, 255, .7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-about p {
  margin-top: 14px;
  max-width: 36ch;
  font-size: .85rem;
  line-height: 1.6;
}

.footer-grid h4 {
  margin-bottom: 12px;
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

.footer-grid a {
  display: block;
  padding: 4px 0;
  font-size: .84rem;
  color: rgba(255, 255, 255, .72);
}

.footer-grid a:hover {
  color: #8ee4d8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .76rem;
  color: rgba(255, 255, 255, .45);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
    order: 2;
    margin-left: 0;
    width: 44px;
    height: 44px;
    padding: 12px;
  }

  .brand {
    order: 1;
    flex: 1 1 100%;
  }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 4px);
    left: 16px;
    right: 16px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
  }

  .site-header.nav-open .main-nav a {
    padding: 11px 13px;
  }

  .header-row {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px;
  }

  .header-search {
    order: 4;
    flex-basis: 100%;
  }

  .header-actions {
    order: 3;
    margin-left: auto;
  }

  .user-name {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid,
  .product-grid-wide {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-grid-wide {
    grid-template-columns: repeat(3, 1fr);
  }

  .vendor-grid-wide {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-body {
    grid-template-columns: 1fr;
  }

  .order-customer {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .cart-layout,
  .checkout-layout,
  .dashboard-grid,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .summary-card,
  .panel-side {
    position: static;
  }

  .product-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .product-gallery {
    min-height: 300px;
  }

  .product-gallery.has-images {
    height: auto;
    padding: 0;
  }

  .gallery-main {
    flex: none;
    height: 440px;
    min-height: 0;
  }

  .gallery-thumb {
    width: 64px;
    height: 90px;
  }

  .auth-layout,
  .auth-layout-wide {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .auth-aside {
    order: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-hero {
    flex-wrap: wrap;
  }

  .store-hero > .btn {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .container {
    width: 100%;
    padding-inline: 16px;
  }

  .page {
    padding-top: 24px;
  }

  .header-actions .btn {
    display: none;
  }

  .cart-button span:not(.cart-count) {
    display: none;
  }

  .hero {
    padding: 26px 22px;
    border-radius: 22px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid,
  .product-grid-wide {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-thumb {
    aspect-ratio: 1 / 1;
    font-size: 2.6rem;
  }

  .product-body {
    padding: 12px 12px 14px;
  }

  .product-name {
    font-size: .9rem;
  }

  .vendor-grid,
  .vendor-grid-wide {
    grid-template-columns: 1fr;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-line {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb info total"
      "thumb info remove";
    row-gap: 8px;
  }

  .cart-thumb {
    grid-area: thumb;
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .cart-line-info {
    grid-area: info;
  }

  .cart-line-total {
    grid-area: total;
  }

  .cart-line form:last-child {
    grid-area: remove;
    justify-self: end;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .role-picker {
    grid-template-columns: 1fr;
  }

  .order-head,
  .order-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-item {
    grid-template-columns: 1fr auto;
  }

  .order-item-main {
    grid-column: 1 / -1;
  }

  .order-item-simple {
    grid-template-columns: 1fr auto;
  }

  .stats-grid,
  .stats-grid-wide {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .store-avatar {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }

  .auth-card {
    padding: 22px;
  }

  .filter-bar {
    align-items: stretch;
  }

  .filter-sort {
    min-width: 0;
  }

  .filter-bar .btn {
    width: 100%;
  }
}

  @media (max-width: 460px) {
  .header-actions .user-chip {
    display: none;
  }

  .hero-stats {
    gap: 14px;
  }

  .hero-stats strong {
    font-size: 1.35rem;
  }

  .stats-grid,
  .stats-grid-wide {
    grid-template-columns: 1fr;
  }

  .product-name {
    min-height: 0;
  }
}

/* ==========================================================================
   Tema dark LogoDigital
   Fundal #0a0f1c, carduri #101827, indigo #4338ca, accent #f97316
   ========================================================================== */

/* --- Logo SITEGO --- */
.brand {
  gap: 10px;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.brand-hex {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 8px rgba(67, 56, 202, .45));
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}

.brand:hover .brand-hex {
  transform: rotate(90deg) scale(1.05);
}

.brand-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(124, 58, 237, .5) 76%, rgba(249, 115, 22, .65) 88%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  animation: sitego-orbit 7s linear infinite;
}

.brand-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px rgba(249, 115, 22, .5);
  animation: sitego-dot 5s linear infinite;
}

.brand-text {
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.035em;
  background-image: linear-gradient(100deg, var(--ink) 0%, #a5b4fc 30%, #c4b5fd 45%, var(--ink) 60%, var(--ink) 100%);
  background-size: 240% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: sitego-shimmer 6s ease-in-out infinite;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-text {
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
    background: none;
  }
}

.brand-text strong {
  color: inherit;
  -webkit-text-fill-color: inherit;
}

.brand-cursor {
  display: inline-block;
  width: 7px;
  height: .95em;
  margin-left: 3px;
  transform: translateY(.13em);
  border-radius: 1px;
  background: var(--accent);
  animation: sitego-cursor 1.15s steps(1, end) infinite;
}

.brand-light .brand-mark {
  background: none;
}

.brand-light .brand-text strong {
  color: inherit;
}

@keyframes sitego-orbit {
  to { transform: rotate(360deg); }
}

@keyframes sitego-dot {
  from { transform: rotate(0deg) translateX(19px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(19px) rotate(-360deg); }
}

@keyframes sitego-shimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0 0; }
}

@keyframes sitego-cursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* --- Bara si navigatie --- */
.site-header {
  background: rgba(10, 15, 28, .9);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  box-shadow: 0 14px 34px -24px rgba(0, 0, 0, .9);
}

.main-nav {
  color: var(--ink-soft);
}

.main-nav a:hover,
.main-nav a.is-active {
  background: rgba(67, 56, 202, .24);
  color: #c7d2fe;
}

.header-search {
  background: var(--surface-2);
  border-color: var(--line);
}

.header-search:focus-within {
  background: #0c1322;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(67, 56, 202, .18);
}

.header-search input {
  color: var(--ink);
}

.header-search input::placeholder {
  color: #64748b;
}

.header-search button:hover {
  background: rgba(67, 56, 202, .24);
  color: #c7d2fe;
}

.nav-toggle {
  background: var(--surface);
  border-color: var(--line);
}

.nav-toggle span {
  background: var(--ink);
}

.user-chip {
  color: var(--ink-soft);
}

.avatar {
  background: rgba(67, 56, 202, .28);
  color: #c7d2fe;
}

.cart-button {
  background: var(--brand);
}

.cart-button:hover {
  background: #4f46e5;
}

.site-header.nav-open .main-nav {
  background: var(--surface);
  border-color: var(--line);
}

/* --- Butoane si controale --- */
.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  background: rgba(67, 56, 202, .22);
  border-color: var(--brand);
  color: #c7d2fe;
}

.btn-danger {
  background: var(--danger-soft);
  border-color: rgba(248, 113, 113, .35);
  color: #fca5a5;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.btn-icon {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
}

.btn-icon:hover {
  background: var(--danger-soft);
  border-color: rgba(248, 113, 113, .4);
  color: #fca5a5;
}

.subnav {
  background: var(--surface);
  border-color: var(--line);
}

.subnav a:hover {
  background: var(--surface-2);
}

.subnav a.is-active {
  background: var(--brand);
}

.chip {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

.chip:hover {
  border-color: var(--brand);
  color: #c7d2fe;
}

.chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
}

.link-arrow {
  color: #a5b4fc;
}

.eyebrow {
  color: #a5b4fc;
}

/* --- Formulare --- */
input,
select,
textarea {
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(67, 56, 202, .18);
}

option {
  background: var(--surface);
  color: var(--ink);
}

/* --- Suprafete --- */
.category-card,
.product-card,
.vendor-card,
.panel,
.stat-card,
.form-card,
.cart-group,
.summary-card,
.order-card,
.auth-card,
.table-wrap,
.filter-bar,
.empty-state,
.error-state,
.step-card {
  background: var(--surface);
  border-color: var(--line);
}

.category-card:hover,
.vendor-card:hover,
.product-card:hover {
  border-color: #4338ca;
}

.data-table th {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
}

.data-table td {
  border-color: var(--line);
}

.data-table tr:hover td {
  background: #131c30;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.cart-group-head,
.cart-group-foot,
.order-head,
.order-foot,
.order-customer {
  background: var(--surface-2);
  border-color: var(--line);
}

.cart-line + .cart-line,
.order-item,
.summary-group,
.panel-divider,
.mini-list > div {
  border-color: var(--line);
}

.summary-total {
  border-color: var(--line);
}

.mini-order {
  border-color: var(--line);
}

.mini-order:hover {
  background: #131c30;
  border-color: var(--brand);
}

.order-totals strong,
.summary-total dd {
  color: var(--accent);
}

/* --- Produse --- */
.product-thumb {
  background:
    radial-gradient(circle at 30% 20%, rgba(124, 58, 237, .18), transparent 45%),
    linear-gradient(150deg, #141c31, #1b2338);
}

.product-card:nth-child(4n + 2) .product-thumb {
  background: linear-gradient(150deg, #1a1b33, #221c2e);
}

.product-card:nth-child(4n + 3) .product-thumb {
  background: linear-gradient(150deg, #101d31, #152437);
}

.product-card:nth-child(4n + 4) .product-thumb {
  background: linear-gradient(150deg, #1d1830, #241b26);
}

.product-format {
  background: rgba(10, 15, 28, .72);
  color: var(--ink-soft);
  border-color: var(--line);
}

.product-flag {
  background: var(--brand-deep);
  color: #e0e7ff;
}

.price,
.price-xl {
  color: var(--accent);
}

.license-tag {
  background: rgba(67, 56, 202, .24);
  color: #c7d2fe;
}

.category-emoji,
.vendor-emoji,
.table-emoji,
.cart-thumb,
.seller-emoji {
  background: linear-gradient(150deg, rgba(67, 56, 202, .3), rgba(249, 115, 22, .14));
}

.product-gallery {
  background:
    radial-gradient(circle at 30% 25%, rgba(67, 56, 202, .28), transparent 45%),
    linear-gradient(150deg, #121a2c, #1b2338);
  border-color: var(--line);
}

.gallery-badge {
  background: rgba(10, 15, 28, .78);
  color: var(--ink-soft);
}

.digital-pill {
  background: rgba(4, 120, 87, .18);
  color: #6ee7b7;
}

.seller-card {
  background: rgba(67, 56, 202, .14);
  border-color: #2f3f66;
}

.seller-card:hover {
  border-color: var(--brand);
}

.seller-label {
  color: #a5b4fc;
}

.assurance-list li,
.spec-grid > div {
  background: var(--surface);
  border-color: var(--line);
}

/* --- Cos, comenzi, panouri --- */
.payment-option,
.role-option {
  border-color: var(--line-strong);
}

.payment-option:hover,
.role-option:hover {
  border-color: var(--brand);
}

.payment-option:has(input:checked),
.role-option:has(input:checked) {
  border-color: var(--brand);
  background: rgba(67, 56, 202, .16);
}

.vendor-fields {
  background: var(--surface-2);
  border-color: var(--line-strong);
}

.vendor-fields legend {
  color: #a5b4fc;
}

.order-item-meta code,
.mini-list code {
  background: rgba(67, 56, 202, .24);
  color: #c7d2fe;
}

.todo-list span {
  background: var(--warning-soft);
  color: var(--warning);
}

/* --- Badge-uri si alerte --- */
.badge-success {
  background: var(--success-soft);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-info {
  background: var(--info-soft);
  color: var(--info);
}

.flash {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.flash-success {
  background: rgba(4, 120, 87, .16);
  border-color: #065f46;
  color: #6ee7b7;
}

.flash-error {
  background: rgba(185, 28, 28, .16);
  border-color: #7f1d1d;
  color: #fca5a5;
}

.flash-warning {
  background: rgba(180, 83, 9, .16);
  border-color: #78350f;
  color: #fbbf24;
}

.flash-info {
  background: rgba(30, 64, 175, .18);
  border-color: #1e3a8a;
  color: #93c5fd;
}

.alert-error {
  background: rgba(185, 28, 28, .16);
  border-color: #7f1d1d;
  color: #fca5a5;
}

.alert-warning {
  background: rgba(180, 83, 9, .16);
  border-color: #78350f;
  color: #fbbf24;
}

.alert-info {
  background: rgba(30, 64, 175, .18);
  border-color: #1e3a8a;
  color: #93c5fd;
}

/* --- Hero, CTA, magazine, vanzatori, auth --- */
.hero {
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(249, 115, 22, .22), transparent 55%),
    radial-gradient(520px 320px at 0% 100%, rgba(124, 58, 237, .3), transparent 60%),
    linear-gradient(135deg, #0d1224, #1e1b4b 55%, #312e81);
}

.hero .eyebrow,
.eyebrow-light,
.store-hero .eyebrow,
.sell-hero .eyebrow,
.auth-aside .eyebrow {
  color: #c4b5fd;
}

.hero h1 em {
  color: #fdba74;
}

.hero-panel,
.sell-panel {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(148, 163, 184, .24);
}

.cta-band {
  background:
    radial-gradient(600px 260px at 90% 10%, rgba(249, 115, 22, .26), transparent 60%),
    linear-gradient(120deg, #0d1224, #1e1b4b 55%, #4338ca);
}

.store-hero,
.sell-hero,
.auth-aside {
  background:
    radial-gradient(600px 260px at 95% 0%, rgba(249, 115, 22, .2), transparent 55%),
    linear-gradient(135deg, #0d1224, #1e1b4b 55%, #312e81);
}

.store-hero > .btn,
.sell-hero > .btn {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(148, 163, 184, .4);
}

.auth-points li::before {
  color: #fdba74;
}

.auth-alt a,
.field span,
.breadcrumb a:hover {
  color: #a5b4fc;
}

/* --- Footer --- */
.site-footer {
  background:
    radial-gradient(700px 280px at 85% 0%, rgba(67, 56, 202, .26), transparent 60%),
    #060a14;
}

.footer-grid a:hover {
  color: #fdba74;
}

.footer-grid h4 {
  color: #64748b;
}

.brand-light,
.brand-light:hover {
  color: var(--ink);
}

.brand-light .brand-text strong {
  color: inherit;
}

/* --- Diverse --- */
.error-code {
  color: #a5b4fc;
}

.empty-state,
.error-state {
  border-color: var(--line-strong);
}

.muted,
.page-sub,
.form-hint,
.summary-note,
.buy-note {
  color: var(--muted);
}

.product-vendor,
.order-vendor,
.cart-group-head a {
  color: #a5b4fc;
}

.summary-group-head,
.order-item-summary,
.step-number {
  color: #a5b4fc;
}

.category-card:hover .category-arrow,
.vendor-card:hover .vendor-arrow {
  color: #a5b4fc;
}

.product-name a:hover,
.product-vendor:hover {
  color: #fdba74;
}

.back-to-top,
.skip-link {
  background: var(--surface);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .brand-ring,
  .brand-dot,
  .brand-text,
  .brand-cursor {
    animation: none;
  }
}

@media (max-width: 720px) {
  .brand-text {
    font-size: 1.1rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-hex {
    width: 32px;
    height: 32px;
  }
}

/* ---------- Marketplace layout ---------- */
.header-search-category {
  appearance: auto;
  -webkit-appearance: auto;
  color-scheme: dark;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  padding: 8px 2px 8px 0;
  margin-right: 10px;
  max-width: 142px;
  outline: none;
  cursor: pointer;
}

.header-search-category option {
  background: #0c1322;
  color: var(--ink);
}

.header-category-bar {
  border-top: 1px solid var(--line);
  background: rgba(10, 15, 28, .62);
}

.header-category-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 7px;
  min-width: 0;
}

.header-category-scroll {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(199, 210, 254, .38) transparent;
}

.header-category-scroll::-webkit-scrollbar {
  height: 4px;
}

.header-category-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.header-category-scroll::-webkit-scrollbar-thumb {
  background: rgba(199, 210, 254, .38);
  border-radius: 999px;
}

.category-scroll-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.category-scroll-btn:hover:not(:disabled) {
  border-color: var(--brand);
  color: #c7d2fe;
}

.category-scroll-btn:disabled {
  opacity: .3;
  cursor: default;
}

.category-scroll-btn[hidden] {
  display: none;
}

.header-category-link {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
}

.header-category-link:hover,
.header-category-link.is-active {
  background: rgba(67, 56, 202, .24);
  color: #c7d2fe;
}

.header-category-sell {
  flex: none;
  margin-left: 0;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--accent);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}

.product-card:hover .product-thumb img {
  transform: scale(1.04);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.catalog-sidebar {
  position: sticky;
  top: 136px;
}

.catalog-filters-details > summary {
  display: none;
}

.catalog-filter-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.catalog-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catalog-filter-head h2 {
  font-size: 1.05rem;
}

.catalog-filter-head a {
  color: var(--brand);
  font-size: .8rem;
  font-weight: 600;
}

.catalog-filter-block {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.catalog-filter-block h3 {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.catalog-filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 -9px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: .86rem;
}

.catalog-filter-link > span:last-child {
  flex: none;
  color: var(--muted);
  font-size: .76rem;
}

.catalog-filter-link:hover,
.catalog-filter-link.is-active {
  background: rgba(67, 56, 202, .22);
  color: #c7d2fe;
}

.catalog-filter-link.is-active > span:last-child {
  color: #c7d2fe;
}

.catalog-filter-sort select,
.catalog-sort select {
  width: 100%;
}

.catalog-sort select {
  width: auto;
  min-width: 168px;
}

.catalog-results {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.catalog-result-count {
  color: var(--muted);
  font-size: .9rem;
}

.catalog-result-count strong {
  color: var(--ink);
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .85rem;
}

.catalog-sort label {
  white-space: nowrap;
}

.catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

@media (max-width: 1080px) {
  .site-header.nav-open .main-nav {
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
  }

  .header-category-sell {
    display: none;
  }

  .hero-video {
    align-self: stretch;
    padding-bottom: 0;
  }

  .hero-video-media {
    flex: none;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 980px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }

  .catalog-filters-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }

  .catalog-filters-details > summary::-webkit-details-marker {
    display: none;
  }

  .catalog-filter-card {
    margin-top: 10px;
  }
}

@media (max-width: 640px) {
  .header-search-category {
    max-width: 96px;
  }

  .catalog-sort {
    width: 100%;
  }

  .catalog-sort select {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* ---------- Responsive hardening ---------- */
.dashboard-grid > *,
.settings-layout > *,
.checkout-layout > *,
.cart-layout > *,
.dashboard-col,
.panel,
.form-card,
.summary-card,
.catalog-results,
.hero,
.hero-main,
.hero-copy,
.hero-video,
.hero-vet,
.hero-disclaimer {
  min-width: 0;
}

.hero-main,
.hero-video {
  width: 100%;
}

.hero h1,
.hero-lead,
.hero-vet p,
.hero-disclaimer p {
  overflow-wrap: anywhere;
}

.category-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-card {
  min-width: 0;
  height: 100%;
}

.category-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.category-name,
.category-count {
  overflow-wrap: anywhere;
}

.category-count {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1199px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .category-grid {
    gap: 10px;
  }

  .category-card {
    padding: 12px;
    gap: 10px;
  }

  .category-emoji {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 1.05rem;
  }

  .category-arrow {
    display: none;
  }

  .category-name {
    font-size: .8rem;
  }

  .category-count {
    font-size: .68rem;
  }
}

@media (max-width: 359px) {
  .header-row {
    gap: 6px;
  }

  .brand {
    gap: 8px;
    font-size: 1.15rem;
  }

  .cart-button {
    padding-inline: 10px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    padding: 12px 14px;
  }

  .category-name {
    font-size: .86rem;
  }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .hero-video-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
  }

  .panel-head-row {
    flex-wrap: wrap;
  }

  .panel-head-row .link-arrow {
    margin-left: 0;
  }
}

.mobile-auth-links {
  display: none;
}

@media (max-width: 720px) {
  .mobile-auth-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .mobile-auth-links .mobile-auth-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 700;
  }

  .mobile-auth-links .mobile-auth-user small {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 500;
    overflow-wrap: anywhere;
  }

  .mobile-auth-links form {
    margin: 0;
  }

  .mobile-auth-links .btn {
    width: 100%;
  }
}

/* ---------- Full-bleed homepage hero ---------- */
body {
  overflow-x: hidden;
}

@media (min-width: 1440px) {
  .container {
    max-width: min(1500px, 92vw);
  }
}

.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -36px;
  padding-inline: clamp(16px, 2vw, 30px);
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 720px) {
  .hero {
    margin-top: -24px;
  }
}

/* ---------- Homepage video ---------- */
.hero-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-vet {
  text-align: center;
}

.hero-vet h2 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.hero-vet-tagline {
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-vet > p {
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
  line-height: 1.65;
  margin-bottom: 10px;
}

.hero-disclaimer {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .28);
  text-align: left;
}

.hero-disclaimer strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: .72rem;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.hero-disclaimer p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .7);
  font-size: .7rem;
  line-height: 1.55;
}

.hero-disclaimer p:last-child {
  margin-bottom: 0;
}

.hero-disclaimer a {
  color: #8ee4d8;
}

.hero-copy {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 26px;
}

.hero-copy .eyebrow {
  color: #fbbf24;
}

.hero .hero-btn {
  border-radius: 999px;
  padding: 11px 16px;
  font-size: .9rem;
}

.hero .hero-actions {
  gap: 10px;
}

.hero .hero-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero .hero-btn-primary:hover {
  background: #ea580c;
  color: #fff;
}

.hero .hero-btn-secondary {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}

.hero .hero-btn-secondary:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.hero .hero-btn-dark {
  background: #000;
  border-color: #000;
  color: #fff;
}

.hero .hero-btn-dark:hover {
  background: #111;
  color: #fff;
}

.hero-video {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: stretch;
  padding-bottom: 14px;
}

.hero-video-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(142, 228, 216, .25);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 35%, rgba(16, 185, 129, .2), transparent 60%),
    linear-gradient(145deg, #062d29, #0b3d33);
}

.hero-video-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.hero-video-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: .74rem;
  font-weight: 600;
}

.hero-video-badge::before {
  content: "◇";
  color: #8ee4d8;
}

.hero-video-empty {
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  text-align: center;
}

.hero .hero-video-cta {
  align-self: center;
  width: auto;
  padding: 17px 34px;
  border-radius: 999px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.hero .hero-video-cta:hover {
  background: #ea580c;
  color: #fff;
}

.hero-video-note {
  color: rgba(255, 255, 255, .72);
  font-size: .8rem;
  text-align: center;
}

.top-strip {
  background: #000;
  color: rgba(255, 255, 255, .75);
  font-size: .78rem;
}

.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-block: 7px;
}

.top-strip-sep {
  color: rgba(255, 255, 255, .3);
}

@media (max-width: 640px) {
  .top-strip {
    font-size: clamp(.62rem, 2.9vw, .78rem);
  }

  .top-strip-inner {
    flex-wrap: nowrap;
    gap: clamp(5px, 1.5vw, 14px);
    padding-block: 6px;
    white-space: nowrap;
  }

  .top-strip-inner > span {
    flex: 0 0 auto;
  }
}

.home-steps {
  grid-template-columns: repeat(3, 1fr);
}

#cum-functioneaza {
  scroll-margin-top: 140px;
}

@media (max-width: 720px) {
  .home-steps {
    grid-template-columns: 1fr;
  }
}

.settings-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.admin-video-preview {
  display: block;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #000;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: .88rem;
}

.checkbox-line input[type="checkbox"] {
  width: auto;
  accent-color: var(--danger);
}

/* ---------- Quick add / cart flow ---------- */
.product-card {
  position: relative;
}

.product-card .product-meta {
  padding-right: 48px;
}

.product-quick-add {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .15s, transform .15s, box-shadow .15s;
}

.product-quick-add:hover {
  background: #ea580c;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.product-quick-add:disabled {
  opacity: .6;
  cursor: wait;
}

.product-quick-add svg {
  display: block;
}

.product-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(10, 15, 28, .68);
  color: #fff;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s, transform .15s;
}

.product-favorite:hover {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, .55);
  transform: scale(1.05);
}

.product-favorite.is-active {
  color: #fb7185;
  border-color: rgba(251, 113, 133, .55);
  background: rgba(251, 113, 133, .16);
}

.product-favorite.is-active svg path {
  fill: currentColor;
}

.product-favorite:disabled {
  opacity: .6;
  cursor: wait;
}

.cart-thumb {
  overflow: hidden;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.checkout-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.checkout-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}

.checkout-steps li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 750;
}

.checkout-steps li.is-active {
  border-color: var(--brand);
  background: rgba(67, 56, 202, .18);
  color: var(--ink);
}

.checkout-steps li.is-active span {
  background: var(--brand);
  color: #fff;
}

.checkout-steps li.is-done {
  color: var(--ink-soft);
}

.checkout-steps li.is-done span {
  background: var(--success);
  color: #fff;
}

.cart-modal[hidden] {
  display: none;
}

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.cart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, .72);
  backdrop-filter: blur(4px);
}

.cart-modal-panel {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.cart-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.cart-modal-close:hover {
  color: var(--ink);
}

.cart-modal-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(16, 185, 129, .16);
  color: #6ee7b7;
  font-size: 1.4rem;
  font-weight: 700;
}

.cart-modal-panel h2 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.cart-modal-message {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.cart-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.cart-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .product-card .product-meta {
    padding-right: 42px;
  }

  .product-quick-add {
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
  }

  .product-favorite {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
  }

  .product-favorite svg {
    width: 16px;
    height: 16px;
  }

  .checkout-steps li {
    padding: 7px 11px;
    font-size: .76rem;
  }
}

/* ---------- Footer like logodigital.ro ---------- */
.site-footer {
  margin-top: 40px;
  padding: 54px 0 26px;
  background: #0b1220;
  color: rgba(255, 255, 255, .7);
}

.site-footer .container {
  max-width: 1240px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer-column h2 {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.footer-column p {
  max-width: 36ch;
  color: rgba(255, 255, 255, .7);
  font-size: .88rem;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-contact {
  color: rgba(255, 255, 255, .7);
  font-size: .88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .35);
}

.footer-links a:hover,
.footer-contact:hover {
  color: #fdba74;
  text-decoration-color: currentColor;
}

.footer-contact {
  text-decoration: none;
}

.footer-contact:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: block;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .45);
  font-size: .78rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 720px) {
  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-column p {
    max-width: none;
  }
}

/* ---------- Legal pages ---------- */
.legal-page {
  max-width: 920px;
  margin: 24px auto 0;
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-page h1 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
}

.legal-page h2 {
  margin: 32px 0 12px;
  color: var(--ink);
  font-size: 1.25rem;
}

.legal-page h3 {
  margin: 24px 0 10px;
  color: var(--ink);
  font-size: 1.05rem;
}

.legal-page p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 1.75;
}

.legal-page ul {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: disc;
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 1.7;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: #fdba74;
}

.legal-page strong {
  color: var(--ink);
}

.legal-page code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: .84em;
}

.legal-page .legal-note {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  font-size: .85rem;
}

.legal-page .legal-table-empty {
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

.legal-table-wrap {
  margin: 16px 0 20px;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 720px) {
  .legal-page {
    padding: 20px;
    border-radius: var(--radius);
  }

  .legal-page h2 {
    font-size: 1.15rem;
  }
}

@media (max-width: 767px) {
  .hero-video-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* ---------- Admin statistics ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-card h2 {
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-main {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}

.stat-list {
  display: grid;
  gap: 4px;
  font-size: .84rem;
}

.stat-list div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.stat-list dt {
  color: var(--muted);
}

.stat-list dd {
  font-weight: 600;
}

.stat-bars {
  display: grid;
  gap: 6px;
}

.stat-bar-row {
  display: grid;
  grid-template-columns: 54px 1fr 170px;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
}

.stat-bar-label {
  color: var(--muted);
}

.stat-bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(67, 56, 202, .08);
  overflow: hidden;
}

.stat-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #7c3aed);
}

.stat-bar-value {
  text-align: right;
  color: var(--ink-soft);
}

@media (max-width: 600px) {
  .stat-bar-row {
    grid-template-columns: 44px 1fr 90px;
    font-size: .72rem;
  }
}

.table-wrap {
  overflow-x: auto;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}

.stats-table th,
.stats-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.stats-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.stats-table td:first-child {
  white-space: normal;
}

