/* ============================================================
   Moringa product page — fully responsive, mobile-first
   No fixed pixel positioning for layout.
   ============================================================ */

/* ---- Defensive: kill any leftover WooCommerce / Elementor widgets that
       a plugin or Theme Builder might still try to render on this page.
       Our content-single-product.php is the ONLY thing that should show. */
.moringa-product-wrap .woocommerce-tabs,
.moringa-product-wrap .wc-tabs-wrapper,
.moringa-product-wrap .wc-tabs,
.moringa-product-wrap .related.products,
.moringa-product-wrap .upsells.products,
.moringa-product-wrap .woocommerce-breadcrumb,
.moringa-product-wrap .woocommerce-notices-wrapper,
.moringa-product-wrap .woocommerce-product-gallery,
.moringa-product-wrap .product_meta,
.moringa-product-wrap .single-product > .product > .summary,
.moringa-product-wrap .elementor-widget-woocommerce-product-data-tabs,
.moringa-product-wrap .elementor-widget-woocommerce-product-related,
.moringa-product-wrap .elementor-widget-woocommerce-product-upsell,
.moringa-product-wrap .elementor-widget-woocommerce-product-meta,
.moringa-product-wrap .elementor-widget-woocommerce-breadcrumb {
  display: none !important;
}

/* ---- Set direction explicitly on our wrapper so the layout works
       even if the theme doesn't apply dir="rtl" to the body. */
.moringa-product-root,
.moringa-product-wrap {
  direction: rtl;
  text-align: right;
  background: #fff;
}


/* ---- Kill the theme's pink hover on every button INSIDE our product wrap.
       (Hello Theme has a global button:hover with pink #c36 background.) */
.moringa-product-wrap [type="button"]:hover,
.moringa-product-wrap [type="button"]:focus,
.moringa-product-wrap [type="submit"]:hover,
.moringa-product-wrap [type="submit"]:focus,
.moringa-product-wrap button:hover,
.moringa-product-wrap button:focus,
.moringa-product-wrap a:hover,
.moringa-product-wrap a:focus {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
  outline: none;
}

/* Restore intentional hovers */
.moringa-product-wrap .product__add-to-cart:hover,
.moringa-product-wrap .product__add-to-cart:focus {
  background: #013523 !important;
  color: #fff !important;
}
.moringa-product-wrap .thumb:hover {
  outline: 1px solid var(--c-dark);
  outline-offset: -1px;
}
.moringa-product-wrap .product__qty-btn:hover,
.moringa-product-wrap .product__qty-btn:focus {
  color: var(--c-dark) !important;
  background: transparent !important;
}
.moringa-product-wrap .product__arrow:hover,
.moringa-product-wrap .product__arrow:focus,
.moringa-product-wrap .product__zoom:hover,
.moringa-product-wrap .product__zoom:focus {
  background: transparent !important;
  opacity: 0.7;
}
.moringa-product-wrap .product__consult:hover,
.moringa-product-wrap .product__consult:focus {
  background: #fff !important;
  color: #000 !important;
  box-shadow: 0 0 14px rgba(76, 175, 80, 0.6) !important;
}
.moringa-product-wrap .product__share-btn:hover,
.moringa-product-wrap .product__share-btn:focus {
  background-color: rgba(0, 50, 27, 0.04) !important;
  color: #000 !important;
}
.moringa-product-wrap .product__share-btn--rec:hover,
.moringa-product-wrap .product__share-btn--rec:focus {
  background: var(--c-bg-rec) !important;
}

:root {
  --c-dark: #00321B;
  --c-green: #05683A;
  --c-red: #A8242A;
  --c-text-mute: #686868;
  --c-border: #E8E8E8;
  --c-bg-light: #F4F4F4;
  --c-bg-info: rgba(118, 214, 121, 0.20);
  --c-bg-rec: #E3F7E4;
  --c-border-rec: #C2E2C4;
  --c-whatsapp: #4CAF50;
  --c-text: #000;

  --gap-xs: 6px;
  --gap-sm: 10px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 60px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Assistant', sans-serif;
  background: #fff;
  color: var(--c-text);
  line-height: 1.4;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button { font-family: inherit; }

/* ============================================================
   Main container
   Mobile: flex column (gallery → content)
   Desktop (>=925px): 2-column grid, gallery sticky on visual left,
                       content scrolls on visual right
   ============================================================ */
.product {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
          margin-top: 40px;
}

@media(max-width:900px){
.product {
  margin-top: 0px;
}
}

@media (min-width: 768px) {
  .product { padding: 24px; gap: var(--gap-xl); }
}

@media (min-width: 1100px) {
  .product { padding: 32px; }
}

@media (min-width: 925px) {
  .product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "content sidebar";
    align-items: start;
    gap: var(--gap-xl);
  }

  .product__sidebar { grid-area: sidebar; }
  .product__content { grid-area: content; }
}

