/**
 * Gift bundle campaign (WF_Gift_Bundle) — the popup, the product-page banner,
 * the home hero, the category banner, the grid tile and the side-cart strip.
 *
 * ROUND-CONTROL GUARD: every circle here is flex:none + border-box + equal
 * width/height with min/max guards, and pins ONE horizontal inset only.
 */

:root {
  --wf-gb-ink: #5c3d7a;
  --wf-gb-mid: #7b5ea7;
  --wf-gb-soft: #f3f0ff;
  --wf-gb-line: #e4dcf0;
}

/* ---- popup ------------------------------------------------------------ */
html.wf-gb-open, html.wf-gb-open body { overflow: hidden; }

.wf-gb-pop { direction: rtl; }
.wf-gb-pop[hidden] { display: none !important; }
.wf-gb-pop__back {
  position: fixed; inset: 0; background: rgba(28, 18, 40, .55);
  z-index: 2147483646; animation: wf-gb-fade .18s ease-out;
}
.wf-gb-pop__card {
  position: fixed; z-index: 2147483647;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  overflow: auto; border-radius: 18px; background: #fff;
  box-shadow: 0 24px 60px rgba(28, 18, 40, .3);
  animation: wf-gb-rise .22s ease-out;
}
@keyframes wf-gb-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes wf-gb-rise { from { opacity: 0; transform: translate(-50%, -46%) } to { opacity: 1; transform: translate(-50%, -50%) } }

