﻿:root{--red:#b32625;--navy:#192b44;--yellow:#f4c447;--cream:#faf7f0;--line:#e5dfd3;--muted:#737675}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--navy);font-family:var(--font-fa);line-height:1.8}button,input,select{font:inherit}button,a{cursor:pointer}button{border:0}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}.topline{padding:7px 6%;background:var(--navy);color:white;font-size:12px;display:flex;justify-content:space-between}.topline span{color:#d5dae0}header{padding:14px 6%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fffdf8;gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--navy);font-size:24px;font-weight:bold}.brand img{width:64px;height:64px}.brand small{display:block;font-size:11px;letter-spacing:3px}nav{display:flex;gap:20px}nav button{background:none;color:var(--navy);padding:10px 0}nav .selected{color:var(--red);border-bottom:2px solid}.primary,.outline{padding:11px 22px;border-radius:10px;font-weight:bold}.primary{background:var(--red);color:white}.outline{background:transparent;border:1px solid var(--line);color:var(--navy)}#count{background:#fff3;border-radius:5px;padding:0 5px}.hero{display:flex;align-items:center;justify-content:space-between;min-height:540px;padding:40px 9% 0;background:radial-gradient(ellipse at 20% 70%,#fae8b9,transparent 50%);overflow:hidden}.hero h1{font-size:48px;line-height:1.55;letter-spacing:normal;margin:12px 0}.hero p{color:var(--muted);font-size:17px}.eyebrow{font-size:13px;font-weight:bold;color:var(--red)}.hero-note{font-size:12px;color:var(--muted);margin-top:30px}.mascot{position:relative;align-self:end}.mascot img{display:block;width:330px;height:465px;object-fit:contain;mix-blend-mode:multiply}.stamp{position:absolute;right:-30px;top:30%;background:var(--yellow);border:2px dashed var(--red);border-radius:50%;padding:20px;text-align:center;transform:rotate(10deg)}.section{padding:48px 6%}.section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}h2{font-size:27px;margin:5px 0}h3{margin:5px 0 15px}h1{font-size:40px}.search{display:flex;align-items:center;gap:12px;background:white;border:1px solid var(--line);border-radius:10px;padding:8px 14px}.search input{border:0;outline:0;background:none;min-width:220px}.chips{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.chips button{padding:8px 18px;border:1px solid var(--line);background:#fff;border-radius:25px;color:var(--navy)}.chips .selected{background:var(--navy);color:white;border-color:var(--navy)}.notice{padding:12px 18px;background:#fff1cd;border-right:3px solid var(--yellow);font-size:13px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.card{border:1px solid var(--line);border-radius:16px;background:white;padding:18px;display:flex;flex-direction:column;gap:10px}.product-art{height:90px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#f5f1e7;font-size:17px;font-weight:bold;color:#9a7960}.card h3{font-size:15px;margin:0;min-height:54px}.card small,.muted{color:var(--muted);font-size:12px}.card .primary{margin-top:auto}.card select{width:100%;padding:8px}.price{font-weight:bold;color:var(--red)}#more{display:block;margin:28px auto}.panel{padding:25px;background:white;border:1px solid var(--line);border-radius:16px;margin:20px 0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.stats div{padding:20px;border:1px solid var(--line);border-radius:14px;background:white}.stats b{display:block;font-size:28px}.stats small{color:var(--muted)}.table-wrap{overflow:auto;max-height:620px;margin-top:20px;border:1px solid var(--line);border-radius:12px}table{border-collapse:collapse;width:100%;background:white;font-size:13px}th,td{padding:12px;text-align:right;border-bottom:1px solid var(--line)}th{background:#eee8dd;position:sticky;top:0}td button{white-space:nowrap;padding:5px 10px}.bad{color:var(--red)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}label{display:block;font-size:13px}label input:not([type=checkbox]),label select{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid var(--line);border-radius:8px;background:white}.check{display:flex;align-items:center;gap:10px}.mission-edit{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}.mission-number{color:var(--red);font-size:30px;font-weight:bold}.hidden{display:none!important}dialog{border:0;border-radius:18px;width:min(720px,94vw);max-height:90vh;padding:26px;color:var(--navy);background:var(--cream)}dialog::backdrop{background:#14203499}footer{padding:35px 6%;display:flex;gap:25px;background:var(--navy);color:white}footer img{width:90px;height:90px;object-fit:contain;border-radius:50%}footer p{margin:4px 0}footer small{color:#cad0d8}#toast{position:fixed;bottom:25px;left:25px;max-width:80vw;background:var(--navy);color:white;padding:14px 24px;border-radius:10px;display:none;z-index:5}.cart-row{display:flex;gap:15px;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:15px 0}.cart-row input{width:60px}.empty{text-align:center;padding:50px;color:var(--muted);grid-column:1/-1}@media(max-width:950px){.grid{grid-template-columns:repeat(3,1fr)}.hero h1{font-size:35px}.mascot img{width:260px}nav{gap:10px}header{flex-wrap:wrap}.brand{font-size:20px}}@media(max-width:650px){.topline span{display:none}header{padding:12px 5%;gap:10px}nav{order:3;width:100%;justify-content:space-between;font-size:12px}.brand img{width:45px;height:45px}.hero{padding:30px 6% 0;min-height:0;flex-direction:column}.hero h1{font-size:32px}.mascot{align-self:center}.mascot img{height:290px;width:230px}.hero-note{margin-top:18px}.stamp{padding:12px;right:-35px;font-size:12px}.section{padding:30px 5%}.section-head{align-items:stretch;flex-direction:column}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card{padding:12px}.card .primary{padding:10px 5px;font-size:12px}.stats{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.mission-edit{grid-template-columns:1fr 1fr}.mission-edit>label:first-child{grid-column:1/-1}h2{font-size:23px}h1{font-size:30px}.search input{min-width:0;width:100%}footer{font-size:12px}.product-art{font-size:13px}}
.delivery-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.delivery-badge{padding:10px 20px;border-radius:30px;background:#f8e1be;color:#8b471d}.delivery-map{height:320px;border:1px solid var(--line);border-radius:12px;margin:18px 0;direction:ltr;z-index:0}.delivery-bill{max-width:600px;background:#f8f4eb;border:1px solid var(--line);border-radius:12px;padding:18px;margin:20px 0}.delivery-bill>div{display:flex;justify-content:space-between;gap:18px;padding:8px 0}.delivery-bill dd{margin:0}.delivery-bill .bill-total{border-top:1px solid var(--line);margin-top:8px;padding-top:16px;font-weight:bold}.free{color:#24764d}.checkout-delivery{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}.checkout-delivery>.outline{margin:14px 0}#deliveryForm>.primary{display:block;margin-top:20px}@media(max-width:650px){.delivery-heading{display:block}.delivery-badge{display:inline-block;margin-bottom:10px}.delivery-map{height:260px}.delivery-bill{font-size:13px}}
.hero{gap:38px;padding:44px 6%;min-height:490px}.hero>div{flex:1}.hero-products{flex:1.15;margin:0}.hero-products img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:28px;box-shadow:0 18px 40px #192b4412}@media(max-width:650px){.hero{padding:28px 5%;gap:26px}.hero-products{width:100%}.hero-products img{border-radius:18px}}
/* Safe visual refinement */
body{font-family:var(--font-fa);background:#faf7f0;color:#192b44}
header{box-shadow:0 2px 14px rgba(24,40,63,.06)}
.brand{font-weight:800}.brand small{font-family:Arial,sans-serif}
.primary{background:#b32625;box-shadow:0 6px 14px rgba(179,38,37,.18)}
.hero{gap:34px;padding:48px 7%;min-height:500px;background:linear-gradient(135deg,#fbf8f1 0%,#f7eedf 100%)}
.hero h1{font-weight:800;line-height:1.45;font-size:clamp(34px,4vw,54px)}
.hero-products{flex:1.1;margin:0;min-width:0}.hero-products img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:24px;box-shadow:0 18px 38px rgba(24,40,63,.14)}
.card{border-radius:18px;box-shadow:0 10px 28px rgba(24,40,63,.08);transition:transform .2s,box-shadow .2s}.card:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(24,40,63,.14)}
.panel,.stats div{box-shadow:0 10px 28px rgba(24,40,63,.07)}
@media(max-width:650px){.hero{padding:32px 5%;gap:24px}.hero-products{width:100%}.hero-products img{border-radius:16px}}
/* Typography and clearly separated customer/admin surfaces */
body{font-family:var(--font-fa)}
h1,h2,h3,.brand,.eyebrow,.primary,nav button,.stats b,.price{font-family:var(--font-fa)}
h1,h2{letter-spacing:normal;font-weight:800}h3{font-weight:700}
nav button{font-size:14px;padding:10px 12px;border-radius:10px}nav button.selected{background:#fff0e8;color:var(--red);border-bottom:0}
.admin-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;margin-bottom:28px;border-radius:18px;background:linear-gradient(110deg,#182b44,#2d4968);color:#fff;box-shadow:0 15px 30px rgba(24,40,63,.14)}.admin-banner span{font-size:22px;font-weight:800}.admin-banner small{color:#d8e2eb}
#admin{background:linear-gradient(180deg,#f0f4f7 0,#faf7f0 260px);border-radius:24px;margin:20px 3%;padding-left:4%;padding-right:4%}#admin .panel,#admin .stats div{background:#fff;border-color:#e1e7ec}
#club{background:linear-gradient(135deg,#fff7e8,#f7eee4);border-radius:24px;margin:20px 3%}
@media(max-width:650px){.admin-banner{display:block}.admin-banner span,.admin-banner small{display:block}.admin-banner small{margin-top:5px}nav button{font-size:11px;padding:8px 5px}}
/* Modern youthful brand layer */
:root{--coral:#ef5b43;--berry:#8f2030;--ink:#172942;--gold:#f7c84b;--mint:#dff2e8;--lav:#eee8fb}
body{background:#fffaf4;color:var(--ink);overflow-x:hidden}
body:before,body:after{content:'';position:fixed;z-index:-1;border-radius:50%;filter:blur(2px);pointer-events:none}body:before{width:340px;height:340px;top:110px;left:-190px;background:#ffd98a55}body:after{width:420px;height:420px;bottom:-200px;right:-190px;background:#d9c5f655}
.topline{background:var(--ink);padding:7px 7%;font-size:11px;letter-spacing:.1px}.topline span{color:#fbdc84}
header{border-bottom:0;border-radius:0 0 22px 22px;padding:10px 7%;background:#ffffffdf;box-shadow:0 8px 30px #1729420c}.brand{font-size:22px}.brand img{border-radius:18px}
.hero{margin:18px 3% 0;border-radius:32px;padding:56px 7%;background:linear-gradient(120deg,#fff2d8 0%,#fffaf4 50%,#f3eafb 100%);box-shadow:0 18px 50px #17294212;position:relative}.hero:before{content:'مزه‌ی تازه، حال خوب';position:absolute;top:24px;left:7%;padding:7px 14px;border-radius:30px;background:#fff;border:1px solid #f4dfc2;color:var(--coral);font-size:12px;font-weight:700}.hero h1{font-size:clamp(38px,4.2vw,62px);line-height:1.35;margin-top:28px}.hero h1:after{content:'';display:block;width:72px;height:7px;border-radius:10px;background:var(--gold);margin-top:14px}.hero p{font-size:16px;color:#647487}.hero-products img{border:0;border-radius:26px;box-shadow:0 22px 40px #17294220}
.primary{border-radius:14px;background:linear-gradient(135deg,var(--coral),var(--berry));font-size:14px}.hero .primary{padding:14px 25px}
.section{padding:62px 7%}.section-head{margin-bottom:28px}.section-head h2{font-size:32px}.eyebrow{color:var(--coral);font-weight:800}
.chips button{border-radius:999px;background:#fff;box-shadow:0 5px 14px #1729420c}.chips .selected{background:var(--ink)}
.card{position:relative;border:0;border-radius:24px;padding:18px;background:#fff;box-shadow:0 12px 30px #17294210}.card:before{content:'آقای مزه';position:absolute;top:14px;left:14px;padding:3px 8px;border-radius:999px;background:#fff3d5;color:#a76b17;font-size:10px;font-weight:800}.card:hover{transform:translateY(-8px) rotate(-.4deg);box-shadow:0 22px 44px #1729421d}.product-art{height:122px;border-radius:20px;background:linear-gradient(135deg,#fff2db,#f8e7e2);font-size:15px}.card .primary{border-radius:12px}
.notice{border:0;border-radius:16px;background:#fff3d2;color:#7d5a16}.panel{border:0;border-radius:24px;box-shadow:0 14px 36px #17294212}.admin-banner{border-radius:22px;background:linear-gradient(120deg,var(--ink),#344f71);box-shadow:0 18px 35px #17294220}.stats div{border:0;border-radius:20px;box-shadow:0 10px 24px #1729420c}.stats b{color:var(--coral)}
#club{background:linear-gradient(120deg,#fff1d5,#f5eefe);box-shadow:0 18px 44px #1729420b}.tier{border-radius:22px}
footer{margin-top:30px;border-radius:28px 28px 0 0;background:var(--ink)}
@media(max-width:650px){.hero{margin:10px 3% 0;border-radius:24px;padding:44px 7% 30px}.hero:before{left:auto;right:7%;top:18px}.hero h1{font-size:34px}.hero-products img{border-radius:18px}.section{padding:42px 5%}.section-head h2{font-size:26px}.card{border-radius:18px}.product-art{height:92px}}
.sticker-inline{position:absolute;left:7%;bottom:26px;width:130px;transform:rotate(-5deg);filter:drop-shadow(0 12px 12px rgba(24,40,63,.14));z-index:1}.sticker-inline img{width:100%;display:block}.sticker-strip{display:flex;justify-content:center;gap:22px;margin:-14px auto 34px;position:relative;z-index:1}.sticker-strip>div{width:150px;transition:transform .2s}.sticker-strip>div:hover{transform:translateY(-8px) rotate(2deg)}.sticker-strip img{display:block;width:100%;filter:drop-shadow(0 12px 14px rgba(24,40,63,.15))}.header-sticker{width:58px;height:58px;margin-right:auto;margin-left:10px;overflow:hidden;border-radius:50%;display:none}.header-sticker img{width:100%;height:100%;object-fit:cover}@media(max-width:650px){.sticker-inline{width:90px;left:auto;right:6%;bottom:22px}.sticker-strip{gap:6px;margin-top:8px}.sticker-strip>div{width:30%}.header-sticker{display:block;width:40px;height:40px}.brand img{width:48px;height:48px}}

.quick-list-card{background:linear-gradient(135deg,#fff8ed,#fff);border:1px solid #f2d8b4;border-radius:28px;padding:28px;box-shadow:0 14px 35px #6b32120f}.quick-list-card textarea{width:100%;box-sizing:border-box;border:1px solid #e8cba8;border-radius:16px;padding:16px;font:inherit;line-height:2;resize:vertical;background:#fffdf9}.quick-list-actions{display:flex;gap:10px;margin-top:12px}.quick-list-sticker{width:100px;height:100px;object-fit:contain}.quick-result{display:flex;align-items:center;gap:12px;justify-content:space-between;border-top:1px solid #f0dfca;padding:14px 0}.quick-result>div{display:flex;flex-direction:column;gap:4px;flex:1}.quick-result span{color:#766b63;font-size:.88rem}.quick-result input{width:60px;padding:9px;border:1px solid #e8cba8;border-radius:10px;font:inherit}.quick-result select{padding:9px;border:1px solid #e8cba8;border-radius:10px;font:inherit}.quick-result.missing{color:#9d3b25}.quick-result.missing span{color:#9d3b25}@media(max-width:650px){.quick-list-card{padding:18px}.quick-list-sticker{width:72px;height:72px}.quick-result{align-items:flex-start;flex-wrap:wrap}.quick-result>div{min-width:180px}.quick-result .outline{margin-right:auto}}

/* Unified Persian typography */
@font-face{font-family:MazehVazir;src:url("assets/fonts/Vazirmatn.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}:root{--font-fa:"MazehVazir",Tahoma,sans-serif}body{font-family:var(--font-fa);font-size:15px;font-weight:400;line-height:1.9}button,input,select,textarea{font-family:var(--font-fa)}h1,h2,h3,.brand,.eyebrow,.primary,nav button,.stats b,.price{font-family:var(--font-fa);letter-spacing:normal}h1,h2,h3{text-wrap:pretty}h1,.hero h1{font-weight:850;line-height:1.55;font-size:clamp(32px,4vw,54px)}h2,.section-head h2{font-weight:800;font-size:clamp(24px,2.4vw,32px);line-height:1.65}h3{font-size:20px;font-weight:700;line-height:1.8}.card h3{font-size:16px;font-weight:650;line-height:1.9;min-height:61px}.hero p{font-size:17px;line-height:2;font-weight:400}.brand{font-size:24px;font-weight:850}.brand small{font-family:Arial,sans-serif;font-size:10px;letter-spacing:2px;font-weight:600}.eyebrow{font-size:13px;font-weight:600}.primary,.outline,nav button{font-weight:600;font-size:14px;line-height:1.8}.price{font-size:18px;font-weight:750;font-variant-numeric:tabular-nums}.card small,.muted,.hero-note{font-size:13px;line-height:1.9}.notice,label,table{font-size:14px}th{font-weight:700}.stats b{font-weight:800}.topline{letter-spacing:normal}.quick-list-card textarea{font-size:16px;line-height:2.1}input::placeholder,textarea::placeholder{font-weight:400}.quick-result b{font-weight:650}@media(max-width:650px){.hero h1{font-size:34px}.hero p{font-size:15px}.section-head h2{font-size:25px}.card h3{font-size:14px;min-height:54px}.card .primary{font-size:13px}.price{font-size:16px}nav button{font-size:12px}.quick-list-actions{flex-wrap:wrap}}

/* Mobile storefront and management layout */
@media(max-width:650px){
body{padding-bottom:calc(80px + env(safe-area-inset-bottom));overflow-x:clip}
.topline{padding:6px 16px;text-align:center;justify-content:center}
header{padding:12px 16px;gap:10px;flex-wrap:nowrap;border-radius:0 0 18px 18px}
.brand{gap:8px;font-size:20px;flex-shrink:0}.brand img{width:42px;height:42px}.brand small{font-size:8px;letter-spacing:1.5px}.header-sticker{display:none}
#cartOpen{margin-inline-start:auto;padding:10px 12px;min-height:44px;font-size:13px;white-space:nowrap}
header nav{position:fixed;bottom:0;inset-inline:0;z-index:20;width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:9px 10px calc(9px + env(safe-area-inset-bottom));background:#fffdf8f5;border-top:1px solid #e5dfd3;box-shadow:0 -6px 24px #1729420d;backdrop-filter:blur(14px)}
header nav button{min-height:48px;font-size:12px;padding:8px 4px;border-radius:12px}
.hero{margin:12px 12px 0;padding:48px 20px 24px;min-height:0;gap:22px;align-items:stretch}.hero>div{min-width:0}.hero:before{top:14px;right:20px;font-size:11px;padding:5px 12px}.hero .eyebrow{display:none}.hero h1{font-size:clamp(27px,7.6vw,36px);line-height:1.65;margin:10px 0 12px}.hero p{font-size:14px;line-height:2;margin:12px 0 18px}.hero p br{display:none}.hero .primary{width:100%;min-height:48px}.hero-note{margin-top:16px;font-size:11px}.hero-products{flex:auto;width:100%}.hero-products img{aspect-ratio:3/2}.sticker-inline{width:70px;right:auto;left:24px;bottom:16px}
.section{padding:32px 16px}.section-head{gap:14px;margin-bottom:18px}.section-head h2{font-size:24px;line-height:1.7}.search{width:100%;min-width:0}.search input{min-width:0;font-size:16px;min-height:42px;padding:0}
.quick-list-card{padding:20px 16px;border-radius:22px}.quick-list-card .section-head{position:relative;padding-inline-end:58px}.quick-list-sticker{position:absolute;inset-inline-end:-6px;top:0;width:62px;height:62px}.quick-list-card h2{font-size:23px}.quick-list-card p{font-size:13px}.quick-list-card textarea{font-size:16px;min-height:150px}.quick-list-actions{display:grid;grid-template-columns:1fr auto;gap:8px}.quick-list-actions button{padding:12px 10px;font-size:13px;min-height:48px}.quick-result{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quick-result>div{grid-column:1/-1;min-width:0}.quick-result select,.quick-result input{width:100%;min-width:0;max-width:100%;font-size:16px;min-height:44px}.quick-result>span{grid-column:1/-1}#addQuickAll{width:100%;margin-top:14px;min-height:48px}
.chips{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:10px;gap:8px;overscroll-behavior-inline:contain}.chips button{flex-shrink:0;min-height:44px;font-size:13px;padding:8px 14px}
.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card{min-width:0;padding:12px;gap:9px}.card h3{overflow-wrap:anywhere;font-size:14px;line-height:1.85}.card select{min-height:44px;font-size:16px;padding:6px 2px}.card .primary{min-height:44px;font-size:12px;padding:9px 3px}.card small{font-size:11px}.product-art{font-size:12px;height:96px;padding-top:20px}.price{font-size:15px;line-height:1.9}.card:before{font-size:9px;top:12px;left:12px}.sticker-strip{margin:0 0 24px}.notice{font-size:12px;line-height:1.9;padding:12px}
#admin,#club{margin:12px;padding:24px 14px;border-radius:22px}#club h1{font-size:28px;line-height:1.7}.panel{padding:18px 14px;border-radius:18px;min-width:0}.stats{gap:10px}.stats div{padding:14px}.stats b{font-size:26px}.stats small{font-size:12px}.admin-banner{padding:16px}.admin-banner span{font-size:20px}.admin-banner small{font-size:12px}.form-grid{gap:14px}.form-grid>label{min-width:0}.panel input[type=file]{max-width:100%;font-size:13px}.table-wrap{max-width:100%}.table-wrap table{min-width:700px}.mission-edit{gap:10px}.delivery-map{height:260px}.delivery-bill{width:100%;padding:12px}.delivery-bill>div{flex-wrap:wrap;gap:4px}.delivery-heading h1{font-size:26px}input,select,textarea{font-size:16px}label input:not([type=checkbox]),label select{min-height:44px}button{touch-action:manipulation}
dialog{width:calc(100% - 20px);max-width:500px;max-height:calc(100dvh - 24px);padding:20px 16px;border-radius:22px;overscroll-behavior:contain}dialog .section-head{flex-direction:row;align-items:center;gap:12px}dialog .section-head h2{font-size:22px}dialog .section-head button{min-height:44px;padding:8px 14px}.cart-row{display:grid;grid-template-columns:1fr auto;gap:12px}.cart-row>div{grid-column:1/-1;overflow-wrap:anywhere}.cart-row input{width:80px;min-height:44px;font-size:16px}.cart-row button{min-height:44px}#checkout{width:100%;min-height:48px}#toast{bottom:calc(90px + env(safe-area-inset-bottom));left:16px;right:16px;max-width:none;z-index:30;font-size:14px;padding:14px 16px}
footer{padding:24px 16px;gap:14px;margin-top:12px}footer img{width:60px;height:60px}footer>div{min-width:0}footer small{font-size:11px}
}
@media(hover:none){.card:hover,.sticker-strip>div:hover{transform:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.card,.sticker-strip>div{transition:none}}

#authDialog form,#managerDialog form{display:grid;gap:14px}#authDialog form[hidden]{display:none}#accountOpen{white-space:nowrap;font-size:13px}#authDialog #demoCode{direction:rtl}#customerAccount h3{margin-top:24px}@media(max-width:650px){header{flex-wrap:wrap}.brand{flex:1}#accountOpen{order:3;width:100%;min-height:44px;background:#fff1dc;border:0}#authDialog,#managerDialog{padding:20px}#cartReward{padding:16px 12px}}

.product-actions{display:flex;flex-wrap:wrap;gap:8px}.danger{color:#b32625;border-color:#e9bbbb}.inventory-tools{display:flex;align-items:center;justify-content:space-between;gap:16px}.template-link{display:inline-block;text-decoration:none}.offline-history{display:flex;gap:16px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid var(--line)}#offlinePreview{margin-top:22px}#offlineFile{max-width:100%}@media(max-width:650px){.inventory-tools{display:block}.product-actions button{min-height:44px}.offline-history{display:block}.offline-history span{display:block}}

.quick-result .quick-base-price{color:var(--red);font-size:14px;font-weight:700}.quick-result>div.quick-price-summary{flex:0 1 220px;min-width:150px;line-height:1.9;background:#fff8ec;padding:10px 12px;border-radius:12px}.quick-price-summary strong{font-size:14px;color:var(--navy)}.quick-result .quick-availability{font-size:12px;color:#9d3b25}.quick-result>div:first-child{min-width:0}.quick-result [data-pick]{width:100%;max-width:100%;min-width:0}@media(max-width:650px){.quick-result>div.quick-price-summary{grid-column:1/-1;min-width:0}.quick-result [data-pick]{font-size:14px}}

/* Catalog images and manager stock controls */
.product-art{position:relative;overflow:hidden;padding:0!important;background:#f8f2e7!important;min-height:150px}
.product-art img{display:block;width:100%;height:100%;object-fit:contain;position:absolute;inset:0}
.product-art span{position:absolute;bottom:8px;right:8px;left:8px;width:fit-content;max-width:calc(100% - 16px);background:#fff9;backdrop-filter:blur(8px);border-radius:9px;padding:4px 8px;font-size:10px;font-weight:500;color:#493a29}
.inventory-product{display:flex;align-items:center;gap:10px;min-width:150px}.inventory-product img{width:48px;height:48px;object-fit:cover;border-radius:10px;background:#f8f2e7;flex-shrink:0}
.product-actions{flex-wrap:wrap}.product-actions [data-visibility][aria-pressed="false"]{border-color:#d9a448;color:#8f5a17}
.product-media{display:flex;gap:20px;background:#faf5ec;padding:18px;border-radius:16px;margin:18px 0;align-items:flex-start}
.product-media>img{width:128px;height:128px;object-fit:contain;border-radius:12px;background:white}
.product-media>div{min-width:0;flex:1}.product-media input{max-width:100%;margin-top:8px}.product-media small{display:block;margin:8px 0;color:#71695e}.product-media p{font-size:12px;line-height:1.9}.product-media label{display:block}
.stock-alerts{border:1px solid #edca8b;background:#fff8e8;border-radius:16px;padding:18px;margin:16px 0;color:#77501e}
.stock-alerts.all-stocked{border-color:#c5dac8;background:#f1f8ef;color:#3d6344}
#stockAlertSummary{font-weight:700}.stock-alerts summary{cursor:pointer;margin-top:10px;font-size:13px}
#stockAlertRows{max-height:320px;overflow:auto;margin-top:12px}.stock-alert-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #ecd9b7}.stock-alert-row small{display:block;margin-top:3px;font-size:11px}
@media(max-width:600px){.product-art{min-height:130px}.product-media{gap:12px;padding:12px;flex-direction:column}.product-media>img{width:100px;height:100px}.product-media>div{width:100%}.stock-alerts{padding:12px;font-size:13px}.stock-alert-row button{white-space:nowrap;font-size:11px}.product-actions{min-width:150px}}

/* Offers: native RTL swipe, keyboard scrolling, no automatic rotation. */
.offers-section{background:#fff7e8;border:1px solid #efdfc4;border-radius:28px;padding:30px;margin-top:32px;min-width:0}
.offers-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.offers-heading h2{margin:8px 0}.offers-heading p{color:#74634c;font-size:14px}
.offer-arrows{display:flex;gap:8px}.offer-arrows button{width:44px;height:44px;padding:0;font-size:22px;border-radius:50%;background:#fff}
.offer-filters{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.offer-filters button{border:1px solid #dfd3c0;border-radius:30px;padding:10px 18px;background:#fff;color:#443b31;font:inherit;font-size:13px;cursor:pointer}
.offer-filters button[aria-pressed=true]{background:#253d35;border-color:#253d35;color:white}
.offer-track{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;padding:6px 2px 20px;scrollbar-width:thin;scrollbar-color:#cead80 transparent;overscroll-behavior-x:contain}
.offer-track:focus-visible{outline:2px solid #9a422e;outline-offset:4px}
.offer-card{flex:0 0 265px;scroll-snap-align:start;display:flex;flex-direction:column;gap:9px;padding:14px;background:white;border:1px solid #eee5d8;border-radius:20px;box-shadow:0 5px 14px #54351e08;min-width:0}
.offer-card h3{font-size:16px;line-height:1.8;margin:0;min-height:58px}.offer-card>small{font-size:11px;color:#807664}
.offer-art{height:165px;background:#f8f2e7;border-radius:14px;position:relative;overflow:hidden}.offer-art img{width:100%;height:100%;object-fit:contain}
.offer-badges{position:absolute;inset:8px 8px auto;display:flex;flex-wrap:wrap;gap:5px}.offer-badges span,.discount-label{background:#ba352f;color:white;border-radius:7px;padding:4px 7px;font-size:11px}
.offer-badges .cashback-badge{background:#245c46;color:#fff}
.offer-unit{font-size:11px;color:#7c7161;margin:0}.offer-base{display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-height:72px;font-size:15px}
.offer-base del,.price del{font-size:12px;color:#918775}
.offer-base .discount-label{display:none}
.cashback-label{display:block!important;width:100%;font-size:11px!important;font-weight:500;color:#246248;line-height:1.9}
.offer-card label{display:flex;align-items:center;gap:10px;font-size:12px}.offer-card select{flex:1;width:auto;min-height:44px}
.offer-pay{font-size:12px;line-height:1.9;margin:0;min-height:24px;color:#645847}
.offer-card>.primary{margin-top:auto;min-height:44px}.offer-hint{font-size:12px;color:#756751;line-height:1.9;margin:8px 0}
.offers-empty{width:100%;padding:25px;border:1px dashed #d3bfa0;border-radius:18px;background:#fff9}.offers-empty p{font-size:13px}
.wallet-card{background:#203f34;color:#fff;border-radius:20px;padding:24px;margin-top:20px}.wallet-card h3{font-size:28px;color:#ffda76}.wallet-card p{color:#ecf2e6}.wallet-card small{color:#d3dfce;font-size:12px}.wallet-card summary{cursor:pointer;margin-top:16px}
.cashback-cart{color:#245c46;font-size:13px;line-height:1.9}
.price{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
@media(max-width:600px){.offers-section{padding:18px 12px;border-radius:20px;margin-top:24px}.offers-heading h2{font-size:21px}.offers-heading p{font-size:12px}.offer-arrows{gap:4px}.offer-arrows button{width:36px;height:36px}.offer-card{flex-basis:78%;max-width:285px;padding:12px}.offer-track{gap:12px}.offer-filters{gap:6px}.offer-filters button{font-size:12px;padding:9px 12px}.offer-art{height:155px}.offer-card select{font-size:16px}}

.order-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;padding:0;margin:18px 0;gap:8px}
.order-steps li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;background:#f7f4ee;border-radius:12px;padding:12px 6px;color:#817969}
.order-steps .done{background:#edf5ee;color:#2f6548}.order-steps b{font-size:12px}.order-steps small{font-size:10px}.order-steps span{font-size:18px}
.order-notice{border:1px solid #e5e0d6;border-radius:14px;padding:16px;margin:12px 0}.order-notice.unread{background:#fff8e6;border-color:#e9cd8b}.order-notice p{font-size:14px;line-height:2}.order-notice small{color:#766b5d}
#orderNoticeList{max-height:55vh;overflow:auto}#orderNoticesOpen{font-size:12px;white-space:nowrap}.managed-order>.primary{margin-top:10px}
@media(max-width:600px){#orderNoticesOpen{font-size:11px;padding:8px}.order-steps{gap:5px}.order-steps b{font-size:11px}.managed-order>.primary{width:100%;font-size:12px}.order-notice{padding:12px}}

.group-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:16px;margin-top:18px}
.group-card{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #e8e1d6;border-radius:18px;padding:16px}
.group-card>img{width:88px;height:88px;object-fit:contain;background:#f8f2e7;border-radius:14px}.group-card h3{font-size:16px;margin:0}.group-card p{font-size:12px;color:#746955}.group-card small{font-size:11px}
.group-editor{display:flex;gap:20px;align-items:center}.group-editor>img{width:130px;height:110px;object-fit:contain;border-radius:14px;background:#f8f2e7}.group-editor .form-grid{flex:1;min-width:0}
#groupMessage{color:#365943;font-size:13px}#groups>.search{display:flex;max-width:400px;gap:10px}
@media(max-width:600px){.group-list{grid-template-columns:1fr}.group-editor{align-items:flex-start;flex-direction:column;gap:10px}.group-editor .form-grid{width:100%}.group-card{padding:12px}.group-card>img{width:72px;height:72px}}

.group-upload{display:grid;gap:10px;margin:16px 0;padding:16px;background:#faf5ec;border-radius:14px}.group-upload label{display:grid;gap:8px}.group-upload input{max-width:100%;min-width:0}.group-upload small,.group-upload p{font-size:12px;line-height:1.9;color:#716553}.group-upload button{justify-self:start}

/* Photographic category assets: keep the complete product arrangement visible. */
.product-art img,.offer-art img{object-fit:contain;background:#f8f2e7}.group-card>img,.group-editor>img{object-fit:cover}
