/* =============================================================================
   Dfus Fredi shop — VISUAL REFRESH (additive layer over shop.css)
   - Kept in a separate file for safe parallel editing; can be folded into
     shop.css later. CSS-only: restyles EXISTING classes, no markup changes.
   - Theme: refined "print shop" — warm paper + CMYK-inspired accents
     (magenta / cyan / yellow / green) on a clean, brand-consistent base.
   - Uses the design tokens already defined in shop.css :root.
   ========================================================================== */

/* ---- Warmer page background (less stark white, on-brand "paper") --------- */
body {
  background:
    radial-gradient(125% 75% at 100% 0, rgba(216, 26, 127, .05), transparent 60%),
    linear-gradient(180deg, #fbf6ef 0, #f1eae1 540px),
    #f1eae1;
}

/* ---- Hero (shop landing only: non-compact page head) --------------------- */
.shop-page-head:not(.shop-page-head--compact) {
  position: relative;
  max-width: none;
  margin-bottom: 34px;
  padding: 32px 28px;
  border: 1px solid var(--shop-border);
  border-radius: 18px;
  background:
    radial-gradient(125% 140% at 100% 0, rgba(216, 26, 127, .13), transparent 55%),
    radial-gradient(125% 140% at 0 100%, rgba(24, 114, 201, .12), transparent 55%),
    #fff;
  box-shadow: var(--shop-shadow);
  overflow: hidden;
}

/* Faint halftone dot field — painted under the text (::before = first child) */
.shop-page-head:not(.shop-page-head--compact)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 1px 1px, rgba(36, 31, 35, .05) 1px, transparent 0) 0 0 / 16px 16px;
  -webkit-mask-image: linear-gradient(to bottom left, #000, transparent 66%);
          mask-image: linear-gradient(to bottom left, #000, transparent 66%);
  pointer-events: none;
}

.shop-page-head:not(.shop-page-head--compact) > * {
  position: relative;
}

.shop-page-head:not(.shop-page-head--compact) h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
}

/* ---- Kicker → pill badge ------------------------------------------------- */
.shop-kicker {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(216, 26, 127, .10);
  color: var(--shop-primary-dark);
}

/* ---- Category cards: CMYK accent, bolder icon, arrow affordance ---------- */
.category-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 190px;
  border-radius: 14px;
  padding: 0;
}

/* Top accent bar — cycles through brand colors per card (sits over the banner) */
.category-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;
  height: 6px;
  background: var(--shop-primary);
}

/* Image banner: holds the SVG illustration (or a real photo / letter fallback) */
.category-card__banner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(216, 26, 127, .10);
}

.category-card .category-card__img {
  width: 60px;
  height: 60px;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  background: none;
}

/* When a real photo is supplied, let it fill the banner edge-to-edge */
.category-card .category-card__img[src$=".jpg"],
.category-card .category-card__img[src$=".jpeg"],
.category-card .category-card__img[src$=".png"],
.category-card .category-card__img[src$=".webp"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Letter fallback (rare — used only if both photo and SVG fail to load) */
.category-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.5rem;
}

/* Text gets side padding since the card padding was removed for the banner */
/* Text overlays the photo bottom on a dark scrim — clearly in front + readable */
.category-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 36px 15px 14px;
  background: linear-gradient(to top, rgba(18, 12, 15, .9), rgba(18, 12, 15, .55) 52%, transparent);
}

