/*---------------------------------------------
  Stelini — stratul de UX/miscare (ux.css)
  Se incarca ULTIMUL pe fiecare pagina, peste app.css.
  Motivul vizual: "sterge si straluceste" — reveal-urile sunt
  stergeri (ca un burete pe o suprafata), rosul e lichid si lucios.
---------------------------------------------*/

/*-------------------------
  Fonturi self-hosted
  (pana acum @import-urile din app.css erau ignorate de browser
  pentru ca stateau dupa @view-transition, deci site-ul randa in Arial)
-------------------------*/
/* Un singur fisier per greutate, subset la latin + diacriticele romanesti
   (ă â î ș ț, si variantele cu sedila) — ~10-30KB in loc de doua fisiere */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-display: swap;
  font-weight: 200 700;
  src: url(../fonts/oswald-ro.woff2) format("woff2-variations"), url(../fonts/oswald-ro.woff2) format("woff2");
}
@font-face {
  font-family: "Hind";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/hind-ro-400.woff2) format("woff2");
}
@font-face {
  font-family: "Hind";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(../fonts/hind-ro-500.woff2) format("woff2");
}
@font-face {
  font-family: "Hind";
  font-style: normal;
  font-display: swap;
  font-weight: 600 700;
  src: url(../fonts/hind-ro-600.woff2) format("woff2");
}
/* Fallback cu metrici apropiate: textul nu mai "sare" cand vine fontul */
@font-face {
  font-family: "Oswald Fallback";
  src: local("Arial Narrow"), local("Arial");
  size-adjust: 81%;
  ascent-override: 148%;
  descent-override: 36%;
}
@font-face {
  font-family: "Hind Fallback";
  src: local("Arial");
  size-adjust: 96%;
  ascent-override: 118%;
  descent-override: 52%;
}

/*-------------------------
  Tokens
-------------------------*/
:root {
  --ux-red: #E63946;
  --ux-red-deep: #A81C25;
  --ux-red-ink: #7A0E18;
  --ux-ink: #282525;
  --ux-text: #6B6363;
  --ux-line: #ECE6E6;
  --ux-cream: #FFF6F5;
  --ux-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ux-ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ux-ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --ux-header-h: 64px;
}
@media (min-width: 1025px) {
  :root { --ux-header-h: 88px; }
}

@property --ux-wipe {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 130%;
}

/*-------------------------
  Baza: lizibilitate + atingere
-------------------------*/
body {
  font-family: "Hind", "Hind Fallback", sans-serif;
  /* #979797 pe alb avea 2.9:1 — sub pragul de citire. Acum ~5.9:1 */
  color: var(--ux-text);
  -webkit-tap-highlight-color: transparent;
}
/* app.css scaleaza textul de baza in vw: pe desktop ajungea la 11-13px.
   Pastram scalarea, dar cu un minim lizibil. */
