/* EnergyZone — pagina principală: blocurile din template-ul Martfury (home-marketplace)
   „Deal of the day” (ps-deal-of-day) și „products of category” (ps-block--products-of-category).
   Structură și dimensiuni ca în template; culorile de accent pe paleta EnergyZone (variabilele de mai jos). */
.mf-deal-of-day, .mf-clothings { --mf-accent: #fc6d18; --mf-sale: #f30; --mf-badge: #f14705; --mf-line: #e1e1e1; --mf-text: #000; --mf-muted: #666; --mf-title: #303030; }

/* ══ Oferta zilei ══ */
.mf-deal-of-day { background: #fff; padding: 60px 0 70px; }
.mf-section__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 10px; margin-bottom: 60px; border-bottom: 1px solid #ccc; }
.mf-section__header > a { font-size: 14px; line-height: 21px; color: var(--mf-text); border-bottom: 1px solid var(--mf-text); padding-bottom: 6px; white-space: nowrap; }
.mf-section__header > a:hover { color: var(--mf-accent); border-color: var(--mf-accent); }
.mf-block--countdown-deal { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 70px; }
.mf-block--countdown-deal h3 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 400; color: var(--mf-text); }
.mf-block--countdown-deal figure { display: flex; align-items: center; margin: 0; padding: 6px 20px; background: var(--mf-badge); border-radius: 3px; color: #fff; font-size: 16px; line-height: 20px; font-weight: 600; }
.mf-block--countdown-deal figcaption { margin-right: 20px; }
.mf-countdown { display: flex; list-style: none; margin: 0; padding: 0; }
.mf-countdown li { position: relative; padding-right: 8px; margin-right: 8px; }
.mf-countdown li::after { content: ":"; position: absolute; right: -2px; top: 0; }
.mf-countdown li:last-child { padding-right: 0; margin-right: 0; }
.mf-countdown li:last-child::after { display: none; }
.mf-section__content { position: relative; }
.mf-carousel { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mf-carousel::-webkit-scrollbar { display: none; }
.mf-carousel__item { flex: 0 0 calc((100% - 120px) / 5); min-width: 0; scroll-snap-align: start; }
.mf-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 32px; height: 40px; padding: 0; background: transparent; border: 0; color: #000; cursor: pointer; }
.mf-nav svg { width: 32px; height: 40px; }
.mf-nav:hover { color: var(--mf-accent); }
.mf-nav--prev { left: -42px; }
.mf-nav--next { right: -42px; }

/* ══ Cardul de produs din template ══ */
.mf-product { position: relative; background: #fff; }
.mf-product__thumbnail { position: relative; overflow: hidden; }
.mf-product__thumbnail > a { display: block; aspect-ratio: 1 / 1; }
.mf-product__thumbnail img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mf-product__badge { position: absolute; top: 0; right: 0; z-index: 2; padding: 5px 10px; background: var(--mf-badge); color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; border-radius: 4px; }
.mf-product__badge--out { background: #000; }
.mf-product__actions { position: absolute; left: 50%; bottom: 0; z-index: 3; display: flex; list-style: none; margin: 0; padding: 0; background: #fff; transform: translate(-50%, 100%); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.mf-product:hover .mf-product__actions { transform: translate(-50%, 0); opacity: 1; }
.mf-product__actions li { margin: 0; }
.mf-product__actions form { margin: 0; display: block; }
.mf-product__actions button { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 6px 3px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #000; cursor: pointer; transition: background .2s, color .2s; }
.mf-product__actions button:hover { background: var(--mf-accent); color: #fff; }
.mf-product__actions svg { width: 18px; height: 18px; }
.mf-product__vendor { display: block; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--mf-line); font-size: 12px; line-height: 14px; text-transform: uppercase; color: var(--mf-text); }
.mf-product__vendor:hover { color: var(--mf-accent); }
.mf-product__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 0 10px 0 0; margin-bottom: 5px; font-size: 14px; line-height: 17px; height: 34px; color: var(--mf-title); }
.mf-product__title:hover { color: var(--mf-accent); }
.mf-product .ez-card-rating { margin: 0 0 4px; }
.mf-product .ez-card-stars svg { color: #d0d3da; }
.mf-product .ez-card-stars svg.on { color: #edb867; }
.mf-product .ez-card-cmt { display: none; }
.mf-product .ez-card-rcount { margin-left: 6px; font-size: 14px; color: var(--mf-muted); }
.mf-product__price { margin: 0 0 10px; font-size: 16px; line-height: 26px; color: var(--mf-text); white-space: nowrap; }
.mf-product__price.sale { color: var(--mf-sale); }
.mf-product__price del { margin-left: 4px; color: var(--mf-muted); }
.mf-product__price a { color: var(--mf-accent); font-size: 14px; }
.mf-product__progress { height: 11px; background: #e4e4e4; margin: 4px 0 8px; }
.mf-product__progress span { display: block; height: 100%; background: var(--mf-accent); }
.mf-product__sold { margin: 0; font-size: 14px; line-height: 21px; color: var(--mf-muted); }
.mf-product--inner .mf-product__container { padding-top: 16px; }

/* ══ Blocul „produse din categorie” ══ */
.mf-clothings { padding: 70px 0 0; }
.mf-block--products-of-category { display: flex; align-items: stretch; margin-bottom: 70px; background: #fff; }
.mf-block__categories { position: relative; flex: 0 0 20%; max-width: 20%; padding: 30px 20px 70px 30px; background: #fff; }
.mf-block__categories h3 { margin: 0 0 35px; font-size: 24px; line-height: 29px; font-weight: 400; color: var(--mf-text); overflow-wrap: anywhere; }
.mf-block__categories ul { list-style: none; margin: 0; padding: 0; }
.mf-block__categories ul li a { display: block; padding: 3px 0; font-size: 14px; line-height: 20px; color: var(--mf-text); }
.mf-block__categories ul li a:hover { color: var(--mf-accent); }
.mf-block__more-link { position: absolute; left: 30px; bottom: 40px; font-size: 14px; line-height: 21px; font-style: italic; color: var(--mf-muted); }
.mf-block__more-link:hover { color: var(--mf-accent); }
.mf-block__slider { position: relative; flex: 0 0 24%; max-width: 24%; min-height: 750px; overflow: hidden; background: #eee; }
.mf-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.mf-slide.active { opacity: 1; visibility: visible; }
.mf-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mf-slide--plain { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 30px 24px; text-align: center; background: linear-gradient(160deg, #303030 0%, #3a3a3a 45%, #fc6d18 140%); }
.mf-slide__name { font-size: 30px; line-height: 36px; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.mf-slide__btn { display: inline-flex; align-items: center; height: 50px; padding: 0 32px; border-radius: 4px; background: var(--mf-accent); color: #fff; font-size: 18px; font-weight: 700; }
.mf-slide--plain:hover .mf-slide__btn { background: #ea5a04; }
.mf-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 32px; height: 32px; padding: 6px; border: 0; background: rgba(255, 255, 255, .5); color: #000; cursor: pointer; opacity: 0; transition: opacity .2s; }
.mf-block__slider:hover .mf-slider__nav { opacity: 1; }
.mf-slider__nav--prev { left: 10px; }
.mf-slider__nav--next { right: 10px; }
.mf-slider__dots { position: absolute; left: 0; right: 0; bottom: 25px; z-index: 3; display: flex; justify-content: center; gap: 12px; }
.mf-slider__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer; }
.mf-slider__dots button.active { background: #fff; }
.mf-block__product-box { flex: 1 1 56%; min-width: 0; display: flex; flex-flow: row wrap; align-content: stretch; }
.mf-block__product-box .mf-product--simple { flex: 0 0 33.3333%; max-width: 33.3333%; min-height: 375px; padding: 20px 20px 0; border: 1px solid var(--mf-line); border-top-width: 0; border-left-width: 0; }
.mf-block__product-box .mf-product--simple:nth-child(-n+3) { border-top-width: 1px; }
.mf-block__product-box .mf-product--simple .mf-product__container { padding-top: 12px; }
.mf-block__empty { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 220px; align-self: stretch; flex: 1 1 100%; padding: 30px; border: 1px solid var(--mf-line); border-left-width: 0; color: var(--mf-muted); font-size: 15px; text-align: center; }

@media (max-width: 1500px) { .mf-nav--prev { left: -8px; } .mf-nav--next { right: -8px; } .mf-nav { background: rgba(255, 255, 255, .85); } }
@media (max-width: 1199px) {
  .mf-carousel__item { flex-basis: calc((100% - 90px) / 4); }
  .mf-block--products-of-category { flex-wrap: wrap; }
  .mf-block__categories { flex: 0 0 100%; max-width: 100%; padding: 24px 20px 20px; }
  .mf-block__categories h3 { margin-bottom: 14px; }
  .mf-block__categories ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .mf-block__more-link { position: static; display: inline-block; margin-top: 12px; }
  .mf-block__slider { flex: 0 0 34%; max-width: 34%; min-height: 0; }
  .mf-block__product-box { flex: 1 1 66%; }
  .mf-block__product-box .mf-product--simple { flex-basis: 50%; max-width: 50%; }
  .mf-block__product-box .mf-product--simple:nth-child(-n+3) { border-top-width: 0; }
  .mf-block__product-box .mf-product--simple:nth-child(-n+2) { border-top-width: 1px; }
}
@media (max-width: 767px) {
  .mf-deal-of-day { padding: 30px 0 40px; }
  .mf-section__header { margin-bottom: 24px; align-items: flex-end; }
  .mf-block--countdown-deal { gap: 8px 16px; }
  .mf-block--countdown-deal h3 { font-size: 20px; line-height: 26px; }
  .mf-block--countdown-deal figure { padding: 5px 12px; font-size: 14px; }
  .mf-block--countdown-deal figcaption { margin-right: 10px; }
  .mf-carousel { gap: 16px; }
  .mf-carousel__item { flex-basis: calc((100% - 16px) / 2); }
  .mf-nav { display: none; }
  /* EnergyZone: pe mobil nu există hover → arătăm acțiunile (favorite/compară/coș) mereu, ca să poată fi apăsate */
  .mf-product__actions { position: static; transform: none; opacity: 1; justify-content: center; gap: 4px; background: transparent; margin-top: 8px; }
  .mf-product__actions button { border: 1px solid var(--mf-line, #e1e1e1); background: #fff; }
  .mf-clothings { padding-top: 30px; }
  .mf-block--products-of-category { margin-bottom: 30px; }
  .mf-block__categories h3 { font-size: 20px; line-height: 25px; }
  /* EnergyZone: banda urmează raportul bannerului mobil (1080×500 ≈ 108/50), ca imaginea să intre întreagă, fără să se taie marginile */
  .mf-block__slider { flex: 0 0 100%; max-width: 100%; height: auto; aspect-ratio: 108 / 50; min-height: 0; }
  .mf-slide__name { font-size: 22px; line-height: 27px; }
  .mf-slide--plain { gap: 14px; }
  .mf-slide__btn { height: 40px; font-size: 15px; padding: 0 22px; }
  .mf-block__product-box { flex: 0 0 100%; }
  .mf-block__product-box .mf-product--simple { min-height: 0; padding: 12px 12px 4px; border-left-width: 0; }
  .mf-block__product-box .mf-product--simple:nth-child(odd) { border-left-width: 1px; }
  .mf-product__price { font-size: 15px; }
}