/* Left sidebar = gallery + "חשוב לדעת" stacked, sticky together on desktop */
.product__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  min-width: 0;
}

/* Right column on desktop = all the content stacked vertically */
.product__content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  min-width: 0;
}

/* Sticky sidebar (gallery + important) on desktop.
   container-type here makes the sidebar a query container so that
   100cqw inside .product__gallery / .product__thumbs resolves to the
   ACTUAL sidebar width (which equals the gallery width), not viewport. */
@media (min-width: 925px) {
  .product__sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    container-type: inline-size;
  }
}

/* ============================================================
   Gallery (main image + thumbnails)
   ============================================================ */
.product__gallery {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.product__main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--c-bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.product__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Discount badge (top-right of main image in RTL) */
/* .product__discount {
  position: absolute;
  top: 6%;
  right: 4%;
  width: clamp(60px, 11%, 85px);
  aspect-ratio: 1 / 1;
  background: var(--c-green);
  border: 1.2px solid white;
  border-radius: 50%;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-11deg);
  z-index: 2;
  text-align: center;
  padding: 4px;
} */

input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    border: 1px solid #66666600 !important;
    width: 38px;
    display: ruby;

}

.product__discount {
    position: absolute;
    top: 3%;
    left: 4%;
    /* Responsive: 70px on small viewports, ~14% of image on medium, capped at 100px */
    width: clamp(70px, 18%, 100px);
    aspect-ratio: 1 / 1;
    background: var(--c-green);
    border: 1.2px solid white;
    border-radius: 50%;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(-11deg);
    z-index: 2;
    text-align: center;
    padding: clamp(6px, 1.2%, 12px);
    box-sizing: border-box;
}
.product__discount-label {
  font-size: clamp(11px, 1.2vw, 18px);
  font-weight: 700;
  line-height: 1;
}
.product__discount-amount {
  display: flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1;
}
.product__discount-curr {
  font-size: clamp(10px, 1vw, 15px);
  font-weight: 700;
}
.product__discount-num {
  font-size: clamp(18px, 2.2vw, 32px);
  font-weight: 700;
}

/* Arrows */
.product__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product__arrow svg { width: clamp(20px, 3vw, 30px); height: clamp(20px, 3vw, 30px); }

.product__arrow--prev { left: 8px; }
.product__arrow--next { right: 8px; }

/* Zoom — bottom-right of main image (RTL or LTR, physical) */
.product__zoom {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 2;
}

.product__zoom svg { width: clamp(20px, 2.6vw, 28px); height: clamp(20px, 2.6vw, 28px); }

