/* Product page (FX-6, 16/10/2026). Behaviour: assets/js/polish-pdp.js. Loaded last. */

/* Breadcrumbs stay on ONE line: home › (parent) › current, the current name ends in an ellipsis. */
.hb-pp-page .hb-prod__crumbs ol { flex-wrap: nowrap; align-items: center; min-width: 0; }
.hb-pp-page .hb-prod__crumbs li { flex: none; white-space: nowrap; }
.hb-pp-page .hb-prod__crumbs li[aria-current] { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) {
	.hb-pp-page .hb-prod__crumbs li:nth-child(2):not(:nth-last-child(2)) { display: none; }
}

/* Phone: the photo spans the whole card, edge to edge, under the card's own rounded top. */
@media (max-width: 767px) {
	.hb-pp-page.hb-cp.hb-contact > .hb-prod__top > .hb-prod__gallery { margin: -14px -20px 0; }
	.hb-pp-page .hb-prod__gallery .hb-prod__main { aspect-ratio: 16 / 9; max-height: none; border-radius: 28px 28px 24px 24px; }
	.hb-pp-page .hb-prod__gallery .hb-prod__main img { width: 100%; height: 100%; object-fit: cover; }
}

/* Category pill, title and diet badge sit tighter. */
.hb-pp-page .hb-pp__info { --pp-tight: 8px; }
.hb-pp-page .hb-pp__type { margin: 0 0 var(--pp-tight, 8px); }
.hb-pp-page .hb-pp__title { margin: 0; }
.hb-pp-page .hb-pp__diet { margin: 6px 0 0; }
.hb-pp-page .hb-pp__lead { margin-top: 8px; }
@media (max-width: 767px) {
	.hb-pp-page .hb-pp__info { gap: 0; }
	.hb-pp-page .hb-pp__buy { margin-top: 12px; }
}

/* The buy card: the same air above and below what is in it (the secondary links keep their 44px touch height). */
.hb-pp-page .hb-pp__buy { padding-bottom: 14px; }
.hb-pp-page .hb-pp__buy > .hb-pp__alt { margin-bottom: -15px; }
@media (min-width: 768px) { .hb-pp-page .hb-pp__buy > .hb-pp__alt { margin-bottom: -15px; } }

/* One price on the page: when the total is the price (1 unit), the total is not repeated. */
.hb-pp-page .hb-pp__total.is-same { display: none; }

