/* =========================================================
   Hmodi Aamar — "the site is a phone"
   bordeaux & white
   ========================================================= */
:root {
  --bdx: #6B0F1A;
  --bdx-deep: #4A0912;
  --bdx-hi: #8C1C2B;
  --bdx-hover: #5A0C16;
  --blush: #F6DDE1;
  --white: #FFFFFF;
  --ink: #24090E;
  --muted: #6E5A5E;
  --surface: #F7EEF0;
  --line: #EADFE1;
  --focus: #D81B60;
  --ok: #1E7A46;
  --err: #B3261E;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --bar-h: 64px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 32px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --f-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", sans-serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-latin: "Rubik", system-ui, sans-serif;
}
html[lang="he"] {
  --f-display: "Rubik", "IBM Plex Sans Hebrew", sans-serif;
  --f-body: "IBM Plex Sans Hebrew", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body {
  margin: 0; font-family: var(--f-body); font-size: 1rem; line-height: 1.7;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.3; margin: 0; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
[dir="ltr"] { unicode-bidi: isolate; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--bdx); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.5em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--bdx); color: var(--white); }
.btn-primary:hover { background: var(--bdx-hover); }
.btn-ghost { background: transparent; color: var(--bdx); border-color: var(--bdx); }
.btn-ghost:hover { background: var(--surface); }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.link-btn { display: inline-flex; align-items: center; gap: .35em; background: none; border: 0; padding: 4px 0; color: var(--muted); cursor: pointer; font-size: .9rem; }
.link-btn:hover { color: var(--bdx); }

/* =========================================================
   Status bar + Dynamic island
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bdx); color: var(--white); }
.bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--bar-h); max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
}
.bar-nav { display: flex; gap: 26px; justify-self: start; }
.bar-nav a { text-decoration: none; color: rgba(255,255,255,.78); font-weight: 500; font-size: .95rem; padding: 4px 0; }
.bar-nav a:hover, .bar-nav a[aria-current="page"] { color: var(--white); }
.bar-nav a[aria-current="page"] { font-weight: 700; }
.bar-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.status-icons { display: flex; align-items: center; margin-inline-end: 8px; }
.status-icons svg { fill: var(--white); opacity: .85; }

.island {
  position: relative; display: grid; place-items: center;
  width: 210px; height: 40px; border-radius: 999px;
  background: var(--white); color: var(--bdx); text-decoration: none; overflow: hidden;
  box-shadow: 0 2px 10px rgba(30,0,6,.25);
  transition: width .5s var(--ease), height .5s var(--ease), border-radius .5s var(--ease);
}
.island-idle { display: flex; align-items: center; gap: 10px; transition: opacity .2s; }
.island-idle img:first-child { width: 22px; height: auto; }
.island-word { width: 118px; height: auto; }
.island-live {
  position: absolute; inset: 0; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px;
  padding-inline: 8px 18px; opacity: 0; transition: opacity .2s;
}
.island.live { width: 380px; height: 56px; border-radius: 28px; }
.island.live .island-idle { opacity: 0; }
.island.live .island-live { opacity: 1; transition-delay: .2s; }
.il-thumb { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.il-thumb .art { width: 34px; height: 34px; }
.il-text { display: grid; line-height: 1.25; min-width: 0; }
.il-text b { font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.il-text b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.il-text small { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.il-total { font-family: var(--f-latin); font-weight: 700; }

.lang-btn {
  background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 999px; padding: 3px 13px; cursor: pointer; font-weight: 600; font-size: .9rem;
}
.lang-btn:hover { border-color: var(--white); }
.lang-btn:lang(he) { font-family: "IBM Plex Sans Hebrew", sans-serif; }
.lang-btn:lang(ar) { font-family: "IBM Plex Sans Arabic", sans-serif; }
.cart-btn, .menu-btn {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--white); background: none; border: 0; border-radius: 50%; cursor: pointer;
}
.cart-btn:hover, .menu-btn:hover { background: rgba(255,255,255,.1); }
.cart-btn .ic, .menu-btn .ic { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: 2px; inset-inline-end: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--white); color: var(--bdx);
  font: 700 .75rem/20px var(--f-latin); text-align: center;
}
.menu-btn { display: none; }

@media (max-width: 960px) {
  .status-icons { display: none; }
  .bar-nav { gap: 18px; }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .bar-nav {
    position: absolute; top: 100%; inset-inline: 0; flex-direction: column; gap: 0;
    padding: 6px var(--gutter) 18px; background: var(--bdx); border-top: 1px solid rgba(255,255,255,.12); display: none;
  }
  .bar-nav.open { display: flex; }
  .bar-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.1rem; }
  .island { width: 168px; }
  .island-word { width: 96px; }
  .island.live { width: min(340px, calc(100vw - 32px)); position: absolute; left: 50%; top: 4px; transform: translateX(-50%); z-index: 2; }
}
@media (max-width: 400px) {
  .island { width: 140px; }
  .island-word { width: 78px; }
  .lang-btn { padding: 3px 9px; }
}

/* =========================================================
   Banner (home hero)
   ========================================================= */