body { font-size: max(15px, 0.938vw); }
@media (max-width: 1199px) { body { font-size: max(15px, 1.65vw); } }
@media (max-width: 991px) { body { font-size: max(15px, 1.85vw); } }
@media (max-width: 767px) { body { font-size: max(15px, 2.3vw); } }
@media (max-width: 575px) { body { font-size: clamp(15.5px, 4vw, 18px); } }

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-family: "Oswald", "Oswald Fallback", sans-serif;
  text-wrap: balance;
}
p, li { text-wrap: pretty; }
.dark-gray { color: var(--ux-text) !important; }
::selection { background: var(--ux-red); color: #fff; }

a, button, [role="button"], input, select, textarea, label,
.cus-btn, .cart-btn, .increment, .decrement {
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid var(--ux-red);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Feedback la apasare: imediat, scurt, pe compositor */
.cus-btn, .cart-btn, .ui-header-tools-item, .testimonial-nav-btn,
.quantity .increment, .quantity .decrement, .ui-ol-menu-toggle-btn,
.footer-social a, .social-icons-list a, button[type="submit"] {
  transition-property: transform, background-color, color, box-shadow, border-color, opacity;
  transition-duration: 0.18s;
  transition-timing-function: var(--ux-ease-out);
}
.cus-btn:active, .cart-btn:active, .ui-header-tools-item:active,
.testimonial-nav-btn:active, .footer-social a:active, .social-icons-list a:active,
button[type="submit"]:active {
  transform: scale(0.95);
  transition-duration: 0.08s;
}
.quantity .increment:active, .quantity .decrement:active {
  transform: scale(0.8);
  transition-duration: 0.06s;
}

/* Lucios: o dunga de lumina trece peste butoanele principale la hover/focus */
.cus-btn.primary-banner, .cus-btn.dark, .detail-buy-now, .ux-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cus-btn.primary-banner::after, .cus-btn.dark::after, .detail-buy-now::after, .ux-cta::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
  z-index: 1;
}
@media (hover: hover) {
  .cus-btn.primary-banner:hover::after, .cus-btn.dark:hover::after,
  .detail-buy-now:hover::after, .ux-cta:hover::after {
    transform: translateX(120%);
    transition: transform 0.75s var(--ux-ease-out);
  }
}
/* pe telefon dunga trece singura, o data, cand butonul intra in ecran */
.ux-shine-once::after {
  animation: ux-shine 1.1s var(--ux-ease-out) 0.35s 1 both;
}
@keyframes ux-shine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

/*-------------------------
  Header: bara alba sticloasa la scroll, se ascunde la scroll in jos
-------------------------*/
#ui-header {
  transition: transform 0.45s var(--ux-ease-out);
  will-change: transform;
}
#ui-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--ux-header-h);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 rgba(40, 37, 37, 0.06), 0 10px 30px -18px rgba(122, 14, 24, 0.35);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.3s var(--ux-ease-out), transform 0.45s var(--ux-ease-out);
  pointer-events: none;
  z-index: -1;
}
html.ux-header-solid #ui-header::before {
  opacity: 1;
  transform: none;
}
html.ux-header-hidden:not(.ui-no-scroll) #ui-header {
  transform: translateY(calc(-1 * var(--ux-header-h) - 24px));
}
#ui-header .ui-logo img {
  transform-origin: 18% 40%;
  transition: transform 0.45s var(--ux-ease-out), opacity 0.3s ease, visibility 0.3s;
}
html.ux-header-solid #ui-header .ui-logo img {
  transform: translateY(-6px) scale(0.86);
}
/* pe banner rosu logo-ul e alb; pe bara alba trecem pe varianta rosie */
html.ux-header-solid body:not(.ui-ol-menu-open) #ui-header .ui-logo .ui-logo-light {
  visibility: hidden;
  opacity: 0;
}
html.ux-header-solid body:not(.ui-ol-menu-open) #ui-header .ui-logo .ui-logo-dark {
  visibility: visible;
  opacity: 1;
  width: auto;
}
/* tinte de atingere de minim 40px pe telefon */
@media (max-width: 575px) {
  #ui-header .ui-header-tools .ui-header-tools-item {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 12px;
  }
  #ui-header .ui-header-tools { gap: 8px; }
}
#ui-header .ui-header-tools .ui-header-tools-item,
.ui-ol-menu-toggle-btn {
  border-radius: 12px;
  background: rgba(233, 233, 233, 0.9);
}
/* butonul de meniu: aceeasi marime ca butonul de cos, iconita se roteste la deschidere */
@media (max-width: 575px) {
  .ui-ol-menu-toggle-btn { width: 40px; height: 40px; }
}
.ui-ol-menu-toggle-btn::before {
  transition: transform 0.45s var(--ux-ease-out);
}
body.ui-ol-menu-open .ui-ol-menu-toggle-btn::before {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Badge-ul cosului: pop scurt la fiecare schimbare */
.cart-button .cart-count-badge {
  background: var(--ux-red) !important;
  box-shadow: 0 0 0 2px #fff;
  font-variant-numeric: tabular-nums;
}
.cart-count-badge.ux-pop {
  animation: ux-badge-pop 0.5s var(--ux-ease-out);
}
@keyframes ux-badge-pop {
  0% { transform: scale(0.4); }
  100% { transform: scale(1); }
}
.cart-button.ux-cart-bump {
  animation: ux-cart-bump 0.55s var(--ux-ease-out);
}
@keyframes ux-cart-bump {
  0% { transform: scale(1); }
  25% { transform: scale(1.22) rotate(-8deg); }
  50% { transform: scale(0.94) rotate(5deg); }
  75% { transform: scale(1.05) rotate(-2deg); }
  100% { transform: scale(1); }
}

/* Bara de progres la scroll: gradient lucios in loc de bloc plat */
.scroll-progress {
  background: linear-gradient(90deg, var(--ux-red-deep), var(--ux-red) 60%, #ff8a92) !important;
  height: 3px !important;
}

/*-------------------------
  Intro (doar la prima vizita din sesiune)
-------------------------*/
html.ux-seen #preloader { display: none !important; }
#preloader {
  background: #fff;
  overflow: hidden;
}
#preloader .spinning-logo,
#preloader img {
  animation: none !important;
}
#preloader .spinning-logo-container,
#preloader > img,
#preloader > div:first-child {
  position: relative;
  z-index: 2;
}
#preloader .preloader-counter { display: none !important; }
#preloader.ux-intro .spinning-logo-container img,
#preloader.ux-intro > img {
  width: min(220px, 52vw) !important;
  height: auto;
  animation: ux-logo-in 0.9s var(--ux-ease-out) both !important;
}
@keyframes ux-logo-in {
  from { opacity: 0; transform: translateY(18px) scale(0.92); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
/* luciu care trece peste logo — "proaspat curatat" */
#preloader.ux-intro .spinning-logo-container {
  -webkit-mask-image: linear-gradient(100deg, #000 0 40%, rgba(0, 0, 0, 0.55) 50%, #000 60% 100%);
  mask-image: linear-gradient(100deg, #000 0 40%, rgba(0, 0, 0, 0.55) 50%, #000 60% 100%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  animation: ux-logo-gloss 1.2s var(--ux-ease-inout) 0.25s both;
}
@keyframes ux-logo-gloss {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
/* cortina lichida: un val rosu urca peste ecran si il "sterge" */
.ux-curtain {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 140%;
  top: 100%;
  z-index: 3;
  pointer-events: none;
}
.ux-curtain svg { display: block; width: 100%; height: 90px; margin-bottom: -1px; }
.ux-curtain .ux-curtain-body {
  height: 100%;
  background: linear-gradient(180deg, var(--ux-red) 0%, var(--ux-red-deep) 100%);
}
#preloader.ux-leaving { pointer-events: none; }

/*-------------------------
  Reveal la scroll — continutul e vizibil implicit;
  ascundem doar cand JS-ul de UX ruleaza (html.ux-js), deci un script
  picat nu poate lasa pagina goala.
-------------------------*/
@media (prefers-reduced-motion: no-preference) {
  /* Titluri: stergere de la stanga la dreapta, cu marginea moale */
  html.ux-js :is(.heading .title, .page-title, .title-3, .testimonial-heading-block h2,
    .newsletter-area h3, .ux-wipe-title, .section-title, .hero-promo-big):not(.ux-in) {
    --ux-wipe: -30%;
  }
  html.ux-js :is(.heading .title, .page-title, .title-3, .testimonial-heading-block h2,
    .newsletter-area h3, .ux-wipe-title, .section-title, .hero-promo-big) {
    -webkit-mask-image: linear-gradient(100deg, #000 calc(var(--ux-wipe) - 30%), transparent var(--ux-wipe));
    mask-image: linear-gradient(100deg, #000 calc(var(--ux-wipe) - 30%), transparent var(--ux-wipe));
    transition: --ux-wipe 1.05s var(--ux-ease-out), transform 1.05s var(--ux-ease-out);
  }
  html.ux-js :is(.heading .title, .page-title, .title-3, .testimonial-heading-block h2,
    .newsletter-area h3, .ux-wipe-title, .section-title, .hero-promo-big):not(.ux-in) {
    transform: translateX(-14px);
  }
  html.ux-js :is(.heading .title, .page-title, .title-3, .testimonial-heading-block h2,
    .newsletter-area h3, .ux-wipe-title, .section-title, .hero-promo-big).ux-done {
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* Text secundar si kickere: ridicare scurta */
  html.ux-js :is(.eyebrow, .eyebrow-2, .hero-promo-small, .heading + p, .description,
    .testimonial-heading-block p, .ux-rise):not(.ux-in):not(.hero-banner-1 *) {
    opacity: 0;
    transform: translateY(14px);
  }
  html.ux-js :is(.eyebrow, .eyebrow-2, .hero-promo-small, .heading + p, .description,
    .testimonial-heading-block p, .ux-rise) {
    transition: opacity 0.7s var(--ux-ease-out), transform 0.8s var(--ux-ease-out);
    transition-delay: var(--ux-delay, 0s);
  }

  /* Carduri: urca si se clarifica, in valuri (index setat din JS) */
  html.ux-js :is(.product-card, .blog-card, .feature-item, .stat_block, .ux-card,
    .accordion-item, .contact-card, .info-card, .ingredient-card,
    .step-card, .benefit-card):not(.ux-in) {
    opacity: 0;
    transform: translateY(36px) scale(0.97);
  }
  html.ux-js :is(.product-card, .blog-card, .feature-item, .stat_block, .ux-card,
    .accordion-item, .contact-card, .info-card, .ingredient-card,
    .step-card, .benefit-card) {
    transition: opacity 0.75s var(--ux-ease-out), transform 0.95s var(--ux-ease-out), box-shadow 0.3s ease;
    transition-delay: var(--ux-delay, 0s);
  }
  /* dupa intrare, transform-ul nu mai are tranzitie (tilt-ul GSAP de pe
     desktop trebuie sa raspunda instant) */
  html.ux-js :is(.product-card, .blog-card, .feature-item, .stat_block, .ux-card,
    .accordion-item, .contact-card, .info-card, .ingredient-card, .step-card, .benefit-card).ux-done {
    transition: box-shadow 0.3s ease;
  }

  /* Imagini mari: decupaj care se deschide + zoom out */
  html.ux-js :is(.ux-img, .about-img img, .blog-detail-img img):not(.ux-in) {
    clip-path: inset(12% 8% 12% 8% round 32px);
    transform: scale(1.08);
    opacity: 0.001;
  }
  html.ux-js :is(.ux-img, .about-img img, .blog-detail-img img) {
    clip-path: inset(0 0 0 0 round 0);
    transition: clip-path 1.1s var(--ux-ease-out), transform 1.3s var(--ux-ease-out), opacity 0.5s ease;
  }
}

/*-------------------------
  Carduri de produs: adancime, apasare, luciu pe imagine
-------------------------*/
.product-card {
  border-radius: 22px;
  will-change: auto;
}
.product-card .product-img {
  overflow: hidden;
  border-radius: 18px;
  isolation: isolate;
}
.product-card .product-img img {
  transition: transform 0.7s var(--ux-ease-out);
}
@media (hover: hover) {
  .product-card:hover .product-img img { transform: scale(1.05) rotate(-1deg); }
}
.product-card .product-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.7) 48%, transparent 62%);
  transform: translateX(-130%);
  pointer-events: none;
  z-index: 1;
}
.product-card.ux-in .product-img::after {
  animation: ux-shine 1.25s var(--ux-ease-out) calc(var(--ux-delay, 0s) + 0.35s) 1 both;
}
.product-card .price-chip h5,
.stat_block .numbers,
.price-total h5, .item-total, .cart-total, .total-price {
  font-variant-numeric: tabular-nums;
}
.cart-btn.ux-added {
  background: #1f9d55 !important;
  border-color: #1f9d55 !important;
  color: #fff !important;
}
.cart-btn.ux-added i { animation: ux-check-in 0.4s var(--ux-ease-out); }
@keyframes ux-check-in {
  from { transform: scale(0.3) rotate(-30deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* cifra din selectorul de cantitate se rostogoleste */
.quantity .number.ux-tick-up { animation: ux-tick-up 0.28s var(--ux-ease-out); }
.quantity .number.ux-tick-down { animation: ux-tick-down 0.28s var(--ux-ease-out); }
@keyframes ux-tick-up { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ux-tick-down { from { transform: translateY(-60%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Pagina de produs: fara clipirea placeholder-ului; schelet lucios pana vine poza */
#product-image {
  transition: opacity 0.5s var(--ux-ease-out), transform 0.8s var(--ux-ease-out);
}
html.ux-js #product-image:not(.ux-loaded) {
  opacity: 0;
  transform: scale(0.96);
}
.product-detail .img-block { position: relative; }
html.ux-js .product-detail .img-block:has(#product-image:not(.ux-loaded))::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(100deg, #f4efee 30%, #fbf8f8 50%, #f4efee 70%) 0 0 / 300% 100%;
  animation: ux-skeleton 1.3s linear infinite;
}
@keyframes ux-skeleton {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

/* cart.css anima fiecare rand la FIECARE re-randare (adica la fiecare +/-):
   toate produsele palpaiau. Animatia ramane doar la prima afisare. */
html.ux-cart-ready :is(.cart-item-row, .cart-item-card, .mini-cart-item) {
  animation: none;
}

/*-------------------------
  Zbor spre cos
-------------------------*/
.ux-fly {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100000;
  pointer-events: none;
  will-change: transform;
}
.ux-fly img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(122, 14, 24, 0.35));
  will-change: transform, opacity;
}
.ux-burst {
  position: fixed;
  z-index: 100001;
  pointer-events: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.5);
}

/*-------------------------
  Toast "adaugat in cos" — jos pe telefon (zona degetului), sus-dreapta pe desktop
-------------------------*/
.cart-notification.ux-toast {
  position: fixed;
  z-index: 99998;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 10px;
  background: rgba(40, 37, 37, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 40px -12px rgba(40, 37, 37, 0.5);
  font-family: "Hind", "Hind Fallback", sans-serif;
  animation: ux-toast-in 0.5s var(--ux-ease-out) both;
}
.cart-notification.ux-toast.ux-out {
  animation: ux-toast-out 0.3s var(--ux-ease-in) both;
}
@media (min-width: 768px) {
  .cart-notification.ux-toast {
    left: auto;
    right: 24px;
    bottom: auto;
    top: calc(var(--ux-header-h) + 12px);
    width: 380px;
  }
}
@keyframes ux-toast-in {
  from { opacity: 0; transform: translateY(30px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes ux-toast-out {
  to { opacity: 0; transform: translateY(16px) scale(0.97); }
}
.ux-toast .ux-toast-img {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  padding: 3px;
}
.ux-toast .ux-toast-text { flex: 1; min-width: 0; line-height: 1.25; }
.ux-toast .ux-toast-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.ux-toast .ux-toast-text > span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ux-toast .ux-toast-check {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: #1f9d55; color: #fff; font-size: 12px;
  margin-right: 6px; vertical-align: -5px;
}
.ux-toast .ux-toast-btn {
  flex: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 44px;
  background: var(--ux-red);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.ux-toast .ux-toast-btn:active { transform: scale(0.95); }

/*-------------------------
  Mini-cos: glisare pe transform (nu pe "right"), cu fundal estompat
-------------------------*/
#sidebar-cart {
  right: 0 !important;
  transform: translateX(105%);
  transition: transform 0.6s var(--ux-ease-out), box-shadow 0.6s ease !important;
  border-radius: 24px 0 0 24px;
  will-change: transform;
}
.show-sidebar-cart #sidebar-cart {
  transform: none;
  box-shadow: -30px 0 60px -20px rgba(40, 37, 37, 0.35);
}
#sidebar-cart.ux-dragging { transition: none !important; }
#sidebar-cart { touch-action: pan-y; }
#sidebar-cart-curtain {
  background: rgba(40, 37, 37, 0.35) !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.ux-cart-opening.show-sidebar-cart #sidebar-cart .product-list > li {
  animation: ux-item-in 0.6s var(--ux-ease-out) both;
  animation-delay: calc(0.12s + var(--ux-i, 0) * 0.06s);
}
@keyframes ux-item-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: none; }
}
#sidebar-cart::before {
  /* maner vizual pentru glisare spre dreapta, doar pe touch */
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 4px;
  height: 44px;
  margin-top: -22px;
  border-radius: 4px;
  background: var(--ux-line);
}
@media (hover: hover) and (pointer: fine) {
  #sidebar-cart::before { display: none; }
}

/*-------------------------
  Meniul overlay: se deschide ca un cerc din butonul de meniu
-------------------------*/
@media (prefers-reduced-motion: no-preference) {
  .ui-overlay-menu {
    clip-path: circle(0% at var(--ux-menu-x, calc(100% - 64px)) var(--ux-menu-y, 36px));
    transition: clip-path 0.75s var(--ux-ease-inout);
  }
  body.ui-ol-menu-open .ui-overlay-menu {
    clip-path: circle(150% at var(--ux-menu-x, calc(100% - 64px)) var(--ux-menu-y, 36px));
  }
}

/*-------------------------
  Text tastat (hero)
-------------------------*/
.ux-typed {
  color: var(--ux-red);
  font-weight: 600;
  white-space: nowrap;
}
.ux-typed::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: currentColor;
  border-radius: 2px;
  animation: ux-caret 1s steps(1) infinite;
}
.ux-typed.ux-typing::after { animation: none; }
@keyframes ux-caret { 50% { opacity: 0; } }

/*-------------------------
  Hero: lichid rosu lucios (WebGL) in spatele produsului
-------------------------*/
.hero-banner-1 { overflow: hidden; }
.ux-liquid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.ux-liquid-canvas.ux-on { opacity: 1; }
.hero-banner-1 .content, .hero-banner-1 .image-block { position: relative; z-index: 2; }
.hero-banner-1 .image-block { z-index: 30; }
/* produsul pluteste usor, cu umbra care respira */
@media (prefers-reduced-motion: no-preference) {
  .hero-banner-1 .img-1 img {
    animation: ux-float 6s ease-in-out infinite;
    filter: drop-shadow(0 30px 30px rgba(90, 8, 18, 0.35));
  }
}
@media (max-width: 1199px) and (prefers-reduced-motion: no-preference) {
  html.ux-js .hero-banner-1 .img-1:not(.ux-in) {
    opacity: 0;
    transform: translateY(60px) rotate(-6deg) scale(0.9);
  }
  html.ux-js .hero-banner-1 .img-1 {
    transition: opacity 0.8s var(--ux-ease-out), transform 1.2s var(--ux-ease-out);
  }
}
@keyframes ux-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

/*-------------------------
  Valuri lichide pe muchiile sectiunilor rosii
-------------------------*/
.ux-wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 64px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  line-height: 0;
}
.ux-wave-track {
  position: absolute;
  inset: 0 auto 0 0;
  width: 200%;
  height: 100%;
  will-change: transform;
}
.ux-wave-track svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ux-wave .ux-wave-a { animation: ux-wave-move 14s linear infinite; }
.ux-wave .ux-wave-b { animation: ux-wave-move 9s linear infinite reverse; opacity: 0.5; }
@keyframes ux-wave-move {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ux-wave.ux-paused .ux-wave-track { animation-play-state: paused; }

/* banner pagini interioare: valul inlocuieste elipsa statica */
.inner-page-banner.ux-has-wave::after { display: none; }
.inner-page-banner .ux-wave { bottom: -1px; }


/* Luciu care aluneca peste suprafetele rosii (compozitat, ieftin) */
.ux-sheen { position: relative; overflow: hidden; isolation: isolate; }
.ux-sheen > .ux-sheen-layer {
  position: absolute;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(30% 22% at 30% 30%, rgba(255, 255, 255, 0.28), transparent 70%),
    radial-gradient(26% 30% at 70% 65%, rgba(255, 170, 178, 0.22), transparent 70%),
    radial-gradient(20% 18% at 55% 20%, rgba(255, 255, 255, 0.16), transparent 70%);
  animation: ux-sheen-drift 18s ease-in-out infinite alternate;
}
.ux-sheen > :not(.ux-sheen-layer) { position: relative; z-index: 1; }
@keyframes ux-sheen-drift {
  0% { transform: translate3d(-6%, -4%, 0) rotate(0deg); }
  100% { transform: translate3d(6%, 5%, 0) rotate(20deg); }
}

/*-------------------------
  Sectiunea "Sterge cu degetul" (homepage)
-------------------------*/
.ux-wipe-sec {
  padding: 72px 0 40px;
  position: relative;
}
.ux-wipe-sec .ux-wipe-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 992px) {
  .ux-wipe-sec .ux-wipe-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
}
.ux-wipe-sec .ux-wipe-kicker {
  font-family: "Hind", "Hind Fallback", sans-serif;
  color: var(--ux-red);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}
.ux-wipe-sec .ux-wipe-title {
  font-size: clamp(34px, 9vw, 64px);
  line-height: 1.02;
  color: var(--ux-ink);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.ux-wipe-sec .ux-wipe-title em {
  font-style: normal;
  color: var(--ux-red);
}
.ux-wipe-sec .ux-wipe-copy {
  font-size: 17px;
  line-height: 1.55;
  max-width: 34ch;
  color: var(--ux-text);
  margin-bottom: 0;
}
.ux-wipe-stage {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background: #f7f3f2;
  box-shadow: 0 30px 60px -30px rgba(122, 14, 24, 0.45), 0 0 0 1px rgba(40, 37, 37, 0.06);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
/* suprafata curata: faianta lucioasa cu produsul pe ea */
.ux-wipe-clean {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(#e9e3e1 1.5px, transparent 1.5px) 0 0 / 25% 33.4%,
    linear-gradient(90deg, #e9e3e1 1.5px, transparent 1.5px) 0 0 / 25% 33.4%,
    radial-gradient(120% 90% at 30% 10%, #ffffff 0%, #f6f1f0 55%, #eee6e4 100%);
  display: grid;
  place-items: center;
}
.ux-wipe-clean img {
  width: 58%;
  max-width: 340px;
  filter: drop-shadow(0 24px 22px rgba(90, 8, 18, 0.28));
  transform: translateY(4%);
}
.ux-wipe-clean .ux-wipe-reflection {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.85) 45%, transparent 58%);
  transform: translateX(-120%);
  pointer-events: none;
}
.ux-wipe-stage.ux-clean .ux-wipe-reflection {
  animation: ux-shine 1.4s var(--ux-ease-out) 0.15s both;
}
.ux-wipe-stage canvas:not(.ux-wipe-fx) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  transition: opacity 0.9s var(--ux-ease-out);
}
.ux-wipe-stage canvas:not(.ux-wipe-fx):active { cursor: grabbing; }
.ux-wipe-stage.ux-clean canvas:not(.ux-wipe-fx) { opacity: 0; pointer-events: none; }
.ux-wipe-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: rgba(40, 37, 37, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ux-ease-out);
  z-index: 3;
}
.ux-wipe-hint .ux-hand {
  width: 22px;
  height: 22px;
  display: inline-block;
  animation: ux-hand 1.6s var(--ux-ease-inout) infinite;
}
@keyframes ux-hand {
  0%, 100% { transform: translateX(-6px) rotate(-10deg); }
  50% { transform: translateX(6px) rotate(10deg); }
}
.ux-wipe-stage.ux-touched .ux-wipe-hint { opacity: 0; transform: translateX(-50%) translateY(10px); }
.ux-wipe-meter {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ux-ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 16px -8px rgba(40, 37, 37, 0.35);
}
.ux-wipe-meter i {
  display: block;
  width: 56px;
  height: 6px;
  border-radius: 6px;
  background: var(--ux-line);
  overflow: hidden;
  position: relative;
}
.ux-wipe-meter i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ux-red), #ff8a92);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  transition: transform 0.2s ease;
}
.ux-wipe-done {
  position: absolute;
  inset: auto 16px 16px 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 30px -16px rgba(40, 37, 37, 0.45);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.5s var(--ux-ease-out) 0.5s, transform 0.7s var(--ux-ease-out) 0.5s;
}
.ux-wipe-stage.ux-clean .ux-wipe-done { opacity: 1; transform: none; pointer-events: auto; }
.ux-wipe-done strong {
  font-family: "Oswald", "Oswald Fallback", sans-serif;
  font-size: 20px;
  color: var(--ux-ink);
  line-height: 1.1;
  display: block;
}
.ux-wipe-done small { color: var(--ux-text); font-size: 13px; }
.ux-wipe-done .ux-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--ux-red);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.ux-wipe-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.ux-wipe-actions button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid var(--ux-line);
  background: #fff;
  color: var(--ux-ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.ux-wipe-actions button:active { transform: scale(0.96); }

/*-------------------------
  Comanda plasata
-------------------------*/
.thank-you-icon.ux-celebrate {
  position: relative;
  animation: ux-check-pop 0.7s var(--ux-ease-out) both;
  box-shadow: 0 18px 40px -12px rgba(230, 57, 70, 0.6);
}
.thank-you-icon.ux-celebrate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--ux-red);
  animation: ux-ring 1.1s var(--ux-ease-out) 0.15s both;
}
.ux-check-draw { width: 56%; height: 56%; }
.ux-check-draw path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: ux-draw 0.55s var(--ux-ease-out) 0.25s forwards;
}
@keyframes ux-check-pop {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes ux-ring {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.9); opacity: 0; }
}
@keyframes ux-draw { to { stroke-dashoffset: 0; } }

