/* Web shop layout */
body.shop { background: var(--bg); padding-bottom: 0; }
.shop-head { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.9); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.shop-head .bar { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.shop-head .brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 20px; }
.shop-head .brand img { height: 40px; }
.shop-head .brand b { color: var(--navy); } .shop-head .brand span span { color: var(--sky); }
.searchbox { position: relative; flex: 1; max-width: 620px; }
.searchbox input { width: 100%; padding: 12px 46px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.searchbox input:focus { border-color: var(--sky); background: #fff; box-shadow: 0 0 0 4px rgba(90,171,223,.18); }
.searchbox > svg { position: absolute; top: 50%; inset-inline-start: 16px; transform: translateY(-50%); color: var(--muted); }
.suggest { position: absolute; top: calc(100% + 8px); inset-inline: 0; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 5; animation: fadeUp .2s var(--ease); }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.suggest a:hover, .suggest a.act { background: var(--ice); }
.suggest img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--bg); }
.suggest .all { justify-content: center; font-weight: 800; color: var(--navy); }
.catbar { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; }
.catbar::-webkit-scrollbar { display: none; }
.catbar a { padding: 6px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 700; font-size: 14px; white-space: nowrap; transition: all .2s; }
.catbar a:hover, .catbar a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.head-actions { display: flex; align-items: center; gap: 4px; }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--gold), #F97316); color: #fff; display: grid; place-items: center; font-weight: 900; }
@media (max-width: 760px) {
  .shop-head .bar { flex-wrap: wrap; } .searchbox { order: 3; flex-basis: 100%; max-width: none; } .shop-head .brand > span { display: none; }
  .head-actions .desk { display: none; }
}

main#view { min-height: 70vh; padding: 22px 0 90px; animation: fadeUp .35s var(--ease); }
.crumbs { display: flex; gap: 6px; flex-wrap: wrap; color: var(--muted); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.crumbs a:hover { color: var(--navy); }
.h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; margin: 0 0 6px; }
.panel { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 20px; }

