:root {
  /* Paletă TrendNow — tokenii existenți (alias) propagă noile culori fără schimbări de layout. */
  --cta: #FF5C8A;
  --cta-hover: #FF4077;
  --cta-mid: #FF5080;
  --rating: #FFC83D;
  --rating-soft: #FFD56A;
  --info: #6CB4EE;
  --info-dark: #4DA8E8;
  --success: #65C18C;
  --success-bright: #7FD4A5;
  --success-dark: #4FA872;
  --trust: #C08BFF;
  --trust-mid: #D39AFF;
  --trust-dark: #8A64B7;

  --terracotta: var(--cta);
  --terracotta-mid: var(--cta-mid);
  --terracotta-dark: var(--cta-hover);
  --sage: var(--success);
  --sage-bright: var(--success-bright);
  --sage-dark: var(--success-dark);
  --honey: var(--rating);
  --honey-soft: var(--rating-soft);
  --clay: var(--cta-hover);

  --purple: var(--cta);
  --purple-mid: var(--cta-mid);
  --purple-dark: var(--cta-hover);
  --orange: var(--rating);
  --orange-soft: var(--rating-soft);
  --green: var(--success);
  --green-bright: var(--success-bright);
  --green-dark: var(--success-dark);
  --blue-feature: var(--info);
  --yellow: var(--rating);
  --yellow-box: var(--rating-soft);

  --pf-trust: var(--trust);
  --pf-trust-mid: var(--trust-mid);
  --pf-trust-dark: var(--trust-dark);
  --pf-trust-rgb: 192, 139, 255;
  --pf-trust-text: #fff;

  --pf-buy: var(--cta);
  --pf-buy-mid: var(--cta-mid);
  --pf-buy-dark: var(--cta-hover);
  --pf-buy-rgb: 255, 92, 138;
  --pf-buy-text: #fff;

  --pf-safe: var(--success);
  --pf-safe-mid: var(--success-bright);
  --pf-safe-dark: var(--success-dark);
  --pf-safe-rgb: 101, 193, 140;
  --pf-safe-text: #fff;

  --pf-social: var(--rating);
  --pf-social-mid: var(--rating-soft);
  --pf-social-dark: #E6B020;
  --pf-social-rgb: 255, 200, 61;
  --pf-social-text: #422006;

  --pf-tint-trust: color-mix(in srgb, var(--pf-trust) 10%, #fff);
  --pf-tint-trust-soft: color-mix(in srgb, var(--pf-trust) 5%, #fff);
  --pf-tint-buy: color-mix(in srgb, var(--pf-buy) 14%, #fff);
  --pf-tint-safe: color-mix(in srgb, var(--pf-safe) 12%, #fff);
  --pf-tint-social: color-mix(in srgb, var(--pf-social) 22%, #fff);

  --text: #1F2340;
  --muted: #5D6480;
  --bg: #FAFAFA;
  --white: #fff;
  --surface: #FFFFFF;
  --surface-hover: #FFF7F9;
  --nav-link: #6CB4EE;
  --page-bg-1: #FAFAFA;
  --page-bg-2: #FFFFFF;
  --page-bg-3: #FFF7F9;
  --banner-cta-1: #FF5C8A;
  --banner-cta-2: #FF4077;
  --banner-cta-text: #FFFFFF;
  --price-sale: var(--cta-hover);
  --brand-rgb: 255, 92, 138;
  --brand-dark-rgb: 255, 64, 119;

  --pf-btn-primary: var(--cta);
  --pf-btn-primary-hover: var(--cta-hover);
  --pf-btn-primary-text: #fff;
  --pf-btn-cart: var(--cta);
  --pf-btn-cart-hover: var(--cta-hover);
  --pf-btn-cart-text: #fff;

  /* Tipografie */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-heading: var(--font-head);
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  /* Raza colțurilor — fallback; suprascris de shop_theme_style_tag din Admin */
  --radius: 12px;
  --radius-pill: min(999px, calc(var(--radius) * 50));
  --radius-md: max(0px, calc(var(--radius) * 0.65));
  --radius-sm: max(0px, calc(var(--radius) * 0.4));
  --radius-lg: max(0px, calc(var(--radius) * 1.2));
  --radius-xl: max(0px, calc(var(--radius) * 1.4));
  /* Umbre calde și difuze (nu gri-rece) */
  --shadow: 0 10px 34px rgba(var(--brand-rgb), 0.14), 0 2px 8px rgba(61, 53, 46, 0.06);
  --shadow-soft: 0 6px 18px rgba(61, 53, 46, 0.08);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  overscroll-behavior-x: none;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at top center, color-mix(in srgb, var(--orange) 10%, transparent) 0%, color-mix(in srgb, var(--purple) 4%, transparent) 26%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, var(--page-bg-1) 0%, var(--page-bg-2) 34%, var(--page-bg-3) 100%);
}

/* Titluri cu serif cald (Fraunces) pentru aerul „natural" */
h1, h2, h3, h4, h5,
.shop-hero__title, .section-title, .product-title, .admin-page-title {
  font-family: var(--font-head);
  letter-spacing: -0.01em;
}

main {
  overflow-x: hidden;
  max-width: 100%;
}

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

img,
video {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  min-width: 0;
  box-sizing: border-box;
}

/* Spațiu lateral în pagină — fără dublare pe header (acolo rămâne doar .site-header__inner) */
.site-frame .container:not(.site-header__inner) {
  padding-left: clamp(1rem, 3.5vw, 1.85rem);
  padding-right: clamp(1rem, 3.5vw, 1.85rem);
}

/* Spațiu lavandă în jurul site-ului */
.page-shell--frame {
  padding: 18px max(14px, env(safe-area-inset-right)) 34px max(14px, env(safe-area-inset-left));
  box-sizing: border-box;
  max-width: 100%;
}

/* Card unic: header + pagini + footer, fără „fâșie” între ele */
.site-frame {
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 18px 55px rgba(var(--brand-rgb), 0.12),
    0 4px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(var(--brand-rgb), 0.08);
}

.store-card {
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 18px 55px rgba(var(--brand-rgb), 0.12),
    0 4px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(var(--brand-rgb), 0.08);
}

/* Conținutul paginilor în interiorul site-frame: fără al doilea „card” alb */
.store-card--framed {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid rgba(var(--brand-rgb), 0.1);
  position: relative;
  top: 0;
  z-index: 50;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  box-sizing: border-box;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 0.75rem;
  padding: 0.9rem clamp(0.85rem, 3vw, 1.35rem) 1rem;
  min-width: 0;
  max-width: 100%;
}

.site-header .logo {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.site-header__end {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.site-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--purple) 18%, var(--surface));
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--purple, var(--text));
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-header__menu-toggle:hover {
  background: color-mix(in srgb, var(--purple) 6%, var(--surface));
  border-color: color-mix(in srgb, var(--purple) 45%, var(--surface));
}

.site-header__menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-header.is-menu-open .site-header__menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .site-header__menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .site-header__menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .site-header__menu-toggle {
    display: inline-flex;
  }

  .site-header .nav--main {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex: 1 1 100%;
    order: 10;
    gap: 0.5rem;
    padding-top: 0.55rem;
    margin-top: 0.15rem;
    border-top: 1px solid rgba(var(--brand-rgb), 0.12);
  }

  .site-header.is-menu-open .nav--main {
    display: flex;
  }

  .site-header .nav--main a {
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  .btn-fav-header__label {
    display: none;
  }

  .btn-fav-header {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .btn-fav-header__count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    font-size: 0.72rem;
  }
}

@media (min-width: 768px) {
  .site-header__inner {
    gap: 1rem 1.5rem;
    padding: 1rem clamp(1.1rem, 3.5vw, 1.85rem) 1.1rem;
  }

  .site-header .logo {
    flex: 0 1 auto;
  }

  .site-header .nav--main {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
    order: unset;
    width: auto;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
  }

  .site-header__end {
    flex: 0 0 auto;
    gap: 0.65rem 1.25rem;
  }
}

.logo {
  font-weight: 900;
  font-size: clamp(1.15rem, 4.2vw, 2.25rem);
  letter-spacing: 0.02em;
  background: linear-gradient(95deg, var(--purple) 0%, var(--purple-mid) 45%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  gap: 0.35rem 1.25rem;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--nav-link);
  row-gap: 0.5rem;
}

.nav a {
  padding: 0.45rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--purple);
  border-bottom-color: rgba(var(--brand-rgb), 0.4);
}

.nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  background: #25d366;
  color: #fff !important;
  padding: 0.38rem 0.78rem;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-weight: 800;
  border-bottom: none !important;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.35);
}

