/* One coherent palette: no residual template gold or hard-coded light-theme text. */
body.catalogMode{background:var(--catalog-bg);color:var(--catalog-text);font-family:var(--catalog-font)}
body.catalogMode .referenceCatalog,body.catalogMode .productDetail{font-family:var(--catalog-font);color:var(--catalog-text)}
body.catalogMode .referenceCatalog :is(button,input,select,textarea),body.catalogMode .productDetail :is(button,input,select){font-family:inherit}
body.catalogMode .referenceCatalog :is(h1,h2,h3,h4,.merchantIdentity b,.footerName),body.catalogMode .productDetail h2{font-family:var(--catalog-heading-font)}
body.catalogMode .referenceCatalog :is(.catalogbar,.merchantIdentity,.browseHeading h2,.product h3,.sectionhead h2,.footerName,.footerMonogram){color:var(--catalog-text)}
body.catalogMode .referenceCatalog :is(.eyebrow,.small,.merchantIdentity small,.filterLabel,.countLabel,.footerCredit,.catalogEdition){color:var(--catalog-muted);opacity:1}
body.catalogMode .referenceCatalog :is(.categoryTile,.roundIcon,.roundLanguage,.filterSurface .subchips button,.colorPill,.socials a,.catalogSearch,.filterSurface select){background:var(--catalog-surface);color:var(--catalog-text);border:1px solid var(--catalog-line)}
body.catalogMode .referenceCatalog :is(.categoryIcon,.categoryArrow,.catalogSearch .uiIcon,.categoryTile b,.categoryTile small){color:inherit;background:transparent}
body.catalogMode .referenceCatalog :is(.categoryTile.active,.filterSurface .subchips button.active,.colorPill.active,.identityMark,.viewProduct){background:var(--catalog-accent);color:var(--on-accent);border-color:var(--catalog-accent)}
body.catalogMode .referenceCatalog .categoryTile.active :is(.categoryIcon,.categoryArrow,b,small){color:var(--on-accent);background:transparent}
body.catalogMode .referenceCatalog :is(.categoryTile,.socials a,.roundLanguage,.filterSurface .subchips button,.colorPill){border-radius:var(--catalog-button-radius);opacity:1}
body.catalogMode .referenceCatalog .catalogSearch input{color:var(--catalog-text)}
body.catalogMode .referenceCatalog .catalogSearch input::placeholder{color:var(--catalog-muted);opacity:1}
body.catalogMode .referenceCatalog :is(.filterSurface,footer,.footerCredit,.catalogPayments){border-color:var(--catalog-line)}
body.catalogMode .referenceCatalog .collectionHero{background:var(--catalog-hero);color:var(--catalog-hero-text)}
body.catalogMode .referenceCatalog .heroCopy{background:var(--catalog-hero);color:var(--catalog-hero-text)}
body.catalogMode .referenceCatalog .heroCopy :is(h1,h1 span,p,.eyebrow,.heroMeta,.heroExplore){color:var(--catalog-hero-text);opacity:1}
body.catalogMode .referenceCatalog .heroCopy .eyebrow>span{color:inherit}
body.catalogMode .referenceCatalog .heroExplore>span{background:var(--catalog-hero-text);color:var(--catalog-hero)}
body.catalogMode .referenceCatalog .heroMeta i{background:currentColor;opacity:.5}
body.catalogMode .referenceCatalog .heroSeal{color:#fff;background:#111c;border-color:#ffffff80}
body.catalogMode .referenceCatalog .heroProduct{color:#fff;background:#111d;border-color:#ffffff70}
body.catalogMode .referenceCatalog .heroProduct small{color:#fff}
body.catalogMode .referenceCatalog .heroProduct .roundIcon{background:var(--catalog-accent);color:var(--on-accent)}
body.catalogMode .referenceCatalog .product{background:var(--catalog-card);color:var(--catalog-card-text);border-color:var(--catalog-line);border-radius:var(--catalog-card-radius)}
/* Glass is opt-in. Opaque mixed color remains the fallback without backdrop support.
   Filter only the card background; product images/text are never blurred. */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 body.catalogMode .referenceCatalog .product{background:var(--catalog-card-glass,var(--catalog-card));-webkit-backdrop-filter:var(--catalog-card-blur,none);backdrop-filter:var(--catalog-card-blur,none)}
}
body.catalogMode .referenceCatalog .product :is(h3,.price,.small,del){color:var(--catalog-card-text)}
body.catalogMode .referenceCatalog .product :is(.photo,.photo img){border-radius:max(0px,calc(var(--catalog-card-radius) - 7px))}
body.catalogMode .referenceCatalog .featured{background:var(--catalog-surface);border-color:var(--catalog-line);border-radius:var(--catalog-card-radius)}
body.catalogMode .referenceCatalog .tag{background:var(--catalog-accent);color:var(--on-accent);border:0}
body.catalogMode .referenceCatalog .empty{background:transparent;color:var(--catalog-text);grid-column:1/-1}
body.catalogMode .referenceCatalog .floatingDock{background:var(--catalog-bg);color:var(--catalog-text);border:1px solid var(--catalog-line)}
body.catalogMode .referenceCatalog .floatingDock button{color:var(--catalog-text);background:transparent}
body.catalogMode .referenceCatalog .floatingDock button.active{background:var(--catalog-accent);color:var(--on-accent)}
body.catalogMode .referenceCatalog .catalogbar .merchantIdentity>img{width:var(--catalog-logo-width);height:var(--catalog-logo-height);max-width:min(320px,80vw);object-fit:var(--catalog-logo-fit);border-radius:var(--catalog-logo-radius);background:transparent;padding:0}
body.catalogMode .referenceCatalog .footerLogo{width:var(--catalog-footer-size);height:var(--catalog-footer-size);max-width:75vw;object-fit:contain;display:block;margin:0 auto 18px;border-radius:var(--catalog-logo-radius)}
body.catalogMode .referenceCatalog .footerMonogram{border-color:var(--catalog-line);background:var(--catalog-surface)}
body.catalogMode .referenceCatalog .contactHeading{font-size:18px;color:var(--catalog-text);margin:26px 0 18px}
body.catalogMode .referenceCatalog .socials a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:12px 18px;text-decoration:none}
body.catalogMode .referenceCatalog .socials a:hover{background:var(--catalog-accent);color:var(--on-accent)}
body.catalogMode .referenceCatalog .footerCredit .platformLogo{filter:invert(1);opacity:1}body.catalogMode.catalogDark .referenceCatalog .footerCredit .platformLogo{filter:none}
body.catalogMode dialog.productDetail{background:var(--catalog-bg);color:var(--catalog-text);border-color:var(--catalog-line);font-family:var(--catalog-font)}
body.catalogMode .productDetail :is(.detailDescription,.detailTop,.detailCopy .eyebrow,.detailFootnote,.availability,.specRow>span,.fieldTitle,del){color:var(--catalog-muted)}
body.catalogMode .productDetail :is(.price,h2,.specRow b){color:var(--catalog-text)}
body.catalogMode .productDetail :is(.colorchoice,.roundIcon){background:var(--catalog-surface);color:var(--catalog-text);border-color:var(--catalog-line)}
body.catalogMode .productDetail .colorchoice.active{background:var(--catalog-accent);color:var(--on-accent);border-color:var(--catalog-accent)}
body.catalogMode .productDetail :is(.detailOption,.specRow){border-color:var(--catalog-line)}
body.catalogMode .productDetail .discountCapsule{background:var(--catalog-accent);color:var(--on-accent)}
/* Precise editor colors and clear selected controls. */
.merchantControls .preciseColor{display:grid;gap:8px}.merchantControls .preciseColor>span{display:flex;gap:8px;align-items:center}.merchantControls .preciseColor input[type=color]{width:44px;min-width:44px;height:42px;border-radius:9px}.merchantControls .preciseColor input[data-color-hex]{width:100%;font-family:monospace;min-width:0;padding:10px 7px;font-size:12px}
.merchantControls .formgrid label{min-width:0}.merchantControls select,.merchantControls input[type=range]{width:100%}.merchantControls .controlValue{font-weight:normal;font-family:monospace;margin-inline-start:8px}.merchantControls input[type=range]{padding:0;accent-color:var(--platform-accent);direction:ltr}
.merchantControls .contrastNotice{padding:12px;border:1px solid var(--platform-line);border-radius:12px;font-size:12px;line-height:1.8;margin-top:16px}.merchantControls .contrastNotice.lowContrast{border-color:#e6ad52;color:#ffe2ac}
.merchantControls .themeOption.selected{outline:3px solid var(--platform-accent);outline-offset:1px}.merchantControls .themeOption .themeName{display:block;font-size:10px;padding:6px 0;line-height:1.6;color:var(--platform-text)}
body.catalogMode .referenceCatalog .heroMedia::after{background:none}
body.catalogMode .referenceCatalog .footerMonogram{font-family:var(--catalog-heading-font)}
body.catalogMode .referenceCatalog .uiIcon{color:inherit}
body.catalogMode .productDetail .availability i{background:var(--catalog-accent)}
.merchantControls .logoDraftRow{flex-wrap:wrap}
body.catalogMode .referenceCatalog .catalogbar .merchantIdentity{max-width:min(340px,80vw)}
body.catalogMode .referenceCatalog .countLabel{background:var(--catalog-surface);color:var(--catalog-text)}
body.catalogMode .referenceCatalog .photoCount,body.catalogMode .productDetail .galleryCounter{background:var(--catalog-accent);color:var(--on-accent)}
body.catalogMode .referenceCatalog .colorPill.active{box-shadow:0 0 0 1px var(--catalog-accent)}
body.catalogMode .productDetail .galleryThumbs button{background:var(--catalog-surface);border-color:var(--catalog-line)}
body.catalogMode .productDetail .detailGallery .galleryThumbs button.active{background:var(--catalog-surface);border-color:var(--catalog-accent)}
body.catalogMode .productDetail .detailGallery .galleryMain{background:var(--catalog-card)}
/* Visitor controls follow the same merchant palette and geometry as category chips. */
body.catalogMode .referenceCatalog .filterBottom{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
body.catalogMode .referenceCatalog #filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-inline-start:auto}
body.catalogMode .referenceCatalog :is(#sort,.catalogViewControls select,.catalogViewControls button){appearance:none;-webkit-appearance:none;background:var(--catalog-surface)!important;color:var(--catalog-text);border:1px solid var(--catalog-line);border-radius:var(--catalog-button-radius);font:inherit;font-size:12px;min-height:42px;padding:10px 16px;cursor:pointer;color-scheme:normal}
body.catalogMode.catalogDark .referenceCatalog :is(#sort,.catalogViewControls select){color-scheme:dark}
body.catalogMode .referenceCatalog :is(#sort,.catalogViewControls select){padding-inline-end:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E")!important;background-position:right 10px center!important;background-repeat:no-repeat!important;background-size:14px!important}
html[dir=rtl] body.catalogMode .referenceCatalog :is(#sort,.catalogViewControls select){background-position:left 10px center!important}
body.catalogMode .catalogViewControls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
body.catalogMode .catalogViewControls label{display:flex;align-items:center;gap:8px;margin:0;color:var(--catalog-text);font-size:12px}
body.catalogMode .catalogViewControls button{display:inline-flex;align-items:center;gap:6px}
body.catalogMode .referenceCatalog .catalogViewControls button.active{background:var(--catalog-accent)!important;color:var(--on-accent);border-color:var(--catalog-accent)}
body.catalogMode .catalogViewControls .uiIcon{width:15px;height:15px}
body.catalogMode .referenceCatalog :is(#sort,.catalogViewControls button,.catalogViewControls select):focus-visible{outline:2px solid var(--catalog-accent);outline-offset:3px}
/* Density affects both the collection and favourites, with consistent image geometry. */
body.catalogMode .referenceCatalog .catalogProducts :is(.grid,.featuredRail){display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:18px;overflow:visible}
body.catalogMode .referenceCatalog .catalogProducts.size-small :is(.grid,.featuredRail){grid-template-columns:repeat(auto-fill,minmax(min(155px,100%),1fr));gap:12px}
body.catalogMode .referenceCatalog .catalogProducts.size-large :is(.grid,.featuredRail){grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr));gap:24px}
body.catalogMode .referenceCatalog .catalogProducts .product{width:auto;min-width:0;max-width:100%}
body.catalogMode .referenceCatalog .catalogProducts .product .photo{aspect-ratio:1;min-height:0}
body.catalogMode .referenceCatalog .catalogProducts .product h3{font-size:16px;overflow-wrap:anywhere}
body.catalogMode .referenceCatalog .catalogProducts.layout-list :is(.grid,.featuredRail){grid-template-columns:1fr}
body.catalogMode .referenceCatalog .catalogProducts.layout-list .product{display:grid;grid-template-columns:var(--list-photo,150px) minmax(0,1fr);align-items:center;gap:16px;padding:12px}
body.catalogMode .referenceCatalog .catalogProducts.layout-list.size-small{--list-photo:95px}
body.catalogMode .referenceCatalog .catalogProducts.layout-list.size-large{--list-photo:220px}
body.catalogMode .referenceCatalog .catalogProducts.layout-list .product .details{padding:12px;min-width:0}
body.catalogMode .referenceCatalog .catalogProducts.layout-list .product .photo{width:100%;margin:0}
@media(max-width:660px){body.catalogMode .referenceCatalog .catalogProducts :is(.grid,.featuredRail){grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body.catalogMode .referenceCatalog .catalogProducts.size-small :is(.grid,.featuredRail){grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}body.catalogMode .referenceCatalog .catalogProducts.size-small .product .details{padding:9px}body.catalogMode .referenceCatalog .catalogProducts.size-small .product h3{font-size:12px}body.catalogMode .referenceCatalog .catalogProducts.size-large :is(.grid,.featuredRail){grid-template-columns:1fr}body.catalogMode .referenceCatalog .catalogProducts.layout-list :is(.grid,.featuredRail){grid-template-columns:1fr}body.catalogMode .referenceCatalog .catalogProducts.layout-list.size-large{--list-photo:45%}body.catalogMode .referenceCatalog #filters{margin-inline-start:0;width:100%;gap:12px}body.catalogMode .catalogViewControls{gap:5px}body.catalogMode .referenceCatalog .catalogViewControls button{padding:10px}}
/* Plain merchant cover. Legacy mode values remain saved, but both render
   without masks, glass or overlays until the owner restores a design. */
body.catalogMode .referenceCatalog .collectionHero.merchantHero{position:relative;display:flex;flex-direction:column;gap:0;isolation:isolate;min-height:0;height:auto;overflow:hidden;background:var(--catalog-hero);border-radius:var(--catalog-card-radius)}
body.catalogMode .referenceCatalog .merchantHero .heroMedia{position:relative;inset:auto;order:-1;width:100%;height:auto;aspect-ratio:13/5;min-height:0;z-index:0;margin:0;border-radius:0;overflow:hidden;background:transparent;-webkit-mask-image:none;mask-image:none}
body.catalogMode .referenceCatalog .merchantHero .heroMedia>img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--catalog-hero-position,50%) var(--catalog-hero-position-y,50%);transform:translate(var(--catalog-hero-shift,0%),var(--catalog-hero-shift-y,0%)) scale(var(--catalog-hero-zoom,1));transform-origin:center;filter:none}
body.catalogMode .referenceCatalog .merchantHero::before,body.catalogMode .referenceCatalog .merchantHero::after,body.catalogMode .referenceCatalog .merchantHero .heroMedia::before,body.catalogMode .referenceCatalog .merchantHero .heroMedia::after{display:none;content:none}
body.catalogMode .referenceCatalog .merchantHero .heroCopy{position:relative;inset:auto;width:100%;height:auto;min-height:0;z-index:1;background:var(--catalog-hero);padding:clamp(20px,4vw,42px);display:flex;flex-direction:column;justify-content:center;pointer-events:auto;margin:0;border-radius:0;backdrop-filter:none;-webkit-backdrop-filter:none}
/* Uploaded covers are image-only; retain the saved introduction for text-only covers. */
body.catalogMode .referenceCatalog .merchantHero:not(.withoutHeroImage) .heroCopy{display:none}
body.catalogMode .referenceCatalog .merchantHero .heroCopy h1{font-size:clamp(25px,4vw,48px);overflow-wrap:anywhere}
body.catalogMode .referenceCatalog .merchantHero .heroCopy h1>span{font-size:clamp(21px,3vw,34px)}
body.catalogMode .referenceCatalog .merchantHero .heroCopy p{overflow-wrap:anywhere}
.merchantControls #draftHeroImage img{width:100%;max-height:150px;object-fit:contain;border-radius:12px}
.merchantControls #draftHeroImage{max-width:100%}
body:not(.catalogMode) .workspaceLanguage{white-space:nowrap;min-height:40px}
html[dir=ltr] body:not(.catalogMode) .layout{direction:ltr}html[dir=ltr] body:not(.catalogMode) .sidebar{border-inline-end:1px solid var(--platform-line)}
body:not(.catalogMode) .topbar{height:auto;min-height:85px;padding-block:16px}
body:not(.catalogMode) .topbar .actions{flex-wrap:wrap;gap:10px}
@media(max-width:660px){body:not(.catalogMode) .topbar{min-height:72px;padding-block:12px}body:not(.catalogMode) .topbar .actions{width:100%;gap:8px}}
/* Approved centered compact footer: merchant identity, social capsule, then branded payments. */
body.catalogMode .referenceCatalog footer.compactCatalogFooter{margin-top:32px;padding:32px 12px 22px;text-align:center;border-top:1px solid var(--catalog-line);display:flex;align-items:center;flex-direction:column;gap:0}
body.catalogMode .referenceCatalog .compactCatalogFooter .footerLogo{margin:0 auto 10px;object-fit:contain}
body.catalogMode .referenceCatalog .compactCatalogFooter .footerMonogram{width:52px;height:52px;margin:0 auto 10px;font-size:22px}
body.catalogMode .referenceCatalog .compactCatalogFooter .footerName{font-size:14px;line-height:1.5;letter-spacing:.24em;margin:0;max-width:100%;overflow-wrap:anywhere}
body.catalogMode .referenceCatalog .compactCatalogFooter .socials{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px;padding:2px 12px;margin:16px 0 0;border-radius:40px;background:var(--catalog-surface);max-width:100%;width:max-content}
body.catalogMode .referenceCatalog .compactCatalogFooter .socials:empty{display:none}
body.catalogMode .referenceCatalog .compactCatalogFooter .socials a{display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;padding:0;border:0;background:transparent;color:var(--catalog-text);border-radius:50%;margin:0}
body.catalogMode .referenceCatalog .compactCatalogFooter .socials a:hover{background:color-mix(in srgb,var(--catalog-text) 12%,transparent)}
body.catalogMode .referenceCatalog .compactCatalogFooter .socials a:focus-visible{outline:2px solid var(--catalog-text);outline-offset:1px}
body.catalogMode .referenceCatalog .compactCatalogFooter .socials :is(svg,.uiIcon){height:17px;width:17px;flex:none}
body.catalogMode .referenceCatalog .compactCatalogFooter .contactLabel{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
body.catalogMode .referenceCatalog .compactCatalogFooter .catalogPayments{width:100%;padding:0;margin:24px 0 0;border:0}
body.catalogMode .referenceCatalog .compactCatalogFooter .catalogPayments h2{font-size:12px;font-weight:400;line-height:1.6;margin:0 0 12px;color:var(--catalog-text);font-family:var(--catalog-font)}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadgeGrid{gap:8px;max-width:600px;margin:auto}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge{width:94px;min-height:38px;height:38px;border-radius:8px;border:0;padding:7px 9px;flex-direction:row;gap:5px;font-size:9px;box-shadow:none;line-height:1.25}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge img{height:23px;width:75px;max-width:100%;object-fit:contain}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge svg{width:17px;height:17px;flex:none}
/* The complete tile carries its preset's color; merchant uploads stay unmodified. */
.paymentBadge.preset-tabby{background:#6cff93;border-color:#6cff93;color:#000}
.paymentBadge.preset-tamara{background:#5820b0;border-color:#5820b0;color:#fff}
.paymentBadge.preset-ziina{background:#161616;border-color:#161616;color:#fff}
.paymentBadge.preset-ziina img{filter:brightness(0) invert(1)}
.paymentBadge.preset-stripe{background:#635bff;border-color:#635bff;color:#fff}
.paymentBadge.preset-stripe img{filter:brightness(0) invert(1)}
.paymentBadge.preset-bank{background:#393939;border-color:#393939;color:#fff}
body.catalogMode .referenceCatalog .compactCatalogFooter .footerCredit{width:min(440px,100%);border:0;display:flex;align-items:center;justify-content:center;gap:16px;padding:0;margin:24px auto 0;font-size:10px;color:var(--catalog-muted)}
body.catalogMode .referenceCatalog .compactCatalogFooter .footerCredit::before,body.catalogMode .referenceCatalog .compactCatalogFooter .footerCredit::after{content:'';height:1px;background:var(--catalog-line);flex:1;min-width:15px}
body.catalogMode .referenceCatalog .compactCatalogFooter .footerCredit a{display:inline-flex;align-items:center;justify-content:center;gap:7px;color:inherit;white-space:nowrap;font-size:10px}
body.catalogMode .referenceCatalog .compactCatalogFooter .footerCredit .platformLogo{width:84px;height:30px;object-fit:contain;opacity:1}
@media(max-width:480px){body.catalogMode .referenceCatalog footer.compactCatalogFooter{padding:26px 0 22px}body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadgeGrid{gap:6px}body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge{width:82px;min-height:35px;height:35px;padding:6px 7px;font-size:8px}body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge img{width:66px;height:21px}body.catalogMode .referenceCatalog .compactCatalogFooter .socials{padding-inline:8px}}
/* Taller product photography with a compact card frame. */
body.catalogMode .referenceCatalog .catalogProducts .product{padding:4px;align-self:start}
body.catalogMode .referenceCatalog .catalogProducts .product .photo{aspect-ratio:4/5;margin:0;border-radius:max(0px,calc(var(--catalog-card-radius) - 4px));position:relative;isolation:isolate}
body.catalogMode .referenceCatalog .catalogProducts .product .details{padding:10px 7px 9px}
body.catalogMode .referenceCatalog .catalogProducts .product h3{margin:5px 0 7px;line-height:1.45}
body.catalogMode .referenceCatalog .catalogProducts .product .details>.small{line-height:1.3}
body.catalogMode .referenceCatalog .catalogProducts .productColors:empty{display:none}
body.catalogMode .referenceCatalog .catalogProducts.layout-list .product{padding:7px;align-items:center}
body.catalogMode .referenceCatalog .catalogProducts.layout-list .product .photo{aspect-ratio:1}
body.catalogMode .referenceCatalog .catalogProducts .product .photoCount{pointer-events:none;bottom:8px;inset-inline-end:8px;padding:4px 7px;font-size:10px}
body.catalogMode .referenceCatalog .catalogProducts .tag{max-width:calc(100% - 22px);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;pointer-events:none;font-size:10px;padding:6px 9px;z-index:2}
body.catalogMode .referenceCatalog .cardPhotoArrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:32px;height:36px;min-height:36px;padding:7px;border-radius:12px;border:1px solid #ffffff50;background:#18181852;color:#fff;display:grid;place-items:center;cursor:pointer;direction:ltr}
body.catalogMode .referenceCatalog .cardPhotoArrow svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.catalogMode .referenceCatalog .cardPhotoLeft{left:7px;right:auto}body.catalogMode .referenceCatalog .cardPhotoRight{right:7px;left:auto}
body.catalogMode .referenceCatalog .cardPhotoArrow:hover{background:#1818188a}
body.catalogMode .referenceCatalog .cardPhotoArrow:focus-visible{outline:2px solid #fff;outline-offset:2px}
.placeholderVisual{display:block;width:100%;height:100%;color:inherit;object-fit:contain}
.product .photo .placeholderVisual,.posItemPhoto .placeholderVisual{color:var(--catalog-muted,#8b8b8b)}
#editorCover .emptyPhoto{position:relative;min-height:240px;display:flex;flex-direction:column;justify-content:center;align-items:center}
#editorCover .emptyPhoto .placeholderVisual{width:160px;height:180px;margin:0 auto 6px}
#badgeTextFields[hidden]{display:none!important}
body.catalogMode .referenceCatalog .merchantIdentity>span:has(small):not(:has(b)){gap:0}
/* Tighter vertical rhythm in the merchant sidebar, retaining natural height/scroll. */
body:not(.catalogMode) .sidebar{padding:18px 16px;gap:0;justify-content:flex-start}
body:not(.catalogMode) .sidebar>.brand{padding:8px 10px 12px!important;margin:0 0 10px!important;min-height:0}
body:not(.catalogMode) .sidebar>.businessProfile{margin:0;padding:17px 12px;gap:9px}
body:not(.catalogMode) .businessProfile>div{gap:7px}
body:not(.catalogMode) .businessProfile .avatar{width:56px;height:56px}
body:not(.catalogMode) .businessProfile b{font-size:16px}
body:not(.catalogMode) .sidebar>.studioNav{margin-top:14px;padding:10px}
body:not(.catalogMode) .studioNav .navPrimary{gap:6px}
body:not(.catalogMode) .studioNav button{min-height:42px;padding:10px}
@media(max-width:660px){body:not(.catalogMode) .sidebar{padding:14px 16px 0}body:not(.catalogMode) .sidebar>.businessProfile{padding:13px 10px}body:not(.catalogMode) .sidebar>.brand{padding-bottom:8px!important;margin-bottom:8px!important}body:not(.catalogMode) .sidebar>.studioNav{margin-top:12px}body.catalogMode .referenceCatalog .catalogProducts.size-small .cardPhotoArrow{width:27px;padding:4px}body.catalogMode .referenceCatalog .catalogProducts.size-small .cardPhotoLeft{left:3px}body.catalogMode .referenceCatalog .catalogProducts.size-small .cardPhotoRight{right:3px}body.catalogMode .referenceCatalog .catalogProducts.size-small .product .details{padding:8px 3px}}

/* Keep card copy inset and preserve the frame's top curve with subtle lower corners. */
body.catalogMode .referenceCatalog .catalogProducts .product :is(.photo,.photo img){border-radius:max(0px,calc(var(--catalog-card-radius) - 4px)) max(0px,calc(var(--catalog-card-radius) - 4px)) min(8px,var(--catalog-card-radius)) min(8px,var(--catalog-card-radius))}
body.catalogMode .referenceCatalog .catalogProducts .product .details{padding-inline:16px;text-align:start}
@media(max-width:660px){body.catalogMode .referenceCatalog .catalogProducts.size-small .product .details{padding-inline:10px}}

/* Individually editable subcategories in the category dialog. */
.subcategoryEditor{margin:0;padding:16px;border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:16px}
.subcategoryHeading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.subcategoryHeading h3{margin:0;font-size:16px}.subcategoryHeading button{display:inline-flex;align-items:center;gap:6px;padding:9px 12px}.subcategoryEditor>.small{margin:10px 0 14px;line-height:1.6}
#subcategoryRows{display:grid;gap:10px}.subcategoryRow{display:flex;align-items:flex-end;gap:9px}.subcategoryRow>label{flex:1;min-width:0}.subcategoryRow input{width:100%}.subcategoryRow .removeSubcategory{flex:none;width:42px;height:42px;min-height:42px;padding:10px;display:grid;place-items:center}.subcategoryRow .removeSubcategory .uiIcon{width:17px;height:17px}

/* v44: compact subscription actions, inset from the strip edge. */
.ownerPlanBanner>.subscriptionManageLink{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;font-size:14px;font-weight:600;line-height:1.5;padding:11px 18px;border-radius:999px;text-decoration:none;white-space:nowrap}
.subscriptionManageLink svg,.subscriptionPlansButton svg{width:18px;height:18px;flex:none}
.trialStatus{gap:16px;padding-inline:20px 30px}
.trialStatus>.subscriptionPlansButton{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;padding:8px 14px;border:1px solid color-mix(in srgb,var(--platform-text) 25%,transparent);border-radius:999px;background:color-mix(in srgb,var(--platform-background) 45%,transparent);color:var(--platform-text);font:inherit;font-size:12px;font-weight:600;line-height:1.4;cursor:pointer}
.trialStatus>.subscriptionPlansButton:hover{background:color-mix(in srgb,var(--platform-background) 70%,transparent)}
.trialStatus>.subscriptionPlansButton:focus-visible,.subscriptionManageLink:focus-visible{outline:2px solid var(--platform-accent);outline-offset:3px}
@media(max-width:660px){.ownerPlanBanner{flex-wrap:wrap;gap:16px}.trialStatus{padding-inline:14px 20px;gap:10px}.trialStatus>.subscriptionPlansButton{padding:8px 11px}.ownerPlanBanner>.subscriptionManageLink{font-size:13px}}

/* v45: Share the permanent catalog URL or export a local, print-ready QR. */
.catalogShareOptions{margin-block:22px}.catalogShareOptions h3{font-size:15px;margin:0 0 8px}.catalogShareOptions .shareCatalog{margin-top:0;padding:16px}.catalogShareOptions .shareCatalog h3{flex-basis:100%;margin:0}.catalogShareOptions .shareCatalog>a{font-size:12px;color:var(--platform-text);flex:1;min-width:0}.catalogShareOptions .shareCatalog>button{font-size:12px;white-space:nowrap}.catalogQR{display:grid;grid-template-columns:180px minmax(0,1fr);gap:22px;align-items:center;padding:22px 0 6px}.catalogQRPreview{align-self:start;background:#fff;border:1px solid #ddd;border-radius:18px;padding:8px;overflow:hidden}.catalogQRPreview img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:0}.catalogQRPreview p{color:#6a2a23;padding:8px;font-size:11px}.catalogQRCopy .small{line-height:1.8;margin:8px 0;color:var(--platform-muted,var(--muted))}.catalogQRActions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.catalogQRActions :is(button,a){display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:999px;padding:10px 15px;font-size:12px;line-height:1.5}.catalogQRActions a.secondary{background:var(--platform-surface);color:var(--platform-text);border:1px solid var(--platform-line)}.catalogQRActions :disabled{opacity:.55;cursor:wait}@media(max-width:520px){.catalogQR{grid-template-columns:1fr;text-align:center}.catalogQRPreview{width:210px;max-width:100%;margin:auto}.catalogQRActions{justify-content:center}.catalogShareOptions .shareCatalog>a{flex-basis:100%}}

/* v47: Balance the merchant footer logo on phones; desktop keeps its chosen size. */
@media(max-width:660px){body.catalogMode .referenceCatalog .compactCatalogFooter .footerLogo{width:calc(var(--catalog-footer-size) * .8);height:calc(var(--catalog-footer-size) * .8);max-width:60vw}}

/* Availability stays readable; only the product image is softened. */
.soldOutPhoto{position:relative;overflow:hidden;isolation:isolate}
.soldOutPhoto>img,.soldOutPhoto>svg{filter:blur(1.6px) saturate(.3);opacity:.65}
.soldOutOverlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(245,242,236,.15);pointer-events:none;z-index:2;padding:10px}
.soldOutOverlay>span{display:flex;flex-direction:column;align-items:center;gap:5px;padding:12px 19px;border-radius:999px;background:rgba(45,42,38,.82);color:#fff;text-align:center;max-width:100%;box-sizing:border-box}
.soldOutOverlay b{font:600 clamp(12px,2vw,18px)/1.3 Arial,sans-serif;letter-spacing:.08em;white-space:nowrap}
.soldOutOverlay small{font-size:12px;line-height:1.4}
.soldOutPhoto .cardPhotoArrow{z-index:3}
@media(max-width:660px){.soldOutOverlay>span{padding:9px 11px;gap:3px}.soldOutOverlay b{font-size:11px;letter-spacing:.04em}.soldOutOverlay small{font-size:10px}}

body.catalogMode .referenceCatalog .product{height:auto;align-self:start;padding:var(--catalog-image-padding)}
body.catalogMode .referenceCatalog .product .details{min-height:0;height:auto;padding:var(--catalog-card-padding);flex:none}
body.catalogMode .referenceCatalog .product .details h3{min-height:0;height:auto}
body.catalogMode .referenceCatalog .product .productColors:empty{display:none}
body.catalogMode .referenceCatalog .product.card-minimal,body.catalogMode .referenceCatalog .product.card-image{background:transparent;border:0;box-shadow:none;padding:0}
body.catalogMode .referenceCatalog .product.card-minimal :is(h3,.price,.small,del){color:var(--catalog-card-text)}
body.catalogMode .referenceCatalog .product.card-image .details{display:none}
body.catalogMode .referenceCatalog .product.card-image .photo{margin:0;border-radius:var(--catalog-card-radius)}

.editableColor{display:inline-flex;align-items:center;gap:2px}.colorEditButton{display:grid;place-items:center;width:30px;height:32px;border-radius:9px;background:transparent;color:inherit;border:1px solid #8885}.colorEditButton svg{width:14px;height:14px}.customColorEditor{margin:16px 0;padding:16px;border:1px solid #8885;border-radius:16px}.customColorEditor[hidden]{display:none}.customColorEditor input[type=color]{height:42px;width:100%;padding:4px}#addCustomColor{margin-top:12px}

/* Product editing: paired translations and direct photo placement. */
.productDrawer .productBilingualPair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.productDrawer .productBilingualPair label{min-width:0}
.productDrawer .productBilingualPair[hidden]{display:none}
.productDrawer .editorChips button small{display:block;font-size:10px;opacity:.75;line-height:1.3;margin-top:3px;direction:ltr}
.productDrawer .editableColor .colorPill{color:#fff!important}
.productDrawer .editableColor .colorEditButton{color:#fff}
.productDrawer .uploadZone.dragActive{border-color:#62d6ea;box-shadow:0 0 0 3px #62d6ea55;background:#124353;color:#fff}
.productDrawer #editorCover img,.productDrawer .editorImages img{transition:transform .12s ease}
.productDrawer .editorImageItem{overflow:hidden;border-radius:10px;padding:4px;border:1px solid transparent}
.productDrawer .editorImageItem.selected{border-color:#78cfe5}
.productDrawer .editorImageItem img{display:block;object-fit:cover}
.productDrawer .imageAdjustment{display:grid;gap:10px;margin-top:12px;padding:14px;border:1px solid #8885;border-radius:14px}
.productDrawer .imageAdjustment label{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;align-items:center;font-size:12px}
.productDrawer .imageAdjustment input[type=range]{width:100%;padding:0}
.productDrawer .imageAdjustment button{justify-self:start}
@media(max-width:720px){.productDrawer .productBilingualPair{grid-template-columns:1fr}}

/* The optional footer name follows the merchant's selected text color. */
body.catalogMode .referenceCatalog .compactCatalogFooter .footerName{color:var(--catalog-text);opacity:1}
body.catalogMode .referenceCatalog footer.compactCatalogFooter{padding-top:24px}
body.catalogMode .referenceCatalog .compactCatalogFooter .footerLogo{margin-bottom:2px}
body.catalogMode .referenceCatalog .compactCatalogFooter .footerMonogram{margin-bottom:2px}
body.catalogMode .referenceCatalog .compactCatalogFooter .socials{margin-top:7px}
body.catalogMode .referenceCatalog .compactCatalogFooter .catalogPayments{margin-top:16px}

/* Visible product feedback stays beside Save inside the dialog top layer. */
.productDrawer .editorActions{flex-wrap:wrap;z-index:5}
.productDrawer .productFormMessage{flex:1 0 100%;margin:0 0 5px;padding:10px 12px;border:1px solid #e0a57b;border-radius:12px;background:#492e20;color:#fff4e8;font-size:13px;line-height:1.7}
.productDrawer .productFormMessage[hidden]{display:none}
.productDrawer [aria-invalid=true]{outline:2px solid #e0a57b;outline-offset:2px}
.productDrawer .ownerVideoEditor{margin-top:22px;padding:18px;border:1px solid #8885;border-radius:18px;min-width:0}
.productDrawer .ownerVideoEditor h3{margin:0 0 8px;font-size:16px}
.productDrawer .ownerVideoEditor .small{margin:0 0 14px;line-height:1.8}
.productDrawer .videoUploadLabel{position:relative;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;padding:10px 16px;border:1px solid #8887;border-radius:999px;font-size:13px}
.productDrawer .videoUploadLabel:focus-within{outline:2px solid #78cfe5;outline-offset:3px}
.productDrawer .videoUploadLabel input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.productDrawer .ownerVideoEditor [role=status]{font-size:12px;line-height:1.8;margin:10px 0}
.productDrawer .ownerVideoRow{margin-top:12px;padding:8px;border:1px solid #8885;border-radius:12px}
.productDrawer .ownerVideoRow video{display:block;width:100%;max-height:200px;background:#000;border-radius:8px}
.productDrawer .ownerVideoRow>div{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;margin-top:8px}
.productDrawer .ownerVideoRow button{font-size:11px;padding:7px 10px}
.catalogVideoBadge{position:absolute;inset-inline-start:10px;bottom:10px;z-index:3;display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:#151b20df;color:white;font-size:11px;line-height:1.3;pointer-events:none}
.detailGallery .galleryMain{position:relative}
.detailGallery .galleryMain>video{display:block;width:100%;height:100%;max-height:65vh;background:#000;object-fit:contain}
.detailGallery .videoThumb{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px;color:var(--catalog-text,inherit)}
.detailGallery .videoThumb>span{font-size:18px;line-height:1}
.detailGallery .galleryStatus{font-size:12px;line-height:1.6;margin:9px 2px;color:inherit}
.detailGallery .galleryStatus[hidden]{display:none}
.photo[aria-busy=true]:after{content:'';position:absolute;inset-inline-start:50%;bottom:8px;width:28px;height:3px;border-radius:4px;background:#fff;box-shadow:0 0 0 1px #0003;pointer-events:none}
@media(max-width:720px){.productDrawer .ownerVideoEditor{padding:14px}.catalogVideoBadge{font-size:10px;bottom:7px;inset-inline-start:7px;padding:6px 8px}}

@media(max-width:720px){.productDetail .detailGallery.hasVideos .galleryThumbs{position:static;inset:auto;flex-direction:row;max-height:none;margin-top:10px;overflow-x:auto}.productDetail .detailGallery.hasVideos .galleryThumbs button{width:54px;min-width:54px;height:54px;min-height:54px;flex-shrink:0}}

/* Keep tutorials visible alongside catalog sharing in every merchant workspace. */
body:not(.catalogMode) .topbar .tutorialsTopbar{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;white-space:nowrap;text-decoration:none;border:1px solid var(--platform-primary,#48b7d4);color:var(--platform-text,#fff);background:color-mix(in srgb,var(--platform-primary,#48b7d4) 14%,transparent);border-radius:999px;padding:10px 14px;font-size:12px;min-height:38px}
body:not(.catalogMode) .topbar .tutorialsTopbar:hover,body:not(.catalogMode) .topbar .tutorialsTopbar:focus-visible{background:color-mix(in srgb,var(--platform-primary,#48b7d4) 28%,transparent);outline:2px solid var(--platform-primary,#48b7d4);outline-offset:2px}
@media(max-width:720px){body:not(.catalogMode) .topbar .tutorialsTopbar{font-size:11px;padding:9px 12px;min-height:38px}}

/* The line under the merchant logo contains only the optional merchant names. */
body.catalogMode .referenceCatalog .merchantIdentity .merchantNameLine{color:var(--catalog-text);letter-spacing:normal;overflow-wrap:anywhere;line-height:1.7;margin:0}
body.catalogMode .referenceCatalog .merchantIdentity .merchantNameSeparator{white-space:pre}

body.catalogMode .referenceCatalog .compactCatalogFooter .footerCredit a{color:var(--catalog-text)}
body.catalogMode .referenceCatalog .footerCredit .catalogCreditLogo{color:inherit;fill:currentColor;filter:none;opacity:1}
.logoRetry{font:inherit;font-size:12px;color:inherit;background:transparent;border:1px solid currentColor;border-radius:12px;padding:6px 10px;cursor:pointer}

/* Sale and rental product editor */
.productTypeChoice{display:flex;gap:12px;flex-wrap:wrap;border:0;padding:0;margin:0 0 24px}.productTypeChoice legend{margin-bottom:10px;font-weight:700}.productTypeChoice label{display:flex;align-items:center;gap:8px;flex:1;padding:14px;border:1px solid #ffffff35;border-radius:12px;cursor:pointer}.productTypeChoice label:has(input:checked){border-color:var(--accent,#28a5db);background:#ffffff0d}.productTypeChoice input{width:auto!important;margin:0!important}.rentalPriceFields{margin:16px 0 24px}.rentalPriceFields h3{font-size:17px}.rentalOptionRow{border:1px solid #ffffff26;border-radius:14px;padding:14px;margin:12px 0}.rentalOptionActions{display:flex;align-items:end;gap:12px}.rentalOptionActions label{flex:1;min-width:0}.rentalOptionActions button{flex:none;margin-bottom:2px}.rentalOptionsDisplay{margin:20px 0}.rentalOptionsDisplay h3{font-size:16px}.rentalOptionDisplay{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid currentColor;padding:14px 0;overflow-wrap:anywhere}.rentalOptionDisplay b{flex-shrink:0}.priceEssentials[hidden],.rentalPriceFields[hidden]{display:none!important}
/* Fit dialogs to the available layout width, excluding classic scrollbars. */
@media(max-width:660px){dialog.productDrawer,dialog.productDetail{width:100%;max-width:100%}}

/* Rental packages use merchant text/background tokens and semantic list rows. */
.rentalOptionList{list-style:none;margin:0;padding:0;display:grid;gap:12px}.rentalOptionDisplay{border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:14px;padding:18px;align-items:start;gap:20px;background:color-mix(in srgb,currentColor 3%,transparent)}.rentalOptionDescription{font-weight:600;line-height:1.65;min-width:0;flex:1}.rentalOptionPrices{display:flex;flex-direction:column;align-items:end;gap:6px;max-width:55%;font-variant-numeric:tabular-nums}.rentalOptionPrices b{font-size:19px}.rentalOptionPrices del{font-size:13px;opacity:.7}.rentalDiscount{font-size:12px;font-weight:600;padding:3px 8px;border-radius:6px;background:color-mix(in srgb,currentColor 8%,transparent)}.rentalOptionActions{flex-wrap:wrap}.rentalOptionActions label{min-width:150px}.workspaceCurrency{display:inline-flex;gap:6px;align-items:center;max-width:260px;padding:8px 12px!important;font-size:12px}.workspaceCurrency select{width:auto;min-width:0;max-width:190px;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit}.workspaceCurrency option{background:#232323;color:#fff}.saveindicator[hidden]{display:none!important}
@media(max-width:660px){.rentalOptionDisplay{padding:14px;gap:12px}.rentalOptionPrices b{font-size:17px}.rentalOptionActions label{flex-basis:calc(50% - 12px);min-width:120px}.topbar .actions{flex-wrap:wrap}.workspaceCurrency{max-width:100%}.workspaceCurrency select{max-width:170px}}
/* Topbar currency is one pill; native select stays keyboard-accessible. */
body:not(.catalogMode) .topbar .workspaceCurrency{height:40px;min-height:40px;box-sizing:border-box;margin:0;padding:9px 10px!important;border-radius:30px;border:1px solid color-mix(in srgb,var(--platform-muted,#b5c4cb) 7.06%,transparent);background:color-mix(in srgb,var(--platform-surface,#232323) 1.96%,transparent);color:var(--platform-text,#fff);font:11px Tahoma,Arial,sans-serif;line-height:20px;gap:7px;position:relative;max-width:100%;white-space:nowrap}
body:not(.catalogMode) .topbar .workspaceCurrency select{appearance:none;-webkit-appearance:none;background:transparent!important;border:0!important;box-shadow:none;border-radius:0;color:inherit;font:inherit;line-height:20px;height:20px;min-height:0;margin:0;padding:0;padding-inline-end:18px;max-width:190px;cursor:pointer;outline:none}
body:not(.catalogMode) .topbar .workspaceCurrency::after{content:'';position:absolute;inset-inline-end:12px;top:15px;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);pointer-events:none}
body:not(.catalogMode) .topbar .workspaceCurrency:focus-within{outline:2px solid var(--platform-muted,#b5c4cb);outline-offset:3px}
@media(max-width:660px){body:not(.catalogMode) .topbar .workspaceCurrency{font-size:10px}body:not(.catalogMode) .topbar .workspaceCurrency select{max-width:165px}}
.supportLinks{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.supportLinks a{display:inline-block;padding:10px 16px;border:1px solid currentColor;border-radius:24px;text-decoration:none}.supportSummary{max-width:1100px;margin:auto;padding:24px}.supportSummary dl{display:grid;grid-template-columns:minmax(110px,1fr) 2fr;gap:10px}.supportSummary dd{margin:0;overflow-wrap:anywhere}.supportBanner{padding:12px;text-align:center;background:#183843;color:white;font:14px Tahoma}

.catalogMore{display:block;margin:24px auto;padding:12px 28px;border:1px solid currentColor;border-radius:999px;background:transparent;color:inherit;font:inherit}.catalogMore[hidden]{display:none}

/* Public phone header: centered merchant identity, tools at logical end. */
@media (max-width:650px){
 body.catalogMode .referenceCatalog .catalogbar{gap:8px;padding:16px 0}
 body.catalogMode .referenceCatalog .catalogbar .merchantIdentity{min-width:0;max-width:100%}
 body.catalogMode .referenceCatalog .catalogbar .merchantIdentity>img{max-width:100%}
 body.catalogMode .referenceCatalog .catalogbar>.row{justify-self:end;justify-content:flex-end;flex-wrap:nowrap;gap:8px;max-width:100%}
 body.catalogMode .referenceCatalog .catalogbar>.row :is(.roundIcon,.roundLanguage){width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px;padding:0}
 body.catalogMode .referenceCatalog .catalogbar>.row button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
}

/* Bilingual display-only payment badges, independent of merchant palette. */
.paymentBadge.manualPayment{width:154px;min-height:94px;height:auto;padding:12px 10px;gap:7px;color:#fff;border:1px solid #426478;background:#183b50;flex-direction:column;box-shadow:none}
.paymentBadge.manualPayment.preset-cod{background:#244638;border-color:#527662;color:#fff}
.paymentBadge.manualPayment .manualPaymentNames{display:flex;flex-direction:column;gap:3px;max-width:100%;text-align:center}
.paymentBadge.manualPayment .manualPaymentNames span{display:block;line-height:1.4;overflow-wrap:normal;font-size:12px;font-weight:600;color:inherit}
.paymentBadge.manualPayment svg{width:25px;height:25px;flex:none}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment{width:154px;min-height:70px;height:auto;padding:9px 8px;gap:6px;flex-direction:row;border:1px solid #426478}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment.preset-cod{border-color:#527662}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment svg{width:22px;height:22px}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment .manualPaymentNames span{font-size:11px}
@media(max-width:480px){body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment{width:145px;min-height:70px;flex-direction:column;gap:3px}.paymentPresetGrid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.paymentPreset{padding:12px 8px}.paymentPreset .paymentBadge.manualPayment{width:100%;max-width:154px}}

/* Approved v96 shapes: shared glass geometry, no decorative background assets. */
body.catalogMode .referenceCatalog .catalogProducts .product:is(.card-clear-glass,.card-frosted-glass){display:flex;flex-direction:column;gap:0;padding:3px;border:1px solid color-mix(in srgb,var(--catalog-card-text) 24%,transparent);box-shadow:none;overflow:hidden;min-width:0}
body.catalogMode .referenceCatalog .catalogProducts .product:is(.card-clear-glass,.card-frosted-glass) .photo{width:100%;flex:none;aspect-ratio:4/5;border-radius:max(0px,calc(var(--catalog-card-radius) - 4px));overflow:hidden}
body.catalogMode .referenceCatalog .catalogProducts .product:is(.card-clear-glass,.card-frosted-glass) .details{width:100%;box-sizing:border-box;padding:clamp(8px,2vw,16px);position:relative;flex:1}
body.catalogMode .referenceCatalog .catalogProducts .product.card-full-image{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(90px,1fr) auto;aspect-ratio:4/5;min-width:0;padding:0;overflow:hidden;background:var(--catalog-card);backdrop-filter:none;-webkit-backdrop-filter:none;isolation:isolate}
body.catalogMode .referenceCatalog .catalogProducts .product.card-full-image>.photo{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;border-radius:inherit;overflow:hidden}
body.catalogMode .referenceCatalog .catalogProducts .product.card-full-image>.details{grid-area:2/1;align-self:end;z-index:1;position:relative;padding:24px 12px 12px;background:linear-gradient(transparent,rgba(0,0,0,.72));min-width:0;pointer-events:none}
body.catalogMode .referenceCatalog .catalogProducts .product:is(.card-full-image,.card-clear-glass,.card-frosted-glass) .details :is(h3,.price,.small,del){color:var(--catalog-card-text);overflow-wrap:anywhere;white-space:normal;max-width:100%;height:auto;-webkit-line-clamp:unset;display:block}
body.catalogMode .referenceCatalog .catalogProducts .product:is(.card-full-image,.card-clear-glass,.card-frosted-glass) .details .row{flex-wrap:wrap;gap:4px;min-width:0}
body.catalogMode .referenceCatalog .catalogProducts .product:is(.card-full-image,.card-clear-glass,.card-frosted-glass) .details .row>span{min-width:0;max-width:100%}
body.catalogMode .referenceCatalog .cardBasketHint{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;border:1px solid currentColor;color:var(--catalog-card-text);margin-inline-start:auto;margin-top:8px;background:var(--catalog-card-glass);box-sizing:border-box}
body.catalogMode .referenceCatalog .cardBasketHint .uiIcon{width:22px;height:22px}
body.catalogMode .referenceCatalog .product:focus-visible{outline:2px solid var(--catalog-card-text);outline-offset:3px}
@media(max-width:660px){body.catalogMode .referenceCatalog .catalogProducts .product:is(.card-full-image,.card-clear-glass,.card-frosted-glass) .details{padding:10px 8px}body.catalogMode .referenceCatalog .catalogProducts .product.card-full-image>.details{padding-top:24px}}

/* v102: compact, aligned display-only badges; labels stay bilingual. */
.paymentBadge.manualPayment{width:154px;min-height:76px;height:76px;padding:8px;gap:6px;flex-direction:row}
.paymentBadge.manualPayment svg{width:19px;height:19px}
.paymentBadge.manualPayment .manualPaymentNames{gap:2px;min-width:0}
.paymentBadge.manualPayment .manualPaymentNames span{font-size:11px;line-height:1.35}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment{width:142px;min-height:38px;height:38px;padding:4px 6px;gap:5px;flex-direction:row}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment svg{width:17px;height:17px}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment .manualPaymentNames span{font-size:10px;line-height:1.25;white-space:nowrap}
@media(max-width:660px){.paymentBadge.manualPayment{width:138px;min-height:70px;height:70px}}
@media(max-width:480px){body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment{width:132px;min-height:35px;height:35px;padding:3px 5px;gap:4px;flex-direction:row}}

/* The whole product remains the accessible target. The small basket is a hint,
   not a second tiny button; full titles/details remain in the product dialog. */
body.catalogMode .referenceCatalog .catalogProducts:not(.layout-list) :is(.grid,.featuredRail){align-items:stretch;grid-auto-rows:1fr}
body.catalogMode .referenceCatalog .catalogProducts .product{align-self:stretch;min-width:0}
body.catalogMode .referenceCatalog .catalogProducts .product>.details{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(32px,auto);align-content:start;gap:4px;padding:8px 7px;min-width:0}
body.catalogMode .referenceCatalog .catalogProducts .product>.details:has(.cardBasketHint){grid-template-columns:minmax(0,1fr) 28px;column-gap:5px}
body.catalogMode .referenceCatalog .catalogProducts .product>.details>.small{grid-column:1/-1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3;min-height:1.3em}
body.catalogMode .referenceCatalog .catalogProducts .product>.details>h3{grid-column:1/-1;margin:0;line-height:1.45;height:2.9em;min-height:2.9em;max-height:2.9em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
body.catalogMode .referenceCatalog .catalogProducts .product>.details>.row{grid-column:1;grid-row:3;align-self:center;min-width:0;margin:0;gap:0}
body.catalogMode .referenceCatalog .catalogProducts .product>.details>.row>span{min-width:0;max-width:100%}
body.catalogMode .referenceCatalog .catalogProducts .product>.details .price{line-height:1.35;white-space:normal;overflow-wrap:anywhere}
body.catalogMode .referenceCatalog .catalogProducts .product>.details del{line-height:1.3;white-space:normal;overflow-wrap:anywhere}
body.catalogMode .referenceCatalog .catalogProducts .product>.details>.cardBasketHint{grid-column:2;grid-row:3;align-self:center;justify-self:end;width:28px;height:28px;margin:0;border-radius:50%}
body.catalogMode .referenceCatalog .catalogProducts .product>.details>.cardBasketHint .uiIcon{width:16px;height:16px}
body.catalogMode .referenceCatalog .catalogProducts .product>.details>.productColors{grid-column:1/-1;margin:0;flex-wrap:nowrap;overflow:hidden;max-height:20px}
body.catalogMode .referenceCatalog .catalogProducts .product.card-full-image>.details{padding-top:24px}
body.catalogMode .referenceCatalog .catalogProducts .product>.details:has(.cardBasketHint)>h3{grid-column:1}
body.catalogMode .referenceCatalog .catalogProducts .product>.details>.row{grid-column:1/-1}
body.catalogMode .referenceCatalog .catalogProducts .product>.details>.cardBasketHint{grid-row:2}
/* Image-overlay cards need enough width for bilingual prices at phone sizes. */
body.catalogMode .referenceCatalog .catalogProducts .product.card-full-image{grid-template-rows:minmax(0,1fr) auto}
@media(max-width:660px){body.catalogMode .referenceCatalog .catalogProducts:not(.layout-list):has(.card-full-image) :is(.grid,.featuredRail){grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v103: every payment badge uses exactly the same box, including custom ones. */
.paymentPreset .paymentBadge{width:154px;min-width:154px;max-width:154px;height:76px;min-height:76px;max-height:76px}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge,
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment{width:94px;min-width:94px;max-width:94px;height:38px;min-height:38px;max-height:38px;padding:4px;gap:3px;box-sizing:border-box;flex:0 0 94px}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment svg{width:12px;height:12px}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment .manualPaymentNames{gap:2px;min-width:0}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment .manualPaymentNames span{font-size:8px;line-height:1.3;white-space:nowrap}
@media(max-width:660px){.paymentPreset .paymentBadge,.paymentPreset .paymentBadge.manualPayment{width:138px;min-width:138px;max-width:138px;height:70px;min-height:70px;max-height:70px}}
@media(max-width:480px){
 body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge,
 body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment{width:82px;min-width:82px;max-width:82px;height:35px;min-height:35px;max-height:35px;padding:3px;gap:2px;flex-basis:82px}
 body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment svg{width:10px;height:10px}
 body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment .manualPaymentNames span{font-size:7.5px}
}
/* Basket shares the price row, not the name. Tighter rhythm raises the price. */
body.catalogMode .referenceCatalog .catalogProducts .product>.details{padding:6px 5px;gap:2px;grid-template-rows:auto auto minmax(26px,auto)}
body.catalogMode .referenceCatalog .catalogProducts .product>.details:has(.cardBasketHint){grid-template-columns:minmax(0,1fr) 24px;column-gap:3px}
body.catalogMode .referenceCatalog .catalogProducts .product>.details:has(.cardBasketHint)>h3{grid-column:1/-1;line-height:1.25;height:2.5em;min-height:2.5em;max-height:2.5em}
body.catalogMode .referenceCatalog .catalogProducts .product>.details>.row{grid-column:1;grid-row:3}
body.catalogMode .referenceCatalog .catalogProducts .product>.details>.cardBasketHint{grid-column:2;grid-row:3;width:24px;height:24px;align-self:start;margin-top:1px}
body.catalogMode .referenceCatalog .catalogProducts .product>.details>.cardBasketHint .uiIcon{width:14px;height:14px}
body.catalogMode .referenceCatalog .catalogProducts .product>.details .price{font-size:clamp(11px,1.1vw,15px);line-height:1.2}
body.catalogMode .referenceCatalog .catalogProducts .product>.details del{font-size:clamp(9px,.85vw,12px);line-height:1.2}
body.catalogMode .referenceCatalog .catalogProducts .product.card-full-image>.details{padding-top:16px}
body.catalogMode .referenceCatalog .catalogProducts .product>.details>.row{align-self:start}
body.catalogMode .referenceCatalog .catalogProducts .product>.details>.cardBasketHint{margin-top:0}
@media(max-width:360px){body.catalogMode .referenceCatalog .catalogProducts:not(.layout-list) :is(.grid,.featuredRail){grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v104: one painted outer frame for every built-in and future/custom method.
   Manual badges previously kept a 1px contrasting border inside the equal box,
   shrinking their solid fill by 2px. Logos are content, never the frame. */
.paymentBadge,
.paymentBadge.manualPayment,
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge,
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment{border:0;outline:0;box-shadow:none;box-sizing:border-box;background-clip:border-box;transform:none;vertical-align:middle;flex-shrink:0}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge,
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.manualPayment{border-radius:8px;align-self:center;overflow:hidden}
.paymentBadge.customPayment{background:#fff;color:#202020}
.paymentBadge img{display:block;object-fit:contain;flex-shrink:1;min-width:0;max-width:100%}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.customPayment{flex-direction:column;gap:1px}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.customPayment img{height:16px;max-height:50%;width:100%}
body.catalogMode .referenceCatalog .compactCatalogFooter .paymentBadge.customPayment>span{font-size:8px;line-height:1.15;max-width:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

/* v106: the frame owns geometry, not the loaded image's intrinsic grid track.
   Explicit merchant transform/zoom stays intact; only the viewport is fixed. */
body.catalogMode .referenceCatalog .catalogProducts .product .photo>.cardImage{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;object-fit:cover;object-position:center}

/* Compact visitor controls match the existing classification chips, not the larger category tabs. */
body.catalogMode .referenceCatalog :is(#sort,#catalogSize,#catalogLayout){font-size:11px;line-height:normal;min-height:0;height:var(--catalog-control-height,auto);padding-block:8px;padding-inline-start:16px;padding-inline-end:30px;max-width:100%;width:auto}
body.catalogMode .referenceCatalog .catalogViewControls label{font-size:11px;gap:6px}
/* An empty colour-filter flex item used to consume a row plus gap above these controls. */
body.catalogMode .referenceCatalog #colorchips:empty{display:none}
body.catalogMode .referenceCatalog #filters{margin-block:0;padding-block:0;row-gap:6px}
@media(max-width:660px){
 body.catalogMode .referenceCatalog :is(#sort,#catalogSize,#catalogLayout){font-size:10px;padding-block:7px;padding-inline-start:13px;padding-inline-end:28px}
 body.catalogMode .referenceCatalog .catalogViewControls label{font-size:10px;gap:5px}
}
/* Bring only the controls row closer when there is no intervening colour-filter row. */
body.catalogMode .referenceCatalog .filterBottom:has(#colorchips:empty){margin-block-start:-6px}

/* Compact scrolling identity. Logical alignment mirrors Arabic and English.
   The slot preserves document geometry; only the original header changes size. */
body.catalogMode .referenceCatalog .catalogHeaderSlot{position:relative;overflow:visible}
body.catalogMode .referenceCatalog .catalogHeaderSlot #catalogHeader{position:relative;top:auto;box-shadow:none;border:0;background:transparent}
body.catalogMode .referenceCatalog .catalogHeaderSlot #catalogHeader.isCompact{position:fixed;inset:0 0 auto;z-index:40;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;box-sizing:border-box;width:100%;height:calc(80px + env(safe-area-inset-top,0px));min-height:0;margin:0;padding:calc(12px + env(safe-area-inset-top,0px)) max(36px,calc((100vw - 1176px)/2)) 12px;isolation:isolate;background:transparent;border:0;box-shadow:none}
body.catalogMode .referenceCatalog #catalogHeader.isCompact::before{content:"";position:absolute;inset:0 0 -40px;z-index:-1;pointer-events:none;background:linear-gradient(to bottom,var(--catalog-bg) 0%,var(--catalog-bg) 48%,color-mix(in srgb,var(--catalog-bg) 90%,transparent) 66%,color-mix(in srgb,var(--catalog-bg) 48%,transparent) 84%,transparent 100%)}
body.catalogMode .referenceCatalog #catalogHeader.isCompact .merchantIdentity{display:flex;flex:0 1 120px;min-width:0;max-width:120px;height:56px;margin:0;gap:0;align-items:flex-start;justify-content:center;text-align:start}
body.catalogMode .referenceCatalog #catalogHeader.isCompact .merchantIdentity>img{width:auto;height:56px;max-width:120px;max-height:56px;object-fit:contain;object-position:center;border-radius:0;padding:0;background:transparent}
body.catalogMode .referenceCatalog #catalogHeader.isCompact .merchantNameWrap{display:none}
body.catalogMode .referenceCatalog #catalogHeader.isCompact>.row{display:flex;flex:0 0 auto;flex-wrap:nowrap;justify-content:flex-end;gap:8px;margin:0}
body.catalogMode .referenceCatalog #catalogHeader.isCompact>.row :is(.roundIcon,.roundLanguage){width:44px;height:44px;min-width:44px;min-height:44px;padding:0}
body.catalogMode .referenceCatalog :is(.browseSection,.catalogSearch){scroll-margin-block-start:112px}
@media(max-width:650px){
 body.catalogMode .referenceCatalog .catalogHeaderSlot #catalogHeader.isCompact{height:calc(72px + env(safe-area-inset-top,0px));padding:calc(10px + env(safe-area-inset-top,0px)) 28px 10px;gap:12px}
 body.catalogMode .referenceCatalog #catalogHeader.isCompact .merchantIdentity{height:48px;max-width:90px;flex-basis:90px}
 body.catalogMode .referenceCatalog #catalogHeader.isCompact .merchantIdentity>img{height:48px;max-height:48px;max-width:90px}
}
@media(max-width:359px){body.catalogMode .referenceCatalog .catalogHeaderSlot #catalogHeader.isCompact{padding-inline:20px;gap:8px}body.catalogMode .referenceCatalog #catalogHeader.isCompact>.row{gap:6px}}