.banner { position: relative; background: #5E0D18; line-height: 0; }
.banner picture, .banner-img { display: block; width: 100%; height: auto; }
.banner-cta {
  position: absolute; left: 72.1%; top: 79.5%; transform: translateX(-50%);
  display: flex; gap: 12px; line-height: 1.7; white-space: nowrap;
}
.banner-cta .btn { min-height: clamp(44px, 3.4vw, 56px); padding-inline: clamp(18px, 1.6vw, 30px); font-size: clamp(.92rem, 1vw, 1.08rem); }
.btn-light { background: var(--white); color: var(--bdx); box-shadow: 0 10px 24px -8px rgba(20,0,4,.5); }
.btn-light:hover { background: var(--blush); }
.btn-outline-light { color: var(--white); border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.14); }
@media (max-width: 1100px) and (min-width: 701px) {
  .banner-cta { position: static; transform: none; justify-content: center; padding: 18px var(--gutter) 26px; background: #5A0C17; }
}
@media (max-width: 700px) {
  .banner-cta { left: var(--gutter); right: var(--gutter); top: auto; bottom: 3.5%; transform: none; }
  .banner-cta .btn { flex: 1; padding-inline: 10px; }
}

/* notifications (on the home screen) */
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 860px; margin: 0 auto 52px; }
.note {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start;
  padding: 12px 14px; border-radius: 22px; text-decoration: none; color: var(--white);
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  transition: background-color .15s;
}
.note:hover { background: rgba(255,255,255,.2); }
.note-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--white); display: grid; place-items: center; }
.note-body { display: grid; line-height: 1.45; min-width: 0; }
.note-head { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: rgba(255,255,255,.7); }
.note-app { font-family: var(--f-latin); font-weight: 500; }
.note-title { font-weight: 700; font-size: .98rem; }
.note-title, .note-text { unicode-bidi: plaintext; }
.note-text { font-size: .9rem; color: rgba(255,255,255,.88); }
.notes li { animation: none; }
@media (max-width: 700px) { .notes { grid-template-columns: 1fr; margin-bottom: 40px; } }

/* =========================================================
   Home screen (categories as apps) + dock
   ========================================================= */