.nav-whatsapp:hover {
  filter: brightness(1.06);
  color: #fff !important;
  border-bottom: none !important;
}

/* Buton flotant WhatsApp (dreapta-jos), pe toate paginile cu footer shop */
.floating-whatsapp {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.floating-whatsapp__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .floating-whatsapp {
    width: 56px;
    height: 56px;
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(5.5rem, env(safe-area-inset-bottom));
  }
}

.site-header .nav--main {
  gap: 0.35rem 0.6rem;
}

/* Toate link-urile din navigarea principala se afiseaza ca pill-uri,
   asemenea butonului "Favorite" — pentru a avea un design unitar. */
.site-header .nav--main a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--nav-link, var(--text));
  border: 1px solid color-mix(in srgb, var(--purple) 18%, var(--surface));
  border-bottom: 1px solid color-mix(in srgb, var(--purple) 18%, var(--surface));
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.site-header .nav--main a:hover {
  color: var(--purple);
  background: color-mix(in srgb, var(--purple) 6%, var(--surface));
  border-color: color-mix(in srgb, var(--purple) 45%, var(--surface));
  border-bottom-color: color-mix(in srgb, var(--purple) 45%, var(--surface));
  transform: translateY(-1px);
}

.btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(180deg, var(--purple-mid), var(--purple));
  color: var(--white);
  padding: 0.72rem 1rem;
  border-radius: var(--radius);
  font-weight: 800;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.35);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .btn-cart {
    padding: 0.55rem 0.72rem;
    font-size: 0.88rem;
    border-radius: var(--radius);
  }
}

