/* =====================================================================
   Expert Drinks — design fixes (2026-10-24)
   Loaded after Journal3 customCSS by vqmod/xml/zz_expert_design.xml.
   Additive only: păstrează identitatea vizuală (maro #9e744f, magenta
   #8d1063, negru, Montserrat + Roboto), repară suprapuneri și layout.
   Remove = șterge zz_expert_design.xml (CSS-ul nu mai e încărcat).
   ===================================================================== */

:root {
  --ed-brown: #9e744f;
  --ed-brown-dark: #7f5c3d;
  --ed-magenta: #8d1063;
  --ed-ink: #1d1d1d;
  --ed-muted: #6b6b6b;
  --ed-line: #e3ddd6;
  --ed-radius: 6px;
  --ed-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  /* floating-UI stack (mobile) */
  --ed-bottom-menu: 51px;
  --ed-float-gap: 12px;
  --ed-float-base: calc(var(--ed-bottom-menu) + var(--ed-float-gap));
  --ed-sticky-cart: 0px;
}

/* ---------------------------------------------------------------------
   1. Global — fără scroll orizontal (footer icons-menu are margin -8px,
      .row are -5px) ; overflow:clip nu strică header-ul sticky.
   --------------------------------------------------------------------- */
.global-wrapper {
  overflow-x: clip;
}
footer .icons-menu > ul {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------------------------------------------------------------------
   2. Bara de anunț „LICHIDĂRI DE STOC” (header notice 495)
   --------------------------------------------------------------------- */
.module-header_notice-495 .hn-body,
.module-header_notice-495 .hn-content {
  align-items: center;
  justify-content: center;
}
.module-header_notice-495 .hn-content > p {
  margin: 0;
  width: 100%;
}
.module-header_notice-495 .hn-content > p > a {
  font-size: 12px !important;
  line-height: 1.2 !important;
  letter-spacing: .22em;
  padding: 9px 12px !important;
}
.module-header_notice-495 .hn-content > p > a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
html.mobile .module-header_notice-495 {
  height: auto !important;
}
html.mobile .module-header_notice-495 .hn-content > p > a {
  font-size: 13px !important;
  padding: 11px 12px !important;
}

/* ---------------------------------------------------------------------
   2b. Header mobil: căutarea + coșul în dreapta. Grupul lor pornea din
       stânga, iar iconul de coș stătea ascuns sub logo (logo absolut).
   --------------------------------------------------------------------- */
html.mobile .mobile-header .mobile-bar {
  justify-content: space-between;
}
html.mobile .mobile-header .mobile-bar-group {
  flex: 0 0 auto !important;
  width: auto !important;
  margin-left: auto !important;
  justify-content: flex-end !important;
  position: relative;
  z-index: 2;
  padding-right: 4px;
}
html.mobile .mobile-header .mobile-logo-wrapper {
  margin-left: max(52px, calc(50vw - 120px)) !important;
  max-width: calc(100vw - 52px - 120px);
  z-index: 1;
}
html.mobile .mobile-header .mobile-logo-wrapper img.header-logo {
  max-width: 100% !important;
  object-fit: contain;
  object-position: left center;
}
html.mobile .mobile-header .mobile-cart-wrapper #cart-total {
  display: none !important;
}
html.mobile .mobile-header .mobile-search-wrapper .search-trigger,
html.mobile .mobile-header .mobile-cart-wrapper .cart-heading {
  min-width: 48px;
  justify-content: center;
}

/* ---------------------------------------------------------------------
   3. Benzile de beneficii (info blocks 86): iconițe tăiate la stânga,
      text de 9px ilizibil.
   --------------------------------------------------------------------- */
