/* سحاب shop — brand: Midnight #1E2A4A · Sky #4F8FD9 · Filament #FF6B3D · Sun #FFC24B · Mist #EEF3F9.
   Headings: Baloo Bhaijaan 2 · Text: Almarai (both self-hosted, from Google Fonts). */
@font-face { font-family: 'Baloo Bhaijaan 2'; font-weight: 400 800; font-display: swap; src: url(fonts/Baloo-ar.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Baloo Bhaijaan 2'; font-weight: 400 800; font-display: swap; src: url(fonts/Baloo-lat.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Almarai; font-weight: 400; font-display: swap; src: url(fonts/Almarai-400-ar.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: Almarai; font-weight: 400; font-display: swap; src: url(fonts/Almarai-400-lat.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Almarai; font-weight: 700; font-display: swap; src: url(fonts/Almarai-700-ar.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: Almarai; font-weight: 700; font-display: swap; src: url(fonts/Almarai-700-lat.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --midnight: #1E2A4A; --sky: #4F8FD9; --sky-light: #80B0E8; --filament: #FF6B3D; --sun: #FFC24B; --mist: #EEF3F9;
  --bg: var(--mist); --bg2: var(--mist); --surface: #FFFFFF; --surface2: #F4F7FB; --solid: #FFFFFF;
  --border: #DCE4EF; --text: var(--midnight); --muted: #5D6884; --accent: #2F6DB5; --accent-soft: rgba(79,143,217,.13);
  --on-accent: #fff; --ink: var(--midnight); --on-ink: #fff; --cta: var(--filament); --on-cta: var(--midnight);
  --green: #2E8A57; --red: #C8452B; --yellow: #A8740F; --blue: #2F6DB5;
  --mint: #DDEBFA; --sky-tint: #DDEBFA; --lavender: #E4E9F3; --peach: #FFE4DA;
  --stripe: rgba(255,255,255,.55); --hero: var(--midnight); --on-hero: #fff; --hero-sub: var(--sky-light);
  --shadow: 0 8px 24px rgba(30,42,74,.07);
  --s0:#A8740F; --s1:#2F6DB5; --s2:#2E8A57; --s3:#6A55B0; --s4:#C8452B; --s5:#1F8282; --s6:#B44C7A; --s7:#7C5E44;
  --radius: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1E2A4A; --bg2: #18223D; --surface: #27355A; --surface2: #2E3D66; --solid: #27355A;
    --border: rgba(238,243,249,.12); --text: #EEF3F9; --muted: #A9B7D3; --accent: #8DBAF0; --accent-soft: rgba(128,176,232,.16);
    --on-accent: #1E2A4A; --ink: #EEF3F9; --on-ink: #1E2A4A;
    --green: #7FD3A2; --red: #FF9A80; --yellow: #FFC24B; --blue: #8DBAF0;
    --mint: #2B3D68; --sky-tint: #2B3D68; --lavender: #2E3A5E; --peach: #4A3540;
    --hero: #18223D; --shadow: none;
    --s0:#FFC24B; --s1:#8DBAF0; --s2:#7FD3A2; --s3:#B9A8F0; --s4:#FF9A80; --s5:#7FD0CC; --s6:#F09CC0; --s7:#D6B08E;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1E2A4A; --bg2: #18223D; --surface: #27355A; --surface2: #2E3D66; --solid: #27355A;
  --border: rgba(238,243,249,.12); --text: #EEF3F9; --muted: #A9B7D3; --accent: #8DBAF0; --accent-soft: rgba(128,176,232,.16);
  --on-accent: #1E2A4A; --ink: #EEF3F9; --on-ink: #1E2A4A;
  --green: #7FD3A2; --red: #FF9A80; --yellow: #FFC24B; --blue: #8DBAF0;
  --mint: #2B3D68; --sky-tint: #2B3D68; --lavender: #2E3A5E; --peach: #4A3540;
  --hero: #18223D; --shadow: none;
  --s0:#FFC24B; --s1:#8DBAF0; --s2:#7FD3A2; --s3:#B9A8F0; --s4:#FF9A80; --s5:#7FD0CC; --s6:#F09CC0; --s7:#D6B08E;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font: 400 15px/1.6 Almarai, system-ui, sans-serif; overflow-x: hidden;
}
h1, h2, .brand, .display { font-family: 'Baloo Bhaijaan 2', Almarai, system-ui, sans-serif; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }


.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; max-width: 980px; margin: 0 auto;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; }
.brand img { border-radius: 10px; }
.top-actions { display: flex; gap: 8px; }
.icon-btn {
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); display: grid; place-items: center; cursor: pointer; font-size: 13px; font-weight: 600;
}
.icon-btn svg { width: 20px; height: 20px; }

