/* ==========================================================================
   KHAAM / خام — storefront styles
   Uses CSS logical properties so RTL (Arabic) and LTR (English) both work.
   ========================================================================== */

:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --ink: #1C1B19;
  --muted: #6B6660;
  --line: #E8E3DC;
  --accent: #B5562B;
  --accent-dark: #974521;
  --accent-ink: #fff;
  --sale: #C0392B;
  --ok: #2E7D4F;
  --soft: #F2EEE8;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(28, 27, 25, .05), 0 2px 8px rgba(28, 27, 25, .04);
  --shadow: 0 6px 24px rgba(28, 27, 25, .08);
  --shadow-lg: 0 20px 50px rgba(28, 27, 25, .16);
  --container: 1240px;
  --gutter: 16px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.3; margin: 0; font-weight: 600; }
p { margin: 0; }
s { text-decoration-thickness: 1px; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.ok { color: var(--ok); font-weight: 600; }
.site-main { flex: 1; }

/* Direction-aware icons (arrows) flip in RTL */
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.4rem; border-radius: 999px;
  border: 1.5px solid transparent; font-weight: 600; font-size: .98rem; line-height: 1.2;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease),
              transform .15s var(--ease), box-shadow .2s var(--ease);
  text-align: center; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding-inline: 1.8rem; font-size: 1.02rem; }
.btn-sm { min-height: 38px; padding: .45rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #33312d; box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 8px 24px rgba(181, 86, 43, .28); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn[disabled], .btn-disabled { background: var(--soft); color: var(--muted); border-color: var(--line); cursor: not-allowed; box-shadow: none; }
.btn.is-loading { opacity: .7; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink); position: relative;
  transition: background-color .2s var(--ease);
}
.icon-btn:hover { background: var(--soft); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--sale); }
.link-arrow { font-weight: 500; font-size: .95rem; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color .2s; }
.link-arrow:hover { color: var(--accent); }

/* ------------------------------------------------------------ announcement + header */
.announcement { background: var(--ink); color: #F2EEE8; text-align: center; font-size: .85rem; padding: .5rem var(--gutter); letter-spacing: .01em; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 248, 245, .9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: .75rem; height: var(--header-h); }
.logo { font-weight: 700; font-size: 1.55rem; letter-spacing: -.01em; display: inline-flex; align-items: center; }
.logo img { max-height: 40px; width: auto; }
.main-nav { display: none; gap: .25rem; margin-inline-start: 1.5rem; }
.main-nav a {
  padding: .4rem .8rem; border-radius: 999px; font-size: .95rem; color: var(--muted);
  transition: color .2s, background-color .2s; white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); background: var(--soft); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: .15rem; margin-inline-start: auto; }
.lang-link {
  font-size: .85rem; font-weight: 500; padding: .35rem .7rem; border: 1px solid var(--line);
  border-radius: 999px; margin-inline-end: .25rem; transition: border-color .2s, background-color .2s;
}
.lang-link:hover { border-color: var(--ink); }
.cart-count {
  position: absolute; top: 2px; inset-inline-end: 0; min-width: 19px; height: 19px; padding-inline: 5px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1; transition: transform .25s var(--ease);
}
.cart-count.is-empty { display: none; }
.cart-count.bump { transform: scale(1.35); }
.menu-btn { margin-inline-start: -8px; }

.search-panel { border-top: 1px solid var(--line); background: var(--surface); animation: slideDown .22s var(--ease); }
.search-form { display: flex; align-items: center; gap: .6rem; padding-block: .75rem; }
.search-form > svg { flex: none; color: var(--muted); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.05rem; padding: .5rem 0; outline: none; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(28, 27, 25, .4); z-index: 60; animation: fade .2s; }
.drawer {
  position: fixed; inset-block: 0; inset-inline-start: 0; width: min(86vw, 340px); z-index: 61;
  background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transform: translateX(-105%); transition: transform .3s var(--ease); visibility: hidden;
}
[dir="rtl"] .drawer { transform: translateX(105%); }
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-title { font-weight: 700; font-size: 1.3rem; }
.drawer-nav { display: flex; flex-direction: column; padding: .75rem; overflow-y: auto; }
.drawer-nav a { padding: .85rem .75rem; border-radius: var(--radius-sm); font-size: 1.05rem; font-weight: 500; }
.drawer-nav a:hover { background: var(--soft); }
.drawer-foot { margin-top: auto; padding: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .75rem; }
.drawer-social { text-align: center; color: var(--muted); font-size: .9rem; }
@keyframes fade { from { opacity: 0; } }
body.no-scroll { overflow: hidden; }

