/* ==========================================================================
   FreshImpact – front.css (magazinul online, clienți)
   Se încarcă după core.css.
   ========================================================================== */

/* ---------- Bară de sus ---------- */
.topbar {
  background: var(--brand-ink);
  color: rgb(255 255 255 / 0.88);
  font-size: var(--fs-sm);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 36px;
}
.topbar__note {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar__note strong { color: #fff; }
.topbar__lead { display: none; }
@media (min-width: 640px) {
  .topbar__lead { display: inline; }
}
.topbar__links { display: none; gap: 20px; }
.topbar__links a:hover { color: #fff; text-decoration: underline; }

@media (min-width: 768px) {
  .topbar__inner { justify-content: space-between; }
  .topbar__links { display: flex; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "logo . actions"
    "search search search"
    "store store store";
  align-items: center;
  gap: 10px 12px;
  padding-block: 10px 12px;
}

.logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo__img {
  width: auto;
  height: 28px;
}
.logo__tag {
  display: none;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink);
}
.logo__tag span { display: block; color: var(--muted); font-weight: 700; letter-spacing: 0.04em; text-transform: none; }

@media (min-width: 480px) {
  .logo__img { height: 32px; }
}
@media (min-width: 1280px) {
  .logo__tag { display: block; }
}

/* Selector magazin */
.store-switch {
  grid-area: store;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  transition: border-color 0.15s var(--ease);
}
.store-switch:hover { border-color: var(--line-strong); }
.store-switch__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.store-switch__text { display: grid; min-width: 0; line-height: 1.25; }
.store-switch__label { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.store-switch__name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-switch__chevron { margin-left: auto; color: var(--muted); }

/* Căutare */
.search {
  grid-area: search;
  position: relative;
  display: flex;
  align-items: center;
}
.search__icon {
  position: absolute;
  left: 16px;
  color: var(--muted);
  pointer-events: none;
}
.search__input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 46px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  font-size: max(var(--fs-base), var(--fs-input-min));
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.search__input::placeholder { color: var(--muted); }
.search__input:hover { background: #e8ebef; }
.search__input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--brand-soft-2);
}
.search__btn { display: none; }

/* Acțiuni header */
.header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
}
.header-action:hover { background: var(--surface-3); }

@media (max-width: 1279.98px) {
  .header-action__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-contrast);
  transition: background-color 0.15s var(--ease);
}
.cart-btn:hover { background: var(--accent-hover); }
.cart-btn__icon { position: relative; display: grid; }
.cart-btn__count {
  position: absolute;
  top: -8px;
  right: -9px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-pill);
  background: var(--accent-contrast);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.cart-btn__text { display: none; line-height: 1.15; }
.cart-btn__label { display: block; font-size: 11px; font-weight: 600; opacity: 0.85; }
.cart-btn__total { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }

@media (min-width: 640px) {
  .cart-btn { padding: 0 18px 0 14px; }
  .cart-btn__text { display: block; }
}

@media (min-width: 1024px) {
  .site-header__inner {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "logo store search actions";
    gap: 20px;
    min-height: 76px;
    padding-block: 12px;
  }
  .store-switch { max-width: 260px; }
  .search__input { padding-right: 104px; }
  .search__btn {
    display: inline-flex;
    position: absolute;
    right: 5px;
  }
  .cart-btn { height: 50px; }
}

@media (min-width: 1280px) {
  .store-switch { max-width: 300px; }
}

/* Pe telefon și tabletă header-ul e mai compact și se ascunde la scroll în jos (ui.js) */
@media (max-width: 1023.98px) {
  .site-header { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
  .site-header--hidden { transform: translateY(-100%); box-shadow: none; }
  .site-header__inner { gap: 8px 12px; padding-block: 8px 10px; }
  .search__input { height: 44px; }
  .store-switch { padding: 4px 10px 4px 4px; border-radius: 12px; }
  .store-switch__icon { width: 32px; height: 32px; border-radius: 9px; }
  .store-switch__text { display: flex; align-items: baseline; gap: 6px; }
  .store-switch__label { flex: none; }
  .store-switch__name { min-width: 0; }
}

/* ---------- Navigare categorii ---------- */
.catnav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.catnav__inner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.catnav__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.catnav__all:hover { background: #2a2e36; }
.catnav__list {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.catnav__list::-webkit-scrollbar { display: none; }
.catnav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 50px;
  padding: 0 12px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.catnav__link:hover { color: var(--ink); }
.catnav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}
.catnav__link[aria-current="page"] { color: var(--ink); }
.catnav__link[aria-current="page"]::after { background: var(--brand); }
.catnav__link--promo { color: var(--accent); }
/* Butonul care deschide panoul cu categorii există doar pe telefon (vezi blocul de densitate). */
.catnav__menu { display: none; }

/* Panoul cu toate categoriile: același tipar ca sertarul de filtre, dar pornit din bara de categorii.
   Pe ecran mare nu există, fiindcă acolo se vede toată lista. */
.drawer { display: none; }

/* Bannerul și categoriile de pe pagina magazinului; ordinea se schimbă doar pe telefon. */
.store-top { display: contents; }

/* ---------- Hero magazin ---------- */
.store-hero { padding-top: 20px; }
.store-hero__grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 1024px) {
  .store-hero { padding-top: 28px; }
  .store-hero__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
}

/* ---------- Carusel de bannere ----------
   Bannerul de brand și campaniile magazinului, unul peste altul, într-o bandă care se trage cu
   degetul pe telefon și cu săgeți pe desktop. Derularea e nativă (scroll-snap), deci merge și
   fără JavaScript; bulinele sunt ancore către fiecare panou, iar ui.js doar le marchează pe cea
   curentă. */
.hero-carousel { position: relative; min-width: 0; }
.hero-carousel__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
}
/* Derularea lină vine din JavaScript (scrollTo cu behavior: smooth), nu din CSS: pusă aici, ar
   împiedica și săgețile să miște banda, pentru că orice derulare programată ar fi înghițită. */
.hero-carousel__track::-webkit-scrollbar { display: none; }
.hero-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}
.hero-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}
.hero-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
  transition: width 0.2s var(--ease), background-color 0.2s var(--ease);
}
.hero-carousel__dot:hover { background: var(--muted); }
.hero-carousel__dot.is-current { width: 22px; background: var(--brand); }
.hero-carousel__arrow { display: none; }

@media (min-width: 1024px) {
  .hero-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    transition: opacity 0.2s var(--ease), background-color 0.15s var(--ease);
  }
  .hero-carousel:hover .hero-carousel__arrow,
  .hero-carousel__arrow:focus-visible { opacity: 1; }
  .hero-carousel__arrow:hover { background: var(--surface-2); }
  .hero-carousel__arrow--prev { left: 12px; }
  .hero-carousel__arrow--next { right: 12px; }
}

.promo-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, var(--brand-active) 0%, var(--brand-ink) 45%, var(--brand) 100%);
  color: var(--brand-contrast);
}
.promo-hero__img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.promo-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
}
.promo-hero__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.promo-hero__text { max-width: 44ch; font-size: var(--fs-md); opacity: 0.92; }
.promo-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.promo-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
}
.promo-hero__facts li { display: inline-flex; align-items: center; gap: 8px; }

