/* RTL puts the first grid column (products) on the right and the editorial column on the left. */
.sb-section-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 31%); align-items: stretch; gap: 28px; }
.sb-section-products { min-width: 0; }
.sb-products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; align-items: stretch; }
.sb-products-grid article { min-width: 0; }
.sb-products-grid article > div:last-child > a { overflow-wrap: anywhere; }
.sb-products-grid [data-add-to-cart] { min-height: 44px; font-size: 12px; padding-inline: 8px; }
.sb-card-rating { display: flex; align-items: center; gap: 4px; color: #845148; font-size: 12px; margin-top: 8px; }
.sb-card-rating > .material-symbols-outlined { font-size: 16px; font-variation-settings: 'FILL' 1; }
.sb-card-rating > small { color: #73615d; }
.sb-editorial-slider { position: relative; isolation: isolate; min-width: 0; min-height: 650px; overflow: hidden; border-radius: 28px; border: 1px solid #d9b9b0; color: #201a19; background: #f0d7cf; box-shadow: 0 14px 35px #8451480c; }
.sb-editorial-slider [hidden] { display: none !important; }
.sb-editorial-stage { position: absolute; inset: 0 0 70px; }
.sb-editorial-slide { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 35% 28%, #fff8f6 0%, #f7ebe9 34%, #edd1c7 75%, #e4b8ab 100%); }
.sb-sale .sb-editorial-slide { background: radial-gradient(ellipse at 35% 28%, #fff8f6, #f7ebe9 32%, #e8bcad 100%); }
.sb-editorial-art { position: absolute; inset: 0; pointer-events: none; }
.sb-editorial-ring { position: absolute; top: 12%; inset-inline: -40px; aspect-ratio: 1; border: 1px solid #84514826; border-radius: 50%; box-shadow: 0 0 0 24px #ffffff26, 0 0 0 25px #84514816; transform: rotate(-15deg); }
.sb-editorial-spark { position: absolute; inset-inline-start: 24px; top: 100px; font-size: 34px; color: #84514866; }
.sb-editorial-wordmark { position: absolute; top: 30px; inset-inline: 26px; font-size: 10px; letter-spacing: .2em; font-weight: 700; color: #845148; direction: ltr; text-align: left; }
.sb-editorial-image { position: absolute; top: 80px; inset-inline: 18px; width: calc(100% - 36px); height: calc(100% - 365px); min-height: 190px; object-fit: contain; filter: drop-shadow(0 24px 20px #84514816); transform-origin: 50% 60%; }
.sb-editorial-image-fallback { position: absolute; top: 80px; inset-inline: 18px; height: calc(100% - 365px); min-height: 190px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #845148; }
.sb-editorial-image-fallback .material-symbols-outlined { font-size: 90px; font-weight: 200; }
.sb-editorial-image-fallback > span:last-child { font-size: 24px; }
.sb-editorial-copy { position: absolute; bottom: 0; inset-inline: 0; padding: 50px 28px 28px; background: linear-gradient(0deg, #ecd0c6 60%, #ecd0c600); }
.sb-editorial-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #845148; font-size: 12px; font-weight: 800; }
.sb-editorial-eyebrow::before { content: ''; width: 20px; height: 2px; background: currentColor; }
.sb-editorial-copy h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; line-height: 1.6; margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sb-editorial-copy p { font-size: 13px; line-height: 2; margin: 15px 0 20px; color: #524441; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sb-editorial-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 12px 20px; border-radius: 12px; text-decoration: none; color: #fff8f6; background: #845148; font-size: 12px; font-weight: 800; }
.sb-editorial-link:hover { background: #71423a; }
.sb-editorial-link .material-symbols-outlined { font-size: 18px; }
.sb-editorial-controls { position: absolute; bottom: 0; inset-inline: 0; height: 70px; padding: 12px 16px; display: flex; justify-content: center; align-items: center; gap: 6px; border-top: 1px solid #84514822; background: #ecd0c6; }
.sb-editorial-controls > button { width: 40px; height: 44px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid #84514830; border-radius: 50%; color: #845148; background: #fff8f680; cursor: pointer; }
.sb-editorial-controls > button:hover { background: #fff8f6; }
.sb-editorial-controls [data-slide-pause] { margin-inline-start: 4px; }
.sb-editorial-controls [aria-pressed="true"] { background: #845148; color: #fff; }
.sb-editorial-dots { display: flex; align-items: center; justify-content: center; flex: 1; }
.sb-editorial-dots > button { position: relative; width: 27px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; }
.sb-editorial-dots > button::before { content: ''; position: absolute; width: 6px; height: 6px; top: 19px; left: 10px; border-radius: 8px; background: #84514850; transition: width .2s, background .2s; }
.sb-editorial-dots > [aria-current="true"]::before { width: 16px; left: 5px; background: #845148; }
.sb-editorial-slider:not(:has(.sb-editorial-controls)) .sb-editorial-stage { bottom: 0; }
.sb-section-empty { padding: 36px 20px; text-align: center; border: 1px solid #dec8c3; border-radius: 18px; background: #fdf1ef; color: #524441; }
.sb-section-empty > .material-symbols-outlined { font-size: 40px; color: #845148; }
@keyframes sbEditorialImageEntry { from { opacity: 0; transform: translateY(26px) scale(.94) rotate(-3deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes sbEditorialImageDrift { from { transform: translateY(0) scale(1) rotate(0); } to { transform: translateY(-12px) scale(1.055) rotate(1.5deg); } }
@keyframes sbEditorialCopyEntry { from { opacity: 0; transform: translateX(35px); filter: blur(4px); } to { opacity: 1; transform: translateX(0); filter: blur(0); } }
.sb-editorial-slider.is-enhanced .is-active .sb-editorial-image { animation: sbEditorialImageEntry 1s cubic-bezier(.16, 1, .3, 1) both, sbEditorialImageDrift var(--sb-slide-motion,5.5s) 1s ease-in-out forwards; }
.sb-editorial-slider.is-enhanced .is-active [data-copy-step] { animation: sbEditorialCopyEntry .8s cubic-bezier(.16, 1, .3, 1) both; }
.sb-editorial-slider.is-enhanced .is-active [data-copy-step="1"] { animation-delay: 0s; }
.sb-editorial-slider.is-enhanced .is-active [data-copy-step="2"] { animation-delay: var(--sb-step-2, .5s); }
.sb-editorial-slider.is-enhanced .is-active [data-copy-step="3"] { animation-delay: var(--sb-step-3, 1s); }
.sb-editorial-slider.is-enhanced .is-active [data-copy-step="4"] { animation-delay: var(--sb-step-4, 1.5s); }
.sb-editorial-slider.is-paused .sb-editorial-image { animation-play-state: paused !important; }
/* With no JavaScript, the first image and all its text remain visible. */
@media (max-width: 1100px) and (min-width: 768px) {
  .sb-section-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; }
  .sb-products-grid { gap: 24px 10px; }
  .sb-products-grid [data-add-to-cart] { font-size: 10px; }
  .sb-editorial-copy { padding-inline: 22px; }
  .sb-editorial-copy h3 { font-size: 25px; }
}
@media (max-width: 767px) {
  .sb-section-layout { display: flex; flex-direction: column; gap: 22px; }
  .sb-editorial-slider { order: -1; width: 100%; min-height: 610px; border-radius: 22px; }
  .sb-editorial-image, .sb-editorial-image-fallback { top: 56px; height: 225px; min-height: 0; }
  .sb-editorial-copy { padding: 24px; }
  .sb-editorial-copy h3 { font-size: 26px; -webkit-line-clamp: 2; }
  .sb-editorial-copy p { margin: 10px 0 15px; -webkit-line-clamp: 2; }
  .sb-editorial-eyebrow { margin-bottom: 10px; }
  .sb-editorial-wordmark { top: 22px; }
  .sb-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .sb-products-grid [data-add-to-cart] { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-editorial-slider .sb-editorial-image, .sb-editorial-slider [data-copy-step] { animation: none !important; opacity: 1; transform: none; filter: none; }
}

.sb-section-layout:not(:has(.sb-editorial-slider)) { grid-template-columns: minmax(0,1fr); }
.sb-editorial-slider { font-family:Cairo,sans-serif; direction:rtl; }
@keyframes sbEditorialZoom { from { transform:scale(1); } to { transform:scale(1.09); } }
@keyframes sbEditorialPan { from { transform:translateX(8px) scale(1.02); } to { transform:translateX(-8px) scale(1.02); } }
.sb-editorial-slider.is-enhanced[data-effect="zoom"] .is-active .sb-editorial-image { animation:sbEditorialImageEntry 1s ease both,sbEditorialZoom var(--sb-slide-motion,5.5s) 1s ease-in-out forwards; }
.sb-editorial-slider.is-enhanced[data-effect="pan"] .is-active .sb-editorial-image { animation:sbEditorialImageEntry 1s ease both,sbEditorialPan var(--sb-slide-motion,5.5s) 1s ease-in-out forwards; }

/* Dedicated posters use the full slide canvas with their original aspect ratio. */
.sb-editorial-slider[data-image-layout="poster"] .sb-editorial-image {
  top:0; inset-inline:0; width:100%; height:100%; min-height:0;
  object-fit:contain; object-position:center top; filter:none;
}
.sb-editorial-slider[data-image-layout="poster"] .sb-editorial-art,
.sb-editorial-slider[data-image-layout="poster"] .sb-editorial-wordmark { display:none; }
.sb-editorial-slider[data-image-layout="poster"] .sb-editorial-copy {
  background:linear-gradient(0deg,#fff8f6f5 0%,#fff8f6ed 60%,#fff8f600 100%);
  padding-top:40px;
}
.sb-editorial-slider[data-image-layout="product"] .sb-editorial-image,
.sb-editorial-slider[data-image-layout="product"] .sb-editorial-image-fallback {
  top:32px; inset-inline:12px; width:calc(100% - 24px);
  height:calc(100% - 290px); min-height:230px;
}
@media(max-width:767px) {
  .sb-editorial-slider[data-image-layout="product"] .sb-editorial-image,
  .sb-editorial-slider[data-image-layout="product"] .sb-editorial-image-fallback {
    top:28px; height:270px; min-height:0;
  }
  .sb-editorial-slider[data-image-layout="poster"] .sb-editorial-image { top:0; height:100%; min-height:0; }
}

/* Motion stays within the poster's safe canvas, keeping its edges contained. */
@keyframes sbPosterEntry { from {opacity:0;transform:translateY(12px) scale(.94);} to {opacity:1;transform:scale(.96);} }
@keyframes sbPosterFloat { from {transform:translateY(3px) scale(.97);} to {transform:translateY(-3px) scale(.99);} }
@keyframes sbPosterZoom { from {transform:scale(.96);} to {transform:scale(1);} }
@keyframes sbPosterPan { from {transform:translateX(5px) scale(.96);} to {transform:translateX(-5px) scale(.96);} }
.sb-editorial-slider.is-enhanced[data-image-layout="poster"] .is-active .sb-editorial-image {
  animation:sbPosterEntry 1s ease both,sbPosterFloat var(--sb-slide-motion,5.5s) 1s ease-in-out forwards;
}
.sb-editorial-slider.is-enhanced[data-image-layout="poster"][data-effect="zoom"] .is-active .sb-editorial-image {
  animation:sbPosterEntry 1s ease both,sbPosterZoom var(--sb-slide-motion,5.5s) 1s ease-in-out forwards;
}
.sb-editorial-slider.is-enhanced[data-image-layout="poster"][data-effect="pan"] .is-active .sb-editorial-image {
  animation:sbPosterEntry 1s ease both,sbPosterPan var(--sb-slide-motion,5.5s) 1s ease-in-out forwards;
}

/* Two separate editorial cards: 2/3 slider, 1/3 interactive product advert. */
.sb-editorial-column { display:grid; grid-template-rows:minmax(0,2fr) minmax(0,1fr); gap:18px; min-width:0; min-height:870px; }
.sb-editorial-column > .sb-editorial-slider { min-height:0; }
.sb-editorial-column .sb-editorial-slider[data-image-layout="product"] .sb-editorial-image,
.sb-editorial-column .sb-editorial-slider[data-image-layout="product"] .sb-editorial-image-fallback { top:24px; height:calc(100% - 265px); min-height:0; }
.sb-editorial-column .sb-editorial-copy { padding:35px 24px 22px; }
.sb-editorial-column .sb-editorial-copy h3 { font-size:clamp(22px,2vw,28px); }
.sb-editorial-column .sb-editorial-copy p { margin:10px 0 14px; }
.sb-product-ad { --ad-x:0px; --ad-y:0px; position:relative; isolation:isolate; display:block; overflow:hidden; min-width:0; min-height:0; border:1px solid #d9b9b0; border-radius:28px; background:radial-gradient(ellipse at 30% 25%,#fff8f6 0%,#efcfc4 55%,#d6a99c 100%); color:#201a19; text-decoration:none; font-family:Cairo,sans-serif; direction:rtl; box-shadow:0 14px 35px #8451480c; transition:box-shadow .35s,border-color .35s; }
.sb-product-ad[hidden], .sb-product-ad [hidden] { display:none!important; }
.sb-product-ad::before { content:''; position:absolute; inset:-20%; background:radial-gradient(circle at 30% 35%,#ffffffaa,transparent 45%); transform:translate(var(--ad-x),var(--ad-y)); transition:transform .25s ease-out; pointer-events:none; }
.sb-product-ad-orbit { position:absolute; top:8%; left:-10%; width:75%; aspect-ratio:1; border:1px solid #ffffffa0; border-radius:50%; box-shadow:0 0 0 18px #ffffff26,0 0 0 19px #ffffff55; pointer-events:none; }
.sb-product-ad-badge { position:absolute; z-index:2; top:18px; inset-inline-start:18px; padding:6px 11px; border:1px solid #ffffffaa; border-radius:999px; background:#fff8f6d9; color:#71423a; font-size:10px; font-weight:700; }
.sb-product-ad-visual { position:absolute; top:40px; bottom:100px; inset-inline:16px; display:grid; place-items:center; transform:translate(var(--ad-x),var(--ad-y)); transition:transform .3s ease-out; }
.sb-product-ad-visual img { width:100%; height:100%; min-height:0; object-fit:contain; filter:drop-shadow(0 12px 12px #71423a24); }
.sb-product-ad-fallback { font-size:65px; color:#845148; }
.sb-product-ad-copy { position:absolute; z-index:2; bottom:0; inset-inline:0; padding:25px 20px 17px; background:linear-gradient(0deg,#fff8f6fa 0%,#fff8f6e8 68%,#fff8f600 100%); }
.sb-product-ad-copy small { font-size:10px; color:#71423a; }
.sb-product-ad-copy h3 { margin:3px 0 8px; font-size:17px; line-height:1.7; font-weight:800; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.sb-product-ad-cta { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:11px; font-weight:700; color:#845148; }
.sb-product-ad-cta .material-symbols-outlined { font-size:19px; transition:transform .3s; }
.sb-product-ad:hover, .sb-product-ad:focus-visible { border-color:#845148; box-shadow:0 18px 36px #84514824; }
.sb-product-ad:focus-visible { outline:3px solid #845148; outline-offset:4px; }
.sb-product-ad:hover .sb-product-ad-cta .material-symbols-outlined { transform:translateX(-4px); }
@keyframes sbProductAdEntry { from { opacity:.65; transform:translateY(12px) scale(.96); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes sbProductAdFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-7px); } }
.sb-product-ad.is-ad-visible .sb-product-ad-visual img { animation:sbProductAdEntry .8s ease-out both,sbProductAdFloat 3.8s .8s ease-in-out both; }
@media(max-width:767px) {
  .sb-editorial-column { order:-1; width:100%; height:870px; min-height:870px; gap:16px; }
  .sb-editorial-column > .sb-editorial-slider, .sb-product-ad { border-radius:22px; }
  .sb-editorial-column .sb-editorial-slider[data-image-layout="product"] .sb-editorial-image,
  .sb-editorial-column .sb-editorial-slider[data-image-layout="product"] .sb-editorial-image-fallback { height:calc(100% - 250px); top:20px; }
}
@media(prefers-reduced-motion:reduce) {
  .sb-product-ad, .sb-product-ad::before, .sb-product-ad-visual, .sb-product-ad-cta .material-symbols-outlined { transition:none!important; transform:none!important; }
  .sb-product-ad.is-ad-visible .sb-product-ad-visual img { animation:none!important; }
}