.module-info_blocks-86 .info-block-title {
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
}
.module-info_blocks-86 .info-block-text {
  font-size: 12px !important;
  line-height: 1.3 !important;
  color: var(--ed-muted) !important;
}
.module-info_blocks-86 .info-block {
  align-items: center;
}
.module-info_blocks-86 .info-block:hover .info-block-title {
  color: var(--ed-magenta) !important;
}
@media (max-width: 760px) {
  .module-info_blocks-86 .info-block {
    padding: 7px 6px 7px 12px !important;
  }
  .module-info_blocks-86 .info-block::before {
    flex: 0 0 auto;
    margin-right: 2px;
  }
  .module-info_blocks-86 .info-block-title {
    font-size: 11px !important;
  }
  .module-info_blocks-86 .info-block-text {
    font-size: 11px !important;
  }
}

/* ---------------------------------------------------------------------
   4. Meniul principal desktop: un singur rând, fără etichete rupte pe
      două linii ("PACHETE / PROMO", "SUPER / OFERTE").
   --------------------------------------------------------------------- */
/* 13 itemi: la 14px nu încap pe 1280px (măsurat 1426px) → 12.5px/7px.
   Sub 1200px rămâne comportamentul vechi (2 rânduri), ca să nu iasă din ecran. */
@media (min-width: 1200px) {
  html header .desktop-main-menu-wrapper #main-menu.main-menu > .j-menu > li.menu-item > a,
  html header .desktop-main-menu-wrapper #main-menu.main-menu > .j-menu > li.menu-item > a .links-text {
    white-space: nowrap;
    font-size: 12.5px !important;
    letter-spacing: .01em;
  }
  html header .desktop-main-menu-wrapper #main-menu.main-menu > .j-menu > li.menu-item > a {
    padding-left: 7px !important;
    padding-right: 7px !important;
  }
  html header .desktop-main-menu-wrapper #main-menu.main-menu > .j-menu > li.menu-item:first-child > a {
    padding-left: 12px !important;
  }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  html header .desktop-main-menu-wrapper #main-menu.main-menu > .j-menu > li.menu-item > a,
  html header .desktop-main-menu-wrapper #main-menu.main-menu > .j-menu > li.menu-item > a .links-text {
    font-size: 11.5px !important;
    letter-spacing: 0;
  }
  html header .desktop-main-menu-wrapper #main-menu.main-menu > .j-menu > li.menu-item > a {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}

/* ---------------------------------------------------------------------
   5. Suprapuneri la prima vizită: popup „Ai peste 18 ani?” + banner
      cookie + notificare „Lichidări” + clopoțel WonderPush apăreau
      toate odată, unul peste altul.
      Ordine: 18+  →  cookie  →  notificare.
   --------------------------------------------------------------------- */
