/* Shay Lamora – small additions on top of theme.json. Keep this file lean. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Skip link */
.sl-skip { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 1000; background: var(--wp--preset--color--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 8px; }
.sl-skip:focus { top: 1rem; color: #fff; }

/* ---------- Logo ---------- */
.sl-logo { position: relative; display: inline-block; line-height: 0; }
.sl-logo__img { width: 55px; height: 80px; }
.home .sl-logo__img { width: 70px; height: 102px; }
.sl-logo__anim { position: absolute; inset: 0; pointer-events: none; }
.sl-logo__anim svg { width: 100%; height: 100%; display: block; }
.sl-logo.is-animating .sl-logo__img { opacity: 0; }
.sl-logo__img { transition: opacity .3s ease; }

/* ---------- Header ---------- */
.sl-topbar { font-size: .875rem; }
.sl-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.sl-header .wp-block-search__inside-wrapper { border-radius: 999px; border: 1px solid #D9D1C2; background: var(--wp--preset--color--paper); padding: 0; overflow: hidden; }
.sl-header .wp-block-search__input { border: 0; background: transparent; padding: .75rem 1.1rem; font-size: .95rem; min-height: 44px; }
.sl-header .wp-block-search__button { margin: 0; border-radius: 0; min-width: 52px; padding: 0 1rem; }
.sl-header .wc-block-mini-cart__button { min-height: 44px; border-radius: 999px; background: var(--wp--preset--color--sand); padding: 0 .9rem; font-weight: 500; }
.sl-header .wp-block-woocommerce-customer-account a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

/* ---------- Book cards (product collection) ---------- */
.sl-books .wc-block-components-product-image,
.sl-books .wp-block-woocommerce-product-image { border-radius: 6px 12px 12px 6px; overflow: hidden; background: var(--wp--preset--color--white); box-shadow: 0 8px 20px rgba(30,43,71,.12); }
.sl-books .wc-block-components-product-image img,
.sl-books .wp-block-woocommerce-product-image img { aspect-ratio: 2 / 3; object-fit: contain; width: 100%; }
.sl-books .wp-block-post-title { font-family: var(--wp--preset--font-family--body); font-weight: 500; font-size: 1rem; line-height: 1.4; margin-top: .75rem; }
.sl-books .wc-block-components-product-button__button,
.sl-books .wp-block-button__link { font-size: .875rem; padding: .6rem 1rem; min-height: 40px; }
.sl-books .wc-block-components-product-price { font-size: 1.05rem; }

/* ---------- Category tiles ---------- */
.sl-cats .wp-block-categories-list,
.sl-cats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.sl-cats li a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 1rem .75rem; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 14px; font-weight: 500; transition: border-color .2s, transform .2s; }
.sl-cats li a:hover { border-color: var(--wp--preset--color--bronze); transform: translateY(-2px); }
@media (max-width: 900px) { .sl-cats .wp-block-categories-list, .sl-cats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Hero bookshelf illustration (pure CSS, no image request) ---------- */

/* ---------- Catalog filters ---------- */
.sl-filters { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 14px; }
@media (max-width: 900px) { .sl-catalog > .wp-block-column:first-child { flex-basis: 100% !important; } }

/* ---------- Single product ---------- */
.sl-gallery { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 18px; padding: clamp(1rem, 3vw, 2.5rem); }
.sl-product > .wp-block-columns .wp-block-woocommerce-product-price,
.sl-product > .wp-block-columns .wp-block-woocommerce-product-price .wc-block-components-product-price { font-size: 2rem; }
.sl-product .single_add_to_cart_button { min-height: 52px; flex: 1 1 220px; font-size: 1.05rem !important; }
.sl-product form.cart:not(.variations_form), .sl-product .woocommerce-variation-add-to-cart { display: flex; gap: .75rem; flex-wrap: wrap; align-items: stretch; }
.sl-product table.variations select { min-height: 44px; border-radius: 10px; border: 1px solid #D9D1C2; padding: 0 .75rem; font: inherit; }
.sl-note { background: var(--wp--preset--color--sand); border-radius: 14px; }
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { text-align: start; padding: .6rem 0; border-bottom: 1px solid #EEE8DC; font-weight: 400; }
.woocommerce-product-attributes th { color: var(--wp--preset--color--muted); width: 40%; }
.wc-block-components-product-stock-indicator--in-stock, .stock.in-stock { color: var(--wp--preset--color--success); font-weight: 500; }

/* ---------- Footer ---------- */
.sl-footer a { color: #E6E9F0; }
.sl-footer a:hover { color: var(--wp--preset--color--gold); }
.sl-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }

/* Inputs and touch targets */
input, select, textarea, button { font: inherit; }
:where(.wc-block-components-button, .wp-element-button) { min-height: 44px; }

/* ---------- Promo popup ---------- */
.sl-popup { border: 0; padding: 0; border-radius: 18px; width: min(var(--sl-popup-w, 520px), calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 24px 60px rgba(30,43,71,.35); background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); }
.sl-popup::backdrop { background: rgba(20,28,46,.55); }
.sl-popup[open] { animation: slPopIn .25s ease-out; }
@keyframes slPopIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .sl-popup[open] { animation: none; } }
.sl-popup__close { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--wp--preset--color--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sl-popup__close:focus-visible { outline: 2px solid var(--wp--preset--color--bronze); outline-offset: 2px; }
.sl-popup__body > * { margin: 0; }
.sl-popup__body .wp-block-cover { border-radius: 0; }

/* ---------- Classic checkout: customer details on the right, order summary on the left ---------- */
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; }
@media (min-width: 900px) {
	form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: 3rem; align-items: start; }
	form.woocommerce-checkout > * { grid-column: 1; }
	form.woocommerce-checkout > #customer_details { grid-column: 1; grid-row: 1 / span 3; }
	form.woocommerce-checkout > #order_review_heading { grid-column: 2; grid-row: 1; margin-top: 0; }
	form.woocommerce-checkout > #order_review { grid-column: 2; grid-row: 2; position: sticky; top: 1.5rem; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 1.5rem; }
}
[dir="rtl"] .woocommerce form .form-row-first { float: right; }
[dir="rtl"] .woocommerce form .form-row-last { float: left; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 44px; border: 1px solid #D9D1C2; border-radius: 10px; padding: .55rem .8rem; background: #fff; }

/* ---------- Classic menus ---------- */
.sl-menu, .sl-menu ul { list-style: none; margin: 0; padding: 0; }
.sl-nav { position: relative; }
.sl-nav__toggle { display: none; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); font-weight: 500; cursor: pointer; }
.sl-nav > .sl-menu { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; font-weight: 500; }
.sl-menu a { text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; color: var(--wp--preset--color--ink); }
.sl-footer .sl-menu a { color: #E6E9F0; min-height: 32px; }
.sl-footer .sl-menu a:hover { color: var(--wp--preset--color--gold); }
.sl-menu a:hover, .sl-menu .current-menu-item > a { color: var(--wp--preset--color--bronze); }
.sl-nav .menu-item-has-children { position: relative; }
.sl-nav .menu-item-has-children > a::after { content: ""; width: .45em; height: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-inline-start: .45em; margin-top: -.2em; }
.sl-nav .sub-menu { position: absolute; top: 100%; inset-inline-start: -1rem; z-index: 50; min-width: 220px; max-height: 70vh; overflow: auto; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(30,43,71,.15); padding: .5rem 1rem; display: none; columns: 2; column-gap: 1.5rem; width: max-content; max-width: min(560px, 90vw); }
.sl-nav .menu-item-has-children:hover > .sub-menu, .sl-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
.sl-nav .sub-menu a { font-weight: 400; min-height: 36px; break-inside: avoid; }
.sl-nav-simple .sl-menu { display: grid; gap: .5rem; }
.sl-menu-missing a { color: var(--wp--preset--color--bronze); text-decoration: underline; }
@media (max-width: 781px) {
	.sl-nav__toggle { display: inline-flex; }
	.sl-nav > .sl-menu { display: none; flex-direction: column; gap: 0; padding: .5rem 0; }
	.sl-nav.is-open > .sl-menu { display: flex; }
	.sl-nav > .sl-menu > li { border-bottom: 1px solid var(--wp--preset--color--line); }
	.sl-menu a { min-height: 48px; width: 100%; }
	.sl-nav .sub-menu { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); columns: auto; box-shadow: none; border: 0; padding: 0 0 .5rem; max-height: none; width: auto; max-width: none; }
	.sl-nav .sub-menu a { min-height: 44px; font-size: .95rem; color: var(--wp--preset--color--muted); }
	.sl-nav .menu-item-has-children > a::after { display: none; }
}

/* ===================== v1.4.0 polish ===================== */

/* ---------- Quantity: minus / number / plus ---------- */
.quantity { display: inline-flex; align-items: stretch; border: 1px solid #D9D1C2; border-radius: 999px; background: var(--wp--preset--color--white); overflow: hidden; vertical-align: middle; }
.quantity:focus-within { border-color: var(--wp--preset--color--ink); box-shadow: 0 0 0 3px rgba(30,43,71,.08); }
.quantity input.qty { width: 3rem; min-height: 44px; border: 0 !important; border-radius: 0; background: transparent; text-align: center; font-weight: 700; font-size: 1rem; color: var(--wp--preset--color--ink); padding: 0; -moz-appearance: textfield; appearance: textfield; box-shadow: none !important; }
.quantity input.qty::-webkit-outer-spin-button, .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity input.qty:focus { outline: none; }
.sl-qty__btn { flex: 0 0 auto; width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 0; margin: 0; background: transparent; color: var(--wp--preset--color--ink); cursor: pointer; transition: background-color .15s; -webkit-tap-highlight-color: transparent; }
.sl-qty__btn:hover { background: var(--wp--preset--color--sand); }
.sl-qty__btn:active { background: #E6DCC8; }
.sl-qty__btn:focus-visible { outline: 2px solid var(--wp--preset--color--bronze); outline-offset: -2px; }
.quantity:has(input[type="hidden"]) { border: 0; background: none; }
.quantity:has(input[type="hidden"]) .sl-qty__btn { display: none; }
.sl-product .quantity { min-height: 52px; }
.sl-product .quantity .sl-qty__btn { width: 48px; }

/* ---------- Header ---------- */
.sl-header > .alignwide + .alignwide { margin-top: .75rem !important; padding-top: .25rem !important; border-top: 1px solid var(--wp--preset--color--line); }
.sl-header .sl-nav > .sl-menu { padding-top: .25rem; }
.sl-header .wp-block-search { flex: 1 1 320px; max-width: 640px; }
@media (max-width: 781px) {
	.sl-header { padding-top: .75rem !important; padding-bottom: .5rem !important; }
	.sl-header > .alignwide:first-child { row-gap: .75rem; }
	.sl-header > .alignwide:first-child > .wp-block-search { order: 3; flex: 1 1 100%; max-width: none; }
	.sl-header .wp-block-site-title { font-size: 1.3rem !important; }
	.sl-header > .alignwide + .alignwide { margin-top: .5rem !important; border-top: 0; padding-top: 0 !important; }
	.sl-nav__toggle { width: 100%; justify-content: center; }
}

/* ---------- Book grids: two columns on phones ---------- */
@media (max-width: 600px) {
	.sl-books.wp-block-post-template.is-layout-grid,
	.sl-books .wc-block-product-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1.25rem .9rem; }
}
.sl-books .wp-block-post-title a { color: var(--wp--preset--color--ink); }
.sl-books .wp-block-post-title a:hover { color: var(--wp--preset--color--bronze); }
.wp-block-woocommerce-related-products { margin-top: var(--wp--preset--spacing--60); }
.wp-block-woocommerce-related-products .sl-books .wc-block-components-product-price { font-size: 1.05rem; }

/* ---------- Classic cart ---------- */
.woocommerce-cart .woocommerce { --sl-r: 14px; }
.woocommerce-cart table.shop_table.cart { border: 1px solid var(--wp--preset--color--line); border-radius: var(--sl-r); border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--wp--preset--color--white); }
.woocommerce-cart table.shop_table.cart th { background: var(--wp--preset--color--paper); font-size: .9rem; color: var(--wp--preset--color--muted); font-weight: 500; }
.woocommerce-cart table.shop_table.cart td { vertical-align: middle; padding: 1rem .75rem; }
.woocommerce-cart table.cart td.product-thumbnail img { width: 72px !important; height: auto; max-width: none; border-radius: 4px 8px 8px 4px; box-shadow: 0 4px 10px rgba(30,43,71,.12); }
.woocommerce-cart table.cart td.product-name { font-weight: 500; line-height: 1.45; }
.woocommerce-cart table.cart td.product-subtotal { font-weight: 700; }
.woocommerce-cart table.cart a.remove { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--wp--preset--color--muted) !important; font-size: 1.4rem; line-height: 1; transition: background .15s, color .15s; }
.woocommerce-cart table.cart a.remove:hover { background: #F7E4E1 !important; color: #A3261B !important; }
.woocommerce-cart table.cart td.actions { background: var(--wp--preset--color--paper); }
.woocommerce-cart table.cart td.actions .coupon { display: flex; gap: .5rem; align-items: center; }
.woocommerce-cart table.cart td.actions .coupon input#coupon_code { min-height: 44px; border: 1px solid #D9D1C2; border-radius: 999px; padding: 0 1rem; width: 200px; background: #fff; }
.sl-js .woocommerce-cart-form button[name="update_cart"] { display: none !important; }
.woocommerce-cart .cart-collaterals .cart_totals { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: var(--sl-r); padding: 1.25rem 1.5rem 1.5rem; }
.woocommerce-cart .cart-collaterals .cart_totals > h2 { font-size: 1.35rem; margin: 0 0 .75rem; }
.woocommerce-cart .cart_totals table.shop_table { border: 0; margin-bottom: 1rem; }
.woocommerce-cart .cart_totals table.shop_table th, .woocommerce-cart .cart_totals table.shop_table td { border-top: 1px solid #EEE8DC; padding: .85rem 0; background: none; }
.woocommerce-cart .cart_totals tr:first-child th, .woocommerce-cart .cart_totals tr:first-child td { border-top: 0; }
.woocommerce-cart .cart_totals .order-total .amount { font-size: 1.35rem; }
.woocommerce-cart .wc-proceed-to-checkout { padding: 0; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { box-sizing: border-box; display: flex; align-items: center; justify-content: center; margin: 0; min-height: 54px; padding: .5rem 1.5rem; font-size: 1.1rem; line-height: 1.2; border-radius: 999px; }
.woocommerce-cart .cart_totals select { min-height: 44px; border: 1px solid #D9D1C2; border-radius: 10px; padding: 0 .75rem; width: 100%; background: #fff; }
.woocommerce-cart .blockUI.blockOverlay { background: rgba(250,248,244,.7) !important; border-radius: var(--sl-r); }
@media (max-width: 768px) {
	.woocommerce-cart table.shop_table_responsive tr.cart_item { display: grid; grid-template-columns: 80px 1fr auto; grid-template-areas: "thumb name remove" "thumb price price" "thumb qty sub"; column-gap: .9rem; row-gap: .4rem; padding: 1rem; border-bottom: 1px solid var(--wp--preset--color--line); }
	.woocommerce-cart table.shop_table_responsive tr.cart_item td { display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: start !important; }
	.woocommerce-cart table.shop_table_responsive tr.cart_item td::before { display: none !important; }
	.woocommerce-cart table.cart tr.cart_item td.product-thumbnail { display: block !important; grid-area: thumb; }
	.woocommerce-cart table.cart tr.cart_item td.product-thumbnail img { width: 72px !important; }
	.woocommerce-cart tr.cart_item td.product-name { grid-area: name; }
	.woocommerce-cart tr.cart_item td.product-remove { grid-area: remove; }
	.woocommerce-cart tr.cart_item td.product-price { grid-area: price; color: var(--wp--preset--color--muted); font-size: .9rem; }
	.woocommerce-cart tr.cart_item td.product-quantity { grid-area: qty; }
	.woocommerce-cart tr.cart_item td.product-subtotal { grid-area: sub; align-self: center; }
	.woocommerce-cart table.cart td.actions { padding: 1rem !important; }
	.woocommerce-cart table.cart td.actions .coupon { flex-wrap: nowrap; }
	.woocommerce-cart table.cart td.actions .coupon input#coupon_code { flex: 1 1 auto; width: auto; }
	.woocommerce-cart table.cart td.actions .coupon .button { flex: 0 0 auto; width: auto !important; }
}

/* ---------- Mini-cart drawer ---------- */
.wc-block-components-quantity-selector { border-radius: 999px !important; overflow: hidden; }
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { min-width: 36px; opacity: 1 !important; color: var(--wp--preset--color--ink); }
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled { opacity: .35 !important; }

/* ---------- Footer ---------- */
@media (max-width: 781px) {
	.sl-footer .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
	.sl-footer .wp-block-columns > .wp-block-column:first-child, .sl-footer .wp-block-columns > .wp-block-column:last-child { grid-column: 1 / -1; }
}
.sl-header > .alignwide + .alignwide > *, .sl-header > .alignwide + .alignwide p { margin-block: 0 !important; }
.sl-header > .alignwide + .alignwide p:empty { display: none; }
.woocommerce-cart .cart-collaterals .cart_totals { box-sizing: border-box; }
.woocommerce-cart table.shop_table.cart th { white-space: nowrap; }
.sl-footer .sl-nav-simple .sl-menu { gap: .5rem; font-size: var(--wp--preset--font-size--small); }
.sl-footer .sl-menu a { min-height: 0; }
@media (max-width: 781px) { .sl-footer .wp-block-columns > .wp-block-column { margin: 0 !important; } }
@media (max-width: 781px) {
	.sl-header > .alignwide:first-child { flex-wrap: wrap !important; column-gap: .5rem; }
	.sl-header > .alignwide:first-child > .wp-block-group:first-child { flex: 1 1 0; min-width: 0; gap: .6rem; }
	.sl-header .sl-logo__img, .home .sl-header .sl-logo__img { width: 48px; height: 70px; }
	.sl-header .wp-block-site-title { font-size: 1.15rem !important; }
	.sl-header > .alignwide:first-child > .wp-block-group:first-child p.has-muted-color { display: none; }
	.sl-header .wc-block-mini-cart__amount { display: none !important; }
	.sl-header .wc-block-mini-cart__button { padding: 0 .75rem; }
	.woocommerce-cart table.cart td.actions .coupon input#coupon_code { min-width: 0; width: 0 !important; flex: 1 1 auto; float: none; }
	.woocommerce-cart table.cart td.actions .coupon .button { float: none; }
}

/* ---------- Catalog sorting ---------- */
.woocommerce-ordering select, .wc-block-catalog-sorting select, select.orderby { min-height: 42px; border: 1px solid #D9D1C2; border-radius: 999px; padding: 0 1rem 0 2.25rem; background-color: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); font-size: .95rem; cursor: pointer; }

/* ===================== v1.4.1 ===================== */

/* ---------- Book cards: equal height, price + button always on the bottom line ---------- */
.sl-books .wc-block-product, .sl-books li.wp-block-post { display: flex; flex-direction: column; height: 100%; }
.sl-books .wc-block-product > .wp-block-group:last-child,
.sl-books li.wp-block-post > .wp-block-group:last-child { margin-top: auto !important; padding-top: .6rem; flex-wrap: nowrap !important; align-items: center; justify-content: space-between; }
.sl-books .wp-block-post-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sl-books .wc-block-components-product-price { white-space: nowrap; margin: 0 !important; }
.sl-books .wp-block-woocommerce-product-button { margin: 0 !important; flex: 0 0 auto; }
.sl-books .wp-block-woocommerce-product-button .wc-block-components-product-button__button { margin: 0; white-space: nowrap; }
@media (max-width: 600px) {
	.sl-books .wc-block-product > .wp-block-group:last-child,
	.sl-books li.wp-block-post > .wp-block-group:last-child { flex-wrap: wrap !important; }
	.sl-books .wp-block-woocommerce-product-button, .sl-books .wp-block-woocommerce-product-button .wc-block-components-product-button__button { width: 100%; }
}

/* ---------- Cart: totals waiting for the server ---------- */
.cart_totals.sl-pending .shipping, .cart_totals.sl-pending .woocommerce-shipping-totals { opacity: .5; transition: opacity .2s; }

/* ---------- Single product: AJAX add to cart ---------- */
.single_add_to_cart_button.sl-adding { opacity: .85; cursor: progress; }
.single_add_to_cart_button.sl-added { background: var(--wp--preset--color--success) !important; }
.sl-spin { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; vertical-align: -.15em; animation: slSpin .7s linear infinite; }
@keyframes slSpin { to { transform: rotate(360deg); } }
.sl-added-note { margin: .75rem 0 0; padding: .7rem 1rem; border-radius: 12px; background: #E9F3EC; color: var(--wp--preset--color--success); font-weight: 500; }
.sl-added-note a { color: inherit; text-decoration: underline; margin-inline-start: .35rem; }

/* ---------- Shop: larger cover on hover ---------- */
.sl-zoom { position: fixed; z-index: 9990; pointer-events: none; background: var(--wp--preset--color--white); border-radius: 14px; box-shadow: 0 24px 60px rgba(30,43,71,.28); padding: 14px; opacity: 0; transform: scale(.96); transition: opacity .18s ease, transform .18s ease; box-sizing: border-box; }
.sl-zoom.is-open { opacity: 1; transform: none; }
.sl-zoom img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (prefers-reduced-motion: reduce) { .sl-zoom { transition: none; } }
form.cart a.added_to_cart { display: none !important; }
.sl-filters__toggle { display: none; }
@media (max-width: 781px) {
	.sl-catalog > .sl-filters { padding: 0 !important; border: 0; background: none; }
	.sl-filters__toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem; border: 1px solid #D9D1C2; border-radius: 999px; background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); font-weight: 500; cursor: pointer; }
	.sl-catalog > .sl-filters > :not(.sl-filters__toggle) { display: none; }
	.sl-catalog > .sl-filters.is-open > :not(.sl-filters__toggle) { display: block; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 1rem 1.25rem; margin-top: .75rem; }
}

/* ---------- Infinite scroll ---------- */
.sl-pag-hidden { display: none !important; }
.sl-more { display: flex; justify-content: center; align-items: center; gap: .6rem; min-height: 64px; margin: 1.5rem 0 0; color: var(--wp--preset--color--muted); }
.sl-more.is-done { font-size: .9rem; }
.sl-more__btn { background: var(--wp--preset--color--white) !important; color: var(--wp--preset--color--ink) !important; border: 1px solid #D9D1C2 !important; }
.sl-books .add_to_cart_button.sl-adding { opacity: .75; cursor: progress; }

/* ---------- Main menu (v1.4.1) ---------- */
.sl-sub-toggle { display: none; }
@media (min-width: 782px) {
	.sl-header > .alignwide + .alignwide { padding-top: 0 !important; margin-top: .9rem !important; }
	.sl-nav > .sl-menu { gap: 0 .25rem; align-items: stretch; }
	.sl-nav > .sl-menu > li { position: static; display: flex; }
	.sl-nav { position: relative; }
	.sl-nav > .sl-menu > li > a { position: relative; min-height: 52px; padding: 0 1rem; font-size: 1rem; font-weight: 500; color: var(--wp--preset--color--ink); }
	.sl-nav > .sl-menu > li > a::before { content: ""; position: absolute; inset-inline: 1rem; bottom: 8px; height: 2px; border-radius: 2px; background: var(--wp--preset--color--bronze); transform: scaleX(0); transition: transform .2s ease; }
	.sl-nav > .sl-menu > li > a:hover::before, .sl-nav > .sl-menu > li.current-menu-item > a::before, .sl-nav > .sl-menu > li.current-menu-ancestor > a::before { transform: scaleX(1); }
	.sl-nav > .sl-menu > li > a:hover, .sl-nav > .sl-menu > li.current-menu-item > a { color: var(--wp--preset--color--ink); }
	/* "כל הספרים": a dark pill that opens the categories panel */
	.sl-nav > .sl-menu > li.menu-item-has-children:first-child { margin-inline-end: .75rem; align-items: center; }
	.sl-nav > .sl-menu > li.menu-item-has-children:first-child > a { min-height: 42px; padding: 0 1.1rem; border-radius: 999px; background: var(--wp--preset--color--ink); color: #fff; font-weight: 700; }
	.sl-nav > .sl-menu > li.menu-item-has-children:first-child > a::before { content: ""; position: static; display: inline-block; width: 16px; height: 12px; margin-inline-end: .55rem; transform: none; border-radius: 0; background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat; }
	.sl-nav > .sl-menu > li.menu-item-has-children:first-child > a:hover { background: #2C3D63; color: #fff; }
	.sl-nav .menu-item-has-children > a::after { transition: transform .2s; }
	.sl-nav .menu-item-has-children:hover > a::after, .sl-nav .menu-item-has-children:focus-within > a::after { transform: rotate(-135deg); margin-top: .25em; }
	/* the panel */
	.sl-nav .sub-menu { display: block; visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
		top: calc(100% + 1px); inset-inline-start: 0; inset-inline-end: auto; width: 100%; max-width: none; max-height: none; overflow: visible;
		columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .15rem 1.5rem; padding: 1.25rem 1.5rem 1.5rem;
		border-radius: 0 0 16px 16px; border-top: 3px solid var(--wp--preset--color--bronze); box-shadow: 0 24px 48px rgba(30,43,71,.16); }
	.sl-nav .sub-menu::before { content: ""; position: absolute; inset-inline: 0; top: -14px; height: 14px; } /* hover bridge */
	.sl-nav .menu-item-has-children:hover > .sub-menu, .sl-nav .menu-item-has-children:focus-within > .sub-menu { display: grid; visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.sl-nav .menu-item-has-children > .sub-menu { display: grid; }
	.sl-nav .sub-menu li { break-inside: avoid; }
	.sl-nav .sub-menu a { display: flex; align-items: center; gap: .6rem; min-height: 38px; padding: .3rem .75rem; border-radius: 10px; font-size: .95rem; line-height: 1.35; color: var(--wp--preset--color--ink); transition: background .15s, color .15s; }
	.sl-nav .sub-menu a::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--wp--preset--color--gold); }
	.sl-nav .sub-menu a:hover { background: var(--wp--preset--color--sand); color: var(--wp--preset--color--bronze); }
}
@media (min-width: 782px) and (max-width: 1100px) { .sl-nav .sub-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .sl-nav .sub-menu, .sl-nav > .sl-menu > li > a::before { transition: none !important; } }

@media (max-width: 781px) {
	.sl-nav.is-open > .sl-menu { margin-top: .5rem; padding: .25rem 1rem; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 16px; box-shadow: 0 16px 36px rgba(30,43,71,.12); }
	.sl-nav > .sl-menu > li { display: flex; flex-wrap: wrap; align-items: center; }
	.sl-nav > .sl-menu > li:last-child { border-bottom: 0; }
	.sl-nav > .sl-menu > li > a { flex: 1 1 auto; width: auto; min-height: 52px; font-size: 1.05rem; font-weight: 500; }
	.sl-sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--wp--preset--color--sand); color: var(--wp--preset--color--ink); cursor: pointer; }
	.sl-sub-toggle svg { transition: transform .2s; }
	.sl-nav li.is-open > .sl-sub-toggle svg { transform: rotate(180deg); }
	.sl-nav .sub-menu { display: none; flex: 1 1 100%; grid-template-columns: 1fr; padding: 0 0 .75rem; }
	.sl-nav li.is-open > .sub-menu { display: grid; }
	.sl-nav .sub-menu li + li { border-top: 1px solid #F0EBE1; }
	.sl-nav .sub-menu a { min-height: 46px; padding-inline-start: .75rem; font-size: .98rem; color: var(--wp--preset--color--ink); }
}

/* ===================== v1.4.2 ===================== */
/* Variation choices (e.g. cover colour): readable, full width */
.sl-product table.variations { width: 100%; border: 0; margin: 0 0 1rem; }
.sl-product table.variations tr { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .75rem; }
.sl-product table.variations th, .sl-product table.variations td { display: block; padding: 0; border: 0; text-align: start; }
.sl-product table.variations th label { font-weight: 700; font-size: .95rem; }
.sl-product table.variations td.value { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.sl-product table.variations select { flex: 1 1 240px; max-width: 360px; height: auto; min-height: 48px; padding: 0 1rem; line-height: 1.4; font-size: 1rem; color: var(--wp--preset--color--ink); background-color: var(--wp--preset--color--white); border: 1px solid #D9D1C2; border-radius: 12px; cursor: pointer; }
.sl-product table.variations select:focus { outline: none; border-color: var(--wp--preset--color--ink); box-shadow: 0 0 0 3px rgba(30,43,71,.08); }
.sl-product .reset_variations { font-size: .9rem; color: var(--wp--preset--color--muted); text-decoration: underline; }
.sl-product .woocommerce-variation-price { margin: .25rem 0 1rem; font-size: 1.4rem; font-weight: 700; }

/* Checkout */
.woocommerce-checkout #order_review .shipping select, .woocommerce-checkout #order_review .woocommerce-shipping-methods select { width: 100%; min-height: 44px; border: 1px solid #D9D1C2; border-radius: 10px; padding: 0 .75rem; background: #fff; }
.woocommerce-checkout #order_review table.shop_table { border-radius: 12px; }
.woocommerce-checkout #place_order { box-sizing: border-box; width: 100%; min-height: 54px; font-size: 1.1rem; border-radius: 999px; float: none; }
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info { padding-block: .8rem; }

/* Single product picture: a calm square frame, the book centred in it, any proportions */
.sl-gallery { align-self: flex-start; box-sizing: border-box; padding: clamp(1rem, 2.5vw, 2rem) !important; }
@media (min-width: 782px) { .sl-gallery { position: sticky; top: 1.5rem; } }
.sl-gallery .wp-block-woocommerce-product-image-gallery, .sl-gallery .woocommerce-product-gallery { margin: 0 !important; width: 100% !important; float: none !important; }
.sl-gallery .woocommerce-product-gallery__image > a { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; }
.sl-gallery .woocommerce-product-gallery__image img { width: auto !important; height: auto !important; max-width: 100%; max-height: 100%; object-fit: contain; margin: 0 auto; }
.sl-gallery .woocommerce-product-gallery__trigger { top: 0 !important; inset-inline-end: 0 !important; left: auto; width: 40px; height: 40px; border-radius: 50%; background: var(--wp--preset--color--paper); display: flex !important; align-items: center; justify-content: center; z-index: 5; }
.sl-gallery .flex-control-thumbs { display: flex; gap: .5rem; margin: 1rem 0 0 !important; padding: 0; }
.sl-gallery .flex-control-thumbs li { width: 64px !important; float: none !important; }
.sl-gallery .flex-control-thumbs img { aspect-ratio: 1; object-fit: contain; border: 1px solid var(--wp--preset--color--line); border-radius: 8px; background: #fff; opacity: .6; }
.sl-gallery .flex-control-thumbs img.flex-active, .sl-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--wp--preset--color--bronze); }

/* ===================== v1.4.3 ===================== */
/* Small dropdowns (e.g. "קטלוג להדפסה"): only "כל הספרים" opens the wide panel */
@media (min-width: 782px) {
	.sl-nav > .sl-menu > li.menu-item-has-children:not(:first-child) { position: relative; }
	.sl-nav > .sl-menu > li.menu-item-has-children:not(:first-child) > .sub-menu { width: max-content; min-width: 220px; grid-template-columns: 1fr; padding: .6rem; border-radius: 0 0 14px 14px; inset-inline-start: 0; }
}

/* Sticky compact header while scrolling */
.wp-site-blocks > .sl-sticky-wrap { position: relative; z-index: 900; }
.sl-stuck .sl-header { position: fixed; top: var(--sl-admin-top, 0px); left: 0; right: 0; z-index: 900; animation: sl-head-in .35s cubic-bezier(.2,.7,.2,1); }
@keyframes sl-head-in { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sl-stuck .sl-header { animation: none; } }
.sl-stuck .sl-header { box-shadow: 0 6px 20px rgba(30,43,71,.10); padding-top: .5rem !important; padding-bottom: .5rem !important; }
.sl-stuck .sl-header .sl-logo__img { width: 36px; height: 52px; }
.sl-stuck .sl-header .wp-block-site-title { font-size: 1.25rem !important; }
.sl-stuck .sl-header > .alignwide:first-child > .wp-block-group:first-child p.has-muted-color { display: none; }
.sl-stuck .sl-header .wp-block-search__input { min-height: 40px; padding-block: .5rem; }
.sl-stuck .sl-header > .alignwide + .alignwide { display: none; }
@media (max-width: 781px) {
	.sl-stuck .sl-header .wp-block-site-title { font-size: 1.05rem !important; }
	.sl-stuck .sl-header > .alignwide:first-child { row-gap: .5rem; }
}

/* Contact form (Contact Form 7) */
.wpcf7 form { display: grid; gap: .25rem; }
.wpcf7 form p { margin: 0 0 .6rem; }
.wpcf7 label { display: block; font-weight: 500; font-size: .95rem; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 input[type="number"], .wpcf7 select, .wpcf7 textarea { box-sizing: border-box; width: 100%; min-height: 46px; padding: .6rem .9rem; border: 1px solid #D9D1C2; border-radius: 10px; background: #fff; color: var(--wp--preset--color--ink); font: inherit; }
.wpcf7 textarea { min-height: 140px; height: 160px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: none; border-color: var(--wp--preset--color--ink); box-shadow: 0 0 0 3px rgba(30,43,71,.08); }
.wpcf7 input[type="submit"], .wpcf7 .wpcf7-submit { box-sizing: border-box; min-height: 48px; padding: .7rem 2rem; border: 0; border-radius: 999px; background: var(--wp--preset--color--ink); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; }
.wpcf7 input[type="submit"]:hover { background: #2C3D63; }
.wpcf7 .wpcf7-spinner { margin-inline-start: .75rem; }
.wpcf7 .wpcf7-not-valid-tip { font-size: .85rem; margin-top: .25rem; }
.wpcf7 form .wpcf7-response-output { margin: .75rem 0 0; padding: .75rem 1rem; border-radius: 10px; }

/* Small dropdowns (catalogue): a neat card, same language as the books panel */
@media (min-width: 782px) {
	.sl-nav > .sl-menu > li.menu-item-has-children:not(:first-child) > .sub-menu {
		inset-inline-start: 50%; transform: translate(50%, 6px); width: 260px; min-width: 0; padding: .5rem; gap: .25rem;
		border-radius: 14px; border-top: 0; box-shadow: 0 18px 40px rgba(30,43,71,.16), 0 0 0 1px var(--wp--preset--color--line);
	}
	.sl-nav > .sl-menu > li.menu-item-has-children:not(:first-child):hover > .sub-menu,
	.sl-nav > .sl-menu > li.menu-item-has-children:not(:first-child):focus-within > .sub-menu { transform: translate(50%, 0); }
	.sl-nav > .sl-menu > li.menu-item-has-children:not(:first-child) > .sub-menu::after { content: ""; position: absolute; top: -6px; inset-inline-start: calc(50% - 6px); width: 12px; height: 12px; background: #fff; transform: rotate(45deg); box-shadow: -1px -1px 0 var(--wp--preset--color--line); }
	.sl-nav > .sl-menu > li.menu-item-has-children:not(:first-child) > .sub-menu a { min-height: 48px; padding: .5rem .75rem; font-weight: 500; }
}
/* PDF links get a document icon instead of the dot (menu, desktop and phone) */
.sl-nav .sub-menu a[href$=".pdf"]::before {
	flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px;
	background: var(--wp--preset--color--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A4E14' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.sl-nav .sub-menu a[href$=".pdf"]::after { content: "PDF"; margin-inline-start: auto; font-size: .7rem; font-weight: 700; letter-spacing: .04em; color: var(--wp--preset--color--muted); border: 1px solid var(--wp--preset--color--line); border-radius: 6px; padding: .1rem .35rem; }
.sl-nav .sub-menu a[href$=".pdf"]::before { content: ""; display: block; }
@media (max-width: 781px) { .sl-nav .sub-menu a { box-sizing: border-box; } .sl-nav .sub-menu a[href$=".pdf"] { display: flex; align-items: center; gap: .6rem; padding-inline-end: .25rem; } }

/* ==========================================================================
   v1.4.6 Home page: promo slider, perks, category tiles, shelves, feature
   ========================================================================== */
body.home main#main > * { margin-block-start: 0; }

.sl-hero { position: relative; margin-top: var(--wp--preset--spacing--40) !important; }
.sl-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 28px; overscroll-behavior-x: contain; }
.sl-slides::-webkit-scrollbar { display: none; }
.sl-slides > .sl-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; margin: 0 !important; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 2rem; min-height: 460px; padding: 3.5rem 4.5rem 4.5rem; box-sizing: border-box; color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.sl-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px); background-size: 22px 22px; mask-image: linear-gradient(to left, transparent 30%, #000); -webkit-mask-image: linear-gradient(to left, transparent 30%, #000); }
.sl-slide--ink { background: radial-gradient(circle at 22% 55%, rgba(217,184,119,.38), transparent 45%), linear-gradient(135deg, #24345A, #1E2B47 60%, #17213A); }
.sl-slide--wine { background: radial-gradient(circle at 22% 55%, rgba(241,214,170,.35), transparent 45%), linear-gradient(135deg, #6E3527, #5B2A20 60%, #45201A); }
.sl-slide--green { background: radial-gradient(circle at 22% 55%, rgba(226,214,160,.33), transparent 45%), linear-gradient(135deg, #3A5C49, #2E4A3A 60%, #223829); }
.sl-slide__text > * { margin: 0; }
.sl-slide__text > * + * { margin-top: 1.1rem; }
.sl-slide__eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--wp--preset--color--gold); font-weight: 700; font-size: .95rem; letter-spacing: .04em; }
.sl-slide__eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.sl-feature .sl-slide__eyebrow { color: var(--wp--preset--color--bronze); }
.sl-slide .sl-slide__title { color: #fff; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.15; }
.sl-slide__lead { color: rgba(255,255,255,.84); font-size: 1.15rem; line-height: 1.7; max-width: 34rem; }
.sl-slide .wp-block-buttons { margin-top: 1.75rem !important; gap: .75rem; }
.sl-slide .wp-block-button__link { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink); border: 2px solid var(--wp--preset--color--gold); font-weight: 700; }
.sl-slide .wp-block-button__link:hover { background: #E8CE98; border-color: #E8CE98; }
.sl-slide .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.sl-slide .is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.sl-slide__pic { margin: 0 !important; display: flex; align-items: center; justify-content: center; height: 100%; }
.sl-slide__pic img { width: auto !important; max-width: 100%; height: auto; max-height: 330px; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }
.sl-js .sl-hero.is-ready .sl-slide__text > *, .sl-js .sl-hero.is-ready .sl-slide__pic img { transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.sl-js .sl-hero.is-ready .sl-slide:not(.is-active) .sl-slide__text > * { opacity: 0; transform: translateY(14px); }
.sl-js .sl-hero.is-ready .sl-slide:not(.is-active) .sl-slide__pic img { opacity: 0; transform: translateY(24px) scale(.96); }
.sl-hero .sl-slide.is-active .sl-slide__text > :nth-child(2) { transition-delay: .06s; }
.sl-hero .sl-slide.is-active .sl-slide__text > :nth-child(3) { transition-delay: .12s; }
.sl-hero .sl-slide.is-active .sl-slide__text > :nth-child(4) { transition-delay: .18s; }
.sl-hero .sl-slide.is-active .sl-slide__pic img { transition-delay: .1s; }

.sl-hero__nav { position: absolute; bottom: 1.35rem; right: 4.5rem; display: flex; align-items: center; gap: .9rem; z-index: 2; }
.sl-hero__dots { display: flex; gap: .45rem; }
.sl-hero__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 9px; background: rgba(255,255,255,.4); cursor: pointer; transition: width .35s, background .35s; }
.sl-hero__dot[aria-current="true"] { width: 30px; background: var(--wp--preset--color--gold); }
.sl-hero__arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; display: inline-grid; place-items: center; cursor: pointer; padding: 0; transition: background .2s, border-color .2s; }
.sl-hero__arrow:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.sl-hero__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sl-hero__dot:focus-visible, .sl-hero__arrow:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 3px; }

/* Perks strip */
.sl-perks { list-style: none; margin: 1rem auto 0 !important; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 18px; }
.sl-perks li { display: flex; align-items: center; justify-content: center; gap: .85rem; padding: 1.1rem 1rem; }
.sl-perks li + li { border-right: 1px solid var(--wp--preset--color--line); }
.sl-perks svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--wp--preset--color--bronze); stroke-width: 1.6; stroke-linejoin: round; }
.sl-perks span { display: flex; flex-direction: column; font-size: .9rem; color: var(--wp--preset--color--muted); line-height: 1.35; }
.sl-perks strong { color: var(--wp--preset--color--ink); font-size: 1rem; }

/* Section heads */
.sl-home-sec { padding-block: var(--wp--preset--spacing--60); }
.sl-home-band { padding-block: var(--wp--preset--spacing--60); border-block: 1px solid var(--wp--preset--color--line); }
.sl-shelf-head { margin-bottom: 1.75rem !important; gap: 1rem; }
.sl-shelf-head h2 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.sl-see-all { margin: 0; white-space: nowrap; }
.sl-see-all a { color: var(--wp--preset--color--bronze); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.sl-see-all a::after { content: "←"; transition: transform .2s; }
.sl-see-all a:hover::after { transform: translateX(-4px); }

/* Category tiles */
.sl-cat-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.sl-cat-tile a { height: 100%; display: flex; flex-direction: column; text-decoration: none; color: var(--wp--preset--color--ink); background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 20px; overflow: hidden; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.sl-cat-tile__pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 1.1rem; background: radial-gradient(circle at 50% 62%, #FFFDF8 0, #F6F0E3 45%, var(--wp--preset--color--sand) 100%); }
.sl-cat-tile__img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(30,43,71,.18)); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.sl-cat-tile__name { padding: .95rem 1.1rem 0; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.sl-cat-tile__count { padding: .2rem 1.1rem 1rem; font-size: .88rem; color: var(--wp--preset--color--muted); display: flex; justify-content: space-between; align-items: center; }
.sl-cat-tile__count::after { content: "←"; color: var(--wp--preset--color--bronze); font-weight: 700; opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; }
.sl-cat-tile a:hover, .sl-cat-tile a:focus-visible { transform: translateY(-5px); border-color: var(--wp--preset--color--gold); box-shadow: 0 18px 36px -18px rgba(30,43,71,.35); }
.sl-cat-tile a:hover .sl-cat-tile__img { transform: scale(1.06) rotate(-1deg); }
.sl-cat-tile a:hover .sl-cat-tile__count::after { opacity: 1; transform: none; }
.sl-cat-tile.is-noimg .sl-cat-tile__pic::before { content: "📖"; font-size: 3rem; }
.sl-cat-more { margin-top: 1.5rem; display: flex; align-items: center; gap: .75rem; }
.sl-cat-more__label { flex: none; font-weight: 700; color: var(--wp--preset--color--muted); font-size: .95rem; }
.sl-cat-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sl-cat-chips a { display: inline-block; padding: .42rem .95rem; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); font-size: .92rem; text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s, background .2s; }
.sl-cat-chips a:hover { border-color: var(--wp--preset--color--bronze); color: var(--wp--preset--color--bronze); background: #FFFBF3; }

/* Feature band */
.sl-feature { margin-block: var(--wp--preset--spacing--60) !important; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 2rem; padding: 3rem 4.5rem; border-radius: 28px; background: radial-gradient(circle at 25% 50%, #FFFDF8, transparent 50%), linear-gradient(135deg, #F6EFE0, var(--wp--preset--color--sand)); border: 1px solid var(--wp--preset--color--line); }
.sl-feature__text > * { margin: 0; }
.sl-feature__text > * + * { margin-top: 1rem; }
.sl-feature h2 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.2; }
.sl-feature p:not(.sl-slide__eyebrow) { color: var(--wp--preset--color--muted); font-size: 1.1rem; line-height: 1.7; max-width: 32rem; }
.sl-feature .wp-block-buttons { margin-top: 1.5rem !important; }
.sl-feature__pic { margin: 0 !important; display: flex; justify-content: center; }
.sl-feature__pic img { width: auto !important; max-width: 100%; height: auto; max-height: 300px; object-fit: contain; filter: drop-shadow(0 20px 24px rgba(30,43,71,.2)); }

@media (max-width: 1100px) {
	.sl-slides > .sl-slide { padding: 3rem 3rem 4.25rem; }
	.sl-hero__nav { right: 3rem; }
	.sl-cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sl-feature { padding: 2.5rem 3rem; }
}
@media (max-width: 782px) {
	.sl-hero { margin-top: var(--wp--preset--spacing--30) !important; }
	.sl-slides { border-radius: 20px; }
	.sl-slides > .sl-slide { grid-template-columns: 1fr; gap: 1rem; min-height: 0; padding: 1.5rem 1.4rem 4rem; align-content: start; }
	.sl-slide__pic { order: -1; height: auto; }
	.sl-slide__pic img { max-height: 150px; }
	.sl-slide .sl-slide__title { font-size: 1.85rem; }
	.sl-slide__lead { font-size: 1rem; line-height: 1.6; }
	.sl-slide .wp-block-buttons { margin-top: 1.25rem !important; }
	.sl-slide .wp-block-button { flex: 1 1 auto; }
	.sl-slide .wp-block-button__link { width: 100%; box-sizing: border-box; padding: .8rem 1rem; }
	.sl-hero__nav { right: 50%; transform: translateX(50%); bottom: 1rem; }
	.sl-hero__arrow { display: none; }
	.sl-perks { grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 14px; }
	.sl-perks li { flex-direction: column; text-align: center; gap: .4rem; padding: .85rem .4rem; }
	.sl-perks span { font-size: .78rem; }
	.sl-perks strong { font-size: .84rem; }
	.sl-perks svg { width: 24px; height: 24px; }
	.sl-cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
	.sl-cat-tile a { border-radius: 16px; }
	.sl-cat-tile__pic { padding: .7rem; }
	.sl-cat-tile__name { font-size: 1rem; padding: .7rem .8rem 0; }
	.sl-cat-tile__count { padding: .1rem .8rem .8rem; font-size: .8rem; }
	.sl-cat-more { flex-direction: column; align-items: stretch; gap: .5rem; }
	.sl-cat-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; margin-inline: calc(var(--wp--style--root--padding-right, 1rem) * -1); padding-inline: var(--wp--style--root--padding-right, 1rem); }
	.sl-cat-chips::-webkit-scrollbar { display: none; }
	.sl-feature { grid-template-columns: 1fr; padding: 1.75rem 1.4rem; border-radius: 20px; gap: 1rem; }
	.sl-feature__pic { order: -1; }
	.sl-feature__pic img { max-height: 170px; }
}
@media (prefers-reduced-motion: reduce) {
	.sl-slides { scroll-behavior: auto; }
	.sl-js .sl-hero.is-ready .sl-slide:not(.is-active) .sl-slide__text > *, .sl-js .sl-hero.is-ready .sl-slide:not(.is-active) .sl-slide__pic img { opacity: 1; transform: none; }
}
.sl-shelf-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: nowrap; }
.sl-home-band > * { max-width: var(--wp--style--global--wide-size, 1240px); margin-inline: auto; }
/* ב״ה in the top bar, as on the original site */
.sl-topbar { position: relative; }
.sl-topbar::before { content: "ב״ה"; position: absolute; right: max(1rem, calc((100% - var(--wp--style--global--wide-size, 1240px)) / 2)); top: 50%; transform: translateY(-50%); font-size: .8rem; opacity: .85; }
.sl-topbar p { padding-inline: 2.25rem; }
.sl-topbar a { color: inherit; font-weight: 700; text-decoration: none; }

/* Phones while scrolled: one slim row; search and menu open from icons */
.sl-mini-btn { display: none; }
@media (max-width: 781px) {
	.sl-stuck .sl-header { padding-top: .4rem !important; padding-bottom: .4rem !important; }
	.sl-stuck .sl-header > .alignwide:first-child { flex-wrap: wrap; row-gap: .4rem; }
	.sl-stuck .sl-header > .alignwide:first-child > .wp-block-group:first-child { flex: 1 1 0; min-width: 0; gap: .5rem; }
	.sl-stuck .sl-header .sl-logo__img { width: 26px; height: 38px; }
	.sl-stuck .sl-header .wp-block-site-title { font-size: .98rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
	.sl-stuck .sl-header > .alignwide:first-child > .wp-block-group:first-child > .wp-block-group { min-width: 0; }
	.sl-stuck .sl-header .wc-block-customer-account, .sl-stuck .sl-header .wp-block-woocommerce-customer-account { display: none; }
	.sl-stuck .sl-header > .alignwide:first-child > .wp-block-group:last-child { gap: .35rem; }
	.sl-stuck .sl-mini-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); cursor: pointer; }
	.sl-stuck .sl-mini-btn[aria-expanded="true"] { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: #fff; }
	.sl-mini-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
	.sl-stuck .sl-header .wc-block-mini-cart__button { padding: .4rem .6rem; }
	.sl-stuck:not(.sl-search-open) .sl-header > .alignwide:first-child > .wp-block-search { display: none; }
	.sl-stuck.sl-search-open .sl-header > .alignwide:first-child > .wp-block-search { display: block; animation: sl-drop .2s ease; }
	.sl-stuck.sl-menu-open .sl-header > .alignwide + .alignwide { display: block; padding-top: 0 !important; animation: sl-drop .2s ease; }
	.sl-stuck .sl-header .sl-nav__toggle { display: none; }
	.sl-stuck.sl-menu-open .sl-nav.is-open > .sl-menu { max-height: calc(100vh - 90px); overflow-y: auto; }
}
@keyframes sl-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* v1.4.7 Category tiles: same picture box and same text block in every tile */
.sl-cat-tiles { align-items: stretch; }
.sl-cat-tile__pic { aspect-ratio: 2 / 1; padding: 1rem 1.1rem; }
.sl-cat-tile__img { width: 100%; height: 100%; object-fit: contain; }
.sl-cat-tile__name { min-height: calc(2 * 1.3em); display: flex; align-items: flex-start; }
.sl-cat-tile__count { margin-top: auto; }
@media (max-width: 782px) {
	.sl-cat-tile__pic { aspect-ratio: 16 / 9; padding: .6rem; }
}

/* Contact form and checkout: e-mail and phone fields follow the page direction (right to left) */
.wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"],
.woocommerce form input[type="email"], .woocommerce form input[type="tel"] { direction: rtl; text-align: right; }
.wpcf7 input[type="email"]::placeholder, .wpcf7 input[type="tel"]::placeholder { text-align: right; }
.sl-cat-tile__pic { position: relative; overflow: hidden; }
.sl-cat-tile__img { position: absolute; inset: 1rem 1.1rem; width: calc(100% - 2.2rem); height: calc(100% - 2rem); }
@media (max-width: 782px) { .sl-cat-tile__img { inset: .6rem; width: calc(100% - 1.2rem); height: calc(100% - 1.2rem); } }

/* v1.4.8 Sample pages ("הצצה לספר") on the product page */
.sl-peek { margin: 1.5rem 0 !important; padding: 1.1rem 1.25rem; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; background: var(--wp--preset--color--white); }
.sl-peek__title { margin: 0 0 .8rem; font-size: 1.15rem; }
.sl-peek__list { list-style: none; margin: 0; padding: 0 0 .25rem; display: flex; gap: .75rem; overflow-x: auto; scrollbar-width: thin; }
.sl-peek__list li { flex: 0 0 auto; }
.sl-peek__img { display: block; width: 96px; height: 128px; border-radius: 8px; overflow: hidden; border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--paper); transition: transform .2s, box-shadow .2s, border-color .2s; cursor: zoom-in; }
.sl-peek__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sl-peek__img:hover, .sl-peek__img:focus-visible { transform: translateY(-3px); border-color: var(--wp--preset--color--gold); box-shadow: 0 10px 20px -10px rgba(30,43,71,.35); }
.sl-peek__pdf { display: inline-flex; align-items: center; gap: .6rem; margin-top: .75rem; padding: .55rem 1rem .55rem 1.1rem; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; color: var(--wp--preset--color--ink); font-weight: 700; text-decoration: none; }
.sl-peek__pdf span { display: inline-grid; place-items: center; min-width: 34px; height: 22px; border-radius: 4px; background: #B3261E; color: #fff; font-size: .7rem; letter-spacing: .04em; }
.sl-peek__pdf:hover { border-color: var(--wp--preset--color--bronze); color: var(--wp--preset--color--bronze); }
.sl-viewer { position: fixed; inset: 0; z-index: 10000; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; padding: 0; background: rgba(15,22,38,.92); display: none; align-items: center; justify-content: center; }
.sl-viewer[open] { display: flex; }
.sl-viewer img { max-width: min(92vw, 900px); max-height: 88vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.sl-viewer button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; font-size: 1.4rem; cursor: pointer; }
.sl-viewer button:hover { background: rgba(255,255,255,.22); }
.sl-viewer__close { top: 1rem; left: 1rem; }
.sl-viewer__prev { right: 1rem; top: 50%; transform: translateY(-50%); }
.sl-viewer__next { left: 1rem; top: 50%; transform: translateY(-50%); }
.sl-viewer__count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .9rem; }

/* v1.4.9 banners from the dashboard */
.sl-slide--brown { background: radial-gradient(circle at 22% 55%, rgba(241,214,170,.35), transparent 45%), linear-gradient(135deg, #74532B, #5E4220 60%, #47321A); }
.sl-slides > .sl-slide.sl-slide--noimg { grid-template-columns: minmax(0, 1fr); }
.sl-slide__pic img { height: auto !important; }

/* ===================== v1.6.7: book cards ===================== */
/* One card per book: a warm "display stand" for the cover, then category, name, price and an elegant add-to-cart. */
.sl-books .wc-block-product-template.is-layout-grid, .sl-books.wp-block-post-template.is-layout-grid { gap: 1.75rem 1.4rem; }
.sl-books .wc-block-product, .sl-books li.wp-block-post {
	position: relative; background: #fff; border: 1px solid rgba(30,43,71,.08); border-radius: 20px; padding: 0 0 1rem; overflow: hidden;
	box-shadow: 0 1px 2px rgba(30,43,71,.04), 0 6px 18px -12px rgba(30,43,71,.18);
	transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.sl-books .wc-block-product:hover, .sl-books li.wp-block-post:hover, .sl-books .wc-block-product:focus-within, .sl-books li.wp-block-post:focus-within {
	transform: translateY(-5px); border-color: rgba(217,184,119,.65);
	box-shadow: 0 2px 4px rgba(30,43,71,.05), 0 26px 46px -24px rgba(30,43,71,.45);
}
/* Cover stage */
.sl-books .wc-block-components-product-image, .sl-books .wp-block-woocommerce-product-image {
	position: relative; margin: 0 !important; border-radius: 0; box-shadow: none; overflow: visible;
	background: radial-gradient(120% 85% at 50% 12%, #FFFFFF 0%, #F7F2E8 55%, #EADFCB 100%);
	padding: 1.6rem 1.4rem 1.9rem;
}
.sl-books .wc-block-components-product-image::after, .sl-books .wp-block-woocommerce-product-image::after {
	content: ""; position: absolute; left: 18%; right: 18%; bottom: 1.05rem; height: 14px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(30,43,71,.28), transparent); filter: blur(2px); z-index: 0; transition: transform .35s, opacity .35s;
}
.sl-books .wc-block-components-product-image a, .sl-books .wp-block-woocommerce-product-image a { position: relative; z-index: 1; display: block; }
.sl-books .wc-block-components-product-image img, .sl-books .wp-block-woocommerce-product-image img {
	aspect-ratio: 4 / 5; object-fit: contain; width: 100%; height: auto; background: transparent !important;
	filter: drop-shadow(0 12px 14px rgba(30,43,71,.22)); transition: transform .35s cubic-bezier(.2,.7,.2,1), filter .35s;
}
.sl-books .wc-block-product:hover .wc-block-components-product-image img, .sl-books li.wp-block-post:hover .wp-block-woocommerce-product-image img { transform: translateY(-4px); filter: drop-shadow(0 18px 18px rgba(30,43,71,.26)); }
.sl-books .wc-block-product:hover .wc-block-components-product-image::after, .sl-books li.wp-block-post:hover .wp-block-woocommerce-product-image::after { transform: scaleX(.88); opacity: .75; }
/* Sale badge */
.sl-books .wc-block-components-product-sale-badge { position: absolute; top: .85rem; inset-inline-start: .85rem; z-index: 2; margin: 0; border: 0; border-radius: 999px; padding: .3rem .7rem; background: #1E2B47; color: #F3E3BE; font-size: .75rem; font-weight: 700; letter-spacing: .02em; }
/* Text */
.sl-books .sl-book-cat { margin: .95rem 1.1rem 0 !important; font-size: .78rem; font-weight: 600; letter-spacing: .03em; color: #8A6A2E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-books .sl-book-cat a { color: inherit; text-decoration: none; }
.sl-books .sl-book-cat a:hover { color: #1E2B47; }
.sl-books .wp-block-post-title {
	margin: .3rem 1.1rem 0 !important; padding: 0; font-family: var(--wp--preset--font-family--heading, 'Frank Ruhl Libre', serif); font-weight: 700;
	font-size: 1.1rem; line-height: 1.35; display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: 4.05em;
}
.sl-books .wp-block-post-title a { color: #1E2B47; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 100% 100%; transition: background-size .3s; }
.sl-books .wp-block-post-title a:hover { color: #1E2B47; background-size: 100% 1px; }
.sl-books .sl-book-cat + .wp-block-post-title { margin-top: .2rem !important; }
/* Price + button row */
.sl-books .wc-block-product > .wp-block-group:last-child, .sl-books li.wp-block-post > .wp-block-group:last-child {
	margin: auto 1.1rem 0 !important; padding: .85rem 0 0; border-top: 1px dashed rgba(30,43,71,.14); gap: .6rem; flex-wrap: wrap !important;
}
.sl-books .wc-block-product > .wp-block-group:last-child::before, .sl-books li.wp-block-post > .wp-block-group:last-child::before { content: none; }
.sl-books .wp-block-post-title { margin-bottom: .85rem !important; }
.sl-books .wp-block-woocommerce-product-button { flex: 1 0 auto !important; display: flex; justify-content: flex-end; }
.sl-books .wc-block-components-product-button__button { white-space: nowrap !important; }
.sl-books .wc-block-components-product-price { font-size: 1.25rem !important; font-weight: 800; color: #1E2B47; letter-spacing: -.01em; }
.sl-books .wc-block-components-product-price del { font-size: .85rem; font-weight: 500; color: #8C8F94; margin-inline-end: .35rem; }
.sl-books .wc-block-components-product-price ins { text-decoration: none; color: #8B2E1F; }
.sl-books .wc-block-components-product-button__button, .sl-books .wp-block-woocommerce-product-button .wp-block-button__link {
	display: inline-flex !important; align-items: center; justify-content: center; gap: .45rem; min-height: 42px !important; padding: 0 1rem !important;
	border-radius: 999px !important; border: 1.5px solid #1E2B47 !important; background: transparent !important; color: #1E2B47 !important;
	font-size: .88rem !important; font-weight: 700 !important; line-height: 1 !important; transition: background .25s, color .25s, box-shadow .25s;
}
.sl-books .wc-block-components-product-button__button::before {
	content: ""; width: 17px; height: 17px; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7Z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7Z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sl-books .wc-block-components-product-button__button:hover, .sl-books .wc-block-components-product-button__button:focus-visible, .sl-books .wc-block-product:hover .wc-block-components-product-button__button {
	background: #1E2B47 !important; color: #fff !important; box-shadow: 0 8px 18px -10px rgba(30,43,71,.7);
}
.sl-books .wc-block-components-product-button__button.added::before, .sl-books .wc-block-components-product-button__button[data-added]::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}
.sl-books .wc-block-components-product-button .added_to_cart, .sl-books .wc-block-components-product-button__button + a.wc-forward { display: none; }
@media (max-width: 600px) {
	.sl-books .wc-block-product-template.is-layout-grid, .sl-books.wp-block-post-template.is-layout-grid { gap: .8rem .65rem !important; }
	.sl-books .wc-block-product, .sl-books li.wp-block-post { border-radius: 16px; padding-bottom: .75rem; }
	.sl-books .wc-block-components-product-image, .sl-books .wp-block-woocommerce-product-image { padding: 1rem .8rem 1.25rem; }
	.sl-books .wc-block-components-product-image::after, .sl-books .wp-block-woocommerce-product-image::after { bottom: .65rem; height: 10px; }
	.sl-books .sl-book-cat { margin: .7rem .7rem 0 !important; font-size: .72rem; }
	.sl-books .wp-block-post-title { margin: .25rem .7rem 0 !important; font-size: .98rem; }
	.sl-books .wc-block-product > .wp-block-group:last-child, .sl-books li.wp-block-post > .wp-block-group:last-child { margin: auto .7rem 0 !important; padding-top: .65rem; }
	.sl-books .wp-block-post-title { margin-bottom: .65rem !important; font-size: .98rem; min-height: 4.05em; }
	.sl-books .wp-block-woocommerce-product-button { width: 100%; }
	.sl-books .wc-block-components-product-price { font-size: 1.1rem !important; }
	.sl-books .wc-block-components-product-button__button { width: 100%; min-height: 40px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.sl-books .wc-block-product, .sl-books li.wp-block-post, .sl-books .wc-block-components-product-image img { transition: none; }
	.sl-books .wc-block-product:hover, .sl-books li.wp-block-post:hover, .sl-books .wc-block-product:hover .wc-block-components-product-image img { transform: none; }
}

/* v1.6.9 – tighter book cards */
.sl-books .wc-block-components-product-image, .sl-books .wp-block-woocommerce-product-image { padding: 1.25rem 1.2rem 1.4rem; }
.sl-books .wp-block-post-title { margin: .8rem 1.1rem .45rem !important; line-height: 1.3; min-height: 2.6em; }
.sl-books .wc-block-product > .wp-block-group:last-child, .sl-books li.wp-block-post > .wp-block-group:last-child { padding-top: .55rem; }
.sl-books .wc-block-product, .sl-books li.wp-block-post { padding-bottom: .85rem; }
@media (max-width: 600px) {
	.sl-books .wc-block-components-product-image, .sl-books .wp-block-woocommerce-product-image { padding: .8rem .7rem 1rem; }
	.sl-books .wp-block-post-title { margin: .6rem .7rem .4rem !important; min-height: 2.6em; }
	.sl-books .wc-block-product > .wp-block-group:last-child, .sl-books li.wp-block-post > .wp-block-group:last-child { padding-top: .5rem; }
	.sl-books .wc-block-product, .sl-books li.wp-block-post { padding-bottom: .65rem; }
}

/* v1.6.10 – title closer to price row; no sticky focus ring on cart +/- */
.sl-books .wp-block-post-title { margin-bottom: .1rem !important; min-height: 0; }
.sl-books .wc-block-product > .wp-block-group:last-child, .sl-books li.wp-block-post > .wp-block-group:last-child { padding-top: .6rem; }
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus:not(:focus-visible),
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__input:focus:not(:focus-visible),
.quantity .qty:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
.wc-block-components-quantity-selector:focus-within:not(:has(:focus-visible)) { outline: none !important; box-shadow: none !important; }
.wc-block-components-quantity-selector:after { box-shadow: none; }
.sl-books .wc-block-product, .sl-books li.wp-block-post { height: auto; box-sizing: border-box; }
.sl-books .wp-block-post-title { margin-bottom: .6rem !important; }

/* v1.6.11 – narrower side padding so titles take fewer lines */
.sl-books .wp-block-post-title { margin-inline: .7rem !important; }
.sl-books .wc-block-product > .wp-block-group:last-child, .sl-books li.wp-block-post > .wp-block-group:last-child { margin-inline: .7rem !important; }
@media (max-width: 600px) {
	.sl-books .wp-block-post-title, .sl-books .wc-block-product > .wp-block-group:last-child, .sl-books li.wp-block-post > .wp-block-group:last-child { margin-inline: .5rem !important; }
}

/* v1.6.12 – side cart instant totals */
.sl-opt > .wc-block-components-product-price__value:not(.sl-opt-val),
.sl-opt > .wc-block-components-totals-item__value:not(.sl-opt-val) { display: none !important; }
.sl-opt-val { animation: none !important; background: none !important; color: inherit !important; }

/* v1.6.13 – sold-out books */
.sl-books .sl-out .wc-block-components-product-image img { filter: grayscale(.85) opacity(.55) drop-shadow(0 12px 14px rgba(30,43,71,.12)); }
.sl-books .sl-out .wc-block-components-product-image::before {
	content: "אזל מהמלאי"; position: absolute; top: .85rem; inset-inline-start: .85rem; z-index: 3;
	border-radius: 999px; padding: .3rem .75rem; background: #8B2E1F; color: #fff; font-size: .75rem; font-weight: 700;
}
.sl-books .sl-out .wc-block-components-product-sale-badge { display: none; }
.sl-books .sl-out .wp-block-woocommerce-product-price { opacity: .55; }
.sl-books .sl-out .wc-block-components-product-button__button { border-color: rgba(30,43,71,.25) !important; color: #6B7280 !important; background: transparent !important; box-shadow: none !important; }
.sl-books .sl-out .wc-block-components-product-button__button::before { display: none !important; }
.sl-books .sl-out:hover .wc-block-components-product-button__button { background: #F3F1EC !important; }

/* v1.6.14 – top bar Hebrew date; title clamp on the link itself */
.sl-topbar::before { content: none !important; }
.sl-topbar .sl-hdate { position: absolute; right: max(1rem, calc((100% - var(--wp--style--global--wide-size, 1240px)) / 2)); top: 50%; transform: translateY(-50%); font-size: .8rem; opacity: .9; white-space: nowrap; }
.sl-topbar p { padding-inline: 16rem; }
@media (max-width: 1100px) { .sl-topbar p { padding-inline: 2.25rem; } .sl-topbar .sl-hdate__date { display: none; } }
.sl-books .wp-block-post-title a { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

/* v1.6.14 – a picture that fails to load must not stretch the card */
.sl-books .wc-block-components-product-image > a { display: block; position: relative; aspect-ratio: 1 / 1; }
.sl-books .wc-block-components-product-image > a > img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; object-fit: contain !important; color: transparent; font-size: 0; }