/*-------------------------
  Formulare: tastare fina, focus clar
-------------------------*/
input, textarea, select { caret-color: var(--ux-red); }
/* iOS face zoom pe input-uri sub 16px — il oprim pe telefon */
@media (max-width: 767px) {
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
  input[type="search"], input[type="password"], input:not([type]), textarea, select {
    font-size: 16px !important;
  }
}
.ux-field {
  position: relative;
}
.ux-field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ux-red-deep), var(--ux-red));
  transform: scaleX(0);
  transform-origin: var(--ux-origin, 50%) 50%;
  transition: transform 0.45s var(--ux-ease-out);
  pointer-events: none;
  border-radius: 2px;
}
.ux-field.ux-focus::after { transform: scaleX(1); }
.ux-field.ux-focus > label, .ux-field.ux-focus > .form-label {
  color: var(--ux-red);
  transition: color 0.2s ease;
}
.ux-field.ux-valid::before {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1f9d55 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  animation: ux-check-in 0.35s var(--ux-ease-out) both;
  pointer-events: none;
}
.ux-field.ux-invalid input, .ux-field.ux-invalid select, .ux-field.ux-invalid textarea {
  border-color: var(--ux-red) !important;
}
.ux-shake { animation: ux-shake 0.42s var(--ux-ease-out); }
@keyframes ux-shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}
/* radio-urile de livrare/plata: tranzitie la selectie */
.shipping-option, .payment-option, .ux-option {
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.35s var(--ux-ease-out), transform 0.2s var(--ux-ease-out);
}
.shipping-option:active, .payment-option:active, .ux-option:active { transform: scale(0.985); }

