/* ==========================================================================
   פיצוחיגל – שכבת חנות (נטען רק בעמודי חנות/מוצר/סל/קופה)
   ========================================================================== */

body.woocommerce,
body.woocommerce-page {
  background: var(--pg-cream);
  font-family: var(--pg-font); /* beats Elementor's Site Kit font (.elementor-kit-*) on store pages */
}

/* ==========================================================================
   Promo banner
   ========================================================================== */
.pg-promo {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  align-items: center;
  margin: 6px 0 22px;
  padding: clamp(20px, 4.5vw, 38px);
  border-radius: var(--pg-r-lg);
  background: linear-gradient(115deg, var(--pg-brand) 0%, var(--pg-brand-deep) 70%);
  color: #fff;
  box-shadow: var(--pg-sh-2);
}
.pg-promo::before {
  content: "";
  position: absolute;
  inset-block: -40%;
  inset-inline-end: -8%;
  width: 44%;
  background: radial-gradient(circle, rgba(217, 181, 121, .28), transparent 68%);
  pointer-events: none;
}
.pg-promo > * { position: relative; }
@media (min-width: 820px) {
  .pg-promo { grid-template-columns: 1fr auto; }
}
.pg-promo__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 5px 13px;
  border-radius: var(--pg-r-pill);
  background: rgba(255, 255, 255, .14);
  color: #F3DDB3;
  font-size: .76rem;
  font-weight: 800;
}
.pg-promo__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pg-promo .pg-promo__title {
  margin: 0 0 .3em;
  color: #fff;
  font-size: clamp(1.35rem, 3.6vw, 2.1rem);
  line-height: 1.15;
}
.pg-promo__desc {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: .95rem;
}
.pg-promo__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.pg-promo__badges li {
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--pg-r-pill);
  background: rgba(255, 255, 255, .12);
  font-size: .84rem;
  font-weight: 700;
}
.pg-promo__btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 26px;
  border-radius: var(--pg-r-pill);
  background: #fff;
  color: var(--pg-brand-deep);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--pg-sh-2);
  transition: transform .2s var(--pg-ease), box-shadow .2s;
}
.pg-promo__btn:hover {
  color: var(--pg-brand);
  transform: translateY(-2px);
  box-shadow: var(--pg-sh-3);
}

/* ==========================================================================
   Category chips + quick filters
   ========================================================================== */
.pg-shopnav {
  display: grid;
  gap: 10px;
  margin: 4px 0 22px;
}
.pg-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 3px 2px 6px;
  -webkit-mask-image: linear-gradient(to left, #000 88%, transparent);
          mask-image: linear-gradient(to left, #000 88%, transparent);
}
.pg-chips::-webkit-scrollbar { display: none; }
/* Sub-categories and filters are short: wrap on desktop. The main categories row can be long
   (24+ categories) so it stays one scrollable row everywhere instead of pushing products down. */
@media (min-width: 900px) {
  .pg-chips--sub,
  .pg-chips--filters {
    flex-wrap: wrap;
    overflow: visible;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .pg-chips--cats { scrollbar-width: thin; scrollbar-color: var(--pg-line-strong) transparent; padding-bottom: 10px; }
  .pg-chips--cats::-webkit-scrollbar { display: block; height: 6px; }
  .pg-chips--cats::-webkit-scrollbar-thumb { border-radius: 6px; background: var(--pg-line-strong); }
}

/* Price filter widget in brand colors */
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background-color: var(--pg-brand); }
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content { background-color: var(--pg-brand-tint); }
.woocommerce .widget_price_filter .price_slider_amount .button {
  min-height: 38px;
  padding: 8px 18px;
  border-radius: var(--pg-r-pill);
  background: var(--pg-brand);
  color: #fff;
  font-size: .88rem;
}
.woocommerce .widget_price_filter .price_slider_amount .button:hover { background: var(--pg-brand-soft); }
.pg-chip {
  flex: none;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 16px;
  border: 1.5px solid var(--pg-line-strong);
  border-radius: var(--pg-r-pill);
  background: var(--pg-paper);
  color: var(--pg-ink-2);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
}
.pg-chip img {
  width: 28px;
  height: 28px;
  margin-inline-start: -9px;
  border-radius: 50%;
  object-fit: cover;
}
.pg-chip__n {
  font-size: .72rem;
  font-weight: 700;
  color: var(--pg-ink-3);
}
.pg-chip:hover {
  border-color: var(--pg-brand);
  color: var(--pg-brand);
}
.pg-chip.is-active {
  border-color: var(--pg-brand);
  background: var(--pg-brand);
  color: #fff;
  box-shadow: var(--pg-sh-1);
}
.pg-chip.is-active .pg-chip__n { color: rgba(255, 255, 255, .75); }
.pg-chip--sm {
  min-height: 34px;
  padding: 5px 13px;
  font-size: .82rem;
}
.pg-chip--filter.is-active {
  border-color: var(--pg-brand-deep);
  background: var(--pg-brand-deep);
}

/* Result count + sorting row */
.woocommerce .woocommerce-result-count {
  color: var(--pg-ink-3);
  font-size: .87rem;
  margin-bottom: 16px;
}
.woocommerce .woocommerce-ordering select {
  min-height: 42px;
  padding: 8px 16px;
  padding-inline-end: 40px;
  border: 1.5px solid var(--pg-line-strong);
  border-radius: var(--pg-r-pill);
  background-color: var(--pg-paper);
  color: var(--pg-ink-2);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.2;
}
[dir="rtl"] .woocommerce .woocommerce-ordering select { background-position: left 16px center; }

/* ==========================================================================
   Product grid
   ========================================================================== */
.woocommerce ul.products.uptheme-grid,
.woocommerce-page ul.products.uptheme-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2.2vw, 20px);
  margin: 0 0 34px !important;
  padding: 0;
}
@media (min-width: 768px) {
  .woocommerce ul.products.uptheme-grid,
  .woocommerce-page ul.products.uptheme-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}
/* the theme's float clearfix pseudo-elements would become empty grid cells */
.woocommerce ul.products.uptheme-grid::before,
.woocommerce ul.products.uptheme-grid::after {
  content: none !important;
  display: none !important;
}
.woocommerce ul.products.uptheme-grid > li.product {
  display: flex;
  flex-direction: column;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  container-type: inline-size;
}