.wf-gb-pop__x {
  position: absolute; top: 12px; left: 12px; right: auto;
  flex: none; box-sizing: border-box;
  width: 32px; min-width: 32px; max-width: 32px;
  height: 32px; min-height: 32px; max-height: 32px;
  padding: 0; margin: 0; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .9); color: #3a2a4d;
  font: inherit; font-size: 14px; line-height: 1; cursor: pointer;
}
.wf-gb-pop__x:hover, .wf-gb-pop__x:focus { background: #fff; color: #3a2a4d; }

/* The campaign photo is a white-background product shot, so the frame around
   it is white too: no seam, and no grey rectangle on a pale card. */
.wf-gb-pop__hero { margin: 0; line-height: 0; background: #fff; }
.wf-gb-pop__hero img { width: 100%; height: auto; display: block; }

.wf-gb-pop__body { padding: 18px 20px 20px; text-align: center; }
.wf-gb-pop__k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .3px; color: var(--wf-gb-mid); }
.wf-gb-pop__h { margin: 6px 0 4px; font-size: 22px; font-weight: 800; line-height: 1.25; color: #2b1d3d; }
.wf-gb-pop__p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: #4a4a4a; }

.wf-gb-pop__pics { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; }
.wf-gb-pop__pic {
  flex: none; box-sizing: border-box;
  width: 84px; min-width: 84px; max-width: 84px;
  height: 84px; min-height: 84px; max-height: 84px;
  border-radius: 12px; object-fit: cover; background: var(--wf-gb-soft);
}

.wf-gb-pop__price { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 14px; }
.wf-gb-pop__was { font-size: 15px; color: #8a8a8a; text-decoration: line-through; }
.wf-gb-pop__now { font-size: 26px; font-weight: 800; color: var(--wf-gb-ink); }

.wf-gb-pop__go {
  box-sizing: border-box; display: block; width: 100%;
  margin: 0 0 8px; padding: 13px 18px; border: 0; border-radius: 999px;
  background: var(--wf-gb-ink); color: #fff;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
  text-transform: none; cursor: pointer;
}
.wf-gb-pop__go:hover, .wf-gb-pop__go:focus { background: var(--wf-gb-mid); color: #fff; }
.wf-gb-pop__go[disabled] { opacity: .6; cursor: default; }
.wf-gb-pop__no {
  box-sizing: border-box; display: block; width: 100%;
  margin: 0; padding: 8px; border: 0; background: none;
  font: inherit; font-size: 14px; line-height: 1.2; color: #7a7a7a;
  text-transform: none; cursor: pointer;
}
.wf-gb-pop__no:hover, .wf-gb-pop__no:focus { color: #3a3a3a; background: none; }
.wf-gb-pop__t { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: #8a8a8a; }

/* ---- product page offer, directly above the add-to-cart button ---------
   The customer meets the offer while deciding, so it has to answer the only
   question that matters there: what will this cost me. Hence the combined
   figure on the button itself, with the alternative struck out beside it. */
.wf-gb-pdp {
  direction: rtl; display: flex; flex-direction: column; gap: 10px;
  margin: 0 0 12px; padding: 12px;
  border: 1px solid var(--wf-gb-line); border-radius: 16px;
  background: linear-gradient(135deg, #faf8ff 0%, #f1ebfb 100%);
}
/* display:flex above outranks the browser's own rule for [hidden], so the
   block stays on screen when the script hides it on the subscription track.
   Say it here instead. */
.wf-gb-pdp[hidden] { display: none; }
/* The offer's own headline — the biggest thing in the block, because it is the
   sentence that sells it. Everything under it is deliberately smaller. */
.wf-gb-pdp__h {
  margin: 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 800;
  color: #2b1d3d; line-height: 1.35;
}
.wf-gb-pdp__h b { color: var(--wf-gb-ink); font-weight: 800; }
.wf-gb-pdp__h del { color: #8f8f8f; font-weight: 700; }
/* The exclusions, in the size small print is normally set in — the same line
   the home banner carries under its button. */
.wf-gb-pdp__note {
  margin: 10px 0 0; font-size: 11.5px; line-height: 1.6; color: #8b8494;
}
.wf-gb-pdp__k {
  margin-top: -4px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .2px; color: var(--wf-gb-mid);
}

/* Pictures on one side, total and button on the other — the arrangement every
   shop uses for a bundle, so nobody has to be taught how to read it. */
.wf-gb-pdp__main {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}

/* The thumbnails are small on purpose: they identify the three things, they are
   not the product gallery. Each is named above its square and carries no price
   of its own — the only figure in the block is the total beside the button.

   The plus sits on the centre line of the SQUARES, not of the whole tile, so
   its offset is measured from the name's and the square's fixed heights. */
.wf-gb-pdp__set { --gb-sq: 84px; --gb-nm: 16px; --gb-gap: 4px; display: flex; align-items: flex-start; gap: 7px; }
.wf-gb-pdp__it {
  flex: none; box-sizing: border-box;
  width: var(--gb-sq); min-width: var(--gb-sq); max-width: var(--gb-sq);
  display: flex; flex-direction: column; align-items: center; gap: var(--gb-gap);
}
/* The name sits above its square in a fixed one-line box, so every square in
   the row starts at the same height and the plus offset below stays a number
   we can compute rather than guess. The labels are short on purpose — they are
   written in the campaign's settings, not taken from the catalogue. */
.wf-gb-pdp__it-n {
  box-sizing: border-box; width: 100%;
  height: var(--gb-nm); min-height: var(--gb-nm); max-height: var(--gb-nm);
  overflow: hidden; text-align: center; white-space: nowrap; text-overflow: ellipsis;
  font-size: 11.5px; line-height: var(--gb-nm); font-weight: 600; color: #4a3b5c;
}
.wf-gb-pdp__it-pic {
  box-sizing: border-box; width: 100%;
  height: var(--gb-sq); min-height: var(--gb-sq); max-height: var(--gb-sq);
  overflow: hidden; border-radius: 10px; border: 1px solid var(--wf-gb-line); background: #fff;
}
.wf-gb-pdp__it-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wf-gb-pdp__plus {
  flex: none; box-sizing: border-box;
  width: 18px; min-width: 18px; max-width: 18px;
  height: 18px; min-height: 18px; max-height: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-top: calc(var(--gb-nm) + var(--gb-gap) + (var(--gb-sq) - 18px) / 2);
  font-size: 15px; font-weight: 800; color: var(--wf-gb-mid); line-height: 1;
}

.wf-gb-pdp__buy { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.wf-gb-pdp__sum { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.wf-gb-pdp__sum-l { font-size: 13px; color: #5a5a5a; }
.wf-gb-pdp__sum del { font-size: 13px; color: #9a9a9a; }
.wf-gb-pdp__sum b { font-size: 19px; font-weight: 800; color: var(--wf-gb-ink); }

/* A normal button: as wide as its words, not as wide as the block. */
.wf-gb-pdp__btn {
  box-sizing: border-box; width: auto;
  margin: 0; padding: 9px 20px; border: 0; border-radius: 999px;
  background: var(--wf-gb-ink); color: #fff;
  font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2;
  white-space: nowrap; text-transform: none; cursor: pointer;
}
.wf-gb-pdp__btn:hover, .wf-gb-pdp__btn:focus { background: var(--wf-gb-mid); color: #fff; }
.wf-gb-pdp__btn[disabled] { opacity: .6; cursor: default; }

.wf-gb-pdp__msg { font-size: 13px; line-height: 1.4; color: #137a40; }
.wf-gb-pdp__msg:empty { display: none; }
.wf-gb-pdp__msg.is-err { color: #b3261e; }

/* ---- the campaign slide inside the main home banner ---------------------
   The main banner's other slides are designed photographs with the words laid
   over them. This one is a product shot on white, so cropping it to the banner
   and darkening it would destroy both the picture and the text. It gets a
   two-part slide instead: the gift on a pale field, the words beside it. */
/* The photograph carries the colour, so everything beside it is quiet: an
   off-white panel, one line of small caps, a large light headline, and the
   offer in a plain white card. The picture is never letterboxed — it fills
   its whole side of the banner, cropped. */
/* The same pale lilac the tulip banner is printed on, so the two slides of the
   one carousel do not read as two different shades of white (Aviram, 05.12).
   Sampled from that banner's own file: rgb(243,241,255). */
.wf-hero__slide--gb { background: #f3f1ff; color: #241a33; display: flex; flex-direction: column; }
.wf-hero__slide--gb .wf-hero__pic { flex: none; display: block; }
.wf-hero__slide--gb .wf-hero__img {
  width: 100%; height: 260px; max-height: 260px;
  /* Held high in the stacked crop: centring it cuts the top of the bouquet. */
  object-fit: cover; object-position: 50% 32%; mix-blend-mode: normal;
}
/* Everything in the panel starts at the same edge — the button included — and
   the button gets room to breathe under the offer card. */
.wf-hero__slide--gb .wf-hero__ctas { justify-content: flex-start; margin-top: 16px; }
.wf-gb-hero__note {
  margin: 12px 0 0; font-size: 11.5px; line-height: 1.6; color: #8b8494;
}
.wf-hero__slide--gb .wf-hero__content {
  position: static; background: none; color: inherit; padding: 18px 20px 24px;
}
.wf-hero__slide--gb .wf-hero__eyebrow {
  color: var(--wf-gb-mid); opacity: 1;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px;
}
/* The headline is a full sentence now, not three words, so it is set a notch
   smaller and a notch looser — it has to be read, not only glanced at. */
.wf-hero__slide--gb .wf-hero__title {
  color: #241a33; font-weight: 700; line-height: 1.28; letter-spacing: -.2px;
  font-size: clamp(21px, 5.2vw, 26px);
}
.wf-hero__slide--gb .wf-hero__text { color: #5c5566; opacity: 1; }
.wf-hero__slide--gb .wf-btn--primary {
  background: #241a33; border-color: #241a33; color: #fff;
  border-radius: 999px; padding: 13px 34px; font-weight: 700;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .wf-hero__slide--gb .wf-hero__img { height: 300px; max-height: 300px; }
}

@media (min-width: 1025px) {
  /* The banner itself runs edge to edge, but what is written on it does not:
     the words line up inside the same 1400px band the rest of the page is set
     to, instead of being dragged across a wide screen (Aviram, 05.12). The
     photograph keeps the outer edge and gives up the width — it was taking
     more than half the banner while the text had to be shrunk to fit. */
  .wf-hero__slide--gb {
    display: block;
    --gb-gut:  max(0px, (100% - 1400px) / 2);   /* outside the band */
    --gb-band: min(100%, 1400px);
    --gb-text: calc(var(--gb-band) * 0.66);     /* the written side */
  }
  /* The photograph stops at the band too, so the picture keeps the same margin
     on its outer side that the words keep on theirs (Aviram, 05.12). */
  .wf-hero__slide--gb .wf-hero__pic {
    position: absolute; inset-block: 0; inset-inline-start: var(--gb-gut);
    width: calc(var(--gb-band) - var(--gb-text));
    padding: 0; display: block; box-sizing: border-box;
  }
  .wf-hero__slide--gb .wf-hero__img {
    width: 100%; height: 100%; max-height: none;
    object-fit: cover; object-position: 50% 50%;
  }
  .wf-hero__slide--gb .wf-hero__content {
    position: absolute; inset-block: 0;
    inset-inline-end: var(--gb-gut); inset-inline-start: auto;
    width: var(--gb-text); box-sizing: border-box; background: #f3f1ff;
    display: flex; flex-direction: column; justify-content: center;
    padding: 20px 36px; overflow: hidden;
  }
  /* The panel is a fixed height, so the pieces inside it are sized to fit at
     once — a banner that clips its own small print is worse than a small one. */
  .wf-hero__slide--gb .wf-hero__eyebrow { font-size: 13px; }
  .wf-hero__slide--gb .wf-hero__title {
    font-size: 26px; line-height: 1.24; margin-bottom: 6px;
  }
  .wf-hero__slide--gb .wf-hero__text { font-size: 15px; max-width: 52ch; }
  .wf-hero__slide--gb .wf-gb-hero { margin: 12px 0 0; padding: 11px 14px; }
  .wf-hero__slide--gb .wf-gb-hero__set { --gb-sq: 68px; }
  .wf-hero__slide--gb .wf-hero__ctas { margin-top: 11px; }
  .wf-hero__slide--gb .wf-btn--primary { padding: 12px 34px; font-size: 15.5px; }
  .wf-hero__slide--gb .wf-gb-hero__note { margin-top: 8px; font-size: 13px; }
}

@media (min-width: 1280px) {
  .wf-hero__slide--gb .wf-hero__content { padding: 20px 44px; }
  .wf-hero__slide--gb .wf-hero__title { font-size: 28px; }
  .wf-hero__slide--gb .wf-gb-hero__set { --gb-sq: 74px; }
}

/* ---- the offer inside the banner --------------------------------------- */
/* The same three squares as the product page, in a plain white card so they
   read as the terms of the offer and not as decoration on the photograph. */
.wf-gb-hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin: 16px 0 6px; padding: 12px 14px;
  background: #fff; border: 1px solid #ece6f3; border-radius: 16px;
}
.wf-gb-hero__set { --gb-sq: 68px; --gb-nm: 16px; --gb-gap: 4px; }
/* The labels and the struck-out price are the fine print of the offer, and
   they were set small enough to be skipped. Read at arm's length now. */
.wf-gb-hero .wf-gb-pdp__it-n { font-size: 12.5px; color: #6b6376; }
.wf-gb-hero .wf-gb-pdp__it-pic { background: #fdfcfe; border-color: #ece6f3; }
.wf-gb-hero__p { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.wf-gb-hero__p-l { font-size: 15px; color: #6b6376; }
.wf-gb-hero__p b { font-size: 31px; font-weight: 800; color: #241a33; line-height: 1; }
.wf-gb-hero__p del { font-size: 15.5px; color: #a09aa8; }
@media (max-width: 460px) {
  /* Wider squares, not narrower: at 60px the labels were cut mid-word. */
  .wf-gb-hero { gap: 10px; padding: 11px 10px; }
  .wf-gb-hero__set { --gb-sq: 74px; gap: 5px; }
  .wf-gb-hero .wf-gb-pdp__it-n { font-size: 10.5px; }
  .wf-gb-hero__p b { font-size: 24px; }
}

/* ---- category banner ---------------------------------------------------
   A band, not a card: the pale field runs the whole window while what is
   written on it stops where the page's own content stops, in the same
   1572px container the breadcrumb, the title and the grid below it use
   (Aviram, 05.12). The inline padding is that container's margin plus its
   gutter, so the circle lines up with the words under it. */
.wf-gb-arch {
  direction: rtl; display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  padding-block: 14px;
  padding-inline: calc(max(0px, 100% - 1572px) / 2 + var(--wfc-gutter, 22px));
  border: 0; border-block-end: 1px solid var(--wf-gb-line); border-radius: 0;
  background: var(--wf-gb-soft); text-decoration: none;
}
.wf-gb-arch:hover { background: #ece4f8; }
.wf-gb-arch__ic {
  flex: none; box-sizing: border-box;
  width: 56px; min-width: 56px; max-width: 56px;
  height: 56px; min-height: 56px; max-height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--wf-gb-ink); color: #fff;
  font-size: 15px; font-weight: 800;
}
.wf-gb-arch__txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wf-gb-arch__txt b { font-size: 15.5px; font-weight: 800; color: #2b1d3d; }
.wf-gb-arch__txt span { font-size: 13px; color: #5a5a5a; line-height: 1.35; }
.wf-gb-arch__cta { flex: none; font-size: 14px; font-weight: 700; color: var(--wf-gb-ink); white-space: nowrap; }
@media (max-width: 575px) { .wf-gb-arch__cta { display: none; } }

/* ---- grid / carousel tile ---------------------------------------------- */
/* Built like the product cards it sits between: picture on top, words beneath
   on white. A flat block of colour reads as an advert and the eye skips it. */
.wf-gb-tile {
  direction: rtl; display: flex; flex-direction: column;
  height: 100%; overflow: hidden; text-decoration: none;
  border: 1px solid var(--wf-gb-line); border-radius: 14px;
  background: #fff; color: #2b1d3d;
}
.wf-gb-tile:hover, .wf-gb-tile:focus { color: #2b1d3d; border-color: #cbb9e6; }
.wf-gb-tile__media {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  background: linear-gradient(135deg, #f7f3ff 0%, #e9e0f7 100%);
}
.wf-gb-tile__media img {
  width: 100%; height: 100%; display: block;
  object-fit: contain; mix-blend-mode: multiply;
}
.wf-gb-tile__tag {
  position: absolute; inset-block-start: 10px; inset-inline-start: 10px; inset-inline-end: auto;
  padding: 5px 11px; border-radius: 999px;
  background: var(--wf-gb-ink); color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
/* The words fill the card: the offer sentence, the exclusions, then the link
   pushed to the bottom edge, so the tile ends flush with the product cards
   beside it instead of trailing off into white space. */
.wf-gb-tile__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 5px; padding: 12px 14px 14px; }
.wf-gb-tile__h { font-size: 14px; font-weight: 800; line-height: 1.35; }
.wf-gb-tile__s { font-size: 11.5px; line-height: 1.5; color: #8b8494; }
/* No price of its own in this row: the tile is an offer on the bouquets around
   it, and a lone figure here was read as "a ₪49 product" (Aviram, 05.12). */
.wf-gb-tile__row {
  display: flex; align-items: baseline; justify-content: flex-start; gap: 8px; margin-top: auto; padding-top: 8px;
}
.wf-gb-tile__c { font-size: 13px; font-weight: 700; color: var(--wf-gb-mid); white-space: nowrap; }

/* ---- side cart --------------------------------------------------------- */
.wf-gb-cart {
  direction: rtl; display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px; padding: 10px 12px;
  border-radius: 12px; background: var(--wf-gb-soft);
}
.wf-gb-cart__ic {
  flex: none; box-sizing: border-box;
  width: 44px; min-width: 44px; max-width: 44px;
  height: 44px; min-height: 44px; max-height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--wf-gb-ink); color: #fff;
  font-size: 13px; font-weight: 800;
}
.wf-gb-cart__txt { flex: 1 1 auto; font-size: 13px; line-height: 1.4; color: #3a3a3a; }
.wf-gb-cart__btn {
  flex: none; box-sizing: border-box;
  margin: 0; padding: 8px 14px; border: 0; border-radius: 999px;
  background: var(--wf-gb-ink); color: #fff;
  font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2;
  text-transform: none; cursor: pointer; white-space: nowrap;
}
.wf-gb-cart__btn:hover, .wf-gb-cart__btn:focus { background: var(--wf-gb-mid); color: #fff; }

/* ---- the badge on a product card --------------------------------------
   The shared badge is a half-transparent tint with a blur behind it, which
   reads well over a dark photograph and disappears over a pale one — and the
   bouquets are shot on white. This one is solid near-black with white on it,
   so it is legible over any picture in the catalogue (Aviram, 05.12). */
.wf-card .wf-card__badge.wf-card__badge--gb {
  background: rgba(16, 12, 22, 0.9);
  color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
