/* =========================================================
   RAYHANA — styles
   Black page with soft glowing lights · frosted-glass bar, cards & menus
   Fonts: Outfit (English / French) · Lalezar (Arabic) · logo: Matcha World
   ========================================================= */

/* The Matcha World font: drop MatchaWorld.woff2 / .otf / .ttf into the /fonts folder.
   Until then the name falls back to a script font (Pacifico). */
@font-face {
  font-family: "Matcha World";
  src: local("Matcha World"), local("MatchaWorld"),
       url("../fonts/MatchaWorld.woff2") format("woff2"),
       url("../fonts/MatchaWorld.otf") format("opentype"),
       url("../fonts/MatchaWorld.ttf") format("truetype");
  font-display: swap;
}

:root {
  --black: #000;

  /* glass (transparent) surfaces */
  --glass-bar: rgba(62, 62, 62, .62);        /* top bar */
  --glass-menu: rgba(66, 66, 66, .50);       /* all menus */
  --glass-card: rgba(255, 255, 255, .20);    /* product cards: lighter than the bar */
  --glass-card-hi: rgba(255, 255, 255, .28);
  --glass-in-menu: rgba(255, 255, 255, .09); /* cards / fields inside a menu */
  --glass-line: rgba(255, 255, 255, .16);

  --text: #f3f3f3;
  --muted: #bcbcbc;
  --pink: #e01b77;         /* used ONLY for the RAYHANA name */
  --btn: #e4e4e4;          /* buttons: light gray ... */
  --btn-hi: #ffffff;       /* ... to white (on hover) */
  --btn-ink: #1c1c1c;      /* text on the buttons */
  --ok: #22c55e;           /* the green Order buttons */
  --ok-hi: #4ade80;
  --ok-ink: #052e16;
  --green: #22c55e;        /* cart number */
  --red: #ef4444;

  --radius: 20px;
  --radius-lg: 28px;
  --bar-h: 96px;

  /* To change the fonts: edit these two lines (and the Google Fonts link in index.html). */
  --font-latin: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "Lalezar", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-ui: var(--font-latin);
}
html[lang="ar"] { --font-ui: var(--font-ar); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html {
  color-scheme: dark;
  overflow-x: hidden;               /* never allow a sideways scrollbar */
  font-synthesis: none;             /* these fonts have one weight: never fake a bold */
}
html.no-scroll { overflow: hidden; } /* page is locked while a menu is open */

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
html:not([lang="ar"]) body { letter-spacing: .01em; }   /* (never on Arabic: it would break the joined letters) */

/* ---------------- GLOWING LIGHTS behind everything ---------------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  will-change: transform;
  animation: drift 30s ease-in-out infinite alternate;
}
.o1 { width: 54vmax; height: 54vmax; left: -16vmax; top: -20vmax;
      background: radial-gradient(circle, rgba(255, 255, 255, .30), transparent 68%); }
.o2 { width: 48vmax; height: 48vmax; right: -18vmax; bottom: -16vmax;
      background: radial-gradient(circle, rgba(255, 255, 255, .17), transparent 68%);
      animation-duration: 38s; animation-delay: -9s; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vmax, 5vmax, 0) scale(1.12); }
  100% { transform: translate3d(-4vmax, 8vmax, 0) scale(.94); }
}

button, input, textarea { font: inherit; letter-spacing: inherit; }
button { color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------------- TOP BAR ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: calc(var(--bar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 18px 0;
  background: var(--glass-bar);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--glass-line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .5), 0 10px 50px rgba(255, 255, 255, .04);
}
/* a thin line of light along the bottom edge */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  opacity: .7; pointer-events: none;
}
.topbar .left  { justify-self: start; }
.topbar .right { justify-self: end; }

.brand {
  margin: 0;
  font-family: "Matcha World", "Pacifico", cursive;
  font-weight: 400;
  font-size: clamp(30px, 10vw, 54px);   /* 50% bigger than before (smaller only on tiny phones, so it still fits) */
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
  color: var(--pink);
  text-shadow: 0 0 14px rgba(224, 27, 119, .55), 0 0 34px rgba(224, 27, 119, .28);   /* the logo glows */
  text-align: center;
  user-select: none;
}