/* ==========================================================================
   Product card
   ========================================================================== */
.woocommerce ul.products li.product .uptheme-woo-product-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-r-lg);
  background: var(--pg-paper);
  transition: transform .35s var(--pg-ease), box-shadow .35s var(--pg-ease), border-color .35s;
}
@media (hover: hover) {
  .woocommerce ul.products li.product .uptheme-woo-product-wrapper:hover {
    transform: translateY(-5px);
    border-color: var(--pg-line-strong);
    box-shadow: var(--pg-sh-3);
  }
  .woocommerce ul.products li.product .uptheme-woo-product-wrapper:hover .uptheme-woo-loop-thumbnail-wrapper img {
    transform: scale(1.06);
  }
}

/* Media */
.woocommerce ul.products li.product .uptheme-woo-loop-thumbnail-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--pg-sand);
}
.woocommerce ul.products li.product .uptheme-woo-loop-thumbnail-wrapper > a.woocommerce-LoopProduct-link {
  display: block;
  height: 100%;
}
.woocommerce ul.products li.product .uptheme-woo-loop-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  object-fit: cover;
  transition: transform .6s var(--pg-ease), opacity .3s;
}
.woocommerce ul.products li.product.outofstock .uptheme-woo-loop-thumbnail-wrapper img {
  filter: grayscale(.55);
  opacity: .8;
}

/* Flags */
.pg-flags {
  position: absolute;
  z-index: 3;
  top: 10px;
  inset-inline-start: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  pointer-events: none;
}
.pg-flag {
  padding: 4px 10px;
  border-radius: var(--pg-r-pill);
  background: var(--pg-brand);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: var(--pg-sh-1);
}
.pg-flag--new { background: var(--pg-olive); }
.pg-flag--featured { background: var(--pg-gold-text); }
.pg-flag--out { background: var(--pg-ink-3); }

/* Quick view (UpTheme) as a small pill on the image */
.woocommerce ul.products li.product .uptheme-woo-quick-view {
  position: absolute;
  z-index: 3;
  bottom: 10px;
  inset-inline-end: 10px;
  inset-inline-start: auto;
  top: auto;
  width: auto;
  height: auto;
  padding: 7px 13px;
  border-radius: var(--pg-r-pill);
  background: rgba(255, 255, 255, .95);
  color: var(--pg-brand);
  font-size: .78rem;
  font-weight: 800;
  box-shadow: var(--pg-sh-2);
}

/* Body */
.woocommerce ul.products li.product .uptheme-woo-loop-summary {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 14px 0;
  text-align: start;
}
.woocommerce ul.products li.product .uptheme-woo-product-category {
  margin: 0;
  color: var(--pg-gold-text);
  opacity: 1;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--pg-ink);
  font-family: var(--pg-font-d);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.32;
}
.pg-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--pg-ink-3);
  font-size: .8rem;
  line-height: 1.45;
}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link:hover .woocommerce-loop-product__title {
  color: var(--pg-brand);
}
.woocommerce ul.products li.product .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin: 6px 0 0;
  color: var(--pg-brand-deep);
  font-family: var(--pg-font-d);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.2;
}
.woocommerce ul.products li.product .price del {
  order: 2;
  color: var(--pg-ink-3);
  opacity: 1;
  font-family: var(--pg-font);
  font-size: .82rem;
  font-weight: 600;
}
.woocommerce ul.products li.product .price ins {
  text-decoration: none;
  font-weight: 800;
}
.pg-unit {
  display: block;
  color: var(--pg-ink-3);
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.4;
}
.pg-unit .woocommerce-Price-amount { font-weight: 800; color: var(--pg-ink-2); }

/* Buy row: quantity stepper + add to cart */
.pg-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 0 14px;
}
.woocommerce ul.products li.product .pg-buy .quantity {
  flex: none;
  float: none;
  margin: 0;
}
.woocommerce ul.products li.product .pg-buy .button {
  flex: 1 1 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  margin: 0;
  padding: 9px 14px;
  font-size: .88rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.woocommerce ul.products li.product .pg-buy .button.loading { opacity: .7; }
.woocommerce ul.products li.product .pg-buy .button.added::after {
  content: "✓";
  font-weight: 800;
}
/* "View cart" link WooCommerce adds after AJAX — replaced by the toast */
.woocommerce ul.products li.product .pg-buy .added_to_cart { display: none; }

/* Narrow cards (2 columns on phones): stepper and button stacked, full width */
@container (max-width: 250px) {
  .pg-buy { flex-direction: column; align-items: stretch; }
  .woocommerce ul.products li.product .pg-buy .quantity.pg-qty { display: flex; }
  .pg-qty .qty { flex: 1; }
  .woocommerce ul.products li.product .pg-buy .button { flex: none; width: 100%; }
}

/* Weight / pack choice on the card */
.pg-vform { margin: 0; }
.pg-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-basis: 100%;
  min-width: 0;
  margin: 0 0 2px;
  padding: 0;
  border: 0;
}
.pg-opt { position: relative; margin: 0; cursor: pointer; }
.pg-opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}
.pg-opt span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  border: 1.5px solid var(--pg-line-strong);
  border-radius: var(--pg-r-pill);
  background: var(--pg-paper);
  color: var(--pg-ink-2);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color .2s, background .2s, color .2s;
}
.pg-opt:hover span { border-color: var(--pg-brand); color: var(--pg-brand); }
.pg-opt input:checked + span { border-color: var(--pg-brand); background: var(--pg-brand); color: #fff; }
.pg-opt input:focus-visible + span { outline: 3px solid var(--pg-gold); outline-offset: 2px; }
.pg-opt.is-out { cursor: not-allowed; }
.pg-opt.is-out span { opacity: .45; text-decoration: line-through; }
/* Colour / model out of stock (22.11.2026): "אזל מהמלאי" under the pill */
.pg-opt__out { display: block; margin-top: 2px; color: var(--pg-ink-2); font-size: .68rem; line-height: 1.2; text-align: center; }
.pg-unit-slot:empty { display: none; }

/* Product page: the same pills replace the variation <select> (kept hidden, still submitted) */
.woocommerce div.product form.cart .variations select.pg-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}
.woocommerce div.product form.cart .variations td.value { position: relative; }
.pg-opts--single { gap: 8px; margin: 2px 0 6px; }
.pg-opts--single .pg-opt span { min-height: 42px; padding: 8px 18px; font-size: .92rem; }
.woocommerce div.product form.cart .variations .reset_variations { display: none !important; }
.woocommerce ul.products li.product .pg-vform .button { flex: 1 1 110px; }
/* Narrow cards stack the buy row vertically: flex-basis would then become a height */
@container (max-width: 250px) {
  .pg-vform .pg-opts { flex-basis: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .pg-vform .pg-opt span { justify-content: center; width: 100%; padding-inline: 6px; }
  .woocommerce ul.products li.product .pg-vform .button { flex: none; width: 100%; }
}

/* ==========================================================================
   Category tiles ([product_categories], shop page "show categories")
   ========================================================================== */
.woocommerce ul.products li.product-category > a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 12px;
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-r-lg);
  background: var(--pg-paper);
  color: var(--pg-ink);
  text-decoration: none;
  transition: transform .35s var(--pg-ease), box-shadow .35s var(--pg-ease), border-color .35s;
}
.woocommerce ul.products li.product-category > a:hover {
  transform: translateY(-4px);
  border-color: var(--pg-brand);
  box-shadow: var(--pg-sh-2);
}
.woocommerce ul.products li.product-category img {
  width: 100%;
  margin: 0 !important;
  aspect-ratio: 1;
  border-radius: var(--pg-r);
  object-fit: cover;
  background: var(--pg-sand);
}
.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
  margin: 0;
  padding: 0 4px 4px;
  font-family: var(--pg-font-d);
  font-size: 1.02rem;
  text-align: start;
}
.woocommerce ul.products li.product-category .count {
  background: none;
  color: var(--pg-ink-3);
  font-family: var(--pg-font);
  font-size: .78rem;
  font-weight: 700;
}