/* banners (same three layouts as the app) */
.banners { position: relative; }
.banner-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--r-xl); scrollbar-width: none; gap: 16px; }
.banner-track::-webkit-scrollbar { display: none; }
.bnr { scroll-snap-align: center; position: relative; min-height: 300px; border-radius: var(--r-xl); overflow: hidden; color: #fff; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 70%, #0E1A36), var(--c)); }
.bnr.full { grid-template-columns: 1fr; }
.bnr.full .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s ease-in-out infinite alternate; }
.bnr.full::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 85%, #0E1A36) 0%, transparent 75%); }
html[dir="rtl"] .bnr.full::after { background: linear-gradient(-90deg, color-mix(in srgb, var(--c) 85%, #0E1A36) 0%, transparent 75%); }
.bnr.classic { grid-template-columns: 1fr; }
.bnr .copy { position: relative; z-index: 1; padding: 40px clamp(22px, 4vw, 56px); }
.bnr .copy .bdg { display: inline-block; background: var(--gold); color: var(--ink); padding: 4px 14px; border-radius: 999px; font-weight: 900; box-shadow: 0 6px 16px rgba(245,184,46,.4); }
.bnr h2 { font-size: clamp(24px, 3.4vw, 46px); line-height: 1.2; margin: 10px 0 6px; font-weight: 900; }
.bnr p { opacity: .85; margin: 0 0 18px; max-width: 460px; }
.bnr .go { background: #fff; color: var(--c); }
.bnr .art { position: relative; height: 100%; min-height: 260px; display: grid; place-items: center; }
.bnr .art::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.4), transparent 65%); }
.bnr .art .orbit { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.3); animation: spin 22s linear infinite; }
.bnr .art .orbit::after { content: ''; position: absolute; top: -6px; inset-inline-start: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.bnr .art img { position: relative; max-height: 250px; width: 70%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); animation: floaty 5s ease-in-out infinite; }
.bnr .deco { position: absolute; inset-inline-end: -40px; bottom: -60px; width: 260px; opacity: .1; }
.bnr.act .copy > * { animation: slideIn .7s var(--ease) both; }
.bnr.act .copy > *:nth-child(2) { animation-delay: .12s; } .bnr.act .copy > *:nth-child(3) { animation-delay: .24s; } .bnr.act .copy > *:nth-child(4) { animation-delay: .36s; }
.bnr.act .bdg { animation: popIn .8s cubic-bezier(.34,1.56,.64,1) both !important; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots button { width: 8px; height: 8px; border-radius: 8px; background: var(--line); transition: all .3s; }
.dots button.on { width: 26px; background: var(--navy); }
@media (max-width: 700px) { .bnr { grid-template-columns: 1fr; min-height: 0; } .bnr .art { min-height: 180px; order: -1; } .bnr .art img { max-height: 170px; } .bnr .copy { padding: 6px 22px 28px; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(var(--sx, 30px)); } }
html[dir="ltr"] { --sx: -30px; }
@keyframes popIn { from { transform: scale(0); } }
@keyframes kenburns { to { transform: scale(1.1); } }

.sec-title { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; }
.sec-title h2 { margin: 0; font-size: 22px; font-weight: 900; flex: 1; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.catgrid .cat { aspect-ratio: 1; }
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.offer { border-radius: var(--r-lg); padding: 18px; color: #fff; background: linear-gradient(135deg, var(--c, var(--violet)), color-mix(in srgb, var(--c, var(--violet)) 55%, #0E1A36)); position: relative; overflow: hidden; }
.offer b { font-size: 22px; display: block; } .offer svg { position: absolute; inset-inline-end: -10px; bottom: -10px; width: 90px; height: 90px; opacity: .2; }

/* listing */
.listing { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.filters { position: sticky; top: 140px; }
.filters h4 { margin: 16px 0 8px; font-size: 14px; }
.filters label { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-weight: 600; cursor: pointer; }
.filters .scroll { max-height: 220px; overflow: auto; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.select, .input { padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.select:focus, .input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(90,171,223,.15); }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > span { font-weight: 800; font-size: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-btn { display: none; }
@media (max-width: 900px) {
  .listing { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; z-index: 90; max-height: 80vh; overflow: auto; border-radius: 24px 24px 0 0; transform: translateY(105%); transition: transform .35s var(--ease); }
  .filters.open { transform: none; }
  .filter-btn { display: inline-flex; }
}

/* product page */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.gallery .main { aspect-ratio: 1; background: linear-gradient(160deg, var(--ice), #fff); border-radius: var(--r-xl); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.gallery .main img { width: 84%; height: 84%; object-fit: contain; transition: transform .4s var(--ease); }
.gallery .main:hover img { transform: scale(1.12); }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery .thumbs button { width: 72px; height: 72px; border-radius: 14px; border: 2px solid var(--line); background: #fff; flex: none; }
.gallery .thumbs button.on { border-color: var(--sky); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.opt-group { margin: 14px 0; }
.opt-group b { display: block; margin-bottom: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chipbtn { padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; transition: all .2s; }
.chipbtn:hover { border-color: var(--sky); }
.chipbtn.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.chipbtn.off { opacity: .4; text-decoration: line-through; }
.bigprice { font-size: 32px; font-weight: 900; color: var(--navy); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 40px; height: 42px; display: grid; place-items: center; }
.qty input { width: 46px; text-align: center; border: 0; outline: 0; font-weight: 800; background: none; }
.stockline { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.stockline i { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.stockline.out i { background: var(--coral); }
.desc { white-space: pre-wrap; line-height: 1.9; }
.desc h4 { margin: 12px 0 4px; }
.chip-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--ice); color: var(--navy); font-weight: 700; font-size: 13px; margin: 3px; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }

/* cart drawer */
.scrim { position: fixed; inset: 0; background: rgba(14,26,54,.45); backdrop-filter: blur(3px); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100%); background: #fff; z-index: 81; display: flex; flex-direction: column; transform: translateX(var(--dx, 105%)); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg); }
html[dir="rtl"] .drawer { --dx: -105%; }
.drawer.open { transform: none; }
.drawer header { display: flex; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.drawer header h3 { margin: 0; flex: 1; }
.drawer .lines { flex: 1; overflow: auto; padding: 12px 18px; }
.cline { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); animation: fadeUp .3s var(--ease); }
.cline img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: var(--bg); }
.cline .n { font-weight: 800; font-size: 14px; line-height: 1.3; }
.cline .v { color: var(--muted); font-size: 12.5px; }
.cline .qty button { width: 32px; height: 32px; } .cline .qty input { width: 32px; }
.drawer footer { padding: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.sumrow { display: flex; justify-content: space-between; font-weight: 700; }
.sumrow.total { font-size: 20px; font-weight: 900; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty svg { width: 80px; height: 80px; color: var(--line); animation: floaty 3s ease-in-out infinite; }

/* checkout / account */
.co { display: grid; grid-template-columns: 1.3fr .9fr; gap: 22px; align-items: start; }
.co .summary { position: sticky; top: 140px; }
#map { height: 300px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-top: 10px; z-index: 0; }
.mapbox { border: 1.5px dashed var(--sky); border-radius: var(--r); padding: 14px; background: color-mix(in srgb, var(--sky) 6%, #fff); }
.addr { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; transition: all .2s; margin-bottom: 10px; }
.addr:hover { border-color: var(--sky); }
.addr.on { border-color: var(--navy); background: var(--ice); }
.addr input { margin-top: 5px; }
.coupon-ok { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--mint) 12%, #fff); color: #047857; font-weight: 800; animation: popIn .5s cubic-bezier(.34,1.56,.64,1); }
.err { color: var(--coral); font-weight: 700; font-size: 14px; }
@media (max-width: 900px) { .co { grid-template-columns: 1fr; } .co .summary { position: static; } }
.acc { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.acc nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.acc nav a.on, .acc nav a:hover { background: var(--ice); color: var(--navy); }
.profile-photo { position: relative; width: 110px; height: 110px; margin: 0 auto 12px; }
.profile-photo img, .profile-photo .ph { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow-lg); background: linear-gradient(135deg, var(--gold), #F97316); display: grid; place-items: center; color: #fff; font-size: 44px; font-weight: 900; }
.profile-photo label { position: absolute; bottom: 2px; inset-inline-end: 2px; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; border: 3px solid #fff; }
.profile-photo label svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .acc { grid-template-columns: 1fr; } }
.order { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; background: #fff; }
.status { display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: 12.5px; background: var(--ice); color: var(--navy); }
.status.pending { background: #FFF4E5; color: #B45309; } .status.delivered, .status.completed { background: #E7F8F1; color: #047857; } .status.cancelled { background: #FDECEC; color: #B91C1C; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; }
.track div { height: 6px; border-radius: 4px; background: var(--line); }
.track div.on { background: linear-gradient(90deg, var(--navy), var(--sky)); }
.auth { max-width: 440px; margin: 20px auto; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); padding: 4px; border-radius: 999px; margin-bottom: 18px; }
.tabs button { padding: 10px; border-radius: 999px; font-weight: 800; color: var(--muted); }
.tabs button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.success { text-align: center; padding: 40px 20px; }
.success .tick { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 16px; background: var(--mint); color: #fff; display: grid; place-items: center; animation: popIn .8s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 0 0 14px color-mix(in srgb, var(--mint) 18%, transparent); }
.success .tick svg { width: 56px; height: 56px; stroke-width: 3; }

/* mobile bottom nav */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .bottom-nav { position: fixed; bottom: 10px; inset-inline: 12px; z-index: 70; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); border-radius: 22px; padding: 6px; box-shadow: 0 16px 40px rgba(14,26,54,.35); }
  .bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: rgba(255,255,255,.6); font-size: 11px; font-weight: 800; border-radius: 16px; position: relative; }
  .bottom-nav a.on { color: #fff; background: linear-gradient(135deg, var(--navy), var(--sky)); }
  .bottom-nav .badge { top: 0; inset-inline-end: 22%; }
  main#view { padding-bottom: 110px; }
}
.foot-mini { text-align: center; color: var(--muted); padding: 30px 0 100px; font-size: 14px; }
.catgrid .cat { aspect-ratio: .95; }
.catgrid .cat img { inset: 8% 15% auto; width: 70%; height: 50%; }
.bnr .copy .bdg, .tagb { unicode-bidi: plaintext; }
.catgrid .cat b { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