.springboard { background: var(--bdx-deep); color: var(--white); padding-block: 48px 48px; }
.apps {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px 12px;
  max-width: 720px; margin-inline: auto;
}
.app { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: inherit; }
.app-icon {
  position: relative; width: 68px; height: 68px; border-radius: 19px; display: grid; place-items: center;
  background: var(--white); color: var(--bdx);
  box-shadow: 0 6px 16px rgba(20,0,4,.25);
  transition: transform .15s var(--ease);
}
.app-icon .ic { width: 32px; height: 32px; stroke-width: 1.6; }
.app:hover .app-icon { transform: translateY(-2px); }
.app:active .app-icon { transform: scale(.92); }
.app-label { font-size: .84rem; line-height: 1.3; text-align: center; color: rgba(255,255,255,.92); }
.dock {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 420px; margin: 44px auto 0; padding: 14px 16px 10px; border-radius: 34px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.dock .app-icon { width: 60px; height: 60px; border-radius: 17px; }
.dock .app-icon .ic { width: 28px; height: 28px; }
.dock .app-label { font-size: .78rem; }
.dock .cart-count { top: -6px; inset-inline-end: -6px; background: var(--bdx); color: var(--white); box-shadow: 0 0 0 2px var(--white); }
@media (max-width: 640px) {
  .apps { grid-template-columns: repeat(4, 1fr); gap: 22px 6px; }
  .app-icon { width: 60px; height: 60px; border-radius: 17px; }
  .app-icon .ic { width: 28px; height: 28px; }
  .dock { gap: 6px; padding-inline: 10px; }
  .dock .app-icon { width: 54px; height: 54px; border-radius: 15px; }
}

/* =========================================================
   Sections, product cards, widgets
   ========================================================= */
.section { padding-block: clamp(56px, 8vw, 104px); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.sec-title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.sec-link { color: var(--bdx); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 36px 22px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr 1fr; gap: 28px 14px; } }

.card { display: block; text-decoration: none; color: inherit; }
.card-well {
  position: relative; aspect-ratio: 1; border-radius: var(--r-lg);
  background: var(--surface); display: grid; place-items: center; overflow: hidden;
}
.card-well .art { width: 74%; height: 74%; object-fit: contain; transition: transform .4s var(--ease); }
.art.photo { object-fit: contain; filter: drop-shadow(0 18px 22px rgba(74, 9, 18, .16)); }
.card-well .art.photo { width: 86%; height: 86%; }
.pd-visual .art.photo { width: 84%; height: 84%; }
.ci-visual .art.photo, .il-thumb .art.photo { width: 92%; height: 92%; filter: none; }
.card:hover .card-well .art.photo { transform: translateY(-6px) scale(1.02); }
.card-big .card-well .art.photo { filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); }
.pd-visual { overflow: hidden; }
.card:hover .card-well .art { transform: translateY(-5px) rotate(-1.5deg); }
.badge {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1;
  background: var(--bdx); color: var(--white); font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px;
}
.badge-quiet { background: var(--white); color: var(--bdx); }
.card-body { padding-top: 14px; display: grid; gap: 2px; }
.card-brand { font-family: var(--f-latin); font-size: .85rem; color: var(--muted); }
.card-name { font-family: var(--f-latin); font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
.card-desc { color: var(--muted); font-size: .95rem; max-width: 40ch; margin-top: 4px; }
.card-price { margin-top: 4px; font-size: 1.02rem; }
.card-price strong { color: var(--bdx); font-family: var(--f-latin); font-weight: 700; }
.card-price s, .pd-price s { color: var(--muted); font-size: .9em; margin-inline-start: 6px; font-family: var(--f-latin); }
.from { color: var(--muted); font-size: .88rem; }
.card-colors { display: flex; gap: 5px; margin-top: 8px; }
.card-colors i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

/* widgets: the first featured item is a large bordeaux widget */
.widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 22px; }
.card-big {
  grid-column: span 2; grid-row: span 2; display: grid; grid-template-rows: 1fr auto;
  background: var(--bdx); color: var(--white); border-radius: var(--r-xl); padding: 28px; overflow: hidden;
}
.card-big .card-well { background: radial-gradient(closest-side, rgba(255,255,255,.16), transparent); aspect-ratio: auto; min-height: 300px; }
.card-big .card-well .art { width: 72%; height: 100%; max-height: 380px; }
.card-big .card-brand, .card-big .card-desc, .card-big .from, .card-big s { color: rgba(255,255,255,.75) !important; }
.card-big .card-name { font-size: 1.6rem; }
.card-big .card-price strong { color: var(--white); font-size: 1.3rem; }
.card-big .badge { background: var(--white); color: var(--bdx); }
@media (max-width: 960px) { .widgets { grid-template-columns: repeat(3, 1fr); } .card-big { grid-row: span 1; } }
@media (max-width: 640px) { .widgets { grid-template-columns: 1fr 1fr; gap: 28px 14px; } .card-big { grid-column: 1 / -1; padding: 20px; } .card-big .card-well { min-height: 220px; } }

/* =========================================================
   Chat FAQ
   ========================================================= */
.chat-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.chat-intro p { margin-top: 14px; color: var(--muted); max-width: 44ch; font-size: 1.05rem; }
.chat {
  width: 100%; max-width: 460px; justify-self: center; border-radius: var(--r-xl); overflow: hidden;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(74,9,18,.35);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--bdx); display: grid; place-items: center; flex: none; }