/*-------------------------
  Tranzitii intre pagini (View Transitions, Chrome/Edge/Safari 18+)
-------------------------*/
@media (prefers-reduced-motion: no-preference) {
  #ui-header { view-transition-name: ux-header; }
  ::view-transition-old(root) {
    animation: ux-vt-out 0.28s var(--ux-ease-in) both;
  }
  ::view-transition-new(root) {
    animation: ux-vt-in 0.55s var(--ux-ease-out) both;
  }
  ::view-transition-group(ux-hero) {
    animation-duration: 0.6s;
    animation-timing-function: var(--ux-ease-out);
  }
  ::view-transition-old(ux-hero), ::view-transition-new(ux-hero) {
    height: 100%;
    object-fit: contain;
  }
}
@keyframes ux-vt-out {
  to { opacity: 0; transform: translateY(-14px) scale(0.985); filter: blur(4px); }
}
@keyframes ux-vt-in {
  from { opacity: 0; transform: translateY(22px); }
}

/*-------------------------
  Statistici: numere care urca
-------------------------*/
.stat_block .numbers { font-variant-numeric: tabular-nums; }

/*-------------------------
  Marquee STELINI: viteza reactiva la scroll (setata din JS)
-------------------------*/
.logo-loop-slider { will-change: transform; }

