/* StickDecor product page 2027 (skin over the theme's product template). Scoped to body.pdp27.
   Tokens follow the homepage / category layers: brand blue #4DAAD5, ink blue #256E8E, cream #F5F3EF. */
.pdp27 { --p-brand: #4DAAD5; --p-ink-blue: #256E8E; --p-soft-blue: #EAF5FB; --p-ink: #0F0F10; --p-muted: #5B616B; --p-line: #E5E7EB; --p-cream: #F5F3EF; }

/* Delivery facts under the order button */
.pdp27 .p27-facts { list-style: none; margin: 12px 0 14px; padding: 12px 14px; display: grid; gap: 8px; border-radius: 12px; background: var(--p-cream); }
.pdp27 .p27-facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: #2B2F36; }
.pdp27 .p27-facts svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--p-ink-blue); }
.pdp27 .p27-facts b { font-weight: 700; color: var(--p-ink); }

.pdp27 .delivery.p27-merged { display: none; } /* its sentence now opens the delivery card */

/* The size card: fields + live total in one framed block */
.pdp27 .dims.p27-dims { margin: 0 0 16px; padding: 14px; border: 1.5px solid #CFE3EE; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15, 15, 16, .04); }
.pdp27 .p27-dims__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pdp27 .p27-dims__head b { font-size: 15.5px; font-weight: 800; color: var(--p-ink); }
.pdp27 .p27-dims__head span { font-size: 12.5px; color: var(--p-muted); }
.pdp27 .p27-dims .dims__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pdp27 .p27-dims .dims__label { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #2B2F36; }
.pdp27 .p27-dims .dims__input-wrap { display: flex; align-items: center; height: 54px; padding: 0 12px; border: 1.5px solid var(--p-line); border-radius: 12px; background: #fff; }
.pdp27 .p27-dims .dims__input-wrap:focus-within { border-color: var(--p-ink-blue); box-shadow: 0 0 0 3px rgba(37, 110, 142, .15); }
.pdp27 .p27-dims .dims__input-wrap.is-bad { border-color: #B42318; }
.pdp27 .p27-dims .dims__input-wrap::after { content: "ס״מ"; flex: none; font-size: 13px; font-weight: 600; color: var(--p-muted); }
.pdp27 .p27-dims .dims__input { flex: 1 1 auto; min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; text-align: start; font-size: 20px; font-weight: 800; color: var(--p-ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.pdp27 .p27-dims .dims__input::-webkit-outer-spin-button, .pdp27 .p27-dims .dims__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp27 .p27-dims .dims__unit { display: none; }
.pdp27 .p27-dims .dims__hint { display: none; }
.pdp27 .p27-dims__warn { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: #B42318; }
.pdp27 .p27-dims__warn[hidden] { display: none; }
.pdp27 .p27-total { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; margin: 12px -14px -14px; padding: 12px 14px; border-top: 1px solid #CFE3EE; border-radius: 0 0 14px 14px; background: var(--p-soft-blue); }
.pdp27 .p27-total[hidden] { display: none; }
.pdp27 .p27-total__l { font-size: 14.5px; font-weight: 700; color: var(--p-ink); }
.pdp27 .p27-total__n { grid-row: span 2; font-size: 24px; font-weight: 900; color: var(--p-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pdp27 .p27-total__d { font-size: 13px; color: var(--p-muted); }

/* Size options: compact cards, two per row (three when the names are short), instead of one full-width row each */
.pdp27 .sizes.p27-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pdp27 .sizes.p27-sizes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pdp27 .p27-sizes .size { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 64px; margin: 0; padding: 10px 12px; padding-inline-end: 34px; border: 1.5px solid var(--p-line); border-radius: 12px; background: #fff; cursor: pointer; }
.pdp27 .p27-sizes .size__radio { position: absolute; inset-inline-end: 10px; top: 12px; margin: 0; }
.pdp27 .p27-sizes .size__name { font-size: 14.5px; font-weight: 800; line-height: 1.25; color: var(--p-ink); }
.pdp27 .p27-sizes .size__sub { font-size: 12.5px; color: var(--p-muted); }
.pdp27 .p27-sizes .size__sub[hidden] { display: none; }
.pdp27 .p27-sizes .size__price { margin: 2px 0 0; font-size: 14.5px; font-weight: 800; color: var(--p-ink-blue); }
.pdp27 .p27-sizes .size:has(input:checked) { border-color: var(--p-ink-blue); background: var(--p-soft-blue); box-shadow: inset 0 0 0 1px var(--p-ink-blue); }
.pdp27 .p27-sizes .size:focus-within { outline: 2px solid var(--p-ink-blue); outline-offset: 2px; }

/* The extras under the button, on one line */
.pdp27 .usps.p27-usps, .pdp27 .usps { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 12px; }
.pdp27 .usps .usp-item { font-size: 13px; }

/* The size inside the buy bar: a button that leads to the fields */
.pdp27 .p27-bar-size { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; margin-inline-start: 6px; padding: 2px 9px; border: 1px solid #BFD9E6; border-radius: 999px; background: var(--p-soft-blue); font: inherit; font-size: 12px; font-weight: 700; color: var(--p-ink-blue); white-space: nowrap; cursor: pointer; }
.pdp27 .p27-bar-size[hidden] { display: none; }
.pdp27 .p27-bar-size svg { width: 12px; height: 12px; }

/* Stacked sections instead of tabs */
.pdp27 .p27-tabs .tab-panel { display: block; }
.pdp27 .p27-tabs .tabs-nav { display: none; }
.pdp27 .p27-acc { border-bottom: 1px solid var(--p-line); }
.pdp27 .p27-acc:first-of-type { border-top: 1px solid var(--p-line); }
.pdp27 .p27-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 2px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 800; color: var(--p-ink); }
.pdp27 .p27-acc > summary::-webkit-details-marker { display: none; }
.pdp27 .p27-acc > summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 400; line-height: 1; color: var(--p-ink-blue); }
.pdp27 .p27-acc[open] > summary::after { content: "−"; }
.pdp27 .p27-acc > summary:focus-visible { outline: 2px solid var(--p-ink-blue); outline-offset: 2px; border-radius: 6px; }
.pdp27 .p27-acc__note { margin-inline-start: 8px; font-size: 13px; font-weight: 600; color: var(--p-muted); white-space: nowrap; }
.pdp27 .p27-acc .tab-panel { padding-bottom: 18px; }
.pdp27 .p27-acc .tab-panel__body > h2:first-child { display: none; } /* the section header already names it */

/* Desktop: the buy box is taller than the photo, so half the screen was empty while reading it. The photo and its
   thumbnails stay in view while the buy box scrolls (overflow-x: clip instead of hidden lets sticky work). */
@media (min-width: 1024px) {
	body.pdp27, .pdp27 .sd-product-v2 { overflow-x: clip; } /* the theme's "hidden" on body made it a scroll box of its own */
	.pdp27 .pgrid > .gallery-main, .pdp27 .pgrid > .gallery-thumbs { position: sticky; top: 84px; align-self: start; }
}

/* Phone */
@media (max-width: 760px) {
	/* first screen: less chrome above the photo */
	.pdp27 #content > .container.py-5 { padding-top: 6px !important; } /* 48px of empty space above the breadcrumb */
	/* the page had two nested gutters (16 + 16px each side): one is enough, the photo and the buy box get the width */
	.pdp27 .sd-product-v2 .pwrap > .container, .pdp27 .sd-product-v2 .crumb-bar > .container { padding-inline: 0; }
	/* in the buy bar the price speaks for a size: show the size button, drop the product name and thumbnail */
	.pdp27 .sd-stickybar.p27-bar--size .sd-stickybar__media, .pdp27 .sd-stickybar.p27-bar--size .sd-stickybar__title { display: none; }
	.pdp27 .sd-stickybar.p27-bar--size .sd-stickybar__price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 0; }
	.pdp27 .sd-stickybar.p27-bar--size .sd-stickybar__price { font-size: 20px; }
	/* related products: one swipe row with a third card peeking, instead of a tall two-column grid */
	.pdp27 .related-sec { padding: 24px 0; }
	.pdp27 .related-head { margin-bottom: 14px; }
	.pdp27 .related-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
	.pdp27 .related-grid::-webkit-scrollbar { display: none; }
	.pdp27 .related-grid > * { flex: 0 0 40%; min-width: 0; scroll-snap-align: start; }
	.pdp27 .tabs-sec { padding-block: 20px 28px; }
	.pdp27 .faq-sec { padding-block: 32px; }
	.pdp27 .crumb-bar { padding: 4px 0; border-bottom: 0; }
	.pdp27 .crumb-bar .product-nav { display: none; }
	.pdp27 .crumb-bar .crumbs { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.pdp27 .pwrap { padding-top: 6px; padding-bottom: 28px; }
	/* a tall photo never pushes the name and the price out of the first screen */
	/* 2.12.2026, owner on his phone: an upright photo was squeezed to 42% of the screen height, so it became narrow
	   and stuck to the right with an empty strip beside it. Upright photos now use the full width; only a very tall one
	   is limited (62% of the screen height) and then it sits in the middle. The price stays reachable either way: it is
	   in the buy bar at the bottom. */
	.pdp27 .gallery__main { max-height: 62svh; margin-inline: auto; }
	.pdp27 .gallery__main .gallery__main-img { max-height: 62svh; object-fit: contain; }
	/* the category line under the photo repeats the breadcrumb above it; on a phone the share / wishlist buttons sit
	   on the photo's free corner (as on the product cards) instead of on a row of their own */
	.pdp27 .pgrid { position: relative; }
	.pdp27 .info__eyebrow { display: none; }
	.pdp27 .info__head { position: absolute; inset-inline-start: 10px; top: 10px; margin: 0; z-index: 3; }
	.pdp27 .info__head .info__actions { gap: 8px; }
	/* one line under the name: rating and stock (the catalogue number is in "מידע נוסף") */
	.pdp27 .info__row { flex-wrap: nowrap; gap: 8px; }
	.pdp27 .info__row .info__sku, .pdp27 .info__row .info__sku + .info__dot { display: none; }
	/* WhatsApp floats on the right, where every Hebrew line starts: on a 360px phone it covered the price. On product
	   pages it moves to the left corner (line ends), and the back-to-top button gives its place up. */
	.pdp27 .whatsapp-btn { inset-inline-start: auto !important; inset-inline-end: 16px !important; }
	.pdp27 .back-to-top-btn { display: none !important; }
	/* the floating buttons sit above the buy bar instead of on its button */
	.pdp27.p27-bar-on .whatsapp-btn, .pdp27.p27-bar-on .back-to-top-btn { bottom: 86px !important; transition: bottom .2s ease; }
	.pdp27 .p27-acc > summary { font-size: 16px; }
	.pdp27 .tabs-sec { padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.pdp27.p27-bar-on .whatsapp-btn, .pdp27.p27-bar-on .back-to-top-btn { transition: none; }
}

/* The chosen sticker colour, shown next to the swatches while the big picture is off screen */
.p27-mini { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); inset-inline-end: 10px; z-index: 80; width: 132px; padding: 4px 4px 6px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(15, 15, 16, .22), 0 0 0 1px rgba(15, 15, 16, .08); cursor: pointer; text-align: center; animation: p27-mini-in .18s ease-out; }
.p27-mini[hidden] { display: none; }
.p27-mini canvas { display: block; width: 124px; height: 124px; border-radius: 12px; }
.p27-mini__t { display: block; padding-top: 5px; line-height: 1.25; }
.p27-mini__t b { display: block; font-size: 13.5px; font-weight: 800; color: #0F0F10; }
.p27-mini__t i { display: block; font-style: normal; font-size: 11.5px; color: #256E8E; font-weight: 600; }
@keyframes p27-mini-in { from { opacity: 0; transform: translateY(-8px) scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .p27-mini { animation: none; } }
body:has(.mc-drawer.is-active) .p27-mini { display: none; }
.pdp27 .sd-color-picker-group label .p27-colname { font-weight: 800; color: #0F0F10; }

/* The chosen size drawn to scale, under the size options */
/* the size drawn to scale: one row (small drawing + question + size) that opens to the full drawing (3.12.2026) */
.p27-scale { position: relative; margin-top: 12px; display: flex; align-items: center; gap: 12px; min-height: 58px; padding-block: 7px; padding-inline: 12px 40px; border: 1px solid #E5E7EB; border-radius: 12px; background: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.p27-scale[hidden] { display: none; }
.p27-scale:focus-visible { outline: 2px solid #256E8E; outline-offset: 2px; }
.p27-scale__wall { position: relative; flex: 0 0 84px; width: 84px; border-radius: 8px; overflow: hidden; background: #EEF1F3; box-shadow: inset 0 -2px 0 rgba(15, 15, 16, .16), inset 0 0 0 1px rgba(15, 15, 16, .07); }
.p27-scale__art { position: absolute; display: block; }
.p27-scale__art.is-plain { background: rgba(37, 110, 142, .18); outline: 1.5px dashed #256E8E; outline-offset: -1px; }
.p27-scale__man { position: absolute; bottom: 3px; display: block; }
.p27-scale__man svg { display: block; width: 100%; height: 100%; fill: rgba(15, 15, 16, .30); }
.p27-scale__man i { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 2px; font-style: normal; font-size: 10.5px; font-weight: 600; line-height: 1; white-space: nowrap; color: rgba(15, 15, 16, .55); }
.p27-scale:not(.is-open) .p27-scale__man i { display: none; }
.p27-scale__wall.is-dark .p27-scale__man svg { fill: rgba(255, 255, 255, .42); }
.p27-scale__wall.is-dark .p27-scale__man i { color: rgba(255, 255, 255, .7); }
.p27-scale__cap { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 14px; line-height: 1.4; color: #0F0F10; }
.p27-scale__cap b { font-weight: 800; }
.p27-scale__q { display: block; font-weight: 700; color: #0F0F10; }
.p27-scale__sz { display: block; font-size: 13px; color: #4B5563; }
.p27-scale__note { display: none; font-size: 12.5px; color: #6B7280; }
.p27-scale__chev { position: absolute; top: 50%; inset-inline-end: 14px; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid #256E8E; border-bottom: 2px solid #256E8E; transform: rotate(45deg); /* points down; physical sides so RTL does not mirror it */ transition: transform .2s ease; }
.p27-scale.is-open { flex-wrap: wrap; align-items: flex-start; padding-block: 10px 12px; padding-inline: 12px; }
.p27-scale.is-open .p27-scale__cap { order: 1; padding-inline-end: 28px; }
.p27-scale.is-open .p27-scale__wall { order: 2; flex: 0 0 100%; width: 100%; max-width: 460px; border-radius: 12px; }
.p27-scale.is-open .p27-scale__q { display: none; }
.p27-scale.is-open .p27-scale__sz { font-size: 14px; color: #0F0F10; }
.p27-scale.is-open .p27-scale__note { display: block; }
.p27-scale.is-open .p27-scale__chev { top: 22px; transform: rotate(-135deg); margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .p27-scale__chev { transition: none; } }