.avatar img { width: 20px; height: auto; }
.chat-head b { font-family: var(--f-latin); display: block; line-height: 1.3; }
.chat-head small { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chat-log { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; }
.bubble { max-width: 80%; padding: 9px 14px; border-radius: 20px; line-height: 1.55; font-size: .97rem; }
.bubble.out { align-self: flex-end; background: var(--bdx); color: var(--white); border-end-end-radius: 6px; margin-top: 10px; }
.bubble.in { align-self: flex-start; background: var(--surface); border-end-start-radius: 6px; }
.chat-log li:first-child { margin-top: 0; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; height: 46px; padding-inline: 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); }
.chat-form input:focus { outline: none; border-color: var(--bdx); }
.chat-form button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--bdx); color: var(--white); display: grid; place-items: center; cursor: pointer; flex: none; }
.chat-form button .ic { transform: scaleX(-1); }
.chat-form button:hover { background: var(--bdx-hover); }
@media (max-width: 860px) { .chat-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Contact card
   ========================================================= */
.contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.cc { background: var(--white); border-radius: var(--r-xl); padding: 32px 24px 12px; text-align: center; }
.cc-avatar { width: 96px; height: 96px; margin: 0 auto 14px; }
.cc-avatar img { width: 44px; }
.cc h2 { font-family: var(--f-latin); font-size: 1.6rem; }
.cc-kind { color: var(--muted); margin-top: 2px; }
.cc-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 14px; }
.cc-actions a {
  display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px;
  background: var(--surface); color: var(--bdx); text-decoration: none; font-size: .85rem; font-weight: 600;
}
.cc-actions a:hover { background: var(--blush); }
.cc-actions .ic { width: 24px; height: 24px; }
.cc-rows { text-align: start; }
.cc-rows > div { padding: 14px 4px; border-top: 1px solid var(--line); }
.cc-rows dt { font-size: .85rem; color: var(--muted); }
.cc-rows dd { margin: 2px 0 0; }
.cc-rows a { color: var(--bdx); text-decoration: none; font-weight: 500; }
.cc-rows a:hover { text-decoration: underline; }
.hours li, .footer-hours li { display: flex; justify-content: space-between; gap: 16px; }
.closed { color: var(--err); font-weight: 600; }
.site-footer .closed { color: #F6A8B3; }
.map { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--r-xl); background: var(--line); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .map { min-height: 300px; } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--bdx-deep); color: rgba(255,255,255,.82); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 40px; padding-block: 64px 36px; }
.footer-brand img { width: 104px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; font-size: .95rem; }
.site-footer h2 { font-family: var(--f-body); font-size: .95rem; font-weight: 600; color: var(--white); margin-bottom: 14px; }
.footer-links { display: grid; gap: 8px; }
.footer-links.cols { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.footer-links li { display: flex; gap: 10px; align-items: center; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-hours { margin-top: 18px; font-size: .92rem; max-width: 280px; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); }
.social a:hover { border-color: var(--white); color: var(--white); }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px 8px; font-size: .86rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.footer-base a { text-decoration: none; opacity: .75; }
.footer-base a:hover { opacity: 1; text-decoration: underline; }

.home-indicator { width: 134px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.6); margin: 10px auto 10px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Inner pages — large title header
   ========================================================= */
.page-head { background: var(--bdx); color: var(--white); }
.page-head .wrap { padding-block: 28px 32px; }
.page-head h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.page-head p { margin-top: 8px; color: rgba(255,255,255,.84); max-width: 60ch; }
.page-head .search { margin-top: 18px; max-width: 560px; }

/* search (glass on bordeaux) */
.search { position: relative; display: block; }
.search .ic { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.75); }
.search input {
  width: 100%; height: 48px; padding-inline: 44px 14px; border: 0; border-radius: 14px;
  background: rgba(255,255,255,.14); color: var(--white);
}
.search input::placeholder { color: rgba(255,255,255,.7); }
.search input:focus { outline: none; background: rgba(255,255,255,.22); box-shadow: 0 0 0 2px rgba(255,255,255,.6); }