html.popup-open .cc-window,
html.popup-open .cc-revoke,
html.popup-open .notification-wrapper,
html.popup-open .wonderpush-bell,
html.popup-open #theMarketer-popup-backdrop {
  visibility: hidden !important;
  pointer-events: none !important;
}
body:has(.cc-window:not(.cc-invisible):not([style*="display: none"])) .notification-wrapper,
body:has(.cc-window:not(.cc-invisible):not([style*="display: none"])) .wonderpush-bell {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* popup 18+: fără golul alb mare dintre text și butoane, butoane mari */
.module-popup-110 .popup-container {
  max-height: calc(100vh - 32px);
  height: auto !important;
}
.module-popup-110 .popup-body,
.module-popup-110 .popup-inner-body {
  height: auto !important;
}
.module-popup-110 .block-body {
  padding-bottom: 0 !important;
}
.module-popup-110 .block-content p:last-child {
  margin-bottom: 0;
}
.module-popup-110 .popup-footer {
  padding-top: 4px;
}
.module-popup-110 .popup-footer .btn {
  min-width: 110px;
  min-height: 44px;
  border-radius: var(--ed-radius);
}

/* notificarea „Lichidări de stoc”: deasupra meniului de jos, colțuri */
html.has-bottom-menu .notification-wrapper-bottom {
  padding-bottom: calc(var(--ed-bottom-menu) + 8px);
}
.notification-wrapper .notification {
  border-radius: 10px;
  box-shadow: var(--ed-shadow);
}
@media (max-width: 760px) {
  .notification-wrapper .notification {
    margin-left: 10px;
    margin-right: 10px;
    max-width: calc(100vw - 20px);
  }
}

/* ---------------------------------------------------------------------
   6. Banner cookie (isenselabs GDPR / cookieconsent): compact, butoane
      lizibile, „Închide” lângă celelalte acțiuni.
   --------------------------------------------------------------------- */
.cc-window.cc-floating.cc-bottom,
.cc-window.cc-banner {
  font-family: Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .25);
}
.cc-window .cc-message {
  margin-bottom: 12px !important;
  padding-top: 0 !important;
}
.cc-window .cc-link {
  opacity: 1 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-window .cc-compliance {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.cc-window .cc-btn {
  flex: 1 1 0;
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: var(--ed-radius) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  margin: 0 !important;
  padding: 8px 12px !important;
}
.cc-window .cc-btn.cc-dismiss {
  /* isenselabs îl pune absolut, singur în colțul de sus → bandă neagră goală */
  position: static !important;
  top: auto !important;
  right: auto !important;
  order: 3;
  flex: 1 1 100%;
  min-height: 36px;
  background: transparent !important;
  border-color: transparent !important;
  color: inherit !important;
  font-weight: 400 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
.cc-window .cc-btn.cc-settings {
  order: 1;
}
.cc-window .cc-btn.cc-allow {
  order: 2;
}
@media (max-width: 760px) {
  .cc-window.cc-floating {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    max-width: none !important;
    padding: 16px 16px calc(12px + env(safe-area-inset-bottom)) !important;
    border-radius: 14px 14px 0 0;
  }
}
@media (min-width: 761px) {
  .cc-window .cc-btn.cc-dismiss {
    flex: 0 0 auto;
    order: 0;
  }
}

/* butonul „Despre Cookie” (cc-revoke): pe telefon stătea peste meniul
   de jos (acoperea Login + Accesibilitate) → buton mic, rotund. */
@media (max-width: 1024px) {
  html.has-bottom-menu .cc-revoke {
    left: 10px !important;
    right: auto !important;
    bottom: calc(var(--ed-float-base) + var(--ed-sticky-cart) + 52px) !important;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 0 !important;
    line-height: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ed-shadow);
    transform: none !important;
    opacity: .92;
  }
  html.has-bottom-menu .cc-revoke::before {
    content: "\1F36A";
    font-size: 20px;
    line-height: 1;
  }
}

/* ---------------------------------------------------------------------
   7. Butoane flotante pe telefon: un singur „stack”, fără suprapuneri
      peste „Adaugă în coș” sau peste meniul de jos.
      - a11y: meniul de jos are deja „Accesibilitate” (customJS) → ascuns
      - clopoțel WonderPush: stânga, deasupra meniului / barei de coș
      - scroll-top: dreapta, rotund
   --------------------------------------------------------------------- */
html.mobile #a11y-toggle {
  display: none !important;
}
html.mobile .wonderpush-bell {
  left: 10px !important;
  bottom: calc(var(--ed-float-base) + var(--ed-sticky-cart)) !important;
  transform: scale(.86);
  transform-origin: left bottom;
  transition: bottom .3s ease;
}
html.mobile .scroll-top {
  right: 10px !important;
  left: auto !important;
  margin: 0 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(29, 29, 29, .78) !important;
  box-shadow: var(--ed-shadow);
}
html.mobile:not(.route-product-product) .scroll-top {
  bottom: var(--ed-float-base) !important;
}
html.mobile .scroll-top .fa,
html.mobile .scroll-top i {
  font-size: 18px !important;
  line-height: 40px !important;
  width: 40px !important;
  color: #fff !important;
}

/* butonul verde „Filtrare produse” (listări) */
html.mobile .mobile-filter-trigger {
  border-radius: 999px !important;
  box-shadow: var(--ed-shadow);
  font-size: 13px !important;
  font-weight: 700;
  padding: 11px 20px !important;
}

/* ---------------------------------------------------------------------
   8. Pagina de produs — bara „Adaugă în coș” fixă pe telefon
      (.button-group-page fără id = cea fixă; #mobile-button-group = cea
      din pagină, vezi zz_new.xml). Bara fixă devine compactă: fără
      rândul Wishlist/Comparare (rămâne în bara din pagină).
   --------------------------------------------------------------------- */
html.mobile.route-product-product .button-group-page:not(#mobile-button-group) .wishlist-compare {
  display: none !important;
}
html.mobile.route-product-product .button-group-page:not(#mobile-button-group) {
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
}
html.mobile.route-product-product:has(.button-group-page:not(#mobile-button-group):not(.outOfSight)) {
  --ed-sticky-cart: 62px;
}

/* stepper cantitate pe telefon: customCSS îl poziționa absolut
   (buton „−” mutat la left:-123px → căsuță goală în stânga).
   Refăcut: [ − ][ 1 ][ + ] — doar pe pagina de produs (coșul are alt markup). */
@media (max-width: 760px) {
  .button-group-page .stepper {
    display: flex !important;
    align-items: stretch;
    width: 124px !important;
    min-width: 124px !important;
    height: 44px !important;
    border: 1px solid var(--ed-ink) !important;
    border-radius: var(--ed-radius) !important;
    overflow: hidden;
    background: #fff;
  }
  .button-group-page .stepper input,
  .button-group-page .stepper input.form-control {
    position: static !important;
    order: 2;
    flex: 1 1 auto !important;
    width: 42px !important;
    min-width: 0 !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 700;
    box-shadow: none !important;
  }
  .button-group-page .stepper .fa {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    flex: 0 0 40px;
    width: 40px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: var(--ed-ink) !important;
    color: #fff !important;
    font-size: 15px !important;
    line-height: 1 !important;
    cursor: pointer;
  }
  .button-group-page .stepper .fa-angle-down {
    order: 1;
  }
  .button-group-page .stepper .fa-angle-up {
    order: 3;
  }
  /* glifa icomoon ieșea gri închis pe negru → semne text clare */
  .button-group-page .stepper .fa.fa-angle-down::before,
  .button-group-page .stepper .fa.fa-angle-up::before {
    font-family: Roboto, Arial, sans-serif !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    color: #fff !important;
    transform: none !important;
  }
  .button-group-page .stepper .fa.fa-angle-down::before {
    content: "\2212" !important;
  }
  .button-group-page .stepper .fa.fa-angle-up::before {
    content: "+" !important;
  }
  .button-group-page .stepper .fa:active {
    background-color: var(--ed-brown) !important;
  }
  .button-group-page .buttons-wrapper .stepper-group {
    align-items: center;
  }
  .button-group-page #button-cart,
  .button-group-page .btn-cart {
    min-height: 44px;
    border-radius: var(--ed-radius) !important;
  }
  .button-group-page .extra-group .btn {
    min-height: 44px;
    min-width: 44px;
    border-radius: var(--ed-radius) !important;
  }
}

/* ---------------------------------------------------------------------
   9. Pagina de produs — bloc preț: aliniat la stânga (prețul nou era
      centrat, „Fără TVA” centrat), stats sub preț pe telefon.
   --------------------------------------------------------------------- */
html.route-product-product #product .price-group {
  align-items: flex-start !important;
}
html.route-product-product #product .product-tax {
  text-align: left !important;
}
html.route-product-product #product .product-price-old {
  font-size: 18px;
  color: var(--ed-muted);
}
html.route-product-product #product .product-price-old .fa {
  font-size: 15px;
  vertical-align: 1px;
  cursor: help;
}
@media (max-width: 760px) {
  html.route-product-product #product .product-price-group {
    flex-wrap: wrap;
  }
  html.route-product-product #product .price-wrapper {
    padding: 14px 0 6px !important;
    width: 100%;
  }
  html.route-product-product #product .product-price-new {
    font-size: 30px;
    line-height: 1.1;
  }
  html.route-product-product #product .product-stats {
    flex: 1 1 100%;
    padding-bottom: 14px !important;
  }
  html.route-product-product .tags {
    margin: 16px 10px !important;
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* ---------------------------------------------------------------------
   10. Pagini de categorie/brand — subcategorii: pe telefon fiecare card
       ocupa tot ecranul (imagine 120px întinsă la 355px) → grilă 3 col.
   --------------------------------------------------------------------- */
@media (max-width: 760px) {
  .refine-categories .refine-items .auto-grid-items {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .refine-categories .refine-items .refine-item {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .refine-categories .refine-items .refine-item a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 8px 4px 10px !important;
    background: #fff;
    border: 1px solid var(--ed-line);
    border-radius: 8px;
  }
  .refine-categories .refine-items .refine-item img {
    width: 72px !important;
    height: 72px !important;
    max-width: 100%;
    object-fit: contain;
  }
  .refine-categories .refine-items .refine-name,
  .refine-categories .refine-items .refine-name .links-text {
    font-size: 12px !important;
    line-height: 1.25 !important;
    text-align: center;
    white-space: normal !important;
    color: var(--ed-ink);
  }
}

/* descrierea de categorie (blocks module, h3 de 24px justify pe 375px) */
@media (max-width: 760px) {
  .block-description.expand-content h1,
  .block-description.expand-content h2,
  .block-description.expand-content h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }
  .block-description.expand-content h3 span,
  .block-description.expand-content h2 span {
    font-size: inherit !important;
    line-height: inherit !important;
  }
  .block-description.expand-content,
  .block-description.expand-content p {
    text-align: left !important;
  }
}

/* ---------------------------------------------------------------------
   11. Carduri de produs (listări + carusele): card alb cu colțuri,
       nume aliniat cu prețul, butoanele lipite de jos (rânduri egale),
       bara brand/cod discretă, stepper [ − ][ 1 ][ + ] compact.
       Pe telefon: 2 produse pe rând (înainte 1 card = 1 ecran).
   --------------------------------------------------------------------- */
.product-layout .product-thumb {
  height: 100%;
  border: 1px solid var(--ed-line) !important;
  border-radius: 10px !important;
  overflow: hidden;
  background: #fff !important;
  transition: box-shadow .2s ease, border-color .2s ease;
}
@media (hover: hover) {
  .product-layout .product-thumb:hover {
    border-color: #d6cabd !important;
    box-shadow: 0 10px 26px rgba(29, 29, 29, .10);
  }
}
.product-layout .product-thumb .image {
  background: #fff !important;
}
.product-layout .product-thumb .caption {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto;
  gap: 6px;
  padding: 10px 12px 12px !important;
  text-align: left;
}

/* bara brand / cod: fără fundal roz, brand mic uppercase */
.product-layout .product-thumb .stats {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
.product-layout .product-thumb .stats-group {
  padding: 0 !important;
  align-items: baseline;
  gap: 6px;
  flex-wrap: nowrap !important;
  min-width: 0;
}
.product-layout .product-thumb .stats .stat-brand {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.product-layout .product-thumb .stats .stats-label {
  display: none !important;
}
.product-layout .product-thumb .stats .stat-brand > span:not(.stats-label),
.product-layout .product-thumb .stats .stat-brand a {
  display: block;
  padding: 0 !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.product-layout .product-thumb .stats .stat-model {
  flex: 0 0 auto;
}
.product-layout .product-thumb .stats .stat-brand a {
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--ed-brown) !important;
}
.product-layout .product-thumb .stats .stat-brand a:hover {
  color: var(--ed-magenta) !important;
}
.product-layout .product-thumb .stats .stat-model,
.product-layout .product-thumb .stats .stat-model span {
  font-size: 11px !important;
  color: #9a9a9a !important;
  padding: 0 !important;
}

/* nume: stânga, 2 rânduri fixe → prețurile se aliniază între carduri */
.product-layout .product-thumb .name {
  justify-content: flex-start !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.product-layout .product-thumb .name a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  white-space: normal !important;
  height: 2.7em;
  max-height: 2.7em;
  padding: 0 !important;
  text-align: left !important;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.35 !important;
  color: var(--ed-ink) !important;
  text-decoration: none !important;
}
.product-layout .product-thumb .name a:hover {
  color: var(--ed-magenta) !important;
}

/* preț */
.product-layout .product-thumb .price {
  margin: 0 !important;
  padding: 0 !important;
  justify-content: flex-start !important;
}
.product-layout .product-thumb .price > div {
  padding: 0 !important;
  margin: 0 !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 2px;
}
.product-layout .product-thumb .price-new,
.product-layout .product-thumb .price-normal {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: var(--ed-ink) !important;
}
.product-layout .product-thumb .price-old {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  color: #8b9198 !important;
  align-items: center;
  gap: 3px;
}

/* butoane jos, aceeași linie în toate cardurile */
.product-layout .product-thumb .buttons-wrapper {
  margin-top: auto !important;
  padding-top: 4px;
}
.product-layout .product-thumb .button-group {
  width: 100%;
  gap: 6px;
}
.product-layout .product-thumb .cart-group {
  width: 100%;
  align-items: stretch;
  flex-wrap: nowrap !important;
  gap: 6px;
}
.product-layout .product-thumb .btn-cart {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 38px;
  padding-left: 8px !important;
  padding-right: 8px !important;
  white-space: nowrap;
  margin: 0 !important;
  border-radius: var(--ed-radius) !important;
  font-weight: 700;
  justify-content: center;
  transition: background-color .15s ease, transform .1s ease;
}
.product-layout .product-thumb .btn-cart:hover {
  background-color: var(--ed-brown-dark) !important;
}
.product-layout .product-thumb .btn-cart:active {
  transform: scale(.97);
}

/* stepper card: [ − ][ 1 ][ + ] (customCSS îl poziționa absolut) */
.product-layout .product-thumb .stepper {
  position: relative !important;
  display: flex !important;
  align-items: stretch;
  flex: 0 0 auto;
  width: 88px !important;
  min-width: 88px !important;
  height: 38px !important;
  margin: 0 !important;
  border: 1px solid #cfc8c0 !important;
  border-radius: var(--ed-radius) !important;
  overflow: hidden;
  background: #fff;
}
.product-layout .product-thumb .stepper input,
.product-layout .product-thumb .stepper input.form-control {
  position: static !important;
  order: 2;
  flex: 1 1 auto !important;
  width: 34px !important;
  min-width: 0 !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: center !important;
  font-size: 15px !important;
  font-weight: 700;
  color: var(--ed-ink);
}
.product-layout .product-thumb .stepper .fa {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  flex: 0 0 28px;
  width: 28px !important;
  height: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: #f3efea !important;
  color: var(--ed-ink) !important;
  cursor: pointer;
}
.product-layout .product-thumb .stepper .fa:hover {
  background-color: #e8e0d6 !important;
}
.product-layout .product-thumb .stepper .fa-angle-down {
  order: 1;
}
.product-layout .product-thumb .stepper .fa-angle-up {
  order: 3;
}
.product-layout .product-thumb .stepper .fa.fa-angle-down::before,
.product-layout .product-thumb .stepper .fa.fa-angle-up::before {
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  color: var(--ed-ink) !important;
  transform: none !important;
}
.product-layout .product-thumb .stepper .fa.fa-angle-down::before {
  content: "\2212" !important;
}
.product-layout .product-thumb .stepper .fa.fa-angle-up::before {
  content: "+" !important;
}

/* carduri înguste (carusele cu 5–6 coloane, „Asemănătoare” pe telefon):
   textul „Adaugă în coș” nu încape → buton doar cu iconiță */
.product-layout .product-thumb {
  container: edcard / inline-size;
}
@container edcard (max-width: 235px) {
  .product-layout .product-thumb .btn-cart .btn-text {
    display: none !important;
  }
  .product-layout .product-thumb .btn-cart {
    flex: 0 0 42px !important;
    width: 42px;
    padding: 0 !important;
  }
  .product-layout .product-thumb .btn-cart::before,
  .product-layout .product-thumb .btn-cart .fa {
    margin: 0 !important;
  }
  .product-layout .product-thumb .cart-group {
    justify-content: space-between;
  }
}
@container edcard (max-width: 175px) {
  .product-layout .product-thumb .stepper {
    width: 76px !important;
    min-width: 76px !important;
  }
  .product-layout .product-thumb .stepper .fa {
    flex-basis: 24px;
    width: 24px !important;
  }
  .product-layout .product-thumb .btn-cart {
    flex-basis: 38px !important;
    width: 38px;
  }
}
/* sub 168px (carusel „Asemănătoare” pe telefon, unde butonul n-are
   iconiță): fără stepper, buton lat cu text */
@container edcard (max-width: 168px) {
  .product-layout .product-thumb .stepper {
    display: none !important;
  }
  .product-layout .product-thumb .btn-cart {
    flex: 1 1 auto !important;
    width: auto;
    padding: 0 8px !important;
  }
  .product-layout .product-thumb .btn-cart .btn-text {
    display: block !important;
    font-size: 12px !important;
  }
}

/* eticheta-imagine „LICHIDĂRI DE STOC” acoperea sticla */
.product-layout .product-thumb .wish-group .btn-category-label img {
  width: 72px !important;
  height: auto !important;
}

/* telefon: 2 pe rând */
@media (max-width: 760px) {
  .main-products.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .main-products.product-grid > .product-layout {
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
  }
  .product-layout .product-thumb .caption {
    padding: 8px 8px 10px !important;
    gap: 5px;
  }
  .product-layout .product-thumb .stats .stat-model {
    display: none !important;
  }
  .product-layout .product-thumb .name a {
    font-size: 13px !important;
  }
  .product-layout .product-thumb .price-new,
  .product-layout .product-thumb .price-normal {
    font-size: 16px !important;
  }
  .product-layout .product-thumb .stepper {
    width: 88px !important;
    min-width: 88px !important;
    height: 36px !important;
  }
  .product-layout .product-thumb .stepper .fa {
    flex-basis: 28px;
    width: 28px !important;
  }
  .product-layout .product-thumb .btn-cart {
    min-height: 36px;
    min-width: 40px;
    padding: 0 8px !important;
  }
  .product-layout .product-thumb .wish-group .btn-category-label img {
    width: 54px !important;
  }
}

/* ---------------------------------------------------------------------
   12. Mini-coș (panou lateral pe telefon + dropdown pe desktop)
   --------------------------------------------------------------------- */
.cart-content .cart-products .table {
  background: #fff !important;
  margin: 0 !important;
}
.cart-content .cart-products tr {
  background: #fff !important;
}
.cart-content .cart-products td {
  border: 0 !important;
  border-bottom: 1px solid #efebe6 !important;
  padding: 10px 6px !important;
  vertical-align: middle !important;
}
.cart-content .cart-products .td-image {
  width: 64px;
  padding-left: 12px !important;
}
.cart-content .cart-products .td-image img {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain;
  padding: 2px !important;
  border: 1px solid #efebe6 !important;
  border-radius: 8px !important;
  background: #fff !important;
}
.cart-content .cart-products .td-name a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ed-ink) !important;
  text-decoration: none !important;
}
.cart-content .cart-products .td-name a:hover {
  color: var(--ed-magenta) !important;
}
.cart-content .cart-products .td-qty {
  white-space: nowrap;
  font-size: 12px !important;
  color: var(--ed-muted) !important;
}
.cart-content .cart-products .td-total {
  white-space: nowrap;
  font-size: 13px !important;
  font-weight: 700;
  color: var(--ed-ink) !important;
}
.cart-content .cart-products .td-remove {
  width: 40px;
  padding-right: 10px !important;
}
.cart-content .cart-products .cart-remove {
  width: 28px;
  height: 28px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fbeaea !important;
  color: #c4161c !important;
  transition: background-color .15s ease;
}
.cart-content .cart-products .cart-remove:hover {
  background: #f6d3d3 !important;
}

.cart-content .cart-totals {
  background: #fff !important;
  border-top: 1px solid var(--ed-line);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .05);
}
.cart-content .cart-totals .table,
.cart-content .cart-totals .table td {
  background: #fff !important;
  border: 0 !important;
}
.cart-content .cart-totals .table {
  margin: 0 !important;
}
.cart-content .cart-totals td {
  padding: 7px 14px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}