@media (min-width: 768px) {
  .promo-hero { min-height: 380px; justify-content: center; }
  .promo-hero__img {
    position: absolute;
    inset: 0 0 0 auto;
    width: 58%;
    height: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%);
    mask-image: linear-gradient(to right, transparent 0%, #000 38%);
  }
  .promo-hero__content { max-width: 60%; padding: 44px; }
}

/* Card ridicare */
.pickup-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.pickup-card__head { display: flex; align-items: center; gap: 12px; }
.pickup-card__badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.pickup-card__eyebrow { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.pickup-card__title { font-size: 17px; font-weight: 800; line-height: 1.25; }
.pickup-card__line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.pickup-card__line .icon { color: var(--muted); }
.pickup-card__open { color: var(--success); font-weight: 700; }
.pickup-card__slot {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--success-soft);
}
.pickup-card__slot-label { font-size: var(--fs-sm); font-weight: 700; color: var(--success); }
.pickup-card__slot-time { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.pickup-card__perks { display: grid; gap: 8px; font-size: 14px; }
.pickup-card__perks li { display: flex; align-items: center; gap: 8px; }
.pickup-card__perks .icon { color: var(--success); }
.pickup-card .btn { margin-top: auto; }

/* Pe telefon hero-ul și cardul de ridicare sunt compacte, ca produsele să apară pe primul ecran.
   Magazinul se schimbă din header, iar avantajele apar pe desktop. */
@media (max-width: 767.98px) {
  .store-hero { padding-top: 12px; }
  .store-hero__grid { gap: 12px; }
  .promo-hero__img { display: none; }
  .promo-hero__content { gap: 10px; padding: 20px; }
  .promo-hero__title { font-size: var(--fs-xl); }
  .promo-hero__text { font-size: 14px; }
  .promo-hero__facts { gap: 6px 16px; margin-top: 0; font-size: 13px; }
  .promo-hero__actions { margin-top: 2px; }
  .promo-hero__actions .btn--lg { min-height: 44px; padding: 0 20px; font-size: var(--fs-base); }
  .promo-hero__actions .btn--on-brand { display: none; }
  .pickup-card { gap: 10px; padding: 16px; }
  .pickup-card__badge { width: 40px; height: 40px; border-radius: 12px; }
  .pickup-card__slot {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 12px;
    padding: 10px 14px;
  }
  .pickup-card__slot-time { font-size: 17px; }
  .pickup-card__perks,
  .pickup-card > .btn { display: none; }
}

/* ---------- Categorii (tile-uri) ---------- */
.cat-tiles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 112px;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.cat-tiles::-webkit-scrollbar { display: none; }

/* ---------- Pagina „Toate categoriile” ----------
   Un card pe categorie: poza, numele, câte produse are și subcategoriile, unde există.
   Selectorii listelor sunt scriși cu părintele, fiindcă resetul „ul[class]” din core.css
   cântărește mai mult decât o singură clasă. */
.cat-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) {
  .cat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 1024px) {
  .cat-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

.cat-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.cat-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.cat-card__main {
  display: grid;
  gap: 2px;
  padding: 10px 10px 12px;
}
.cat-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--tile-bg, var(--surface-3));
}
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__media .icon { width: 42%; height: 42%; color: var(--ink-2); opacity: 0.85; }
.cat-card__name { font-size: 15px; font-weight: 800; line-height: 1.25; }
.cat-card__count { font-size: var(--fs-sm); color: var(--muted); }

.cat-card .cat-card__subs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding: 0 10px 10px;
}
.cat-card__subs a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.cat-card__subs a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.cat-card__num { color: var(--muted); font-weight: 600; }
.cat-card__subs a:hover .cat-card__num { color: inherit; }

