.customer-shop{touch-action:pan-x pan-y;overscroll-behavior-y:none}
.customer-shop main{padding-top:12px;padding-bottom:100px}
.customer-shop input,.customer-shop select,.customer-shop textarea{font-size:16px}
.customer-shop button,.customer-shop a{touch-action:manipulation}
.shop-frame{max-width:880px;margin:auto}
.shop-profile{text-align:center;padding:14px 8px 18px}.shop-profile h1{font-size:clamp(28px,6vw,42px);margin:7px 0 0;color:var(--shop-ink,#166047);line-height:1}
.shop-profile>img,.shop-avatar{width:105px;height:105px;border-radius:50%;object-fit:cover;margin:auto}
.shop-avatar{display:grid;place-items:center;background:var(--shop-tint,#dceee2);font-size:38px;color:var(--shop-ink,#166047)}
.shop-profile button,.shop-filters button{border-radius:99px;background:var(--shop-tint,#dceee2)}
.shop-sale{display:grid;text-align:left;justify-content:start;width:100%;margin:0 0 15px;padding:20px;border-radius:18px;background:linear-gradient(115deg,var(--shop-ink,#166047),#263927);color:#fff;gap:5px}
.shop-sale strong{font-size:23px}
.shop-search{display:flex;align-items:center;gap:8px;border-radius:99px;padding:3px 12px;background:var(--shop-tint,#dceee2);margin:12px 0;color:var(--shop-ink,#166047)}
.shop-search input{width:100%;background:transparent;border:0;min-height:42px}
.shop-heading{margin:14px 0}.shop-heading p{margin:0}.shop-heading h2{margin:0}
.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shop-grid>p{grid-column:1/-1}
.shop-card{position:relative;min-width:0;border-radius:17px;border:1px solid var(--border);background:#fff;overflow:hidden}
.shop-photo{width:100%;display:grid;place-items:center;aspect-ratio:1.14;border:0;border-radius:0;padding:0;background:var(--shop-tint,#dceee2)}
.shop-photo img,.shop-photo svg{display:block;width:100%;height:100%;min-height:0;object-fit:cover;max-height:280px}
.shop-photo svg{padding:22%}
.shop-heart{position:absolute;right:7px;top:7px;border-radius:50%;width:44px;height:44px;padding:0}
.shop-heart.liked svg,[data-fav][aria-pressed=true] svg{fill:var(--shop-ink,#166047);color:var(--shop-ink,#166047)}
.shop-card-copy{padding:9px 11px}.shop-card-copy button{padding:0;display:block;text-align:left;border:0;min-height:32px;overflow-wrap:anywhere}
.shop-card-copy del,.shop-detail-price del{margin-left:7px}.shop-filters{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.shop-filters button[aria-pressed=true]{background:var(--shop-ink,#166047);color:#fff}
.shop-filters label{min-width:125px;flex:1}.shop-filters select{width:100%}
.shop-tabs{position:fixed;z-index:4;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,880px);background:#fff;border:1px solid var(--border);border-radius:16px 16px 0 0;display:grid;grid-template-columns:repeat(4,1fr);gap:0;padding:5px 5px calc(5px + env(safe-area-inset-bottom));min-height:0}
.shop-tabs button{display:grid;justify-items:center;gap:3px;min-height:50px;padding:4px;border:0;background:transparent;font-size:12px}
.shop-tabs button[aria-current=page]{color:var(--shop-ink,#166047);background:var(--shop-tint,#dceee2)}
.shop-collections{display:grid;gap:10px}.shop-collection{position:relative;min-height:125px;overflow:hidden;justify-content:space-between;text-align:left;border:0;border-radius:17px;background:var(--shop-ink,#166047);color:#fff;padding:16px}
.shop-collection img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.48}.shop-collection strong,.shop-collection span{position:relative;font-size:23px;text-shadow:0 1px 4px #000}
.shop-detail-photo{display:flex;overflow:auto;scroll-snap-type:x mandatory;border-radius:16px;background:var(--shop-tint,#dceee2);margin:12px 0}
.shop-detail-photo img,.shop-detail-photo>svg{flex:0 0 100%;width:100%;height:min(42dvh,420px);object-fit:contain;scroll-snap-align:center}
.shop-options{display:flex;flex-wrap:wrap;gap:8px}.shop-options label{position:relative;cursor:pointer}.shop-options input{position:absolute;opacity:0}.shop-options span{border:1px solid var(--border);border-radius:99px;padding:10px;display:block}.shop-options input:checked+span{background:var(--shop-ink,#166047);color:white}.shop-options input:focus-visible+span{outline:2px solid currentColor}
.shop-step{display:flex;gap:3px;align-items:center}.shop-step input{width:70px;text-align:center}.shop-step button{padding:3px;min-width:36px;min-height:44px;border-radius:99px}
.shop-cta{display:grid;grid-template-columns:1fr 1fr;gap:8px}.shop-cta button,.shop-checkout{min-height:48px;border-radius:99px}
.shop-sheet{position:fixed;inset:auto 0 0;width:min(100%,600px);max-width:100%;max-height:85dvh;margin:0 auto;border-radius:20px 20px 0 0;overscroll-behavior:contain;padding-bottom:calc(18px + env(safe-area-inset-bottom))}
.shop-sheet[open]{animation:shop-rise .2s ease-out}.shop-sheet h2{margin:0}.shop-cart-lines{margin:12px 0}.shop-cart-line{display:grid;grid-template-columns:55px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--border)}
.shop-cart-line small,.shop-cart-line span{display:block}.shop-thumb img,.shop-thumb svg{width:55px;height:55px;object-fit:cover;border-radius:9px;background:var(--shop-tint,#dceee2)}
.shop-total{display:grid;gap:8px;margin:14px 0}.shop-checkout{width:100%}
@keyframes shop-rise{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.shop-sheet[open]{animation:none}}
@media(max-width:460px){.customer-shop main{padding-inline:12px}.shop-grid{gap:8px}.shop-cart-line{grid-template-columns:48px minmax(0,1fr)}.shop-cart-line .shop-step{grid-column:2}.shop-thumb img,.shop-thumb svg{width:48px;height:48px}}
.shop-pills{display:flex;gap:6px;overflow:auto;margin:0 0 12px;scrollbar-width:thin}
.shop-pills button{flex:none;min-height:44px;border-radius:99px}
.shop-pills button[aria-pressed=true]{background:var(--shop-ink,#166047);color:white}
.shop-thumbs{display:flex;gap:8px;overflow:auto;margin-bottom:12px}
.shop-thumbs button{padding:0;min-height:48px;min-width:48px;overflow:hidden}
.shop-thumbs img{width:55px;height:55px;object-fit:cover;display:block}
.trendora-shop{background:#f7f8f3;color:#13251b;--border:#d8e2d4}
.trendora-shop .shop-photo{background:#c6d4bb}
.trendora-shop .shop-cta button[value=buy]{background:#545a13;border-color:#545a13}
.trendora-shop .shop-sale{background:linear-gradient(90deg,#263d23e8,#263d2333),url('/trendora-media/desert.webp') center/cover}
.trendora-shop{background:var(--trendora-surface,#f7f8f3);color:var(--trendora-ink,#13251b);--border:var(--trendora-border,#d8e2d4)}
.trendora-shop .muted{color:var(--trendora-muted,#56645a)}
.trendora-shop .shop-card,.trendora-shop .shop-tabs,.trendora-shop dialog{background:var(--trendora-card,#fff)}
.trendora-shop .shop-photo{background:var(--trendora-photo,#c6d4bb)}
.trendora-shop .shop-cta button[value=buy]{background:var(--trendora-buy,#545a13);border-color:var(--trendora-buy,#545a13)}
.shop-sale-wrap{position:relative;border-radius:18px;overflow:hidden;margin-bottom:15px}
.shop-sale-wrap>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.shop-sale-wrap>.shop-sale{position:relative;margin:0}
.shop-sale-wrap:has(>img)>.shop-sale{background:linear-gradient(90deg,#13251beb,#13251b44)}

.inline-store-editor{grid-column:1/-1;text-align:left;min-width:0;scroll-margin-block:1rem 6rem}
.inline-store-editor input,.inline-store-editor textarea,.inline-store-editor select{font-size:16px}
.inline-product-photo{position:relative}
.inline-product-photo .media-drop{position:absolute;bottom:.75rem;right:.75rem;background:var(--shop-card,#fff);color:var(--shop-ink,#166047);padding:.55rem .8rem;border-radius:999px;cursor:pointer}
.inline-product-photo .media-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.inline-product-photo .media-drop:focus-within{outline:2px solid currentColor}
.inline-product-photo .media-drop span:first-child{font-size:1.3em;font-weight:bold}
.inline-store-editor .shop-thumbs>img{width:56px;height:56px;object-fit:cover;border-radius:.5rem}

.owner-store-toolbar{position:sticky;top:0;z-index:5;display:flex;gap:.4rem;align-items:center;flex-wrap:wrap;padding:.55rem;background:var(--shop-card,#fff);border-bottom:1px solid var(--shop-tint,#ddd)}
.owner-store-toolbar button[aria-pressed=true]{background:var(--shop-tint,#e2eee6);font-weight:700}
.owner-store-toolbar button,.owner-edit-sheet button{min-height:44px}
.shop-card>[data-inline-edit=photo]{position:absolute;top:.5rem;left:.5rem;z-index:1;background:#fff;color:#172c23}
.shop-card:has(>[data-inline-edit=photo]){position:relative}
dialog.owner-edit-sheet{position:fixed;inset:0 0 0 auto;margin:0;width:min(520px,100%);max-width:100%;height:100dvh;max-height:100dvh;overflow:auto;overscroll-behavior:contain}
.owner-edit-sheet form{display:grid;gap:.8rem}
.owner-editor-actions{position:sticky;bottom:0;display:flex;flex-wrap:wrap;gap:.5rem;padding:.65rem 0;background:var(--shop-card,#fff);z-index:2}
.owner-sheet-cancel{display:none}
.owner-edit-sheet .owner-sheet-cancel{display:inline-block}
@media(max-width:640px){dialog.owner-edit-sheet{inset:auto 0 0;width:100%;height:auto;max-height:92dvh;border-radius:1rem 1rem 0 0;padding-bottom:max(1rem,env(safe-area-inset-bottom))}}

/* Keep editor grid tracks smaller than their contents, including native file inputs. */
.owner-edit-sheet form{grid-template-columns:minmax(0,1fr)}
.owner-edit-sheet :is(form,label,input,select,textarea,.media-drop,.inline-store-editor,.builder-shell){min-inline-size:0;max-inline-size:100%}
.owner-edit-sheet :is(label,.row,small,p){overflow-wrap:anywhere}
.owner-edit-sheet input[type=file]{display:block;inline-size:100%}
.owner-edit-sheet textarea{white-space:pre-wrap;overflow-wrap:break-word}
.owner-edit-sheet #owner-profile>img{max-inline-size:min(100%,8rem);height:auto}
@media(max-width:640px){
 dialog.owner-edit-sheet{box-sizing:border-box;inline-size:100%;max-inline-size:100%;max-block-size:92dvh;padding:0 clamp(.75rem,4vw,1.25rem) max(.75rem,env(safe-area-inset-bottom));overflow-x:hidden;scroll-padding-block:4rem 5rem}
 .owner-edit-sheet>.row{position:sticky;inset-block-start:0;z-index:3;padding:.5rem 0;background:inherit;gap:.5rem}
 .owner-edit-sheet>.row h2{margin:0;font-size:1.15rem}
 .owner-edit-sheet>.row button{flex:none}
 .owner-edit-sheet :is(input,textarea,select){font-size:16px}
 .owner-editor-actions button{flex:1 1 auto}
 .draft-store-preview{display:block;max-inline-size:100%;height:75dvh}
}

.shop-tabs-owner{grid-template-columns:repeat(5,minmax(0,1fr))}
.shop-tabs-owner>a{display:grid;justify-items:center;align-content:center;gap:3px;min-height:50px;padding:4px;border-radius:10px;font-size:12px;font-weight:700}
@media(max-width:360px){.shop-tabs-owner :is(a,button){font-size:11px;padding-inline:1px}}

.owner-dashboard{padding-bottom:calc(5rem + env(safe-area-inset-bottom))}
.owner-settings-nav>a[aria-current=page]{color:var(--shop-ink,#166047);background:var(--shop-tint,#dceee2)}
@media(max-width:760px){
 .workspace .owner-dashboard{grid-template-columns:clamp(108px,35vw,178px) minmax(0,1fr);gap:.55rem}
 .workspace .owner-dashboard .admin-sidebar{position:sticky;top:.5rem;padding:.4rem;min-width:0;max-height:calc(100dvh - 6rem - env(safe-area-inset-bottom));overflow:auto}
 .workspace .owner-dashboard .admin-sections{display:grid;gap:.3rem;overflow:visible}
 .workspace .owner-dashboard .admin-sections button{white-space:normal;overflow-wrap:normal;text-align:center;padding:.4rem .25rem;font-size:.9rem}
 .owner-dashboard>section,.owner-dashboard #owner-content{min-width:0}
 .owner-settings-nav{inset:auto 0 0;transform:none;margin-inline:auto;width:100%}
 .shop-frame>.shop-tabs{position:fixed;inset:auto 0 0;transform:none;margin-inline:auto;width:100%}
}

.workspace .owner-dashboard .admin-sections{justify-items:stretch}
.workspace .owner-dashboard .admin-sections button{width:100%;min-height:46px;justify-content:center;text-align:center}
.workspace .owner-dashboard .owner-brand{width:min(100%,110px);max-width:none;aspect-ratio:1;justify-self:center;margin:0;padding:0;overflow:hidden;border-radius:50%;background:#fff}
.workspace .owner-dashboard .owner-brand img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.owner-brand{position:relative;cursor:pointer;text-align:center}
.owner-brand input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.owner-brand:focus-within{outline:2px solid #b0e1ff;outline-offset:2px}
.owner-brand-status:empty{display:none}
.workspace .owner-dashboard .owner-brand-status{letter-spacing:0;overflow-wrap:anywhere}
.owner-brand span{display:none}
.owner-profile-tabs{display:grid;grid-template-columns:minmax(0,1fr);gap:.55rem;width:min(100%,16rem);justify-self:start;margin:0;padding:0;min-height:0}
.owner-profile-tabs button{width:100%;min-height:48px;white-space:normal;border-radius:12px;padding:.7rem 1rem;text-align:left;background:#fff}
.owner-profile-tabs button[aria-current=page]{background:#dbedf8;color:#173b56}

.shop-card-media{position:relative}
.shop-price-slot{position:absolute;inset:auto auto .55rem .55rem;display:flex;align-items:center;gap:.2rem;max-width:calc(100% - 1.1rem)}
.shop-price-badge{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.3rem;background:#fff;color:#111;padding:.32rem .52rem;border-radius:.5rem;box-shadow:0 1px 4px #0003;font-size:.83rem}
.shop-price-badge del{font-size:.72rem}
.visual-slot{display:inline-flex;align-items:center;gap:.2rem;min-width:0}
.visual-slot>h2{min-width:0}
.visual-dots{display:inline-grid;place-items:center;flex:none;min-width:32px;min-height:32px;padding:0 .3rem;background:#fff;color:#172441;border-radius:.5rem}
.shop-tabs .visual-slot{position:relative;display:grid}
.shop-tabs .visual-slot>.visual-dots{position:absolute;inset:auto 0 100% auto;min-height:32px}
.shop-tabs .visual-slot>a{display:grid;justify-items:center;align-content:center;gap:3px;min-height:50px;font-size:12px}
.visual-store-price{display:flex;justify-content:flex-end;align-items:center;gap:.3rem;font-size:.8rem}
.visual-save-status{flex-basis:100%;margin:0;font-size:.85rem;overflow-wrap:anywhere}
.visual-save-status:empty{display:none}

.landing-tab,.landing-button{display:flex;gap:.5rem;flex-wrap:wrap;margin-block:.65rem}
.landing-tab{flex-wrap:nowrap;overflow-x:auto}
.landing-tab .landing-item{flex:none}
.landing-item{display:flex;align-items:center;gap:.4rem;min-width:0;overflow-wrap:anywhere}
.landing-item p{white-space:pre-wrap}
.landing-image img,.hero-art img{max-width:100%;max-height:320px;object-fit:contain;border-radius:14px}
#market-landing-editor{min-width:0}
#market-landing-editor .hero section{min-width:0;overflow-wrap:anywhere}

.owner-photo-editor{display:grid;gap:.5rem;min-width:0}
.owner-photo-editor img{width:100%;height:clamp(130px,34vh,260px);object-fit:contain;border-radius:.8rem;background:#edf2eb}
.owner-photo-editor input{width:100%;min-width:0}

/* Reserve room for fixed navigation, including owner controls above its top edge. */
body:has(.shop-frame>.shop-tabs) footer,
body:has(.owner-settings-nav) footer{margin-bottom:calc(76px + env(safe-area-inset-bottom))}
body:has(.shop-frame>.shop-tabs-owner) footer{margin-bottom:calc(112px + env(safe-area-inset-bottom))}
.shop-tabs .visual-slot> :is(button:not(.visual-dots),a){min-width:0;width:100%}
.shop-tabs .visual-slot> :is(button,a)>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shop-frame>.shop-tabs::before,.owner-settings-nav::before{
 content:"";position:absolute;z-index:-1;inset:0 calc((100% - 100vw)/2);
 background:inherit;border-radius:inherit;
}

.shop-frame h2{font-weight:800;letter-spacing:-.025em;line-height:1.2}
.shop-heading{margin-block:1rem;min-width:0}
.shop-heading>p{margin-top:.35rem}
.shop-heading>[data-inline-edit]{margin-top:.6rem;min-height:44px}
.shop-filters{align-items:end;gap:.55rem;padding:.75rem;border:1px solid var(--border);border-radius:1rem;background:var(--store-card,#fff)}
.shop-filters label,.shop-category-strip{font-weight:700}
.shop-filters button{min-height:44px}
.shop-category-strip{display:grid;gap:.35rem;width:100%;margin-block:.75rem;padding:.65rem .75rem;border:1px solid var(--border);border-radius:.85rem;background:var(--store-card,#fff)}
.shop-category-strip select,.shop-filters select{width:100%;min-width:0;min-height:44px}
@media(max-width:560px){
 .shop-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .shop-filters label{grid-column:1/-1;min-width:0}
 .shop-filters button{white-space:normal;justify-content:center}
}

.shop-profile-banner{position:relative;isolation:isolate;overflow:hidden;border-radius:1rem;padding:clamp(1.25rem,4vw,2.5rem) .85rem;color:#fff;background:#172441;overflow-wrap:anywhere}
.shop-profile-background,.shop-profile-background::after{position:absolute;inset:0;z-index:-1}
.shop-profile-background img{display:block;width:100%;height:100%;object-fit:cover}
.shop-profile-background::after{content:"";background:rgb(0 0 0 / 66%);z-index:0}
.shop-profile-banner :is(h1,small,.muted){color:#fff}
.shop-profile-banner button{color:#172441}
#owner-profile fieldset img{display:block;width:100%;max-height:160px;object-fit:contain}

.workspace .owner-dashboard .admin-sidebar>small:last-of-type{text-align:center}

body:has(.owner-dashboard)>header #nav{max-width:none;margin-inline:0;justify-content:flex-start}

.owner-profile-help{margin:.2rem 0;color:#52617a;font-size:.82rem;line-height:1.45}
.owner-signout button{min-height:44px}
@media(max-width:760px){
 .owner-dashboard>section{min-height:calc(100dvh - 11rem - env(safe-area-inset-bottom));grid-template-rows:auto 1fr auto}
 .owner-dashboard #owner-content{align-content:start}
 .owner-dashboard .workspace-top{gap:.45rem}
 .owner-dashboard .workspace-top .toolbar{min-width:0}
 .owner-dashboard .workspace-top .toolbar button{padding-inline:.55rem;font-size:.85rem}
 .owner-signout button{width:100%}
}

.owner-profile-tabs .owner-profile-signout{background:#e5f1fa;color:#173b56}
.owner-preview-back{margin-bottom:.65rem;font-size:.85rem;min-height:44px}

.customer-shop main:has(.shop-frame>.shop-tabs){padding-bottom:1rem}
body:has(.shop-frame>.shop-tabs)>footer{
 width:min(880px,calc(100% - 64px));
 padding-inline:0;
 padding-bottom:.75rem;
}
@media(max-width:760px){
 body:has(.shop-frame>.shop-tabs)>footer{width:min(880px,calc(100% - 32px))}
}
@media(max-width:460px){
 body:has(.shop-frame>.shop-tabs)>footer{width:calc(100% - 24px)}
}

.shop-price-badge{font-size:1rem;padding:.42rem .65rem;min-height:34px}
.shop-price-badge del{font-size:.78rem}
.shop-card-media:has(.shop-quick-add) .shop-price-slot{max-width:calc(100% - 3.7rem)}
.shop-quick-add{position:absolute;inset:auto .55rem .55rem auto;display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:.7rem;background:#fff;color:var(--shop-ink,#166047);font-size:1.5rem;line-height:1}
.shop-card-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;margin:.15rem 0 .35rem;font-size:.85rem;line-height:1.35;color:inherit;opacity:.8}

.shop-line-pricing{display:grid;gap:.12rem;min-width:0;overflow-wrap:anywhere}
.shop-line-pricing b{font-size:1.08rem}
.shop-line-pricing small{color:#52617a}
.shop-line-pricing small:empty{display:none}
.shop-cart-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.shop-step{display:inline-flex;gap:0;width:max-content;max-width:100%;overflow:hidden;border:1px solid #bcd5e8;border-radius:.75rem;background:#dceefb;color:#18324a}
.shop-step :is(button,input,span){min-height:44px;background:#dceefb;color:#18324a;border:0;border-radius:0}
.shop-step span{display:grid;place-items:center;min-width:2.25rem}
.shop-step input{width:3.1rem}
.shop-step button{min-width:40px}
.shop-step :is(button,input,span)+:is(button,input,span){border-inline-start:1px solid #bcd5e8}
.shop-remove{padding:.45rem .65rem;min-height:44px}
.shop-checkout-items{display:grid;gap:.65rem}
.shop-checkout-items .shop-cart-line{grid-template-columns:55px minmax(0,1fr)}
.shop-choice{display:flex;align-items:center;gap:.55rem;min-height:42px}
.shop-choice input{width:auto;min-height:0}
#shop-order [hidden]{display:none}
#shop-order [data-payment-instructions]{white-space:pre-wrap;overflow-wrap:anywhere}
.shop-total .row{justify-content:space-between;gap:1rem}
.shop-total .row strong{text-align:right}
.shop-total .row:last-child{font-size:1.12rem;border-top:1px solid var(--border);padding-top:.55rem}
@media(max-width:460px){.shop-cart-actions{grid-column:2}.shop-cart-line{padding-block:.65rem}}