/* shows only the language you chose: ar / en / fr */
.lang-btn {
  min-width: 66px; height: 54px; padding: 0 20px;
  border-radius: 999px;
  background: var(--glass-card);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  color: var(--btn);
  font-size: 20px; font-weight: 500; letter-spacing: .05em;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, box-shadow .2s;
}
.lang-btn:hover { background: var(--glass-card-hi); color: #fff; box-shadow: 0 0 22px rgba(255, 255, 255, .15), inset 0 1px 0 rgba(255, 255, 255, .2); }

.cart-btn {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .2s, box-shadow .2s;
}
.cart-btn svg { width: 38px; height: 38px; }
.cart-btn:hover { background: var(--glass-card); box-shadow: 0 0 22px rgba(255, 255, 255, .14); }

/* green ping with the number on the checkout icon */
.cart-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 28px; height: 28px; padding: 0 7px;
  border-radius: 999px;
  background: var(--green);
  color: #04210f;
  display: grid; place-items: center;
  font: 600 16px/1 var(--font-ui);
  letter-spacing: 0;
  box-shadow: 0 0 14px rgba(34, 197, 94, .6);
}
.cart-badge .ping {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: var(--green);
  opacity: .75;
  animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
.cart-badge .count { position: relative; }
.cart-badge.bump { animation: bump .35s ease; }
@keyframes ping { 75%, 100% { transform: scale(1.8); opacity: 0; } }   /* stays inside the screen edge */
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------------- MAIN PAGE GRID ---------------- */
main { position: relative; z-index: 1; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* phone: two items across, then scroll */
  gap: 12px;
  padding: 14px 12px 28px;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 700px) {                             /* tablet / PC: as many as fit */
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
    padding: 24px 24px 40px;
  }
}

/* ---------------- PRODUCT CARD (glass) ---------------- */
.card {
  display: flex; flex-direction: column;
  background: var(--glass-card);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .14);
  padding: 10px 10px 12px;
  text-align: center;
  cursor: pointer;
  outline: none;
  transition: transform .18s ease, background .18s ease, box-shadow .25s ease;
}
.card:hover {
  background: var(--glass-card-hi);
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 0 34px rgba(255, 255, 255, .12),
              0 16px 36px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.card:focus-visible { box-shadow: 0 0 0 2px #fff; }
.card.static { cursor: default; }
.card.static:hover { background: var(--glass-card); transform: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .14); }

.card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  display: grid; place-items: center;
  overflow: hidden;
}
/* a soft spotlight behind the product */
.card-img::before {
  content: ""; position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}