.category-card__body .product-card__name {
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

.category-card__body .product-card__price {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

/* Color cycle (1 magenta, 2 cyan, 3 yellow, 4 green) */
.category-card:nth-child(4n + 1)::before { background: var(--shop-primary); }
.category-card:nth-child(4n + 2)::before { background: var(--shop-blue); }
.category-card:nth-child(4n + 3)::before { background: #f4b400; }
.category-card:nth-child(4n + 4)::before { background: var(--shop-green); }

.category-card:nth-child(4n + 1) .category-card__icon { background: rgba(216, 26, 127, .12); color: var(--shop-primary-dark); }
.category-card:nth-child(4n + 2) .category-card__icon { background: rgba(24, 114, 201, .13); color: var(--shop-blue); }
.category-card:nth-child(4n + 3) .category-card__icon { background: rgba(244, 180, 0, .18);  color: #9a6b00; }
.category-card:nth-child(4n + 4) .category-card__icon { background: rgba(31, 138, 99, .13);  color: var(--shop-green); }

.category-card:nth-child(4n + 1) .category-card__banner { background: rgba(216, 26, 127, .09); }
.category-card:nth-child(4n + 2) .category-card__banner { background: rgba(24, 114, 201, .09); }
.category-card:nth-child(4n + 3) .category-card__banner { background: rgba(244, 180, 0, .13); }
.category-card:nth-child(4n + 4) .category-card__banner { background: rgba(31, 138, 99, .09); }

.category-card .product-card__price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Forward arrow (RTL forward = leftward); nudges on hover */
.category-card .product-card__price::after {
  content: "←";
  font-weight: 900;
  transition: transform .15s ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(216, 26, 127, .16);
}

.category-card:hover .product-card__price::after {
  transform: translateX(-4px);
}

/* ---- Product cards on category pages: photo-forward overlay (matches tiles) */
.product-photo-card {
  position: relative;
  display: block;
  min-height: 175px;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
}

.product-photo-card .category-card__img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
  background: none;
}

.product-photo-card:hover,
.product-photo-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(216, 26, 127, .16);
}

/* ---- Product cards (no photo, legacy): rounder, CTA fills on hover ------- */
.product-card {
  border-radius: 14px;
}

.product-card__cta {
  border-color: transparent;
  background: rgba(216, 26, 127, .08);
  color: var(--shop-primary-dark);
  transition: background .15s ease, color .15s ease;
}

.product-card:hover .product-card__cta,
.product-card:focus-visible .product-card__cta {
  background: var(--shop-primary);
  color: #fff;
}

/* ---- Sub-category headings: little accent tick --------------------------- */
.catalog-sub__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.catalog-sub__title::before {
  content: "";
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: var(--shop-primary);
}

/* ---- Primary action buttons in the shop: subtle lift -------------------- */
.shop-actions .btn--primary {
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.shop-actions .btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(216, 26, 127, .25);
}

/* ---- Touch targets: small buttons inside the shop meet the 44px minimum -
   .btn--sm is ~35px tall site-wide; the shop's "הסרה" (cart) and "רוקן סל"
   (checkout) actions need a comfortable mobile tap area. Scoped to .shop-main
   so the rest of the site is untouched. Padding/visual size stay the same. */
.shop-main .btn--sm {
  min-height: 44px;
}

/* ---- Checkout consent line reads as fine print, not body copy ----------- */
.checkout-consent {
  margin: 4px 0 0;
  color: var(--shop-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.checkout-consent a {
  color: var(--shop-primary-dark);
  font-weight: 700;
}

/* ---- Option choices: explicit selected indicator (custom radio/checkbox) -
   The selected state previously relied only on a subtle border + inset shadow.
   This adds a reserved leading control (circle = single-select, rounded square
   = multi) that fills with a check when chosen, so a picked option is
   unmistakable. The slot is always present, so selecting never shifts layout.

   Layout: radio sits in its own column; the label and price stack in the second
   column (price on its OWN line). Long dimension labels like "A0 (84.1×118.9 ס\"מ)"
   used to fight a narrow 3-column row, wrapping into ragged lines whose number run
   collided with the price (e.g. "₪190 84.1×118.9"). Stacking the price below the
   label removes the collision regardless of label length; tabular figures keep the
   price stable. */
/* Uniform compact cards via auto-fill grid: the column COUNT is fixed by how many
   170px tracks fit, so a sparse row (e.g. 2 sizes) leaves empty columns instead of
   stretching the cards across the whole width (the flex-grow trap). */
.opt-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.opt-choice {
  min-width: 0;
  max-width: none;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "radio label"
    "radio delta";
  align-items: center;
  align-content: center;   /* center the label+price block in equal-height cards */
  column-gap: 12px;
  row-gap: 3px;
  text-align: start;
}

/* Footnote marker pinned to the end of a label (e.g. same-day delivery "*"),
   so it never wraps onto its own line. */
.opt-choice__star {
  margin-inline-start: 2px;
  font-size: .7em;
  font-weight: 700;
  color: var(--shop-primary-dark);
  vertical-align: super;
  line-height: 0;
}

.opt-choice__label {
  grid-area: label;
  text-align: start;
}

.opt-choice__delta {
  grid-area: delta;
  justify-self: start;
  text-align: start;
  font-variant-numeric: tabular-nums;
}

.opt-choice::before {
  content: "";
  grid-area: radio;
  align-self: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--shop-border-strong);
  border-radius: 50%;
  background: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}

.opt-choice:has(input[type="checkbox"])::before {
  border-radius: 6px;
}

/* ---- Custom-dimension follow-up: revealed when a variable size is chosen
   (e.g. the plotter's "רוחב עד 150 ס\"מ × אורך משתנה"). The explicit [hidden]
   rule is required — .checkout-form/grid label defaults would otherwise win over
   the UA [hidden] rule and keep it visible. */
.opt-custom-note {
  margin-top: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  border: 1px dashed var(--shop-border-strong);
  border-radius: 8px;
  background: #fffdfb;
}

.opt-custom-note[hidden] {
  display: none;
}

.opt-custom-note label {
  font-weight: 700;
  font-size: .92rem;
  color: var(--shop-ink);
}

.opt-custom-note input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  font: inherit;
  border: 1px solid var(--shop-border-strong);
  border-radius: 8px;
  background: #fff;
}

.opt-custom-note input:focus-visible {
  outline: none;
  border-color: var(--shop-primary);
  box-shadow: 0 0 0 3px rgba(216, 26, 127, .25);
}

.opt-choice:has(input:checked)::before {
  border-color: var(--shop-ink);
  background:
    var(--shop-ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E")
    center / 13px 13px no-repeat;
}

/* ---- Missing required group highlight (set on submit, cleared on choice) -
   Makes a skipped required option obvious on screen, not just in the error
   banner (which can sit below the sticky action bar). */
.option-form fieldset.opt-missing legend {
  color: var(--shop-primary-dark);
}

.option-form fieldset.opt-missing legend::after {
  content: " (חובה לבחור)";
  font-weight: 800;
  font-size: .88rem;
}

/* ---- Checkout fulfilment selector: match the configurator's custom radio -
   Hides the native radio and shows the same circle-with-check indicator, so
   selection controls feel consistent across the shop. Focus ring is mirrored
   onto the label because the real (hidden) input can't show one. */
.fulfilment-grid label {
  display: flex;
  gap: 10px;
}

.fulfilment-grid input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  /* Without an explicit size, the broad `.checkout-form input { width:100% }`
     rule inflates this hidden radio to full page width; absolutely positioned,
     it then hangs off the (RTL) left edge and forces a horizontal scrollbar on
     the whole checkout page. Pin it to 1px so it can never cause overflow. */
  width: 1px;
  height: 1px;
  margin: 0;
}

.fulfilment-grid label::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--shop-border-strong);
  border-radius: 50%;
  background: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}