/* ---------- Shop ---------- */
.cat-strip { border-bottom: 1px solid var(--line); }
.cat-apps { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; padding-block: 22px 18px; }
.cat-apps::-webkit-scrollbar { display: none; }
.cat-app { flex: none; display: grid; justify-items: center; gap: 6px; width: 76px; background: none; border: 0; padding: 0; cursor: pointer; }
.cat-app .app-icon { width: 58px; height: 58px; border-radius: 16px; background: var(--surface); color: var(--bdx); box-shadow: none; }
.cat-app .app-icon .ic { width: 26px; height: 26px; }
.cat-app .app-label { color: var(--muted); font-size: .8rem; }
.cat-app:hover .app-icon { background: var(--blush); }
.cat-app[aria-pressed="true"] .app-icon { background: var(--bdx); color: var(--white); box-shadow: 0 6px 14px rgba(107,15,26,.3); }
.cat-app[aria-pressed="true"] .app-label { color: var(--ink); font-weight: 600; }
.shop-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block: 22px 8px; }
#brand-seg { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.seg-label { color: var(--muted); font-size: .9rem; flex: none; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: none; cursor: pointer; font-weight: 500; font-size: .92rem; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(36,9,14,.14); }
.select-wrap { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
select {
  height: 44px; padding-inline: 14px 36px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B0F1A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 12px center / 16px;
  appearance: none; color: var(--ink);
}
.shop-count { color: var(--muted); font-size: .92rem; margin: 10px 0 24px; }
.empty { text-align: center; padding: 64px 16px; display: grid; justify-items: center; gap: 18px; color: var(--muted); }

/* ---------- Product page ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .92rem; padding-block: 24px; }
.crumbs .ic { width: 16px; height: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--bdx); text-decoration: underline; }
.pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.pd-visual {
  position: sticky; top: calc(var(--bar-h) + 24px); aspect-ratio: 1; border-radius: var(--r-xl);
  background: radial-gradient(closest-side, var(--white), var(--surface)); display: grid; place-items: center;
}
.pd-visual .art { width: 76%; height: 76%; object-fit: contain; }
.pd-name { font-family: var(--f-latin); font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.15; margin-top: 4px; }
.pd-desc { margin-top: 12px; color: var(--muted); max-width: 52ch; }
.pd-price { margin-top: 18px; font-size: 1.8rem; }
.pd-price strong { color: var(--bdx); font-family: var(--f-latin); }
.save { display: inline-block; font-size: .85rem; background: var(--surface); color: var(--bdx); padding: 2px 10px; border-radius: 999px; vertical-align: middle; font-weight: 600; }
.opt { border: 0; padding: 0; margin: 26px 0 0; }
.opt legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.opt legend span { font-weight: 400; color: var(--muted); }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; }
.swatch > span:first-of-type { display: block; width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 0 0 3px var(--white), 0 0 0 4.5px transparent; transition: box-shadow .15s; }
.swatch input:checked + span { box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 0 0 3px var(--white), 0 0 0 5px var(--bdx); }
.swatch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 6px; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; }
.pill > span { display: grid; min-width: 104px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); text-align: center; line-height: 1.4; }
.pill b { font-family: var(--f-latin); }
.pill small { color: var(--muted); font-size: .85rem; }
.pill:hover > span { border-color: var(--bdx); }
.pill input:checked + span { border-color: var(--bdx); box-shadow: inset 0 0 0 1px var(--bdx); background: var(--surface); }
.pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.buy-row { display: flex; gap: 12px; margin: 30px 0 12px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 44px; height: 49px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--bdx); border-radius: 999px; }
.qty button:hover { background: var(--surface); }
.qty output { min-width: 26px; text-align: center; font-weight: 600; font-family: var(--f-latin); }
.qty-sm button { width: 36px; height: 36px; }
.perks { display: grid; gap: 12px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.perks li { display: flex; gap: 12px; align-items: center; }
.perks .ic { color: var(--bdx); }
.pd-h { font-size: 1.15rem; margin-top: 36px; }
.specs { margin: 14px 0 0; display: grid; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.related { padding-block: 80px 24px; }
.related .sec-title { margin-bottom: 28px; }
@media (max-width: 860px) {
  .pd { grid-template-columns: 1fr; }
  .pd-visual { position: relative; top: 0; max-width: 520px; width: 100%; margin-inline: auto; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--white);
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bdx); outline: none; box-shadow: 0 0 0 3px rgba(107,15,26,.15); }
.field [aria-invalid="true"] { border-color: var(--err); }
.err { color: var(--err); font-size: .88rem; }
.err:empty { display: none; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; }
.choices legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.choice span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; box-sizing: border-box; }
.choice input:checked + span { border-color: var(--bdx); background: var(--surface); }
.choice input:checked + span::before { border: 5.5px solid var(--bdx); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-note { color: var(--muted); font-size: .9rem; }

/* ---------- Cart (wallet pass) ---------- */
.cart-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: 40px 24px; }
.ci { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ci:first-child { padding-top: 0; }
.ci-visual { display: grid; place-items: center; aspect-ratio: 1; border-radius: 22px; background: var(--surface); }
.ci-visual .art { width: 76%; height: 76%; object-fit: contain; }
.ci-info { display: grid; gap: 4px; }
.ci-name { font-weight: 600; text-decoration: none; font-family: var(--f-latin); }
.ci-name:hover { color: var(--bdx); }
.ci-meta { color: var(--muted); font-size: .92rem; }
.ci-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.ci-price { color: var(--bdx); white-space: nowrap; font-family: var(--f-latin); }
.pass {
  position: relative; margin-top: 28px; padding: 22px 24px; border-radius: 22px; color: var(--white);
  background: linear-gradient(150deg, var(--bdx-hi), var(--bdx) 45%, var(--bdx-deep));
  box-shadow: 0 24px 40px -24px rgba(74,9,18,.6);
}
.pass-top { display: flex; align-items: center; gap: 10px; font-family: var(--f-latin); font-weight: 600; }
.pass-count { margin-inline-start: auto; font-family: var(--f-body); font-weight: 400; font-size: .9rem; color: rgba(255,255,255,.75); }
.pass-total { display: grid; margin-top: 26px; padding-bottom: 18px; border-bottom: 2px dashed rgba(255,255,255,.3); }
.pass-total span { font-size: .9rem; color: rgba(255,255,255,.75); }
.pass-total strong { font-family: var(--f-latin); font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.02em; }
.pass-rows { margin: 14px 0 0; display: grid; gap: 6px; }
.pass-rows div { display: flex; justify-content: space-between; }
.pass-rows dt { color: rgba(255,255,255,.75); }
.pass-rows dd { margin: 0; font-weight: 600; }
.pass-hint { margin-top: 12px; font-size: .9rem; background: rgba(255,255,255,.14); padding: 6px 12px; border-radius: 10px; }
.checkout { background: var(--surface); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 32px); }
.checkout h2 { font-size: 1.3rem; }
.success { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 80px 16px; }
.success:focus { outline: none; }
.success-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--surface); color: var(--ok); display: grid; place-items: center; }
.success-mark .ic { width: 36px; height: 36px; }
.success h2 { font-size: 1.8rem; }
.success p { color: var(--muted); max-width: 46ch; }
@media (max-width: 860px) { .cart-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ci { grid-template-columns: 72px 1fr; } .ci-price { grid-column: 2; } }