/* ==========================================================================
   Quantity stepper (cards, product page, cart) – built by shop.js
   ========================================================================== */
.woocommerce .quantity.pg-qty {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1.5px solid var(--pg-line-strong);
  border-radius: var(--pg-r-pill);
  background: var(--pg-paper);
}
.woocommerce .quantity.pg-qty .qty {
  width: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pg-ink);
  font-weight: 800;
  font-size: .92rem;
  text-align: center;
  -moz-appearance: textfield;
       appearance: textfield;
}
.woocommerce .quantity.pg-qty .qty::-webkit-outer-spin-button,
.woocommerce .quantity.pg-qty .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pg-qty__btn {
  flex: none;
  width: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pg-brand);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .18s;
}
.pg-qty__btn:hover { background: var(--pg-brand-tint); }
.pg-qty__btn:disabled { opacity: .35; cursor: default; background: transparent; }

/* ==========================================================================
   Single product
   ========================================================================== */
.woocommerce div.product .product_title {
  color: var(--pg-ink);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--pg-brand-deep);
  font-family: var(--pg-font-d);
  font-size: 1.6rem;
  font-weight: 800;
}
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  color: var(--pg-ink-3);
  font-size: 1rem;
  font-weight: 600;
}
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins { text-decoration: none; }
.pg-unit-wrap { margin: -6px 0 16px; }
.pg-unit-wrap:empty { display: none; }
.pg-unit-wrap .pg-unit { font-size: .86rem; }

.woocommerce div.product form.cart:not(.variations_form),
.woocommerce div.product .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.woocommerce div.product form.cart div.quantity {
  float: none;
  margin: 0;
}
.woocommerce div.product form.cart .quantity.pg-qty .qty { width: 46px; min-height: 48px; }
.woocommerce div.product form.cart .pg-qty__btn { width: 42px; }
.woocommerce div.product form.cart .single_add_to_cart_button {
  flex: 1 1 200px;
  min-height: 50px;
  margin: 0;
  font-size: 1rem;
  float: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-weight: 700; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--pg-brand); }

/* ==========================================================================
   Cart & checkout
   ========================================================================== */
.woocommerce-cart table.cart img {
  border-radius: var(--pg-r-sm);
}
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review {
  border-radius: var(--pg-r-lg);
}
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order {
  min-height: 54px;
  background: var(--pg-brand);
  font-size: 1.05rem;
}
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #payment #place_order:hover {
  background: var(--pg-brand-soft);
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1.5px solid var(--pg-line-strong);
  border-radius: var(--pg-r-sm);
  transition: border-color .2s, box-shadow .2s;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--pg-brand);
  box-shadow: 0 0 0 3px var(--pg-brand-tint);
  outline: none;
}
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--pg-brand);
}
.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--pg-brand);
}

/* ==========================================================================
   Product page – layout & details
   ========================================================================== */
.single-product div.product { margin-top: 8px; }
@media (min-width: 900px) {
  .woocommerce.single-product div.product div.images,
  .woocommerce-page.single-product div.product div.images { width: 50%; }
  .woocommerce.single-product div.product div.summary,
  .woocommerce-page.single-product div.product div.summary { width: 45%; }
  /* No sticky summary: div.product also holds the tabs and related products, so a sticky
     column slid down over them (the burgundy "add to cart" covered the related products). */
}
.single-product div.product div.images .woocommerce-product-gallery__wrapper,
.single-product div.product div.images .flex-viewport {
  overflow: hidden;
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-r-lg);
  background: var(--pg-paper);
}
.single-product div.product div.images img { border-radius: 0; }
.single-product div.product div.images .flex-control-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.single-product div.product div.images .flex-control-thumbs li { width: 72px !important; float: none !important; }
.single-product div.product div.images .flex-control-thumbs img { border-radius: var(--pg-r-sm); opacity: .6; transition: opacity .2s; }
.single-product div.product div.images .flex-control-thumbs img.flex-active,
.single-product div.product div.images .flex-control-thumbs img:hover { opacity: 1; }
.single-product .woocommerce-product-gallery__trigger { top: 14px !important; inset-inline-end: 14px; box-shadow: var(--pg-sh-1); }

