/* Focused refinements over Raff's unmodified storefront layout. */
.merchant-card,.builder-active .merchant-card{padding:10px 12px;border-radius:12px;margin-block:10px 12px!important}
.merchant-logo,.builder-identity.builder-identity:not(.builder-header):not(.builder-footer):not(.builder-menu) .builder-logo{width:48px;height:48px;flex-basis:48px;border-radius:10px}
.builder-identity.builder-identity{gap:10px;align-items:flex-start}
.merchant-info h1,.merchant-card .builder-name{font-size:15px;line-height:1.4;margin:0}
.merchant-card .builder-identity p,.merchant-info p{font-size:12px;line-height:1.35;margin:3px 0;white-space:normal}
.merchant-card .social,.merchant-info .social{gap:4px;margin:2px 0 0!important}
.merchant-card .social a{min-width:44px;width:44px;height:44px;min-height:44px;padding:12px;border:0;background:transparent;box-shadow:none}
.merchant-card .social img,.merchant-card .social svg{width:20px;height:20px}
.product,.builder-active .product,[data-layout=cards] .product{border:1px solid color-mix(in srgb,var(--brand) 26%,#dce2e7);box-shadow:0 2px 6px #102f5305;border-radius:12px}
.product .body{border-top:1px solid color-mix(in srgb,var(--brand) 18%,#e5e9ed)}
.category-section,.builder-active .category-section{border:1px solid color-mix(in srgb,var(--brand) 22%,#e0e5ec);border-radius:12px;padding:14px 12px;margin-block:18px!important;background:var(--surface)}
.category-section>h2{margin:0 0 12px;font-size:17px}
.categories{gap:8px}.categories button+button{border-inline-start:1px solid var(--stroke);border-radius:0}
.category-photo{width:54px;height:54px}
.collection,#catalog,.builder-active [data-builder-block="catalog"]{padding-top:18px;border-top:1px solid color-mix(in srgb,var(--brand) 24%,#dce2e7)}
.collection+.collection{margin-top:24px}
.demo-notice{font-size:11px!important;padding:5px 8px!important;margin:4px 0!important;text-align:center;color:var(--muted)}
@media(max-width:380px){.merchant-card .builder-name{font-size:14px}.merchant-card,.builder-active .merchant-card{padding:9px 10px}.categories{gap:4px}}

/* Horizontal identity: name and description share one flexible column. */
.merchant-row,.builder-active .merchant-card .builder-identity{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;text-align:start}
.merchant-card .identity-copy,.merchant-card .merchant-info{flex:1;min-width:0}
.merchant-card .builder-identity>.social,.merchant-row>.social{flex:0 0 auto;display:flex;align-items:center;flex-wrap:nowrap;gap:2px;margin:0!important;max-width:40%;overflow-x:auto}
.merchant-card .social a{flex:0 0 40px;width:40px;min-width:40px;height:44px;padding:10px;border-radius:10px}
.merchant-card .builder-identity p{margin:3px 0 0}
#headerSearch{flex-shrink:0}body>header{column-gap:8px}
.header-search-form{display:flex;gap:10px;margin-top:20px;align-items:stretch}
.header-search-form input{flex:1;min-width:0;border:1px solid var(--stroke);border-radius:10px;padding:12px;font:inherit;background:var(--surface);color:var(--ink)}
.header-search-form button{display:flex;gap:6px;align-items:center;padding:12px 16px;white-space:nowrap}
.header-search-form input:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
/* Extra card space without scaling images, prices, or controls. */
.product,.builder-active .product,[data-layout=cards] .product{padding-block:8px}
.product .body,[data-layout=cards] .product .body{padding-bottom:18px}
@media(max-width:380px){.merchant-row,.builder-active .merchant-card .builder-identity{gap:6px}.merchant-card .social a{width:36px;min-width:36px;flex-basis:36px;padding:8px}.merchant-card .builder-logo,.merchant-logo{max-width:44px;max-height:44px;flex-basis:44px}}

/* Approved inset-image cards. */
.product,.builder-active .product,[data-layout=cards] .product{padding:10px;border:1px solid color-mix(in srgb,var(--brand) 18%,#e0e5ed);border-radius:16px;box-shadow:0 4px 12px #1727450a!important;background:var(--surface)}
.product .product-visual,[data-layout=cards] .product .product-visual{padding:0;position:relative}
.product .product-image,[data-layout=cards] .product .product-image{border-radius:12px!important;overflow:hidden}
.product .product-image img{border-radius:12px}
.product .body,[data-layout=cards] .product .body{padding:10px 0 2px;border-top:0;gap:10px}
.product .quick-view{margin-bottom:0;min-height:42px;border-radius:10px}
.product-badges{inset:6px 6px auto;gap:4px}
.category-section .categories button+button{border-inline-start:0}
.collection-rail{padding-bottom:12px;gap:12px}
.section-title{margin-bottom:16px}.collection+.collection{margin-top:24px}
/* Drawer header always carries the merchant identity, independent of builder placement. */
#dialog.menu-drawer{padding:20px;width:min(360px,92vw);max-width:92vw;background:var(--surface);box-sizing:border-box}
#dialog.menu-drawer .close{float:none;margin:0 0 12px auto;flex-shrink:0}
[dir=ltr] #dialog.menu-drawer .close{margin:0 auto 12px 0}
.drawer-content{display:flex;flex-direction:column;min-height:calc(100dvh - 100px)}
.drawer-identity{padding:0 0 18px;border-bottom:1px solid var(--stroke)}
.menu-drawer .menu-brand{display:flex!important;align-items:center;gap:12px;padding:4px 0 12px}
.menu-drawer .menu-brand img{width:52px;height:52px;flex:0 0 52px;object-fit:cover;border-radius:12px;border:1px solid var(--stroke)}
.menu-drawer .menu-brand h2{font-size:16px;line-height:1.45;margin:0;text-align:start;min-width:0}
.drawer-identity .social{display:flex;justify-content:flex-start;flex-wrap:wrap;gap:8px;margin:0}
.drawer-identity .social a{width:42px;min-width:42px;height:42px;padding:10px;border-radius:10px}
.drawer-identity .social a span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.menu-links{padding-block:8px 20px}.menu-links button{padding:12px 0;min-height:48px;font-size:14px}
.drawer-bottom{margin-top:auto;padding-top:18px}.drawer-bottom small{display:block;text-align:center;color:var(--muted);font-size:11px;margin-top:14px}
.policies,.menu-drawer .policies{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:wrap;gap:0;padding:16px 0;margin-top:20px;border-top:1px solid var(--stroke)}
.policies button{font:inherit;font-size:12px;min-height:36px;padding:6px 12px;border:0;background:transparent;box-shadow:none;border-radius:0;color:var(--ink)}
.policies button+button{border-inline-start:1px solid var(--stroke)}
.drawer-bottom .policies{margin:0;padding:12px 0;gap:4px 0}.drawer-bottom .policies button{font-size:12px;padding:6px 9px}
body>footer{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 16px;padding:16px;color:var(--muted);font-size:12px;border-top:1px solid var(--stroke)}
body>footer button{font:inherit;padding:4px 0;border:0;background:transparent;box-shadow:none;color:var(--muted);min-height:32px}

/* Larger product image area with unchanged typography and controls. */
.product,.builder-active .product,[data-layout=cards] .product{padding:6px}
:root[data-cards] .product{border-bottom-width:1px!important;box-shadow:0 3px 10px #17274508!important}
.product .body,[data-layout=cards] .product .body{padding:10px 4px 6px}
.grid,.builder-active .grid:not(.skeleton-grid){column-gap:12px}
@media(max-width:699px){.collection-rail>.product{flex-basis:calc((100% - 12px)/2)}.collection-rail{gap:12px}}

/* Compact app-like category tiles and direct contact marks. */
.category-section,.builder-active .category-section{padding:0;border:0;background:transparent;box-shadow:none}
.category-section .categories{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;overflow:visible}
.category-section .categories button,.category-section .categories button+button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;width:100%;padding:10px 5px;border:1px solid var(--stroke);border-radius:13px;background:var(--surface);box-shadow:0 2px 7px #17274506;font-size:13px;line-height:1.25;color:var(--ink)}
.category-section .categories .category-photo{width:46px;height:46px;min-width:46px;flex-basis:46px;border-radius:50%;object-fit:cover}
.category-section .categories button.active{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 8%,white);color:var(--brand)}
.category-section .categories button.active .all-categories{background:var(--brand);color:white;border-color:var(--brand)}
.merchant-card .merchant-logo,.merchant-card .builder-identity.builder-identity .builder-logo{width:64px;height:64px;max-width:64px;max-height:64px;flex:0 0 64px;border-radius:13px}
.merchant-card .social a,.drawer-identity .social a,.social .copy-store-link{display:inline-flex;align-items:center;justify-content:center;width:36px;min-width:36px;height:44px;min-height:44px;flex:0 0 36px;padding:5px;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;color:var(--brand)}
.merchant-card .social img,.merchant-card .social svg,.drawer-identity .social img,.drawer-identity .social svg{width:26px;height:26px}
.merchant-card .builder-identity>.social,.merchant-row>.social{max-width:108px;flex-wrap:wrap;overflow:visible;gap:0}
@media(min-width:600px){.category-section .categories{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}}
.merchant-card .builder-logo,.merchant-card .merchant-logo{width:64px!important;height:64px!important;max-width:64px!important;max-height:64px!important;flex-basis:64px!important}

/* I1: one-line identity, small single social rail, product-style categories. */
.builder-active .merchant-card.merchant-row{display:block}
.builder-active .merchant-card .builder-identity:not(:has(>.builder-logo)){grid-template-columns:minmax(0,1fr)}
.drawer-identity .social{flex-wrap:nowrap;overflow-x:auto;gap:6px}
.merchant-row,.builder-active .merchant-card .builder-identity{display:grid;grid-template-columns:64px minmax(0,1fr);gap:6px 10px;width:100%}
.merchant-card .builder-name,.merchant-info h1{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-size:15px}
.merchant-card .identity-copy,.merchant-card .merchant-info{min-width:0}
.merchant-card .builder-identity>.social,.merchant-row>.social{grid-column:1/-1;display:flex;flex-wrap:nowrap;max-width:100%;width:100%;overflow-x:auto;justify-content:flex-start;gap:6px;margin:0!important;padding:2px 0;scrollbar-width:thin}
.social a[href^="tel:"]{color:#17a960!important}.social .copy-store-link{color:#304ec5}
.merchant-card .social a,.merchant-card .social .copy-store-link{flex:0 0 38px;width:38px;min-width:38px;padding:7px;height:40px;min-height:40px}
.merchant-card .social img,.merchant-card .social svg{width:24px;height:24px}
.category-section .categories{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px}
.category-section .categories button,.category-section .categories button+button{padding:3px;gap:0;justify-content:flex-start;border-radius:9px;overflow:hidden}
.category-section .categories .category-photo{width:100%;height:auto;aspect-ratio:1;min-width:0;flex-basis:auto;max-width:100%;border-radius:6px;border:0;box-shadow:none;object-fit:cover}
.category-section .categories button>span:last-child:not(.category-photo){padding:6px 2px;font-size:12px;line-height:1.25;min-height:28px;max-width:100%;overflow-wrap:anywhere}
.category-section .all-categories{display:flex;align-items:center;justify-content:center}
@media(min-width:700px){.collection-rail>.product{flex-basis:calc((100% - 12px)/2)}}

/* J4: theme paint only on existing header/identity geometry. */
body>header,.merchant-card,.builder-active .merchant-card{background:var(--brand-fill,var(--brand));color:var(--brand-ink,#fff);border-color:color-mix(in srgb,var(--brand-ink,#fff) 22%,transparent)}
body>header button:not(.copy-store-link),body>header .builder-name,body>header .builder-identity p,.merchant-card h1,.merchant-card .builder-name,.merchant-card .merchant-info p,.merchant-card .builder-identity p{color:var(--brand-ink,#fff)}
body>header button:not(.copy-store-link){background:transparent;border-color:color-mix(in srgb,var(--brand-ink,#fff) 30%,transparent)}
body>header #cartCount{background:var(--brand-ink,#fff);color:var(--brand)}
body>header button:focus-visible,.merchant-card a:focus-visible,.merchant-card button:focus-visible{outline-color:var(--brand-ink,#fff)}
.category-section .categories button.active .all-categories{background:var(--brand-fill,var(--brand));color:var(--brand-ink,#fff)}
/* Brand marks stay flat and keep their original colours everywhere. */
.social a,.social a[data-platform],.social .copy-store-link{background:transparent!important;border:0!important;box-shadow:none!important}
.social .brand-mark,.social svg{filter:none;transform:none}
.social .copy-store-link{color:#304ec5!important}
body>footer{max-width:none;width:100%;background:var(--brand-fill,var(--brand));color:var(--brand-ink,#fff);border:0;padding:20px 16px}
.raff-wordmark{display:block;width:88px;height:auto;flex:none}
.has-floating-cart>footer{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
#privacyPreferences{display:block;margin:12px auto 0;border:0;background:transparent;color:var(--muted);font-size:12px}
.category-section,#catalog{scroll-margin-top:calc(var(--store-header-height,80px) + 12px)}
/* Accessible, native-radio sorting inside the themed sheet; no OS dropdown. */
#dialog.filter-sheet{padding:20px;overscroll-behavior:contain}
.filter-sheet::before{content:"";display:block;width:36px;height:4px;border-radius:4px;margin:0 auto 16px;background:var(--stroke)}
.filter-heading{display:flex;align-items:center;gap:10px;margin-bottom:16px;min-height:36px}
.filter-heading h2{margin:0;font-size:20px}
.filter-heading-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;color:var(--brand);background:var(--soft)}
.sort-choices{border:0;margin:0;padding:0;display:grid;gap:8px;min-width:0}
.sort-choices legend{font-size:13px;color:var(--muted);padding:0;margin-bottom:10px}
.filter-sheet .sort-choice{position:relative;display:flex;align-items:center;gap:10px;min-height:52px;padding:10px 12px;border:1px solid var(--stroke);border-radius:12px;background:var(--bg);color:var(--ink);cursor:pointer;font-size:14px;line-height:1.5}
.sort-choice input,.filter-toggle input{position:absolute;opacity:0;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:0}
.sort-choice-icon{display:flex;align-items:center;color:var(--muted)}
.sort-choice-icon svg{width:20px;height:20px}
.sort-choice-label{flex:1;min-width:0}
.sort-radio{display:grid;place-items:center;flex:none;width:20px;height:20px;border:1.5px solid var(--muted);border-radius:50%}
.sort-choice:has(input:checked){border-color:var(--brand);background:color-mix(in srgb,var(--brand) 9%,var(--bg))}
.sort-choice:has(input:checked) .sort-choice-icon{color:var(--brand)}
.sort-choice input:checked~.sort-radio{border-color:var(--brand);background:var(--brand);color:var(--brand-ink)}
.sort-choice input:checked~.sort-radio::after{content:"";width:5px;height:9px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);margin-top:-2px}
.sort-choice:has(input:focus-visible),.filter-toggle:has(input:focus-visible){outline:2px solid var(--brand);outline-offset:3px}
.filter-toggles{display:grid;gap:0;margin:4px 0}
.filter-sheet .filter-toggle{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;font-size:14px;cursor:pointer}
.filter-toggle+.filter-toggle{border-top:1px solid var(--stroke)}
.toggle-track{width:42px;height:24px;flex:none;border-radius:20px;background:var(--muted);border:1px solid var(--stroke);padding:2px;display:flex;align-items:center;direction:ltr}
.toggle-track::before{content:"";width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .15s}
.filter-toggle input:checked+.toggle-track{background:var(--brand);border-color:var(--brand)}
.filter-toggle input:checked+.toggle-track::before{transform:translateX(18px);background:var(--brand-ink,#fff)}
.filter-actions{display:grid;gap:8px}
.filter-actions button{min-height:46px;width:100%;font-weight:700}
@media(max-width:600px){#dialog.filter-sheet{padding:16px 20px max(20px,env(safe-area-inset-bottom));max-height:92dvh}}

/* K3: persistent category navigation, merchant home links and readable chrome. */
.category-section,.builder-active .category-section{position:sticky;top:var(--store-header-height,0px);z-index:4;background:var(--bg,#fff);padding:10px 0!important;border-radius:0;box-shadow:0 6px 12px #00000008}
.category-section>h2{font-size:16px;margin-bottom:8px}
.category-section .categories{max-height:30vh;max-height:30dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px}
.category-section .category-photo{max-height:64px;object-fit:cover}
.category-section .categories button{min-height:44px}
.arrange-mode .category-section{position:relative;top:auto}
.store-home{color:inherit;text-decoration:none;border-radius:8px}
.store-home:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.identity-logo-link{display:block;flex:none;line-height:0;width:max-content;max-width:100%}
.merchant-card .identity-logo-link{width:64px;height:64px}
.builder-active .merchant-card .builder-identity:has(.builder-logo){grid-template-columns:64px minmax(0,1fr)}
.menu-brand .identity-logo-link{flex:0 0 52px}
body>header #cartButton{background:transparent!important;color:var(--brand-ink,#fff)!important;border:1px solid color-mix(in srgb,var(--brand-ink,#fff) 35%,transparent)}
body>header #cartCount{background:var(--brand-ink,#fff);color:var(--brand);border:1px solid var(--brand)}
.merchant-card .social a,.merchant-card .social .copy-store-link,.builder-header .social a,.builder-header .social .copy-store-link{background:#ffffff!important;border-radius:10px;color:#304ec5!important}
.store-contact>h2{text-align:center;font-size:16px;margin:0 0 14px;color:var(--ink)}
body>footer{gap:8px;padding-block:16px}
.raff-wordmark{width:68px}
.raff-powered{font-size:13px;line-height:1.5}
/* No merchant colours are known at first paint. Never flash Raff blue or cache another store's theme. */
:root:not([data-theme-ready]){--brand:#5e6874;--brand-fill:#f5f6f8;--brand-ink:#34404c;--bg:#ffffff;--soft:#f2f3f5;--surface:#ffffff}
:root:not([data-theme-ready]) body>header,:root:not([data-theme-ready]) body>footer{background:#f5f6f8;color:#34404c}

/* K4: flush square catalogue photography; inner spacing belongs to text only. */
.product,.builder-active .product,[data-layout=cards] .product{padding:0;overflow:hidden}
.product .product-visual,[data-layout=cards] .product .product-visual{padding:0}
.product .product-image,.builder-active .product .product-image,[data-layout=cards] .product .product-image{padding:0!important;border-radius:0!important;aspect-ratio:1;overflow:hidden;margin:0}
.product .product-image img,.builder-active .product .product-image img,[data-layout=cards] .product .product-image img{display:block;width:100%;height:100%!important;max-height:none;aspect-ratio:1;object-fit:cover;object-position:center;border-radius:0!important}
.product .body,.builder-active .product .body,[data-layout=cards] .product .body{padding:12px 10px 10px;gap:10px}
.product h3,.builder-active .product h3{height:3em;min-height:3em;line-height:1.5;margin:0;flex-shrink:0}
.product-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.5;max-height:3em}
.product .prices{min-height:2.5em;margin:0}
.product .quick-view{margin-top:auto}
.category-section .categories button,.category-section .categories button+button{padding:0;overflow:hidden}
.category-section .categories .category-photo{padding:0;border:0;border-radius:0;box-shadow:none;width:100%;height:auto;max-height:none;aspect-ratio:1;object-fit:cover;object-position:center}
/* A fixed ratio scales with available width; old saved banner heights cannot crop it. */
#banners .banner-slide{aspect-ratio:12 / 5;height:auto;overflow:hidden}
#banners .banner-content{min-height:0;height:100%;width:100%}
#banners .banner-content img,.builder-active #banners .banner-content img{width:100%;height:100%!important;max-height:none;aspect-ratio:12 / 5;object-fit:contain;object-position:center}

/* L2 editor-only drag feedback and full-store overview. */
.arrange-mode .arrange-grip{touch-action:none;cursor:grab;z-index:5}
.arrange-mode [data-builder-block],.arrange-mode [data-category]{transition:box-shadow .18s ease,opacity .18s ease}
.arrange-mode .arrange-dragging{box-shadow:0 8px 24px #0003;opacity:.85}
.arrange-mode [data-builder-type=identity],.arrange-mode [data-builder-type=search],.arrange-mode [data-builder-type=contact],.arrange-mode [data-builder-type=policies]{outline:none;padding-top:0!important}
.preview-overview{overflow:hidden;margin:0!important}.preview-overview>header{position:relative!important}.preview-overview .demo-notice{display:none}

/* A compact representative storefront still uses the actual renderer and theme tokens. */
.preview-overview .collection~.collection,.preview-overview #catalog{display:none}
.preview-overview #root{padding:8px!important}
.preview-overview .merchant-card{padding:8px!important;margin:4px 0!important}
.preview-overview .builder-logo{width:32px!important;height:32px!important}
.preview-overview .merchant-card p,.preview-overview .merchant-card .social{display:none}
.preview-overview #search{display:none}
.preview-overview #banners{margin:4px 0!important}
.preview-overview #banners img{max-height:80px!important;object-fit:cover}
.preview-overview .category-section{padding-block:4px!important;margin-block:4px!important;position:static!important}
.preview-overview .category-section img{max-height:38px!important}
.preview-overview .collection{margin-block:4px!important;padding-block:4px!important}
.preview-overview .section-title{margin:4px 0!important}
.preview-overview .product-image{height:80px!important;aspect-ratio:auto!important}
.preview-overview .product .body{padding:6px!important}
.preview-overview .product h3{font-size:12px!important;min-height:0!important;margin:2px 0!important}
.preview-overview .prices{margin:3px 0!important;font-size:12px!important}
.preview-overview .quick-view{min-height:25px!important;padding:3px!important;font-size:10px!important}
.preview-overview .store-contact{margin:4px 0!important;padding:4px!important}
.preview-overview .store-contact h2,.preview-overview .store-contact .social{margin:2px!important}
.preview-overview footer{padding:4px!important;margin:0!important}

/* L4: storefront controls follow merchant colours. */
#cartCount[hidden]{display:none!important}
.product,.builder-active .product,[data-layout=cards] .product{background:#fff;color:#18283c}
.product .body,.builder-active .product .body,[data-layout=cards] .product .body{padding:10px;gap:8px;display:flex;flex-direction:column}
.product h3,.builder-active .product h3{margin:0;min-height:0;line-height:1.45}
.product .product-title{color:#18283c}
.product .prices{margin:0;min-height:0;gap:4px 8px}
.product .prices strong{color:var(--price-ink,var(--brand));font-weight:800}
.prices del{color:#b44343;text-decoration-color:currentColor;font-size:.78em}
.product .quick-view{margin-top:4px;background:var(--brand);color:var(--brand-ink);border-radius:10px}
.section-title .text-link{border:1px solid var(--brand);border-radius:10px;color:var(--price-ink,var(--brand));padding:8px 12px;min-height:40px}
#filterButton,.filter-sheet .sort-choice:has(input:checked){background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}
.filter-sheet .sort-choice:has(input:checked) .sort-choice-icon{color:inherit}
.filter-toggle input:checked~.toggle-track{background:var(--brand)}
.floating-cart,.builder-active .floating-cart{background:var(--brand-fill,var(--brand));color:var(--brand-ink);border:0;border-radius:20px;padding:12px;gap:0}
.floating-cart-total{border-color:currentColor}.floating-cart-total small{color:inherit;opacity:.8}
.floating-cart-label b,.floating-cart-action{background:var(--brand-ink);color:var(--brand);border:0}
.floating-cart-action{font-weight:700;border-radius:12px}
.social a,.social a[data-platform],.social .copy-store-link,.merchant-card .social a,.merchant-card .social .copy-store-link,.builder-header .social a,.builder-header .social .copy-store-link{width:42px;min-width:42px;height:42px;min-height:42px;flex:0 0 42px;display:inline-flex;align-items:center;justify-content:center;padding:9px;border-radius:50%!important;border:1px solid #ffffff80!important;background:var(--brand)!important;color:var(--brand-ink)!important;box-shadow:0 2px 5px #00000015!important}
.social a[data-platform=whatsapp]{background:#168c4c!important}.social a[data-platform=instagram]{background:#b62b85!important}.social a[data-platform=facebook]{background:#1877f2!important}.social a[data-platform=telegram]{background:#1683b5!important}.social a[data-platform=youtube]{background:#c52025!important}.social a[data-platform=tiktok],.social a[data-platform=x]{background:#181818!important}.social a[data-platform=snapchat]{background:#ffed00!important}
.social a[data-platform] .brand-mark{object-fit:contain;border-radius:50%;background:#fff;padding:2px;width:26px;height:26px}
.social a span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.menu-links{display:grid;gap:8px}.menu-links button{display:flex;align-items:center;gap:12px;border:1px solid var(--stroke);background:var(--surface);border-radius:12px;padding:10px;min-height:58px;text-align:start}
.menu-links button img{width:42px;height:42px;object-fit:cover;border-radius:9px;flex:none}.menu-links button span{flex:1;overflow-wrap:anywhere}.menu-links button>svg{width:18px;height:18px;margin-inline-start:auto}.menu-links button.selected{background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}
.variant-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.variant-cards[hidden]{display:none}.variant-cards button{display:grid;gap:4px;text-align:start;padding:12px;border-radius:12px;min-width:0;overflow-wrap:anywhere;background:var(--surface);border:1px solid var(--stroke)}.variant-cards button[aria-pressed=true]{background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}.variant-cards button:disabled{background:var(--soft);color:var(--muted);border-style:dashed}.variant-cards small{font-size:12px}
.dialog-toast{position:sticky;bottom:8px;z-index:20;color:#fff;padding:12px;border-radius:12px;margin-top:8px;box-shadow:0 3px 12px #0003}
#dialog.search-sheet{align-self:start;margin-top:max(16px,env(safe-area-inset-top));max-height:calc(100dvh - 32px);width:min(560px,calc(100% - 24px))}.header-search-form{display:flex;gap:8px}.header-search-form input{min-width:0;flex:1}.search-suggestion{display:flex;width:100%;align-items:center;gap:12px;text-align:start;border:0;border-bottom:1px solid var(--stroke);border-radius:0;background:transparent;padding:12px 0}.search-suggestion img{width:52px;height:52px;border-radius:10px;object-fit:cover}.search-suggestion span{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}.search-suggestion small{color:var(--price-ink,var(--brand))}.search-suggestion:focus-visible,.search-suggestion:hover{background:var(--soft)}#allSearchResults{width:100%;margin-top:12px}.suggestion-heading{color:var(--muted);font-size:13px}
#heroProduct{cursor:zoom-in}
dialog.image-viewer{position:fixed;inset:0;margin:0;border:0;border-radius:0;padding:0;width:100vw;max-width:none;height:100dvh;max-height:none;background:#101217;color:#fff;overflow:hidden}
.image-viewer::backdrop{background:#101217}.viewer-stage{position:absolute;inset:72px 0 120px;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;user-select:none}.viewer-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transform-origin:center;pointer-events:none;will-change:transform}
.viewer-tools{position:absolute;top:max(12px,env(safe-area-inset-top));left:12px;right:12px;z-index:2;display:flex;justify-content:space-between;direction:rtl}.viewer-tools button,.viewer-bottom button{background:#ffffff1f;color:#fff;border:1px solid #ffffff50;border-radius:12px;min-height:44px;min-width:44px;padding:10px}.viewer-bottom{position:absolute;bottom:calc(44px + env(safe-area-inset-bottom));left:12px;right:12px;display:flex;justify-content:center;gap:8px}.viewer-status{position:absolute;bottom:env(safe-area-inset-bottom);left:12px;right:12px;text-align:center;font-size:12px}.viewer-status a{color:#fff;text-decoration:underline}
@media(max-width:360px){.floating-cart{left:8px;right:8px;padding:10px 8px}.floating-cart-action{font-size:12px;padding:10px 8px}.floating-cart-label{font-size:12px}.variant-cards{gap:6px}}
.product .quick-view,#filterButton,.filter-sheet .sort-choice:has(input:checked),.variant-cards button[aria-pressed=true],.menu-links button.selected{color:var(--solid-ink,var(--brand-ink))}
.social .copy-store-link{color:var(--solid-ink,var(--brand-ink))!important}
.product h3,.builder-active .product h3{height:auto}
.social a[data-platform] .brand-mark{background:transparent;padding:0;filter:brightness(0) invert(1)}
.social a[data-platform=snapchat] .brand-mark{filter:brightness(0)}
/* Preserve contrast in the list even when the merchant selects a very pale accent. */
.search-suggestion small{color:var(--ink)}
.social a:not([data-platform]){color:var(--solid-ink,var(--brand-ink))!important}
/* L5: compact checkout and consistent confirmation. */
.l5-cart-row{display:grid!important;grid-template-columns:68px minmax(0,1fr);align-items:start;gap:12px;padding:12px;margin:12px 0}
.l5-cart-row>img{width:68px;height:78px;object-fit:cover;border-radius:10px}
.l5-cart-row>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;min-width:0}
.l5-cart-row h3{grid-column:1/-1;margin:0;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.l5-cart-row p{margin:0;font-size:12px;align-self:center;overflow-wrap:anywhere}
.l5-cart-row strong{font-size:16px;white-space:nowrap;align-self:center;color:var(--price-ink,var(--brand))}
.l5-cart-row .cart-controls{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}
.l5-cart-row .quantity{display:flex;flex-wrap:nowrap;width:auto;direction:ltr}
.l5-cart-row .quantity button,.l5-cart-row .quantity input{width:38px!important;min-width:0;height:38px;min-height:38px;padding:3px}
.l5-cart-row .cart-remove{width:38px;height:38px;min-height:38px;padding:8px;border:0;background:#fff1f3;color:#b3263e}
#checkoutPage textarea{resize:none;min-height:88px;overflow:auto}
.summary>.order-total,#checkoutPage .summary>.order-total{background:#e3f4e9;color:#17613d;border:1px solid #c7e6d4;border-radius:12px;padding:14px!important;margin-top:12px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:18px}
.order-total b:last-child{white-space:nowrap}
#checkoutPage .success .check{width:68px;height:68px;background:#23945c;color:#fff;box-shadow:0 5px 16px #23945c20}
#checkoutPage .success .check svg{width:35px;height:35px}
#checkoutPage .checkout-note{margin:24px 8px;line-height:1.8;font-size:13px}
#continueShopping{background:var(--brand);color:var(--solid-ink,#fff);border-color:var(--brand);font-weight:700;margin-top:4px}
#verification{display:flex;justify-content:center;margin-top:18px;max-width:100%}
#verificationStatus{color:#17613d;text-align:center;font-size:13px;margin:14px 0 0}
#verificationStatus[hidden]{display:none}
#checkoutPage .review-product{gap:10px;font-size:14px}
#checkoutPage .review-product img{width:56px;height:64px;flex-shrink:0}
@media(max-width:360px){.l5-cart-row{grid-template-columns:54px minmax(0,1fr);gap:9px;padding:10px}.l5-cart-row>img{width:54px;height:64px}.l5-cart-row strong{font-size:14px}.l5-cart-row h3{font-size:14px}}
/* M1: native scrolling, compact curated rails and unframed brand assets. */
body:not(.arrange-mode) .categories,body:not(.arrange-mode) .categories *,body:not(.arrange-mode) .category-section{touch-action:pan-x pan-y pinch-zoom!important;overscroll-behavior-y:auto}
.collection-rail,.banner-track{touch-action:pan-x pan-y pinch-zoom;overscroll-behavior-y:auto;scroll-snap-type:x proximity}
header{backdrop-filter:none}
.collection-rail>.compact-product{flex:0 0 calc((100% - 24px)/2.5);border-radius:14px;overflow:hidden;border:1px solid var(--stroke,#e1e5ee);box-shadow:none}
.compact-product .body{padding:10px!important;gap:4px;min-height:96px;padding-inline-end:38px!important}
.compact-product h3{font-size:14px;line-height:1.4;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.compact-product .prices{gap:2px 6px}.compact-product .prices strong{font-size:15px}.compact-product .prices del{font-size:11px;color:#a75157}
.compact-product .compact-add{position:absolute;inset-inline-end:5px;bottom:8px;width:32px;min-height:36px;padding:0;background:var(--brand);color:var(--solid-ink,#fff);font-size:24px;border:0;border-radius:10px}
.section-title .text-link{background:var(--brand);color:var(--solid-ink,#fff);border-color:var(--brand);border-radius:12px;padding:8px 14px}
.cart-summary .order-total+div{margin-top:20px!important;padding-top:16px!important;border-top:1px solid #e0e5ec!important}
.social a,.social a[data-platform],.social .copy-store-link,.merchant-card .social a,.merchant-card .social .copy-store-link,.builder-header .social a,.builder-header .social .copy-store-link,.drawer-identity .social a{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;width:40px;min-width:40px;flex-basis:40px;height:44px;padding:10px;color:var(--ink)!important}
.merchant-card .social a:not([data-platform]),.merchant-card .social .copy-store-link,.builder-header .social a:not([data-platform]){color:inherit!important}
.social a[data-platform] .brand-mark,.social .brand-mark,.social svg{filter:none!important;background:transparent!important;padding:0!important;border:0!important;border-radius:0!important;width:23px!important;height:23px!important;box-sizing:border-box}
.verification-status{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin:14px 0;color:#18794e}
.verify-symbol{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#21865a;color:white;font-size:16px}
.is-loading{color:var(--brand)}.is-loading .verify-symbol{background:transparent;border:2px solid #dce3f5;border-top-color:var(--brand);animation:m1-spin .8s linear infinite}
@keyframes m1-spin{to{transform:rotate(360deg)}}
.transfer-account{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--brand);border-radius:12px;padding:10px;margin:14px 0;background:var(--surface,#fff)}
.transfer-account b{direction:ltr;overflow-wrap:anywhere}.transfer-account button{flex-shrink:0;background:transparent;border:0;color:var(--brand)}
.transfer-instructions{white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0}.transfer-help{display:inline-flex;align-items:center;gap:8px;color:#16834b;text-decoration:none;margin:12px 0}.payment-logo{width:36px;height:36px;object-fit:contain}.receipt-upload{display:block;padding:14px;border:1px dashed var(--brand);border-radius:12px;margin-top:16px}.receipt-upload input{padding:8px;max-width:100%}
@media(min-width:700px){.collection-rail>.compact-product{flex-basis:calc((100% - 48px)/4.5)}}
body:not(.arrange-mode) .category-section .categories{max-height:none;overflow:visible;overscroll-behavior:auto}

.search-entry{position:relative;display:flex;align-items:center;min-width:0;flex:1}
.search-entry input{width:100%;padding-inline-end:44px}
.search-entry input::-webkit-search-cancel-button{appearance:none}
.search-entry .search-clear{position:absolute;inset-inline-end:2px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:22px;cursor:pointer}
.search-entry .search-clear[hidden]{display:none}
.zone-entry>span{position:absolute;inset-inline-start:12px;display:flex;pointer-events:none}
.zone-entry>span svg{width:18px;height:18px}
.zone-entry #zoneSearch{padding-inline:38px 44px}

/* Named variant choices share one price and one gallery. */
.variant-cards:not([hidden]){display:flex;flex-wrap:wrap;gap:8px}
.variant-cards button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;padding:8px 16px;border-radius:12px}
.variant-cards button[aria-pressed=true]::after{content:'✓';font-weight:700}
#variantPhotos[hidden]{display:none}
#heroProduct{touch-action:pan-y pinch-zoom}

/* A square crop of the real storefront components inside the colour editor. */
body.preview-palette{width:100%;height:100dvh;min-height:0;margin:0!important;overflow:hidden;display:flex;flex-direction:column}
.preview-palette>header{position:static!important;min-height:38px;height:10%;padding:3px 10px!important;flex:none}
.preview-palette .header-icon,.preview-palette #cartButton{width:32px;height:32px;min-height:30px}
.preview-palette #root{box-sizing:border-box;width:100%;max-width:none;margin:0;min-height:0;flex:1;padding:6px 10px!important;display:flex;flex-direction:column;gap:5px}
.preview-palette #root>:not(.merchant-card):not(.category-section):not(.palette-sample),.preview-palette>footer,.preview-palette #floatingCart{display:none!important}
.preview-palette .category-section{position:static!important;flex:none;margin:0!important;padding:2px 0!important;order:-1}
.preview-palette .category-section h2{margin:0 0 3px;font-size:12px}
.preview-palette .categories{margin:0;padding:0;gap:5px;justify-content:start}
.preview-palette .categories button{font-size:10px;min-height:0}
.preview-palette .categories .category-photo{height:28px!important;min-height:0;aspect-ratio:auto}
.preview-palette .categories button>span:last-child{padding:1px!important}
.preview-palette #root>.palette-sample{flex:1;min-height:0;margin:0!important;padding:3px 0!important;display:flex;flex-direction:column;gap:4px}
.preview-palette .section-title{margin:0!important;min-height:22px}
.preview-palette .section-title h2{font-size:14px;margin:0}
.preview-palette .section-title button{min-height:22px!important;padding:3px 9px!important;font-size:11px}
.preview-palette .palette-sample .grid,.preview-palette .palette-sample .collection-rail{margin:0;min-height:0;flex:1;align-content:start;gap:6px}
.preview-palette .palette-sample .product:nth-child(n+3){display:none}
.preview-palette .palette-sample .product-image{height:clamp(48px,19vh,90px)!important;min-height:0!important;aspect-ratio:auto!important}
.preview-palette .palette-sample .product .body{padding:5px!important;gap:2px;min-height:0}
.preview-palette .palette-sample .product h3{min-height:0;margin:0;font-size:12px}
.preview-palette .palette-sample .prices{margin:2px 0;font-size:12px}
.preview-palette .palette-sample .quick-view{height:27px!important;min-height:27px!important;padding:2px 5px!important;margin:3px 0!important;font-size:11px}
.preview-palette .palette-sample .product-badges{font-size:9px}

.preview-palette #root>.merchant-card{order:-2;margin:0!important;padding:4px 8px!important;flex:none}
.preview-palette .merchant-card .builder-identity{display:flex!important;align-items:center;gap:6px}
.preview-palette .merchant-card .builder-name{font-size:12px}
.preview-palette .merchant-card .builder-logo,.preview-palette .merchant-card .identity-logo-link{width:26px!important;height:26px!important;max-width:26px!important;max-height:26px!important;flex:0 0 26px!important}
.preview-palette .merchant-card p,.preview-palette .merchant-card .social{display:none!important}
:root[data-layout=compact] .preview-palette .palette-sample .product:nth-child(n+2){display:none}

/* Cart occupies its own navigation entry. */
.cart-open>header,.cart-open>#root,.cart-open>footer,.cart-open>.floating-cart{display:none!important}
#cartPage{width:min(100%,680px);min-height:100dvh;margin-inline:auto;padding:18px clamp(14px,4vw,28px) calc(20px + env(safe-area-inset-bottom));background:var(--bg)}
#cartPage[hidden]{display:none}
.cart-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.cart-heading h1{font-size:clamp(20px,5vw,26px);margin:0}
#cartBack{display:inline-flex;align-items:center;gap:8px;min-height:44px;background:var(--brand);color:var(--solid-ink,#fff);border:0;padding:8px 14px}
#cartPage .l5-cart-row{width:100%;max-width:none;display:flex;align-items:center;gap:14px;margin:0 0 10px;padding:14px;border:1px solid var(--stroke);background:var(--surface);border-radius:16px}
#cartPage .cart-row>img{width:clamp(62px,17vw,84px);height:auto;aspect-ratio:1;object-fit:cover;flex:none}
#cartPage .cart-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#cartPage .cart-summary{margin:16px 0;background:var(--surface);padding:16px;border:1px solid var(--stroke);border-radius:16px}
#cartPage .fixed-action{position:sticky;inset:auto;bottom:0;background:var(--bg);padding:10px 0 max(10px,env(safe-area-inset-bottom));width:100%}
#checkout{width:100%;min-height:48px}
#cartPage .previous-order{display:block;margin-inline:auto;color:var(--brand)}
#cartPage .empty{text-align:center;padding:48px 12px}

.review-final{min-width:0}
.review-final #verification{margin:0;height:0;overflow:hidden}
.review-final #verification.interactive{height:auto;min-height:70px;margin-top:8px;overflow:visible}
.review-final #verificationStatus{margin:6px 0 0;min-height:30px;gap:7px;justify-content:flex-start}
.review-final .verify-symbol{width:19px;height:19px;font-size:13px}
.review-final #verificationStatus.is-loading{color:var(--muted)}
.review-final iframe{display:block}
.checkout-panel .receipt-upload{position:relative;text-align:start;margin:8px 0;gap:7px;cursor:pointer}
.checkout-panel .receipt-upload input[data-receipt]{position:absolute;width:1px;height:1px;min-height:0;padding:0;clip-path:inset(50%);overflow:hidden}
.receipt-picker{border:1px solid var(--brand);color:var(--brand);background:var(--surface);border-radius:10px;padding:9px 12px;justify-self:start;display:inline-flex;align-items:center;min-height:44px;font-weight:700}
.receipt-upload:focus-within .receipt-picker{outline:2px solid var(--brand);outline-offset:2px}
.receipt-status{unicode-bidi:plaintext;overflow-wrap:anywhere}
.receipt-status:empty{display:none}
.social [data-platform=whatsapp]{--tile:#168b4c}
.social [data-platform=phone]{--tile:#096685}
.social [data-platform=copy]{--tile:var(--brand)}
.social [data-platform=instagram]{--tile:#b62b85;--tile-face:linear-gradient(145deg,#684bd5,#bb297d 58%,#d87823)}
.social [data-platform=facebook]{--tile:#1768dd}
.social [data-platform=telegram]{--tile:#167daf}
.social [data-platform=youtube]{--tile:#cc2029}
.social [data-platform=tiktok],.social [data-platform=x]{--tile:#22232a}
.social [data-platform=snapchat]{--tile:#ffeb00}
body .social.social [data-platform]{width:42px;height:42px;min-width:42px;min-height:42px;flex:0 0 42px;display:inline-flex;align-items:center;justify-content:center;padding:8px;border:0!important;border-radius:12px!important;background:var(--tile-face,linear-gradient(155deg,#ffffff20,#00000009)) var(--tile,var(--brand))!important;color:white!important;box-shadow:inset 0 1px 1px #ffffff75,inset 0 -3px 1px #00000030,0 2px 3px #17233e25!important}
body .social.social [data-platform] img.brand-mark{filter:brightness(0) invert(1)!important;background:none!important}
body .social.social [data-platform=snapchat] img.brand-mark{filter:brightness(0)!important}
body .social.social [data-platform=copy]{color:var(--solid-ink,#fff)!important}
body .merchant-card .builder-identity>.social,body .merchant-row>.social,body .drawer-identity .social{gap:8px;flex-wrap:wrap;overflow:visible}
body .social.social [data-platform]:active{transform:translateY(1px)}

.dialog-toast.quantity-warning{position:sticky;top:0;bottom:auto;margin:0 0 8px;z-index:25}.quantity-warning#toast{position:fixed;top:max(10px,env(safe-area-inset-top));bottom:auto}

/* O1: soft basket, semantic sale prices, and a single summary divider. */
.floating-cart,.builder-active .floating-cart{border-radius:999px;padding:10px 16px;min-height:66px;gap:8px}
.floating-cart-total{border:0;padding-inline:4px}
.floating-cart-label{padding-inline-end:0}
.floating-cart-action{border-radius:999px;margin-inline-start:0;padding:12px 16px}
#cartPage .l5-cart-row,#cartPage .cart-summary{border-radius:24px}
#cartPage .cart-row>img{border-radius:18px}
.product .prices.is-discounted strong,.prices.is-discounted strong{color:var(--brand)}
.prices.is-discounted del,.compact-product .prices.is-discounted del{color:var(--muted)}
#checkoutPage .review-product.last-review-product{border-bottom:0}
#backToTop{position:fixed;left:10px;top:50%;transform:translateY(-50%);z-index:34;width:44px;height:44px;padding:10px;display:grid;place-items:center;border:1px solid var(--stroke);border-radius:14px;background:var(--surface,#fff);color:var(--brand);box-shadow:0 4px 16px #102f5320}
#backToTop svg{width:24px;height:24px}
#backToTop:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.checkout-open #backToTop,.cart-open #backToTop,body:has(dialog[open]) #backToTop,body:has(.image-viewer) #backToTop,.preview-overview #backToTop,.preview-palette #backToTop{display:none!important}
@media(max-width:360px){.floating-cart,.builder-active .floating-cart{padding:9px 12px;gap:5px}.floating-cart-action{padding:10px 12px}}

/* Q2 palette: square viewport, full-width header, natural proportions. */
.preview-palette>header{width:100%!important;max-width:none!important;box-sizing:border-box;align-self:stretch;flex-shrink:0;min-height:48px;height:48px;padding:5px 12px!important}
.preview-palette #root{padding:10px 12px!important;gap:8px;overflow:hidden}
.preview-palette #root>.merchant-card{padding:6px 10px!important}
.preview-palette .category-section h2{font-size:13px;margin-bottom:5px}
.preview-palette .categories .category-photo{height:40px!important;object-fit:cover}
.preview-palette .categories button{width:100%;min-width:0;flex:none}
.preview-palette .categories button>span:last-child{padding:3px 1px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.preview-palette .palette-sample .product-image{height:76px!important;object-fit:cover}
.preview-palette .palette-sample .product .body{padding:7px!important;gap:4px}
.preview-palette .palette-sample .prices{margin:3px 0;font-size:13px}
.preview-palette .palette-sample .quick-view{min-height:30px!important;height:30px!important;margin:4px 0!important}

/* Q4: text-only variants; dynamic status strip and compact purchasing controls. */
.product-detail .detail-price-quantity{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 18px}
.product-detail #detailPrice .prices{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin:0}
.prices strong,.prices.is-discounted strong{color:var(--brand)!important}
.product-detail .product-quantity{display:inline-flex;width:124px;flex:0 0 124px;direction:ltr;border:0;gap:4px;background:none}
.product-detail .product-quantity button,.product-detail .product-quantity input{width:38px;min-width:0;height:40px;min-height:40px;padding:4px;border:1px solid var(--stroke);border-radius:9px;background:var(--soft);font-size:17px;text-align:center}
.product-detail .variant-cards:not([hidden]){display:flex;flex-wrap:nowrap;overflow-x:auto;gap:0;padding:4px;border-radius:13px;background:var(--soft);margin:8px 0 10px}
.product-detail .variant-cards button{flex:1 0 auto;border:0;border-inline-end:1px solid var(--stroke);border-radius:0;background:transparent;min-height:42px;padding:8px 18px;box-shadow:none}
.product-detail .variant-cards button:last-child{border-inline-end:0}
.product-detail .variant-cards button[aria-pressed=true]{background:var(--brand);color:var(--brand-ink);border-radius:9px}
.product-detail .variant-cards button[aria-pressed=true]::after{content:none}
.product-detail .detail-status-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:7px 12px;border-radius:10px;background:var(--soft);font-size:12px;margin:0 0 20px}
.detail-status-strip #available{margin:0;color:var(--text)}
.detail-status-strip .discount-badge,.detail-status-strip .free-delivery-badge{position:static;background:none;border:0;padding:0;font-size:12px;font-weight:600;margin:0}
.detail-status-strip .discount-badge{color:#b72d48}.detail-status-strip .free-delivery-badge{color:#167746}
.product-detail details,.product-detail .product-buy,.product-detail h2{border:0!important}
.product-detail .product-description-panel{padding:0;margin:12px 0}
#filterButton{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--stroke);background:var(--surface);color:var(--brand);padding:8px 12px;border-radius:10px;min-height:40px}
#filterButton .ui-icon{width:19px;height:19px}
.section-title .text-link{font-size:12px;padding:5px 8px;min-height:32px;width:auto}
.product .prices,.compact-product .prices{flex-direction:column;align-items:flex-start;gap:2px}

/* Q5: shared rendering and native scroll polish for current/future storefront pages. */
html{scroll-behavior:smooth;text-size-adjust:100%;-webkit-text-size-adjust:100%}
body{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
img{image-rendering:auto}
.collection-rail,.variant-cards,.photo-thumbs{scroll-behavior:smooth;scrollbar-width:thin}
button,a{ -webkit-tap-highlight-color:transparent }
@media(prefers-reduced-motion:reduce){html,.collection-rail,.variant-cards,.photo-thumbs{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Q6 shared optical polish: no palette, layout or theme-token changes. */
@font-face{font-family:Tajawal;src:url(fonts/Tajawal-Medium.woff) format('woff');font-weight:500;font-style:normal;font-display:swap}
body{font-weight:500;line-height:1.45;font-kerning:normal}
h1,h2,h3,h4,button,.prices strong,.section-title,.checkout-steps{font-weight:700}
input,select,textarea{font-weight:500;line-height:1.4}
small,.muted,.checkout-note{line-height:1.5}
button,input,select,textarea{font-kerning:normal}
.ui-icon{flex-shrink:0;shape-rendering:geometricPrecision;stroke-linecap:round;stroke-linejoin:round}
.product,.compact-product,.checkout-panel,#dialog{background-clip:padding-box}
/* Focus stays visible without changing the saved theme. */
:where(button,a,input,textarea,select):focus-visible{outline:2px solid var(--brand);outline-offset:3px}

/* R1: palette preview keeps full product prices inside its square viewport. */
.preview-palette .category-section .categories{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px}
.preview-palette .categories button{box-sizing:border-box}
.preview-palette .palette-sample .product-image{height:58px!important}
.preview-palette .palette-sample .product .body{padding:5px!important;gap:2px}
.preview-palette .palette-sample .quick-view{display:none!important}
.preview-palette #root{gap:6px!important}
/* Use one compact scale for the whole palette, rather than clipping its prices. */
.preview-palette>header{height:40px!important;min-height:40px!important}
.preview-palette #root{padding:6px 10px!important}
.preview-palette #root>.merchant-card{padding:3px 8px!important;min-height:30px!important}
.preview-palette .merchant-card .builder-logo,.preview-palette .merchant-card .identity-logo-link{width:22px!important;height:22px!important;min-height:0!important;flex-basis:22px!important}
.preview-palette .category-section h2{font-size:12px;line-height:18px;margin:0 0 3px!important}
.preview-palette .category-section .categories .category-photo{height:28px!important;min-height:28px!important}
.preview-palette .categories button>span:last-child:not(.category-photo){font-size:10px!important;line-height:16px!important;min-height:20px!important;padding:2px 1px!important}