.fulfilment-grid label:has(input:checked)::before {
  border-color: var(--shop-ink);
  background:
    var(--shop-ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E")
    center / 13px 13px no-repeat;
}

.fulfilment-grid label:has(input:focus-visible) {
  border-color: var(--shop-primary);
  box-shadow: 0 0 0 3px rgba(216, 26, 127, .25);
}

/* ---- Conditional delivery-address field (shown when "משלוח" is chosen) */
.delivery-address {
  margin-top: 12px;
}
.delivery-address[hidden] {
  display: none;
}

/* ---- Cart line: room for the quantity stepper (info | qty | price | remove) */
.cart-line {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

/* ---- Hebrew file picker: hide the native (English) input behind a styled
   button + status text. The real <input> stays in the DOM (focusable, clickable
   via the <label for>), just visually hidden, so JS and a11y are unaffected. --- */
.file-field {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* High specificity: beat shop.css `.product-extra input[type="file"] { width:100% }`
   so the hidden input collapses to a true 1px box (not a clipped 390px overlay). */
.product-extra input[type="file"].file-field__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-field__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--shop-border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--shop-ink);
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.file-field__btn:hover {
  background: #f3eeeb;
}

/* The hidden input can't show its own focus ring, so mirror it onto the button. */
.file-field__input:focus-visible + .file-field__btn {
  border-color: var(--shop-primary);
  outline: 3px solid rgba(216, 26, 127, .2);
  outline-offset: 1px;
}

/* Specificity bump: shop.css `.product-extra span` sets ink/900 on all spans. */
.file-field .file-field__status {
  color: var(--shop-muted);
  font-weight: 500;
  word-break: break-word;
}

/* Sticky action bar (price + add-to-cart) sits at the bottom of the config
   column; reserve space so it never covers the file/notes fields at max scroll. */
.product-config {
  padding-bottom: 96px;
}

/* Read-only quantity for products whose quantity is chosen as an option
   (no stepper, to avoid setting the amount twice). */
.cart-line__qty-fixed {
  min-width: 30px;
  text-align: center;
  color: var(--shop-muted);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ---- Quantity stepper (− value +) --------------------------------------- */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--shop-border-strong);
  border-radius: 8px;
  padding: 2px;
  background: #fff;
}

.qty-stepper__btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--shop-ink);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}