.pg-eyebrow-link {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: var(--pg-r-pill);
  background: var(--pg-brand-tint);
  color: var(--pg-brand);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}
.pg-eyebrow-link:hover { background: var(--pg-brand); color: #fff; }
.woocommerce div.product .product_title { margin: 0 0 10px; line-height: 1.15; }
.pg-from { color: var(--pg-ink-3); font-family: var(--pg-font); font-size: .9rem; font-weight: 700; }
.woocommerce div.product .woocommerce-product-details__short-description {
  margin: 0 0 18px;
  color: var(--pg-ink-2);
  font-size: 1rem;
  line-height: 1.7;
}
.woocommerce div.product form.cart { margin-bottom: 18px; }
.woocommerce div.product form.cart .variations { margin-bottom: 8px; border: 0; }
.woocommerce div.product form.cart .variations th.label { padding: 0 0 8px; color: var(--pg-ink-2); font-size: .88rem; }
.woocommerce div.product form.cart .variations td { padding: 0; }
.woocommerce div.product .woocommerce-variation-price .price { margin: 4px 0 12px; font-size: 1.5rem; }

.pg-benefits {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 16px;
  list-style: none;
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-r);
  background: var(--pg-paper);
}
.pg-benefits li { display: flex; align-items: center; gap: 10px; color: var(--pg-ink-2); font-size: .9rem; font-weight: 600; }
.pg-benefits svg { flex: none; color: var(--pg-brand); }
.pg-benefits a { color: var(--pg-ink-2); text-decoration: underline; text-underline-offset: 3px; }
.pg-benefits a:hover { color: var(--pg-brand); }
.pg-policy-links { margin: 0 0 16px; font-size: .84rem; color: var(--pg-ink-3); }
.pg-policy-links a { color: var(--pg-ink-3); }
.pg-policy-links a:hover { color: var(--pg-brand); }
.woocommerce div.product .product_meta { color: var(--pg-ink-3); font-size: .82rem; }
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 4px; }
.woocommerce div.product .product_meta a { color: var(--pg-ink-2); }

/* Tabs → pill tabs + card panel */
.woocommerce div.product .woocommerce-tabs { clear: both; padding-top: 28px; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--pg-line-strong);
  border-radius: var(--pg-r-pill);
  background: var(--pg-paper);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 9px 18px; color: var(--pg-ink-2); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-color: var(--pg-brand); background: var(--pg-brand); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce div.product .woocommerce-tabs .panel {
  margin: 0 0 32px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-r-lg);
  background: var(--pg-paper);
  line-height: 1.75;
}
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; } /* repeats the tab name */
.woocommerce div.product .woocommerce-tabs table.shop_attributes { border: 0; }
.woocommerce div.product .woocommerce-tabs table.shop_attributes th,
.woocommerce div.product .woocommerce-tabs table.shop_attributes td { padding: 10px 0; border: 0; border-bottom: 1px dashed var(--pg-line-strong); background: none; font-style: normal; }

.single-product .related.products > h2,
.single-product .upsells.products > h2 { margin: 8px 0 16px; font-size: clamp(1.3rem, 3vw, 1.7rem); }

