/* v5: Talabat-style layer on top of shop.css (owner asked to match Talabat's UI/UX, 13 Nov 2026) */
:root { --accent: #0A6BA8; --accent-d: #08578A; }
body { background: #fff; padding-bottom: 72px; }

/* header: brand colour block, white pill search like Talabat */
.appbar { background: var(--accent); box-shadow: none; padding: 10px 0 14px; border-radius: 0 0 22px 22px; }
.appbar .logo img { filter: brightness(0) invert(1); }
.where { background: rgba(255,255,255,.16); color: #fff; }
.where small { color: rgba(255,255,255,.85); } .where svg, .where .chev { fill: #fff; }
.iconbtn { background: rgba(255,255,255,.16); } .iconbtn svg { fill: #fff; }
.iconbtn b { background: #FFB020; color: #14202B; }
.search input { background: #fff; border-radius: 999px; height: 48px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.search input:focus { border-color: #fff; }

/* category tiles: soft square, coloured blob, two products, label under it */
.catrow { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 12px; margin: 0 -16px; padding: 4px 16px 6px; overflow-x: auto; scrollbar-width: none; }
.catrow::-webkit-scrollbar { display: none; }
.catrow .cat i { position: relative; width: 92px; max-width: none; height: 92px; border-radius: 20px; background: #F3F5F8; overflow: hidden; }
.catrow .cat i::before { content: ""; position: absolute; inset: 40% -12% -24% -12%; border-radius: 50% 50% 18px 18px; background: var(--accent); }
.catrow .cat:nth-child(4n+2) i::before { background: #D4202C; }
.catrow .cat:nth-child(4n+3) i::before { background: #0F8A4B; }
.catrow .cat:nth-child(4n) i::before { background: #F08A00; }
.catrow .cat img { position: absolute; z-index: 1; object-fit: contain; mix-blend-mode: normal; background: #fff; border-radius: 12px; padding: 3px; box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.catrow .cat .c1 { width: 56px; height: 56px; top: 10px; inset-inline-start: 8px; transform: rotate(-6deg); }
.catrow .cat .c2 { width: 44px; height: 44px; bottom: 6px; inset-inline-end: 6px; transform: rotate(7deg); }
.catrow .cat span { font-size: 12.5px; font-weight: 600; }

/* product card: bordered image box, round + on the corner, name, price */
.p .imgwrap { position: relative; }
.p .ph { border: 1px solid var(--line); background: #fff; border-radius: 18px; }
.p .ph img { mix-blend-mode: normal; padding: 14px; }
.p .ctl, .imgwrap .ctl { position: absolute; inset-inline-end: 8px; bottom: 8px; top: auto; margin: 0; transform: none; z-index: 2; }
.p .add { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--accent); border: 1px solid var(--line);
          box-shadow: 0 3px 10px rgba(20,32,43,.14); font-size: 28px; font-weight: 400; line-height: 1; padding: 0 0 3px; display: grid; place-items: center; }
.p .add:hover { background: var(--accent); color: #fff; }
.p .qty { width: auto; height: 42px; border-radius: 21px; background: #fff; color: var(--accent); border: 1px solid var(--line); box-shadow: 0 3px 10px rgba(20,32,43,.14); justify-content: center; }
.p .qty button { width: 38px; height: 42px; color: var(--accent); font-size: 24px; font-weight: 500; }
.p .qty span { color: var(--ink); min-width: 18px; }
.p h3 { margin-top: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.price { font-size: 16px; font-weight: 600; }
.hrow .p { flex-basis: 150px; }

/* section headers, underlined "عرض الكل", Talabat tabs */
.block h2, .rhead h2 { font-size: 21px; font-weight: 700; }
.rhead a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-weight: 600; font-size: 14.5px; }
.tabs { display: flex; gap: 8px; margin: 0 -16px 12px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14.5px; }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* big mid-page promo (like Talabat's "Korean picks") */
.promo { position: relative; display: flex; align-items: center; min-height: 190px; margin: 28px -16px 0; padding: 22px 16px; overflow: hidden; text-decoration: none; color: var(--ink);
         background: linear-gradient(180deg, #E4F2FB 0%, #F6FBFE 100%); }
.promo.p-skin { background: linear-gradient(180deg, #FCE7EE 0%, #FFF6F9 100%); }
.ptext { position: relative; z-index: 1; max-width: 55%; }
.promo h3 { margin: 0 0 12px; font-size: 26px; line-height: 1.25; font-weight: 800; color: var(--accent); }
.promo.p-skin h3 { color: #B43358; }
.promo .bcta { background: var(--ink); color: #fff; }
.pimgs { position: absolute; inset-inline-end: 10px; bottom: 10px; width: 46%; height: 170px; }
.pimgs img { position: absolute; object-fit: contain; background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.pimgs .pi0 { width: 104px; height: 104px; inset-inline-end: 0; top: 0; z-index: 2; }
.pimgs .pi1 { width: 84px; height: 84px; inset-inline-start: 0; bottom: 0; transform: rotate(-6deg); }
.pimgs .pi2 { width: 70px; height: 70px; inset-inline-end: 22px; bottom: 0; transform: rotate(6deg); z-index: 3; }

/* bottom navigation */
.bnav { position: fixed; z-index: 16; inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr);
        padding: 6px; border-radius: 28px; background: rgba(255,255,255,.97); box-shadow: 0 8px 28px rgba(20,32,43,.18); }
.bnav a, .bnav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border: 0; border-radius: 22px; background: none;
                        color: var(--ink); font-size: 12px; font-weight: 600; text-decoration: none; }
.bnav svg { width: 24px; height: 24px; fill: currentColor; }
.bnav .on { background: var(--tint); color: var(--accent); }
.bnav b { position: absolute; top: 2px; inset-inline-end: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; display: grid; place-items: center; }
.cartdock { bottom: calc(86px + env(safe-area-inset-bottom)); }
.goal { flex-direction: column; align-items: stretch; gap: 6px; background: #fff; color: var(--ink); font-size: 14px; padding: 10px 14px; }
.goal i { flex: none; width: 100%; height: 4px; background: var(--line); } .goal i b { background: var(--accent); }
.foot { padding-bottom: 170px; }

/* full-page product, cart and checkout */
.sheet.full { max-width: none; height: 100dvh; max-height: none; border-radius: 0; padding: 0 0 110px; background: #fff; animation: slide .22s ease; }
@keyframes slide { from { transform: translateX(-24px); opacity: .5; } }
.ptop { position: absolute; z-index: 4; top: 14px; inset-inline: 16px; display: flex; justify-content: space-between; }
.round { position: relative; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.round svg { width: 22px; height: 22px; fill: currentColor; }
.round .dot { position: absolute; top: -2px; inset-inline-start: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: #F08A00; color: #fff; font-size: 12px; display: grid; place-items: center; }
#prodSheet .pbig { margin: 0; border-radius: 0; aspect-ratio: auto; height: 46vh; background: #F3F5F8; }
#prodSheet .pbig img { width: 70%; height: 80%; }
.pbody { position: relative; margin-top: -18px; padding: 18px 16px 0; background: #fff; border-radius: 22px 22px 0 0; }
#prodSheet h2#pName { margin: 6px 0 8px; font-size: 24px; line-height: 1.35; font-weight: 700; }
.pcat { font-size: 15px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.pfoot { position: fixed; inset-inline: 0; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
         padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
.pfoot .pprice { font-size: 24px; font-weight: 800; }
#pCtl { flex: 0 0 58%; } #pCtl .btn { margin: 0; height: 56px; border-radius: 28px; }
.qty.big { height: 56px; border-radius: 28px; background: #fff; color: var(--accent); border: 1.5px solid var(--line); box-shadow: none; justify-content: space-between; padding: 0 6px; }
.qty.big button { width: 52px; height: 56px; color: var(--accent); font-size: 30px; font-weight: 400; } .qty.big span { color: var(--ink); font-size: 20px; }
.phead { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; }
.phead h2 { margin: 0; font-size: 22px; font-weight: 700; } .phead small { color: var(--ink-2); font-size: 13.5px; }
.pill { margin-inline-start: auto; height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); background: #fff; font-weight: 600; }
#cartSheet .pbody { margin-top: 0; padding-top: 4px; }
.line { grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .th { width: 72px; height: 72px; border-radius: 14px; background: #F3F5F8; }
.line h4 { font-size: 14.5px; } .line .lp { font-size: 16px; font-weight: 700; }
.line .qty, .line .add { position: static; }
.line .qty { height: 40px; border-radius: 20px; background: #fff; color: var(--accent); border: 1px solid var(--line); box-shadow: none; }
.line .qty button { color: var(--accent); font-size: 22px; } .line .qty span { color: var(--ink); }
.h2 { margin: 0 0 10px; font-size: 21px; font-weight: 700; padding: 0; }
.req { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 0; border: 0; background: none; text-align: start; }
.req svg { width: 28px; height: 28px; flex: none; }
.req b { display: block; font-size: 15.5px; } .req small { color: var(--ink-2); font-size: 14px; }
#cartNotes { width: 100%; margin-top: 8px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); }
.summary div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.summary .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 18px; font-weight: 800; }
.sfoot { position: fixed; inset-inline: 0; bottom: 0; z-index: 5; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
.sfoot .btn { margin: 0; height: 58px; border-radius: 29px; font-size: 17px; }
.card { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; }
.card.col { display: block; } .card h3 { margin: 0 0 4px; font-size: 16px; }
.card > svg { width: 30px; height: 30px; flex: none; } .card b { display: block; font-size: 16px; } .card small { color: var(--ink-2); font-size: 14px; }
.paylist { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.paylist label { display: block; position: relative; }
.paylist label + label { border-top: 1px solid var(--line); }
.paylist input { position: absolute; opacity: 0; }
.paylist span { display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; }
.paylist span::after { content: ""; margin-inline-start: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #9AA6B2; box-sizing: border-box; }
.paylist input:checked + span::after { border: 7px solid var(--ink); }
.paylist input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: -3px; }
.paylist i { font-style: normal; font-size: 22px; } .paylist b { font-size: 16px; }

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .appbar { border-radius: 0; }
  .bnav { display: none; } .cartdock { bottom: 16px; } .foot { padding-bottom: 120px; }
  .catrow { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); grid-auto-columns: auto; margin: 0; padding: 4px 0; overflow: visible; }
  .catrow .cat i { width: 100%; }
  .promo { margin: 28px 0 0; border-radius: 24px; padding: 30px; }
  .sheet.full { max-width: 560px; height: 92dvh; border-radius: 24px; }
  .pfoot, .sfoot { position: sticky; }
}

/* store pages in Talabat drop the tab bar once the cart has items; the cart bar takes its place */
body.hascart .bnav { display: none; }
body.hascart .cartdock { bottom: calc(12px + env(safe-area-inset-bottom)); }

.pdesc { margin: 10px 0; font-size: 15px; line-height: 1.7; color: var(--ink); }

/* designed banners supplied by the owner (2:1 images) */
.banner.bimg { padding: 0; min-height: 0; display: block; background: none; border-radius: 20px; overflow: hidden; aspect-ratio: 2 / 1; flex: 0 0 90%; max-width: 560px; }
.banner.bimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner.bimg::after { display: none; }
@media (min-width: 720px) { .banner.bimg { flex: none; max-width: none; } .banners:has(.bimg) { grid-template-columns: repeat(2, 1fr); } }

/* v6: explicit labelled "أضف للسلة" button under every card (owner asked twice); the corner + is gone */
.p .ctl, .imgwrap .ctl { position: static; inset: auto; margin: 8px 0 0; transform: none; }
.p .add { width: 100%; height: 42px; border-radius: 12px; border: 0; background: var(--tint); color: var(--accent-d); box-shadow: none;
          font-size: 14.5px; font-weight: 700; line-height: 1; padding: 0; display: flex; align-items: center; justify-content: center; }
.p .add:hover { background: var(--accent); color: #fff; }
.p .qty { width: 100%; height: 42px; justify-content: space-between; border: 1.5px solid var(--accent); box-shadow: none; }
.p .qty button { width: 46px; height: 40px; }
.line .add { width: auto; padding: 0 14px; }

.plong { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.plong h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.plong p { margin: 0 0 10px; font-size: 15px; line-height: 1.8; color: var(--ink); }

/* categories: two rows on phones, still swipes sideways */
@media (max-width: 719px) { .catrow { grid-template-rows: none; grid-auto-flow: column; } }

/* language switch */
.langbtn { flex: none; display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,.16);
           color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.langbtn:hover { background: rgba(255,255,255,.26); }
html[dir="ltr"] .where { margin-inline-start: auto; }
@media (min-width: 720px) { .langbtn { order: 4; } .iconbtn { order: 5; } }

/* back arrows point the other way in left-to-right pages */
html[dir="ltr"] #sheetBack svg, html[dir="ltr"] .ptop .round:first-child svg, html[dir="ltr"] .back svg { transform: scaleX(-1); }

/* old price + save badge */
.was { color: var(--ink-2); font-weight: 400; font-size: 13px; text-decoration: line-through; margin-inline-start: 4px; }
.badge.sale { background: #D4202C; color: #fff; }
.save { font-style: normal; font-size: 13px; font-weight: 700; color: #D4202C; background: #FDECEC; padding: 2px 8px; border-radius: 999px; margin-inline-start: 4px; }

/* product photo gallery */
#prodSheet .pbig { position: relative; display: block; padding: 0; }
.gal { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal::-webkit-scrollbar { display: none; }
#prodSheet .gal img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; padding: 36px 0 34px; scroll-snap-align: center; }
.gdots { position: absolute; bottom: 30px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gdots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(20,32,43,.25); } .gdots i.on { background: var(--accent); width: 18px; border-radius: 4px; }

/* variants dropdown on the product page */
.pvar { display: block; margin: 10px 0 4px; }
.pvar span { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.pvar select { width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; font-weight: 600; }
.pvar select:focus { outline: none; border-color: var(--accent); }

/* floating WhatsApp button */
.wafab { position: fixed; z-index: 14; inset-inline-end: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); width: 54px; height: 54px; border-radius: 50%;
         background: #25D366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.wafab svg { width: 30px; height: 30px; fill: #fff; }
.wafab:active { transform: scale(.95); }
body.hascart .wafab { bottom: calc(150px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { .wafab { bottom: 24px; } body.hascart .wafab { bottom: 96px; } }

/* category tiles: one light blue backdrop for all (owner request) */
.catrow .cat i::before, .catrow .cat:nth-child(4n+2) i::before, .catrow .cat:nth-child(4n+3) i::before, .catrow .cat:nth-child(4n) i::before { background: #CDE5F6; }

/* why-Tdawi feature strip: text only, one row that scrolls on phones */
.feats { list-style: none; margin: 0; padding: 2px 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 10px; overflow-x: auto; scrollbar-width: none; }
.feats::-webkit-scrollbar { display: none; }
.feats li { background: #EEF6FC; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; border-inline-start: 4px solid var(--accent); }
.feats b { font-size: 13.5px; font-weight: 700; color: #12324A; }
.feats span { font-size: 12px; color: #4A6275; }
@media (min-width: 720px) { .feats { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

/* category cards v2 (owner-picked look): soft blue card, product trio on top, icon + label under */
.catgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.catgrid[hidden] { display: none; }
.catmore { margin-top: 12px; }
@media (min-width: 720px) { .catgrid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.cat2 { display: flex; flex-direction: column; background: linear-gradient(180deg, #EEF4FC, #E1EBF8); border-radius: 22px; overflow: hidden; text-decoration: none; color: #12324A; transition: transform .15s; }
.cat2:active { transform: scale(.98); }
.cat2 .pics { position: relative; display: block; height: 128px; margin: 8px 8px 0; }
.cat2 .pics img { position: absolute; bottom: 0; height: 118px; width: auto; max-width: 46%; object-fit: contain; mix-blend-mode: multiply; background: transparent; }
.cat2 .pics .q0 { inset-inline-start: 4%; height: 112px; }
.cat2 .pics .q1 { inset-inline-start: 30%; z-index: 2; height: 122px; }
.cat2 .pics .q2 { inset-inline-end: 4%; height: 108px; }
.cat2 .lab { display: flex; align-items: center; gap: 10px; padding: 10px 12px 14px; }
.cat2 .ico { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #1F5FA8; }
.cat2 .ico svg { width: 22px; height: 22px; }
.cat2 .lab > span { font-size: 15px; font-weight: 700; line-height: 1.25; }
@media (min-width: 720px) { .cat2 .pics { height: 160px; } .cat2 .pics img { height: 150px; } .cat2 .pics .q0 { height: 140px; } .cat2 .pics .q1 { height: 154px; } .cat2 .pics .q2 { height: 134px; } .cat2 .lab > span { font-size: 17px; } .cat2 .ico { width: 46px; height: 46px; } }
/* v2.1: square product shots, three overlapping */
.cat2 .pics img, .cat2 .pics .q0, .cat2 .pics .q1, .cat2 .pics .q2 { height: auto; aspect-ratio: 1; max-width: none; bottom: 4px; }
.cat2 .pics .q0 { width: 46%; inset-inline-start: 0; }
.cat2 .pics .q1 { width: 54%; inset-inline-start: 23%; z-index: 2; }
.cat2 .pics .q2 { width: 44%; inset-inline-end: 0; inset-inline-start: auto; }
.cat2 .pics { height: 112px; }
@media (min-width: 720px) { .cat2 .pics { height: 150px; } }

/* v2.2: ONE row on phones (swipe), 3-column grid with "view all" on wide screens */
@media (max-width: 719px) {
  .catgrid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 43%; gap: 12px; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .catgrid::-webkit-scrollbar { display: none; }
  .cat2 { scroll-snap-align: start; }
  #catsAll { display: none; }
}
@media (min-width: 720px) { .catgrid.collapsed .cat2:nth-child(n+7) { display: none; } }

/* perks strip: two benefits, icon + bold line + grey line, divider between */
.perks { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 4px; margin-top: 6px; }
.perks[hidden] { display: none; }
.perk { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: #1F4E79; }
.perk svg { flex: none; width: 38px; height: 38px; }
.perk b { display: block; font-size: 14px; font-weight: 700; color: #12324A; line-height: 1.3; }
.perk span { display: block; font-size: 12.5px; color: #6B7C8B; line-height: 1.3; margin-top: 2px; }
.psep { flex: none; width: 1px; height: 38px; background: #C9D3DD; }
@media (max-width: 420px) { .perks { gap: 8px; } .perk svg { width: 30px; height: 30px; } .perk b { font-size: 12.5px; } .perk span { font-size: 11.5px; } }
/* perks: smaller */
.perks { padding: 8px 2px; gap: 10px; margin-top: 2px; }
.perk { gap: 8px; }
.perk svg { width: 26px; height: 26px; }
.perk b { font-size: 12.5px; }
.perk span { font-size: 11px; margin-top: 1px; }
.psep { height: 26px; }
@media (max-width: 420px) { .perks { gap: 6px; } .perk svg { width: 22px; height: 22px; } .perk b { font-size: 11.5px; } .perk span { font-size: 10.5px; } .psep { height: 22px; } }

/* no flash of the crawler HTML: hide it while the app boots, show a quiet skeleton instead */
html.js #ssr { display: none; }
html.js #main:has(#ssr)::before { content: ""; display: block; height: 170px; margin: 14px 0; border-radius: 18px; background: linear-gradient(90deg, #EEF2F6, #E3EAF1, #EEF2F6); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
html.js #main:has(#ssr)::after { content: ""; display: block; height: 120px; margin: 14px 0; border-radius: 18px; background: linear-gradient(90deg, #EEF2F6, #E3EAF1, #EEF2F6); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* cut-out pack shots: no boxes, overlapping like the reference */
.cat2.cut .pics { display: flex; align-items: flex-end; justify-content: center; height: 124px; margin: 10px 8px 0; }
.cat2.cut .pics img { position: static; width: auto; height: auto; max-width: 36%; max-height: 82%; aspect-ratio: auto; object-fit: contain; mix-blend-mode: normal; margin: 0 -5px; filter: drop-shadow(0 3px 5px rgba(20,50,90,.18)); }
.cat2.cut .pics .q1 { max-height: 100%; max-width: 42%; z-index: 2; }
.cat2.cut .pics .q0, .cat2.cut .pics .q2 { z-index: 1; }
@media (min-width: 720px) { .cat2.cut .pics { height: 168px; } }

/* promo code box */
.codebox { display: flex; gap: 8px; margin: 4px 0 14px; }
.codebox input { flex: 1; min-width: 0; height: 46px; border: 1.5px dashed #9FB7CC; border-radius: 12px; padding: 0 14px; font: inherit; font-size: 15px; letter-spacing: .5px; background: #F6FAFD; }
.codebox .btn { height: 46px; padding: 0 18px; border-radius: 12px; background: #12324A; color: #fff; font-weight: 700; border: 0; }
.summary .disc { color: #0F8A4B; }

#codeNote { margin: -6px 0 10px; font-size: 13px; color: #0F6B3A; }
/* code box fix: input takes the row, button stays small */
.block .codebox { display: flex; flex-direction: row; align-items: stretch; gap: 8px; width: 100%; }
.block .codebox input { flex: 1 1 0; width: auto; min-width: 0; }
.block .codebox button.btn { flex: 0 0 auto; width: auto; min-width: 88px; max-width: 120px; padding: 0 16px; }

/* code row: compact, one line, no heading */
.codesec { padding-top: 0; padding-bottom: 0; margin: 6px 0 2px; }
.codesec .codebox { margin: 0; gap: 8px; }
.codesec .codebox input { height: 42px; font-size: 14px; border-radius: 10px; padding: 0 12px; }
.codesec .codebox button.btn { height: 42px; min-width: 76px; border-radius: 10px; font-size: 14px; }
.codesec #codeNote { margin: 6px 2px 0; }

.paylist small { display: block; font-size: 12px; color: #6B7C8B; font-weight: 400; margin-top: 2px; }

/* applied-code celebration */
.promoOk { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #E6F6EC, #D5F0E0); border: 1.5px solid #8CD2A8; animation: popIn .35s ease-out; }
.promoOk[hidden] { display: none; }
.promoOk svg { flex: none; width: 34px; height: 34px; fill: #0F8A4B; animation: tick .5s ease-out; }
.promoOk b { display: block; font-size: 15px; color: #0B5D32; }
.promoOk span { display: block; font-size: 12.5px; color: #2D6E4A; margin-top: 2px; }
.promoOk span b { display: inline; font-size: inherit; }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes tick { from { transform: scale(.3) rotate(-30deg); } to { transform: none; } }

/* checkout smoothness */
#stepCheckout .bad { border-color: #D4202C !important; box-shadow: 0 0 0 3px rgba(212,32,44,.15); }
.err.soft { background: #FFF6E5; color: #8A5300; border-color: #F3D19B; }
.minGuard { margin: 4px 0 10px; padding: 12px 14px; border-radius: 14px; background: #FFF6E5; border: 1px solid #F3D19B; }
.minGuard p { margin: 0 0 8px; font-size: 14px; color: #8A5300; font-weight: 600; }
.minGuard .btn { width: 100%; }
#doneShop { margin-top: 10px; width: 100%; }

/* SEO text the customer also sees */
.lintro { margin: -4px 0 12px; font-size: 13.5px; line-height: 1.7; color: #4A6275; }
.faq details { border-bottom: 1px solid #E3EAF1; padding: 12px 2px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; color: #12324A; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: inline-end; color: #1F5FA8; font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: #4A6275; }
#ssr .cintro { color: #4A6275; font-size: 14px; }

/* savings + celebration */
.saverow { background: #E6F6EC; border-radius: 10px; padding: 6px 10px !important; margin-top: 4px; }
.saverow span, .saverow b { color: #0B5D32 !important; font-weight: 700; }
.bsave { display: inline-block; margin-inline-start: 8px; padding: 2px 8px; border-radius: 999px; background: #E6F6EC; color: #0B5D32; font-size: 12px; font-weight: 700; }
.bsave[hidden] { display: none; }
.donesave { margin: 6px auto 2px; display: inline-block; padding: 6px 14px; border-radius: 999px; background: #E6F6EC; color: #0B5D32; font-weight: 800; font-size: 16px; animation: popIn .4s ease-out; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
.bump { animation: bump .45s ease-out; display: inline-block; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); color: #0F8A4B; } 100% { transform: scale(1); } }
.promoOk.pop { animation: promoPop .55s cubic-bezier(.2,1.6,.4,1); }
@keyframes promoPop { 0% { transform: scale(.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.pvary { margin: 2px 0 8px; font-size: 12.5px; color: #8A97A3; }
/* out of stock + notify me (2026-11-14) */
.p.oos .ph img{filter:grayscale(.85);opacity:.55}
.p.oos .price{color:#8a94a6}
.badge.out{background:#5b6475;color:#fff}
.add.notify{background:#fff;color:#0b5cd5;border:1.5px solid #0b5cd5;font-size:12.5px}
.btn.add.notify{width:100%;padding:12px;font-size:15px}
.nfy{position:fixed;inset:0;background:rgba(10,20,40,.45);z-index:200;display:flex;align-items:flex-end;justify-content:center}
.nfy[hidden]{display:none}
.nfybox{position:relative;background:#fff;color:#14213d;width:100%;max-width:440px;border-radius:18px 18px 0 0;padding:22px 18px 26px;display:flex;flex-direction:column;gap:12px;animation:nfyup .22s ease}
@media(min-width:700px){.nfy{align-items:center}.nfybox{border-radius:18px}}
@keyframes nfyup{from{transform:translateY(40px);opacity:0}}
.nfybox h3{margin:0 0 0 30px;font-size:17px}
.nfybox .nfyS{margin:0;color:#5b6475;font-size:14px}
.nfybox label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:#5b6475}
.nfybox input{padding:12px;border:1.5px solid #d6dbe4;border-radius:10px;font-size:16px}
.nfybox .x{position:absolute;top:10px;inset-inline-end:10px;background:none;border:0;font-size:24px;cursor:pointer;color:#5b6475}
.nfybox .err{color:#c62828;margin:0;font-size:13px}
.nfywa{text-align:center;color:#128c4a;font-size:14px;text-decoration:underline}
.nfyok{width:56px;height:56px;border-radius:50%;background:#e7f6ec;color:#128c4a;font-size:30px;display:grid;place-items:center;margin:4px auto 0}
.nfybox:has(.nfyok){text-align:center}

/* flash sale (2026-11-14) */
.flash{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 14px;padding:14px 16px;border-radius:16px;
  background:linear-gradient(120deg,#b3121e,#e5322d 55%,#ff7a3d);color:#fff;text-decoration:none;box-shadow:0 8px 22px rgba(229,50,45,.28)}
.flash img{width:110px;height:110px;object-fit:contain;background:#fff;border-radius:12px;flex:none}
.fltxt{min-width:0}.fltxt h3{margin:6px 0 4px;font-size:16px;line-height:1.35;color:#fff}
.flbadge{display:inline-block;background:#fff;color:#c4161c;font-weight:700;font-size:12px;padding:3px 10px;border-radius:20px;animation:flp 1.2s ease-in-out infinite}
@keyframes flp{50%{transform:scale(1.07)}}
.flprice{margin:0;font-size:15px}.flprice b{font-size:20px}.flprice s{opacity:.75;margin:0 6px}.flprice em{font-style:normal;background:rgba(255,255,255,.2);padding:1px 8px;border-radius:10px;font-size:12.5px}
.flend{margin:8px 0 0;font-size:13px}.fltimer.big{font-variant-numeric:tabular-nums;font-size:17px;letter-spacing:1px;background:rgba(0,0,0,.25);padding:2px 9px;border-radius:8px;direction:ltr;display:inline-block}
.fltag{position:absolute;top:8px;inset-inline-end:8px;z-index:2;background:#e5322d;color:#fff;font-size:11px;padding:2px 7px;border-radius:10px;direction:ltr;font-variant-numeric:tabular-nums}
.imgwrap{position:relative}

.badge.out.req{background:#0b5cd5}
.p.oos:has(.req) .ph img{filter:none;opacity:.9}
/* out / on-request badge: small pill in the photo corner (2026-11-14) */
.p .imgwrap .badge.out{position:absolute;top:8px;inset-inline-start:8px;inset-inline-end:auto;left:auto;right:auto;width:auto;max-width:calc(100% - 16px);
  display:inline-block;padding:3px 10px;border-radius:999px;font-size:11.5px;font-weight:600;line-height:1.5;z-index:2;white-space:nowrap;box-shadow:0 2px 6px rgba(0,0,0,.12)}
[dir=rtl] .p .imgwrap .badge.out{right:8px;left:auto}
[dir=ltr] .p .imgwrap .badge.out{left:8px;right:auto}
.p .imgwrap .badge.out.req{background:#e8f0fe;color:#0b5cd5;border:1px solid #c6d8fb;box-shadow:none}

/* owner 2026-11-14: perks strip removed */
#perks{display:none!important}
/* pickup receipt on the done screen (2026-11-14) */
.donepick{margin:14px 0;display:flex;flex-direction:column;gap:12px;text-align:center}
.dpno{border:2px dashed #0b5cd5;border-radius:16px;padding:14px;background:#f2f7ff;display:flex;flex-direction:column;gap:4px}
.dpno span{font-size:13px;color:#5b6475}.dpno b{font-size:40px;line-height:1.1;color:#0b5cd5;letter-spacing:1px;direction:ltr}.dpno small{font-size:12.5px;color:#5b6475}
.dpinfo{display:flex;flex-direction:column;gap:3px;font-size:14px;color:#14213d}.dpinfo span{color:#5b6475;font-size:13px}
.dpbtns{display:flex;flex-direction:column;gap:8px}.dpbtns .btn{text-decoration:none;text-align:center}

/* cosmetics sub-categories (2026-11-14) */
.subs{display:flex;gap:8px;overflow-x:auto;padding:4px 0 12px;scrollbar-width:none}.subs::-webkit-scrollbar{display:none}
.subs[hidden]{display:none}
.subs button{flex:none;border:1.5px solid #d6dbe4;background:#fff;color:#14213d;border-radius:999px;padding:7px 14px;font:inherit;font-size:13.5px;cursor:pointer;white-space:nowrap}
.subs button small{color:#8a94a6;font-size:11px}
.subs button[aria-pressed=true]{background:#0b5cd5;border-color:#0b5cd5;color:#fff}.subs button[aria-pressed=true] small{color:#dbe7ff}
.lensc{display:flex;flex-wrap:wrap;gap:8px}.lensc button{border:1.5px solid #d6dbe4;background:#fff;border-radius:999px;padding:9px 16px;font:inherit;font-size:14.5px;cursor:pointer}
.lensc button:hover{border-color:#0b5cd5;color:#0b5cd5}

/* guides and area pages stay server-rendered (2026-11-15) */
html.js #ssr.keep{display:block}
html.js #main:has(#ssr.keep)::before,html.js #main:has(#ssr.keep)::after{display:none}
#ssr.keep{padding:16px 0 24px;line-height:1.8}
#ssr.keep .ssr-h1{font-size:22px;line-height:1.5}
#ssr .guide h2{font-size:18px;margin:22px 0 6px}
#ssr .guide p{margin:0 0 10px;color:#22324a}
#ssr .gintro{font-size:16px;color:#14213d}
#ssr .gnote{background:#f2f6fc;border-radius:12px;padding:10px 14px;font-size:13.5px;color:#4a6275}
#ssr .glist{list-style:none;padding:0;margin:0;display:grid;gap:12px}
#ssr .glist li{border:1px solid #e3e8ef;border-radius:14px;padding:12px 14px}
#ssr .glist a{color:#0b5cd5;text-decoration:none}
#ssr .glist p{margin:4px 0 0;font-size:13.5px;color:#4a6275}
#ssr .areas a{display:inline-block;margin:3px 2px;padding:6px 12px;border-radius:999px;background:#f2f6fc;color:#14213d;text-decoration:none;font-size:13.5px}

/* customer's own orders: status, cancel, edit (2026-11-17) */
.myorders{display:grid;gap:10px;margin:10px 0 14px}
.myo{border:1px solid #d6e4f5;background:#f5f9ff;border-radius:14px;padding:12px 14px}
.myoh{display:flex;justify-content:space-between;align-items:center;gap:8px}
.myst{font-size:12.5px;padding:3px 10px;border-radius:999px;background:#eaf2fd;color:#1f5fa8;white-space:nowrap}
.myst.st-new{background:#fff1dd;color:#8a5300}
.myoi{margin:6px 0 0;font-size:13px;color:#4a6275;line-height:1.6}
.mybtns{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.mybtns .btn{flex:1;min-width:120px;padding:9px 12px;font-size:14px}
.btn.danger{color:#b3261e;border-color:#f1c3c0}
.editnote{display:flex;gap:10px;align-items:center;justify-content:space-between;background:#fff6e5;border:1px solid #f3d9a4;border-radius:12px;padding:10px 12px;margin-bottom:10px;font-size:13.5px;line-height:1.6}
.editnote[hidden]{display:none}
.editnote .lnk{background:none;border:0;color:#b3261e;font-weight:700;cursor:pointer;white-space:nowrap;font:inherit}
.donemy{margin-top:14px;font-size:14px;color:#4a6275}
.donemy .ok{color:#0b5e32;font-weight:700}

/* speed 2026-11-17: keep the footer below the fold while the app boots (was CLS 0.36) */
#main{min-height:calc(100vh - 120px)}

/* customer order tracker (2026-11-19) */
.trk{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);margin:12px 0 4px;padding:0}
.trk li{position:relative;text-align:center;font-size:11.5px;color:#8a9aa8;padding-top:28px;min-width:0}
.trk li i{position:absolute;top:0;left:50%;transform:translateX(-50%);width:22px;height:22px;border-radius:50%;background:#e3e7ee;border:4px solid #fff;box-shadow:0 0 0 1px #d5dce4;z-index:1;box-sizing:border-box}
.trk li:before{content:"";position:absolute;top:9.5px;inset-inline-end:50%;width:100%;height:3px;background:#e3e7ee}
.trk li:first-child:before{display:none}
.trk li.ok i{background:#0F8A4B;box-shadow:0 0 0 1px #0F8A4B}
.trk li.ok:before,.trk li.now:before{background:#0F8A4B}
.trk li.now i{background:#1565C0;box-shadow:0 0 0 4px rgba(21,101,192,.22);animation:trp 1.6s ease-in-out infinite}
.trk li.ok b,.trk li.now b{color:#12324A}
.trk b{display:block;font-weight:700;line-height:1.35}
.trk small{display:block;color:#5B6B7A;margin-top:2px;font-variant-numeric:tabular-nums}
.trh{margin:6px 0 2px;font-size:13px;color:#12324A;font-weight:600;text-align:center}
.trx{margin:8px 0 2px;font-size:13.5px;color:#8E1620;font-weight:600}
@keyframes trp{50%{box-shadow:0 0 0 8px rgba(21,101,192,0)}}
@media (prefers-reduced-motion:reduce){.trk li.now i{animation:none}}

/* search: can't find it? (2026-11-21) */
.wish{margin:14px 0 18px;padding:16px;border-radius:16px;background:#F3F7FC;border:1.5px dashed #9DBCE3;display:grid;gap:10px}
.wish h3{margin:0;font-size:16px;color:#12324A;line-height:1.5}.wish p{margin:0;font-size:13.5px;color:#4a6275;line-height:1.6}
.wish label{display:grid;gap:5px;font-size:13px;font-weight:700;color:#12324A}
.wish input{height:46px;border-radius:12px;border:1.5px solid #d5dce4;padding:0 12px;font:inherit;font-size:15px;background:#fff}
.wish .err{color:#B3261E;font-weight:600}.wish .btn{height:48px}.wish .nfyok{margin:0 auto}
.wish h3,.wish .nfyok{text-align:center}.wish[data-done] p{text-align:center}

/* delivery area: type to find (2026-11-21) */
#zoneQ{display:block;width:100%;min-height:48px;margin-top:6px;padding:10px 12px;border-radius:12px;border:1.5px solid var(--line,#d5dce4);background:#fff;font:inherit;font-weight:400}
#zoneQ:focus{outline:none;border-color:var(--blue,#1565C0)}#zoneQ.bad{border-color:#B3261E}
.zlist{list-style:none;margin:4px 0 0;padding:4px;border:1.5px solid #d5dce4;border-radius:12px;background:#fff;max-height:290px;overflow:auto;box-shadow:0 8px 24px rgba(18,50,74,.12);font-weight:400}
.zlist li{padding:10px 12px;border-radius:9px;cursor:pointer}.zlist li b{display:block;font-weight:700;color:#12324A;font-size:14.5px}
.zlist li small{display:block;color:#5B6B7A;font-size:12.5px;margin-top:2px}.zlist li.on,.zlist li:hover{background:#EAF2FD}
.zlist li.none{cursor:default;color:#5B6B7A;font-size:13.5px}.znote{display:block;margin-top:6px;color:#0B5E32;font-weight:600;font-size:13px}

/* product page trust line (v2, 2026-11-22: plain text + line icons) */
.ptrust{margin:-6px 0 12px}
.ptrust .tline{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin:0 0 6px;font-size:13px;color:#4A6275}
.ptrust .tline span{display:inline-flex;align-items:center;gap:6px}
.ptrust .tline svg{width:17px;height:17px;color:#1F5FA8;flex:none}
.ptrust .ask{display:block;color:#4A6275}.ptrust .ask a{color:#178A47;font-weight:700;text-decoration:none}
/* smaller "shop by category" cards (owner 2026-11-22) */
.cat2 .pics,.cat2.cut .pics{height:88px;margin:6px 6px 0}
.cat2 .lab{gap:7px;padding:7px 9px 10px}.cat2 .ico{width:30px;height:30px}.cat2 .ico svg{width:17px;height:17px}
.cat2 .lab > span{font-size:13px}.cat2{border-radius:18px}
@media (max-width:719px){.catgrid{grid-auto-columns:35%;gap:10px}}
@media (min-width:720px){.catgrid{grid-template-columns:repeat(4,1fr);gap:12px}.cat2 .pics,.cat2.cut .pics{height:120px}.cat2 .lab > span{font-size:15px}.cat2 .ico{width:36px;height:36px}.catgrid.collapsed .cat2:nth-child(n+7){display:flex}.catgrid.collapsed .cat2:nth-child(n+9){display:none}}

.ptrust:empty{display:none}

/* product page: bigger photo, less grey (owner 2026-11-22) */
#prodSheet .pbig { height: 40vh; min-height: 260px; max-height: 420px; }
#prodSheet .gal img { padding: 50px 6% 6px; transform: scale(1.08); transform-origin: center 60%; }

/* one-page cart + checkout preview (owner 2026-11-23, ?onepage=1) */
.onepage #stepCart .sfoot, .onepage #stepCart section.block:has(#subtotal) { display: none; }
.onepage #stepCart { padding-bottom: 0; }
.onepage #stepCart #lines::before { content: 'منتجاتك'; display: block; font-weight: 800; font-size: 18px; margin: 6px 0 8px; }
.onepage #stepCheckout { margin-top: 0; padding-top: 6px; border-top: 8px solid #F2F4F7; border-radius: 0; }
.onepage #upsellWrap { margin: 4px 0 0; }
.onepage #upsellWrap .rhead h2 { font-size: 16px; }
.onepage #upsell .p { flex-basis: 112px; }
.onepage #upsell .p h3 { font-size: 13px; }
.onepage #upsell .p .price { font-size: 14px; }
.onepage #upsell .p .badge { font-size: 11px; padding: 2px 6px; }
.onepage #upsell .p .add { height: 34px; font-size: 13px; }

/* one-page checkout: grey page, white section cards so sections stand out (owner 2026-11-23) */
.onepage #cartSheet .sheet.full { background: #EEF1F5; }
.onepage #cartSheet .phead { background: #fff; box-shadow: 0 1px 0 #E4E8EE; }
.onepage #cartSheet .pbody { background: transparent; }
.onepage #stepCheckout { border-top: 0; }
.onepage #lines, .onepage #cartSheet .card, .onepage #stepCart section.block, .onepage #stepCheckout section.block, .onepage #stepCheckout fieldset.seg {
  background: #fff; border: 1px solid #E1E6ED; border-radius: 18px; box-shadow: 0 2px 6px rgba(16,24,40,.06); padding: 14px; margin: 12px 0 0; }
.onepage #lines:empty { display: none; }
.onepage #cartSheet .block > .h2, .onepage #stepCheckout fieldset.seg legend { margin-top: 0; }
.onepage #stepCheckout fieldset.seg legend { float: right; width: 100%; padding: 0 0 8px; }
.onepage #stepCheckout input:not([type=radio]):not([type=file]), .onepage #stepCheckout select, .onepage #stepCheckout textarea { background: #F7F9FC; border-color: #D5DCE5; }
.onepage #stepCheckout .paylist { box-shadow: none; }
.onepage #stepCheckout .codesec .codebox input { background: #F3F8FF; }
.onepage #stepCheckout #modeNote { padding: 0 4px; }

#ssr .nfnote{color:#4A6275;font-size:15px;line-height:1.7;margin:8px 0 4px}

/* product page UX preview (2026-11-24) */
.pv-ux #prodSheet .pbig{height:31vh;min-height:210px;max-height:340px}
.pv-ux #prodSheet .gal img{padding:34px 6% 4px;cursor:zoom-in}
.zoom{position:fixed;inset:0;z-index:9999;background:#fff;display:flex;align-items:center;justify-content:center;touch-action:pinch-zoom}
.zoom img{max-width:100%;max-height:100%;object-fit:contain}
.zoom .zx{position:absolute;top:14px;inset-inline-start:14px;width:44px;height:44px;border-radius:50%;border:0;background:#EEF2F6;font-size:28px;line-height:1;cursor:pointer}

/* banners as slides (preview 2026-11-24) */
.pv-slide .banners{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin:16px 0 0;padding:0}
.pv-slide .banner.bimg{flex:0 0 100%;max-width:none;scroll-snap-align:center}
@media (min-width:720px){.pv-slide .banners{display:flex;max-width:720px;margin:20px auto 0;grid-template-columns:none}.pv-slide .banner.bimg{flex:0 0 100%}.pv-slide .dots{display:flex}}

/* requested state (2026-11-24) */
.notify.asked{background:#e8f6ee!important;color:#146c3c!important;border-color:#9fd4b4!important}
.nfybox .btn[data-nfyx]{width:100%;margin-top:10px}
