*{box-sizing:border-box}body{margin:0;background:#f3f6fa;color:#182b44;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}.shell{max-width:1000px;margin:auto;padding:24px 20px 50px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:16px}.brand{font-size:38px;font-weight:900;text-decoration:none;color:#1554a6;letter-spacing:-2px}.brand span{font-size:16px;letter-spacing:1px}#identity{font-size:14px;color:#52637a}nav{display:flex;gap:8px;position:sticky;top:0;background:#f3f6faf5;z-index:3;padding:12px 0;overflow:auto}nav button,.chips button{background:#fff;color:#1554a6;border:1px solid #d8e2ef;padding:12px 16px;border-radius:12px;white-space:nowrap}nav button.active,.chips button.active{background:#1554a6;color:white}.chips{display:flex;gap:8px;overflow:auto;padding:4px 0 18px}.search{width:100%;padding:14px;border:1px solid #d2ddea;border-radius:14px;margin:12px 0 20px}.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.product{background:#fff;border:1px solid #dfe5ed;border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:8px;min-width:0}.product .emoji{font-size:48px;text-align:center;background:#f5f8fc;border-radius:12px;padding:20px}.product h3{font-size:17px;margin:4px 0}.product small{color:#626f81;min-height:38px;font-size:14px}.product button{margin-top:auto}.price{color:#1554a6;font-weight:750;font-size:21px}.cart-row{display:flex;justify-content:space-between;gap:16px;align-items:center}.quantity{display:flex;align-items:center;gap:14px;white-space:nowrap}.quantity button{border:1px solid #d3dce8;background:#f5f8fc;border-radius:9px;min-width:36px;height:38px}.split{display:grid;grid-template-columns:1fr 1fr;gap:20px}.address-choice{display:block;padding:14px 0;border-bottom:1px solid #e6ebf2}.address-choice input{margin-right:12px;accent-color:#1554a6}#message{color:#1554a6}footer{margin-top:32px;color:#61728a;font-size:14px;display:flex;justify-content:space-between;gap:16px}.admin-toolbar{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px}textarea{max-width:100%}form .button-row button{min-width:0}dialog{margin:auto}#editor form{margin:0}#editor input,#editor textarea{min-width:0}.status{display:inline-block;background:#e8f1ff;color:#1554a6;border-radius:8px;padding:5px 10px}.hint{color:#6c5a35;background:#fff7e8;padding:12px;border-radius:12px}#view h2{font-size:23px}.order-line strong{white-space:normal}.admin-product input{max-width:100%}@media(max-width:650px){.shell{padding:16px 14px 40px}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product{padding:12px}.split{grid-template-columns:1fr}nav button{padding:10px 12px}.cart-row{align-items:flex-start}.brand{font-size:32px}.quantity{gap:8px}.product .emoji{padding:14px}header{align-items:flex-start}#identity{max-width:130px}dialog{margin:auto 0 0}}@media(max-width:360px){.cart-row{flex-direction:column}.products{grid-template-columns:1fr 1fr}.product h3{font-size:16px}.product .primary-button{padding:10px 5px}}

/* Default storefront: the original compact K7 layout, using the shared order backend. */
.storefront{max-width:480px;min-height:100vh;background:#fff;padding:20px 16px 104px}
.storefront .topbar{align-items:flex-start;margin-bottom:18px}.logo{width:110px;height:auto;display:block}.subtitle{margin:6px 0 0;color:#7b8491;font-size:13px}
.language-control select{max-width:130px;border:1px solid #dce3eb;background:#fff;color:#1554a6;border-radius:22px;padding:9px 12px;font-size:13px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.storefront .notice{font-size:12px;line-height:1.5;color:#74644b;background:#fff7e8;padding:9px 12px;border-radius:12px;margin:0 0 16px}
.storefront .address-box,.storefront .search-box{display:block;width:100%;text-align:left;border:0;background:#f3f7fc;color:#1554a6;padding:13px 15px;border-radius:14px;font-size:14px;margin-bottom:12px}
.storefront .search-box{background:#f3f4f6;color:#707986;border-radius:25px;margin-bottom:18px}
.banner{position:relative;overflow:hidden;background:linear-gradient(135deg,#1554a6,#0c438f);color:#fff;border-radius:20px;padding:23px 20px;margin-bottom:25px}.banner:after{content:"";position:absolute;width:125px;height:125px;border-radius:50%;background:#ff5a16;right:-48px;bottom:-60px}.banner-small{font-size:12px;font-weight:700;opacity:.9}.banner h2{margin:8px 0 5px;color:#fff;font-size:27px!important}.banner p{margin:0;color:#dbeafe;font-size:14px;max-width:85%}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:20px 0 16px}.section-title h2{font-size:21px!important;color:#1554a6;margin:0}.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 8px}.category-item{display:flex;align-items:center;flex-direction:column;gap:8px;border:0;background:none;padding:0;color:#374151;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.category-icon{width:58px;height:58px;display:flex;align-items:center;justify-content:center;background:#f5f8fc;border-radius:18px;font-size:28px}
.storefront .bottom-nav{position:fixed;top:auto;left:50%;bottom:0;transform:translateX(-50%);width:100%;max-width:480px;background:#fffffff5;border-top:1px solid #eee;z-index:10;padding:8px 4px max(10px,env(safe-area-inset-bottom));gap:0;overflow:visible}.bottom-nav button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;border:0;background:none;color:#858c97;padding:4px!important;gap:4px;min-width:0;border-radius:0}.bottom-nav button.active{background:none;color:#1554a6}.bottom-nav span{font-size:21px}.bottom-nav small{font-size:12px}.bottom-nav b{font-size:11px;background:#ff5a16;color:white;border-radius:12px;padding:2px 5px}
.storefront .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.storefront .product{padding:10px;border-radius:16px}.storefront .product .emoji{font-size:38px;padding:16px}.storefront .product h3{font-size:14px;line-height:1.4}.storefront .product small{min-height:0;font-size:12px}.storefront .product .primary-button{background:#ff5a16;padding:10px 6px;font-size:13px}.storefront .split{grid-template-columns:1fr}.storefront footer{font-size:11px}.storefront #identity{max-width:none;font-size:11px}.account-links{display:grid;gap:12px}.account-links button{border:1px solid #e3e9f2;background:#f5f8fc;color:#1554a6;border-radius:14px;text-align:left;padding:18px}
@media(max-width:360px){.category-icon{width:48px;height:48px}.storefront{padding-left:12px;padding-right:12px}.language-control select{max-width:112px}.subtitle{max-width:170px}}

.product{position:relative}.product .favorite-button{position:absolute;right:14px;top:14px;border:1px solid #dbe3ed;border-radius:50%;background:white;color:#b96900;font-size:22px;line-height:1;width:34px;height:34px;padding:0;margin:0}.account-links button{display:flex;justify-content:space-between;align-items:center;gap:8px}.storefront .address-dialog{max-width:480px}

/* Category directory is separate from its product listing. */
.storefront .category-list{display:grid;gap:12px}.category-row{display:flex;align-items:center;gap:14px;width:100%;min-height:78px;text-align:left;border:1px solid #e7edf5;border-radius:18px;padding:14px;background:#fff;box-shadow:0 3px 14px #073c790a;color:var(--k7-blue,#073c79)}.category-row .category-icon{flex-shrink:0;width:48px;height:48px;font-size:25px}.category-row strong{flex:1;font-size:16px;line-height:1.4;overflow-wrap:anywhere}.category-arrow{color:var(--k7-orange,#ff6b00);font-size:26px}.storefront .section-heading{gap:12px;align-items:center}.storefront .section-heading h2{font-size:20px;margin:0}

[hidden]{display:none!important}.compact-page .topbar{align-items:center;gap:10px;margin-bottom:18px}#compact-heading{display:flex;align-items:center;gap:12px;min-width:0;flex:1}#compact-heading h1{margin:0;font-size:22px;color:var(--k7-blue,#073c79);line-height:1.25;overflow-wrap:anywhere}.page-back{width:38px;height:38px;flex-shrink:0;border:0;border-radius:50%;background:#f5f7fa;color:var(--k7-blue,#073c79);font-size:32px;line-height:1}.compact-page #view>h2:first-child{display:none}.compact-page .language-control select{max-width:108px;padding:9px 8px}