/* Sticky add-to-cart bar – phones only */
.pg-sticky-buy {
  position: fixed !important;
  inset-inline: 0;
  top: auto !important;
  bottom: 0 !important;
  z-index: 999;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--pg-line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -8px 24px rgba(42, 20, 24, .1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  animation: pg-sticky-in .3s var(--pg-ease);
}
.pg-sticky-buy[hidden] { display: none; }
@keyframes pg-sticky-in { from { transform: translateY(100%); } to { transform: none; } }
.pg-sticky-buy__img { flex: none; width: 44px; height: 44px; border-radius: var(--pg-r-sm); object-fit: cover; }
.pg-sticky-buy__info { display: grid; flex: 1; min-width: 0; }
.pg-sticky-buy__name { overflow: hidden; color: var(--pg-ink); font-size: .85rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.pg-sticky-buy__price { color: var(--pg-brand-deep); font-size: .95rem; font-weight: 800; }
.pg-sticky-buy__price del { display: none; }
.pg-sticky-buy .pg-btn { flex: none; min-height: 44px; }
@media (min-width: 900px) { .pg-sticky-buy { display: none !important; } }
/* Keep the floating chat button (Chaty) above the bar while it's showing */
@media (max-width: 899px) {
  body:has(.pg-sticky-buy:not([hidden])) .chaty-widget { bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; transition: bottom .3s; }
  /* Room at the end of the page so the bar never covers the last related products */
  body.single-product:has(.pg-sticky-buy) .uptheme-page { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================================
   Quick view (button on catalog cards + dialog)
   ========================================================================== */
.woocommerce ul.products li.product .uptheme-woo-quick-view { display: none !important; }
.pg-qv-btn {
  position: absolute;
  z-index: 3;
  bottom: 10px;
  inset-inline-end: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--pg-r-pill);
  background: rgba(255, 255, 255, .95);
  color: var(--pg-brand);
  box-shadow: var(--pg-sh-2);
  font: 800 .78rem/1.2 var(--pg-font);
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.pg-qv-btn:hover,
.pg-qv-btn:focus-visible { background: var(--pg-brand); color: #fff; }
.pg-qv-btn:focus-visible { outline: 3px solid var(--pg-brand-tint); outline-offset: 2px; }
@media (max-width: 520px) {
  /* Phones: icon only, still a 40px tap target */
  .pg-qv-btn { width: 40px; height: 40px; justify-content: center; padding: 0; border-radius: 50%; }
  .pg-qv-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

html.pg-qv-open { overflow: hidden; }
.pg-qv {
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--pg-r-lg);
  background: var(--pg-paper, #fff);
  color: var(--pg-ink);
  box-shadow: var(--pg-sh-3);
  overscroll-behavior: contain;
}
.pg-qv[open] { animation: pg-qv-in .25s var(--pg-ease, ease-out); }
@keyframes pg-qv-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.pg-qv::backdrop { background: rgba(42, 20, 24, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pg-qv__close {
  position: sticky;
  z-index: 5;
  top: 12px;
  float: inline-end;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 12px 12px -52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--pg-ink);
  box-shadow: var(--pg-sh-2);
  cursor: pointer;
}
.pg-qv__close:hover { background: var(--pg-brand); color: #fff; }
.pg-qv__content { padding: 0; }
.pg-qv__loading { padding: 80px 24px; color: var(--pg-ink-3); text-align: center; font-weight: 700; }
.pg-qv__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .pg-qv__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pg-qv__media { position: relative; background: var(--pg-sand); aspect-ratio: 1; }
@media (max-width: 719px) { .pg-qv__media { aspect-ratio: 4 / 3; } }
.pg-qv__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-qv__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: clamp(18px, 3.5vw, 32px); }
.pg-qv__body .pg-eyebrow-link { margin: 0; }
.pg-qv__title { margin: 0; color: var(--pg-ink); font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.2; }
.pg-qv .price { margin: 4px 0 0; color: var(--pg-brand-deep); font-size: 1.45rem; font-weight: 800; }
.pg-qv .price del { color: var(--pg-ink-3); font-size: .9em; font-weight: 600; }
.pg-qv .price ins { text-decoration: none; }
.pg-qv__desc { margin: 4px 0 6px; color: var(--pg-ink-2); line-height: 1.7; }
.pg-qv__note { margin: 6px 0; color: var(--pg-ink-3); font-weight: 700; }
.pg-qv .pg-buy { width: 100%; margin-top: 6px; }
.pg-qv .pg-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-qv .pg-opt span { min-height: 42px; padding-inline: 18px; font-size: .95rem; }
.pg-qv .pg-add,
.pg-qv .single_add_to_cart_button { min-height: 48px; font-size: 1rem; }
.pg-qv__cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; margin: 6px 0 0; }
.pg-qv__cart .single_add_to_cart_button { flex: 1; }
.pg-qv__more { margin-top: 6px; color: var(--pg-ink-2); font-size: .9rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pg-qv__more:hover { color: var(--pg-brand); }

/* ==========================================================================
   Cart & checkout – steps, layout, cards
   ========================================================================== */
.pg-steps {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 2vw, 18px);
  margin: 6px auto 22px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.pg-steps__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pg-ink-3);
  font-size: clamp(.78rem, 2vw, .92rem);
  font-weight: 700;
}
.pg-steps__item + .pg-steps__item::before {
  content: "";
  width: clamp(14px, 5vw, 48px);
  height: 2px;
  margin-inline-end: clamp(2px, 1vw, 10px);
  border-radius: 2px;
  background: var(--pg-line-strong);
}
.pg-steps__n {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 2px solid var(--pg-line-strong);
  border-radius: 50%;
  background: var(--pg-paper);
  font-size: .82rem;
}
.pg-steps__item.is-current { color: var(--pg-brand); }
.pg-steps__item.is-current .pg-steps__n { border-color: var(--pg-brand); background: var(--pg-brand); color: #fff; }
.pg-steps__item.is-done { color: var(--pg-ink-2); }
.pg-steps__item.is-done .pg-steps__n { border-color: var(--pg-brand); color: var(--pg-brand); }
.pg-steps__item a { color: inherit; }

.pg-cart-top { display: grid; gap: 12px; margin-bottom: 18px; }
@media (min-width: 900px) { .pg-cart-top { grid-template-columns: auto minmax(280px, 420px); align-items: center; justify-content: space-between; } }
.pg-cart-top .pg-ship { margin: 0; padding: 12px 16px; border: 1px solid var(--pg-line); border-radius: var(--pg-r); background: var(--pg-paper); }
.pg-back-link { color: var(--pg-ink-2); font-size: .9rem; font-weight: 700; text-decoration: none; }
.pg-back-link:hover { color: var(--pg-brand); }

/* Cart: items + totals side by side on desktop */
@media (min-width: 1000px) {
  .woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 0 28px;
    align-items: start;
  }
  .woocommerce-cart .woocommerce > :not(.woocommerce-cart-form):not(.cart-collaterals) { grid-column: 1 / -1; }
  .woocommerce-cart .cart-collaterals { position: sticky; top: calc(var(--pg-header-h, 72px) + 20px); }
  .woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100%; }
}
.woocommerce-cart table.shop_table.cart {
  overflow: hidden;
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-r-lg);
  background: var(--pg-paper);
  border-collapse: separate;
}
.woocommerce-cart table.shop_table.cart th { padding: 14px 12px; border: 0; background: var(--pg-cream); color: var(--pg-ink-3); font-size: .82rem; }
.woocommerce-cart table.shop_table.cart td { padding: 14px 12px; border-top: 1px solid var(--pg-line); vertical-align: middle; }
.woocommerce-cart table.cart .product-thumbnail img { width: 72px; height: 72px; object-fit: cover; }
.woocommerce-cart table.cart .product-name a { color: var(--pg-ink); font-weight: 700; text-decoration: none; }
.woocommerce-cart table.cart .product-name a:hover { color: var(--pg-brand); }
.woocommerce-cart table.cart .product-subtotal { color: var(--pg-brand-deep); font-weight: 800; }
.woocommerce a.remove {
  display: grid !important;
  place-items: center;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  background: var(--pg-brand-tint);
  color: var(--pg-brand) !important;
  font-size: 1.2rem !important;
  line-height: 1;
}
.woocommerce a.remove:hover { background: var(--pg-brand) !important; color: #fff !important; }
.woocommerce-cart table.cart td.actions { background: var(--pg-cream); }
.woocommerce-cart table.cart td.actions .coupon { display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-cart table.cart td.actions .coupon .input-text {
  width: auto !important;
  min-width: 180px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--pg-line-strong);
  border-radius: var(--pg-r-pill);
}
.woocommerce-cart table.cart td.actions .button { min-height: 44px; }
.woocommerce-cart table.cart td.actions > .button[name="update_cart"] { background: transparent; border: 1.5px solid var(--pg-brand); color: var(--pg-brand); }
.woocommerce-cart table.cart td.actions > .button[name="update_cart"]:disabled { opacity: .45; }

/* Phones: each cart row becomes a card (WooCommerce's responsive table) */
@media (max-width: 768px) {
  .woocommerce-cart table.shop_table_responsive.cart { border: 0; background: none; }
  .woocommerce-cart table.shop_table_responsive.cart thead { display: none; }
  .woocommerce-cart table.shop_table_responsive.cart tr.cart_item {
    position: relative;
    display: grid;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-r-lg);
    background: var(--pg-paper);
  }
  .woocommerce-cart table.shop_table_responsive.cart tr.cart_item td { padding: 6px 0; border: 0; background: none !important; }
  .woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-thumbnail { display: block !important; } /* WooCommerce hides it via #content */
  .woocommerce-cart table.shop_table_responsive.cart tr.cart_item td.product-remove { position: absolute; top: 10px; inset-inline-end: 10px; padding: 0; }
  .woocommerce-cart table.shop_table_responsive.cart tr:not(.cart_item) td.actions { padding: 14px; border-radius: var(--pg-r-lg); }
}

/* Totals & order review cards */
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--pg-line);
  background: var(--pg-paper);
  box-shadow: var(--pg-sh-1);
}
.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-checkout #order_review_heading { margin: 0 0 12px; font-size: 1.3rem; }
.woocommerce .cart_totals table.shop_table,
.woocommerce-checkout #order_review table.shop_table { border: 0; }
.woocommerce .cart_totals table.shop_table th,
.woocommerce .cart_totals table.shop_table td,
.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td { padding: 10px 0; border-top: 1px solid var(--pg-line); background: none; }
.woocommerce .cart_totals .order-total th,
.woocommerce .cart_totals .order-total td,
.woocommerce-checkout #order_review .order-total th,
.woocommerce-checkout #order_review .order-total td { color: var(--pg-brand-deep); font-family: var(--pg-font-d); font-size: 1.2rem; }
.woocommerce ul#shipping_method li { margin-bottom: 6px; }
.woocommerce ul#shipping_method li input { accent-color: var(--pg-brand); }

/* Checkout: details + sticky order summary on desktop */
@media (min-width: 1000px) {
  .woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
    gap: 0 32px;
    align-items: start;
  }
  .woocommerce-checkout form.checkout > *:not(#customer_details) { grid-column: 2; }
  .woocommerce-checkout form.checkout > #customer_details { grid-column: 1; grid-row: 1 / span 5; }
  .woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
  .woocommerce-checkout #customer_details .col-1,
  .woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; }
}
.woocommerce-checkout #customer_details {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--pg-line);
  border-radius: var(--pg-r-lg);
  background: var(--pg-paper);
}
.woocommerce-checkout #customer_details h3 { margin: 0 0 12px; font-size: 1.2rem; }
.woocommerce-checkout #customer_details .col-2 { margin-top: 8px; }
.woocommerce form .form-row { margin-bottom: 12px; }
.woocommerce form .form-row label { color: var(--pg-ink-2); font-size: .86rem; font-weight: 700; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single { min-height: 48px; padding: 10px 14px; background: var(--pg-cream); font-size: 1rem; }
.woocommerce .select2-container .select2-selection--single { border: 1.5px solid var(--pg-line-strong); border-radius: var(--pg-r-sm); }
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 26px; padding: 0; }
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; }
.pg-ship-slot .pg-ship { padding: 12px 16px; border: 1px solid var(--pg-line); border-radius: var(--pg-r); background: var(--pg-paper); }
.woocommerce-checkout #payment { border-radius: var(--pg-r); background: var(--pg-cream); }
.woocommerce-checkout #payment div.payment_box { border-radius: var(--pg-r-sm); background: var(--pg-paper); color: var(--pg-ink-2); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--pg-paper); }
.woocommerce #payment #place_order { width: 100%; border-radius: var(--pg-r-pill); }
.pg-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  clear: both;
  margin: 12px 0 0;
  color: var(--pg-ink-3);
  font-size: .8rem;
  text-align: center;
}
.pg-secure-note svg { flex: none; color: #1F7A45; }
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info { border-radius: var(--pg-r); }

/* ==========================================================================
   Pagination
   ========================================================================== */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 42px;
  border-radius: var(--pg-r-pill);
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--pg-brand);
  color: #fff;
}