/* ---------- Repair (settings style) ---------- */
.settings { background: var(--surface); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.group-title { font-family: var(--f-body); font-weight: 600; font-size: .9rem; color: var(--muted); margin: 0 16px 8px; }
.group { background: var(--white); border-radius: 18px; overflow: hidden; }
.row { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 14px; padding: 13px 16px; }
.row + .row { border-top: 1px solid var(--line); }
.row-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--bdx); color: var(--white); display: grid; place-items: center; }
.row-icon .ic { width: 19px; height: 19px; }
.row-value { color: var(--bdx); font-weight: 600; }
.group-note { color: var(--muted); font-size: .88rem; margin: 8px 16px 0; }
.form-card { background: var(--white); border-radius: 18px; padding: clamp(18px, 3vw, 28px); }
@media (max-width: 860px) { .settings-grid { grid-template-columns: 1fr; } }
.settings-single { max-width: 680px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ---------- Services & logo walls ---------- */
.sec-sub { color: var(--muted); margin-top: 6px; max-width: 56ch; }
.logo-strip { background: var(--surface); }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.logo-tile {
  height: 78px; border-radius: 16px; background: var(--white); display: grid; place-items: center; padding: 14px 16px;
  border: 1px solid var(--line);
}
.logo-tile img { height: 44px; width: auto; max-width: 100%; object-fit: contain; }
.logo-text { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-latin); font-weight: 700; font-size: 1rem; color: var(--ink); text-align: center; line-height: 1.2; }
.logo-text .ic { color: var(--bdx); width: 22px; height: 22px; }
.svc-jump { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-bottom: 26px; }
.svc-jump::-webkit-scrollbar { display: none; }
.svc-jump a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; border: 1px solid var(--line); }
.svc-jump a .ic { color: var(--bdx); width: 18px; height: 18px; }
.svc-jump a:hover { border-color: var(--bdx); }
.svc-groups { display: grid; gap: 18px; }
.svc-group { background: var(--white); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 32px); scroll-margin-top: calc(var(--bar-h) + 16px); }
.svc-group-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-bottom: 8px; }
.svc-group-head .row-icon { width: 52px; height: 52px; border-radius: 15px; }
.svc-group-head .row-icon .ic { width: 26px; height: 26px; }
.svc-group-head h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.svc-group-head p { color: var(--muted); }
.svc-ask { min-height: 44px; font-size: .92rem; }
.svc-set { margin-top: 22px; }
.svc-set h3 { font-size: 1rem; margin-bottom: 4px; }
.svc-set p { color: var(--muted); font-size: .93rem; margin-bottom: 12px; max-width: 70ch; }
.svc-set h3 + .logo-wall, .svc-set > .logo-wall:first-child { margin-top: 10px; }
.svc-group .logo-tile { background: var(--white); border-color: var(--line); }
#repair { scroll-margin-top: calc(var(--bar-h) + 16px); }
@media (max-width: 700px) {
  .svc-group-head { grid-template-columns: auto 1fr; }
  .svc-ask { grid-column: 1 / -1; width: 100%; }
  .logo-wall { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .logo-tile { height: 68px; }
}

/* stock & order feedback */
.badge-out { background: var(--ink); color: var(--white); }
.low-stock { margin-top: 14px; color: var(--err); font-weight: 600; font-size: .92rem; }
.form-error { background: #FDECEC; color: var(--err); border-radius: 12px; padding: 10px 14px; font-weight: 500; }
.order-no { font-size: 1.1rem; color: var(--ink) !important; }
.order-no b { color: var(--bdx); }

/* order confirmation */
.success.success-rich { text-align: start; justify-items: stretch; padding: 40px 0 0; gap: 22px; }
.ok-head { display: grid; justify-items: center; gap: 8px; text-align: center; }
.ok-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
.ok-card { background: var(--surface); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 26px); }
.ok-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.ok-items { display: grid; gap: 10px; }
.ok-items li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.ok-items li:not(:has(img)) { grid-template-columns: 1fr auto; }
.ok-items img { width: 56px; height: 56px; object-fit: contain; background: var(--white); border-radius: 12px; }
.ok-items span { display: grid; line-height: 1.4; }
.ok-items b { font-family: var(--f-latin); font-weight: 600; }
.ok-items small { color: var(--muted); }
.ok-items strong { font-family: var(--f-latin); color: var(--bdx); }
.ok-tot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.ok-tot div { display: flex; justify-content: space-between; gap: 12px; }
.ok-tot dt { color: var(--muted); }
.ok-tot dd { margin: 0; font-weight: 600; }
.ok-tot .total { font-size: 1.2rem; }
.ok-tot .total dd { color: var(--bdx); font-weight: 800; font-family: var(--f-latin); }
.ok-steps { counter-reset: s; display: grid; gap: 12px; margin-bottom: 18px; }
.ok-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; }
.ok-steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--bdx); color: var(--white); display: grid; place-items: center; font: 700 .9rem var(--f-latin); }
.ok-steps p { color: var(--ink); }
.ok-actions { display: grid; gap: 10px; }
.ok-continue { justify-self: center; margin-top: 4px; }
@media (max-width: 860px) { .ok-grid { grid-template-columns: 1fr; } }

/* order tracking */
.track-result { margin-top: 18px; display: grid; gap: 18px; }
.tr-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.tr-head h2 { font-size: 1.3rem; }
.tr-head .muted { color: var(--muted); font-size: .9rem; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: none; }
.timeline li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .9rem; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: 15px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--bdx); }
.timeline .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 3px solid var(--line); display: grid; place-items: center; color: var(--white); }
.timeline .dot .ic { width: 16px; height: 16px; }
.timeline li.done .dot, .timeline li.now .dot { background: var(--bdx); border-color: var(--bdx); }
.timeline li.now { color: var(--ink); }
.timeline li.now b { color: var(--bdx); }
.timeline b { font-weight: 600; }
.tr-note { background: #E8F7EE; color: #12733D; padding: 10px 14px; border-radius: 12px; font-weight: 600; }