.card-img img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .4));
  transition: opacity .2s, filter .2s;
}
.card-price { margin: 0 0 10px; font-size: 19px; font-weight: 600; color: #fff; }
.card-name {
  margin: 8px 0 2px;
  color: #d2d2d2;
  font-size: 15px; font-weight: 400; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-action { margin-top: auto; }

/* ---- the green Order button ---- */
.order-btn {
  width: 100%; height: 42px;
  border-radius: 999px;
  background: var(--ok); color: var(--ok-ink);
  font-size: 16px; font-weight: 600; letter-spacing: .03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 20px rgba(34, 197, 94, .35);
  transition: transform .12s ease, background .2s, box-shadow .2s;
}
.order-btn:hover { background: var(--ok-hi); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 28px rgba(34, 197, 94, .55); }
.order-btn:active { transform: scale(.97); }

/* sold-out product */
.card.soldout .card-img img { opacity: .35; filter: grayscale(1); }
.order-btn.is-sold,
.order-btn.is-sold:hover { background: rgba(255, 255, 255, .14); color: #a9a9a9; box-shadow: none; cursor: default; }
.order-btn.is-sold:active { transform: none; }
.stock-tag {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  pointer-events: none;
}
.stock-tag.stock-inline {
  position: static; transform: none;
  padding: 4px 12px; font-size: 14px;
}

.stepper {
  direction: ltr;                                       /* always  −  1  +  */
  display: flex; align-items: center; justify-content: space-between;
  height: 42px; padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(34, 197, 94, .45);
  box-shadow: 0 0 18px rgba(34, 197, 94, .18);
  animation: pop .2s ease;
}
.stepper button {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ok); color: var(--ok-ink);
  font-size: 22px; font-weight: 600; line-height: 1;
  display: grid; place-items: center;
  transition: transform .12s ease, background .2s;
}
.stepper button:hover { background: var(--ok-hi); }
.stepper button:active { transform: scale(.88); }
.stepper .qty { min-width: 30px; text-align: center; font-size: 18px; font-weight: 600; }
@keyframes pop { from { transform: scale(.92); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------------- OVERLAYS & MENUS (frosted glass) ---------------- */
/* The page behind stays visible (dimmed); each menu frosts it with its own blur. */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0);
  visibility: hidden; pointer-events: none;
  transition: background-color .3s ease, visibility 0s linear .3s;
}
.overlay.open {
  background: rgba(0, 0, 0, .52);
  visibility: visible; pointer-events: auto;
  transition: background-color .3s ease;
}
/* language menu fades out slowly (~0.7s) after you choose */
#langOverlay { transition: background-color .7s ease, visibility 0s linear .7s; }
#langOverlay.open { background: rgba(0, 0, 0, .62); transition: background-color .35s ease; }

.menu {
  position: relative;
  background:
    radial-gradient(130% 80% at 0% 0%, rgba(255, 255, 255, .17), transparent 55%),
    radial-gradient(100% 70% at 100% 100%, rgba(255, 255, 255, .07), transparent 60%),
    var(--glass-menu);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-lg);
  /* glowing edge */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04),
              0 0 44px rgba(255, 255, 255, .09),
              0 0 120px rgba(255, 255, 255, .05),
              0 30px 90px rgba(0, 0, 0, .7),
              inset 0 1px 0 rgba(255, 255, 255, .24),
              inset 0 0 50px rgba(255, 255, 255, .035);
  opacity: 0;
  transform: scale(.95) translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.overlay.open .menu { opacity: 1; transform: none; }
#langOverlay .menu { transition: opacity .7s ease, transform .7s ease; }
#langOverlay.open .menu { transition: opacity .35s ease, transform .35s ease; }
.menu.swap { animation: menuIn .25s ease; }
@keyframes menuIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* cards inside a menu are a little more see-through */
.menu .card { background: var(--glass-in-menu); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.menu .card.static:hover { background: var(--glass-in-menu); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }

/* --- language menu: a real square with rounded edges --- */
.menu-lang {
  width: min(86vw, 340px);
  aspect-ratio: 1 / 1;
  padding: 26px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.lang-option {
  height: 60px;
  border-radius: 18px;
  background: var(--btn);
  color: var(--btn-ink);
  font-size: 23px; font-weight: 500; letter-spacing: .03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 24px rgba(0, 0, 0, .3);
  transition: background .2s, transform .12s, box-shadow .2s;
}
.lang-option[lang="ar"] { font-family: var(--font-ar); font-weight: 600; letter-spacing: 0; }
.lang-option:hover, .lang-option:focus-visible { background: var(--btn-hi); box-shadow: 0 0 26px rgba(255, 255, 255, .35); }
.lang-option:active { transform: scale(.98); }

/* --- panel menus (product / checkout / details) --- */
.menu-panel {
  width: min(94vw, 560px);
  max-height: min(90vh, 700px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.menu-cart { min-height: min(62vh, 440px); }

.menu-head {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 62px; padding: 12px 62px;
  border-bottom: 1px solid var(--glass-line);
  flex: none;
}
.menu-title { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: .02em; }

.menu-body {
  flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 14px;
}
.menu-foot {
  flex: none;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--glass-line);
  background: rgba(0, 0, 0, .16);
}

/* red X */
.close-x {
  position: absolute; top: 11px; inset-inline-end: 11px; z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(18, 18, 18, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--red);
  display: grid; place-items: center;
  transition: background .2s, color .2s, transform .12s, box-shadow .2s;
}
.close-x:hover { background: var(--red); color: #fff; box-shadow: 0 0 20px rgba(239, 68, 68, .55); }
.close-x:active { transform: scale(.92); }

.primary-btn {
  width: 100%; height: 50px;
  border-radius: 14px;
  background: var(--btn); color: var(--btn-ink);
  font-size: 18px; font-weight: 600; letter-spacing: .04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: background .2s, transform .12s, opacity .2s, box-shadow .2s;
}
.primary-btn:not(:disabled):hover { background: var(--btn-hi); box-shadow: 0 0 24px rgba(255, 255, 255, .3); }
.primary-btn:not(:disabled):active { transform: scale(.98); }
.primary-btn:disabled { opacity: .35; cursor: not-allowed; }
/* the final "Order" button is green too */
.primary-btn.ok-btn { background: var(--ok); color: var(--ok-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 22px rgba(34, 197, 94, .35); }
.primary-btn.ok-btn:not(:disabled):hover { background: var(--ok-hi); box-shadow: 0 8px 30px rgba(34, 197, 94, .55); }

/* --- checkout --- */
.cart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.empty { margin: 0; padding: 46px 10px; text-align: center; color: var(--muted); font-size: 18px; }
main > .empty { position: relative; }

.totals { display: flex; justify-content: space-between; gap: 16px; }
.tot { display: flex; flex-direction: column; gap: 2px; }
.tot .lbl { font-size: 13px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
html[lang="ar"] .tot .lbl { text-transform: none; letter-spacing: 0; font-size: 15px; }
.tot strong { font-size: 24px; font-weight: 600; }
.tot:last-child { text-align: end; }
.tot:last-child strong { color: #fff; }
.totals + .primary-btn { margin-top: 12px; }

/* --- details form --- */
.form { display: flex; flex-direction: column; gap: 18px; padding: 18px 18px 8px; }
.field label { display: block; margin-bottom: 7px; font-size: 15px; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  background: var(--glass-in-menu);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--text);
  font: inherit; font-size: 17px;          /* 16px+ stops iOS from zooming in */
  resize: none;
}
.field input:focus, .field textarea:focus { outline: none; border-color: #d6d6d6; box-shadow: 0 0 18px rgba(255, 255, 255, .12); }
.field ::placeholder { color: #8f8f8f; }

.phone-field {
  display: flex; align-items: center;
  background: var(--glass-in-menu);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  overflow: hidden;
}
.phone-field:focus-within { border-color: #d6d6d6; box-shadow: 0 0 18px rgba(255, 255, 255, .12); }
.phone-field .wa { display: grid; place-items: center; padding: 0 6px 0 13px; color: #25d366; }
.phone-field .prefix { color: var(--muted); font-size: 17px; font-weight: 500; padding-right: 4px; }
.phone-field input { border: 0; background: transparent; border-radius: 0; padding-left: 6px; flex: 1; min-width: 0; box-shadow: none; }
.phone-field input:focus { border: 0; box-shadow: none; }

/* --- form checks / sending --- */
.err { margin: 7px 2px 0; color: #ff8f8f; font-size: 14px; line-height: 1.4; }
.err-box { margin: 0 0 12px; padding: 9px 12px; text-align: center; border-radius: 12px; background: rgba(239, 68, 68, .14); border: 1px solid rgba(239, 68, 68, .4); }
.field input.bad, .field textarea.bad, .phone-field.bad { border-color: var(--red); box-shadow: 0 0 16px rgba(239, 68, 68, .25); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* --- order received --- */
.menu-done { width: min(92vw, 440px); }
.done-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 26px 22px; }
.done-icon { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; color: var(--ok-ink); background: var(--ok); box-shadow: 0 0 40px rgba(34, 197, 94, .5); margin-bottom: 18px; }
.done-title { margin: 0 0 10px; font-size: 25px; font-weight: 600; }
.done-text { margin: 0 0 18px; color: #dcdcdc; font-size: 16.5px; line-height: 1.7; }
.done-ref { display: flex; flex-direction: column; gap: 2px; padding: 10px 22px; border-radius: 14px; background: var(--glass-in-menu); border: 1px solid var(--glass-line); color: var(--muted); font-size: 14px; }
.done-ref strong { color: #fff; font-size: 22px; font-weight: 600; letter-spacing: .08em; direction: ltr; }

/* --- product details --- */
.menu-product { width: min(94vw, 520px); }
.menu-product .menu-body { padding: 0; }

.gallery { position: relative; background: rgba(0, 0, 0, .25); }
.gallery::before {                                      /* soft spotlight behind the pictures */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, .20), transparent 62%);
}
.track {
  position: relative; z-index: 1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  padding: 22px;
}
.slide img { width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-drag: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }

.g-btn {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid; place-items: center;
  transition: background .2s, opacity .2s;
}
.g-btn:hover { background: rgba(0, 0, 0, .75); }
.g-btn:disabled { opacity: .25; cursor: default; }
.g-prev { left: 10px; }
.g-next { right: 10px; }

.dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .35); transition: width .2s, background .2s; }
.dot.on { width: 22px; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .6); }

.detail-info { padding: 18px 22px 22px; }
.detail-top { margin-bottom: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.detail-price { color: #fff; font-size: 26px; font-weight: 600; }
.detail-name { margin: 0 0 6px; font-size: 25px; font-weight: 600; line-height: 1.25; }
.detail-desc { margin: 0; color: #dedede; font-size: 16.5px; line-height: 1.7; white-space: pre-line; }

/* the Order button at the bottom of the details menu */
.detail-foot .order-btn { height: 52px; border-radius: 14px; font-size: 18px; }
.detail-foot .stepper { height: 52px; padding: 5px; border-radius: 14px; }
.detail-foot .stepper button { width: 42px; height: 42px; border-radius: 10px; font-size: 24px; }
.detail-foot .stepper .qty { font-size: 22px; }

/* ---------------- phones ---------------- */
@media (max-width: 480px) {
  .topbar { padding-left: 12px; padding-right: 14px; }
  .lang-btn { min-width: 54px; height: 46px; padding: 0 14px; font-size: 18px; }
  .cart-btn { width: 52px; height: 52px; }
  .cart-btn svg { width: 32px; height: 32px; }
  .cart-badge { min-width: 24px; height: 24px; font-size: 14px; padding: 0 6px; }
}
@media (max-width: 380px) {
  .card-price { font-size: 18px; }
  .card-name { font-size: 14px; }
}
@media (max-width: 340px) {                              /* very small phones */
  .topbar { padding-left: 8px; padding-right: 10px; }
  .lang-btn { min-width: 46px; padding: 0 10px; font-size: 17px; }
  .cart-btn { width: 46px; height: 46px; }
  .cart-btn svg { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cart-badge .ping { display: none; }
}