/* The sticky bar is ONE control: name + total, "ההזמנה שלי" (when there is an order) and add. No separate cart icon. */
body.has-prodbar .hb-fab--cart, body:has(.hb-prodbar.is-shown) .hb-fab--cart { display: none !important; }
body:has(.hb-fab--cart .hb-cart-count:not([hidden])) .hb-prodbar { padding-left: 8px; }
.hb-prodbar__order {
	display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; border: 1px solid rgba(53, 43, 36, .16); border-radius: 999px;
	background: #f9f4f0; color: #352b24; font: 700 14.5px/1 var(--hb-font); white-space: nowrap; cursor: pointer;
}
.hb-prodbar__order svg { flex: none; color: #8c7068; }
.hb-prodbar__order b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #657b63; color: #fff; font-size: 12.5px; }
.hb-prodbar__order:active { transform: scale(.97); }
.hb-prodbar__order:focus-visible { outline: 2px solid #352b24; outline-offset: 2px; }
.hb-prodbar.has-order { grid-template-columns: minmax(0, 1fr) auto auto; }
.hb-prodbar__sum strong { white-space: nowrap; }
@media (max-width: 479px) {
	.hb-prodbar.has-order .hb-prodbar__name { display: none; }
	.hb-prodbar.has-order .hb-prodbar__sum { align-content: center; }
	.hb-prodbar.has-order .hb-prodbar__order { padding: 0 10px; font-size: 14px; }
	.hb-prodbar.has-order .hb-prodbar__add.hb-btn { padding: 0 16px; font-size: 16px; }
	.hb-prodbar.has-order { gap: 6px; }
}

/* Rails (more from the category / goes well with): hbRail, no native scrollbar. */
.hb-pp__track.hb-rail__track { scrollbar-width: none; }

/* "מה כלול בחבילה" as dish tiles (owner 17/10): one grid in the home page's category-card language (sand card, round photo,
   centred name), the category a small label on the tile instead of a heading per item. polish-pdp.js gathers the rows into
   .hb-pp__tiles and adds the labels; without JS the original rows stay. Swap ⇄ stays on the tile, top corner. */
/* Client 05/11/2026: every category has its heading and grid again; polish-pdp.js only turns each list into tiles. */
.hb-pp__comp.is-tiles .hb-pp__grp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid rgba(53, 43, 36, .12); font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: 0; color: #352b24; }
.hb-pp__comp.is-tiles .hb-pp__grp:first-of-type { margin-top: 16px; padding-top: 0; border-top: 0; }
.hb-pp__comp.is-tiles .hb-pp__grp small { font-weight: 500; font-size: 14px; color: #6b625b; }
.hb-pp__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; margin: 12px 0 4px; padding: 0; list-style: none; }
.hb-pp__tiles > .hb-pp__r { min-width: 0; }
.hb-pp__tiles .hb-pp__rbtn, .hb-pp__tiles .hb-pp__rbox {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
	height: 100%; min-height: 0; padding: 12px 8px 12px; border-radius: 20px; background: #f9f4f0; text-align: center;
}
.hb-pp__tiles .hb-pp__rbtn:hover { background: #f3ebe4; }
.hb-pp__tiles .hb-pp__thumb { width: 76px; height: 76px; border-radius: 50%; background: #eee7d6; }
.hb-pp__tiles .hb-pp__rtxt { justify-items: center; gap: 2px; width: 100%; }
.hb-pp__tiles .hb-pp__tcat { font-weight: 600; font-size: 12.5px; line-height: 1.3; color: var(--pp-muted); }
.hb-pp__tiles .hb-pp__rtxt strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 15px; line-height: 1.3; white-space: normal; }
.hb-pp__tiles .hb-pp__rtxt small { font-size: 12.5px; white-space: normal; }
.hb-pp__comp.is-one-each .hb-pp__tiles [data-slot-count] { display: none; }
.hb-pp__comp.is-one-each .hb-pp__tiles small:has(> [data-slot-swapped][hidden]) { display: none; }
/* The swap is a labelled button on the tile, not a small corner icon (client 05/11/2026). */
.hb-pp__tiles .hb-pp__swapi { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; height: auto; min-height: 38px; margin-top: auto; padding: 0 16px; border: 1.5px solid #352b24; border-radius: 999px; background: #fff; color: #352b24; font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap; }
.hb-pp__tiles .hb-pp__rbtn:hover .hb-pp__swapi { background: #fff; color: #352b24; }
.hb-pp__tiles .hb-pp__rbtn .hb-pp__swapi:hover { background: #352b24; color: #fff; }
.hb-pp__tiles .hb-pp__r.is-swapped .hb-pp__rbtn { background: #f1f5f0; }
@media (min-width: 768px) {
	.hb-pp__tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
	.hb-pp__tiles .hb-pp__thumb { width: 96px; height: 96px; }
}

/* The sticky bar with an order: the price never clips (owner 17/10, "2,200" showed as ",200" at 390). On phones
   "ההזמנה שלי" becomes the cart icon + count (its aria-label keeps the words), and the sum column keeps its full width. */
@media (max-width: 479px) {
	.hb-prodbar.has-order { grid-template-columns: minmax(max-content, 1fr) auto auto; padding-inline-start: 12px; }
	.hb-prodbar.has-order .hb-prodbar__sum strong { font-size: 17px; }
	.hb-prodbar.has-order .hb-prodbar__order { position: relative; gap: 4px; min-width: 48px; padding: 0 8px; }
	.hb-prodbar.has-order .hb-prodbar__order > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.hb-prodbar.has-order .hb-prodbar__add.hb-btn { padding: 0 14px; }
}

/* Product page "משלים את…" / "עוד מ…" (owner 17/10): a calm grid of whole cards instead of a scrolling rail.
   Four on computers, 2×2 on tablets and phones; the rest live behind "לכל …". */
.hb-pp__track.hb-pp__grid { display: grid !important; grid-auto-flow: row !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; grid-auto-columns: auto !important;
	gap: 15px !important; overflow: visible !important; padding: 0 !important; scroll-snap-type: none !important; -webkit-mask-image: none !important; mask-image: none !important; }
.hb-pp__track.hb-pp__grid > li { width: auto !important; min-width: 0 !important; }
.hb-pp__track.hb-pp__grid > li:nth-child(n+5) { display: none !important; }
@media (max-width: 1023px) { .hb-pp__track.hb-pp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; } }
/* Centred like the designer's sections, never stretched edge to edge. */
.hb-pp__rail { width: 100%; max-width: 1240px; margin-inline: auto !important; }
/* Phones / tablets in the 2×2 grid (owner 17/10): the card is narrow, so price on its own line and the add button
   or stepper full width under it — nothing cut at the card edge. */
@media (max-width: 1023px) {
	.hb-pp__grid .hb-pp__card-foot { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 8px !important; }
	.hb-pp__grid .hb-pp__card-price { text-align: start; }
	.hb-pp__grid .hb-pp__cq, .hb-pp__grid .hb-pp__card-foot > * { width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin: 0 !important; box-sizing: border-box; }
	.hb-pp__grid .hb-pp__cq button, .hb-pp__grid .hb-pp__card-foot .hb-btn { width: 100%; justify-content: center; }
	.hb-pp__grid .hb-pp__card-name { font-size: 16px; line-height: 1.3; }
	.hb-pp__grid .hb-pp__card-why { font-size: 13.5px; }
}

/* Details for every included dish (owner 17/10): the whole tile opens the dish sheet (polish-pdp.js + window.hbDish);
   a quiet "פרטים" at the foot of each tile says so and is the keyboard path. The ⇄ corner keeps the swap. */
.hb-pp__tiles > .hb-pp__r { position: relative; cursor: pointer; }
.hb-pp__tiles .hb-pp__rbtn, .hb-pp__tiles .hb-pp__rbox { padding-bottom: 38px; }
.hb-pp__tiles .hb-pp__rbox { cursor: pointer; }
.hb-pp__tiles .hb-pp__r:hover .hb-pp__rbox { background: #f3ebe4; }
.hb-pp__peek {
	position: absolute; inset-inline: 0; bottom: 6px; margin: 0 auto; width: max-content; min-height: 28px; padding: 0 10px; border: 0; border-radius: 999px;
	background: transparent; color: var(--pp-muted, #6b625d); font: 600 13px/28px var(--hb-font, inherit); text-decoration: underline; text-decoration-color: rgba(53, 43, 36, .25); text-underline-offset: 3px; cursor: pointer;
}
.hb-pp__tiles .hb-pp__r:hover .hb-pp__peek { color: #352b24; text-decoration-color: currentColor; }
.hb-pp__peek:focus-visible { outline: 2px solid #352b24; outline-offset: 2px; }
/* The head line never clips: "6 מגשים · מגש מכל מנה" wraps under the title on narrow screens. */
.hb-pp__comp-head { flex-wrap: wrap; min-width: 0; }
.hb-pp__comp-head h2 { flex: 0 1 auto; min-width: 0; }
.hb-pp__comp-meta { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 479px) { .hb-pp__comp-head { flex-direction: column; align-items: flex-start; gap: 2px; } }

/* Phones: the sticky bar keeps the package name whole; the swap count is already on the tiles and in the summary (client 05/11/2026). */
@media (max-width: 479px) { .hb-prodbar .hb-pp__bar-x { display: none !important; } }

/* The ways block on a package page (client 05/11/2026): the page's img height:auto left a landscape photo filling half the circle. */
html .hb-pp-page .hb-way__img { height: 100%; aspect-ratio: auto; }
/* The sticky bar is centred with no direction in it: in English the mirrored left:50% met an unmirrored translate(-50%) and the bar sat off-screen, its name and price hidden. */
html .hb-pp-page .hb-prodbar { left: 10px; right: 10px; margin-inline: auto; transform: translateY(calc(100% + 30px)); }
html .hb-pp-page .hb-prodbar.is-shown { transform: none; }

/* Client 05/11/2026: quantities follow the guests, the list shows the variety. */
.hb-pp__qtynote { margin: 10px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--pp-tint); color: var(--pp-ink); font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.hb-pp__qtynote strong { color: var(--pp-sage-d); font-weight: 800; }