.qty-stepper__btn:hover:not(:disabled) {
  background: #f3eeeb;
}

.qty-stepper__btn:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.qty-stepper__val {
  min-width: 30px;
  text-align: center;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

/* Mobile: name on its own row, then [qty | price | remove] in one row */
@media (max-width: 640px) {
  .cart-line {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "info  info  info"
      "qty   price rm";
    gap: 12px;
    align-items: center;
  }

  .cart-line__info { grid-area: info; }
  .cart-line .qty-stepper,
  .cart-line__qty-fixed { grid-area: qty; justify-self: start; }
  .cart-line__price { grid-area: price; justify-self: center; }
  .cart-line .btn--ghost { grid-area: rm; justify-self: end; }
}

/* ---- Order confirmation: success badge + scannable next-steps list ------ */
.confirm-badge {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border: 2px solid var(--shop-green);
  border-radius: 50%;
  background:
    #eef8f3
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a63' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E")
    center / 28px no-repeat;
}

.confirm-steps__title {
  margin: 22px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--shop-border);
  color: var(--shop-ink);
  font-size: 1.15rem;
  font-weight: 900;
}

.confirm-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border-top: 0;
  list-style: none;
}

.confirm-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--shop-ink);
  line-height: 1.55;
}

.confirm-steps li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    #eef8f3
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a63' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

.confirm-panel .btn--primary {
  margin-top: 22px;
}

/* ---- Respect reduced-motion for the refresh's transforms ---------------- */
@media (prefers-reduced-motion: reduce) {
  .category-card:hover,
  .category-card:focus-visible,
  .category-card:hover .product-card__price::after,
  .product-photo-card:hover,
  .product-photo-card:focus-visible,
  .shop-actions .btn--primary:hover {
    transform: none;
  }
}

/* =============================================================================
   SESSION 7 — purchase clarity + brand polish (additive)
   Price moved next to the add-to-cart button, reassurance copy, checkout
   order recap, active consent checkbox, fuller empty state, quote distinction.
   ========================================================================== */

/* ---- Reassurance line under the product price (shield-check icon) -------- */
.product-reassure {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 48ch;
  margin: 12px 0 0;
  color: var(--shop-muted);
  font-size: .9rem;
  line-height: 1.5;
}

.product-reassure::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- Live price next to the add-to-cart button (the decision point) ------ */
.product-actions {
  flex-wrap: wrap;
  row-gap: 10px;
  z-index: 2;
}

.action-price {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  margin-inline-end: auto; /* pin to start (right in RTL); push buttons to the end */
}

.action-price__label {
  color: var(--shop-muted);
  font-size: .74rem;
  font-weight: 800;
}

.action-price__val {
  color: var(--shop-primary-dark);
  font-size: 1.5rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .action-price {
    flex: 1 0 100%;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    margin: 0;
  }
  .action-price__val { font-size: 1.3rem; }
  .product-actions .btn--primary { flex: 1 1 auto; }
}