.btn-cart:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(var(--brand-rgb), 0.4);
  color: var(--white);
  text-decoration: none;
}

.btn-cart__ico { font-size: 1rem; }

/* Dialog „Adăugat în coș” (mod multi) */
.cart-added-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.cart-added-modal.is-open {
  display: flex;
}

.cart-added-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
}

.cart-added-modal__box {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 1.5rem 1.35rem 1.4rem;
  box-shadow: 0 22px 50px rgba(var(--brand-dark-rgb), 0.22), 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(var(--brand-rgb), 0.12);
  text-align: center;
}

.cart-added-modal__icon {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.cart-added-modal__title {
  margin: 0 0 0.45rem;
  font-size: 1.22rem;
  font-weight: 900;
  color: #24324a;
  line-height: 1.25;
}

.cart-added-modal__product {
  margin: 0 0 1.15rem;
  font-size: 0.98rem;
  color: #5f6b76;
  line-height: 1.45;
  font-weight: 600;
}

.cart-added-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-cart-added {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: none;
  box-sizing: border-box;
}

.btn-cart-added--primary {
  background: linear-gradient(180deg, var(--purple-mid), var(--purple));
  color: var(--white);
  box-shadow: 0 6px 18px rgba(var(--brand-dark-rgb), 0.25);
}

.btn-cart-added--primary:hover {
  filter: brightness(1.05);
}

.btn-cart-added--secondary {
  background: #f8fafc;
  color: #374151;
  border: 1px solid #e2e8f0;
}

.btn-cart-added--secondary:hover {
  background: #f1f5f9;
}

.footer-trust {
  background: transparent;
  padding: 1.5rem 0 1.25rem;
  margin-top: 0;
  border-top: 1px solid rgba(var(--brand-rgb), 0.1);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 0;
}

@media (min-width: 700px) {
  .trust-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.trust-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.trust-cell__ico {
  font-size: 1.5rem;
  line-height: 1;
}



/* ===== MULTI PRODUCTS HOMEPAGE ===== */

.catalog-hero{
  padding: 1.25rem 0 0.4rem;
}

.catalog-hero__inner{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 980px){
  .catalog-hero__inner{
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.25rem;
  }
}

/* Mobil: text hero sus, produse la mijloc, imagine promo jos */
@media (max-width: 979px){
  .store-card--framed{
    display: flex;
    flex-direction: column;
  }

  .store-card--framed > .catalog-hero,
  .store-card--framed > .catalog-hero > .container,
  .store-card--framed > .catalog-hero > .container > .catalog-hero__inner{
    display: contents;
  }

  .store-card--framed .catalog-hero__copy{
    order: 1;
    margin-top: 1.25rem;
    margin-inline: clamp(1rem, 3.5vw, 1.85rem);
  }

  .store-card--framed .catalog-section{
    order: 2;
  }

  .store-card--framed .catalog-hero__card{
    order: 3;
    margin-top: 0.75rem;
    margin-inline: clamp(1rem, 3.5vw, 1.85rem);
    margin-bottom: 0.4rem;
  }
}

.catalog-hero__copy{
  min-width: 0;
  background: linear-gradient(135deg, #fdfbf6 0%, #fff7ed 100%);
  border: 1px solid rgba(var(--brand-rgb),0.10);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem;
  box-shadow: 0 10px 30px rgba(var(--brand-rgb),0.08);
}

.catalog-hero__eyebrow{
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.catalog-hero__title{
  margin: 0 0 0.65rem;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.08;
  font-weight: 900;
  color: #24324a;
}

.catalog-hero__text-wrap{
  margin: 0;
  max-width: 52rem;
}

.catalog-hero__text-p{
  margin: 0 0 0.85em;
  color: #5f6b76;
  font-size: 1rem;
  line-height: 1.65;
}

.catalog-hero__text-p:last-child{
  margin-bottom: 0;
}

/* compat: vechi markup cu un singur <p class="catalog-hero__text"> */
.catalog-hero__text{
  margin: 0;
  color: #5f6b76;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 52rem;
}

.catalog-hero__badges{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.catalog-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--purple) 20%, var(--surface));
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 800;
  color: #3c4858;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.catalog-badge__img{
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  flex-shrink: 0;
}

.catalog-badge__emoji{
  font-size: 1.2em;
  line-height: 1;
  flex-shrink: 0;
}

.catalog-hero__card{
  min-width: 0;
  background: linear-gradient(180deg, var(--purple-mid), var(--purple));
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 14px 34px rgba(var(--brand-rgb),0.20);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.catalog-hero__card--full-image{
  padding: 0;
  overflow: hidden;
  min-height: 220px;
  position: relative;
  background: #ede9fe;
}

.catalog-hero__card-cover{
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center;
}

.catalog-hero__card-cover--video{
  background: #000;
  pointer-events: none;
}

.catalog-hero__card-icon-img{
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  margin-bottom: 0.7rem;
  flex-shrink: 0;
}

.catalog-hero__card-icon{
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.7rem;
}

.catalog-hero__card-title{
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
}

.catalog-hero__card-text{
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
}

.catalog-section{
  padding: 0.8rem 0 2rem;
}

.catalog-section__head{
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.catalog-section__title{
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 900;
  color: #24324a;
}

.catalog-section__sub{
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.96rem;
}

.catalog-section__count{
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--purple) 20%, var(--surface));
  border-radius: var(--radius-pill);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--purple);
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.catalog-subsection{
  margin-top: 1.75rem;
}
.catalog-subsection:first-of-type{
  margin-top: 0;
}
.catalog-subsection:not(:first-of-type){
  content-visibility: auto;
  contain-intrinsic-size: 1200px;
}
.catalog-subsection__title{
  margin: 0 0 0.85rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: #334155;
  letter-spacing: -0.02em;
}

.catalog-filters{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  margin:0 0 .9rem;
  max-width:100%;
}
.catalog-filter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.45rem .85rem;
  border-radius: var(--radius-pill);
  border:1px solid color-mix(in srgb, var(--purple) 25%, var(--surface));
  background: var(--surface);
  color:#6b7280;
  font-weight:700;
  font-size:.9rem;
}
.catalog-filter.is-active,
.catalog-filter:hover{
  background:linear-gradient(180deg,var(--purple-mid),var(--purple));
  color:#fff;
  border-color:transparent;
}

.catalog-filters-form{
  margin:0 0 .9rem;
  width:100%;
}
.catalog-filters-row{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem .85rem;
  align-items:flex-end;
  justify-content:flex-end;
  width:100%;
}
.catalog-filter-label{
  display:block;
  font-size:.78rem;
  font-weight:800;
  color:#64748b;
  letter-spacing:.02em;
}
.catalog-filter-field{
  display:flex;
  flex-direction:column;
  gap:.28rem;
  min-width:min(100%, 13rem);
}
.catalog-filter-field--cats{
  min-width:min(100%, 15.5rem);
  position:relative;
  z-index:5;
}
.catalog-filter-field--tip{
  min-width:min(100%, 17.5rem);
  position:relative;
  z-index:2;
}
.catalog-filter-dd{
  position:relative;
  width:100%;
  max-width:18rem;
  margin-left:auto;
}
.catalog-filter-trigger{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  width:100%;
  padding:.52rem .75rem;
  border-radius: var(--radius-md);
  border:1px solid color-mix(in srgb, var(--purple) 22%, var(--surface));
  background:linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--purple) 4%, var(--surface)));
  color:#334155;
  font-weight:700;
  font-size:.9rem;
  cursor:pointer;
  text-align:left;
  box-shadow:0 2px 8px rgba(15,23,42,.05);
  transition:border-color .15s, box-shadow .15s;
}
.catalog-filter-trigger:hover{
  border-color:color-mix(in srgb, var(--purple) 40%, var(--surface));
  box-shadow:0 4px 12px rgba(91,33,182,.08);
}
.catalog-filter-trigger:focus-visible{
  outline:2px solid color-mix(in srgb, var(--purple) 45%, transparent);
  outline-offset:2px;
}
.catalog-filter-trigger__text{
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.catalog-filter-trigger__chev{
  flex-shrink:0;
  width:.65rem;
  height:.65rem;
  border-right:2px solid color-mix(in srgb, var(--purple) 55%, #64748b);
  border-bottom:2px solid color-mix(in srgb, var(--purple) 55%, #64748b);
  transform:rotate(45deg) translateY(-2px);
  margin-top:2px;
  opacity:.85;
}
/* [hidden] trebuie să câștige față de display:flex — altfel panoul rămâne mereu vizibil */
.catalog-filter-dd__panel[hidden]{
  display:none !important;
}
.catalog-filter-dd__panel:not([hidden]){
  display:flex;
  flex-direction:column;
}
.catalog-filter-dd__panel{
  position:absolute;
  right:0;
  top:calc(100% + 6px);
  min-width:min(100vw - 2rem, 18rem);
  max-width:min(100vw - 2rem, 22rem);
  max-height:min(70vh, 22rem);
  border-radius: var(--radius-md);
  border:1px solid color-mix(in srgb, var(--purple) 18%, var(--surface));
  background: var(--surface);
  box-shadow:0 12px 40px rgba(15,23,42,.12);
  z-index:100;
  overflow:hidden;
}
.catalog-filter-dd__scroll{
  overflow:auto;
  padding:.35rem .45rem;
  flex:1;
}
.catalog-filter-check{
  display:flex;
  align-items:flex-start;
  gap:.5rem;
  padding:.42rem .5rem;
  border-radius: var(--radius-sm, 8px);
  cursor:pointer;
  font-size:.88rem;
  font-weight:600;
  color:#334155;
  line-height:1.35;
  transition:background .12s;
}
.catalog-filter-check:hover{
  background:color-mix(in srgb, var(--purple) 8%, var(--surface));
}
.catalog-filter-check input{
  margin-top:.2rem;
  width:1rem;
  height:1rem;
  accent-color: var(--purple);
  flex-shrink:0;
}
.catalog-filter-dd__footer{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:.45rem;
  padding:.5rem .55rem;
  border-top:1px solid color-mix(in srgb, var(--purple) 12%, var(--surface));
  background:color-mix(in srgb, var(--purple) 4%, var(--surface));
}
.catalog-filter-btn{
  border-radius: var(--radius-pill);
  padding:.38rem .85rem;
  font-size:.82rem;
  font-weight:800;
  cursor:pointer;
  border:1px solid transparent;
  transition:background .15s, color .15s, border-color .15s;
}
.catalog-filter-btn--primary{
  background:linear-gradient(180deg,var(--purple-mid),var(--purple));
  color:#fff;
  border-color:transparent;
}
.catalog-filter-btn--primary:hover{
  filter:brightness(1.03);
}
.catalog-filter-btn--ghost{
  background: var(--surface);
  color:#475569;
  border-color:color-mix(in srgb, var(--purple) 22%, var(--surface));
}
.catalog-filter-btn--ghost:hover{
  background:color-mix(in srgb, var(--purple) 10%, var(--surface));
}
.catalog-filter-select-wrap{
  width:100%;
  max-width:18rem;
  margin-left:auto;
}
.catalog-filter-select{
  width:100%;
  max-width:18rem;
  padding:.52rem 2.25rem .52rem .75rem;
  border-radius: var(--radius-md);
  border:1px solid color-mix(in srgb, var(--purple) 22%, var(--surface));
  background-color: var(--surface);
  color:#334155;
  font-weight:700;
  font-size:.9rem;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(15,23,42,.05);
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E"), linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--purple) 4%, var(--surface)));
  background-repeat:no-repeat, no-repeat;
  background-position:right .65rem center, 0 0;
  background-size:.65rem auto, 100% 100%;
}
.catalog-filter-select:hover{
  border-color:color-mix(in srgb, var(--purple) 40%, var(--surface));
}
.catalog-filter-select:focus{
  outline:2px solid color-mix(in srgb, var(--purple) 45%, transparent);
  outline-offset:2px;
}
@media (max-width: 640px){
  .catalog-filters-row{
    justify-content:stretch;
  }
  .catalog-filter-field--cats,
  .catalog-filter-field--tip{
    min-width:100%;
    max-width:100%;
  }
  .catalog-filter-dd,
  .catalog-filter-select-wrap{
    max-width:none;
    margin-left:0;
  }
  .catalog-filter-dd__panel{
    right:0;
    left:0;
    max-width:none;
  }
}

.products-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 700px){
  .products-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px){
  .products-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-similar-wrap{
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(var(--brand-rgb),0.12);
}

.product-card{
  background: var(--surface);
  border: 1px solid rgba(var(--brand-rgb),0.10);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(var(--brand-rgb),0.07), 0 3px 10px rgba(0,0,0,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.product-card:hover{
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(var(--brand-rgb),0.12), 0 8px 18px rgba(0,0,0,0.06);
  border-color: rgba(var(--brand-rgb),0.18);
}

.product-card__media{
  position: relative;
  display: block;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.07);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card__media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 1rem;
  transition: transform 0.22s ease;
}

.product-card:hover .product-card__media img{
  transform: scale(1.03);
}

.product-card__placeholder{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 700;
  background: linear-gradient(135deg,#f3e8ff,#e0f2fe);
}

.product-card__badge{
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(180deg, #ff7a59, #ff5722);
  color: #fff;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(255,87,34,0.25);
}

.product-card__body{
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1rem 1.05rem;
  flex: 1;
}

.product-card__kicker{
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
}

.product-card__title{
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 900;
  color: #1f2937;
  overflow-wrap: anywhere;
}

.product-card__title a{
  color: inherit;
  text-decoration: none;
}

.product-card__text{
  margin: 0;
  color: #667085;
  font-size: 0.94rem;
  line-height: 1.55;
}

.product-card__price-row{
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.product-card__rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0.15rem 0 0;
  padding: 0.05rem 0;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
  transition: opacity 0.15s ease;
}

.product-card__rating:hover,
.product-card__rating:focus-visible {
  opacity: 0.88;
  text-decoration: none;
}

.product-card__rating:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

.product-card__rating .stars {
  font-size: 0.88rem;
  letter-spacing: 1px;
  line-height: 1;
}

.product-card__rating-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
}

.product-card__prices{
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.product-card__price-label{
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-card__price{
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--price-sale);
}

.product-card__old-price{
  font-size: 0.95rem;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 700;
}

.product-card__qty-offers{
  margin: 0.55rem 0 0;
  padding: 0.65rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 165, 233, 0.28);
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
}

.product-card__qty-offers-label{
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0369a1;
}

.product-card__qty-offers-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.product-card__qty-offer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.product-card__qty-offer-left{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.product-card__qty-offer-qty{
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.product-card__qty-offer-badge{
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-pill);
  background: #0ea5e9;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.2;
}

.product-card__qty-offer-saves{
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  align-items: flex-start;
}

.product-card__qty-offer-save{
  font-size: 0.76rem;
  font-weight: 700;
  color: #15803d;
  line-height: 1.2;
}

.product-card__qty-offer-save-total{
  font-size: 0.8rem;
  font-weight: 800;
  color: #166534;
  line-height: 1.2;
}

.product-card__qty-offer-price-wrap{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  text-align: right;
}

.product-card__qty-offer-price{
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--price-sale);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.product-card__qty-offer-unit{
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1.2;
}

.product-purchase-card .product-card__qty-offers{
  margin-top: 0.5rem;
  margin-bottom: 0.35rem;
}

.product-purchase-card .product-card__qty-offer-price{
  font-size: 1.38rem;
}

.product-purchase-card .hero-buy{
  margin-top: 0.15rem;
  gap: 0.55rem;
}

.product-purchase-card .hero-buy__row{
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.product-purchase-card .hero-buy__row .btn-hero{
  min-height: 58px;
  padding: 1rem 1.15rem;
  font-size: 1.12rem;
  box-shadow: 0 8px 24px rgba(var(--brand-dark-rgb), 0.32);
}

.product-purchase-card .hero-buy__row .btn-hero--whatsapp{
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

.product-purchase-card .hero-buy__row .btn-hero__icon{
  font-size: 1.25rem;
}

.product-purchase-card .hero-buy__row .btn-hero__icon svg{
  width: 22px;
  height: 22px;
}

@media (min-width: 400px) {
  .product-purchase-card .hero-buy__row .btn-hero{
    min-height: 58px;
    font-size: 1.12rem;
    padding: 1rem 1rem;
  }
}

.product-purchase-card .hero-buy .fav-toggle--hero-buy,
.product-purchase-card .hero-buy .fav-toggle--inline{
  min-height: 54px;
  padding: 0.95rem 1.4rem;
  font-size: 1.06rem;
}

.price-box__unit-hint{
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  background: #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}

.product-card__actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.product-card__buy-form{
  margin: 0;
}

.btn-card-secondary,
.btn-card-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 0.98rem;
  text-decoration: none;
}

.btn-card-secondary{
  background: var(--surface);
  color: var(--purple);
  border: 1px solid color-mix(in srgb, var(--purple) 28%, #e9e5ec);
}

.btn-card-secondary:hover{
  background: #fdfbf6;
}

.btn-card-primary{
  border: none;
  cursor: pointer;
  color: var(--white);
  background: linear-gradient(180deg, var(--purple-mid), var(--purple));
  box-shadow: 0 8px 18px rgba(var(--brand-rgb),0.18);
}

.btn-card-primary:hover{
  filter: brightness(1.04);
}

@media (max-width: 699px){
  .catalog-hero__copy,
  .catalog-hero__card{
    border-radius: var(--radius);
  }

  .product-card{
    border-radius: var(--radius);
  }

  .product-card__body{
    padding: 0.9rem;
  }

  .products-grid .product-card:nth-child(n+5){
    content-visibility: auto;
    contain-intrinsic-size: 520px;
  }
}

@media (hover: none){
  .product-card:hover{
    transform: none;
    box-shadow: 0 10px 30px rgba(var(--brand-rgb),0.07), 0 3px 10px rgba(0,0,0,0.04);
    border-color: rgba(var(--brand-rgb),0.10);
  }

  .product-card:hover .product-card__media img{
    transform: none;
  }
}




/* =========================
   Favorite (wishlist)
   ========================= */

/* Heart button header */
.btn-fav-header {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--nav-link, var(--text));
  border: 1px solid color-mix(in srgb, var(--purple) 18%, var(--surface));
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
  position: relative;
}
.btn-fav-header:hover {
  color: var(--purple, var(--text));
  border-color: color-mix(in srgb, var(--purple) 45%, var(--surface));
  background: color-mix(in srgb, var(--purple) 6%, var(--surface));
  transform: translateY(-1px);
}
.btn-fav-header__icon {
  color: var(--purple, var(--text));
}
.btn-fav-header__label {
  display: inline-block;
}
.btn-fav-header__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.4rem;
  border-radius: var(--radius-pill);
  background: var(--purple, #c0794a);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}
.btn-fav-header__count[hidden] {
  display: none !important;
}
@media (max-width: 640px) {
  .btn-fav-header__label { display: none; }
  .btn-fav-header { padding: 0.55rem 0.7rem; }
}

/* Heart toggle button (product cards + hero) */
.fav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.15s ease, transform 0.12s ease;
}
.fav-toggle:focus-visible {
  outline: 2px solid var(--purple, #c0794a);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.fav-toggle .fav-toggle__icon-fill {
  fill-opacity: 0;
  transition: fill-opacity 0.15s ease;
}
.fav-toggle.is-active {
  color: var(--price-sale, #dc2626);
}
.fav-toggle.is-active .fav-toggle__icon-fill {
  fill-opacity: 1;
}
.fav-toggle.is-animating {
  transform: scale(1.18);
}

/* Variant: floating on product cards (top-right of media) */
.product-card {
  position: relative;
}
.fav-toggle--card {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  color: #6b7280;
}
.fav-toggle--card:hover {
  color: var(--price-sale, #dc2626);
  background: #fff;
  transform: scale(1.06);
}
.fav-toggle--card.is-active {
  color: var(--price-sale, #dc2626);
  background: #fff;
}

/* Variant: inline button under the Buy button (product page) — matches btn-hero width */
.fav-toggle--inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 420px;
  min-height: 58px;
  margin: 0.75rem auto 0;
  padding: 1rem 1.65rem;
  border-radius: var(--radius);
  background: var(--surface, #fff);
  border: 2px solid color-mix(in srgb, var(--purple) 25%, var(--surface));
  color: var(--muted, #6b7280);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
@media (max-width: 900px) {
  .fav-toggle--inline { max-width: none; }
}
.fav-toggle--inline:hover {
  color: var(--price-sale, #dc2626);
  border-color: color-mix(in srgb, var(--price-sale) 40%, var(--surface));
  background: color-mix(in srgb, var(--price-sale) 5%, var(--surface));
  transform: translateY(-1px);
}
.fav-toggle--inline.is-active {
  color: var(--price-sale, #dc2626);
  border-color: color-mix(in srgb, var(--price-sale) 55%, var(--surface));
  background: color-mix(in srgb, var(--price-sale) 6%, var(--surface));
}
.hero-buy .fav-toggle--hero-buy,
.hero-buy .fav-toggle--inline {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(var(--brand-rgb), 0.08);
}

@media (max-width: 360px) {
  .hero-buy__row .btn-hero {
    min-height: 58px;
  }

  .product-purchase-card .hero-buy__row .btn-hero {
    min-height: 56px;
  }
}
.fav-toggle__label-inline {
  display: inline-block;
}
.fav-toggle--inline [data-fav-label-active] { display: none; }
.fav-toggle--inline [data-fav-label-inactive] { display: inline-block; }
.fav-toggle--inline.is-active [data-fav-label-active] { display: inline-block; }
.fav-toggle--inline.is-active [data-fav-label-inactive] { display: none; }

/* Favorites page */
.favorites-page {
  padding-top: 1.6rem;
  padding-bottom: 2.5rem;
}
.favorites-page__head {
  margin-bottom: 1.25rem;
}
.favorites-page__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--text);
}
.favorites-page__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.favorites-page__hint a {
  color: var(--purple, #c0794a);
  font-weight: 700;
  text-decoration: underline;
}
.favorites-page__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  flex-wrap: wrap;
}
.favorites-page__count {
  color: var(--muted);
  font-size: 0.95rem;
}
.favorites-page__clear {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--price-sale) 30%, var(--surface));
  color: var(--price-sale, #dc2626);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}
.favorites-page__clear:hover {
  background: color-mix(in srgb, var(--price-sale) 8%, var(--surface));
}
.favorites-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--purple) 15%, var(--surface));
  border-radius: var(--radius);
}
.favorites-empty__icon {
  font-size: 3.5rem;
  color: var(--purple, #c0794a);
  margin-bottom: 0.75rem;
  line-height: 1;
}
.favorites-empty__title {
  margin: 0 0 0.4rem;
  color: var(--text);
}
.favorites-empty__text {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

/* Cookie banner + formulare magazin */
.cookie-banner {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10001;
  background: #111827;
  color: #f9fafb;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  padding: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-banner__btn {
  border: 0;
  background: #2563eb;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.cookie-banner__btn--ghost {
  border: 1px solid #4b5563;
  background: transparent;
  color: #f9fafb;
}

.cart-voucher-card {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #fafafa;
}

.cart-voucher-card__hint {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.45;
}

.cart-voucher-form input[type="text"] {
  flex: 1;
  min-width: 140px;
  padding: 0.5rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: inherit;
}

.cart-alert--mixed {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  border-radius: var(--radius);
  color: #78350f;
}

.theme-pill-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.45rem;
  border-radius: var(--radius-pill);
  background: #b45309;
  color: #fff;
  font-weight: 900;
}

.page-shell :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]) {
  border-radius: var(--radius-sm);
}


/* ============================================================
   Natural redesign — finisaje componente (paletă lemn/Montessori)
   Adăugat la final: suprascrie blând, fără a atinge regulile vechi.
   ============================================================ */

/* Titluri — serif cald Fraunces, ton maro */
.catalog-hero__title, .product-card__title, .section-title,
.shop-section__title, .product-title, h1, h2 {
  font-family: var(--font-head);
  color: var(--text);
  font-weight: 600;
}
.catalog-hero__eyebrow {
  color: var(--purple-dark);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Carduri produs — margine caldă subtilă, umbră difuză, ridicare blândă la hover.
   Folosesc token-urile controlate din admin (--purple/--green/--brand-rgb). */
.product-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--purple) 14%, #efe6d8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(var(--brand-rgb), 0.16), 0 4px 12px rgba(61,53,46,.08);
  border-color: color-mix(in srgb, var(--purple) 32%, transparent);
}
.product-card__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.07);
}
.product-card__title { line-height: 1.3; }
.product-card__price { color: var(--purple-dark); }

/* Butoane — urmează culorile din Admin → Site (Design & Culori) */
.btn-card-primary:not(.btn-card-primary--playful),
.catalog-filter-btn--primary,
.pf-nav__all {
  background: linear-gradient(135deg, var(--pf-btn-primary, var(--purple)) 0%, var(--pf-btn-primary-hover, var(--purple-dark)) 100%);
  color: var(--pf-btn-primary-text, #fff);
  border: none;
  box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.28);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-card-primary:not(.btn-card-primary--playful):hover,
.catalog-filter-btn--primary:hover,
.pf-nav__all:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(var(--brand-rgb), 0.34);
}
.shop-template .btn-card-primary--playful {
  background: var(--pf-btn-cart, var(--orange, #ff9f1c));
  color: var(--pf-btn-cart-text, #fff);
  border: none;
  box-shadow: var(--pf-btn-shadow-cart, 0 4px 14px rgba(var(--cart-btn-rgb, 255, 159, 28), 0.35));
}
.shop-template .btn-card-primary--playful:hover:not(:disabled) {
  background: var(--pf-btn-cart-hover, #e88a00);
}
.btn-primary,
.pf-btn--primary {
  background: var(--pf-btn-primary, var(--purple));
  color: var(--pf-btn-primary-text, #fff);
  border-color: var(--pf-btn-primary, var(--purple));
}
.btn-primary:hover,
.pf-btn--primary:hover {
  background: var(--pf-btn-primary-hover, var(--purple-dark));
}
.btn-card-secondary {
  background: color-mix(in srgb, var(--green) 14%, #fff);
  color: var(--green-dark);
  border: 1px solid color-mix(in srgb, var(--green) 38%, transparent);
}
.btn-card-secondary:hover { background: color-mix(in srgb, var(--green) 22%, #fff); }

/* Linkuri și focus accesibil */
a { color: var(--info-dark); }
a:hover:not(.btn-cart):not(.btn-card-primary):not(.btn-card-secondary):not(.nav-whatsapp):not(.btn-fav-header):not(.btn-hero):not(.btn-banner):not(.btn-checkout):not(.btn-checkout-confirm) {
  color: var(--info);
}
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Header */
.site-header {
  background: color-mix(in srgb, var(--bg) 85%, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--cta) 14%, #ece3d4);
  backdrop-filter: saturate(1.05) blur(6px);
}
.nav--main a:hover { color: var(--cta); }

/* Badge reducere / preț */
.product-card__price--old { color: var(--muted); }

/* ----- Preț format românesc: 1.299,99 Lei ----- */
.price-amt {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  line-height: 1.15;
}
.price-amt .price-int {
  font-variant-numeric: tabular-nums;
}
.price-amt .price-dec {
  font-size: 0.62em;
  font-weight: 700;
  vertical-align: baseline;
  margin-left: 0;
  letter-spacing: 0;
}
.price-amt .price-cur {
  font-size: 0.6em;
  font-weight: 700;
  vertical-align: baseline;
  margin-left: 0.2em;
  letter-spacing: 0.01em;
}

/* ----- PDP mobil: cele 3 butoane (coș / WhatsApp / favorite) stivuite, la dimensiunea celui de favorite ----- */
@media (max-width: 640px) {
  .hero-buy__row {
    gap: 0.6rem;
  }
  .hero-buy__row .btn-hero,
  .product-purchase-card .hero-buy__row .btn-hero,
  .hero-buy .fav-toggle--hero-buy,
  .product-purchase-card .hero-buy .fav-toggle--hero-buy {
    min-height: 54px;
    padding: 0.95rem 1.4rem;
    font-size: 1.06rem;
    width: 100%;
  }
  /* la lățime plină încape textul complet pe butonul WhatsApp */
  .hero-buy__row .btn-hero__text-full { display: inline; }
  .hero-buy__row .btn-hero__text-short { display: none; }
}
