/* Shared palette and form primitives. Page layouts follow in route order. */
:root {
  --blue:#0057FF; --blue-dark:#0047CC; --navy:#09265C; --sky:#00B8F0;
  --yellow:#FFD326; --green:#008A3B; --white:#fff; --bg:#F5F7FA; --ink:#14243A;
  --muted:#526274; --line:#DFE5ED; --focus:#0057FF;
  --accent:var(--blue-dark); --accent-deep:var(--navy); --accent-tint:#eaf3ff;
  --blue-gradient:linear-gradient(152deg,#09265C 4%,#0047CC 77%,#0074d9);
  --yellow-gradient:linear-gradient(#ffdd3e,#ffc414);
  --card-shadow:0 2px 6px #09265c16,0 1px 2px #09265c13;
  font:15px/1.37 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);background:var(--bg);
}
*{box-sizing:border-box}
body{margin:0;min-width:0}
[hidden]{display:none!important}
img{display:block;max-width:100%}
a{color:#164bc0;font-weight:700;text-underline-offset:3px}
a:not(:hover){text-decoration:none}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.5}
button[aria-disabled="true"]{cursor:wait;opacity:.65}
h1,h2,h3,p,small,strong,a,dt,dd{overflow-wrap:anywhere}
h1,h2,h3,p{margin:0 0 .55rem}
h1,h2,h3{line-height:1.14;letter-spacing:-.026em;font-weight:810}
h1{font-size:clamp(1.32rem,4vw,2rem)}
h2{font-size:clamp(1.19rem,2.6vw,1.48rem);margin-top:.85rem}
h3{font-size:1.05rem}
small,.muted{color:var(--muted)}
.pre{white-space:pre-wrap}
.icon{display:inline-block;width:1.2em;height:1.2em;flex:none;vertical-align:-.18em}
.row{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem}
.spread{justify-content:space-between}
.split,.compact-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.pager{display:flex;justify-content:center;gap:8px;margin:1rem 0}
.section-head{margin:.4rem 0 1rem}
.section-head p{color:var(--muted)}
.section-line{margin:.65rem 0 .38rem}
.section-title,.section-line h2,.photo-heading h2{margin:0}
.section-title .icon,.panel-title .icon{color:var(--accent)}
.narrow{max-width:620px}
.full{width:100%}
.back-link{display:inline-flex;align-items:center;gap:.38rem}

/* Navigation and actions */
.art{width:2em;height:2em;object-fit:contain;flex:none;display:inline-block;vertical-align:middle}
.sr-only,.card-save :is(.button,button) span,.identity-save :is(.button,button) span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.top{color:#fff;background:var(--blue-gradient);box-shadow:0 2px 8px #09265c24}
.top-inner{width:min(1160px,100%);margin:auto;padding:9px 20px;min-height:55px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.brand-group,.brand{display:flex;align-items:center;gap:7px;min-width:0}
.brand{color:#fff;font-size:1.19rem;line-height:1.04}
.brand .art{width:35px;height:35px}
.brand small{display:block;margin-top:3px;color:#e6f5ff;font-size:.75rem;font-weight:650}
.header-tools{display:flex;gap:5px;flex:none;align-items:center}
.header-back,.header-icon{position:relative;display:grid;place-items:center;width:37px;height:37px;color:#fff;border-radius:8px}
.header-back{width:32px;flex:none;font-size:1.16rem}
.header-icon .art{width:30px;height:30px}
.header-icon:hover,.header-back:hover{background:#ffffff1c}
.header-icon b{position:absolute;right:0;top:0;padding:2px 5px;min-width:17px;line-height:1.1;font-size:.71rem;text-align:center;background:#c61d37;color:#fff;border-radius:20px}
.header-icon b[data-empty="true"]{display:none}
.main{width:min(1160px,100%);min-height:0;margin:auto;padding:16px 18px 24px}
.footer{display:flex;justify-content:space-between;gap:.7rem;flex-wrap:wrap;width:min(1160px,100%);padding:10px 18px calc(80px + env(safe-area-inset-bottom));margin:auto;font-size:.79rem;color:var(--muted)}
.bottom{position:fixed;z-index:6;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;bottom:0;left:50%;transform:translateX(-50%);width:min(600px,100%);background:#fff;border:1px solid var(--line);border-bottom:0;border-radius:12px 12px 0 0;padding:3px 6px calc(3px + env(safe-area-inset-bottom));box-shadow:0 -4px 16px #09265c17}
.bottom a{display:grid;justify-items:center;align-content:center;gap:1px;min-height:58px;font-size:.72rem;font-weight:800;color:var(--navy);border-radius:9px}
.bottom a[aria-current="page"]{background:var(--blue-gradient);color:#fff}
.bottom .art{width:24px;height:24px}
.bottom [aria-current="page"] .art{filter:drop-shadow(0 0 2px #ffffffc0)}
button,.button{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:44px;max-width:100%;padding:7px 12px;border:1px solid transparent;border-radius:9px;font-weight:780;text-align:center;line-height:1.14}
.button:hover{text-decoration:none;filter:brightness(.96)}
button.primary,.button.primary,button.blue-action,.button.blue-action{background:var(--blue-dark);color:#fff}
button.yellow,.button.yellow{background:var(--yellow-gradient);color:var(--ink);border-color:#f4bf0a;box-shadow:0 2px 4px #87590120}
button.green,.button.green{background:linear-gradient(#07872e,#006825);color:#fff}
button.soft,.button.soft{background:#f7fbff;color:var(--navy);border-color:var(--line)}
button.danger,.button.danger{background:#fbe9ec;color:#861a31}
.header-icon:focus-visible,.header-back:focus-visible,.storefront-hero .button:focus-visible,.sidebar :focus-visible{outline-color:var(--yellow)}

/* Forms and information layers */
.panel,.shop-card,.product-card,.rent-card,.metric{
  min-width:0;background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--card-shadow)
}
.panel{padding:15px;margin:10px 0}
.panel h2{margin-top:0}
.panel-title{display:flex;align-items:center;gap:.45rem}
form:not(.search,.favorite,.inline,.filters,.cart-quantity){display:grid;gap:.65rem}
form label{display:grid;gap:4px;font-size:.91rem;font-weight:690}
input,select,textarea{width:100%;min-width:0;border:1px solid #b8c5dd;border-radius:8px;padding:8px 10px;background:#fff;color:var(--ink)}
input,select{min-height:42px}
textarea{resize:vertical}
input[type=file]{font-size:.82rem}
input[type=checkbox]{min-height:18px;width:18px;flex:none;accent-color:var(--accent)}
input[type=range]{padding:0}
fieldset{min-width:0;border:1px solid #dbe3f1;border-radius:9px;padding:10px;margin:0}
legend{font-weight:730;padding-inline:5px}
.check{display:flex!important;flex-direction:row;align-items:center;gap:7px}
summary{cursor:pointer;font-weight:750;color:var(--navy)}
details[open]>summary{margin-bottom:8px}
.search{position:relative;display:grid;margin:.4rem 0}
.search input{min-height:35px;padding:6px 42px 6px 11px;border-radius:18px;background:linear-gradient(#fff,#f1f7fd);border-color:#c7d7e6;box-shadow:inset 0 1px 3px #09265c12;font-size:.88rem}
.search button.primary{position:absolute;inset:1px 1px 1px auto;min-height:0;width:37px;padding:3px;background:transparent;border-radius:18px}
.search button .art{width:21px;height:21px}
.filters{display:flex;flex-wrap:wrap;align-items:end;gap:7px;margin:.6rem 0}
.filters label{flex:1 1 118px;max-width:225px}
.chips,.merchant-tabs{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:.65rem 0}
.chip{padding:6px 10px;background:#fff;color:#253961;border:1px solid #dce3f0;border-radius:8px;font-size:.83rem;min-height:36px;display:inline-flex;align-items:center;gap:5px}
.chip.selected,.chip[aria-current="page"]{background:var(--yellow);color:var(--ink);border-color:#e8b809}
.flash,.inline-warning,.payment-note,.empty,.promo{padding:.7rem .9rem;border-radius:9px}
.flash{background:#def8e7;color:#174929;border:1px solid #b4ddc3;margin-bottom:.8rem}
.flash.error,.inline-warning,.refund-note{background:#fff0f3;color:#831a37;border-color:#eebdca}
.empty{background:#f9fbff;border:1px dashed #b8c5de;margin:.7rem 0;color:var(--muted)}
.empty-state{display:grid;justify-items:center;text-align:center;gap:10px;padding:26px 12px}
.empty-state>.icon{width:40px;height:40px;color:var(--accent)}
.promo{background:var(--accent-tint);border-left:4px solid var(--accent);margin:.6rem 0}
.promo span{display:block}
.notice.unread{background:#eef4ff;border-inline-start:4px solid var(--blue)}
.list-line{padding:.5rem 0;border-bottom:1px solid var(--line)}
.tag{display:inline-block;border-radius:7px;padding:4px 8px;font-size:.73rem;font-weight:770;line-height:1.25;background:#eff2fa;color:#334365}
.tag.active,.tag.available,.tag.order-delivered,.tag.payment-paid{background:#def8e9;color:#11552e}
.tag.ending,.tag.awaiting,.tag.order-new,.tag.payment-pending{background:#fff0bf;color:#63470a}
.tag.expired,.tag.cancelled,.tag.suspended,.tag.order-cancelled,.tag.refund{background:#ffe3eb;color:#8c183b}
.tag.order-confirmed{background:#e3edff;color:#184798}
.tag.order-preparing{background:#e2edff;color:#114283}
.tag.order-ready,.tag.payment-refunded{background:#def4f7;color:#115667}

/* Front page, categories, and directory */
.hero{color:#fff;border-radius:14px;overflow:hidden;margin-bottom:.5rem;background:var(--blue-gradient)}
.hero-body{padding:20px}
.hero-body>.eyebrow,.hero-body>span:first-child:not(.module-icon){color:var(--yellow);font-weight:800;font-size:.8rem;display:block;margin-bottom:.35rem}
.hero-body p{color:#eef8ff}
.storefront-hero{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);position:relative;min-height:222px;isolation:isolate;background:radial-gradient(ellipse at 87% 57%,#00a5ff 0,#0047cc 34%,#09265c 75%);align-items:center}
.storefront-hero::after{content:"";position:absolute;z-index:-1;right:-12%;bottom:-49%;width:73%;height:80%;border-radius:50%;background:#00b8f0;transform:rotate(-22deg);opacity:.55}
.storefront-hero .hero-body{padding:16px 0 16px 17px;z-index:1}
.storefront-hero h1{font-size:clamp(1.5rem,4.4vw,3.5rem);line-height:.97;letter-spacing:-.045em;margin:0 0 .48rem}
.storefront-hero h1 em{color:var(--yellow);font-style:normal}
.storefront-hero ul{list-style:none;padding:0;margin:0 0 .55rem;font-size:clamp(.8rem,2vw,1.12rem);line-height:1.3}
.storefront-hero li{display:flex;align-items:center;gap:4px}
.storefront-hero li .icon{width:14px;height:14px;background:#fff;color:var(--navy);border-radius:50%;padding:2px}
.storefront-hero .button{padding:6px 11px}
.hero-image{width:100%;max-height:290px;object-fit:contain;object-position:center;mix-blend-mode:normal;align-self:center}
.category-tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:.5rem 0 .3rem}
.category-tiles .category{background:linear-gradient(#fff,#f0f6fc);color:var(--ink);border:1px solid var(--line);box-shadow:var(--card-shadow);display:flex;flex-direction:column;gap:1px;font-size:.76rem;min-height:70px;padding:3px 4px}
.category-tiles .art{width:36px;height:36px}
.more-categories{margin:.3rem 0 .45rem;text-align:right;font-size:.76rem}
.more-categories[open] .category-tiles{text-align:center}
.directory-chips{display:flex;flex-wrap:nowrap;overflow:auto;scrollbar-width:none;padding:2px 0 5px;margin:.25rem 0}
.directory-chips .chip{white-space:nowrap;min-height:29px;border-radius:18px;box-shadow:var(--card-shadow)}
.section-title .art{width:22px;height:22px}
.section-line>a{font-size:.84rem}
.catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:.4rem 0 .7rem}
.shop-card,.product-card{overflow:hidden;display:flex;flex-direction:column}
.shop-media,.product-media{position:relative}
.shop-photo,.product-media>a{display:block}
.shop-info{padding:6px 8px 8px;display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0;gap:2px}
.shop-info small{font-size:.72rem}
.shop-info p{margin:0 0 .28rem;color:var(--muted);font-size:.77rem;line-height:1.15}
.shop-open,.product-open{margin-top:auto;width:100%;min-height:44px;padding:5px 7px;font-size:.81rem}
.shop-info form.product-open{padding:0;min-height:0}
.product-open button{min-height:44px;width:100%;padding:4px;font-size:.8rem}
.product-open .art{width:19px;height:19px}
.card-title{display:block;color:var(--ink);font-size:.96rem;font-weight:850;line-height:1.13}
.tile-pic,.product-pic,.panorama,.mini-product,.editor-thumb{width:100%;background:#eef4fa;object-fit:contain}
.tile-pic{aspect-ratio:5/2}
.product-pic{aspect-ratio:1;object-fit:contain;background:#f7f9fc;padding:7px}
.placeholder{display:grid;place-items:center;background:#eaf3ff;color:var(--blue-dark)}
.placeholder .icon{width:24px;height:24px}

.featured-shop .shop-info{padding:4px 7px 6px}
.shop-logo{width:60px;height:60px;flex:none;border:1px solid var(--line);border-radius:9px;background:#fff;object-fit:contain}
.card-save{position:absolute;right:5px;top:5px}
.card-save :is(.button,button),.identity-save :is(.button,button){width:33px;height:33px;min-height:33px;padding:0;border-radius:50%;background:#fff;color:var(--navy);box-shadow:var(--card-shadow)}
.card-save .art,.identity-save .art{width:19px;height:19px;filter:grayscale(.75);opacity:.79}
.favorite [aria-pressed="true"] .art{filter:none;opacity:1}
.favorite small:empty{display:none}
.favorite small:not(:empty){position:absolute;top:100%;right:0;min-width:112px;background:#fff;color:#861a31;padding:4px}
.price{display:inline-block;color:var(--blue-dark);font-size:1.36rem;font-weight:800;line-height:1.1}
.price.large{font-size:1.65rem}
.price-line{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:.15rem 0 .23rem}
.price-line del,.product-prices del{color:var(--muted);font-size:.78rem}
.rent-card{display:grid;grid-template-columns:118px minmax(0,1fr);max-width:570px;align-items:center;gap:8px;padding:9px;background:linear-gradient(120deg,#e3f3fe,#fff);margin:.65rem 0}
.rent-card>img{width:118px;aspect-ratio:1;object-fit:contain}
.rent-card h2,.rent-card p{margin:0 0 .18rem}
.rent-card small{display:block;font-weight:800;color:var(--navy);margin-bottom:.32rem}
.rent-card .button{min-height:36px;font-size:.83rem}

/* Storefront and product detail */
.storefront{max-width:960px;margin:auto}
.store-hero{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;box-shadow:var(--card-shadow)}
.store-hero>.panorama{display:block;aspect-ratio:3/1;object-fit:contain;background:#09265c}
.store-hero>.store-sign{display:flex;align-items:center;justify-content:center;gap:11px;background:var(--blue-gradient);color:#fff;font-size:clamp(1.2rem,3.4vw,2.4rem);padding:10px}
.store-sign img{width:48px}
.identity{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 9px}
.identity .shop-logo{width:50px;height:50px;border:2px solid var(--yellow);border-radius:50%}
.identity h1{margin:0;color:var(--ink);font-size:clamp(1.13rem,3.5vw,1.85rem)}
.identity p{margin:.15rem 0;color:var(--muted);font-size:.78rem}
.identity .tag{padding:2px 6px}
.identity-save{position:relative}
.contact-row,.store-social{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:.4rem 0}
.store-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.store-actions :is(.button,button,summary),.store-social .button{width:100%;min-height:35px;padding:5px 3px;font-size:.76rem;box-shadow:var(--card-shadow)}
.store-social .button{width:auto;min-height:29px;padding:3px 7px}
.store-actions .art{width:19px;height:19px}
.store-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;background:#fff;border:1px solid var(--line);padding:3px;border-radius:10px;margin:.45rem 0;box-shadow:var(--card-shadow)}
.store-tabs a{min-width:0;display:grid;place-items:center;padding:3px;min-height:32px;border-radius:7px;text-align:center;color:var(--ink);font-size:.75rem}
.store-tabs a[aria-current="page"]{background:var(--yellow-gradient);color:var(--ink)}
.store-section{color:var(--ink);margin:.38rem 0 .2rem}
.store-about{color:var(--muted);margin:.3rem 0;font-size:.83rem}
.collection-rail{margin:.3rem 0;gap:4px}
.collection-rail .chip{min-height:27px;padding:3px 7px}
.product-detail,.checkout-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:12px;align-items:start}
.product-detail{max-width:1000px;margin:auto}
.checkout-grid>.panel,.product-sheet{margin-top:0}
.product-sheet h1{margin:.16rem 0 .3rem}
.product-sheet .contact-row>a.green,.buy-submit{width:100%}
.product-sheet .contact-row{margin:.42rem 0 .12rem}
.product-sheet .buy-product{gap:.4rem}
.product-prices{gap:5px 9px}
.product-description{margin:.36rem 0 .48rem}
.buy-submit .art{width:23px;height:23px}
.stock-availability{color:#105b2a;background:#dff8e6;border-radius:16px;padding:3px 7px;font-weight:750;margin:0;font-size:.75rem}
.stock-availability[data-out="true"]{color:#941a33;background:#ffe7eb}
.variant-choices{border:none;padding:0}
.variant-choices legend{padding:0}
.variant-choices>div{display:flex;flex-wrap:wrap;gap:4px;margin:.17rem 0}
button.variant-choice{background:#fff;color:var(--navy);border-color:#c8daee;min-height:32px;padding:4px 6px;font-size:.78rem}
button.variant-choice[aria-pressed="true"]{background:var(--blue-dark);color:#fff;border-color:var(--blue-dark)}
.variant-choice small{font-size:.67rem;color:inherit}
.quantity-field{width:max-content;max-width:100%}
.quantity-stepper{display:inline-flex;align-items:center;gap:1px;border:1px solid #c3d1e7;border-radius:18px;background:#fff;overflow:hidden}
.quantity-stepper button{padding:2px 6px;min-width:33px;min-height:31px;border:0;border-radius:0;background:#eaf2fd;color:var(--navy);font-size:1.05rem}
.quantity-stepper input{width:35px;min-height:31px;padding:2px;border:0;border-radius:0;text-align:center;appearance:textfield}
.quantity-stepper input::-webkit-inner-spin-button,.quantity-stepper input::-webkit-outer-spin-button{appearance:none}
.gallery-wrap{position:relative}
.gallery{display:flex;overflow:auto;scroll-snap-type:x mandatory;background:#fff;border-radius:12px;scrollbar-width:none}
.gallery-frame{flex:0 0 100%;scroll-snap-align:start}
.gallery-frame img{width:100%;aspect-ratio:1;object-fit:contain;max-height:510px;padding:10px}
.gallery-index{position:absolute;right:7px;top:7px;padding:3px 7px;border-radius:14px;color:#fff;background:#09265cd9;font-size:.75rem;pointer-events:none}
.thumbs{display:flex;justify-content:center;gap:1px;margin:.05rem 0}
.thumbs button{width:48px;height:44px;min-height:44px;padding:3px;background:#fff;border:1px solid var(--line)}
.thumb-photo{width:100%;height:100%;object-fit:contain}
.thumbs button[aria-current="true"]{border:2px solid var(--blue-dark)}
dialog{width:min(95vw,630px);max-height:90dvh;border:1px solid var(--line);border-radius:11px;color:var(--ink)}
dialog::backdrop{background:#09265cbb}
dialog img{margin:auto;max-height:73dvh;object-fit:contain}
.store-qr{position:relative}
.store-qr > summary{list-style:none}
.store-qr summary::-webkit-details-marker{display:none}
.qr-popover{position:absolute;z-index:4;inset-inline-end:0;display:grid;justify-items:center;gap:5px;width:186px;max-width:85vw;padding:7px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--card-shadow)}

/* Cart, checkout and receipt */
.cart-store{margin:0 0 .4rem}
.cart-item{position:relative;display:grid;grid-template-columns:74px minmax(0,1fr) 29px;gap:6px;align-items:center;margin:0 0 7px;padding:7px}
.cart-item .mini-product{width:74px;aspect-ratio:1}
.cart-item h2,.order-list h2{font-size:1rem;margin:0 0 .16rem}
.cart-content>p{margin:0 0 .15rem;font-size:.8rem}
.cart-unit,.cart-subtotal{color:var(--blue-dark);font-weight:810}
.cart-unit{margin:0}
.cart-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:3px;margin-top:.18rem}
.cart-quantity{display:flex;align-items:center;gap:2px}
.cart-quantity .quantity-field label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.cart-quantity .quantity-stepper button{min-width:27px;min-height:29px}
.cart-quantity .quantity-stepper input{width:27px;min-height:29px}
.cart-quantity button[type=submit]{width:27px;min-height:29px;padding:2px;font-size:.74rem}
.cart-remove{align-self:start}
.cart-remove button{font-size:.74rem;min-height:27px;width:27px;padding:3px}
.cart-subtotal{font-size:.73rem}
.checkout-data>summary{color:var(--navy)}
.checkout-data fieldset{display:grid;gap:6px}
.checkout-data fieldset h2{font-size:1.02rem;margin:.15rem 0}
.amount-line{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.4rem;padding:.38rem 0;border-bottom:1px solid var(--line)}
.amount-total{background:#eff6ff;color:var(--navy);padding:8px;border:0;border-radius:7px;margin:.35rem 0;font-size:1.07rem}
.amount-total strong{color:var(--blue-dark)}
.payment-note{background:#eaf3ff;color:#183873}
.delivery-methods{display:grid;gap:3px;padding:4px;margin:0 0 .26rem}
form .delivery-option{display:grid;grid-template-columns:17px 33px minmax(0,1fr);gap:7px;align-items:center;padding:4px 6px;border-radius:7px;cursor:pointer}
.delivery-option:has(:checked){background:#e5f1ff}
.delivery-option input{width:16px;height:16px;min-height:0;accent-color:var(--blue-dark);padding:0;margin:0}
.delivery-option .art{width:31px;height:31px}
.delivery-option small{display:block;font-size:.73rem}
.receipt-intro{display:flex;align-items:center;gap:12px;background:#e7faee;color:#164f30;border-radius:13px;padding:15px;margin:.5rem 0}
.receipt-intro.cancelled{background:#ffe8ef;color:#81203e}
.receipt-intro .icon{width:30px;height:30px}
.receipt-intro .section-head,.receipt-intro h1,.receipt-intro p{margin:0}
.receipt-summary{max-width:720px}

/* Merchant and administrator */
.merchant-banner{display:flex;justify-content:space-between;align-items:center;gap:5px;flex-wrap:wrap;background:#fff;border:1px solid #81caed;border-radius:12px;padding:7px 9px;margin-bottom:.45rem;box-shadow:var(--card-shadow)}
.merchant-identity{display:flex;align-items:center;gap:7px;min-width:0}
.merchant-identity .shop-logo{width:44px;height:44px;border-radius:50%;border:2px solid var(--yellow)}
.merchant-identity h1{font-size:clamp(1.14rem,3.5vw,1.65rem);margin:0 0 3px}
.merchant-identity p{margin:0 0 3px;color:var(--muted);font-size:.76rem}
.merchant-identity .tag{padding:2px 6px}
.dashboard-caption{margin:.45rem 0 .3rem}
.dashboard-more{font-size:.79rem;margin:.35rem 0}
.meters progress,.upload-progress{width:100%;accent-color:var(--blue-dark)}
.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin:.5rem 0}
.metric{display:grid;gap:3px;padding:8px;align-content:start;border-top:3px solid var(--blue);background:#fff;color:var(--navy)}
.metric span{font-size:.75rem;font-weight:760;line-height:1.1}
.metric strong{font-size:clamp(1.08rem,2.5vw,1.54rem);line-height:1.1}
.metric.blue,.metric.blue-info{border-top-color:var(--blue);background:#edf5ff;color:#11418a}
.metric.green{border-top-color:var(--green);background:#e8f8ec;color:#10562a}
.metric.yellow{border-top-color:var(--yellow);background:#fff7e1;color:#634309}
.metric.red{border-top-color:#c83751;background:#fff0f2;color:#841737}
.merchant-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin:.35rem 0}
.merchant-metrics .metric{grid-template-columns:30px minmax(0,1fr);align-items:center;gap:5px;padding:6px;border-top-width:1px}
.merchant-metrics .metric .art{width:29px;height:29px}
.merchant-metrics .metric span,.merchant-metrics .metric strong{display:block}
.publish-cta{width:100%;margin:.35rem 0 .38rem}
.publish-cta .art{width:24px;height:24px}
.dashboard-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:.38rem 0}
.module{display:grid;min-width:0;justify-items:center;align-content:center;gap:2px;padding:5px 2px;text-align:center;min-height:66px;border-radius:10px;border:1px solid var(--line);background:linear-gradient(#fff,#f1f7fe);color:var(--navy);box-shadow:var(--card-shadow)}
.commerce-module strong{font-size:.70rem;line-height:1.1;overflow-wrap:normal;hyphens:auto}
.commerce-module .art{height:42px;width:42px}
.management-item,.stock-item{display:grid;grid-template-columns:65px minmax(0,1fr) auto;gap:10px;align-items:center}
.management-item{grid-template-columns:65px minmax(0,1fr)}
.mini-product{border-radius:8px;aspect-ratio:1/1}
.order-list-body{flex:1 1 100%;min-width:0}
.order-list:not(.stock-item){display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.order-list.unread{border-inline-start:4px solid var(--accent);background:#f0f7fe}
.order-detail .button{margin-bottom:.55rem}
.refund-note{display:flex;gap:.6rem;align-items:flex-start}
.refund-note p{margin:.15rem 0 0}
.stock-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;background:#edf4fc;margin:.5rem 0;padding:8px;border-radius:8px}
.product-basics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.product-basics h2,.product-basics label:first-of-type,.product-basics label:has(textarea){grid-column:1/-1}
.editor-advanced{padding:9px;margin:0;background:#f4f8fd}
.photo-heading{margin:.25rem 0}
.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.upload-card{min-width:0;padding:7px;background:#f4f8fd;border:1px solid #d6e5f7;border-radius:9px}
.main-photo{border-color:#5793e5;background:#e9f3ff}
.upload-card h3{min-height:1.2em;margin:0 0 5px;font-size:.79rem}
.editor-thumb{aspect-ratio:4/5;max-height:150px;border-radius:6px;margin-bottom:4px}
.photo-picker{position:relative;display:flex!important;align-items:center;justify-content:center;gap:4px;min-height:33px;background:#e5f0fc;color:#103873;border-radius:7px;font-size:.72rem}
.photo-picker input{position:absolute;inset:0;opacity:0;min-height:0;padding:0;cursor:pointer}
.photo-picker:focus-within{outline:3px solid var(--focus)}
.capture{width:100%;min-height:32px;padding:3px;font-size:.72rem;margin-top:3px}
.photo-order{display:flex;justify-content:center;gap:3px;margin-top:4px}
.photo-order button{min-height:30px;padding:4px 6px;background:#fff;color:#174682}
.compact-photos .check,.counter{font-size:.73rem}
.counter{justify-self:end}
.admin-layout{display:grid;grid-template-columns:206px minmax(0,1fr);grid-template-rows:auto 1fr;min-height:100vh}
.admin-layout .top{grid-column:1/-1}
.admin-layout .top-inner{width:100%}
.sidebar{background:#09265c;color:#fff;min-width:0;padding:10px}
.sidebar nav{display:grid;gap:2px}
.sidebar a{display:flex;align-items:center;gap:7px;color:#eef6ff;padding:6px 8px;border-radius:7px;font-size:.84rem}
.sidebar a[aria-current="page"]{background:#ffdb42;color:#14243a}
.sidebar summary{display:flex;align-items:center;gap:7px;padding:8px;color:#fff;margin-bottom:3px}
.sidebar summary::after{content:"+";margin-left:auto}
.sidebar details[open]>summary::after{content:"−"}
.sidebar .icon,.sidebar .art{width:20px;height:20px;flex:0 0 auto}
.sidebar form{margin-top:.7rem}
.admin-main{min-width:0;max-width:1500px;padding:15px 17px}
.admin-hero .hero-body{padding:16px 20px}
.admin-hero h1{font-size:clamp(1.5rem,3vw,2.25rem)}
.admin-hero p{margin:0}
.admin-module{color:#163568;border-color:#d4e3f7;background:#edf5ff;font-size:.82rem}
.admin-module:nth-child(3n){background:#edf7ff;color:#174d98}
.admin-module:nth-child(3n+2){background:#eef8f2;color:#145c3a}
.admin-module .art{width:39px;height:39px}
.rent-workflow{border-inline-start:4px solid var(--blue)}
.rent-workflow ol{padding-left:1.25rem;margin:.25rem 0 .7rem}
.directory-adjust [data-directory-preview]{width:min(100%,245px);margin:.4rem 0}
.editor-thumb.directory-preview{aspect-ratio:3/2;object-fit:contain;max-height:none}
.activity{overflow:auto}
.activity table{width:100%;min-width:485px;border-collapse:collapse;text-align:left;font-size:.81rem}
.activity th,.activity td{padding:7px;border-bottom:1px solid var(--line)}
.activity th{background:#e8f2ff;color:#09265c}

/* Etapa 5: new components and existing layout variants */
.merchant-layout .bottom{grid-template-columns:repeat(5,minmax(0,1fr))}
.bottom .publish-nav,.bottom .publish-nav[aria-current="page"]{background:var(--yellow);color:var(--ink)}
.header-icon,.header-back{min-width:44px;min-height:44px}
.header-tools{gap:0}
.shop-media,.directory-adjust [data-directory-preview]{overflow:hidden}
.tile-pic.cropped,.directory-preview.cropped{object-fit:cover;transform:scale(var(--photo-zoom,1));transform-origin:center}
.directory-adjust [data-directory-preview]{touch-action:none}
.directory-adjust [data-directory-preview] .directory-preview{aspect-ratio:5/2}
.shop-info .card-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.stock-figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:5px 0}
.stock-figures div{background:#edf5ff;border-radius:8px;padding:4px}
.stock-figures strong,.stock-figures small{display:block}
.stock-figures small{font-size:.70rem;line-height:1.1}
.stock-figures div:nth-child(2){background:#fff6d9}
.stock-figures div:nth-child(3){background:#e8f8ec}
.stock-item{grid-template-columns:56px minmax(0,1fr)}
.management-item .mini-product{width:64px}
.commerce-module .art{width:36px;height:36px}
.commerce-module strong{font-size:.76rem}
.stats-kpi{grid-template-columns:repeat(2,minmax(0,1fr))}
.payments-chart{height:150px;display:grid;grid-auto-columns:minmax(2px,1fr);grid-auto-flow:column;gap:3px;padding:6px;border-bottom:1px solid var(--line)}
.payments-chart div{height:100%;display:flex;gap:1px;align-items:end;justify-content:center}
.payments-chart i{height:var(--bar);width:min(42%,18px);background:var(--blue);border-radius:3px 3px 0 0}
.payments-chart i+i{background:#bb243d}
.date-range,.period{font-size:.85rem;margin:.3rem 0}
.custom-store details{margin:0}
.custom-store summary,.date-range summary{min-height:36px}
.custom-preview .panorama{aspect-ratio:3/1;border-radius:8px;background:#f0f5fa}
.style-samples,.image-compare{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.theme-modern,.theme-elegant,.theme-commercial{--store-ink:var(--navy);--store-accent:var(--blue-dark);--store-paper:#edf5ff}
.theme-elegant{--store-ink:#242628;--store-accent:#725411;--store-paper:#fff5d1}
.theme-commercial{--store-ink:#582c12;--store-accent:#9c390b;--store-paper:#fff0d7}
.style-samples span{padding:6px 3px;text-align:center;background:var(--store-paper);color:var(--store-accent);border-radius:7px;font-weight:700;font-size:.78rem}
.storefront .store-hero{background:var(--store-paper)}
.storefront .identity h1,.storefront .price{color:var(--store-accent)}
.storefront .store-tabs a[aria-current="page"]{color:var(--store-ink)}
.copy-control output{display:block;overflow-wrap:anywhere;margin:.35rem 0;font-size:.82rem}
.copy-control small{display:block}
.image-compare{grid-template-columns:repeat(2,minmax(0,1fr))}
.photo-studio fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px}
.photo-studio fieldset>.row{grid-column:1/-1}
.image-compare figure{margin:0;min-width:0}
.image-compare img,.image-compare canvas{width:100%;aspect-ratio:1;object-fit:contain;background:#f7f9fc;border:1px solid var(--line);border-radius:10px}
.advert-studio{display:grid;gap:7px}
.advert-studio canvas{width:min(100%,460px);height:auto;display:block;margin:auto;border-radius:11px}
.digital-card{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:10px;text-align:center;background:var(--blue-gradient);color:#fff;border:0}
.digital-card>img{width:min(65vw,240px);height:auto;border-radius:4px}
.digital-card .shop-logo{margin:0 auto 5px}
.digital-card h3{color:#ffd326}
.digital-card p{overflow-wrap:anywhere}
.owner-back{margin-bottom:.4rem}
.main{scroll-margin-bottom:80px}
@media(max-width:900px){
  .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  .top-inner{padding:6px 10px;min-height:54px}
  .brand{font-size:1.1rem}.brand .art{width:35px;height:35px}
  .brand small{font-size:.66rem}
  .header-icon{width:34px;height:34px}
  .header-icon .art{width:28px;height:28px}
  .main{padding:9px 12px 13px}
  .admin-main .dashboard-links{grid-template-columns:repeat(4,minmax(0,1fr))}
  .activity table,.activity tbody,.activity tr,.activity td{display:block;min-width:0}
  .activity thead{display:none}
  .activity tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin-bottom:8px;border:1px solid var(--line);border-radius:10px;padding:6px}
  .activity td{padding:2px 4px;border:0;overflow-wrap:anywhere}
  .activity td:nth-child(3){grid-column:1/-1;font-weight:720}
  .footer{padding-inline:10px}
  .panel{padding:9px}
  .storefront-hero{min-height:148px;aspect-ratio:2.3;grid-template-columns:minmax(0,1.24fr) minmax(0,1fr)}
  .storefront-hero .hero-body{padding:9px 0 9px 10px}
  .storefront-hero h1{font-size:clamp(1.36rem,6.1vw,1.95rem)}
  .storefront-hero .button{font-size:.82rem;min-height:36px;max-width:100%}
  .storefront-hero ul{font-size:.79rem}
  .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .category-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .compact-list,.checkout-grid,.product-detail,.split:not(.meters){grid-template-columns:minmax(0,1fr)}
  .checkout-grid,.product-detail{gap:6px}
  .cart-item{grid-template-columns:61px minmax(0,1fr) 28px}
  .cart-item .mini-product{width:61px}
  .stock-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stock-item{grid-template-columns:55px minmax(0,1fr)}
  .stock-item>.button{grid-column:2;justify-self:start}
  .admin-layout{display:block}
  .sidebar{padding:6px 8px}
  .sidebar nav{display:flex;flex-wrap:wrap;gap:4px}
  .sidebar a{font-size:.77rem}
  .sidebar form{margin-top:.4rem}
  .sidebar button{min-height:36px;font-size:.76rem}
  .admin-main{padding:10px}
  .admin-main .metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:345px){
  .brand{font-size:.96rem}.brand .art{width:31px;height:31px}
  .store-tabs a{font-size:.69rem}
  .commerce-links,.admin-main .dashboard-links{grid-template-columns:repeat(3,minmax(0,1fr))}
  .admin-main .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .main{padding-inline:10px}
  .merchant-metrics .metric{grid-template-columns:25px minmax(0,1fr)}
  .merchant-metrics .metric .art{width:24px;height:24px}
  .compact-photos .upload-card{padding:4px}
  .compact-photos .capture,.photo-picker{font-size:.65rem}
}
.compact-dialog{width:min(392px,calc(100% - 24px));max-height:calc(100dvh - 28px);box-sizing:border-box;padding:44px 14px 16px;overflow:auto;border:0;border-radius:16px;background:white}
.compact-dialog h2{margin:0 0 10px;text-align:center}
.compact-dialog>img{width:min(100%,240px);height:auto;display:block;margin:0 auto 12px}
.compact-dialog .row{justify-content:center}
.compact-dialog .row .button,.compact-dialog .row button{max-width:100%;min-height:44px}
.compact-dialog form.dialog-close{position:absolute;top:6px;right:7px;margin:0;display:block}
.compact-dialog .dialog-close button{min-width:38px;min-height:36px;font-size:1.3rem;padding:0}
html:has(.compact-dialog[open]){overflow:hidden}
.return-network{margin:0 0 8px;font-size:.85rem}
.studio-heading{display:flex;gap:8px;align-items:center;justify-content:space-between;margin:0 0 10px}
.studio-heading h1{margin:0;font-size:clamp(1.1rem,5vw,1.65rem)}
.studio-tips-button{display:inline-flex;align-items:center;gap:5px;flex:none}
.studio-tips-button img{width:24px;height:24px}
#studio-tips [data-studio-tips-close]{position:absolute;top:7px;right:9px;padding:4px 10px;font-size:1.25rem}
.studio-tools{flex-wrap:wrap;gap:6px;margin:8px 0}
.studio-tools button[aria-pressed=true]{outline:2px solid #0057ff;outline-offset:-2px}
.studio-tools svg{width:17px;height:17px;vertical-align:middle}
.studio-hint{margin:6px 0;font-size:.86rem}
.studio-sliders{display:grid;grid-template-columns:repeat(auto-fit,minmax(102px,1fr));gap:8px}
.studio-sliders input,.studio-adjust input[type=range]{max-width:100%;padding:0}
.studio-palette{min-inline-size:0;margin:10px 0}
.studio-swatches{display:grid;grid-template-columns:repeat(auto-fit,minmax(34px,1fr));gap:6px}
.studio-swatches button{background:var(--swatch,#fff);border:1px solid #a0afc0;border-radius:9px;min-height:36px;min-width:0;padding:0}
.studio-swatches button[aria-pressed=true]{outline:2px solid #0057ff;outline-offset:2px}
.studio-transparent,.image-compare canvas{background-color:#fff;background-image:conic-gradient(#e4eaf1 25%,#fff 0 50%,#e4eaf1 0 75%,#fff 0);background-size:16px 16px}
.studio-custom{display:flex;align-items:center;gap:8px;margin:8px 0 0}
.studio-custom input{max-width:70px;padding:3px}
.studio-adjust{margin:10px 0;padding:8px;border:1px solid #d4ddeb;border-radius:9px}
.studio-adjust summary{font-weight:750;cursor:pointer}
.image-compare img,.image-compare canvas,.advert-studio canvas{touch-action:none}
.image-compare img{-webkit-user-drag:none;user-select:none}
.advert-studio canvas[hidden]{display:none}
.photo-studio .studio-palette{grid-template-columns:minmax(0,1fr)}
.studio-swatches{grid-template-columns:repeat(auto-fit,minmax(32px,1fr))}

/* Demonstration stores use the commercial storefront and card components. */
.demo-catalog-head{display:flex;align-items:center;justify-content:space-between;gap:.45rem;margin:.6rem 0}
.demo-catalog-head>a{display:inline-flex;align-items:center;gap:4px;color:#0047cc;font-size:.82rem;text-align:right;white-space:nowrap}
.demo-catalog-head .icon{width:17px;height:17px}
.demo-store .demo-card-description{color:var(--muted);font-size:.78rem;line-height:1.3;margin:2px 0 4px}
.demo-store .shop-info>.tag{align-self:flex-start;margin-bottom:.3rem;font-size:.68rem}
.demo-store .card-save .demo-fav span{display:none}
.demo-fav{display:inline-grid;margin:0}
.demo-fav button[aria-pressed=true]{background:#ffe7ec;border-color:#b52848}
.demo-store .identity-save .demo-fav button{min-height:38px;padding:5px 7px}
.demo-store .identity-save .demo-fav button span{font-size:.73rem}