/* Thumbnails row */
.product__thumbs {
  display: flex;
  flex-direction: row;
  gap: var(--gap-sm);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.product__thumbs > li { flex-shrink: 0; }

.thumb {
  width: clamp(64px, 14vw, 100px);
  aspect-ratio: 1 / 1;
  background: var(--c-bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.thumb--active {
  outline: 1px solid var(--c-dark);
  outline-offset: -1px;
}


@media (min-width: 925px) {

  .product__gallery {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) calc((100cqw - 40px) / 5) !important;
    grid-template-rows: auto !important;
    gap: 10px !important;
    align-items: start !important;
    overflow: visible !important;
  }

  .product__main-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .product__thumbs {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(4, calc((100cqw - 40px) / 5)) !important;
    grid-auto-rows: calc((100cqw - 40px) / 5) !important;
    gap: 10px !important;
    width: 100% !important;
    height: calc(4 * (100cqw - 40px) / 5 + 30px) !important;
    max-height: calc(4 * (100cqw - 40px) / 5 + 30px) !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    overflow-y: auto;
    overflow-x: hidden;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    flex-direction: initial;
    scrollbar-width: thin;
    scrollbar-color: var(--c-dark) transparent;
  }
  .product__thumbs::-webkit-scrollbar { width: 6px; }
  .product__thumbs::-webkit-scrollbar-thumb { background: var(--c-dark); border-radius: 4px; }
  .product__thumbs::-webkit-scrollbar-track { background: transparent; }

  .product__thumbs > li {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .thumb {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    padding: 8px;
  }
}

/* ============================================================
   Right-column content elements
   ============================================================ */

/* Breadcrumb */
.product__breadcrumb {
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  color: var(--c-text);
}

.product__breadcrumb a {
  color: var(--c-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.product__breadcrumb-sep { color: var(--c-green); margin: 0 2px; }

.product__breadcrumb-current { font-weight: 600; }

/* Title */
.product__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--c-dark);
  margin: 0;
  line-height: 1.15;
}

/* Intro */
.product__intro {
  color: var(--c-dark);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.45;
}

.product__intro p { margin: 0 0 8px; }
.product__intro p:last-child { margin-bottom: 0; }
.product__intro a { color: var(--c-dark); text-decoration: underline; font-weight: 700; }

/* Price row */
.product__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-md);
}

.product__consult {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--c-whatsapp);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--c-text);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
  white-space: nowrap;
}

.product__prices {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.product__price-current {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  color: var(--c-red);
}

.product__price-original {
  font-size: clamp(22px, 2.4vw, 28px);
  text-decoration: line-through;
  color: var(--c-text-mute);
  font-weight: 400;
}

/* Unit price */
.product__unit {
  font-size: 15px;
  color: var(--c-text);
}

/* Features (3 shipping cards) */
.product__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 480px) {
  .product__features { grid-template-columns: repeat(3, 1fr); }
}

.product__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 14px;
  min-height: 53px;
}

.product__feature img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Cart row */
.product__cart-row {
  display: flex;
  align-items: stretch;
  gap: var(--gap-md);
}

.product__add-to-cart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--c-dark);
  color: white;
  border: none;
  padding: 14px 20px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  cursor: pointer;
  min-height: 56px;
}

.product__add-to-cart:hover { background: #013523; }

.product__qty {
  display: flex;
  align-items: center;
  justify-content: space-around;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  width: 132px;
  height: 56px;
  flex-shrink: 0;
}

.product__qty-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 24px;
  font-weight: 400;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
  user-select: none;
  padding: 0;
}

.product__qty-value {
  font-size: 20px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

/* Terms */
.product__terms {
  font-size: 15px;
  color: var(--c-text);
  text-decoration: underline;
}

/* Share row */
.product__share-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 480px) {
  .product__share-row { grid-template-columns: 1fr 1fr; }
}

.product__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  font-size: clamp(15px, 1.3vw, 19px);
  background: transparent;
  border: 1px solid var(--c-border-rec);
  cursor: pointer;
  color: var(--c-text);
  font-weight: 400;
  min-height: 51px;
}

.product__share-btn--rec {
  background: var(--c-bg-rec);
  border-color: transparent;
}

/* ============================================================
   Offer wrap — timer sits ABOVE the bordered box (right side, no radius)
   ============================================================ */
.product__offer-wrap {
  display: flex;
  flex-direction: column;
}

.product__offer-box {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md, 14px);
}

/* Border + padding only when a timer is rendered above the box */
.product__offer-timer ~ .product__offer-box {
  border: 2px solid #A8242A;
  border-radius: 0;
  padding: 18px;
}

@media (max-width: 600px) {
  .product__offer-timer ~ .product__offer-box { padding: 14px; }
}

/* ============================================================
   Offer countdown timer — attached to top-right of box, no rounded corners
   ============================================================ */
.product__offer-timer {
  background: #A8242A;
  color: #fff;
  border-radius: 0;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  direction: rtl;
  flex-wrap: wrap;
  align-self: flex-start; /* RTL: flex-start = right edge */
  max-width: 100%;
  margin-bottom: -2px; /* overlap top border so timer sits flush above border */
  position: relative;
  z-index: 1;
}

.offer-timer__heading {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: right;
  font-family: 'Assistant', system-ui, sans-serif;
}
.offer-timer__heading strong {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
}
.offer-timer__heading span {
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 400;
}

.offer-timer__clock {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  direction: ltr;
}