/*-------------------------
  Miscare redusa: totul static, nimic nu se ascunde
-------------------------*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ux-liquid-canvas { display: none; }
}

/*-------------------------
  Banda STELINI: literele de baza erau albe pe fundal aproape alb (invizibile).
  Acum sunt conturate in rosu, iar flip-ul existent le umple.
-------------------------*/
.logo-animation span {
  color: transparent !important;
  -webkit-text-stroke: 1.5px rgba(230, 57, 70, 0.55);
}
.logo-animation span::after {
  -webkit-text-stroke: 0;
}

/*-------------------------
  Liste cu bife (pagina de produs): bifa langa text, nu deasupra lui
-------------------------*/
.feature-points li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.feature-points li i {
  flex: none;
  color: var(--ux-red);
  transform: translateY(1px);
}
.feature-points li p { margin: 0; }

/*-------------------------
  Bara de cumparare (pagina de produs, telefon)
-------------------------*/
.ux-buybar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 18px 40px -16px rgba(122, 14, 24, 0.45), 0 0 0 1px rgba(40, 37, 37, 0.06);
  transform: translateY(calc(100% + 24px));
  transition: transform 0.5s var(--ux-ease-out);
}
.ux-buybar.ux-show { transform: none; }
.ux-buybar-img {
  width: 48px;
  height: 48px;
  flex: none;
  object-fit: contain;
  border-radius: 12px;
  background: #f6f2f1;
}
.ux-buybar-info { flex: 1; min-width: 0; line-height: 1.2; }
.ux-buybar-name {
  display: block;
  font-size: 13px;
  color: var(--ux-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ux-buybar-price {
  display: block;
  font-family: "Oswald", "Oswald Fallback", sans-serif;
  font-size: 20px;
  color: var(--ux-ink);
  font-variant-numeric: tabular-nums;
}
.ux-buybar-btn {
  flex: none;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--ux-red);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 10px 20px -10px rgba(230, 57, 70, 0.8);
  transition: transform 0.15s var(--ux-ease-out);
}
.ux-buybar-btn:active { transform: scale(0.95); }
html.ux-has-buybar .cart-notification.ux-toast {
  bottom: calc(86px + env(safe-area-inset-bottom));
}
@media (min-width: 992px) {
  .ux-buybar { display: none; }
}

/* Iconita de cos (inline SVG, inlocuieste iconoir.css de pe CDN) */
.cart-btn .ux-ico { width: 22px; height: 22px; display: block; }
@media (min-width: 576px) {
  .product-card .cart-btn .ux-ico { width: 17px; height: 17px; }
}
/* rosu mai inchis pentru text mic: contrast >= 4.5:1 pe alb */
.ux-wipe-sec .ux-wipe-kicker,
.newsletter-area .cus-btn.outline { color: #C42433; }

/* Pagina de produs: spatiu rezervat (schelet lucios) pana vin datele din API,
   ca butoanele de cumparare sa nu sara cand apare pretul/descrierea */
#product-price:empty,
#product-description:empty {
  display: block;
  border-radius: 10px;
  background: linear-gradient(100deg, #f4efee 30%, #fbf8f8 50%, #f4efee 70%) 0 0 / 300% 100%;
  animation: ux-skeleton 1.3s linear infinite;
}
#product-price:empty { min-height: 1.3em; width: 6em; }
#product-description:empty { min-height: 4.8em; }