/* Promoțiile nu sunt un raion, ci o scurtătură: card fără poză, în culoarea de accent. */
.cat-card--promo { border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.cat-card--promo .cat-card__media { background: var(--accent-soft); }
.cat-card--promo .cat-card__media .icon { color: var(--accent); opacity: 1; }
.cat-card--promo .cat-card__name { color: var(--accent); }

.cat-card__media--green { --tile-bg: #e4f3e3; }
.cat-card__media--lime { --tile-bg: #eef5d9; }
.cat-card__media--sky { --tile-bg: #e3eefb; }
.cat-card__media--rose { --tile-bg: #fbe6e6; }
.cat-card__media--sand { --tile-bg: #f7eddc; }
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.cat-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-tile__media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--tile-bg, var(--surface-3));
}
.cat-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Pictograma ține locul pozei, deci ocupă dala ca o poză, nu ca un simbol mic pierdut în mijloc. */
.cat-tile__media .icon { width: 46%; height: 46%; color: var(--ink-2); opacity: 0.85; }
.cat-tile__name { font-size: 14px; font-weight: 800; line-height: 1.25; }
.cat-tile--green { --tile-bg: #e4f3e3; }
.cat-tile--lime { --tile-bg: #eef5d9; }
.cat-tile--sky { --tile-bg: #e3eefb; }
.cat-tile--rose { --tile-bg: #fbe6e6; }
.cat-tile--sand { --tile-bg: #f6ecdc; }
.cat-tile--sun { --tile-bg: #fdf3cf; }
.cat-tile--all { --tile-bg: var(--surface-3); }

@media (min-width: 1024px) {
  .cat-tiles {
    grid-auto-flow: row;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow: visible;
  }
}

/* ---------- Card produs ---------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.product-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.product-card__media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 16px;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 0 14px 14px;
}
.product-card__title {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-card__title a:hover { text-decoration: underline; }
.product-card__meta { font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.product-card__note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--info);
}
.product-card__action { margin-top: auto; padding-top: 6px; }
.product-card__action .btn { min-height: 40px; }

.product-card--unavailable .product-card__media img { opacity: 0.4; filter: grayscale(1); }
.product-card--unavailable .price__now { color: var(--muted); }
.product-card__overlay {
  position: absolute;
  top: 38%;
  left: 50%;
  translate: -50% -50%;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 800;
  white-space: nowrap;
}

/* Grile și rânduri de produse */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1280px) {
  .product-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.product-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 44%);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 12px;
  margin: -4px -2px -12px;
}
.product-row::-webkit-scrollbar { display: none; }
.product-row > * { scroll-snap-align: start; }
@media (min-width: 640px) {
  .product-row { grid-auto-columns: calc((100% - 3 * 14px) / 4); gap: 14px; }
}
@media (min-width: 1280px) {
  .product-row { grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px; }
}

.row-nav { display: none; gap: 8px; }
.row-nav__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}
.row-nav__btn:hover { border-color: var(--ink); }
@media (min-width: 1024px) {
  .row-nav { display: flex; }
}
.section__tools { display: flex; flex: none; align-items: center; gap: 16px; }

/* ---------- Bannere promo ---------- */
.promo-banners {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .promo-banners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.promo-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 190px;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--banner-bg, var(--surface-3));
  transition: box-shadow 0.2s var(--ease);
}
.promo-banner:hover { box-shadow: var(--shadow); }
.promo-banner__content { position: relative; z-index: 1; display: grid; gap: 8px; max-width: 58%; }
.promo-banner__eyebrow { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--banner-ink, var(--ink-2)); }
.promo-banner__title { font-size: clamp(20px, 1.4vw + 12px, 26px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.promo-banner__text { font-size: 14px; color: var(--ink-2); }
.promo-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
}
.promo-banner:hover .promo-banner__cta { text-decoration: underline; }
.promo-banner__img {
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%);
  mask-image: linear-gradient(to right, transparent 0%, #000 30%);
}
.promo-banner__img--packshot {
  top: auto;
  right: 12px;
  bottom: 12px;
  width: 40%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: multiply;
  -webkit-mask-image: none;
  mask-image: none;
}
.promo-banner--green { --banner-bg: #e3f2e1; --banner-ink: #1f6b33; }
.promo-banner--sun { --banner-bg: #fcf0cd; --banner-ink: #7a5600; }

/* ---------- Cum funcționează ---------- */
.how {
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px 20px;
}
.how__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}
.how__sub { margin-top: 6px; color: var(--muted); text-align: center; }
.how__steps {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  counter-reset: step;
}
.how__step { display: flex; gap: 14px; align-items: flex-start; }
.how__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.how__icon::after {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.how__step-title { font-size: var(--fs-md); font-weight: 800; }
.how__step-text { margin-top: 2px; font-size: 14px; color: var(--muted); }

@media (min-width: 768px) {
  .how { padding: 40px; }
  .how__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}
@media (min-width: 1024px) {
  .how__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .how__step { flex-direction: column; }
}

/* ---------- Listare produse ---------- */
.page { padding-block: 16px 8px; }
@media (min-width: 1024px) { .page { padding-top: 22px; } }

.listing {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.listing__main { min-width: 0; }
@media (min-width: 1024px) {
  .listing { grid-template-columns: 272px minmax(0, 1fr); align-items: start; }
}

.listing__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
}
.listing__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.listing__count { margin-top: 6px; color: var(--muted); font-size: 14px; }
.listing__count strong { color: var(--ink); }
.listing .chips { margin-top: 18px; }
.listing__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
}
.listing__sort { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.listing__sort .select { width: auto; min-width: 190px; color: var(--ink); }
.listing__filter-btn .badge--count { margin-left: 2px; }
@media (max-width: 419.98px) {
  /* la 360 px selectul de 190 px nu mai încape lângă „Filtre” */
  .listing__sort { flex: 1; min-width: 0; justify-content: flex-end; }
  .listing__sort .select { flex: 1; min-width: 0; }
}
@media (min-width: 1024px) {
  .listing__filter-btn { display: none; }
  .listing__toolbar { justify-content: flex-end; }
}

/* Încarcă mai multe */
.load-more {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 32px;
  text-align: center;
}
.load-more__text { font-size: 14px; color: var(--muted); }
.load-more__bar {
  width: 220px;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}
.load-more__bar span { display: block; width: 32%; height: 100%; border-radius: inherit; background: var(--ink); }

/* Filtre (sidebar pe desktop, sertar pe mobil) */
.filters__panel {
  display: grid;
  gap: 4px;
  padding: 8px 18px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.filters__title { font-size: var(--fs-lg); font-weight: 800; }
.filters__close { display: none; }
.filters__apply { display: none; margin-top: 12px; }
.filter-group { padding: 14px 0; border-top: 1px solid var(--line); }
.filter-group__title { margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.filter-group__range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.filter-group__range .input { height: 40px; }
.filter-group__range span { color: var(--muted); }
.filter-group__range .btn { grid-column: 1 / -1; }

.cat-tree { display: grid; gap: 2px; }
.cat-tree__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.cat-tree__link:hover { background: var(--surface-2); color: var(--ink); }
.cat-tree__link span { color: var(--subtle); font-size: var(--fs-sm); font-weight: 600; }
.cat-tree__link[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; }
.cat-tree__sub { display: grid; gap: 2px; margin: 2px 0 4px 12px; padding-left: 10px; border-left: 2px solid var(--line); }

.filters__backdrop { display: none; }

@media (max-width: 1023.98px) {
  .filters {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    justify-content: flex-start;
    visibility: hidden;
    pointer-events: none;
  }
  .filters.is-open { visibility: visible; pointer-events: auto; }
  .filters__backdrop {
    display: block;
    position: absolute;
    inset: 0;
    border: 0;
    background: rgb(12 14 18 / 0.5);
    opacity: 0;
    transition: opacity 0.25s var(--ease);
  }
  .filters.is-open .filters__backdrop { opacity: 1; }
  .filters__panel {
    position: relative;
    width: min(360px, 88vw);
    height: 100%;
    overflow-y: auto;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    align-content: start;
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease);
  }
  .filters.is-open .filters__panel { transform: none; }
  .filters__close { display: inline-flex; }
  .filters__apply { display: inline-flex; }
}

body.has-drawer { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 56px;
  background: #14161b;
  color: #b9bec8;
  font-size: 14px;
}
.site-footer__grid {
  display: grid;
  gap: 32px;
  padding-block: 44px;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
}
.site-footer .logo__tag { color: #fff; }
.site-footer .logo__tag span { color: #b9bec8; }
.site-footer__about { margin-top: 14px; max-width: 34ch; }
.site-footer__title { margin-bottom: 14px; color: #fff; font-size: 15px; font-weight: 800; }
.site-footer__links { display: grid; gap: 10px; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; }
.site-footer__contact { display: grid; gap: 10px; }
.site-footer__contact li { display: flex; gap: 10px; }
.site-footer__contact .icon { margin-top: 1px; color: #fff; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: var(--fs-sm);
}
.site-footer__pay { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }

/* ==========================================================================
   Fundația front – blocuri de pagină pentru restul paginilor magazinului:
   coș, checkout, confirmare, status comandă, alegere magazin, produs, cont,
   autentificare, pagini de text, FAQ, 404. Doar layout și piese de pagină;
   butoanele, câmpurile, cardurile, alertele etc. vin din core.css.
   Culorile vin numai din tokeni (core.css).
   ========================================================================== */

/* ---------- Mici completări la chrome ---------- */
.cart-btn[aria-current="page"] { box-shadow: 0 0 0 3px var(--accent-soft-2); }

/* Antet de pagină (h1 + subtitlu + acțiuni), după breadcrumbs */
.page-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 16px 0 20px;
}
.page-intro__main { display: grid; gap: 6px; min-width: 0; }
.page-intro__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.page-intro__sub { color: var(--muted); font-size: 14px; }
.page-intro__sub strong { color: var(--ink); }
.page-intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (min-width: 1024px) {
  .page-intro { margin: 20px 0 24px; }
}

/* Layout cu coloană laterală (coș, checkout, status comandă) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.split__main { display: grid; gap: 16px; align-content: start; min-width: 0; }
.split__aside { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr) 384px; gap: 28px; }
  .split__aside { position: sticky; top: 96px; }
  .split--narrow { grid-template-columns: minmax(0, 1fr) 340px; }
}

/* Listă cu bife (avantaje, reasigurări) */
.check-list { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.check-list__item { display: flex; align-items: flex-start; gap: 10px; }
.check-list__item > .icon { margin-top: 2px; color: var(--success); }

/* Notă „Preț estimativ, final la cântărire” */
.weight-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--info);
}
.weight-note--box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--info-soft);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.weight-note--box > .icon { margin-top: 1px; color: var(--info); }
.weight-note--box strong { color: var(--ink); }

/* Număr de pas în titlul unui grup de formular */
.form-step {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 800;
  vertical-align: 2px;
}

/* ---------- Antet minimal (checkout) ---------- */
.checkout-header {
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}
.checkout-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  min-height: 64px;
  padding-block: 10px;
}
.checkout-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}
.checkout-header__back:hover { background: var(--surface-3); color: var(--ink); }
.checkout-header__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  order: 3;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: var(--fs-sm);
  font-weight: 800;
  text-align: center;
}
.checkout-header__steps {
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.checkout-header__steps .steps { max-width: 720px; margin-inline: auto; }
@media (min-width: 768px) {
  .checkout-header__inner { gap: 10px 20px; min-height: 76px; }
  .checkout-header__note {
    order: 0;
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* ---------- Bară magazin (coș, checkout) ---------- */
.store-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 16px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  background: var(--brand-soft);
}
.store-bar__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--surface);
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}
.store-bar__text { display: grid; gap: 2px; flex: 1 1 200px; min-width: 0; line-height: 1.3; }
.store-bar__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.store-bar__name { font-size: var(--fs-md); font-weight: 800; }
.store-bar__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  margin-top: 2px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.store-bar__meta li { display: inline-flex; align-items: center; gap: 6px; }
.store-bar__open { color: var(--success); font-weight: 700; }
.store-bar__action { flex: none; }
.store-bar--plain { border-color: var(--line); background: var(--surface-2); }
@media (max-width: 479.98px) {
  .store-bar__action { width: 100%; }
}

/* ---------- Coș: linii de produs ---------- */
.cart-list { display: grid; }
.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-areas:
    "media body remove"
    "controls controls controls";
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: 0; border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px); }
.cart-item__media {
  grid-area: media;
  display: block;
  width: 64px;
  height: 64px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.cart-item__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cart-item__body { grid-area: body; display: grid; gap: 4px; align-content: start; min-width: 0; }
.cart-item__title { font-size: var(--fs-base); font-weight: 700; line-height: 1.35; }
.cart-item__title a:hover { text-decoration: underline; }
.cart-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: var(--fs-sm);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cart-item__remove { grid-area: remove; align-self: start; margin: -6px -8px 0 0; color: var(--muted); }
.cart-item__remove:hover { background: var(--danger-soft); color: var(--danger); }
.cart-item__controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.cart-item__qty { display: flex; align-items: center; gap: 8px; }
.cart-item__qty > .qty { width: 124px; flex: none; }
.cart-item__unit { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }
.cart-item__total {
  display: grid;
  justify-items: end;
  gap: 1px;
  line-height: 1.25;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cart-item__price { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.cart-item__price--promo { color: var(--accent); }
.cart-item__each { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.cart-item__old { font-size: var(--fs-xs); color: var(--muted); text-decoration: line-through; white-space: nowrap; }
.cart-item__est { font-size: var(--fs-xs); font-weight: 700; color: var(--info); white-space: nowrap; }
.cart-item__alert {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 2px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--warning);
}
.cart-item__alert > .icon { margin-top: 1px; }
.cart-item__excluded { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }

.cart-item--unavailable { background: var(--surface-2); }
.cart-item--unavailable .cart-item__media img { opacity: 0.45; filter: grayscale(1); }
.cart-item--unavailable .cart-item__title { color: var(--muted); }
.cart-item--unavailable .cart-item__price { color: var(--muted); font-weight: 700; text-decoration: line-through; }

@media (min-width: 768px) {
  .cart-item {
    grid-template-columns: 80px minmax(0, 1fr) auto auto;
    grid-template-areas: "media body controls remove";
    align-items: center;
    gap: 16px 20px;
    padding: 18px 24px;
  }
  .cart-item__media { width: 80px; height: 80px; padding: 6px; }
  .cart-item__controls { gap: 24px; }
  .cart-item__qty { min-width: 160px; } /* aliniază stepper-ele, inclusiv cele cu sufix „kg” */
  .cart-item__total { min-width: 112px; }
  .cart-item__remove { align-self: center; margin: 0; }
}

/* Bară fixă cu totalul, pe mobil (coș, checkout) */
.cart-bar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-inline: calc(var(--gutter) * -1);
  /* Pe iPhone, bara de jos a Safari și linia de navigare acoperă ultimii pixeli: de aceea
     spațiul de dedesubt se ia din zona sigură a ecranului, nu dintr-o valoare fixă. */
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--line), 0 -8px 24px color-mix(in srgb, var(--ink) 8%, transparent);
}
.cart-bar__text { display: grid; line-height: 1.2; }
.cart-bar__label { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.cart-bar__value { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) {
  .cart-bar { display: none; }
}

/* ---------- Sumar (coș, checkout, confirmare) ---------- */
.summary {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .summary { padding: 24px; }
}
.summary__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.summary__title { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.summary__count { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }
.summary__lines { display: grid; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.summary__pay {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--brand-soft);
}
.summary__pay-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--surface);
  color: var(--brand-ink);
}
.summary__pay-title { font-size: 14px; font-weight: 800; color: var(--brand-ink); line-height: 1.35; }
.summary__pay-text { font-size: var(--fs-sm); color: var(--ink-2); }
.summary__actions { display: grid; gap: 10px; }
.summary__foot { font-size: var(--fs-xs); color: var(--muted); text-align: center; }

/* Totaluri (dl) */
.totals { display: grid; gap: 10px; font-size: 14px; }
.totals__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.totals__row > dt { color: var(--ink-2); }
.totals__row > dd {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.totals__row--sub { padding-left: 12px; border-left: 2px solid var(--line); font-size: var(--fs-sm); }
.totals__row--sub > dt,
.totals__row--sub > dd { color: var(--muted); font-weight: 600; }
.totals__row--saving > dd { color: var(--accent); }
.totals__row--free > dd { color: var(--success); }
.totals__row--old > dd { color: var(--muted); font-weight: 600; text-decoration: line-through; }
.totals__row--total {
  align-items: center;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}
.totals__row--total > dt { color: var(--ink); font-size: var(--fs-md); font-weight: 800; line-height: 1.3; }
.totals__row--total > dd { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.totals__hint { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }

/* Linie compactă de produs (sumar checkout, confirmare) */
.summary-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.summary-line__media { position: relative; display: grid; }
.summary-line__media .thumb { width: 44px; height: 44px; }
.summary-line__qty {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--surface);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--surface);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.summary-line__body { display: grid; min-width: 0; line-height: 1.3; }
.summary-line__name { font-size: var(--fs-sm); font-weight: 700; }
.summary-line__meta { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.summary-line__price { font-size: var(--fs-sm); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-line--missing .summary-line__name,
.summary-line--missing .summary-line__price { color: var(--muted); text-decoration: line-through; }

/* ---------- Checkout ---------- */
.login-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.login-hint__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--ink-2);
}
.login-hint__text { flex: 1 1 220px; min-width: 0; font-size: 14px; color: var(--ink-2); }
.login-hint__text strong { color: var(--ink); }

/* Plata la ridicare (informativ, nu e o alegere) */
.pay-info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  background: var(--brand-soft);
}
.pay-info__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--surface);
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}
.pay-info__body { display: grid; gap: 4px; min-width: 0; }
.pay-info__title { font-weight: 800; line-height: 1.35; }
.pay-info__text { font-size: 14px; color: var(--ink-2); }
.pay-info__methods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* Bifă care dezvăluie câmpuri (ex. „Creează-mi cont” → parolă), fără JS */
.reveal { display: grid; gap: 10px; }
.reveal__panel {
  display: none;
  gap: 12px;
  margin-left: 28px;
  padding: 14px 16px;
  border-left: 3px solid var(--brand-border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-2);
}
.reveal:has(.reveal__toggle:checked) .reveal__panel { display: grid; }

/* ---------- Confirmare comandă ---------- */
.success-hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 36px 20px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 18%, var(--promo) 0 5px, transparent 6px),
    radial-gradient(circle at 86% 24%, var(--accent-soft-2) 0 8px, transparent 9px),
    radial-gradient(circle at 78% 82%, var(--brand-soft-2) 0 10px, transparent 11px),
    radial-gradient(circle at 20% 78%, var(--accent-soft) 0 7px, transparent 8px),
    linear-gradient(180deg, var(--brand-soft) 0%, var(--surface) 75%);
  text-align: center;
}
.success-hero__icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow: 0 0 0 10px var(--brand-soft-2);
  animation: success-pop 0.5s var(--ease) both;
}
.success-hero__icon .icon { width: 40px; height: 40px; stroke-width: 2.5; }
.success-hero__title {
  max-width: 24ch;
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.success-hero__text { max-width: 58ch; color: var(--ink-2); font-size: var(--fs-md); }
.success-hero__text strong { color: var(--ink); overflow-wrap: anywhere; }
.success-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
@media (min-width: 768px) {
  .success-hero { padding: 52px 40px 44px; }
}
@keyframes success-pop {
  from { transform: scale(0.6); opacity: 0; }
}

/* Pașii următori (ce urmează după plasare) */
.next-steps { display: grid; gap: 16px; }
.next-steps__item { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.next-steps__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.next-steps__title { font-weight: 800; line-height: 1.35; }
.next-steps__text { margin-top: 2px; font-size: 14px; color: var(--muted); }
@media (min-width: 768px) {
  .next-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
}
@media (min-width: 1024px) {
  .next-steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .next-steps--4 .next-steps__item { flex-direction: column; }
}

/* ---------- Status comandă (pagina clientului) ---------- */
.status-hero {
  --sh-line: var(--st-pregatire-dot);
  --sh-soft: var(--st-pregatire-soft);
  display: grid;
  gap: 16px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--sh-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--sh-soft) 0, var(--surface) 160px);
}
.status-hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.status-hero__number { font-size: 14px; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.status-hero__main { display: grid; justify-items: start; gap: 10px; }
.status-hero__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.status-hero__text { max-width: 62ch; color: var(--ink-2); font-size: var(--fs-md); }
.status-hero__facts {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.status-hero__fact { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.status-hero__fact > .icon { margin-top: 2px; color: var(--muted); }
.status-hero__fact-label { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.status-hero__fact-value { display: block; font-weight: 800; font-variant-numeric: tabular-nums; }
.status-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 640px) {
  .status-hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 768px) {
  .status-hero { padding: 28px 32px; }
}
.status-hero--noua { --sh-line: var(--st-noua); --sh-soft: var(--st-noua-soft); }
.status-hero--acceptata { --sh-line: var(--st-acceptata); --sh-soft: var(--st-acceptata-soft); }
.status-hero--ridicata { --sh-line: var(--st-ridicata); --sh-soft: var(--st-ridicata-soft); }
.status-hero--respinsa { --sh-line: var(--danger); --sh-soft: var(--danger-soft); }
.status-hero--anulata { --sh-line: var(--subtle); --sh-soft: var(--st-anulata-soft); }
.status-hero--neridicata { --sh-line: var(--st-neridicata); --sh-soft: var(--st-neridicata-soft); }
.status-hero--pregatita {
  border-color: transparent;
  background: linear-gradient(115deg, var(--brand-active) 0%, var(--brand-ink) 50%, var(--brand) 100%);
  color: var(--brand-contrast);
}
.status-hero--pregatita .status-hero__number,
.status-hero--pregatita .status-hero__text,
.status-hero--pregatita .status-hero__fact-label,
.status-hero--pregatita .status-hero__fact > .icon,
.status-hero--pregatita .live { color: color-mix(in srgb, var(--brand-contrast) 88%, transparent); }
.status-hero--pregatita .status-hero__facts { border-top-color: color-mix(in srgb, var(--brand-contrast) 22%, transparent); }
.status-hero--pregatita .status--pregatita { background: var(--brand-contrast); color: var(--brand-ink); box-shadow: none; }
.status-hero--pregatita .status--pregatita::before { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft-2); }
.status-hero--pregatita .live__dot,
.status-hero--pregatita .live__dot::after { background: var(--brand-contrast); }

/* Produsele comenzii, cu stare pe produs */
.order-items { display: grid; }
.order-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.order-item:last-child { border-bottom: 0; }
.order-items:last-child > .order-item:last-child { border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px); }
.order-item__body { display: grid; gap: 3px; min-width: 0; }
.order-item__name { font-size: 14px; font-weight: 700; line-height: 1.35; }
.order-item__meta { font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.order-item__state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--muted);
}
.order-item__state--done { color: var(--success); }
.order-item__state--pending { color: var(--muted); }
.order-item__state--missing { color: var(--danger); }
.order-item__price {
  display: grid;
  justify-items: end;
  font-weight: 800;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.order-item__price-note { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.order-item--missing { background: var(--surface-2); }
.order-item--missing .thumb img { opacity: 0.45; filter: grayscale(1); }
.order-item--missing .order-item__name { color: var(--muted); text-decoration: line-through; }
.order-item--missing .order-item__price-value { color: var(--muted); text-decoration: line-through; }
.order-item--missing .order-item__price-note { color: var(--danger); }
@media (min-width: 768px) {
  .order-item { padding: 14px 24px; }
}
.order-totals { padding: 16px 18px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
@media (min-width: 768px) {
  .order-totals { padding: 18px 24px; }
}

/* ---------- Alegere magazin ---------- */
/* Hero verde de brand (alegere magazin, cum funcționează) */
.brand-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, var(--brand-active) 0%, var(--brand-ink) 45%, var(--brand) 100%);
  color: var(--brand-contrast);
}
.brand-hero__img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.brand-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 24px 20px;
}
.brand-hero__title {
  max-width: 20ch;
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.brand-hero__text { max-width: 52ch; font-size: var(--fs-md); opacity: 0.92; }
.brand-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.brand-hero__steps { display: grid; gap: 8px; width: 100%; margin-top: 6px; }
.brand-hero__step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand-contrast) 12%, transparent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.brand-hero__step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-contrast);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 800;
}
.brand-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.brand-hero__link:hover { text-decoration-thickness: 2px; }
@media (min-width: 640px) {
  .brand-hero__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .brand-hero { min-height: 360px; justify-content: center; }
  .brand-hero__img {
    position: absolute;
    inset: 0 0 0 auto;
    width: 50%;
    height: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, var(--ink) 42%);
    mask-image: linear-gradient(to right, transparent 0%, var(--ink) 42%);
  }
  .brand-hero__content { max-width: 66%; padding: 44px; }
}