/* ==========================================================================
   Toast ("נוסף לסל")
   ========================================================================== */
.pg-toast-host {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(420px, calc(100% - 32px));
  pointer-events: none;
}
.pg-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: var(--pg-r);
  background: var(--pg-brand-deep);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  box-shadow: var(--pg-sh-3);
  pointer-events: auto;
  animation: pg-toast-in .35s var(--pg-ease);
}
.pg-toast a {
  margin-inline-start: auto;
  color: #F3DDB3;
  font-weight: 800;
  text-decoration: underline;
  white-space: nowrap;
}
.pg-toast a:hover { color: #fff; }
.pg-toast.is-out { animation: pg-toast-out .3s var(--pg-ease) forwards; }
@keyframes pg-toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pg-toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .woocommerce ul.products li.product .uptheme-woo-product-wrapper,
  .woocommerce ul.products li.product .uptheme-woo-loop-thumbnail-wrapper img,
  .pg-promo__btn,
  .pg-toast {
    transition: none !important;
    animation: none !important;
  }
  .woocommerce ul.products li.product .uptheme-woo-product-wrapper:hover,
  .woocommerce ul.products li.product .uptheme-woo-product-wrapper:hover .uptheme-woo-loop-thumbnail-wrapper img {
    transform: none !important;
  }
}

/* ==========================================================================
   Hover cards – desktop with a mouse (html.pg-hc is set by shop.js, 4f)
   Resting: image + name + price. Hover / keyboard focus: a panel slides up over the image
   with the benefit line, unit price, weight chips and quantity + add to cart.
   ========================================================================== */