/* ---- Quote-only products read differently from priced ones --------------- */
.product-price.is-quote span { color: var(--shop-blue); }

/* ---- Sticky action bar: keep it ONE row so it never eats the screen ------- */
/* The bar now holds only price + primary CTA (WhatsApp/email moved to a
   non-sticky row below), so it stays a single compact row on every viewport.
   Reserve just enough space below the options that the bar can't cover the
   last group. */
.product-actions { flex-wrap: nowrap; }
.product-actions .btn--primary { flex: 0 0 auto; white-space: nowrap; }

/* Non-sticky alternative actions (WhatsApp / email) sit in normal page flow. */
.product-actions-alt {
  margin-top: 12px;
  position: static;
  border-top: 0;
  background: none;
  padding: 0;
}

@media (max-width: 560px) {
  /* Keep price + primary CTA on one line; let the button take the spare width.
     min-width:0 lets the price text shrink/wrap instead of overflowing the bar. */
  .product-actions .action-price { flex: 1 1 auto; min-width: 0; }
  .product-actions .action-price__val { white-space: normal; }
  .product-actions .btn--primary { flex: 0 1 auto; }
  /* WhatsApp + email share one row, two-up, as comfortable tap targets. */
  .product-actions-alt .btn { flex: 1 1 calc(50% - 6px); }
}

@media (max-width: 820px) {
  .product-config { padding-bottom: 92px; }
}

/* ---- Back link: comfortable 44px tap target ------------------------------ */
.shop-back {
  min-height: 44px;
  padding-inline: 2px;
}

/* ---- Empty cart: a real empty state, not one bare line ------------------- */
.shop-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  padding: 36px 16px 8px;
}

.shop-empty__title {
  margin: 0;
  color: var(--shop-ink);
  font-size: 1.4rem;
  font-weight: 900;
}

.shop-empty__sub {
  margin: 0 0 10px;
  max-width: 42ch;
  color: var(--shop-muted);
}

/* ---- Checkout: order recap so the customer sees what + how much ---------- */
.checkout-summary {
  margin: 0 0 22px;
  border: 1px solid var(--shop-border);
  border-radius: var(--radius, 14px);
  padding: 18px 18px 16px;
  background: #fff;
  box-shadow: var(--shop-shadow);
}

