@font-face{font-family:Vazir;src:url(assets/Vazirmatn-Regular.ttf) format('truetype');font-display:swap}@font-face{font-family:Vazir;src:url(assets/Vazirmatn-Bold.ttf) format('truetype');font-weight:700;font-display:swap}
:root{--navy:#17255b;--accent:#374ac2;--ink:#20263c;--soft:#e9ecfc;--line:#e1e4ee;--muted:#555e75;--paper:#f6f7fb;--white:#fff}*{box-sizing:border-box}html{scroll-padding-top:16px;accent-color:var(--accent)}body{margin:0;background:#fff;color:var(--ink);font:15px/1.65 Vazir,Tahoma,sans-serif}::selection{color:var(--navy);background:#cfd6ff}:focus-visible{outline:2px solid #6477ff;outline-offset:3px}a{text-decoration:none;color:inherit}button,input,select{font:inherit;color:inherit}button,summary,select{cursor:pointer}button{border:0;background:none;padding:0}button:disabled{opacity:.5;cursor:not-allowed}img{display:block;max-width:100%}h1,h2,h3,p{margin:0}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.sprite{position:absolute;width:0;height:0}.shell{max-width:1376px;margin-inline:auto;padding-inline:32px}.announcement{min-height:40px;padding:5px 12px;background:var(--navy);color:white;display:flex;align-items:center;justify-content:center;gap:10px;font-size:13px}.announcement b{padding:1px 8px;border-radius:5px;background:#dce2ff;color:var(--navy);white-space:nowrap}.head{display:flex;align-items:center;gap:25px;min-height:76px}.brand{flex:none}.brand img,.footer img{width:132px;height:auto}.search{display:flex;align-items:center;gap:12px;background:#f1f2f7;border-radius:8px;padding:0 14px;width:min(100%,575px);color:var(--muted)}.search input{background:none;border:0;min-width:0;flex:1;padding:12px 0;caret-color:var(--accent)}.actions{margin-inline-start:auto;display:flex;align-items:center;gap:10px}.control,.icon{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;padding:7px 11px;border-radius:8px;min-height:42px}.control:hover,.icon:hover{background:var(--soft)}.cart-control{border:1px solid var(--line)}#count{font-size:12px;background:var(--soft);color:var(--navy);border-radius:50px;min-width:21px;text-align:center}.nav{display:flex;align-items:center;gap:24px;min-height:46px;font-size:13px}.nav summary,.nav a{display:flex;align-items:center;gap:7px}.nav svg{width:17px;height:17px}.nav details{position:relative;font-weight:700}.nav summary{list-style:none}.nav summary::-webkit-details-marker{display:none}.menu-items{background:white;border:1px solid var(--line);padding:7px;border-radius:8px;min-width:155px;position:absolute;z-index:3;inset-block-start:28px;box-shadow:0 8px 24px #17255b22}.menu-items button{display:block;text-align:start;width:100%;padding:7px 10px}.menu-items button:hover{background:var(--soft)}
.hero{background:#e6e9fc;color:var(--navy);overflow:hidden}.hero-inner{display:grid;grid-template-columns:.95fr 1.35fr;min-height:310px;align-items:stretch}.hero-copy{align-self:center;padding:30px 0 22px 20px}.hero h1{font-size:clamp(30px,4.5vw,64px);line-height:1.15;letter-spacing:-.025em;text-wrap:balance}.hero p{margin:14px 0 19px;font-size:clamp(14px,1.4vw,18px)}.hero img{width:100%;height:310px;object-fit:cover;object-position:center 49%}.hero img.slide{animation:appear .32s ease-out}@keyframes appear{from{opacity:.55}to{opacity:1}}.primary{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:10px 17px;min-height:44px;background:var(--accent);color:white;font-weight:700;border-radius:8px}.primary:hover:not(:disabled){background:var(--navy)}.primary svg{width:18px;height:18px}.dots{display:flex;gap:7px;margin-top:16px}.dots button{width:26px;height:23px;display:grid;place-items:center}.dots button::after{content:'';width:8px;height:8px;border-radius:8px;background:#8b97c7}.dots [aria-pressed=true]::after{width:23px;background:var(--navy)}
.categories{padding-block:26px 29px;text-align:center}.categories h2,.catalog h2{font-size:24px}.cat-grid{max-width:920px;margin:13px auto 0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.cat-item{display:grid;justify-items:center;gap:7px;font-size:14px;font-weight:700}.cat-item img{width:82px;height:82px;border-radius:50%;object-fit:cover;outline:1px solid var(--line);outline-offset:3px;margin:5px}.cat-item:hover img,.cat-item[aria-pressed=true] img{outline:2px solid var(--accent)}.offers{display:grid;grid-template-columns:150px 1fr;gap:14px;padding:13px;background:var(--navy);border-radius:14px;color:white}.offer-heading{align-self:center;text-align:center;padding:10px}.offer-heading>svg{width:35px;height:35px;color:#aab8ff}.offer-heading h2{font-size:23px;line-height:1.3;margin-block:6px 11px}.offer-heading button{display:inline-flex;align-items:center;justify-content:center;gap:3px;font-size:13px;min-height:38px}.offer-heading button svg{width:16px}.offer-grid,.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.product{min-width:0;background:white;color:var(--ink);border-radius:9px;border:1px solid var(--line);overflow:hidden;position:relative;display:flex;flex-direction:column}.product-main{text-align:start;display:flex;flex:1;flex-direction:column;padding:9px;width:100%;gap:7px}.product-main:hover h3{color:var(--accent)}.product img{width:100%;height:152px;object-fit:cover;border-radius:6px;background:var(--paper)}.product h3{font-size:14px;font-weight:700}.favorite{position:absolute;inset-inline-end:14px;inset-block-start:14px;background:white;border-radius:50%;min-width:36px;min-height:36px;padding:6px}.favorite[aria-pressed=true]{color:var(--accent)}.favorite[aria-pressed=true] svg{fill:#c7ceff}.prices{margin-top:auto;padding:0 10px 10px;display:flex;align-items:center;gap:6px;font-variant-numeric:tabular-nums}.prices>div{margin-inline-start:auto;text-align:end}.price{display:block;font-size:14px;font-weight:700;color:var(--navy);white-space:nowrap}.prices s{color:var(--muted);font-size:12px}.discount{background:#ebeeff;color:#23349e;border-radius:6px;padding:2px 6px;font-size:12px;font-weight:700;white-space:nowrap}.catalog{padding-block:36px 54px}.catalog-head{display:flex;align-items:end;justify-content:space-between;gap:8px}.catalog-head p,.catalog-head label{color:var(--muted);font-size:13px}.catalog-head label{display:flex;align-items:center;gap:8px}.catalog select{background:white;border:1px solid var(--line);padding:8px;border-radius:6px;max-width:145px}.filters{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0}.chip{padding:6px 12px;min-height:36px;border:1px solid var(--line);border-radius:7px}.chip:hover,.chip[aria-pressed=true]{background:var(--soft);border-color:#a4afe8;color:var(--navy)}.empty{grid-column:1/-1;padding:28px 14px;text-align:center;background:var(--paper);border-radius:10px}.empty p{margin:5px 0 13px}footer{background:var(--paper);border-top:1px solid var(--line)}.footer{display:flex;align-items:center;gap:16px;min-height:115px}.footer div{margin-inline-end:auto}.footer p{margin-top:8px;color:var(--muted)}.footer-end{text-align:center;padding:12px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}
#panel{width:min(94%,540px);max-height:89vh;overscroll-behavior:contain;border:1px solid var(--line);border-radius:13px;color:var(--ink);padding:0;box-shadow:0 16px 65px #10204840}#panel::backdrop{background:#131c40a0}body:has(#panel[open]){overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:12px 18px}.panel-head h2{font-size:20px}#panel-body{padding:18px}.detail{display:grid;grid-template-columns:.85fr 1fr;gap:15px}.detail img{width:100%;height:210px;object-fit:cover;border-radius:8px}.detail p{color:var(--muted);margin:5px 0 10px}.detail label{display:block;margin-block:10px}.detail select{display:block;width:100%;background:white;border:1px solid var(--line);padding:6px;border-radius:6px}.notice{padding:10px 12px;background:var(--soft);color:var(--navy);border-radius:8px;margin-block:10px}.line-item{display:grid;grid-template-columns:62px 1fr;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}.line-item img{width:62px;height:68px;object-fit:cover;border-radius:7px}.line-item small{color:var(--muted)}.qty{display:flex;align-items:center;gap:9px}.qty button{min-width:36px;min-height:36px;color:var(--accent);font-weight:700}.total{display:flex;justify-content:space-between;gap:10px;padding:15px 0;border-top:1px solid var(--line);margin-top:12px}.row-actions{display:flex;flex-wrap:wrap;gap:8px}.toast{position:fixed;z-index:5;inset:auto 15px 16px auto;max-width:calc(100% - 30px);background:var(--navy);color:white;padding:9px 17px;border-radius:8px;box-shadow:0 6px 20px #17255b35;pointer-events:none}.toast:empty{display:none}#panel-body details{padding:10px 0;border-bottom:1px solid var(--line)}
@media(max-width:860px){.shell{padding-inline:20px}.head{gap:13px}.actions span{display:none}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.offers{grid-template-columns:115px 1fr}.offer-grid{display:flex;overflow:auto;scroll-snap-type:x mandatory}.offer-grid .product{width:155px;flex:none;scroll-snap-align:start}.offer-grid .product img{height:112px}}
@media(max-width:580px){.shell{padding-inline:13px}.announcement{font-size:11px;gap:6px}.head{min-height:auto;padding-block:11px;flex-wrap:wrap;gap:10px}.brand img{width:101px}.actions{order:1}.search{order:2;width:100%}.search input{padding-block:8px;font-size:14px}.nav{gap:14px;min-height:39px;font-size:11px;flex-wrap:wrap;padding-bottom:6px}.nav svg{width:13px;height:13px}.nav a,.nav summary{gap:4px}.hero-inner{grid-template-columns:1fr 1fr;padding:0;min-height:218px}.hero-copy{padding:16px 13px 9px 6px}.hero h1{font-size:27px}.hero p{font-size:12px;line-height:1.5;margin:8px 0 12px}.hero img{height:100%;min-height:218px;object-position:46% center}.hero .primary{font-size:12px;padding:6px 8px;min-height:40px}.hero .primary svg{width:14px}.dots{margin-top:7px}.cat-grid{grid-template-columns:repeat(3,1fr);row-gap:13px}.cat-item img{width:57px;height:57px}.categories h2,.catalog h2{font-size:20px}.offers{grid-template-columns:1fr;gap:4px;padding:9px}.offer-heading{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:0 4px}.offer-heading>svg{width:22px;height:22px}.offer-heading h2{font-size:18px;margin:0;margin-inline-end:auto}.offer-grid .product{width:142px}.catalog{padding-block:24px 36px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.product img{height:127px}.catalog-head label{font-size:0}.catalog select{font-size:12px}.footer{flex-wrap:wrap;padding-block:15px;gap:6px}.footer div{width:100%}.footer p{font-size:13px}.detail{grid-template-columns:1fr}.detail img{height:175px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}