.pg-hc .woocommerce ul.products li.product .uptheme-woo-product-category { display: none; }
.pg-hc .woocommerce ul.products li.product .uptheme-woo-loop-summary { padding-bottom: 14px; }
.pg-hc .woocommerce ul.products li.product .uptheme-woo-loop-thumbnail-wrapper > a.woocommerce-LoopProduct-link { cursor: zoom-in; }
.pg-hc .woocommerce ul.products li.product .uptheme-woo-loop-summary a.woocommerce-LoopProduct-link:hover .woocommerce-loop-product__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pg-reveal {
  position: absolute;
  z-index: 4;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 100%;
  overflow-y: auto;
  padding: 10px 10px 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -10px 24px rgba(42, 20, 24, .14);
  opacity: 0;
  transform: translateY(102%);
  transition: transform .38s var(--pg-ease), opacity .25s;
  overscroll-behavior: contain;
}
.pg-hc-card:hover .pg-reveal,
.pg-hc-card:focus-within .pg-reveal {
  opacity: 1;
  transform: none;
}
.pg-reveal .pg-card__desc {
  margin: 0;
  color: #222222;
  font-size: .82rem;
  font-weight: 500;
}
.pg-reveal .pg-unit { color: #444444; }
.pg-reveal .pg-unit .woocommerce-Price-amount { color: #222222; }
/* Compact quick-add: weights on one row, quantity + button side by side (overrides the narrow-card stack) */
.woocommerce ul.products li.product .pg-reveal .pg-buy {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  padding: 2px 0 10px;
}
.woocommerce ul.products li.product .pg-reveal .pg-opts {
  display: flex;
  flex-basis: 100%;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
}
.woocommerce ul.products li.product .pg-reveal .pg-opt { flex: 1 1 0; min-width: 0; }
.woocommerce ul.products li.product .pg-reveal .pg-opt span {
  justify-content: center;
  width: 100%;
  min-height: 30px;
  padding: 3px 4px;
  font-size: .74rem;
}
.woocommerce ul.products li.product .pg-reveal .quantity.pg-qty { display: inline-flex; flex: none; }
.woocommerce ul.products li.product .pg-reveal .pg-qty__btn { width: 28px; }
.woocommerce ul.products li.product .pg-reveal .quantity.pg-qty .qty { width: 28px; min-height: 36px; }
.woocommerce ul.products li.product .pg-reveal .pg-buy .button {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 38px;
  padding-inline: 8px;
}
/* Quick view pill: on hover cards a click on the image opens it, and keyboard users reach the
   weights / add to cart in the panel, so the pill itself is not needed there */
.pg-hc-card .pg-qv-btn { display: none; }
.pg-hc-card:hover .uptheme-woo-loop-thumbnail-wrapper img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .pg-reveal { transition: none; }
}

/* ==========================================================================
   Touch targets (44px) and home favourites on phones (15.11.2026)
   ========================================================================== */
.pg-opt span,
.woocommerce ul.products li.product .pg-reveal .pg-opt span { min-height: 44px; }
.pg-qty__btn,
.woocommerce ul.products li.product .pg-reveal .pg-qty__btn { min-height: 44px; }
.woocommerce .quantity.pg-qty .qty,
.woocommerce ul.products li.product .pg-reveal .quantity.pg-qty .qty { min-height: 44px; }
.woocommerce ul.products li.product .pg-buy .button,
.woocommerce ul.products li.product .pg-reveal .pg-buy .button,
.woocommerce .button, .woocommerce button.button, .woocommerce input.button { min-height: 44px; }
.pg-qv-btn { min-height: 44px; }
@media (max-width: 520px) { .pg-qv-btn { width: 44px; height: 44px; } }
/* Home "האהובים של הלקוחות" on phones: image, name, price and one button (weights + quantity in the quick view) */
@media (max-width: 767px) {
  .pg-wsec--fav ul.products li.product .pg-card__desc,
  .pg-wsec--fav ul.products li.product .pg-unit-slot,
  .pg-wsec--fav ul.products li.product .pg-unit,
  .pg-wsec--fav ul.products li.product .pg-opts,
  .pg-wsec--fav ul.products li.product .quantity,
  .pg-wsec--fav ul.products li.product .uptheme-woo-product-category,
  .pg-wsec--fav ul.products li.product .pg-qv-btn { display: none !important; }
  .woocommerce .pg-wsec--fav ul.products li.product .pg-buy { padding-top: 8px; }
  .woocommerce .pg-wsec--fav ul.products li.product .pg-buy .button { flex: 1 1 100%; width: 100%; }
}

/* Home "האהובים של הלקוחות" carousel (shop.js 4h): one row on every screen – 5 cards on a computer,
   3 on a tablet, about 2 on a phone. A slow continuous auto-move runs on top; it stops on hover,
   keyboard focus, touch and the pause button, and never runs with prefers-reduced-motion. */
.pg-wsec--fav .pg-car { position: relative; }
.pg-wsec--fav ul.products {
  display: grid !important;
  grid-template-columns: none !important;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 16px) / 5);
  gap: 16px !important;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 !important;
  padding: 6px 0 10px !important;
}
.pg-wsec--fav ul.products::-webkit-scrollbar { display: none; }
.pg-wsec--fav ul.products li.product { width: auto !important; min-width: 0; margin: 0 !important; }
@media (max-width: 1079px) {
  .pg-wsec--fav ul.products { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
}
@media (max-width: 767px) {
  .pg-wsec--fav ul.products { grid-auto-columns: 44%; gap: 10px !important; }
  /* Without the script (or with reduced motion) a phone swipe snaps card by card */
  .pg-wsec--fav .pg-car:not(.pg-car--auto) ul.products { scroll-snap-type: x mandatory; }
  .pg-wsec--fav .pg-car:not(.pg-car--auto) ul.products li.product { scroll-snap-align: start; }
}
.pg-car__arrow {
  position: absolute; top: 34%; z-index: 4; transform: translateY(-50%);
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(74, 46, 26, .88); color: #FBF1E3; cursor: pointer;
  box-shadow: 0 4px 14px rgba(42, 26, 15, .28);
  transition: background-color .2s ease;
}
.pg-car__arrow:hover { background: #5A3A22; }
.pg-car__arrow:focus-visible, .pg-car__pause:focus-visible { outline: 3px solid #A1181E; outline-offset: 2px; }
.pg-car__arrow--prev { inset-inline-start: 4px; }
.pg-car__arrow--next { inset-inline-end: 4px; }
@media (max-width: 767px) { .pg-car__arrow { display: none; } }
.pg-car__tools { display: inline-flex; align-items: center; gap: 8px; }
.pg-car__pause {
  min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(90, 58, 34, .35); background: transparent; color: #5A3A22;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer;
}
.pg-car__pause:hover { background: rgba(90, 58, 34, .08); }
.pg-car__pause[hidden] { display: none; }
/* Card title links and the accessibility toolbar: 44px touch targets too */
.woocommerce ul.products li.product a.woocommerce-loop-product__link { min-height: 44px; }
#pojo-a11y-toolbar .pojo-a11y-toolbar-link { display: flex; align-items: center; min-height: 44px; }

/* Bigger-weight saving (16.11.2026): "-10%" tag on the weight pill + "קונים חצי קילו? חוסכים 10%" */
.pg-opts { padding-top: 8px; }
/* Rows of pills: room for the tag, so it never covers the pill above */
.pg-opts,
.pg-qv .pg-opts,
.woocommerce ul.products li.product .pg-opts,
.woocommerce ul.products li.product .pg-reveal .pg-opts { row-gap: 12px; }
.pg-opt__save {
  position: absolute; top: -8px; inset-inline-end: -4px; z-index: 1;
  padding: 1px 6px; border-radius: 999px;
  background: #F3D58A; color: #3A2600; box-shadow: 0 0 0 1.5px #fff;
  font-size: .68rem; font-weight: 800; line-height: 1.35; white-space: nowrap; pointer-events: none;
}
.pg-bulk-note { margin: 2px 0 6px; color: var(--pg-brand); font-size: .82rem; font-weight: 700; line-height: 1.4; }
.woocommerce div.product .summary .pg-bulk-note { margin: 4px 0 10px; font-size: .95rem; }
/* Phones: the favourites carousel card stays image / name / price / button */
@media (max-width: 767px) { .pg-wsec--fav .pg-bulk-note { display: none; } }

/* Products sold by weight (18.11.2026): the main price is per 100 g ("₪15.00 ל-100 גרם"), and the
   picked weight's price is its own line between the weights and "הוספה לסל" ("150 גרם · ₪22.50") */
.pg-per { color: var(--pg-ink-3); font-family: var(--pg-font); font-size: .68em; font-weight: 600; white-space: nowrap; }
.woocommerce ul.products li.product .price .pg-per { align-self: baseline; }
.woocommerce div.product .summary p.price .pg-per { font-size: .56em; }
.pg-sel {
  flex-basis: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--pg-ink-2);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pg-sel__p { color: var(--pg-brand-deep); font-weight: 800; }
.pg-sel__p .woocommerce-Price-amount { font-weight: 800; }
.pg-sel del { color: var(--pg-ink-3); font-weight: 600; }
.pg-sel ins { text-decoration: none; }
.woocommerce ul.products li.product .pg-reveal .pg-sel { flex: 0 0 100%; font-size: .82rem; }
/* Narrow cards stack the buy row vertically: a 100% flex-basis would become a height there */
@container (max-width: 250px) {
  .pg-vform .pg-sel { flex: none; }
}
/* Product page: the same line, in WooCommerce's variation price spot (above quantity + button) */
.woocommerce div.product .woocommerce-variation-price .price.pg-sel {
  display: block;
  margin: 2px 0 12px;
  color: var(--pg-ink-2);
  font-family: var(--pg-font);
  font-size: 1.12rem;
  white-space: normal;
}
.woocommerce div.product .woocommerce-variation-price .price.pg-sel .pg-sel__p { color: var(--pg-brand-deep); }
.pg-sticky-buy__price .pg-sel__w,
.pg-sticky-buy__price .pg-sel__sep { color: var(--pg-ink-2); font-weight: 700; }
/* Home favourites on phones: no weights on the card, so no picked-weight line either */
@media (max-width: 767px) { .pg-wsec--fav ul.products li.product .pg-sel { display: none !important; } }

/* "טען עוד מוצרים" (18.11.2026): a link to the next page; shop.js adds the products in place */
.pg-more { display: flex; justify-content: center; margin: 8px 0 28px; }
.pg-more__btn { min-width: 220px; }
.pg-more__btn.is-busy { opacity: .6; pointer-events: none; }
.pg-more-js .woocommerce-pagination { display: none; }

/* Deals page with nothing on sale */
.pg-nosale {
  max-width: 640px; margin: 24px auto 40px; padding: 28px 24px; text-align: center;
  border: 1px solid #E6D6BF; border-radius: 18px; background: #FFF9F0;
}
.pg-nosale__text { margin: 0 0 18px; color: #2b1d12; font-size: 1.1rem; font-weight: 700; line-height: 1.6; }
.pg-nosale__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pg-nosale .pg-btn { min-height: 48px; }
.pg-nosale .pg-btn--insta { border-color: var(--pg-brand); background: #fff; color: var(--pg-brand); }
.pg-nosale .pg-btn--insta:hover { background: var(--pg-brand); color: #fff; }
@media (max-width: 480px) { .pg-nosale__cta .pg-btn { flex: 1 1 100%; } }

/* "העמוד לא נמצא" (404.php, 25.11.2026): the same empty-state box, search field, buttons and chips – only the spacing
   between them, and the chips centred under the buttons. */
.pg-404 { padding-inline: var(--pg-gutter, 16px); }
.pg-404 .pg-nosale { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: center; }
.pg-404 .pg-nosale > * { max-width: 100%; min-width: 0; margin: 0; }
.pg-404 .pg-search__form { width: 100%; }
.pg-404 .pg-nosale__cta, .pg-404 .pg-chips { justify-content: center; }
/* Only four chips: on phones they wrap to a second line (as the sub-category chips do on desktop) instead of a
   side-scrolling row that made the page wider than the screen at 320–375px. */
.pg-404 .pg-chips { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.pg-404__help { color: var(--pg-ink-2); }
/* The search field there: the same room for the magnifier icon as the header search (46px); a parent theme rule
   for text inputs had set 15px, so the text started under the icon (25.11.2026). */
.pg-404 .pg-search__form input.pg-search__input { padding-inline-start: 46px; padding-inline-end: 16px; }

/* 24.11.2026: the sidebar grid's -25px gutter (RTL) reached 5px past the window at ~1024px → a horizontal scrollbar.
   Only that empty gutter is cut off; nothing visible moves. */
.post-type-archive-product .uptheme-container,
.tax-product_cat .uptheme-container,
.tax-product_tag .uptheme-container { overflow-x: clip; }