.checkout-summary__title {
  margin: 0 0 12px;
  color: var(--shop-ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.checkout-summary__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-summary__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.checkout-summary__name { color: var(--shop-ink); }

.checkout-summary__price {
  flex: none;
  color: var(--shop-ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.checkout-summary__total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--shop-border);
  color: var(--shop-ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.checkout-summary__total-val {
  color: var(--shop-primary-dark);
  font-variant-numeric: tabular-nums;
}

.checkout-summary__note {
  margin: 10px 0 0;
  color: var(--shop-muted);
  font-size: .86rem;
  line-height: 1.5;
}

.checkout-summary__empty { margin: 0; color: var(--shop-muted); }

/* ---- Consent is now an active checkbox (was passive text) ---------------- */
.checkout-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.checkout-consent input[type="checkbox"] {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--shop-primary);
  cursor: pointer;
}

.checkout-consent input[aria-invalid="true"] {
  outline: 2px solid var(--shop-primary);
  outline-offset: 2px;
}

/* ---- File upload control: signal it's clickable -------------------------- */
.product-extra input[type="file"] { cursor: pointer; }

/* ---- Per-group footnote (e.g. same-day delivery "* subject to confirmation") */
.opt-footnote {
  margin: 12px 0 0;
  color: var(--shop-muted);
  font-size: .82rem;
  line-height: 1.5;
}

/* ---- "Estimate, no charge on site" note under the cart total ------------- */
.cart-total-note {
  margin: 6px 0 0;
  color: var(--shop-muted);
  font-size: .86rem;
  line-height: 1.5;
}

/* ---- Touch targets: footer policy links + copy-order-number button ------- */
/* These were bare inline elements whose tap area fell under the 44px minimum. */
.shop-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
}

.shop-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 2px;
}

.confirm-copy { min-height: 44px; }

/* Contact channels note (product, cart, order-confirmed): files attach via the
   on-site order or email, never via WhatsApp. The "*" ties to the WhatsApp button. */
.channel-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--shop-ink-soft, #6f6469);
}
.channel-note__star { color: var(--shop-ink, #241e21); font-weight: 600; }
.btn--whatsapp .wa-star { font-weight: 800; }
.confirm-actions { margin-top: 20px; }

/* Email contact button — solid CMYK-cyan, distinct from the green WhatsApp and the
   magenta primary, so it clearly reads as a button. */
.btn--email {
  background: #0c93b8;
  color: #fff;
  border: 1px solid transparent;
}
.btn--email:hover,
.btn--email:focus-visible {
  background: #0a7c9b;
  color: #fff;
}

/* ---- Checkout: center the column so wide screens aren't lopsided ---------- */
/* The form has a max-width but, being a plain RTL block, it hugged the right and
   left a big empty gutter. Center both the summary and the form to one column. */
.checkout-summary { max-width: 640px; margin-inline: auto; }
.checkout-form { margin-inline: auto; }

/* ---- Product search on the shop landing ---------------------------------- */
.shop-search {
  position: relative;
  max-width: 520px;
  margin: 4px auto 22px;
}

.shop-search__icon {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 14px;        /* right side in RTL */
  inline-size: 18px;
  block-size: 18px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241e21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.shop-search input {
  inline-size: 100%;
  min-height: 48px;
  padding: 10px 44px 10px 16px;    /* room for the icon on the start side */
  border: 1px solid var(--shop-border);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  color: var(--shop-ink);
  box-shadow: var(--shop-shadow);
}

.shop-search input:focus {
  outline: 3px solid rgba(216, 26, 127, .14);
  border-color: var(--shop-primary);
}

.search-results__empty {
  grid-column: 1 / -1;
  margin: 8px 0;
  color: var(--shop-muted);
}

/* A search result is a product card without an image banner — just the name,
   on a clean white surface (not the dark image-overlay treatment). */
.search-result {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 14px 18px;
  background: #fff;
}
.search-result__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 12px;
  min-width: 0;
}
.search-result .product-card__name {
  color: var(--shop-ink);
  font-size: 1.02rem;
}
.search-result .product-card__price { color: var(--shop-muted); flex: none; }

/* ---- Footer: visible contact details (address, phone, hours) ------------- */
.shop-footer__contact {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--shop-ink);
  line-height: 1.6;
}

.shop-footer__brand {
  margin: 0;
  font-family: 'Rubik', 'Heebo', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
}

.shop-footer__address {
  display: grid;
  gap: 2px;
  font-style: normal;
  color: var(--shop-muted);
}

.shop-footer__hours { font-size: .92rem; }

.shop-footer__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 4px 0 0;
}

.shop-footer__channels a {
  display: inline-flex;
  align-items: center;
  gap: 6px;            /* keep "וואטסאפ" off the LTR number beside it */
  min-height: 44px;
}

/* ---- Header brand: real Dfus Fredi emblem + clear "home" affordance ------ */
.shop-brand { gap: 11px; align-items: center; }

/* selector carries 2 classes to beat the homepage's `.site-header__brand img` */
.shop-brand .shop-brand__logo {
  display: block;
  height: 36px;
  width: auto;
  flex: none;
}

/* name stacked above a small "back to homepage" hint */
.shop-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.shop-brand__name {
  font-family: var(--font-display, "Rubik", sans-serif);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--shop-ink);
}

.shop-brand__home {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--shop-primary-dark);
  opacity: .75;
}
.shop-brand:hover .shop-brand__home,
.shop-brand:focus-visible .shop-brand__home { opacity: 1; text-decoration: underline; }

/* ---- Nav labels: friendly emoji beside the text (text stays the a11y label) */
.shop-nav a { gap: 6px; }

.shop-nav__ico {
  font-size: 1.1rem;
  line-height: 1;
  /* keep emoji crisp + vertically centred next to Hebrew text */
  transform: translateY(0.5px);
}

/* hide the small home hint on very narrow phones to protect the nav row */
@media (max-width: 400px) {
  .shop-brand__home { display: none; }
  .shop-brand__name { font-size: 1.05rem; }
}