/* Varianta compactă (pagina de start): lista de magazine trebuie să se vadă cât mai repede, mai ales pe telefon */
.brand-hero--compact .brand-hero__content { gap: 12px; padding: 20px; }
.brand-hero--compact .brand-hero__title { font-size: var(--fs-xl); max-width: none; }
.brand-hero--compact .brand-hero__text { font-size: 14px; }
.brand-hero--compact .brand-hero__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2px; }
.brand-hero--compact .brand-hero__step {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px;
  font-size: 12px;
}
.brand-hero--compact .brand-hero__step-num { width: 24px; height: 24px; font-size: 12px; }
@media (max-width: 767.98px) {
  .brand-hero--compact .brand-hero__img { display: none; }
}
@media (max-width: 639.98px) {
  /* Pașii spun același lucru ca paragraful; pe telefon îl păstrăm doar pentru cititoarele de ecran */
  .brand-hero--compact .brand-hero__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
@media (min-width: 768px) {
  .brand-hero--compact { min-height: 300px; }
  .brand-hero--compact .brand-hero__content { gap: 14px; padding: 36px 40px; }
  .brand-hero--compact .brand-hero__title { font-size: var(--fs-2xl); max-width: 20ch; }
  .brand-hero--compact .brand-hero__text { font-size: var(--fs-md); }
  .brand-hero--compact .brand-hero__step { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; }
  .brand-hero--compact .brand-hero__step-num { width: 28px; height: 28px; font-size: 13px; }
}

/* Căutare + lista de magazine */
.store-finder { display: grid; gap: 16px; }
.store-finder__toolbar { display: grid; gap: 12px; }
@media (min-width: 1024px) {
  .store-finder__toolbar { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: center; gap: 16px; }
}

.store-list { display: grid; gap: 12px; }
@media (min-width: 640px) {
  .store-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1024px) {
  .store-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.store-list > li { display: grid; }

.store-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.store-card:hover { border-color: transparent; box-shadow: var(--shadow); }
.store-card--selected,
.store-card--selected:hover { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand), var(--shadow); }
.store-card__head { display: flex; align-items: flex-start; gap: 12px; }
.store-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.store-card__heading { display: grid; gap: 2px; flex: 1; min-width: 0; }
.store-card__title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.store-card__address { font-size: 14px; color: var(--muted); }
.store-card__badge { flex: none; }
.store-card__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 14px;
  color: var(--ink-2);
}
.store-card__open { color: var(--success); font-weight: 700; }
.store-card__hours { font-variant-numeric: tabular-nums; }
.store-card__slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.store-card__slot strong { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.store-card__actions { display: grid; align-content: end; gap: 6px; }
.store-card__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.store-card__links .btn { min-height: 40px; color: var(--ink-2); }
@media (min-width: 640px) {
  .store-card { padding: 18px; }
}

/* ---------- Pagina de produs ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 16px; }
.pdp__details { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 1024px) {
  .pdp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 20px; }
  .pdp__details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
}

.gallery { display: grid; gap: 12px; min-width: 0; }
.gallery__main {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.gallery__main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: inherit;
  object-fit: contain;
}
.gallery__badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
  display: block;
  width: 72px;
  height: 72px;
  flex: none;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.15s var(--ease);
}
.gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb:hover { border-color: var(--ink-2); }
.gallery__thumb[aria-current="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
@media (min-width: 1024px) {
  .gallery { grid-template-columns: 84px minmax(0, 1fr); align-items: start; gap: 16px; }
  .gallery__thumbs { flex-direction: column; order: -1; overflow: visible; }
  .gallery__thumb { width: 84px; height: 84px; }
  .gallery__main { padding: 48px; }
}

.buy-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
@media (min-width: 1024px) {
  .buy-box { position: sticky; top: 96px; padding: 28px; }
}
.buy-box__brand { font-size: var(--fs-sm); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-ink); }
.buy-box__title {
  font-size: clamp(24px, 1.2vw + 17px, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.buy-box__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; color: var(--muted); }
.buy-box__pricing {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}
.buy-box__pricing .price__now { font-size: 34px; letter-spacing: -0.02em; }
.buy-box__pricing .price__now small { font-size: 16px; }
.buy-box__pricing .price__old { font-size: 15px; }
.buy-box__unit { font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.buy-box__promo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
.buy-box__stock { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--success); }
.buy-box__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.buy-box__actions > .qty { width: 144px; height: 52px; flex: none; }
.buy-box__actions > .qty .qty__btn { width: 48px; height: 52px; }
.buy-box__actions > .btn { flex: 1 1 180px; }
@media (max-width: 1023.98px) {
  /* Butonul de adăugare rămâne lipit de marginea de jos a ecranului cât timp cardul de cumpărare e vizibil */
  .buy-box__actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    flex-wrap: nowrap;
    margin-inline: -20px;
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    background: var(--surface);
  }
  .buy-box__actions > .btn { flex: 1 1 auto; min-width: 0; }
  /* Imaginea e mai joasă decât pe desktop, ca prețul și butonul să apară pe primul ecran */
  .gallery__main { aspect-ratio: 4 / 3; max-height: 52vh; }
}
@media (max-width: 767.98px) {
  .gallery__main { padding: 16px; }
  .gallery__badges { top: 12px; left: 12px; flex-direction: row; flex-wrap: wrap; }
  .gallery__thumb { width: 60px; height: 60px; }
  .buy-box { gap: 14px; padding: 18px 20px; }
  .buy-box__title { font-size: 22px; }
  .buy-box__pricing .price__now { font-size: 30px; }
  .buy-box__actions > .qty { width: 128px; }
  .buy-box__actions > .qty .qty__btn { width: 42px; }
}
@media (max-width: 379.98px) {
  .buy-box__actions > .qty { width: 112px; }
  .buy-box__actions > .qty .qty__btn { width: 36px; }
  .buy-box__actions > .btn { padding-inline: 12px; }
  .buy-box__actions > .btn .icon { display: none; }
}
.buy-box__qty-note { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Autentificare (card centrat) ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px; padding-block: 16px 8px; }
.auth__card {
  width: 100%;
  max-width: 480px;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.auth--wide .auth__card { max-width: 640px; }
.auth__head { display: grid; justify-items: center; gap: 8px; margin-bottom: 22px; text-align: center; }
.auth__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.auth__title {
  font-size: clamp(24px, 1.2vw + 18px, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.auth__sub { max-width: 42ch; color: var(--muted); font-size: 14px; }
.auth__form { display: grid; gap: 16px; }
.auth__footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.auth__note { width: 100%; max-width: 480px; }
.auth--wide .auth__note { max-width: 640px; }
@media (min-width: 768px) {
  .auth { padding-block: 32px 16px; }
  .auth__card { padding: 36px; }
}

/* Cerințe parolă */
.pw-rules { display: grid; gap: 4px 16px; font-size: var(--fs-sm); color: var(--muted); }
.pw-rules__item { display: flex; align-items: center; gap: 6px; }
.pw-rules__item--ok { color: var(--success); font-weight: 700; }
@media (min-width: 480px) {
  .pw-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Contul clientului ---------- */
.account { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 16px; }
.account__main { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 1024px) {
  .account { grid-template-columns: 272px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 20px; }
}
.account-nav {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.account-nav__user { padding: 4px 4px 12px; border-bottom: 1px solid var(--line); }
.account-nav__list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.account-nav__list::-webkit-scrollbar { display: none; }
.account-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.account-nav__link .icon { color: var(--muted); }
.account-nav__link:hover { background: var(--surface-3); color: var(--ink); }
.account-nav__link[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; }
.account-nav__link[aria-current="page"] .icon { color: var(--brand-ink); }
@media (min-width: 1024px) {
  .account-nav { position: sticky; top: 96px; }
  .account-nav__list { display: grid; overflow: visible; }
}

/* Comenzi: carduri pe mobil, tabel de la 768 px */
.order-cards { display: grid; gap: 12px; }
.order-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.order-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-card__number { font-weight: 800; font-variant-numeric: tabular-nums; }
.order-card__meta { font-size: var(--fs-sm); color: var(--muted); }
.order-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.order-card__total { font-weight: 800; font-variant-numeric: tabular-nums; }
.order-table { display: none; }
@media (min-width: 768px) {
  .order-cards { display: none; }
  .order-table { display: block; }
}

/* Zonă periculoasă (ștergere cont) */
.danger-zone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--danger) 28%, var(--surface));
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.danger-zone__text { display: grid; gap: 4px; flex: 1 1 280px; min-width: 0; }
.danger-zone__title { font-size: var(--fs-md); font-weight: 800; color: var(--danger); }
.danger-zone__desc { font-size: 14px; color: var(--muted); }
@media (min-width: 768px) {
  .danger-zone { padding: 22px 24px; }
}

/* ---------- Pagini de text (termeni, confidențialitate) ---------- */
.prose-layout { display: grid; gap: 20px; margin-top: 16px; }
@media (min-width: 1024px) {
  .prose-layout { grid-template-columns: 264px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 20px; }
}
.toc {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
@media (min-width: 1024px) {
  .toc { position: sticky; top: 96px; }
}
.toc__title {
  margin-bottom: 8px;
  padding: 0 10px;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc__list { display: grid; gap: 2px; counter-reset: toc; }
.toc__link {
  display: flex;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.toc__link::before {
  counter-increment: toc;
  content: counter(toc) ".";
  min-width: 1.4em;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}
.toc__link:hover { background: var(--surface-2); color: var(--ink); }
.toc__link[aria-current="true"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; }

.prose {
  min-width: 0;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--fs-md);
  line-height: 1.7;
}
.prose > * { max-width: 72ch; }
.prose h2 {
  margin: 36px 0 10px;
  color: var(--ink);
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  scroll-margin-top: 100px;
}
.prose h3 { margin: 24px 0 8px; color: var(--ink); font-size: var(--fs-lg); font-weight: 800; line-height: 1.35; }
.prose > :first-child { margin-top: 0; }
.prose p,
.prose ul,
.prose ol { margin: 0 0 14px; }
.prose ul,
.prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--brand-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose__meta { margin-bottom: 20px; color: var(--muted); font-size: 14px; }
@media (min-width: 768px) {
  .prose { padding: 40px 48px; }
}

/* ---------- Întrebări frecvente (<details>) ---------- */
.faq { display: grid; gap: 10px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.faq__item[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-size: var(--fs-md);
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { content: ""; }
.faq__question:focus-visible { outline-offset: -3px; }
.faq__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--ink-2);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--brand-soft); color: var(--brand-ink); }
.faq__answer { display: grid; gap: 10px; padding: 0 18px 18px; color: var(--ink-2); }
@media (min-width: 768px) {
  .faq__question { padding: 18px 22px; }
  .faq__answer { padding: 0 22px 20px; }
}

/* Variante pentru blocuri existente */
@media (min-width: 1024px) {
  .how--3 .how__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Bandă de îndemn (CTA) */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--surface);
}
.cta-band__title { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.cta-band__text { margin-top: 4px; color: color-mix(in srgb, var(--surface) 78%, transparent); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 768px) {
  .cta-band { padding: 36px 40px; }
}

/* ---------- 404 ---------- */
.error-page {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 32px 0 8px;
  text-align: center;
}
.error-page__art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.06em;
  font-size: clamp(96px, 14vw + 40px, 184px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--brand-ink);
}
.error-page__digit {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page__zero {
  display: grid;
  place-items: center;
  width: 0.78em;
  height: 0.78em;
  margin-inline: 0.04em;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 0.05em var(--accent-soft-2);
}
.error-page__zero .icon { width: 0.4em; height: 0.4em; stroke-width: 1.8; }
.error-page__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.error-page__text { max-width: 52ch; color: var(--muted); font-size: var(--fs-md); }
.error-page__search { display: flex; gap: 8px; width: 100%; max-width: 520px; margin-top: 6px; }
.error-page__search .input-group { flex: 1; }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
@media (max-width: 479.98px) {
  .error-page__search { flex-direction: column; }
}

/* ==========================================================================
   Completări catalog (inclusiv stările fără imagine)
   ========================================================================== */

/* Card magazin, pe telefon: eticheta „Magazinul tău” trece sub nume, ca titlul să aibă toată lățimea */
@media (max-width: 479.98px) {
  .store-card__head { flex-wrap: wrap; }
  .store-card__heading { flex-basis: calc(100% - 56px); }
  .store-card__badge { margin-left: 56px; }
}

/* Sugestiile dintr-o stare goală rămân aliniate la stânga (rândurile lungi se rup curat) */
.empty-state .check-list { text-align: left; }

/* Produs fără imagine: iconiță pe fundal deschis, în locul fotografiei */
.product-card__media .product-card__placeholder,
.gallery__main .product-card__placeholder {
  display: block;
  width: 40%;
  height: 100%;
  margin: 0 auto;
  color: var(--subtle);
}
.gallery__main .product-card__placeholder { width: 30%; min-height: 240px; }

/* Produs indisponibil pe pagina produsului */
.buy-box__stock--out { color: var(--danger); }

/* Sortarea ca formular (fără JS apare și butonul „Aplică”) */
.listing__sort .btn { flex: none; }

/* ---------- Pagina de mentenanță (503) ---------- */
.maintenance {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 320px);
}
.maintenance__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: 100vh;
  justify-content: center;
  padding: 40px var(--gutter);
}
.maintenance__card {
  width: 100%;
  max-width: 560px;
  padding: 36px 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}
.maintenance__logo {
  height: 34px;
  width: auto;
  margin: 0 auto 22px;
}
.maintenance__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: var(--fs-sm);
  font-weight: 800;
}
.maintenance__title {
  margin-top: 16px;
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.maintenance__text {
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--fs-md);
}
.maintenance__until {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  text-align: left;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 14px;
}
.maintenance__actions { margin-top: 24px; }
.maintenance__contact {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.maintenance__contact-title { font-size: 14px; font-weight: 800; }
.maintenance__contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.maintenance__contact-list li { display: inline-flex; align-items: center; gap: 8px; }
.maintenance__contact-list a { font-weight: 700; color: var(--brand-ink); }
.maintenance__contact-list a:hover { text-decoration: underline; }
.maintenance__foot { color: var(--subtle); font-size: var(--fs-sm); text-align: center; }

@media (min-width: 640px) {
  .maintenance__card { padding: 44px 48px 40px; }
  .maintenance__logo { height: 40px; }
}
.maintenance__until .icon { margin-top: 2px; }

/* ---------- Confirmarea adresei de email (/cont/verificare) ---------- */
.empty-state--success .empty-state__icon { background: var(--success-soft); color: var(--success); }

/* ==========================================================================
   Telefon: densitate
   Pe ecran mic, barele de sus ocupau 251 px din 812, adică aproape o treime din
   ecran înainte de primul produs. Aici se strâng barele și cardurile de produs,
   ca să încapă mai mult conținut, fără să se schimbe nimic pe desktop.
   ========================================================================== */
@media (max-width: 639.98px) {
  /* Bara neagră de sus: doar mesajul, mai scundă. */
  .topbar { font-size: var(--fs-xs); }
  .topbar__inner { min-height: 30px; }

  /* Rândurile logo / căutare / magazin, mai strânse. */
  .site-header__inner { gap: 6px 10px; padding-block: 6px 8px; }
  .logo__img { height: 24px; }
  .header-action { height: 40px; padding: 0 8px; }
  .cart-btn { height: 40px; padding: 0 10px; }
  .search__input { height: 40px; padding-left: 42px; }
  .search__icon { left: 14px; }

  /* Selectorul de magazin: o singură linie, cât un rând de listă. */
  .store-switch { gap: 8px; padding: 3px 8px 3px 3px; }
  .store-switch__icon { width: 28px; height: 28px; border-radius: 8px; }
  .store-switch__icon .icon { width: 18px; height: 18px; }
  .store-switch__name { font-size: 13.5px; }

  /* Bara de categorii: pe telefon, textele înșirate arătau ca o propoziție tăiată la marginea
     ecranului, din care se ghiceau o categorie și jumătate. Aici devin pastile, fiecare cu
     pictograma ei, lista curge până în marginea ecranului și are o estompare la dreapta, ca să
     se vadă că mai sunt categorii dacă tragi cu degetul. */
  .catnav__inner { position: relative; gap: 8px; }
  /* Linkul lung e înlocuit de butonul care deschide panoul cu toate categoriile. */
  .catnav__all { display: none; }
  .catnav__menu {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    height: 34px;
    padding: 0 13px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
  }

  /* Pe telefon bara ține doar butonul de meniu și „Promoții”. Categoriile înșirate încăpeau două
     și jumătate, se tăiau la margine și nu spuneau nimic util: ele se aleg din panoul deschis de
     butonul „Categorii” sau din dalele de pe pagina magazinului. Pe ecran mare banda rămâne
     întreagă, cu toate categoriile.
     Selectorul listei e scris cu părintele pentru că resetul „ul[class]” din core.css cântărește
     mai mult decât o singură clasă și altfel i-ar șterge spațierea. */
  .catnav__inner .catnav__list {
    gap: 6px;
    padding: 7px 0;
    overflow: visible;
  }
  .catnav__link { display: none; }
  .catnav__link--promo {
    display: inline-flex;
    height: 34px;
    padding: 0 13px;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13.5px;
  }
  .catnav__link--promo::after { display: none; }

  /* ----- Panoul cu toate categoriile ----- */
  .drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    justify-content: flex-start;
    visibility: hidden;
    pointer-events: none;
  }
  .drawer.is-open { visibility: visible; pointer-events: auto; }
  .drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(12 14 18 / 0.5);
    opacity: 0;
    transition: opacity 0.25s var(--ease);
  }
  .drawer.is-open .drawer__backdrop { opacity: 1; }
  .drawer__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: min(330px, 86vw);
    height: 100%;
    padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    background: var(--surface);
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease);
  }
  .drawer.is-open .drawer__panel { transform: none; }
  .drawer__head { display: flex; align-items: center; justify-content: space-between; }
  .drawer__title { font-size: var(--fs-lg); font-weight: 800; }
  .drawer__close {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-right: -8px;
    border-radius: var(--radius-pill);
    color: var(--muted);
  }
  .drawer__close:hover { background: var(--surface-3); color: var(--ink); }
  .drawer__store { margin-bottom: 8px; font-size: var(--fs-sm); color: var(--muted); }
  /* Scris cu părintele din același motiv ca banda de categorii: resetul „ul[class]” din core.css
     are specificitate mai mare și ar anula distanța până la butonul de jos. */
  .drawer__panel .drawer__list { display: grid; gap: 2px; margin-bottom: 14px; }
  .drawer__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
  }
  .drawer__item:hover { background: var(--surface-3); }
  .drawer__item[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
  .drawer__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 10px;
    background: var(--surface-3);
    color: var(--ink-2);
  }
  .drawer__icon .icon { width: 20px; height: 20px; }
  .drawer__item--promo { color: var(--accent); }
  .drawer__item--promo .drawer__icon { background: var(--accent-soft); color: var(--accent); }
  .drawer__panel > .btn { margin-top: auto; }

  /* Firul Ariadnei: o singură linie, fără curgere pe două rânduri cu săgeata rămasă
     singură pe al doilea. Ultima verigă e chiar pagina curentă, scrisă oricum în titlul
     de dedesubt, așa că pe telefon se arată doar drumul până la ea. */
  .breadcrumbs ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .breadcrumbs ol::-webkit-scrollbar { display: none; }
  .breadcrumbs li { white-space: nowrap; }
  .breadcrumbs li:last-child:not(:only-child) { display: none; }

  /* Pagina magazinului: categoriile trec deasupra bannerului, ca primul lucru de pe ecran
     să fie ce poți cumpăra, nu reclama și adresa magazinului. */
  .store-top { display: flex; flex-direction: column; }
  .store-top > .section { order: -1; padding-bottom: 0; }
  /* Tot aici, dalele se așază pe rânduri în loc să se deruleze: pe telefon se vedeau trei din șapte,
     adică exact ce reproșa clientul, că nu se înțelege ce categorii are magazinul. */
  .store-top .cat-tiles {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
    gap: 8px;
  }
  /* Dala „Toate categoriile” ar rămâne singură pe al treilea rând și repetă linkul din titlul
     secțiunii, așa că pe telefon grila se oprește curat la două rânduri de câte trei. */
  .store-top .cat-tile--all { display: none; }

  /* Cardul de produs: poza puțin mai scundă și marginile mai mici, ca să intre
     două rânduri întregi pe ecran în loc de unul și jumătate. */
  .product-card__media { aspect-ratio: 5 / 4; padding: 10px; }
  .product-card__body { padding: 0 10px 10px; gap: 5px; }
  .product-card__title { font-size: 13.5px; }
  .product-grid { gap: 8px; }
}
