/* Trast 1.5.94: quiet product collections, magazine, and a readable Nazli sheet. */
.home-discovery{--home-card:var(--paper,#fff);--home-rule:var(--line,#eadfe5)}
.home-discovery .section{padding-block:30px}
.home-discovery .section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.home-discovery .section-head h2{font-size:clamp(18px,2vw,24px);line-height:1.7;margin:0}
.home-discovery .section-head p{font-size:13px;color:var(--muted);margin:5px 0 0}
.home-discovery .section-head>a{font-size:13px;display:inline-flex;align-items:center;gap:6px;flex-shrink:0}
.home-discovery .section-head svg{width:18px;height:18px}
.home-picks-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.home-pick{display:flex;align-items:center;gap:18px;padding:18px 22px;background:var(--home-card);border:1px solid var(--home-rule);border-radius:20px;min-width:0;transition:border-color .2s}
.home-pick:hover{border-color:var(--accent)}
.home-pick-photo{width:90px;height:96px;flex-shrink:0;border-radius:18px;overflow:hidden;display:grid;place-items:center;background:var(--soft)}
.home-pick-photo img{width:100%;height:100%;object-fit:contain;padding:10px;mix-blend-mode:multiply}
.home-pick-photo>svg{width:42px;height:42px;color:var(--accent)}
.home-pick b{font-size:16px;display:block;line-height:1.8}
.home-pick small{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;margin-top:7px}
.home-pick small svg{width:17px;height:17px}
body.trast-modern .home-discovery .home-product-rail{display:grid!important;grid-auto-flow:column;grid-auto-columns:calc((100% - 60px)/4);grid-template-columns:none;gap:20px!important;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:2px 1px 14px;scrollbar-width:thin}
@media(max-width:1100px){body.trast-modern .home-discovery .home-product-rail>.product-card{display:block!important;width:100%!important;max-width:none!important;min-width:0;scroll-snap-align:start;margin:0;background:var(--home-card);border:1px solid var(--home-rule);border-radius:18px;overflow:hidden;box-shadow:none}}
@media(max-width:1100px){.home-discovery .product-card--modern .product-card__visual{background:var(--home-card);border-radius:0;overflow:hidden;position:relative;aspect-ratio:auto}}
@media(max-width:1100px){.home-discovery .product-card--modern .product-image{height:auto;aspect-ratio:1;display:grid;place-items:center;padding:24px 32px 12px;position:relative;background:var(--home-card)}}
@media(max-width:1100px){.home-discovery .product-card--modern .product-image img{width:100%;height:100%;max-height:220px;object-fit:contain;mix-blend-mode:normal}}
@media(max-width:1100px){.home-discovery .product-card--modern .product-card__tools{position:absolute;inset:auto 8px auto auto;top:8px;display:flex;flex-direction:column;gap:5px;border:0;padding:0;background:transparent;box-shadow:none;border-radius:0;transform:none;opacity:1}}
@media(max-width:1100px){.home-discovery .product-card__tools .product-card__compare,.home-discovery .product-card__tools [data-quick-view]{display:none}}
@media(max-width:1100px){.home-discovery .product-card__tools .heart-button,.home-discovery .product-card__tools button{width:36px;height:36px;min-height:36px;border:1px solid var(--home-rule);background:var(--home-card);border-radius:50%;box-shadow:none;padding:8px}}
@media(max-width:1100px){.home-discovery .product-card__tools svg{width:19px;height:19px}}
@media(max-width:1100px){.home-discovery .product-card--modern .product-card__quick-buy{position:static;margin:0 12px;transform:none;opacity:1;width:auto;border-radius:10px;overflow:hidden}}
@media(max-width:1100px){.home-discovery .product-card--modern .product-card__quick-buy button{min-height:42px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;padding:8px;background:var(--soft);color:var(--accent);border:1px solid var(--home-rule);border-radius:10px;width:100%}}
@media(max-width:1100px){.home-discovery .product-card__quick-buy svg{width:19px;height:19px}}
@media(max-width:1100px){.home-discovery .product-card--modern .product-card__info{padding:14px 14px 18px;text-align:right}}
@media(max-width:1100px){.home-discovery .product-card--modern h3{font-size:13px;line-height:1.9;min-height:50px;margin:0 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}
@media(max-width:1100px){.home-discovery .product-card__price{display:flex;align-items:flex-start;flex-direction:column;gap:3px;min-height:48px}}
@media(max-width:1100px){.home-discovery .product-card__price strong{font-size:14px;color:var(--ink)}}
@media(max-width:1100px){.home-discovery .product-card__price del{font-size:11px;color:var(--muted)}}
@media(max-width:1100px){.home-discovery .product-card__discount{inset-inline-start:auto;inset-inline-end:10px;top:10px;font-size:10px;padding:4px 8px;border-radius:9px;max-width:90px}}
@media(max-width:1100px){.home-discovery .product-card__unavailable{position:static;display:block;margin:0 12px;text-align:center;background:var(--soft);color:var(--muted);padding:10px;border-radius:10px;font-size:12px}}
.home-journal{background:var(--soft);margin-block:20px;border-block:1px solid var(--home-rule)}
.home-journal-heading{font-size:16px;margin:22px 0 14px}
.home-stories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.home-story{min-width:0;background:var(--home-card);border:1px solid var(--home-rule);border-radius:18px;overflow:hidden}
.home-story-photo{display:grid;place-items:center;aspect-ratio:4/3;overflow:hidden;background:var(--soft);color:var(--accent)}
.home-story-photo img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.home-story-photo>span svg{width:54px;height:54px}
.home-story-copy{padding:20px}
.home-story-copy>small{font-size:11px;color:var(--accent)}
.home-story-copy h4{font-size:16px;line-height:1.9;margin:8px 0}
.home-story-copy p{font-size:13px;color:var(--muted);line-height:1.9;margin:10px 0}
.home-story-link{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--accent);min-height:44px}
.home-story-link svg{width:18px;height:18px}
.home-discovery :focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* A connector belongs to the gap after its step, never beyond the final step. */
.ac-progress li::before,.ac-progress li:first-child::before{display:block;inset-inline-start:50%;width:100%;background:#eee3e9}
.ac-progress li.is-complete::before{background:#eee3e9}
.ac-progress li.is-complete:has(+li.is-complete)::before{background:#c67395}
.ac-progress li:last-child::before{display:none}
.ac-progress b{text-align:center;line-height:1.7}
/* Remove the previous bouncing star / dust and animate only the surrounding frame. */
@property --nazli-angle{syntax:'<angle>';inherits:false;initial-value:0deg}
.shopping-assistant-launcher,.shopping-assistant-launcher.assistant-is-inviting{animation:none!important;isolation:isolate}
.shopping-assistant-launcher .assistant-launcher-icon,.shopping-assistant-launcher .assistant-launcher-icon *{animation:none!important;transform:none}
.shopping-assistant-launcher .assistant-magic-dust{display:none!important}
.shopping-assistant-launcher::before,.shopping-assistant-launcher.assistant-is-inviting::before,.shopping-assistant-launcher .assistant-launcher-icon::after{content:"";position:absolute;inset:-3px;border:0;border-radius:inherit;padding:2px;pointer-events:none;background:conic-gradient(from var(--nazli-angle),transparent 0deg 230deg,#f8bbd2 290deg,#fff5fa 315deg,transparent 360deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;opacity:.85;animation:nazli-frame 10s linear infinite!important}
.shopping-assistant-launcher::after{content:"";position:absolute;inset:-8px;border:1px solid #cf528344;border-radius:inherit;pointer-events:none;opacity:.3;animation:nazli-breathe 5s ease-in-out infinite}
.shopping-assistant-launcher .assistant-launcher-icon::before{content:none;animation:none!important}
.shopping-assistant-launcher .assistant-launcher-icon::after{inset:-2px;animation-duration:8s!important}
@keyframes nazli-frame{to{--nazli-angle:360deg}}
@keyframes nazli-breathe{0%,100%{opacity:.15;transform:scale(.99)}50%{opacity:.5;transform:scale(1.035)}}
body:is(.commerce-modal-open,.auth-modal-open,.store-menu-open) .shopping-assistant-launcher::before,body:is(.commerce-modal-open,.auth-modal-open,.store-menu-open) .shopping-assistant-launcher::after,body:is(.commerce-modal-open,.auth-modal-open,.store-menu-open) .shopping-assistant-launcher .assistant-launcher-icon::after{animation-play-state:paused!important}
/* Override the legacy 36dvh introductory cap, including its !important rules. */
.assistant-modal[open],.trast-modern .assistant-modal[open],.assistant-modal[open].assistant-is-chatting{height:min(720px,calc(var(--sheet-visible-height,100dvh) - 120px))!important;max-height:min(720px,calc(var(--sheet-visible-height,100dvh) - 120px))!important;min-height:0!important}
.assistant-modal .assistant-header,.assistant-modal .assistant-composer,.assistant-modal .assistant-footer{flex-shrink:0}
.assistant-modal .assistant-conversation{flex:1 1 0;min-height:0!important;overflow-y:auto;padding:20px!important}
.assistant-modal .assistant-welcome p{font-size:14px;line-height:1.95}
.assistant-modal .assistant-welcome h3{font-size:17px}
.assistant-modal .assistant-composer textarea{font-size:16px!important}
html[data-color-theme=dark] .home-pick-photo img{mix-blend-mode:normal}
@media(max-width:900px){.home-picks-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.trast-modern .home-discovery .home-product-rail{grid-auto-columns:calc((100% - 32px)/3);gap:16px!important}.home-pick{gap:12px;padding:14px}.home-pick b{font-size:14px}.home-stories{gap:14px}.home-story-copy{padding:14px}.home-story-copy h4{font-size:14px}}
@media(max-width:720px){
 .home-discovery .section{padding-block:22px}.home-discovery .container{width:calc(100% - 28px)}
 .home-discovery .section-head{gap:10px;margin-bottom:16px}.home-discovery .section-head>a{font-size:11px}.home-discovery .section-head p{font-size:12px}.home-discovery .section-head h2{font-size:18px}
 .home-picks-grid{gap:10px}.home-pick{flex-direction:column;align-items:flex-start;gap:10px;padding:14px;border-radius:16px}.home-pick-photo{width:100%;height:106px}.home-pick-photo img{padding:5px}.home-pick b{font-size:13px}.home-pick small{font-size:11px;margin-top:4px}
 body.trast-modern .home-discovery .home-product-rail{grid-auto-columns:calc((100% - 12px)/2);gap:12px!important;scroll-padding-inline:0}
 .home-discovery .product-card--modern .product-image{padding:22px 20px 10px}.home-discovery .product-card--modern .product-card__quick-buy{margin-inline:8px}.home-discovery .product-card--modern .product-card__quick-buy button{font-size:10px;gap:4px}.home-discovery .product-card--modern .product-card__info{padding:12px 10px 14px}.home-discovery .product-card--modern h3{font-size:12px;min-height:46px}.home-discovery .product-card__price strong{font-size:12px}.home-discovery .product-card__tools button{width:32px;height:32px;min-height:32px;padding:7px}.home-discovery .product-card__discount{font-size:9px;padding:4px 6px}
 .home-stories{grid-template-columns:1fr}.home-story{display:grid;grid-template-columns:34% minmax(0,1fr);align-items:stretch;border-radius:16px}.home-story-photo{height:100%;aspect-ratio:auto;min-height:160px}.home-story-copy{padding:14px}.home-story-copy h4{font-size:14px;margin:4px 0}.home-story-copy p{display:none}.home-story-copy>small{font-size:10px}.home-story-link{font-size:11px}
 .assistant-modal[open],.trast-modern .assistant-modal[open],.assistant-modal[open].assistant-is-chatting{height:min(82dvh,calc(var(--sheet-visible-height,100dvh) - 12px))!important;max-height:min(82dvh,calc(var(--sheet-visible-height,100dvh) - 12px))!important;bottom:var(--sheet-keyboard-bottom,0px)!important;padding-bottom:env(safe-area-inset-bottom,0px)}
 .assistant-modal .assistant-header{padding:14px 16px!important}.assistant-modal .assistant-header h2{font-size:16px}.assistant-modal .assistant-header small{font-size:12px}.assistant-modal .assistant-welcome{padding:16px 2px!important}.assistant-modal .assistant-welcome p{font-size:14px;line-height:1.95}.assistant-modal .assistant-welcome h3{font-size:17px}.assistant-modal .assistant-chips{gap:8px;padding-block:10px!important}.assistant-modal .assistant-composer{padding:10px 14px!important}.assistant-modal .assistant-composer textarea{height:46px!important;min-height:46px!important}.assistant-modal .assistant-composer button{height:46px!important}.assistant-modal:not(.assistant-is-chatting) .assistant-footer{display:flex}
 .assistant-modal .assistant-footer{padding:0 14px 10px;gap:8px}.assistant-modal .assistant-footer small{max-width:60%;font-size:10px}
}
@media(prefers-reduced-motion:reduce){.shopping-assistant-launcher::before,.shopping-assistant-launcher.assistant-is-inviting::before,.shopping-assistant-launcher::after,.shopping-assistant-launcher .assistant-launcher-icon::after{animation:none!important;opacity:.35}.home-discovery *{scroll-behavior:auto!important;transition:none!important}}

/* Keep only the wishlist action visible; compact collections need room for product photos. */
@media(max-width:1100px){body.trast-modern .home-discovery .product-card__tools{visibility:visible!important;inset-inline-end:auto;inset-inline-start:8px;top:8px}}
@media(max-width:1100px){body.trast-modern .home-discovery .product-card__tools .product-card__compare,body.trast-modern .home-discovery .product-card__tools [data-quick-view]{display:none!important}}
@media(max-width:1100px){body.trast-modern .home-discovery .product-card__quick-buy{visibility:visible!important;opacity:1!important}}
@media(max-width:1100px){body.trast-modern .home-discovery .product-card__tools button{border-radius:50%!important;background:var(--paper)!important;border:1px solid var(--line)!important}}

@media(max-width:1100px){body.trast-modern .home-discovery .home-product-rail>.product-card--modern{background:var(--paper)!important;border:1px solid var(--line)!important;border-radius:18px!important;overflow:hidden!important}}
@media(max-width:1100px){body.trast-modern .home-discovery .product-card__visual{border:0!important;box-shadow:none!important}}
@media(max-width:1100px){body.trast-modern .home-discovery .product-card__quick-buy button{border-radius:10px!important}}
.home-pick-photo>[data-home-image-fallback] svg{width:42px;height:42px;color:var(--accent)}

/* 1.5.95 — restore the desktop card design and the previous five-column card width. */
@media(min-width:1101px){
 body.trast-modern .home-discovery .home-product-rail{grid-auto-columns:calc((100% - 64px)*.18);gap:16px!important;scroll-snap-type:x proximity;scrollbar-width:none}
 body.trast-modern .home-discovery .home-product-rail>.product-card--modern{width:100%!important;max-width:none!important;min-width:0!important;margin-inline:0!important}
 body.trast-modern .home-discovery .product-card__visual{border-color:var(--line);box-shadow:0 3px 12px #36172405}
 body.trast-modern .home-discovery .product-card--modern:is(:hover,:focus-within) .product-card__visual{border-color:#d99bb5;box-shadow:0 6px 18px #4e143d0b}
 .home-head-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}
 .home-head-actions>a{display:inline-flex;align-items:center;gap:6px;font-size:13px}
 .home-rail-navigation{display:flex;align-items:center;gap:7px;direction:rtl}
 .home-rail-navigation button{display:grid;place-items:center;width:38px;height:38px;min-height:38px;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink);padding:8px;cursor:pointer;transition:background .2s,border-color .2s}
 .home-rail-navigation button:hover:not(:disabled){background:var(--soft);border-color:var(--accent);color:var(--accent)}
 .home-rail-navigation button:disabled{opacity:.3;cursor:default}
 .home-rail-navigation svg{width:18px;height:18px}
}
@media(max-width:1100px){.home-head-actions{display:contents}.home-rail-navigation{display:none}}

@media(min-width:1101px){
 body.trast-modern .home-discovery .home-product-rail{cursor:grab;user-select:none}
 body.trast-modern .home-discovery .home-product-rail img{-webkit-user-drag:none}
 body.trast-modern .home-discovery .home-product-rail.is-mouse-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto!important}
 .home-product-rail.is-mouse-dragging a{cursor:grabbing}
}
/* Compact desktop category shortcuts, preserving their existing order and layout. */
@media(min-width:1101px){
 .home-discovery .home-picks{padding-block:20px}
 .home-picks .section-head{margin-bottom:14px}
 .home-picks-grid{gap:12px}
 .home-pick{padding:10px 16px;gap:14px;border-radius:16px}
 .home-pick-photo{width:60px;height:64px;border-radius:12px}
 .home-pick-photo img{padding:5px}
 .home-pick b{font-size:14px;line-height:1.7}
 .home-pick small{margin-top:3px;font-size:11px}
 .home-pick-photo>[data-home-image-fallback] svg{width:32px;height:32px}
}