.offer-timer__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.offer-timer__tiles {
  display: flex;
  gap: 3px;
}

.offer-timer__tile {
  background: #fff;
  color: #000;
  font-family: 'Assistant', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1;
  border-radius: 4px;
  width: clamp(20px, 2.2vw, 26px);
  height: clamp(26px, 2.8vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.offer-timer__sep {
  color: #fff;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1;
  align-self: flex-start;
  padding-top: 4px;
  font-weight: 400;
}

.offer-timer__label {
  font-size: clamp(10px, 0.9vw, 12px);
  color: #fff;
  font-weight: 400;
  font-family: 'Assistant', system-ui, sans-serif;
}

@media (max-width: 600px) {
  .product__offer-timer {
    padding: 10px 12px;
    gap: 10px;
    justify-content: center;
  }
  .offer-timer__heading { text-align: center; align-items: center; }
  .offer-timer__tile {
    width: 18px;
    height: 24px;
    font-size: 16px;
  }
  .offer-timer__sep { padding-top: 2px; font-size: 16px; }
}

/* ============================================================
   Product patches — perched on top edge of image (row, outside the frame)
   ============================================================ */
.product__main-image { overflow: visible; }

.product__patches {
  position: absolute;
  top: 28px;
  right: 10px;
  z-index: 3;
  display: flex;
  flex-direction: row;
  gap: 10px;
  pointer-events: none;
  transform: translateY(-50%);
}

.product__patch {
  display: block;
  width: clamp(56px, 8%, 79px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}

@media (max-width: 600px) {
  .product__patches {
    top: 28px;
    right: 6px;
    flex-direction: column;
    gap: 6px;
  }
  .product__patch { width: 48px; }
}

/* ============================================================
   Important to know
   ============================================================ */
.product__important {
  background: var(--c-bg-info);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.product__important h3 {
  color: var(--c-red);
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 700;
  margin: 0 0 10px;
}

.product__important p {
  font-size: clamp(14px, 1.2vw, 17px);
  margin: 0 0 6px;
  line-height: 1.5;
}

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

/* ============================================================
   Sections (description / usage / details)
   ============================================================ */
.product__section {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.product__section-title {
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--c-green);
  align-self: flex-start;
  width: fit-content;
  padding-inline: 4px;
}

.product__list {
  list-style: disc;
  padding-inline-start: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product__list li {
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.5;
}

.product__long-desc p,
.product__section > p {
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.5;
  margin: 0;
}

.product__long-desc p + p { margin-top: 8px; }

.product__long-desc a { font-weight: 700; text-decoration: underline; }

/* ============================================================
   "מוצרים נוספים" — full-width related-products slider beneath
   the two-column layout. Wraps [moringa_products_slider].
   ============================================================ */
.product__related {
  width: 100%;

  margin: 32px auto 0;

  box-sizing: border-box;
  direction: rtl;
}
.moringa-prods.products-section{
  padding: 0px 60px 0px !important;
}

h2.product__related-title {
    text-align: center;
    font-size: 42px;
}
@media(max-width:900px){
  h2.product__related-title {
    text-align: center;
    font-size: 30px;
}
}

.product__related-title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--c-dark);
  margin: 0 0 20px;
  text-align: right;
}

/* The [moringa_products_slider] shortcode renders its own h2.section-title
   from front-page ACF; hide it so only OUR "מוצרים נוספים" heading shows. */
.product__related .moringa-prods > .section-title {
  display: none;
}

.product__related .moringa-prods {
  padding-top: 0;
  margin-top: 0;
}

/* Payment methods notice — Figma node 419-22 (below add-to-cart) */
.product__pay-notice {
  direction: rtl;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-family: 'Assistant', system-ui, sans-serif;
}
.product__pay-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  background: #F78519;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 16px;
  border-radius: 60px;
}
.product__pay-text {
  color: #00321A;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
}
.product__pay-icons {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.product__pay-icons img {
  display: block;
  height: 39px;
  width: auto;
  max-width: 100%;
}
@media (max-width: 600px) {
  .product__pay-notice {
    gap: 10px;
    row-gap: 12px;
  }
  .product__pay-badge { font-size: 17px; padding: 7px 14px; }
  .product__pay-text  { font-size: 16px; flex: 1 1 60%; }
  .product__pay-icons img { height: 34px; }
}