.cart-content .cart-totals .td-total-title {
  text-align: left !important;
  color: var(--ed-muted) !important;
}
.cart-content .cart-totals .td-total-text {
  white-space: nowrap;
  color: var(--ed-ink) !important;
  font-weight: 600 !important;
}
.cart-content .cart-totals tr:last-child td {
  padding-top: 11px !important;
  padding-bottom: 11px !important;
  border-top: 1px solid #efebe6 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--ed-ink) !important;
}
.cart-content .cart-buttons {
  display: flex !important;
  gap: 8px;
  padding: 10px 14px 14px !important;
  background: #fff !important;
}
.cart-content .cart-buttons .btn {
  flex: 1 1 0;
  min-height: 44px;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: var(--ed-radius) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  white-space: nowrap;
}
.cart-content .cart-buttons .btn-cart {
  background: #fff !important;
  color: var(--ed-brown) !important;
  border: 2px solid var(--ed-brown) !important;
}
.cart-content .cart-buttons .btn-cart:hover {
  background: var(--ed-brown) !important;
  color: #fff !important;
}
.cart-content .cart-buttons .btn-checkout {
  flex-grow: 1.4;
}
/* panou lateral îngust (telefon): butoane unul sub altul, comanda prima */
.mobile-cart-content-container .cart-content .cart-buttons {
  flex-direction: column;
  align-items: stretch !important;
  padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
}
.mobile-cart-content-container .cart-content .cart-buttons .btn {
  width: 100% !important;
  flex: 0 0 auto;
}
.mobile-cart-content-container .cart-content .cart-buttons .btn-checkout {
  order: -1;
  min-height: 48px;
  font-size: 15px !important;
}
/* rând produs pe 2 linii: [img][nume ........][×]
                           [img][x 2   29.26 Lei][×] */
.mobile-cart-content-container .cart-products table,
.mobile-cart-content-container .cart-products tbody {
  display: block;
  width: 100%;
}
.mobile-cart-content-container .cart-products tr {
  display: grid !important;
  grid-template-columns: 56px auto 1fr 32px;
  grid-template-areas:
    "img name name rm"
    "img qty  total rm";
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  padding: 12px 12px 12px 14px;
  border-bottom: 1px solid #efebe6;
}
.mobile-cart-content-container .cart-products td {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  width: auto !important;
  text-align: left !important;
}
.mobile-cart-content-container .cart-products .td-image {
  grid-area: img;
}
.mobile-cart-content-container .cart-products .td-name {
  grid-area: name;
  min-width: 0;
}
.mobile-cart-content-container .cart-products .td-name br {
  display: none;
}
.mobile-cart-content-container .cart-products .td-qty {
  grid-area: qty;
}
.mobile-cart-content-container .cart-products .td-total {
  grid-area: total;
  text-align: right !important;
}
.mobile-cart-content-container .cart-products .td-remove {
  grid-area: rm;
  justify-self: end;
}
.mobile-cart-content-container .mobile-wrapper-header > span {
  letter-spacing: .04em;
}