/* Toasts */
.toasts {
  position: fixed; z-index: 80; inset-inline: var(--gutter); bottom: var(--gutter);
  display: grid; gap: .5rem; justify-items: center; pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: .75rem; width: min(100%, 420px);
  background: var(--ink); color: #fff; padding: .8rem 1rem .8rem 1.1rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-size: .95rem; animation: toastIn .3s var(--ease);
}
.toast span { flex: 1; }
.toast a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; white-space: nowrap; }
.toast-success { border-inline-start: 4px solid #6fcf97; }
.toast-error { background: var(--sale); }
.toast-warning { border-inline-start: 4px solid #f2c94c; }
.toast-close { background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; opacity: .7; padding: 0 .25rem; }
.toast-close:hover { opacity: 1; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: all .25s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 214, 180, .35), transparent 60%),
    radial-gradient(800px 400px at 0% 110%, rgba(28, 27, 25, .35), transparent 60%),
    linear-gradient(135deg, #C0663A 0%, #B5562B 45%, #8A3F1F 100%);
}
.hero.has-image { background: #2a2622 var(--hero-img) center / cover no-repeat; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.5)); }
.hero::after {
  content: "خام"; position: absolute; inset-inline-end: -2%; bottom: -18%; font-size: clamp(9rem, 30vw, 22rem);
  font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .07); pointer-events: none; user-select: none;
}
.hero.has-image::after { display: none; }
.hero-inner {
  position: relative; z-index: 1; min-height: clamp(360px, 62vh, 560px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 1rem; padding-block: 3.5rem;
}
.hero-title { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 700; max-width: 15ch; letter-spacing: -.01em; }
.hero-subtitle { font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 46ch; opacity: .92; margin-bottom: .75rem; }
.hero .btn-accent { background: #fff; color: var(--ink); }
.hero .btn-accent:hover { background: var(--bg); box-shadow: var(--shadow-lg); }

/* ------------------------------------------------------------ sections */
.section { padding-block: 2.75rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-title { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 600; }
.page-head { padding-block: 2rem 1rem; }
.page-title { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; }
.small-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 1rem; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.cat-card {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(145deg, #EFE7DD, #E3D6C6); display: grid; place-items: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45)); }
.cat-card:hover { box-shadow: var(--shadow); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card.has-image .cat-name { color: #fff; }
.cat-letter { font-size: 4rem; font-weight: 700; color: rgba(181, 86, 43, .28); }
.cat-name {
  position: absolute; z-index: 1; inset-inline: .9rem; bottom: .8rem; color: var(--ink); font-weight: 600; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}

/* Product grid & card */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .75rem; }
.card { min-width: 0; }
.card-link { display: block; }
.card-media {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  background: var(--soft);
}
.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s var(--ease); }
.card-img-2 { opacity: 0; }
.card-link:hover .card-img { transform: scale(1.04); }
.card-link:hover .has-hover .card-img-2 { opacity: 1; }
.card.is-soldout .card-img { filter: grayscale(.25); opacity: .85; }
.card-badges { position: absolute; top: .6rem; inset-inline-start: .6rem; display: flex; gap: .35rem; }
.card-body { padding-top: .7rem; }
.card-title {
  font-size: .95rem; font-weight: 500; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-link:hover .card-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; margin-top: .2rem; }
.price-now { font-weight: 600; }
.price-was { color: var(--muted); font-size: .88em; }
.card.is-soldout .price-now { color: var(--muted); }

.tag {
  display: inline-flex; align-items: center; gap: .25em; padding: .2rem .6rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.tag-sale { background: var(--sale); color: #fff; }
.tag-dark { background: var(--ink); color: #fff; }

.placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(145deg, #F1EBE3, #E6DCCF);
}
.placeholder span { font-size: clamp(2.5rem, 8vw, 4rem); font-weight: 700; color: rgba(181, 86, 43, .3); }
.placeholder-lg span { font-size: 7rem; }

/* Perks */
.perks { display: grid; gap: .75rem; padding-bottom: 1rem; }
.perk {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s;
}
.perk svg { flex: none; color: var(--accent); }
.perk strong { display: block; font-weight: 600; }
.perk span { display: block; color: var(--muted); font-size: .9rem; }
a.perk:hover { border-color: var(--ink); }

/* Empty state */
.empty {
  text-align: center; padding: 3.5rem 1.25rem; background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius); display: grid; justify-items: center; gap: .6rem; margin-block: 1rem;
}
.empty-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--accent); margin-bottom: .4rem; }
.empty-title { font-size: 1.25rem; }
.empty-text { color: var(--muted); max-width: 42ch; margin-bottom: .6rem; }

/* ------------------------------------------------------------ listing */
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-block: 1rem .25rem; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: .9rem; transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.sort-form { display: flex; gap: .5rem; align-items: center; }
.select, .input {
  width: 100%; min-height: 48px; padding: .65rem .95rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .2s, box-shadow .2s; font-size: 1rem;
}
.select { width: auto; padding-inline-end: 2.4rem; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B6660' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; min-height: 42px; font-size: .92rem; }
[dir="rtl"] .select { background-position: left .9rem center; }
.input:hover, .select:hover { border-color: #cfc7bc; }
.input:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28, 27, 25, .08); }
textarea.input { min-height: 96px; resize: vertical; }
.search-inline { display: flex; gap: .5rem; margin-top: 1rem; max-width: 560px; }
.search-inline .input { flex: 1; min-width: 0; }

.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.page-btn {
  min-width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 500; padding-inline: .6rem; transition: border-color .2s;
}
.page-btn:hover { border-color: var(--ink); }
.page-btn.is-current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ------------------------------------------------------------ product page */
.product { padding-top: 1rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.product-grid { display: grid; gap: 1.75rem; }

.gallery { min-width: 0; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 1 / 1; }
.gallery-track {
  display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; border: 0; padding: 0; background: none; cursor: zoom-in; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center;
  box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .2s, background-color .2s;
}
.gallery-arrow.is-prev { inset-inline-start: .75rem; }
.gallery-arrow.is-next { inset-inline-end: .75rem; }
.gallery-main:hover .gallery-arrow, .gallery-arrow:focus-visible { opacity: 1; }
.gallery-arrow:hover { background: #fff; }
.gallery-dots { position: absolute; bottom: .8rem; inset-inline: 0; display: flex; justify-content: center; gap: .35rem; pointer-events: none; }
.dot { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0,0,0,.08); transition: all .25s var(--ease); }
.dot.is-active { width: 20px; background: #fff; }
.gallery-tag { position: absolute; top: .9rem; inset-inline-start: .9rem; font-size: .85rem; padding: .3rem .8rem; }
.thumbs-wrap { position: relative; margin-top: .75rem; }
.thumbs {
  display: flex; gap: .6rem; overflow-x: auto; padding-bottom: 10px; cursor: grab;
  scrollbar-width: thin; scrollbar-color: #C9C1B6 transparent; scroll-behavior: smooth;
}
.thumbs.is-dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.thumbs.is-dragging .thumb { pointer-events: none; }
.thumbs::-webkit-scrollbar { height: 6px; }
.thumbs::-webkit-scrollbar-track { background: var(--line); border-radius: 999px; }
.thumbs::-webkit-scrollbar-thumb { background: #B9B0A4; border-radius: 999px; }
.thumbs::-webkit-scrollbar-thumb:hover { background: var(--ink); }
.thumb img { -webkit-user-drag: none; user-select: none; }
.thumbs-nav {
  position: absolute; top: calc(50% - 5px); transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.14);
  transition: opacity .2s;
}
.thumbs-nav[hidden] { display: none; }
.thumbs-nav:disabled { opacity: 0; pointer-events: none; }
.thumbs-left { left: -12px; }
.thumbs-right { right: -12px; }
@media (hover: none) { .thumbs-nav { display: none; } }
.thumb {
  flex: 0 0 72px; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; padding: 0;
  border: 2px solid transparent; background: var(--soft); opacity: .65; transition: opacity .2s, border-color .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.is-active { border-color: var(--ink); opacity: 1; }

.product-info { min-width: 0; }
.eyebrow { font-size: .85rem; color: var(--accent); font-weight: 600; letter-spacing: .02em; }
.product-title { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 600; margin-block: .25rem .75rem; }
.product-price { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .9rem; }
.price-lg { font-size: 1.5rem; font-weight: 600; }
.price-lg.is-sale { color: var(--sale); }
.product-price .price-was { font-size: 1.05rem; }
.stock { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 500; margin-bottom: 1.25rem; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.stock-ok { color: var(--ok); }
.stock-low { color: var(--accent); }

.buy-form { display: grid; gap: .6rem; padding-block: 1.25rem; border-block: 1px solid var(--line); }
.field-label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .35rem; }
.buy-form .field-label { margin-bottom: 0; }
.qty {
  display: inline-flex; align-items: center; width: max-content; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); overflow: hidden; margin-bottom: .5rem;
}
.qty-btn { width: 46px; height: 46px; border: 0; background: none; font-size: 1.25rem; transition: background-color .2s; }
.qty-btn:hover:not(:disabled) { background: var(--soft); }
.qty-btn:disabled { color: #c4bdb4; cursor: not-allowed; }
.qty-input {
  width: 48px; height: 46px; border: 0; background: none; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { outline: none; }
.qty-sm { margin: 0; }
.qty-sm .qty-btn, .qty-sm .qty-input { height: 38px; }
.qty-sm .qty-btn { width: 38px; font-size: 1.1rem; }
.qty-sm .qty-input { width: 38px; }
.buy-actions { display: grid; gap: .6rem; }

.info-lines { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .75rem; }
.info-lines li { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.info-lines svg { flex: none; color: var(--ink); margin-top: .15rem; }
.description { margin-top: 1.5rem; }
.prose { color: #3b3935; }
.prose p + p { margin-top: .8rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem; padding: .5rem 0;
  background: none; border: 0; font-weight: 500; color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .2s;
}
.share-btn:hover { border-bottom-color: currentColor; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(20, 19, 17, .96); color: #fff; overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; animation: fade .2s; }
.lightbox::backdrop { background: rgba(20, 19, 17, .96); }
.lightbox-img { max-width: min(92vw, 1100px); max-height: 84vh; object-fit: contain; border-radius: 6px; user-select: none; }
.lightbox .icon-btn { color: #fff; background: rgba(255, 255, 255, .1); position: absolute; width: 48px; height: 48px; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox-close { top: 1rem; inset-inline-end: 1rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.is-prev { inset-inline-start: 1rem; }
.lightbox-nav.is-next { inset-inline-end: 1rem; }
.lightbox-count { position: absolute; bottom: 1.25rem; inset-inline: 0; text-align: center; font-size: .9rem; opacity: .75; }

/* ------------------------------------------------------------ cart */
.cart-layout, .checkout-layout { display: grid; gap: 1.5rem; align-items: start; }
.cart-items { display: grid; gap: .75rem; min-width: 0; }
.cart-item {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 1rem; padding: .9rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.cart-thumb { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--soft); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .placeholder span { font-size: 2rem; }
.cart-item-body { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.cart-item-top { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.cart-item-name { font-weight: 500; line-height: 1.4; }
.cart-item-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-line-total { font-weight: 600; white-space: nowrap; }
.cart-item-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .4rem; flex-wrap: wrap; }
.link-back { justify-self: start; margin-top: .5rem; }

.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 1rem; box-shadow: var(--shadow-sm); }
.totals { margin: 0; display: grid; gap: .55rem; }
.totals > div { display: flex; justify-content: space-between; gap: 1rem; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 500; text-align: end; }
.totals-grand { border-top: 1px solid var(--line); padding-top: .75rem; margin-top: .25rem; }
.totals-grand dt { color: var(--ink); font-weight: 600; }
.totals-grand dd { font-size: 1.2rem; font-weight: 700; }
.totals.details { border-top: 1px solid var(--line); padding-top: 1rem; }
.totals.details dd { font-weight: 400; overflow-wrap: anywhere; }

.free-bar { background: var(--soft); border-radius: var(--radius-sm); padding: .8rem .9rem; font-size: .9rem; display: grid; gap: .5rem; }
.bar { height: 6px; background: #e3dbd0; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .4s var(--ease); }

/* ------------------------------------------------------------ checkout */
.checkout-main { display: grid; gap: 1rem; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.field { margin-bottom: 1rem; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; gap: 0 1rem; }
.field-error { color: var(--sale); font-size: .85rem; margin-top: .35rem; }
.has-error .input { border-color: var(--sale); box-shadow: 0 0 0 3px rgba(192, 57, 43, .08); }
.field .select { width: 100%; min-height: 48px; font-size: 1rem; }
[dir="rtl"] .input[dir="ltr"] { text-align: right; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pay-option {
  display: flex; align-items: center; gap: .9rem; padding: 1rem; border: 1.5px solid var(--ink); border-radius: var(--radius-sm);
  background: #FDFBF8; cursor: pointer;
}
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; }
.pay-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.pay-option > span:nth-of-type(2) { flex: 1; display: grid; }
.pay-option small { font-size: .85rem; }
.pay-option svg { color: var(--accent); flex: none; }
.pay-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

.mini-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.mini-items li { display: flex; align-items: center; gap: .8rem; }
.mini-thumb { position: relative; flex: none; width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--soft); border: 1px solid var(--line); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.mini-thumb .placeholder { border-radius: inherit; }
.mini-thumb .placeholder span { font-size: 1.4rem; }
.mini-qty {
  position: absolute; top: -7px; inset-inline-end: -7px; min-width: 21px; height: 21px; border-radius: 99px; padding-inline: 5px;
  background: var(--muted); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}
.mini-name { flex: 1; min-width: 0; font-size: .93rem; }
.mini-price { font-weight: 500; white-space: nowrap; font-size: .93rem; }

/* ------------------------------------------------------------ success / 404 */
.success, .notfound { text-align: center; padding-block: 3rem 1rem; display: grid; gap: .9rem; justify-items: center; }
.success .summary-card { width: 100%; text-align: start; margin-top: .75rem; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(46, 125, 79, .3); animation: pop .45s var(--ease); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.order-no { font-size: 1.1rem; }
.order-no strong { font-size: 1.3rem; color: var(--accent); }
.callout { background: var(--soft); padding: .9rem 1.1rem; border-radius: var(--radius-sm); max-width: 48ch; }
.eta-card {
  display: flex; align-items: center; gap: .9rem; text-align: start; width: 100%; max-width: 48ch;
  padding: .9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid rgba(181, 86, 43, .28);
  background: linear-gradient(135deg, rgba(226, 118, 63, .1), rgba(181, 86, 43, .04));
}
.eta-ico { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
[dir="rtl"] .eta-ico svg { transform: scaleX(-1); }
.eta-text { display: grid; gap: .1rem; }
.eta-text small { color: var(--muted); font-size: .85rem; }
.eta-text strong { font-size: 1.05rem; }
.success-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1rem; }
.notfound-code { font-size: clamp(5rem, 20vw, 9rem); font-weight: 700; line-height: 1; color: var(--accent); opacity: .9; letter-spacing: -.03em; }

/* ------------------------------------------------------------ footer */
.site-footer { margin-top: 4rem; background: var(--ink); color: #D9D3CA; }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
.logo-footer { color: #fff; font-size: 1.8rem; margin-bottom: .6rem; }
.footer-about { color: #A9A298; max-width: 44ch; font-size: .93rem; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.badge-pill {
  display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px; font-size: .82rem; color: #EDE8E1;
}
.footer-title { font-size: .95rem; color: #fff; margin-bottom: .8rem; font-weight: 600; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .93rem; }
.footer-links a { color: #A9A298; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.social { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); color: #fff; transition: background-color .2s, border-color .2s; }
.social:hover { background: var(--accent); border-color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.25rem; font-size: .85rem; color: #8F887E; }

/* ------------------------------------------------------------ responsive */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1.1rem; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .cart-item { grid-template-columns: 112px minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .buy-actions { grid-template-columns: 1fr 1fr; }
  .toasts { inset-inline: auto var(--gutter); justify-items: end; }
}
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .menu-btn { display: none; }
  .main-nav { display: flex; }
  .product-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.5rem; }
  .product-info { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .buy-actions { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; }
  .summary-card { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .success .summary-card { position: static; }
  .thumb { flex-basis: 84px; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .hero-inner { align-items: stretch; }
  .hero .btn { align-self: flex-start; }
  .lang-link { padding: .3rem .55rem; font-size: .8rem; }
  .gallery-main { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
}
@media (hover: none) {
  .gallery-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* ---------------------------------------------------------- colours */
.colors { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.colors legend { padding: 0; margin-bottom: 10px; }
.colors legend strong { font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; cursor: pointer; display: inline-flex; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch-circle {
  width: 38px; height: 38px; border-radius: 50%; display: block;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); outline: 2px solid transparent; outline-offset: 3px;
  transition: outline-color .15s, transform .15s;
}
.swatch:hover .swatch-circle { transform: scale(1.06); }
.swatch input:checked + .swatch-circle { outline-color: var(--ink); }
.swatch input:focus-visible + .swatch-circle { outline-color: var(--accent); }
.colors:disabled .swatch { opacity: .5; cursor: not-allowed; }
.colors.is-missing legend { color: var(--sale); }
.swatch-dot {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); vertical-align: middle;
}
.card-colors { display: flex; align-items: center; gap: 5px; margin: 4px 0 6px; }
.mini-color { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: .8rem; }
.stack { display: flex; flex-direction: column; min-width: 0; }


/* hero with brand logo */
.hero::after { display: none; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; grid-column: 1; grid-row: 1; }
/* the logo floats on the hero with no card / frame around it (a transparent PNG keeps its own shape) */
.hero-logo {
  grid-column: 2; grid-row: 1; margin: 0; justify-self: end; width: min(100%, 460px);
  transition: transform .4s ease;
}
.hero-logo:hover { transform: scale(1.02); }
.hero-logo img {
  display: block; width: 100%; height: auto; aspect-ratio: 900 / 640; object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45));
}
@media (max-width: 767px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: 2rem 2.75rem; min-height: 0; }
  .hero-logo { grid-column: 1; grid-row: 1; justify-self: center; width: min(88%, 380px); }
  .hero-text { grid-row: 2; align-items: stretch; }
  .hero-text .btn { align-self: flex-start; }
}


/* instagram order confirmation */
.ig-confirm {
  text-align: start; margin: 1.25rem 0 1.5rem; padding: 1.25rem; border-radius: var(--radius, 14px);
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(0,0,0,.25);
  display: grid; gap: .75rem;
}
.ig-title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.ig-message {
  width: 100%; resize: vertical; font: inherit; font-size: .9rem; line-height: 1.6; padding: .75rem .9rem;
  border: 1px dashed var(--line); border-radius: 10px; background: var(--bg); color: var(--ink);
}
.btn-ig {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; color: #fff;
  background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF); border: 0;
}
.btn-ig:hover { filter: brightness(1.06); color: #fff; }
.ig-status { margin: 0; min-height: 1.2em; text-align: center; }
.ig-status.ok { color: var(--ok); font-weight: 600; }
.ig-confirm { width: 100%; max-width: 100%; box-sizing: border-box; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.ig-confirm .btn-ig { white-space: normal; text-align: center; min-width: 0; }
.ig-message { box-sizing: border-box; min-width: 0; }
.perks { grid-template-columns: minmax(0, 1fr); }
.perk > div { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 768px) { .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


/* ==========================================================================
   Additions: categories menu, account, hero slider, sizes, checkout modes
   ========================================================================== */

/* ---- categories dropdown (header) */
.nav-dd { position: relative; }
.nav-dd > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem;
  padding: .4rem .8rem; border-radius: 999px; font-size: .95rem; color: var(--muted); white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary:hover, .nav-dd[open] > summary { color: var(--ink); background: var(--soft); }
.nav-dd > summary[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-dd > summary svg { transition: transform .2s var(--ease); }
.nav-dd[open] > summary svg { transform: rotate(180deg); }
.nav-dd-list {
  position: absolute; top: calc(100% + .5rem); inset-inline-start: 0; z-index: 50; min-width: 240px; max-height: 70vh; overflow-y: auto;
  list-style: none; margin: 0; padding: .4rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); animation: slideDown .18s var(--ease);
}
.main-nav .nav-dd-list a {
  display: flex; align-items: center; gap: .7rem; padding: .45rem .55rem; border-radius: var(--radius-sm);
  color: var(--ink); font-size: .95rem; white-space: normal;
}
.main-nav .nav-dd-list a:hover, .main-nav .nav-dd-list a[aria-current="page"] { background: var(--soft); }
.nav-dd-list img, .nav-dd-ph {
  width: 38px; height: 38px; flex: none; border-radius: 9px; object-fit: cover; background: var(--soft);
  display: grid; place-items: center; font-weight: 700; color: var(--accent);
}

/* ---- categories in the mobile drawer */
.drawer-cats > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: .85rem .75rem; border-radius: var(--radius-sm); font-size: 1.05rem; font-weight: 500;
}
.drawer-cats > summary::-webkit-details-marker { display: none; }
.drawer-cats > summary:hover { background: var(--soft); }
.drawer-cats[open] > summary svg { transform: rotate(180deg); }
.drawer-cats ul { list-style: none; margin: 0 0 .25rem; margin-inline-start: .9rem; padding: 0; padding-inline-start: .25rem; border-inline-start: 2px solid var(--line); }
.drawer-cats ul a { display: block; padding: .55rem .75rem; font-size: .98rem; font-weight: 400; color: var(--muted); }

/* ---- account icon */
.account-dot { position: absolute; top: 8px; inset-inline-end: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--bg); }

/* ---- hero slider */
.slider { position: relative; overflow: hidden; background: #2a2622; color: #fff; isolation: isolate; }
.slides { position: relative; height: clamp(380px, 68vh, 620px); }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; z-index: 1; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.slide.is-active .slide-img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 30%, rgba(0,0,0,.55)); pointer-events: none; }
.slide-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; padding-block: 3rem 4.5rem; }
.slide-text { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; max-width: 620px; }
.slide-title { font-size: clamp(1.9rem, 5.5vw, 3.4rem); font-weight: 700; letter-spacing: -.01em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.slide-subtitle { font-size: clamp(1rem, 2.2vw, 1.2rem); opacity: .95; max-width: 46ch; }
.slide .btn-accent { background: #fff; color: var(--ink); }
.slide .btn-accent:hover { background: var(--bg); }
.slide.is-active .slide-text > * { animation: slideUp .8s var(--ease) both; }
.slide.is-active .slide-text > *:nth-child(2) { animation-delay: .12s; }
.slide.is-active .slide-text > *:nth-child(3) { animation-delay: .24s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.slide-link { position: absolute; inset: 0; z-index: 2; }
.slider-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); background: rgba(20,19,17,.28); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .2s, transform .2s;
}
.slider-arrow:hover { background: rgba(20,19,17,.55); }
.slider-arrow.is-prev { inset-inline-start: 1rem; }
.slider-arrow.is-next { inset-inline-end: 1rem; }
.slider-bar { position: absolute; z-index: 3; bottom: 1.25rem; inset-inline: 0; display: flex; justify-content: center; align-items: center; gap: .75rem; }
.slider-dots { display: flex; gap: .4rem; }
.slider-dot { width: 34px; height: 24px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.slider-dot span { display: block; width: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); overflow: hidden; position: relative; }
.slider-dot.is-active span::after {
  content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: dotFill var(--slide-ms, 5000ms) linear forwards;
}
[dir="rtl"] .slider-dot.is-active span::after { transform-origin: right; }
.slider[data-interval="0"] .slider-dot.is-active span::after { animation: none; transform: none; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slider-toggle { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(20,19,17,.28); color: #fff; display: grid; place-items: center; }
.slider-toggle .i-play { display: none; }
.slider.is-paused .slider-toggle .i-play { display: block; }
.slider.is-paused .slider-toggle .i-pause { display: none; }
@media (hover: none) { .slider-arrow { display: none; } }
@media (max-width: 639px) {
  .slides { height: clamp(360px, 62vh, 520px); }
  .slide-inner { padding-block: 2rem 4rem; }
  .slide-text .btn { align-self: flex-start; }
}

/* ---- sizes on the product page */
.price-from { font-size: .82em; font-weight: 400; color: var(--muted); }
.sizes { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.sizes legend { padding: 0; margin-bottom: 10px; }
.sizes legend strong { font-weight: 600; }
.size-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.size-pill { position: relative; display: inline-flex; cursor: pointer; }
.size-pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.size-pill span {
  min-width: 54px; padding: .55rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface);
  text-align: center; font-weight: 500; transition: border-color .15s, background-color .15s, color .15s;
}
.size-pill:hover span { border-color: var(--ink); }
.size-pill input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.sizes:disabled .size-pill { opacity: .5; cursor: not-allowed; }
.sizes.is-missing legend { color: var(--sale); }
.size-details { margin-top: .9rem; padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--soft); font-size: .93rem; animation: fade .25s; }
.size-details-title { display: block; margin-bottom: .3rem; font-size: .9rem; }
.price-now.is-updated { animation: pricePop .35s var(--ease); }
@keyframes pricePop { 50% { transform: scale(1.06); } }

/* ---- checkout: registered / guest */
.as-options { display: grid; gap: .75rem; }
.as-opt {
  display: flex; align-items: center; gap: .85rem; text-align: start; padding: 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface); transition: border-color .2s, background-color .2s;
}
.as-opt > span { display: grid; gap: .1rem; }
.as-opt small { font-size: .84rem; }
.as-opt svg { flex: none; color: var(--muted); }
.as-opt:hover { border-color: #cfc7bc; }
.as-opt.is-selected { border-color: var(--ink); background: #FDFBF8; }
.as-opt.is-selected svg { color: var(--accent); }
.login-inline { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.login-inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: .25rem; }
.checkout-form { display: grid; gap: 1rem; min-width: 0; }
.saved-details { margin-bottom: 1rem; }
.saved-lead { font-weight: 500; margin-top: .6rem; }
.saved-list { margin: .6rem 0 0; display: grid; gap: .35rem; padding: .9rem 1rem; background: var(--soft); border-radius: var(--radius-sm); }
.saved-list div { display: flex; gap: .75rem; }
.saved-list dt { color: var(--muted); min-width: 6.5rem; }
.saved-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.edit-details { margin-bottom: 1rem; }
.edit-details > summary { cursor: pointer; color: var(--accent); font-weight: 500; font-size: .93rem; margin-bottom: .9rem; }
@media (min-width: 640px) { .as-options { grid-template-columns: 1fr 1fr; } }

/* ---- auth + account pages */
.auth-wrap { display: grid; place-items: center; padding-block: 2.5rem 1rem; }
.auth-card { width: 100%; max-width: 440px; display: grid; gap: .5rem; padding: 1.75rem; }
.auth-card-wide { max-width: 620px; }
.auth-card .page-title { font-size: clamp(1.5rem, 3.5vw, 1.9rem); }
.auth-form { display: grid; gap: 0; margin-top: 1rem; }
.auth-form .btn { margin-top: .5rem; }
.auth-switch { text-align: center; margin-top: 1rem; font-size: .93rem; }
.form-alert { background: #FBEDEA; color: var(--sale); padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .93rem; }
.account-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.account-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.account-layout { display: grid; gap: 1rem; align-items: start; }
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.order-row { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; display: grid; gap: .3rem; }
.order-row-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.order-row-items { list-style: none; margin: .2rem 0; padding: 0; font-size: .92rem; }
.order-row-total { font-size: .93rem; }
.status-tag { font-size: .78rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; background: var(--soft); }
.status-tag.status-confirmed, .status-tag.status-shipped { background: #EAF1FB; color: #2C5AA0; }
.status-tag.status-delivered { background: #E7F4EC; color: var(--ok); }
.status-tag.status-cancelled { background: #FBEDEA; color: var(--sale); }
.readonly-value { padding: .6rem 0; }
@media (min-width: 900px) { .account-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

/* ---- footer: icons only */
.footer-grid .socials { margin-top: 0; flex-wrap: wrap; }

/* ---- slider: ad types */
.slide { background: var(--slide-bg, #1C1B19); }
.slide.kind-text::after, .slide.kind-side::after, .slide.kind-image::after { display: none; }
.slide.kind-text { background: radial-gradient(900px 420px at 85% -10%, rgba(255,255,255,.12), transparent 60%), var(--slide-bg, #1C1B19); }
.slide.kind-text .slide-inner, .slide.kind-side .slide-inner { align-items: center; padding-block: 3rem 4.5rem; }
.slide.kind-text .slide-title { font-size: clamp(2.1rem, 6vw, 3.8rem); }
.slide.is-light { color: var(--ink); }
.slide.is-light .slide-title { text-shadow: none; }
.slide.is-light .slide-text .btn-accent { background: var(--ink); color: #fff; }
.slide.is-light .slide-text .btn-accent:hover { background: #33312d; }
.slide.kind-side .slide-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.slide-card-img {
  margin: 0; justify-self: end; width: min(100%, 460px); border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.12); transform: rotate(-2deg);
}
[dir="rtl"] .slide-card-img { transform: rotate(2deg); }
.slide-card-img img { width: 100%; height: auto; max-height: 52vh; object-fit: cover; display: block; }
.slide.kind-image .slide-img { transform: none; }

/* the main hero shown as the first slide */
.slide.slide-hero { position: absolute; }
.slide.slide-hero .hero-inner { min-height: 100%; height: 100%; padding-block: 2.5rem 4rem; }
.slide.slide-hero .hero-text > * { animation: none; }
.slide.slide-hero.is-active .hero-text > * { animation: slideUp .8s var(--ease) both; }

@media (max-width: 767px) {
  .slides { height: clamp(460px, 78vh, 640px); }
  .slide.kind-side .slide-inner { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 1.25rem; }
  .slide-card-img { grid-row: 1; justify-self: center; width: min(75%, 320px); }
  .slide-card-img img { max-height: 30vh; }
  .slide.slide-hero .hero-inner { padding-block: 1.5rem 4rem; align-content: center; }
  .slide.slide-hero .hero-logo { width: min(62%, 280px); }
  .slide.slide-hero .hero-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
}
@media (max-width: 767px) { .slider-arrow { display: none; } }


/* ---- ad slides: text only / image beside text / main hero as a slide */
.slide { background: var(--slide-bg, #1C1B19); }
.slide.kind-image::after, .slide.kind-text::after, .slide.kind-side::after { display: none; }
.slide.kind-text, .slide.kind-side { background: radial-gradient(900px 400px at 85% -10%, rgba(255,255,255,.12), transparent 60%), var(--slide-bg, #1C1B19); }
.slide.kind-text .slide-inner, .slide.kind-side .slide-inner { align-items: center; padding-block: 3rem 4.5rem; }
.slide.kind-text .slide-title { font-size: clamp(2rem, 6vw, 3.8rem); max-width: 18ch; }
.slide.is-light { color: var(--ink); }
.slide.is-light .slide-title { text-shadow: none; }
.slide.is-light .btn-accent { background: var(--ink); color: #fff; }
.slide.kind-side .slide-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.slide-card-img {
  margin: 0; justify-self: end; width: min(100%, 460px); border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.12); transform: rotate(-2deg);
}
[dir="rtl"] .slide-card-img { transform: rotate(2deg); }
.slide-card-img img { display: block; width: 100%; aspect-ratio: 900 / 640; object-fit: cover; }
.slide.is-active .slide-card-img { animation: slideUp .9s var(--ease) both .1s; }
.slide.kind-image .slide-img { object-fit: cover; }

.slide.slide-hero { display: block; }
.slide.slide-hero .hero-inner { min-height: 100%; height: 100%; padding-block: 2.5rem 4rem; }
.slide.slide-hero.has-image { background: #2a2622 var(--hero-img) center / cover no-repeat; }

@media (max-width: 767px) {
  .slides { height: clamp(460px, 78vh, 620px); }
  .slide.kind-side .slide-inner { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 1.25rem; }
  .slide-card-img { grid-row: 1; justify-self: center; width: min(70%, 300px); }
  .slide.slide-hero .hero-inner { padding-block: 1.5rem 3.75rem; gap: 1.25rem; align-content: center; }
  .slide.slide-hero .hero-logo { width: min(62%, 280px); }
  .slide.slide-hero .hero-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
}


/* ---- product video in the gallery */
.gallery-slide.is-video { cursor: default; background: #111; display: grid; place-items: center; }
.gallery-slide.is-video video, .gallery-slide.is-video iframe { width: 100%; height: 100%; border: 0; object-fit: contain; background: #111; }
.thumb-video { position: relative; }
.thumb-video .thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.35); border-radius: inherit; }

/* ---- custom letters / numbers */
.custom-text { margin: 0 0 18px; display: grid; gap: 6px; }
.custom-text-input { font-size: 1.1rem; letter-spacing: .04em; }
.custom-text.is-missing .field-label { color: var(--sale); }
.custom-text.is-missing .input { border-color: var(--sale); }
.custom-text-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--muted); }
.custom-text-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.custom-text-count.is-over { color: var(--sale); font-weight: 600; }
.custom-text-cost { font-size: .9rem; }
.line-text { display: block; font-size: .82rem; color: var(--ink); margin-top: 2px; }

.slide-video { transform: none !important; }
.slide-card-img video { display: block; width: 100%; aspect-ratio: 900 / 640; object-fit: cover; }

/* ---- emoji picker + design upload */
.custom-text-row { display: flex; gap: 8px; }
.custom-text-row .input { flex: 1; min-width: 0; }
.emoji-toggle { flex: none; width: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 1.3rem; }
.emoji-toggle:hover, .emoji-toggle[aria-expanded="true"] { border-color: var(--ink); }
.emoji-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); max-height: 180px; overflow-y: auto; }
.emoji-btn { border: 0; background: none; font-size: 1.35rem; padding: 4px; border-radius: 8px; line-height: 1.2; }
.emoji-btn:hover { background: var(--soft); }
.design-box { display: grid; gap: 6px; justify-items: start; margin: 0 0 18px; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.design-pick { cursor: pointer; display: inline-flex; gap: 8px; }
.design-status { font-size: .88rem; margin: 0; }
.design-status.ok { color: var(--ok); font-weight: 500; }
.design-status.err { color: var(--sale); }

.ig-optional { margin: 1rem 0 0; }
.ig-optional > summary { cursor: pointer; list-style: none; display: grid; gap: 2px; }
.ig-optional > summary::-webkit-details-marker { display: none; }
.ig-optional > summary::after { content: "⌄"; justify-self: end; margin-top: -1.4rem; color: var(--muted); }
.ig-optional[open] > summary::after { content: "⌃"; }

/* ---------------------------------------------------------- custom design order (header button) */
.cd-link {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600;
  padding: .35rem .8rem; border-radius: 999px; background: var(--accent); color: #fff;
  margin-inline-end: .35rem; transition: filter .2s, transform .2s; white-space: nowrap;
}
.cd-link:hover { filter: brightness(1.07); }
.cd-link:active { transform: scale(.97); }
@media (max-width: 640px) {
  /* phones: keep the words (an icon alone wasn't clear); the language switch lives in the menu instead */
  .header-actions .lang-link { display: none; }
  .cd-link { padding: .38rem .7rem; gap: .3rem; font-size: .8rem; margin-inline-end: .1rem; }
}
@media (max-width: 360px) {
  .cd-link { padding: .36rem .55rem; font-size: .76rem; }
  .cd-link svg { display: none; }
}
.cd-drop {
  position: relative; display: grid; justify-items: center; gap: .35rem; text-align: center; cursor: pointer;
  padding: 1.6rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color .2s, background-color .2s;
}
.cd-drop:hover, .cd-drop.is-over { border-color: var(--accent); }
.cd-drop.has-file { border-style: solid; border-color: var(--ink); }
.cd-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.cd-drop .cd-icon { color: var(--accent); }
.cd-drop strong { word-break: break-all; }
.cd-preview { max-height: 180px; max-width: 100%; border-radius: 8px; object-fit: contain; }
.cd-login { margin: .5rem 0 0; font-weight: 500; }
.cd-login-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.extra-price { font-size: .82rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.name-box { margin-bottom: 18px; }
[dir="rtl"] input[dir="auto"]:placeholder-shown { direction: rtl; }

/* text formatting from the dashboard (**bold**, !!red!!) */
.txt-red { color: #C62828; }
.announcement .txt-red, .slide .txt-red, .hero .txt-red { color: #FF6B6B; }
.slide.is-light .txt-red { color: #C62828; }
/* custom design: dimensions + colour */
.cd-dims, .cd-colors { border: 0; padding: 0; margin: 0; min-width: 0; }
.cd-dims-row { display: flex; align-items: flex-end; gap: 8px; }
.cd-dims-row label { flex: 1; display: grid; gap: 4px; font-size: .85rem; color: var(--muted); min-width: 0; }
.cd-dims-row .input { text-align: center; }
.cd-x { padding-bottom: 12px; color: var(--muted); }
.swatch-any .swatch-circle { display: grid; place-items: center; background: var(--surface); color: var(--muted); font-size: .8rem; box-shadow: inset 0 0 0 1px var(--line); }
.cd-dims, .cd-colors { margin-bottom: 16px; }
.cd-colors .swatches { margin-top: 6px; }

/* ---------------------------------------------------------- live chat bubble */
.chat { position: fixed; z-index: 70; inset-inline-end: 20px; bottom: 20px; }
.chat-bubble {
  width: 62px; height: 62px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; position: relative;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, #E2763F 0%, var(--accent) 55%, #8E3E1C 100%);
  box-shadow: 0 8px 22px rgba(181, 86, 43, .45), 0 2px 6px rgba(28, 27, 25, .18);
  transition: transform .2s var(--ease), box-shadow .2s;
  animation: chat-float 3.2s ease-in-out infinite, chat-nudge 7s ease-in-out 2s infinite;
}
/* soft rings spreading out of the bubble, so it catches the eye */
.chat-bubble::before, .chat-bubble::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(226, 118, 63, .7); animation: chat-ring 2.6s ease-out infinite;
}
.chat-bubble::after { animation-delay: 1.3s; }
/* the logo sits on the orange: its white background takes the bubble's colour (multiply), the dark parts stay dark */
.chat-bubble.has-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; padding: 9px; mix-blend-mode: multiply; }
.chat-bubble.has-logo { isolation: isolate; }
.chat-bubble:hover { animation-play-state: paused; transform: scale(1.08); box-shadow: 0 12px 30px rgba(181, 86, 43, .55), 0 2px 6px rgba(28, 27, 25, .2); }
.chat.is-open .chat-bubble { animation: none; transform: scale(.9); }
.chat.is-open .chat-bubble::before, .chat.is-open .chat-bubble::after { animation: none; opacity: 0; }
@keyframes chat-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes chat-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes chat-nudge {
  0%, 84%, 100% { rotate: 0deg; }
  87% { rotate: -12deg; } 90% { rotate: 10deg; } 93% { rotate: -7deg; } 96% { rotate: 4deg; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-bubble, .chat-bubble::before, .chat-bubble::after { animation: none; }
}
.chat-badge {
  position: absolute; top: -2px; inset-inline-end: -2px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: #E53935; color: #fff; font-size: .75rem; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg);
}
.chat-panel {
  position: absolute; bottom: 76px; inset-inline-end: 0; width: min(370px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  background: var(--surface); border-radius: 18px; box-shadow: 0 18px 50px rgba(28, 27, 25, .28);
  display: flex; flex-direction: column; overflow: hidden; animation: chatIn .22s var(--ease);
}
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--ink); color: #fff; }
.chat-head-logo { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; overflow: hidden; font-weight: 700; flex: none; }
.chat-head-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.chat-head-text { display: grid; line-height: 1.3; flex: 1; min-width: 0; }
.chat-head-text small { opacity: .75; font-size: .78rem; }
.chat-x { background: none; border: 0; color: #fff; opacity: .8; cursor: pointer; padding: 6px; border-radius: 8px; }
.chat-x:hover { opacity: 1; background: rgba(255,255,255,.1); }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.chat-msg { display: flex; flex-direction: column; max-width: 82%; }
.chat-msg.from-customer { align-self: flex-end; align-items: flex-end; }
.chat-msg.from-staff, .chat-msg.from-bot { align-self: flex-start; align-items: flex-start; }
.chat-bubble-text { padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; word-break: break-word; font-size: .93rem; line-height: 1.55; }
.from-customer .chat-bubble-text { background: var(--accent); color: #fff; border-end-end-radius: 4px; }
.from-staff .chat-bubble-text { background: var(--surface); border: 1px solid var(--line); border-end-start-radius: 4px; }
.from-bot .chat-bubble-text { background: #F1ECE4; border-end-start-radius: 4px; }
.chat-time { font-size: .7rem; color: var(--muted); margin: 2px 4px 0; }
.chat-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface); scrollbar-width: none; }
.chat-chips[hidden] { display: none; }
.chat-chip { flex: none; border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.chat-chip:hover { background: var(--accent); color: #fff; }
.chat-form { border-top: 1px solid var(--line); padding: 10px 12px; background: var(--surface); display: grid; gap: 8px; }
.chat-form.is-busy { opacity: .7; pointer-events: none; }
.chat-intro { display: grid; gap: 6px; }
.chat-intro[hidden] { display: none; }
.chat-intro p { margin: 0; }
.chat-intro .input { padding-block: 8px; }
.chat-err { margin: 0; color: #C62828; font-size: .82rem; }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; }
.chat-compose textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 20px; padding: 9px 14px; font: inherit; font-size: .93rem; max-height: 120px; background: var(--bg); }
.chat-compose textarea:focus { outline: none; border-color: var(--accent); }
.chat-send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
[dir="rtl"] .chat-send .flip-rtl { transform: scaleX(-1); }
@media (max-width: 520px) {
  .chat { inset-inline-end: 14px; bottom: 14px; }
  .chat-bubble { width: 56px; height: 56px; }
  .chat-panel { position: fixed; inset: auto 8px 82px 8px; width: auto; height: min(70vh, 560px); }
}

/* chat: order confirmation card */
.chat-offer { background: var(--surface); border: 1.5px solid var(--accent); border-radius: 14px; padding: 12px; display: grid; gap: 4px; min-width: 220px; }
.chat-offer-head { font-size: .78rem; color: var(--accent); }
.chat-offer-name { font-weight: 700; font-size: 1rem; white-space: pre-wrap; }
.chat-offer-note { margin: 0; color: var(--muted); font-size: .85rem; white-space: pre-wrap; }
.chat-offer-line { font-size: .85rem; color: var(--muted); }
.chat-offer-total { font-weight: 700; }
.chat-offer-btn { margin-top: 6px; border: 0; border-radius: 10px; padding: 9px 12px; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; font: inherit; font-weight: 600; }
.chat-offer-btn:disabled { opacity: .6; }
.chat-offer-ok { color: #2E7D32; font-weight: 600; font-size: .88rem; }
.chat-offer-off { color: var(--muted); font-size: .85rem; }
.chat-offer.is-cancelled { border-color: var(--line); opacity: .75; }
.chat-offer.is-accepted { border-color: #2E7D32; }

/* chat: photos + shared products */
.chat-attach { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); cursor: pointer; flex: none; }
.chat-attach:hover { color: var(--accent); background: var(--bg); }
.chat-photo { display: block; max-width: 220px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 4px; }
.chat-photo img { display: block; width: 100%; height: auto; max-height: 280px; object-fit: cover; }
.chat-product { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; color: inherit; text-decoration: none; max-width: 260px; margin-bottom: 4px; }
.chat-product:hover { border-color: var(--accent); }
.chat-product img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.chat-product-text { display: grid; gap: 2px; font-size: .88rem; min-width: 0; }
.chat-product-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-product-go { color: var(--accent); font-weight: 600; font-size: .8rem; }
.chat-err.is-info { color: var(--muted); }

/* ------------------------------------------------------------ home: show more categories */
.cat-card[hidden] { display: none; }
.more-row { display: flex; justify-content: center; margin-top: 1.25rem; }
.more-row .btn { gap: .5rem; }
.more-row svg { transition: transform .25s var(--ease); }
.more-row [aria-expanded="true"] svg { transform: rotate(180deg); }

/* ------------------------------------------------------------ products page: scrolling category chips */
.chips-wrap { position: relative; }
.chips { cursor: grab; scroll-behavior: smooth; }
.chips.is-dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.chips.is-dragging .chip { pointer-events: none; }
.chips-wrap.is-overflow::before, .chips-wrap.is-overflow::after {
  content: ""; position: absolute; top: 1rem; bottom: .25rem; width: 48px; pointer-events: none; z-index: 1; transition: opacity .2s;
}
.chips-wrap.is-overflow::before { left: calc(var(--gutter) * -1); background: linear-gradient(90deg, var(--bg), transparent); }
.chips-wrap.is-overflow::after { right: calc(var(--gutter) * -1); background: linear-gradient(270deg, var(--bg), transparent); }
.chips-wrap.at-left::before, .chips-wrap.at-right::after { opacity: 0; }
.chips-nav {
  position: absolute; top: calc(50% + .375rem); transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.14);
  transition: opacity .2s;
}
.chips-nav[hidden] { display: none; }
.chips-nav:disabled { opacity: 0; pointer-events: none; }
.chips-left { left: calc(var(--gutter) * -.5); }
.chips-right { right: calc(var(--gutter) * -.5); }
@media (max-width: 640px) { .chips-left { left: 2px; } .chips-right { right: 2px; } .chips-nav { width: 30px; height: 30px; } }

/* ------------------------------------------------------------ checkout: discount code */
.code-box { margin: 1rem 0 .25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.code-row { display: flex; gap: .5rem; }
.code-row .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.code-row .input::placeholder { text-transform: none; letter-spacing: 0; }
.code-row .input[readonly] { background: var(--soft); border-color: var(--ok); }
.code-row .btn { flex: none; min-height: 48px; }
.code-row .btn[hidden] { display: none; }
.code-msg { margin: .4rem 0 0; font-size: .88rem; min-height: 1.2em; }
.code-msg.is-ok { color: var(--ok); font-weight: 600; }
.code-msg.is-error { color: var(--danger, #C0392B); }
.code-box.has-error .input { border-color: var(--danger, #C0392B); }
.discount-row[hidden] { display: none; }
.discount-row dd { font-weight: 600; }

/* ------------------------------------------------------------ product: "pick your colour" bubble */
.pick-wrap { position: relative; display: inline-flex; }
.pick-btn { display: inline-flex; align-items: center; gap: .5rem; padding: 0 .9rem 0 0; border: 1.5px dashed var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; transition: border-color .15s; }
[dir="ltr"] .pick-btn { padding: 0 .9rem 0 0; }
[dir="rtl"] .pick-btn { padding: 0 0 0 .9rem; }
.pick-btn:hover, .pick-btn[aria-expanded="true"] { border-color: var(--ink); }
.pick-circle { display: grid; place-items: center; color: #fff; outline: 0; background: conic-gradient(#E53935, #FB8C00, #FDD835, #43A047, #1E88E5, #8E24AA, #E53935); }
.pick-circle svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.pick-wrap.is-picked .pick-btn { border-style: solid; border-color: var(--ink); }
.pick-wrap.is-picked .pick-circle svg { display: none; }
.pick-pop {
  position: absolute; z-index: 30; top: calc(100% + 12px); inset-inline-start: 0; width: min(320px, 86vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: .9rem;
  box-shadow: 0 18px 40px rgba(28, 27, 25, .18); animation: pick-in .18s var(--ease);
}
.pick-pop::before { content: ""; position: absolute; top: -8px; inset-inline-start: 18px; width: 14px; height: 14px; background: var(--surface); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); transform: rotate(45deg); }
[dir="rtl"] .pick-pop::before { transform: rotate(-45deg); }
.pick-pop[hidden] { display: none; }
@keyframes pick-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.pick-title { margin: 0 0 .6rem; font-size: .88rem; color: var(--muted); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: .55rem .35rem; max-height: 240px; overflow-y: auto; padding: 4px; }
.pick-dot { position: relative; display: grid; justify-items: center; gap: 4px; border: 0; background: none; cursor: pointer; padding: 0; font: inherit; color: var(--ink); }
.pick-dot-c { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .15s, transform .15s; }
.pick-dot:hover .pick-dot-c { transform: scale(1.08); }
.pick-dot[aria-pressed="true"] .pick-dot-c { outline-color: var(--ink); }
.pick-dot b { position: absolute; top: -4px; inset-inline-end: 6px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.pick-dot b:empty { display: none; }
.pick-dot small { font-size: .72rem; line-height: 1.2; text-align: center; color: var(--muted); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-actions { display: flex; justify-content: space-between; align-items: center; margin-top: .7rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.pill-extra { font-weight: 600; opacity: .8; }

/* ------------------------------------------------------------ product: YouTube button under "buy now" */
.yt-btn {
  display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; margin-top: .75rem;
  padding: .7rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink); font-weight: 600; transition: border-color .15s, box-shadow .15s;
}
.yt-btn:hover { border-color: #FF0000; box-shadow: 0 6px 18px rgba(255, 0, 0, .12); }
.yt-ico { flex: none; }
.cart-opts { display: block; font-size: .82rem; color: var(--muted); }

/* ------------------------------------------------------------ mobile polish: readable hero text, chat bubble out of the way */
.hero.has-image .hero-title, .hero.has-image .hero-subtitle { text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
@media (max-width: 760px) {
  .hero.has-image::before { background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.25) 38%, rgba(18,14,10,.72) 62%, rgba(18,14,10,.88) 100%); }
  .hero.has-image .hero-title, .hero.has-image .hero-subtitle { text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
  .hero.has-image .hero-subtitle { opacity: 1; }
  .slide .slide-text { text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
  .chat-bubble { width: 52px; height: 52px; }
  .chat { bottom: 12px; inset-inline-end: 12px; }
  .site-footer { padding-bottom: 76px; }  /* the last footer line never sits under the chat bubble */
  .hero-inner, .slide.slide-hero .hero-inner { padding-bottom: 5rem; }
}
.chat { z-index: 55; }  /* under the menu drawer (60) and toasts, above the sticky header */

/* ------------------------------------------------------------ ad slides: motion & effects */
/* soft light blobs drifting behind the words */
.slide.kind-side::before, .slide.kind-text::before {
  content: ""; position: absolute; inset: -20%; pointer-events: none; z-index: 0; opacity: .9;
  background:
    radial-gradient(closest-side, rgba(255,255,255,.16), transparent) 12% 20% / 38% 48% no-repeat,
    radial-gradient(closest-side, rgba(255,214,170,.18), transparent) 88% 78% / 44% 54% no-repeat,
    radial-gradient(closest-side, rgba(255,255,255,.08), transparent) 60% 10% / 26% 30% no-repeat;
  animation: ad-drift 16s ease-in-out infinite alternate;
}
.slide.kind-side .slide-inner, .slide.kind-text .slide-inner { position: relative; z-index: 1; }
/* fine dotted texture */
.slide.kind-side .slide-inner::before, .slide.kind-text .slide-inner::before {
  content: ""; position: absolute; inset-block: 8% 18%; inset-inline-start: -2%; width: 180px; pointer-events: none; opacity: .25;
  background-image: radial-gradient(rgba(255,255,255,.9) 1.2px, transparent 1.4px); background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent);
}
@keyframes ad-drift { 0% { transform: translate3d(0, 0, 0) rotate(0); } 100% { transform: translate3d(3%, -4%, 0) rotate(6deg); } }

/* the picture: pops in, then floats; the photo inside slowly zooms (Ken Burns) */
.slide-card-img { position: relative; }
.slide.is-active .slide-card-img { animation: ad-pop 1s cubic-bezier(.2, .9, .25, 1.15) both .15s, ad-float 6s ease-in-out 1.2s infinite; }
.slide.is-active .slide-card-img img { animation: ad-zoom 9s ease-out both; }
.slide-card-img::after {  /* glossy sweep across the picture */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%) -120% 0 / 60% 100% no-repeat;
}
.slide.is-active .slide-card-img::after { animation: ad-gloss 1.6s ease .9s both; }
@keyframes ad-pop { from { opacity: 0; transform: translateY(40px) scale(.86) rotate(-6deg); } to { opacity: 1; transform: rotate(-2deg); } }
[dir="rtl"] .slide.is-active .slide-card-img { animation-name: ad-pop-rtl, ad-float-rtl; }
@keyframes ad-pop-rtl { from { opacity: 0; transform: translateY(40px) scale(.86) rotate(6deg); } to { opacity: 1; transform: rotate(2deg); } }
@keyframes ad-float { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-10px); } }
@keyframes ad-float-rtl { 0%, 100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-10px); } }
@keyframes ad-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes ad-gloss { from { background-position: -120% 0; } to { background-position: 220% 0; } }

/* words: title slides up with a soft blur, the button gets a light sweep */
.slide.is-active .slide-title { animation: ad-title .9s var(--ease) both .1s !important; }
@keyframes ad-title { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.slide .slide-text .btn { position: relative; overflow: hidden; }
.slide .slide-text .btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%) -150% 0 / 50% 100% no-repeat;
}
.slide.is-active .slide-text .btn::after { animation: ad-shine 3.2s ease 1.2s infinite; }
@keyframes ad-shine { 0% { background-position: -150% 0; } 35%, 100% { background-position: 250% 0; } }

@media (prefers-reduced-motion: reduce) {
  .slide.kind-side::before, .slide.kind-text::before,
  .slide.is-active .slide-card-img, .slide.is-active .slide-card-img img, .slide.is-active .slide-card-img::after,
  .slide.is-active .slide-title, .slide.is-active .slide-text .btn::after { animation: none !important; }
}

/* ---------------------------------------------------------- order tracking, quotes, filters, policies (2026-10) */
@media (min-width: 900px) { .footer-grid:has(> :nth-child(4)) { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.status-tag.status-awaiting_design { background: #FDF1DC; color: #9A5B0C; }
.status-tag.status-printing, .status-tag.status-assembling { background: #EFE7FD; color: #6B35C9; }
.status-tag.status-ready { background: #E2F1F4; color: #1D6B78; }

.forgot-link { margin: -.25rem 0 .9rem; font-size: .9rem; text-align: end; }
.forgot-link a { color: var(--accent); }
.form-ok { background: #E7F4EC; color: var(--ok); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1rem; font-weight: 500; }
.order-row-link { font-size: .9rem; color: var(--accent); justify-self: start; }
.order-row-alert { font-size: .85rem; font-weight: 600; color: #9A5B0C; background: #FDF1DC; border-radius: 8px; padding: .3rem .6rem; justify-self: start; }

.order-page { display: grid; gap: 1rem; padding-bottom: 3rem; }
.order-page-main { display: grid; gap: 1rem; min-width: 0; }
@media (min-width: 900px) { .order-page { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .order-timeline { position: sticky; top: calc(var(--header-h) + 1rem); } }
.order-page-items { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.order-page-items li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: .75rem; align-items: center; }
.order-page-items .stack { display: grid; gap: .15rem; min-width: 0; }
.order-page-items small { font-size: .85rem; }
.thumb-sm { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--soft); display: block; }
.tiny-title { font-size: .92rem; font-weight: 600; margin: 1.1rem 0 .4rem; }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .92rem; word-break: break-all; }
.quote-card { border: 2px solid var(--accent); }
.quote-card.quote-approved { border-color: var(--ok); }
.quote-img { display: block; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 1rem; background: var(--soft); }
.quote-img img { width: 100%; max-height: 420px; object-fit: contain; }
.quote-note { background: var(--soft); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1rem; font-size: .95rem; }
.quote-note strong { display: block; margin-bottom: .3rem; }
.quote-note p { margin: 0 0 .3rem; }
.quote-sum { display: grid; gap: .35rem; margin: .75rem 0 1rem; }
.quote-sum > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.quote-sum .grand { font-weight: 700; font-size: 1.08rem; border-top: 1px dashed var(--line); padding-top: .45rem; }
.quote-sum dd { margin: 0; white-space: nowrap; }
.quote-actions { margin: .5rem 0; }
.quote-actions .btn { width: 100%; }
.quote-change { margin-top: .5rem; }
.quote-change > summary { list-style: none; width: 100%; justify-content: center; cursor: pointer; }
.quote-change > summary::-webkit-details-marker { display: none; }
.quote-change form { display: grid; gap: .6rem; margin-top: .75rem; }
.quote-state { font-weight: 600; margin: .4rem 0; }
.quote-state.ok { color: var(--ok); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 22px 1fr; column-gap: .6rem; padding-bottom: 1.1rem; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 10px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.is-done::before { background: var(--accent); }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); grid-row: span 2; z-index: 1; }
.timeline li.is-done .tl-dot { background: var(--accent); border-color: var(--accent); }
.timeline li.is-current .tl-dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent); }
.timeline li.is-done, .timeline li.is-current { color: var(--ink); }
.timeline li.is-current .tl-label { font-weight: 700; }
.timeline small { font-size: .78rem; }

.store-page { max-width: 820px; padding-bottom: 3rem; }
.store-page-body { line-height: 1.9; margin: 1rem 0; }

.cat-name-text { display: grid; gap: .1rem; min-width: 0; }
.cat-meta { font-size: .76rem; font-weight: 500; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-desc { margin-top: -.25rem; }
.stock-made { color: #6B35C9; }
.tag-made { background: #6B35C9; color: #fff; }
.terms-note { font-size: .82rem; color: var(--muted); margin-top: .75rem; line-height: 1.7; }
.terms-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* colour per place */
.slots { border: 0; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .85rem; }
.slot-row { display: grid; gap: .45rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s; }
.slot-row.is-missing { border-color: var(--sale); }
.slot-label { font-size: .92rem; }
.slot-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.slots:disabled .swatch { opacity: .5; cursor: not-allowed; }

/* filters */
.filter-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 1.25rem; }
.filter-toggle { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; font-weight: 600; }
.filter-toggle::-webkit-details-marker { display: none; }
.filter-count { background: var(--accent); color: #fff; border-radius: 999px; font-size: .75rem; min-width: 1.4rem; height: 1.4rem; display: inline-grid; place-items: center; padding: 0 .35rem; }
.filter-form { display: grid; gap: 1rem; padding: 0 1rem 1rem; }
@media (min-width: 900px) { .filter-form { grid-template-columns: minmax(200px, 1fr) 1.4fr 1.2fr auto; align-items: end; } }
.filter-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.filter-group legend { font-size: .85rem; font-weight: 600; margin-bottom: .45rem; padding: 0; }
.filter-price { display: flex; align-items: center; gap: .4rem; }
.filter-price .input { min-width: 0; flex: 1; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-chip { position: relative; cursor: pointer; }
.filter-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.filter-chip span { display: inline-flex; align-items: center; padding: .38rem .8rem; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; background: var(--bg); transition: background .2s, border-color .2s, color .2s; }
.filter-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-actions { display: flex; align-items: center; gap: .75rem; }
/* "pick your colour" with named places: colour 1 = …, colour 2 = … */
.pick-slots { list-style: none; margin: 0 0 .7rem; padding: 0; display: grid; gap: .4rem; }
.pick-slot { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; padding: .5rem .6rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font: inherit; color: var(--ink); cursor: pointer; text-align: start; transition: border-color .15s, background .15s; }
.pick-slot b { width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: .75rem; display: grid; place-items: center; }
.pick-slot.is-active { border-color: var(--ink); background: var(--surface); }
.pick-slot.is-active b, .pick-slot.is-set b { background: var(--ink); color: #fff; }
.pick-slot-label { font-size: .86rem; font-weight: 600; min-width: 0; }
.pick-slot-val { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.pick-slot-val em { font-style: normal; }
.pick-slot.is-set .pick-slot-val { color: var(--ink); font-weight: 600; }
.pick-slot-dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); display: none; }
.pick-slot.is-set .pick-slot-dot { display: inline-block; }
.pick-guard { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.colors { position: relative; }
.footer-about-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .55rem; font-weight: 600; color: inherit; border-bottom: 1px solid currentColor; padding-bottom: 1px; opacity: .9; }
.footer-about-link:hover { opacity: 1; }
/* live filters */
[data-results] { transition: opacity .2s; }
[data-results].is-loading { opacity: .45; pointer-events: none; }
.filter-count[hidden], [data-filter-clear][hidden] { display: none; }
@media (min-width: 900px) { .filter-form { grid-template-columns: minmax(200px, 1fr) 1.4fr 1.4fr auto; } }
/* keychain shapes (product page) */
.kc-shapes { margin-top: 12px; padding: 12px; border: 1px solid var(--line, #e6e0d8); border-radius: 14px; background: var(--surface, #fff); }
.kc-shapes[hidden] { display: none; }
.kc-shapes-title { margin: 0 0 10px; font-weight: 600; font-size: 14px; }
.kc-chosen { font-weight: 500; color: var(--muted, #6b6660); }
.kc-shape-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.kc-shape { position: relative; display: grid; justify-items: center; gap: 4px; padding: 8px 6px; border: 1.5px solid var(--line, #e6e0d8); border-radius: 12px; cursor: pointer; text-align: center; transition: border-color .15s, box-shadow .15s; }
.kc-shape input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kc-shape-img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #f4f1ec; font-size: 26px; }
.kc-shape-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kc-shape-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.kc-shape .pill-extra { font-size: 11.5px; }
.kc-shape:has(input:checked) { border-color: var(--ink, #1c1a17); box-shadow: 0 0 0 2px rgba(28,26,23,.12); }
.kc-shape:has(input:focus-visible) { outline: 2px solid var(--accent, #b5562b); outline-offset: 2px; }
/* small phones: the logo never squashes; "my account" is in the menu */
.site-header .logo { flex: none; }
.site-header .logo img { height: 40px; width: auto; max-width: 150px; object-fit: contain; }
@media (max-width: 640px) { .site-header .logo img { height: 34px; max-width: 110px; } }
@media (max-width: 350px) { .header-actions .account-btn { display: none; } }
@media (max-width: 420px) {
  .header-inner { gap: .45rem; }
  .site-header .icon-btn { width: 36px; height: 36px; }
  .header-actions { gap: 0; }
}
@media (max-width: 380px) { .site-header .logo img { max-width: 80px; } }
/* chat bubble: pick KHAAM chat or WhatsApp */
.chat-pick { position: absolute; bottom: 76px; inset-inline-end: 0; width: 250px; background: var(--surface); border-radius: 16px; box-shadow: 0 18px 50px rgba(28, 27, 25, .25); padding: 10px; display: grid; gap: 6px; animation: chatIn .2s var(--ease); }
.chat-pick[hidden] { display: none; }
.chat-pick-title { margin: 2px 6px 4px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.chat-pick-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: start; cursor: pointer; font: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
.chat-pick-btn:hover { border-color: var(--ink); background: var(--soft); }
.chat-pick-btn strong { display: block; font-size: .95rem; }
.chat-pick-btn small { color: var(--muted); font-size: .78rem; }
.chat-pick-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.chat-pick-btn.is-site .chat-pick-ico { background: var(--accent); color: #fff; }
.chat-pick-btn.is-site .chat-pick-ico img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.chat-pick-btn.is-wa .chat-pick-ico { background: #25D366; color: #fff; }
.wa-fab { position: fixed; z-index: 70; inset-inline-end: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(37, 211, 102, .4); }
/* reviews */
.stars { color: #E2A33B; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #D9D3CA; }
.rating-line { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; margin: -.2rem 0 .6rem; color: var(--ink); text-decoration: none; }
.rating-sum { display: inline-flex; align-items: center; gap: .35rem; }
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.review-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--surface); display: grid; gap: .5rem; align-content: start; }
.review-card header { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.review-card p { margin: 0; }
.review-card .verified { color: #1D7A46; font-size: .75rem; }
.review-card time { margin-inline-start: auto; }
.review-pic img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; }
.review-reply { background: var(--soft); border-radius: 10px; padding: .6rem .75rem; font-size: .9rem; }
/* review form (customer's order page) */
.review-box { margin: 1.2rem 0; padding: 1rem; border: 1px dashed var(--line); border-radius: var(--radius); background: #FFFBF4; }
.review-item { padding: .8rem 0; border-top: 1px solid var(--line); }
.review-item:first-of-type { border-top: 0; }
.review-prod { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.review-form { display: grid; gap: .5rem; }
.review-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.review-row .input { flex: 1; min-width: 140px; }
.review-photo { cursor: pointer; }
.review-done { margin: 0; }
.star-pick { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
[dir="rtl"] .star-pick { flex-direction: row-reverse; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 2rem; line-height: 1; color: #D9D3CA; cursor: pointer; transition: color .1s, transform .1s; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: #E2A33B; }
.star-pick input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.card-rating { font-size: .78rem; display: inline-flex; gap: .25rem; align-items: center; color: var(--muted); }
.qty-deals { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: #FFF7ED; border: 1px solid #FED7AA; font-size: 14px; }
.qty-deals ul { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 2px; font-weight: 600; }
.qty-deal-now { margin: 4px 0; color: #15803D; font-weight: 700; }
.qty-deal-tag { color: #C2410C; font-weight: 600; }
.per-unit { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: #F0F9FF; border: 1px solid #BAE6FD; font-size: 14px; display: grid; gap: 6px; }
.per-unit .check-inline { display: flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.per-unit-step { margin: 0; color: #0369A1; font-weight: 600; }
.btn-wa-store { background: #25D366; color: #fff; border: 0; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 6px; }
.btn-wa-store:hover { background: #1EBE5A; color: #fff; }
.cd-or { text-align: center; margin: 6px 0 12px; }
.forgot-noemail { margin-top: 16px; display: grid; gap: 8px; }
/* bundles, goes-with, gift wrap */
.bundle-box { border: 1px dashed var(--accent, #C8743A); border-radius: var(--radius); padding: .85rem 1rem; margin: 1rem 0; background: color-mix(in srgb, var(--accent, #C8743A) 6%, transparent); }
.bundle-title { margin: 0 0 .4rem; }
.bundle-items { list-style: none; margin: 0 0 .35rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.bundle-items a { text-decoration: underline; text-underline-offset: 3px; }
.cart-goes-with { margin-top: 1.25rem; }
.grid-mini { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gift-wrap-box { border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; margin: .5rem 0 1rem; display: grid; gap: .6rem; }
.gift-wrap-box .check-line { display: flex; gap: .6rem; align-items: center; cursor: pointer; }
.gift-wrap-box .check-line input { width: 18px; height: 18px; accent-color: var(--accent, #C8743A); }
.search-try { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; margin: 1rem 0 2rem; }
.chip-link { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; background: var(--surface); }
.chip-link:hover { border-color: var(--ink); }
.ver-tag { display: inline-block; font-size: .78rem; background: var(--ink); color: #fff; border-radius: 999px; padding: .1rem .55rem; vertical-align: middle; margin-inline-start: .4rem; }
.quote-check { list-style: none; padding: 0; margin: .3rem 0 .8rem; display: grid; gap: .2rem; }
.ver-history { margin-top: 1rem; font-size: .92rem; }
.ver-history summary { cursor: pointer; color: var(--muted); }
.ver-history ul { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .6rem; }
.ver-history li { display: flex; gap: .7rem; align-items: flex-start; }
.ver-history img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cd-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin: 1rem 0 1.25rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cd-steps { margin: .4rem 0 0; padding-inline-start: 1.2rem; display: grid; gap: .35rem; }
.cd-need { list-style: none; margin: .4rem 0 .5rem; padding: 0; display: grid; gap: .35rem; }
.cd-examples { margin: 0 0 1.25rem; }
.cd-ex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: .5rem; }
.cd-ex { display: grid; gap: .3rem; font-size: .85rem; text-align: center; }
.cd-ex img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
@media (max-width: 640px) { .cd-intro { grid-template-columns: 1fr; } }
.reorder-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: -.25rem 0 .75rem; }
.coll-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.coll-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; transition: border-color .15s, transform .15s; }
.coll-chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.coll-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.coll-emoji { font-size: 1.15em; }
.coll-chips-sm { margin-top: .75rem; }
.coll-chips-sm .coll-chip { padding: .4rem .85rem; font-size: .9rem; }
.faq-list { display: grid; gap: .5rem; max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: .8rem 1rem; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-a { margin-top: .5rem; color: var(--muted); line-height: 1.8; }
.tag-set { background: color-mix(in srgb, var(--accent, #C8743A) 12%, transparent); color: var(--ink); }
.kc-included { margin: .2rem 0 .4rem; font-weight: 600; }
/* shop by occasion & budget: big colourful tiles */
.coll-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .9rem; }
.coll-tile { position: relative; overflow: hidden; display: grid; align-content: space-between; gap: .35rem; min-height: 132px;
  padding: 1rem 1.1rem; border-radius: 18px; color: #fff; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); isolation: isolate; }
.coll-tile::after { content: ""; position: absolute; inset-inline-end: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); z-index: -1; }
.coll-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.coll-tile-emoji { font-size: 2.1rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .15)); }
.coll-tile-name { font-size: 1.12rem; font-weight: 700; line-height: 1.35; }
.coll-tile-meta { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; opacity: .9; }
.coll-tile-go { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .22);
  font-size: 1rem; transition: transform .2s var(--ease); }
[dir="ltr"] .coll-tile-go { transform: scaleX(-1); }
.coll-tile:hover .coll-tile-go { transform: translateX(-3px); }
.coll-c1 { background: linear-gradient(135deg, #B5562B, #E08A4E); }
.coll-c2 { background: linear-gradient(135deg, #2F6E5B, #4FA585); }
.coll-c3 { background: linear-gradient(135deg, #5B3F8C, #8C6BC8); }
.coll-c4 { background: linear-gradient(135deg, #1F5F99, #4C93D6); }
.coll-c5 { background: linear-gradient(135deg, #A33B5C, #DB6A8C); }
.coll-c6 { background: linear-gradient(135deg, #8A6A16, #C9A43A); }
@media (max-width: 640px) {
  .coll-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .coll-tiles::-webkit-scrollbar { display: none; }
  .coll-tile { flex: 0 0 62%; scroll-snap-align: start; min-height: 120px; }
}

/* ---------------------------------------------------------- categories: picture circles (phone/tablet) + side list (computer) */
.cat-circles { gap: .9rem; padding-block: 1rem .5rem; align-items: flex-start; }
.cat-circle { flex: 0 0 auto; width: 76px; display: flex; flex-direction: column; align-items: center; gap: .4rem; text-decoration: none; color: inherit; }
.cat-circle-img { width: 68px; height: 68px; border-radius: 50%; overflow: hidden; background: var(--soft); display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--line, #E6DED4); transition: box-shadow .2s, transform .2s; }
.cat-circle-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-circle-img.is-all { background: var(--ink); color: #fff; }
.cat-circle-ph { font-weight: 700; font-size: 1.4rem; color: var(--muted); }
.cat-circle-name { font-size: .78rem; line-height: 1.3; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-circle:hover .cat-circle-img { transform: translateY(-2px); }
.cat-circle[aria-current="page"] .cat-circle-img { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent, #B5552B); }
.cat-circle[aria-current="page"] .cat-circle-name { font-weight: 700; color: var(--accent, #B5552B); }
.chips.is-dragging .cat-circle { pointer-events: none; }
.cat-side { display: none; }
@media (min-width: 1100px) {
  .cat-circles-wrap { display: none; }
  .shop-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2rem; align-items: start; }
  .shop-main .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-side { display: block; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; padding-inline-end: .25rem; }
  .cat-side-title { font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); margin: 0 0 .5rem; }
  .cat-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .cat-side a { display: flex; align-items: center; gap: .65rem; padding: .45rem .55rem; border-radius: 12px; text-decoration: none; color: inherit; transition: background .15s; }
  .cat-side a:hover { background: var(--soft); }
  .cat-side a[aria-current="page"] { background: var(--ink); color: #fff; }
  .cat-side a[aria-current="page"] .cat-side-n { color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); }
  .cat-side-img { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--soft); flex: none; display: grid; place-items: center; }
  .cat-side-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .cat-side-img.is-all { background: var(--ink); color: #fff; }
  .cat-side a[aria-current="page"] .cat-side-img.is-all { background: #fff; color: var(--ink); }
  .cat-side-name { flex: 1; min-width: 0; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cat-side-n { font-size: .75rem; color: var(--muted); background: var(--soft); border-radius: 999px; padding: .05rem .5rem; }
}
@media (min-width: 1400px) { .shop-main .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------------------------------------------------------- favourites ❤️ */
.card { position: relative; }
.fav-toggle { position: absolute; top: .55rem; inset-inline-end: .55rem; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: transform .15s; }
.fav-toggle svg, .fav-inline svg { fill: none; }
.fav-toggle.is-on, .fav-inline.is-on { color: #E0245E; }
.fav-toggle.is-on svg, .fav-inline.is-on svg { fill: currentColor; }
.fav-toggle:hover { transform: scale(1.08); }
.fav-toggle.pop, .fav-inline.pop { animation: favpop .3s ease; }
@keyframes favpop { 50% { transform: scale(1.3); } }
.fav-btn { position: relative; }
.fav-count { background: #E0245E; }
.share-btn + .share-btn { margin-inline-start: .5rem; }
.free-bar-top { display: none; }
@media (max-width: 899px) { .free-bar-top { display: block; margin-bottom: 1rem; } }
@media (max-width: 479px) { .header-actions .fav-btn { display: none; } }
.card-badges { max-width: calc(100% - 3.4rem); flex-wrap: wrap; }
.card-badges .tag { white-space: normal; line-height: 1.3; }

/* ---------------------------------------------------------- name / letters preview */
.name-preview { margin-top: .75rem; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.np-plate { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 60%; max-width: 100%;
  padding: .9rem 1.6rem; border-radius: 18px; background: linear-gradient(160deg, #FFFFFF, #EFE8DF); box-shadow: 0 8px 20px rgba(0,0,0,.10), inset 0 -3px 0 rgba(0,0,0,.06); }
.np-plate.is-dark { background: linear-gradient(160deg, #3A3733, #1F1D1B); }
.np-text { font-weight: 900; line-height: 1.15; letter-spacing: .02em; word-break: break-word; text-align: center;
  text-shadow: 0 1px 0 rgba(0,0,0,.18), 0 2px 0 rgba(0,0,0,.12), 0 3px 4px rgba(0,0,0,.18); }
.np-ring { display: none; position: absolute; inset-inline-end: -14px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  border: 4px solid #B8B2AA; border-radius: 50%; background: transparent; }
.np-plate.has-ring .np-ring { display: block; }
.np-note { color: var(--muted); font-size: .75rem; }

.coll-intro { max-width: 760px; color: var(--muted); line-height: 1.8; margin: .25rem 0 .5rem; }
.coll-intro p { margin: 0 0 .5rem; }

/* ---------------------------------------------------------- corporate gifts page */
.corp-lead { max-width: 720px; color: var(--muted); line-height: 1.8; }
.corp-layout { display: grid; gap: 1.5rem; align-items: start; padding-bottom: 3rem; }
@media (min-width: 900px) { .corp-layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 2.5rem; } }
.corp-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.corp-tier { background: var(--soft); border-radius: 16px; padding: 1rem; display: flex; flex-direction: column; gap: .2rem; }
.corp-tier strong { font-size: 1.8rem; color: var(--accent, #B5552B); }
.corp-why { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; line-height: 1.7; }
.corp-form .field { display: block; margin-bottom: .8rem; }
.corp-form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: #b91c1c; background: #FDECEC; border-radius: 10px; padding: .6rem .8rem; }
.ref-box { background: var(--soft); border-radius: 16px; padding: 1rem; margin-top: 1rem; }
.ref-code { font-size: 1.5rem; font-weight: 800; letter-spacing: .08em; direction: ltr; display: inline-block; padding: .2rem .7rem; border: 2px dashed var(--accent, #B5552B); border-radius: 10px; }
.credit-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .4rem; }
.credit-list li { display: flex; justify-content: space-between; gap: .5rem; background: #fff; border-radius: 10px; padding: .5rem .7rem; }
.signup-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem;
  background: linear-gradient(135deg, #FFF4E6, #FBE9DD); border: 1px solid #F0D5C2; border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.signup-offer p { margin: .25rem 0 0; }
.signup-from-order { background: #FFF4E6; border-radius: 12px; padding: .7rem .9rem; line-height: 1.7; }

/* ---- customer fixes: clean banner on phones, chat waits below the banner, clear "pick first" */
.slide.no-text::after { display: none; }
.slide-blur { display: none; }
@media (max-width: 640px) {
  .slide:not(.has-mobile):not(.kind-side) .slide-blur {
    display: block; position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px);
    object-fit: cover; filter: blur(22px) brightness(.9) saturate(1.1); transform: none; z-index: 0;
  }
  .slide:not(.has-mobile):not(.kind-side) .slide-img:not(.slide-video) { object-fit: contain; transform: none; z-index: 0; }
  .slide:not(.no-text)::after { background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.5)); }
}
.chat, .wa-fab { transition: opacity .3s ease, transform .3s ease, visibility 0s linear 0s; }
.chat.is-waiting:not(.is-open), .wa-fab.is-waiting { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
@media (max-width: 640px) {
  .chat { inset-inline-end: 14px; bottom: 14px; }
  .chat-bubble { width: 52px; height: 52px; }
}
@keyframes khaamShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.is-shake { animation: khaamShake .45s ease; }
fieldset.is-missing .swatch-circle, fieldset.is-missing .size-pill span, fieldset.is-missing .pick-btn { box-shadow: 0 0 0 2px #c0392b; }
fieldset.is-missing > legend { color: #c0392b; }
.arrival-line { margin: .25rem 0 .9rem; font-weight: 600; color: #2f6b3a; font-size: .97rem; }
.totals + .arrival-line { margin-top: .75rem; }
.pick-hint { margin: .5rem 0 0; }
.cd-login-actions .btn-wa { background: #25D366; color: #fff; border: 0; }
.cd-login-actions .btn-wa:hover { background: #1EBE5A; color: #fff; }
.cd-idea-hint { margin-top: .6rem; }
@media (max-width: 640px) {
  /* phone banners are 4:5 (1080x1350): show the whole picture, no cut edges */
  .slides { height: clamp(400px, 125vw, 640px); }
}

/* ---- bazaars: home strip, «وين تلاقونا», pick-up choice at checkout */
.bz-strip { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 18px; border-radius: 16px; background: #fff4ea; border: 1px solid #f1d6bf; color: inherit; text-decoration: none; }
.bz-strip:hover { background: #ffeedd; }
.bz-strip-ico { font-size: 1.6rem; }
.bz-strip-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bz-strip-text small { color: var(--muted, #6b665e); }
.bz-strip-go { font-weight: 600; color: var(--accent, #B5562B); white-space: nowrap; }
.bz-page { padding-block: 2rem 3rem; display: flex; flex-direction: column; gap: 16px; }
.bz-card { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 18px; padding: 16px; }
.bz-card:not(:has(.bz-img)) { grid-template-columns: minmax(0, 1fr); }
.bz-card.is-on { border-color: var(--accent, #B5562B); }
.bz-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.bz-body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bz-name { font-size: 1.35rem; }
.bz-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bz-past { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.bz-past-item { display: flex; flex-direction: column; gap: 4px; }
.bz-past-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
@media (max-width: 640px) { .bz-card { grid-template-columns: minmax(0, 1fr); } .bz-strip-go { display: none; } }
.pickup-box { border: 1px solid var(--line, #e7e2da); border-radius: 14px; padding: 10px 14px; margin: 12px 0; display: grid; gap: 8px; }
.pickup-opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.pickup-opt input { margin-top: 5px; }

/* ---- the main hero's own phone picture */
@media (max-width: 640px) {
  .hero.has-image.has-mobile-hero, .slide.slide-hero.has-image.has-mobile-hero { background-image: var(--hero-img-m); background-position: center; }
}

/* ==========================================================================
   Dark theme for the store (Settings → store look: follow the device / button)
   ========================================================================== */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151413;
  --surface: #1F1E1C;
  --ink: #EFEBE6;
  --muted: #A8A29A;
  --line: #36332F;
  --accent: #E07A45;
  --accent-dark: #F09A6B;
  --sale: #F0725F;
  --ok: #5BC48A;
  --soft: #272522;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .25);
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .55);
}
html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { color: var(--ink); }
html[data-theme="dark"] .skip-link { color: var(--bg); }
html[data-theme="dark"] .btn-dark { color: var(--bg); }
html[data-theme="dark"] .btn-outline:hover { color: var(--bg); }
html[data-theme="dark"] .tag-dark { color: var(--bg); }
html[data-theme="dark"] .chip[aria-current="page"] { color: var(--bg); }
html[data-theme="dark"] .page-btn.is-current { color: var(--bg); }
html[data-theme="dark"] .prose { color: var(--ink); }
html[data-theme="dark"] .bar { background: var(--soft); }
html[data-theme="dark"] .pay-option { background: var(--surface); }
html[data-theme="dark"] .size-pill input:checked + span { color: var(--bg); }
html[data-theme="dark"] .as-opt.is-selected { background: var(--surface); }
html[data-theme="dark"] .form-alert { background: var(--soft); }
html[data-theme="dark"] .status-tag.status-confirmed, html[data-theme="dark"] .status-tag.status-shipped { background: var(--soft); }
html[data-theme="dark"] .status-tag.status-delivered { background: var(--soft); }
html[data-theme="dark"] .status-tag.status-cancelled { background: var(--soft); }
html[data-theme="dark"] .txt-red { color: #E59E9E; }
html[data-theme="dark"] .chat-head { color: var(--bg); }
html[data-theme="dark"] .chat-head-logo { background: var(--surface); }
html[data-theme="dark"] .chat-x:hover { background: rgba(30, 29, 27, .85); }
html[data-theme="dark"] .chat-err { color: #E59E9E; }
html[data-theme="dark"] .status-tag.status-awaiting_design { background: var(--soft); }
html[data-theme="dark"] .status-tag.status-printing, html[data-theme="dark"] .status-tag.status-assembling { background: var(--soft); color: #BCA4E6; }
html[data-theme="dark"] .status-tag.status-ready { background: var(--soft); }
html[data-theme="dark"] .form-ok { background: var(--soft); }
html[data-theme="dark"] .order-row-alert { background: var(--soft); }
html[data-theme="dark"] .stock-made { color: #BCA4E6; }
html[data-theme="dark"] .filter-chip input:checked + span { color: var(--bg); }
html[data-theme="dark"] .pick-slot.is-active b, html[data-theme="dark"] .pick-slot.is-set b { color: var(--bg); }
html[data-theme="dark"] .kc-shapes { border: 1px solid var(--line, var(--line)); }
html[data-theme="dark"] .kc-shape { border: 1.5px solid var(--line, var(--line)); }
html[data-theme="dark"] .kc-shape-img { background: var(--soft); }
html[data-theme="dark"] .review-box { background: var(--surface); }
html[data-theme="dark"] .qty-deals { background: var(--surface); border: 1px solid var(--line); }
html[data-theme="dark"] .per-unit { background: var(--surface); border: 1px solid var(--line); }
html[data-theme="dark"] .ver-tag { color: var(--bg); }
html[data-theme="dark"] .coll-chip.is-on { color: var(--bg); }
html[data-theme="dark"] .coll-tile::after { background: rgba(30, 29, 27, .85); }
html[data-theme="dark"] .coll-tile-go { background: rgba(30, 29, 27, .85); }
html[data-theme="dark"] .cat-circle-img.is-all { color: var(--bg); }
@media (min-width: 1100px) { html[data-theme="dark"] .cat-side a[aria-current="page"] { color: var(--bg); } }
@media (min-width: 1100px) { html[data-theme="dark"] .cat-side a[aria-current="page"] .cat-side-n { background: rgba(30, 29, 27, .85); } }
@media (min-width: 1100px) { html[data-theme="dark"] .cat-side-img.is-all { color: var(--bg); } }
@media (min-width: 1100px) { html[data-theme="dark"] .cat-side a[aria-current="page"] .cat-side-img.is-all { background: var(--surface); } }
html[data-theme="dark"] .fav-toggle { background: rgba(30, 29, 27, .85); }
html[data-theme="dark"] .fav-toggle.is-on, html[data-theme="dark"] .fav-inline.is-on { color: #F19CB6; }
html[data-theme="dark"] .form-error { color: #DF9898; background: var(--soft); }
html[data-theme="dark"] .credit-list li { background: var(--surface); }
html[data-theme="dark"] .signup-offer { border: 1px solid var(--line); }
html[data-theme="dark"] .signup-from-order { background: var(--soft); }
html[data-theme="dark"] .bz-strip { background: var(--soft); border: 1px solid var(--line); }
html[data-theme="dark"] .bz-strip:hover { background: var(--soft); }
html[data-theme="dark"] .pickup-box { border: 1px solid var(--line, var(--line)); }
html[data-theme="dark"] .site-footer, html[data-theme="dark"] .announcement, html[data-theme="dark"] .chat-head { background: #0E0D0C; }
html[data-theme="dark"] .btn-dark, html[data-theme="dark"] .tag-dark { background: #EFEBE6; color: #1C1B19; }
html[data-theme="dark"] .input, html[data-theme="dark"] .qty-input { background-color: var(--soft); border-color: var(--line); }
html[data-theme="dark"] .bz-strip { background: #2A1D15; border-color: #4A2F1E; }
.theme-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: inherit; border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: .9rem; }
html[data-theme="dark"] .site-header { background: rgba(21, 20, 19, .92); }
html[data-theme="dark"] .nav-panel, html[data-theme="dark"] .mobile-nav, html[data-theme="dark"] .drawer { background: var(--surface); }
html[data-theme="dark"] .hero .btn-accent, html[data-theme="dark"] .slide .btn-accent { background: #fff; color: #1C1B19; }
html[data-theme="dark"] .slide.is-light .btn-accent { background: #1C1B19; color: #fff; }

/* 🌗 theme button in the top bar: one icon for the current choice */
.theme-icon { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; }
.theme-icon .th-i { display: none; }
html:not([data-theme-pref]) .theme-icon .th-auto,
html[data-theme-pref="auto"] .theme-icon .th-auto,
html[data-theme-pref="dark"] .theme-icon .th-dark,
html[data-theme-pref="light"] .theme-icon .th-light { display: block; }
@media (max-width: 359px) { .header-actions .theme-icon { display: none; } }

/* a size with its own photo: a small picture inside the button */
.size-pill.has-photo span { display: inline-flex; align-items: center; gap: 8px; padding-block: 4px; padding-inline: 4px 14px; }
.size-pill.has-photo img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; background: var(--soft); flex: none; }
/* order page: the code + QR shown at the bazaar booth */
.pickup-card { margin-bottom: 1rem; border: 1.5px dashed var(--accent); }
.pickup-card.is-done { border-style: solid; border-color: var(--line); }
.pickup-body { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: .5rem; }
.pickup-qr svg { display: block; width: 168px; height: 168px; border-radius: 10px; background: #fff; }
.pickup-code { display: flex; flex-direction: column; gap: 2px; }
.pickup-code strong { font-size: 2.4rem; letter-spacing: .25em; line-height: 1; }
/* bazaar booth page (the booth QR) */
.bzp { padding-block: 1.25rem 2.5rem; }
.bzp-head .page-title { margin-bottom: .25rem; }
.bzp-over { font-weight: 600; color: var(--accent); }
.bzp-mine { margin: 1rem 0 1.75rem; border: 1.5px solid var(--accent); }
.bzp-find { display: flex; flex-direction: column; gap: .6rem; }
.bzp-find-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: .5rem; }
.bzp-order { border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; margin-bottom: .75rem; }
.bzp-order-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.bzp-state { font-weight: 600; font-size: .95rem; }
.bzp-ready .bzp-state { color: #16803c; }
.bzp-making .bzp-state { color: var(--accent); }
.bzp-given { opacity: .8; }
.bzp-items { margin: .5rem 0; padding-inline-start: 1.1rem; line-height: 1.8; }
.bzp-confirm { display: flex; flex-direction: column; gap: .5rem; }
.bzp-pay { font-size: 1rem; }
.bzp-code { display: flex; flex-direction: column; align-items: flex-start; }
.bzp-code strong { font-size: 2rem; letter-spacing: .2em; }
.bzp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.bzp-item { display: flex; flex-direction: column; gap: .2rem; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .5rem; }
.bzp-item img, .bzp-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--soft); display: block; }
.bzp-price { font-weight: 700; }
/* store app: install bar, iPhone steps, order notifications */
.app-bar { position: fixed; inset-inline-start: 12px; inset-inline-end: 84px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.15); max-width: 480px; margin-inline: auto; }
.app-bar[hidden] { display: none; }
.app-bar img { border-radius: 10px; flex: none; }
.app-bar div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.app-bar small { color: var(--muted); font-size: .8rem; }
.app-bar-x { border: 0; background: none; font-size: 1.4rem; color: var(--muted); cursor: pointer; padding: 0 4px; }
.app-ios { border: 0; border-radius: 18px; padding: 1.25rem; max-width: 360px; width: calc(100% - 32px); }
.app-ios::backdrop { background: rgba(0,0,0,.45); }
.app-ios ol { line-height: 2; padding-inline-start: 1.2rem; }
.app-ios-share { display: inline-block; border: 1.5px solid currentColor; border-radius: 6px; padding: 0 5px; font-size: .85rem; }
.app-notify { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; border: 1.5px dashed var(--line); }
.app-notify[hidden] { display: none; }
.app-notify > div { flex: 1 1 220px; display: flex; flex-direction: column; }
.app-offers { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; }

/* ---------- buy box extras (Control panel → Features) */
.proof-line, .cutoff-line { margin: .1rem 0 .5rem; font-size: .93rem; font-weight: 600; color: var(--accent-dark); }
.cutoff-line { color: #2f6b3a; }
.est-total { margin: .9rem 0 .4rem; padding: .55rem .8rem; border-radius: var(--radius-sm); background: var(--soft); font-weight: 600; font-size: .95rem; }
.buy-notes { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .6rem 0 0; font-size: .9rem; color: var(--muted); }
.buy-notes a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sticky-buy { display: none; }
@media (max-width: 860px) {
  .sticky-buy:not([hidden]) { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 60; align-items: center; gap: .75rem;
    padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .sticky-buy-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .85rem; overflow: hidden; }
  .sticky-buy-name, .sticky-buy-name b { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  .sticky-buy-name b { font-size: 1rem; }
  .sticky-buy .btn { flex: none; min-height: 46px; }
  body.has-sticky-buy { padding-bottom: 76px; }
  body.has-sticky-buy .chat { bottom: 88px; transition: bottom .2s; }
  body.has-sticky-buy .app-bar { display: none; }
}
.rv-strip { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0 .9rem; scroll-snap-type: x mandatory; }
.rv-pic { flex: none; width: 92px; height: 92px; border-radius: var(--radius-sm); overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); }
.rv-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-card:target { outline: 2px solid var(--accent); outline-offset: 2px; }
.field-why { margin: .3rem 0 0; font-size: .85rem; color: var(--muted); }
.party-hero { padding: 1.4rem 0 .4rem; }
.party-tiers { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.party-tiers li { padding: .35rem .8rem; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: .9rem; }
.party-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }

/* ---------- the look of the name: icon, font, text shape (picked by the customer) */
.look-box { display: grid; gap: 14px; margin: 14px 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.look-part { border: 0; margin: 0; padding: 0; min-width: 0; }
.look-cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 6px; }
.look-cat { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer; min-height: 34px; }
.look-cat.is-on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.look-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; max-height: 236px; overflow-y: auto; padding: 2px; }
.look-icon { position: relative; display: grid; place-items: center; height: 52px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; color: var(--ink); background: var(--surface); }
.look-icon[hidden] { display: none; }
.look-icon input, .look-font input, .look-shape input { position: absolute; opacity: 0; pointer-events: none; }
.look-icon:has(input:checked), .look-font:has(input:checked), .look-shape:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; color: var(--accent); }
.look-icon:has(input:focus-visible), .look-font:has(input:focus-visible), .look-shape:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.look-icon.is-none span { color: var(--muted); font-size: 1.1rem; }
.look-icon-pic svg, .look-icon-pic img { display: block; }
.look-plus { position: absolute; top: 2px; inset-inline-end: 4px; font-size: .7rem; color: var(--accent); font-weight: 700; }
.look-fonts { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; }
.look-font { position: relative; flex: none; display: grid; justify-items: center; gap: 2px; min-width: 104px; max-width: 160px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; scroll-snap-align: start; background: var(--surface); }
.lf-sample { font-size: 1.45rem; line-height: 1.4; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.look-font small { color: var(--muted); font-size: .78rem; }
.look-shapes { display: flex; flex-wrap: wrap; gap: 6px; }
.look-shape { position: relative; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: .9rem; background: var(--surface); }
.np-plate { gap: .4rem; flex-wrap: wrap; }
.np-icon { display: inline-flex; } .np-icon svg, .np-icon img { width: 2.2rem; height: 2.2rem; }
.np-shape { display: block; width: min(320px, 100%); }
.np-shape svg { width: 100%; height: auto; overflow: visible; }
.occasion-strip { background: var(--accent); color: var(--accent-ink); text-align: center; font-weight: 700; }
.occasion-strip a, .occasion-strip p { display: block; color: inherit; padding: .6rem 16px; margin: 0; text-decoration: none; }
html[dir="ltr"] .occasion-strip span { display: inline-block; transform: scaleX(-1); }
.remind-box { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.remind-have { list-style: none; margin: 0; padding: 0; font-size: .9rem; color: var(--muted); }
.np-text[hidden], .np-shape[hidden], .np-icon[hidden] { display: none !important; }

/* ---------------------------------------------------------- dark: chosen options must stand out */
html[data-theme="dark"] .size-pill span { border-color: #4A4540; background: var(--surface); color: var(--ink); }
html[data-theme="dark"] .size-pill:hover span { border-color: #8A837A; }
html[data-theme="dark"] .size-pill input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 3px rgba(224, 122, 69, .25); }
html[data-theme="dark"] .size-pill input:checked + span .pill-extra { color: #fff; opacity: .9; }
html[data-theme="dark"] .filter-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
html[data-theme="dark"] .swatch-circle { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
html[data-theme="dark"] .swatch input:checked + .swatch-circle { outline: 3px solid var(--accent); outline-offset: 3px; transform: scale(1.04); }
html[data-theme="dark"] .kc-shape { border-color: #4A4540; background: var(--surface); }
html[data-theme="dark"] .kc-shape:hover { border-color: #8A837A; }
html[data-theme="dark"] .kc-shape:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset, 0 0 0 4px rgba(224, 122, 69, .2); background: rgba(224, 122, 69, .1); }
html[data-theme="dark"] .kc-shape:has(input:checked) .kc-shape-name { color: var(--accent); }
html[data-theme="dark"] .look-icon, html[data-theme="dark"] .look-font, html[data-theme="dark"] .look-shape { border-color: #4A4540; }
html[data-theme="dark"] .look-icon:has(input:checked), html[data-theme="dark"] .look-font:has(input:checked),
html[data-theme="dark"] .look-shape:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; background: rgba(224, 122, 69, .1); color: var(--accent); }
/* a chosen card also gets a small ✓ (both themes) */
.kc-shape:has(input:checked)::after { content: "✓"; position: absolute; top: 4px; inset-inline-end: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* ---------- «صمّم ميداليتك»: the customer designs the name keychain */
.tag-box .tag-head { margin: 0; display: grid; gap: 2px; }
.tag-shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.tag-shape, .tag-emoji, .tag-color { position: relative; cursor: pointer; }
.tag-shape input, .tag-emoji input, .tag-color input { position: absolute; opacity: 0; pointer-events: none; }
.tag-shape span { display: grid; place-items: center; gap: 2px; min-height: 64px; padding: 6px 4px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: .8rem; text-align: center; }
.tag-shape .tag-sh { font-style: normal; font-size: 1.35rem; line-height: 1; font-weight: 700; }
.tag-shape .look-plus { position: static; }
.tag-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-color span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line); }
.tag-emojis { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-emoji span { display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: 1.25rem; background: var(--surface); }
.tag-shape:has(input:checked) span, .tag-emoji:has(input:checked) span { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; color: var(--accent); }
.tag-color:has(input:checked) span { box-shadow: 0 0 0 2.5px var(--accent); }
.tag-shape:has(input:focus-visible) span, .tag-emoji:has(input:focus-visible) span, .tag-color:has(input:focus-visible) span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- «صفحة المنتج أقصر على الموبايل» */
@media (max-width: 700px) {
  .m-compact .gallery-main { aspect-ratio: 5 / 4; }
  .m-compact .gallery-main img { object-fit: contain; }
  .m-compact .size-pills { display: grid; grid-template-columns: 1fr 1fr; }
  .m-compact .size-pill, .m-compact .size-pill span { width: 100%; min-width: 0; }
}
.remember-me { display: flex; margin: 0 0 10px; } .again-form { margin-top: 8px; }
.mini-edit { display: inline-flex; gap: 4px; margin-inline-start: auto; }
.mini-edit button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.mini-edit button:disabled { opacity: .4; cursor: default; }
.mini-items li { flex-wrap: wrap; }
.co-addons { margin: 10px 0 14px; display: grid; gap: 6px; }
.co-addons .small-title { margin: 0; }
.co-addon { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px dashed var(--line); border-radius: 10px; color: inherit; text-decoration: none; font-size: .9em; }
.co-addon img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }
.co-addon span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-addon em { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--ink, #222); color: var(--bg, #fff); display: grid; place-items: center; }
.co-addon:hover { border-style: solid; }
.tag-emo-picked { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 44px; padding: 6px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; }
.tag-emo-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1.5px solid var(--accent); border-radius: 99px; background: var(--surface); font-size: 1.3rem; cursor: pointer; color: inherit; }
.tag-emo-chip i { font-style: normal; font-size: .8rem; opacity: .6; }
.tag-emo-sides { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.tag-emo-sides .is-off { opacity: .4; }
.tag-emo-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 6px; scrollbar-width: thin; }
.tag-emo-tabs button { flex: none; border: 1px solid var(--line); background: var(--surface); color: inherit; border-radius: 99px; padding: 5px 10px; font: inherit; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.tag-emo-tabs button.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tag-emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 4px; max-height: 220px; overflow-y: auto; padding: 2px; }
.tag-emo { height: 40px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 1.25rem; cursor: pointer; padding: 0; }
.tag-emo.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.tag-emo:disabled { opacity: .35; cursor: not-allowed; }
.tag-emo-any { margin-top: 8px; }
/* the icon picker looks like the emoji picker */
.look-cat { padding: 5px 10px; min-height: 32px; white-space: nowrap; }
.look-icons { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; max-height: 220px; }
.look-icon { height: 44px; }
.look-icon .look-icon-pic svg, .look-icon .look-icon-pic img { width: 26px; height: 26px; }
.look-chip { color: var(--accent); }
.look-chip svg, .look-chip img { width: 24px; height: 24px; display: block; }
.look-chip b { font-size: .85rem; font-weight: 600; color: var(--ink); }