main { max-width: 980px; margin: 0 auto; padding: 4px 16px 8px; outline: none; }
.site-footer { max-width: 980px; margin: 0 auto; padding: 18px 16px calc(110px + env(safe-area-inset-bottom)); }
.site-footer .hero { margin: 0; }
.site-footer:empty { display: none; }
.loading { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.view { animation: rise .28s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

h1 { font-weight: 800; font-size: clamp(30px, 8vw, 44px); line-height: 1.15; margin: 14px 0 6px; }
h2 { font-weight: 700; font-size: 21px; margin: 26px 0 10px; display: flex; align-items: center; gap: 10px; }
.kicker { color: var(--muted); font-size: 14px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.glass {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card { padding: 18px; margin-bottom: 14px; }

.search {
  display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 50px; margin: 16px 0 4px;
  border-radius: 999px;
}
.search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 15px; min-width: 0; }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: transparent; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { display: block; overflow: hidden; padding: 0; transition: transform .15s; }
.pcard:active { transform: scale(.98); }
.pcard .ph { aspect-ratio: 1; }
.pcard .meta { padding: 10px 12px 12px; }
.pcard .name { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.price { font-weight: 700; color: var(--text); font-family: 'Baloo Bhaijaan 2', Almarai, sans-serif; font-size: 17px; }
.pcard .price { margin-top: 4px; }

.ph { position: relative; background: var(--surface2); display: grid; place-items: center; overflow: hidden; }
/* Whole photo, never cropped (letterboxed on a soft background). */
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; } /* pinned to the frame, so it can't overflow and get cut */
.ph .emoji { font-size: 38px; opacity: .7; }
.badge {
  position: absolute; top: 8px; inset-inline-start: 8px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--midnight); font-size: 11px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(30,42,74,.12);
}

.featured { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.featured::-webkit-scrollbar { display: none; }
.featured .pcard { flex: 0 0 min(62vw, 240px); scroll-snap-align: start; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px;
  border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; font-size: 15px; transition: transform .12s, opacity .12s;
  background: var(--ink); color: var(--on-ink); width: 100%;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.cta { background: var(--cta); color: var(--on-cta); }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.danger { background: transparent; color: var(--red); border: 1px solid var(--border); }
.btn svg { width: 20px; height: 20px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }

.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 28px; scrollbar-width: none; aspect-ratio: 1.1; }
.gallery::-webkit-scrollbar { display: none; }
.gallery .ph { flex: 0 0 100%; scroll-snap-align: center; cursor: zoom-in; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--muted); opacity: .35; transition: all .25s; cursor: pointer; }
.dots button.on { width: 22px; opacity: 1; background: var(--accent); }
.dots button::after { content: ''; display: block; margin: -10px -4px; height: 28px; } /* bigger tap target */
/* Photo arrows (product gallery and full-screen viewer). */
.gwrap { position: relative; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer; z-index: 2;
  background: rgba(255,255,255,.88); color: var(--midnight); box-shadow: 0 4px 14px rgba(30,42,74,.18); }
.nav svg { width: 22px; height: 22px; }
.nav.prev { inset-inline-start: 10px; }
.nav.next { inset-inline-end: 10px; }
.nav.prev svg { transform: scaleX(-1); }
:root[dir="rtl"] .nav.prev svg { transform: none; }
:root[dir="rtl"] .nav.next svg { transform: scaleX(-1); }
.nav:disabled { opacity: 0; pointer-events: none; }
.viewer .nav { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
@media (hover: none) { .gwrap .nav { width: 36px; height: 36px; } }
.p-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 18px; }
.p-head h1 { margin: 0; font-size: 30px; }
.p-head .price { font-size: 24px; white-space: nowrap; }
.desc { white-space: pre-wrap; color: var(--muted); margin: 10px 0 0; }

.qty { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--border); padding: 4px; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.line { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.line + .line { border-top: 1px solid var(--border); }
.line .ph { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.line .ph .emoji { font-size: 26px; }
.line .name { font-weight: 600; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.kv.total { font-size: 18px; font-weight: 600; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--border); }
.seg button { height: 42px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin: 0 4px 6px; }
.input {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 18px; border: 1px solid var(--border);
  background: var(--surface2); outline: none; font-size: 16px;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { min-height: 110px; resize: vertical; }

.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs .ph { width: 84px; height: 84px; border-radius: 16px; }
.thumbs .x { position: absolute; top: 4px; inset-inline-end: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.add-photo { width: 84px; height: 84px; border-radius: 16px; border: 1.5px dashed var(--muted); display: grid; place-items: center; cursor: pointer; color: var(--muted); font-size: 28px; background: transparent; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.st-pending { background: color-mix(in srgb, var(--yellow) 15%, transparent); color: var(--yellow); }
.st-accepted, .st-confirmed { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.st-printing { background: color-mix(in srgb, var(--s3) 14%, transparent); color: var(--s3); }
.st-ready, .st-delivered { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.st-declined, .st-cancelled { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.steps { display: flex; gap: 4px; margin: 12px 0 4px; }
.steps i { flex: 1; height: 5px; border-radius: 9px; background: var(--accent-soft); }
.steps i.on { background: var(--accent); }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .big { font-size: 44px; margin-bottom: 8px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); }
.notice { padding: 12px 16px; border-radius: 18px; background: var(--accent-soft); color: var(--text); font-size: 14px; }
.notice.warn { background: color-mix(in srgb, var(--yellow) 14%, transparent); }
.gbtn { min-height: 44px; display: flex; justify-content: center; color-scheme: light; }
/* Google's button is a light-scheme iframe; without this a dark page paints a white box behind it. */
.gbtn iframe { color-scheme: light; background: transparent; }

.tabbar {
  position: fixed; z-index: 30; bottom: calc(10px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  width: min(560px, calc(100% - 28px)); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 34px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 12px 34px rgba(30,42,74,.16);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 5px; border-radius: 26px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; }
.tabbar a svg { width: 23px; height: 23px; }
.tabbar a.on { color: var(--on-ink); background: var(--ink); }
.tabbar .count { position: absolute; top: 2px; inset-inline-end: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sky); color: #fff; font-weight: 700; font-size: 11px; display: grid; place-items: center; }

#toast {
  position: fixed; z-index: 50; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 18px; background: var(--ink); color: var(--on-ink);
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

.viewer { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; flex-direction: column; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.viewer .strip { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer .strip::-webkit-scrollbar { display: none; }
.viewer .strip div { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; }
.viewer img { max-width: min(100%, 1000px); max-height: min(100%, 82vh); object-fit: contain; border-radius: 12px; }
.viewer .close { position: absolute; top: calc(12px + env(safe-area-inset-top)); inset-inline-start: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 22px; cursor: pointer; }
.viewer .counter { position: absolute; top: calc(20px + env(safe-area-inset-top)); inset-inline-end: 16px; color: #fff; padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,.16); font-size: 13px; }

bdi.money { unicode-bidi: isolate; direction: ltr; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- brand pieces ---- */
.brand { gap: 8px; font-weight: 800; font-size: 22px; line-height: 1; }
.brand img { border-radius: 0; height: 30px; width: auto; }
.only-dark { display: none; }
:root[data-dark="1"] .only-dark { display: block; }
:root[data-dark="1"] .only-light { display: none; }

/* Wordmark: سحاب in layers (stripes) with the orange tip on the alef. */
.wordmark {
  --line: 0.085em; --stripe-c: var(--stripe);
  display: inline-block; font: 800 1em/1.25 'Baloo Bhaijaan 2', sans-serif; color: transparent; padding-top: .05em;
  background:
    linear-gradient(to bottom, var(--filament) 0 var(--cap, .31em), transparent var(--cap, .31em)),
    repeating-linear-gradient(to bottom, var(--wm, #fff) 0 calc(var(--line) - max(1px, .012em)), var(--stripe-c) calc(var(--line) - max(1px, .012em)) var(--line));
  -webkit-background-clip: text; background-clip: text;
}
.wordmark.ink { --wm: var(--midnight); --stripe-c: rgba(238,243,249,.75); }
:root[data-dark="1"] .wordmark.ink { --wm: #fff; --stripe-c: rgba(30,42,74,.45); }
.tagline { letter-spacing: .32em; font-size: 12px; font-weight: 700; color: var(--hero-sub); text-transform: uppercase; }

.hero {
  position: relative; overflow: hidden; border-radius: 28px; background: var(--hero); color: var(--on-hero);
  padding: 66px 22px 70px; margin: 10px 0 6px; isolation: isolate;
}
.hero .logo-row { display: flex; align-items: center; justify-content: center; gap: 14px; direction: rtl; }
.hero .wordmark { font-size: clamp(64px, 19vw, 104px); }
.hero .logo-row img { width: clamp(70px, 20vw, 120px); height: auto; margin-top: .4em; }
.hero .tagline { text-align: center; margin-top: 2px; }
.hero .slogan { text-align: center; font: 700 clamp(20px, 5.5vw, 26px)/1.4 'Baloo Bhaijaan 2', sans-serif; margin: 18px 0 4px; }
.hero .slogan em { font-style: normal; color: var(--filament); }
.hero .sub { text-align: center; color: var(--hero-sub); margin: 0; font-size: 14px; }
.bars { position: absolute; z-index: -1; display: grid; gap: 7px; pointer-events: none; }
.bars i { display: block; height: 22px; border-radius: 99px; }
.bars { direction: ltr; }
.bars.tr { top: -6px; right: -40px; justify-items: end; }
.bars.bl { bottom: -6px; left: -40px; justify-items: start; }
.bars i.a { background: var(--sky-light); } .bars i.b { background: var(--sky); } .bars i.c { background: var(--filament); }
.bars.tr i:nth-child(1) { width: 38%; min-width: 120px; } .bars.tr i:nth-child(2) { width: 32%; min-width: 100px; } .bars.tr i:nth-child(3) { width: 26%; min-width: 80px; }
.bars.bl i:nth-child(1) { width: 30%; min-width: 100px; } .bars.bl i:nth-child(2) { width: 38%; min-width: 130px; } .bars.bl i:nth-child(3) { width: 26%; min-width: 90px; }
.hero .bars.tr { top: 0; } .hero .bars.bl { bottom: 0; }
.hero .bars i { height: 16px; }


.section-head { display: flex; align-items: baseline; justify-content: space-between; }

/* Photo-to-bust slideshow (home, right under the brand banner). */
.promo { margin: 14px 0 6px; }
.promo-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 24px;
  box-shadow: var(--shadow); background: #EDEAE4; aspect-ratio: 1280 / 543; }
.promo-strip::-webkit-scrollbar { display: none; }
.promo-slide { flex: 0 0 100%; scroll-snap-align: center; display: block; }
.promo-slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.promo .nav { width: 34px; height: 34px; }
.promo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.promo-foot .dots { margin: 0; padding-inline-start: 6px; }
.small-btn { width: auto; min-height: 40px; padding: 0 18px; font-size: 14px; }
.badge .star { color: #E5A21F; }

/* Custom print: four labelled photo slots (front required). */
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .slots { grid-template-columns: repeat(4, 1fr); } }
.slot { position: relative; aspect-ratio: 1; border-radius: 18px; border: 1.5px dashed var(--border); background: var(--surface2);
  display: grid; place-items: center; text-align: center; cursor: pointer; overflow: hidden; padding: 8px; color: var(--muted); font: inherit; }
.slot:hover { border-color: var(--muted); }
.slot.req { border-color: color-mix(in srgb, var(--text) 45%, transparent); }
.slot .lbl { font-weight: 700; color: var(--text); font-size: 14px; }
.slot .tag { display: inline-block; margin-top: 4px; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--surface); }
.slot.req .tag { background: var(--ink); color: var(--on-ink); }
.slot .plus { font-size: 26px; line-height: 1; margin-bottom: 6px; }
.slot.filled { border-style: solid; padding: 0; }
.slot.filled img { width: 100%; height: 100%; object-fit: cover; }
.slot.filled .cap { position: absolute; inset-inline: 0; bottom: 0; padding: 4px 6px; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.slot .x { position: absolute; top: 6px; inset-inline-end: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.slot.busy::after { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.rules { font-size: 12.5px; color: var(--muted); margin: 10px 4px 0; line-height: 1.6; }
.based { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.based .ph { width: 56px; height: 56px; border-radius: 14px; flex: none; }

/* Product size: W × D × H cm */
.size-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 4px; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; }
.size-row .dim small { font-weight: 400; color: var(--muted); margin-inline-end: 2px; }
.size-row .x { color: var(--muted); margin: 0 6px; font-weight: 400; }

/* Size picker on the product page */
.sizes-pick { display: grid; gap: 8px; margin-bottom: 14px; }
.size-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: start; }
.size-opt .lbl { font-weight: 700; }
.size-opt .pr { margin-inline-start: auto; font-weight: 700; }
.size-opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* Laptop/desktop: keep the product photo a comfortable size. */
@media (min-width: 700px) { .gallery { aspect-ratio: auto; height: min(62vh, 520px); } }
