/* Product shelves below the popular section; existing popular cards stay intact. */
body:is(.home,.pf-catalog-page,.single-product).pf-shelves-ready :is(.elementor-element-752a3f3,.elementor-element-b01cbe3,.elementor-element-6a9b54c,.elementor-element-33206f5,.elementor-element-528e189){display:flex!important}
body:is(.home,.pf-catalog-page,.single-product).pf-shelves-ready :is(.elementor-element-c127a5f,.elementor-element-72774fe,.elementor-element-c8b8f39){display:none!important}
body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-widget{width:100%!important;min-width:0}
body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-track{display:flex!important;flex-wrap:nowrap!important;align-items:flex-start;gap:18px!important;width:100%;max-width:100%;overflow-x:auto!important;overflow-y:hidden!important;padding:32px 18px 74px!important;scroll-snap-type:x mandatory;scroll-padding-inline:18px;scrollbar-width:none;direction:rtl;touch-action:pan-x pan-y;cursor:grab;overscroll-behavior-x:contain}
.pf-shelf-track::-webkit-scrollbar{display:none}
.pf-shelf-track.is-dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}
html[data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme] body:is(.home,.pf-catalog-page,.single-product) :is(#pf-shelf-surface,.pf-shelf-card){position:relative;flex:0 0 var(--pf-shelf-width,calc((100% - 126px) / 6))!important;width:var(--pf-shelf-width,calc((100% - 126px) / 6))!important;min-width:155px!important;max-width:none!important;margin:0!important;padding:0!important;gap:0!important;border:0!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;overflow:visible!important;scroll-snap-align:start;user-select:none;border-radius:16px!important;transition:box-shadow .3s,filter .18s,opacity .18s!important;filter:blur(var(--pf-edge-blur,0px))!important;opacity:var(--pf-edge-opacity,1)!important}
.pf-shelf-card>.pf-shelf-halo{position:absolute;z-index:-1;inset:-24px -24px -30px;background-size:cover;background-position:center;border-radius:50%;filter:blur(22px);opacity:.48;transform:translateY(12px);pointer-events:none;-webkit-mask-image:radial-gradient(ellipse closest-side,#000 28%,#000c 52%,#0005 75%,transparent 98%);mask-image:radial-gradient(ellipse closest-side,#000 28%,#000c 52%,#0005 75%,transparent 98%)}
body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-cover{display:block;position:relative;aspect-ratio:2/3;width:100%;overflow:hidden;border-radius:15px;box-shadow:0 12px 24px #0003;text-decoration:none}
body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-cover img{width:100%!important;height:100%!important;max-width:none!important;aspect-ratio:2/3!important;object-fit:cover!important;display:block;border-radius:inherit!important;transition:scale .4s}
.pf-shelf-cover::after{content:"";position:absolute;inset:52% 0 0;pointer-events:none;background:linear-gradient(transparent,#0509141a 22%,#05091480 100%);backdrop-filter:blur(.6px);mask-image:linear-gradient(transparent,#000 65%);border-radius:inherit}
.pf-shelf-free-badge{position:absolute;top:10px;inset-inline-start:10px;background:#112820b3;backdrop-filter:blur(6px);border:1px solid #96ebcf70;border-radius:8px;color:#aff5cf;padding:3px 8px;font-size:10px;z-index:2}
body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-caption{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;text-align:center;min-height:80px;padding:15px 4px 8px;text-decoration:none;color:var(--pf-text,#fff);line-height:1.65}
.pf-shelf-name-fa{display:block;font-size:12px;font-weight:700;line-height:1.8;text-wrap:balance}
.pf-shelf-name-en{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:600 12px/1.45 Arial,sans-serif;color:var(--pf-text,#fff);opacity:.85;text-wrap:balance}
.pf-shelf-actions{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:52px;padding:10px 2px 0;border-top:1px solid #ffffff24;opacity:0;visibility:hidden;transform:translateY(10px);pointer-events:none;transition:opacity .25s,transform .25s,visibility .25s}
.pf-shelf-price{font-size:13px;font-weight:700;line-height:1.6;color:var(--pf-text,#fff)}
.pf-shelf-price del{font-size:10px;font-weight:400;opacity:.55;display:block}.pf-shelf-price ins{background:none;text-decoration:none}.pf-shelf-price .woocommerce-Price-currencySymbol{font-size:9px}
body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-cart{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 38px;width:38px;min-height:38px!important;margin:0!important;padding:8px!important;border:1px solid #96ebcf80!important;border-radius:12px!important;background:#82dec524!important;color:var(--pf-text,#fff)!important;box-shadow:inset 0 1px 0 #ffffff35!important;text-decoration:none;cursor:pointer}
.pf-shelf-cart.loading{opacity:.5;pointer-events:none}.pf-shelf-actions .added_to_cart{position:absolute;top:100%;inset-inline-end:0;font-size:10px;color:var(--pf-text);white-space:nowrap}
.pf-shelf-card:is(:hover,:focus-within){z-index:60!important}
.pf-shelf-card:is(:hover,:focus-within) .pf-shelf-actions{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.pf-shelf-card:is(:hover,:focus-within) .pf-shelf-cover img{scale:1.025}
.pf-shelf-card:is(:hover,:focus-within)>.pf-shelf-halo{opacity:.62}
.pf-shelf-controls{display:flex;justify-content:flex-end;gap:8px;margin-top:-40px;position:relative;z-index:2;padding-inline:18px}
.pf-shelf-controls[hidden]{display:none!important}
.pf-shelf-controls button{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--pf-border,#ffffff40);border-radius:10px;background:#ffffff09;color:var(--pf-text,#fff);font:16px/1 inherit;padding:6px;cursor:pointer}
.pf-shelf-track:focus-visible,.pf-shelf-card a:focus-visible,.pf-shelf-controls button:focus-visible{outline:2px solid #8bdcc3;outline-offset:4px}
@media(max-width:1024px){html[data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme] body:is(.home,.pf-catalog-page,.single-product) :is(#pf-shelf-surface,.pf-shelf-card){flex-basis:var(--pf-shelf-width,calc(100% / 4 * 1.1))!important;width:var(--pf-shelf-width,calc(100% / 4 * 1.1))!important}.pf-shelf-actions{opacity:1;visibility:visible;transform:none;pointer-events:auto}}
@media(max-width:767px){body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-track{gap:14px!important;padding:24px 12px 60px!important}html[data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme] body:is(.home,.pf-catalog-page,.single-product) :is(#pf-shelf-surface,.pf-shelf-card){flex-basis:var(--pf-shelf-width,40%)!important;width:var(--pf-shelf-width,40%)!important;min-width:145px!important}.pf-shelf-name-fa{font-size:11px}.pf-shelf-name-en{font-size:11px}.pf-shelf-actions{opacity:1;visibility:visible;transform:none;pointer-events:auto}.pf-shelf-card>.pf-shelf-halo{filter:blur(16px);opacity:.22}.pf-shelf-controls{margin-top:-35px}.pf-shelf-caption{min-height:78px}}
@media(hover:none){.pf-shelf-actions{opacity:1;visibility:visible;transform:none;pointer-events:auto}}
@media(prefers-reduced-motion:reduce){.pf-shelf-track{scroll-behavior:auto!important}.pf-shelf-card *{transition:none!important}.pf-shelf-controls .pf-shelf-pause{display:none}}

/* Titles sit on the cover; hover lifts them to make room for the cart. */
body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-caption{position:absolute;inset-inline:10px;bottom:14px;z-index:3;min-height:0;padding:0;gap:4px;color:#fff;text-shadow:0 2px 8px #000;transition:bottom .28s ease}
body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-name-en{color:#fff}
.pf-shelf-cover::after{inset:38% 0 0;background:linear-gradient(transparent,#05091455 38%,#050914e8 100%)}
.pf-shelf-actions{position:absolute;inset-inline:10px;bottom:10px;z-index:4;padding-top:8px;min-height:46px;color:#fff}
body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-price,body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-cart,body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-actions .added_to_cart{color:#fff!important}
/* Cover overlays stay dark in both themes; the general light-theme rules must
   not turn their titles, nested WooCommerce prices or cart icons dark. */
html[data-pf-theme="light"][data-pf-theme] body :is(#pf-cover-readable,.pf-shelf-card) :is(.pf-shelf-caption,.pf-shelf-name-fa,.pf-shelf-name-en,.pf-shelf-price,.pf-shelf-price *,.pf-shelf-cart,.pf-shelf-cart svg,.pf-shelf-actions .added_to_cart){color:#fff!important;-webkit-text-fill-color:currentColor!important;text-shadow:0 1px 4px #000!important}
html[data-pf-theme="light"] .pf-shelf-cart{--pf-liquid-solid:#15202dcc}
.pf-shelf-card:is(:hover,:focus-within) .pf-shelf-caption{bottom:68px}
.pf-shelf-actions .added_to_cart{top:auto;bottom:100%;background:#08151de6;border-radius:6px;padding:3px 6px}
@media(max-width:1024px),(hover:none){body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-caption{bottom:68px}}

/* Fixed edge glass softens cards as they leave the visible rail. */
.pf-shelf-viewport{position:relative;width:100%;min-width:0;isolation:isolate}
body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-track.is-dragging{cursor:grabbing!important;scroll-snap-type:none!important;scroll-behavior:auto!important;user-select:none!important}
body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-track.is-dragging .pf-shelf-card{pointer-events:none}
.pf-shelf-track img,.pf-shelf-track a{-webkit-user-drag:none}

/* Render the complete softened cover outside the native scroll clipping box. */
.pf-shelf-spill{position:absolute;inset:0;overflow:visible;pointer-events:none;z-index:1}
.pf-shelf-ghost{position:absolute;filter:blur(20px);opacity:.4;pointer-events:none}
.pf-shelf-ghost[hidden]{display:none!important}
body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-ghost .pf-shelf-caption{bottom:14px}
body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-spilled{visibility:hidden!important}
body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-viewport,body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-widget,body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-widget>.elementor-widget-container{overflow:visible!important}

@media(min-width:1025px){
 html[data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme][data-pf-theme] body:is(.home,.pf-catalog-page,.single-product) :is(#pf-shelf-surface,.pf-shelf-card){min-width:0!important}
}

/* Space for the spring tilt without clipping the outer cards. Preserve cover size. */
@media(min-width:1025px){
 body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-track{width:calc(100% + 80px)!important;max-width:none!important;margin-inline:-40px!important;padding-inline:58px!important;scroll-padding-inline:58px;padding-top:52px!important}
}

/* Pull the rail toward its section heading while retaining the tilt gutter. */
@media(min-width:1025px){body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-viewport{margin-block-start:-40px}}
@media(max-width:1024px){body:is(.home,.pf-catalog-page,.single-product) .pf-shelf-viewport{margin-block-start:-12px}}
