/* Waqtee A3 page set (2 Nov 2026)
   Shared styles for the pages built from design/pages/ on top of the homepage CSS.
   Same system as the homepage: square corners, Outfit + Cairo, teal #1BCCC7,
   16px phone gutter, one main action per block, Arabic designed not mirrored. */

/* ---------------------------------------------------------------- page head */
.ph { padding-block: clamp(20px, 3vw, 36px) clamp(16px, 2vw, 24px); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .ic { width: 14px; height: 14px; opacity: .6; }
.ph h1 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
[dir="rtl"] .ph h1 { letter-spacing: 0; line-height: 1.3; }
.ph .ph-sub { color: var(--muted); margin-top: 8px; max-width: 62ch; }
.ph-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ph-count { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.page-sec { padding-block: clamp(32px, 4.5vw, 64px); }
.page-sec + .page-sec { border-top: 1px solid var(--line); }
.page-sec h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.85rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
[dir="rtl"] .page-sec h2 { letter-spacing: 0; line-height: 1.35; }

/* ---------------------------------------------------------------- forms */
.fld { display: grid; gap: 6px; }
.fld > span, .fld > label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.fld small { color: var(--muted); font-size: .8rem; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line-2); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 1rem; border-radius: 0; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.textarea { min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-inline-end: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-size: 6px 6px; background-repeat: no-repeat; background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; }
[dir="rtl"] .select { background-position: 14px 50%, 20px 50%; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--teal-700); box-shadow: 0 0 0 4px rgb(27 204 199 / .18); }
.input:user-invalid, .textarea:user-invalid { border-color: var(--sale); }
.phone-in { direction: ltr; display: flex; align-items: stretch; border: 1.5px solid var(--line-2); background: var(--surface); }
.phone-in:focus-within { border-color: var(--teal-700); box-shadow: 0 0 0 4px rgb(27 204 199 / .18); }
.phone-in .cc { display: grid; place-items: center; padding: 0 14px; background: var(--well); border-right: 1px solid var(--line); font-weight: 600; color: var(--ink-2); }
.phone-in input { text-align: left; direction: ltr; flex: 1; min-width: 0; min-height: 50px; border: 0; padding: 0 14px; font: inherit; font-size: 1.05rem; letter-spacing: .04em; background: transparent; color: var(--ink); }
.phone-in input:focus { outline: 0; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .span { grid-column: 1 / -1; } }

/* switch row (gift, in-stock only) */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; min-height: 48px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .sw { flex: none; position: relative; width: 46px; height: 26px; background: var(--line-2); border-radius: 999px; transition: background-color .2s var(--ease); }
.switch .sw::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .25s var(--ease); }
.switch input:checked + .sw { background: var(--teal-700); }
.switch input:checked + .sw::after { transform: translateX(20px); }
[dir="rtl"] .switch input:checked + .sw::after { transform: translateX(-20px); }
.switch input:focus-visible + .sw { outline: 3px solid var(--teal-700); outline-offset: 2px; }
.switch .sw-l b { display: block; font-weight: 600; }
.switch .sw-l small { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }

/* check rows (filters) */
.chk { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.chk input { appearance: none; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--line-2); background: var(--surface); display: grid; place-items: center; margin: 0; }
.chk input:checked { background: var(--ink); border-color: var(--ink); }
.chk input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.chk input:focus-visible { outline: 3px solid var(--teal-700); outline-offset: 2px; }
.chk .n { margin-inline-start: auto; color: var(--muted); font-size: .85rem; }

/* quantity stepper */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); height: 40px; }
.qty button { width: 38px; height: 100%; display: grid; place-items: center; color: var(--ink); }
.qty button:hover { background: var(--well); }
.qty button[disabled] { opacity: .35; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }

/* ---------------------------------------------------------------- accordion (native details) */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding-block: 14px; cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; width: 10px; height: 10px; border-inline-end: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--ease); }
.acc details[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.acc summary:focus-visible { outline: 3px solid var(--teal-700); outline-offset: 2px; }
.acc .acc-body { padding-bottom: 20px; color: var(--ink-2); line-height: 1.65; max-width: 70ch; }
.acc .acc-body p + p, .acc .acc-body p + ul, .acc .acc-body ul + p { margin-top: 10px; }
.acc .acc-body ul { padding-inline-start: 1.2em; display: grid; gap: 4px; }

/* spec table */
.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: start; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 44%; color: var(--muted); font-weight: 500; padding-inline-end: 16px; }
.specs td { font-weight: 500; }

/* ---------------------------------------------------------------- product grid (listing, search, wishlist) */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; list-style: none; padding: 0; }
.pgrid > li { display: flex; min-width: 0; }
@media (min-width: 769px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; } }
@media (min-width: 1180px) { .pgrid.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .pgrid .pc { gap: 10px; }
  .pgrid .pc .pc-btn { width: 38px; height: 38px; top: 8px; }
  .pgrid .pc-hint { display: none; }
  .pgrid .pc-model { font-size: .92rem; }
}
/* sold out (listed last, never hidden) */
.pc.is-oos .pc-front img { opacity: .55; filter: grayscale(.4); }
.pc-oos { position: absolute; inset-inline-start: 0; bottom: 0; z-index: 2; background: var(--ink); color: #F4FAFA; font-size: .74rem; font-weight: 600; padding: 5px 9px; }

/* gift tile inside the grid: the one non-product tile */
.gtile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; min-height: 100%; padding: 18px; background: var(--bar); color: #F1F7F7; text-decoration: none; overflow: hidden; isolation: isolate; }
.gtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .62; transition: transform .8s var(--ease); }
.gtile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(16 26 27 / .92) 10%, rgb(16 26 27 / .1) 70%); }
.gtile:hover img { transform: scale(1.04); }
.gtile b { font-size: clamp(1.05rem, .9rem + .6vw, 1.35rem); font-weight: 600; line-height: 1.2; text-wrap: balance; }
.gtile span { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--teal); }

/* ---------------------------------------------------------------- listing */
.lst { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: clamp(48px, 6vw, 84px); }
@media (min-width: 1001px) { .lst { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; } }
.lst-side { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding-inline-end: 6px; }
.lst-side h2 { font-size: 1rem; font-weight: 600; }
@media (max-width: 1000px) { .lst-side { display: none; } }
.f-group { border-bottom: 1px solid var(--line); padding-block: 16px; }
.f-group:first-child { padding-top: 0; }
.f-group > h3 { font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.f-more { margin-top: 4px; font-weight: 600; font-size: .88rem; color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 8px; border: 1.5px solid var(--line); background: var(--surface); font-size: .88rem; }
[dir="rtl"] .swatch { padding: 0 8px 0 12px; }
.swatch i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .12); background: var(--c); }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* toolbar: sticky on phones under the header */
.lst-bar { display: flex; align-items: center; gap: 12px; }
.lst-main { min-width: 0; }
.lst-bar .quick { flex: 1; min-width: 0; }
.lst-main > .applied { margin-top: 14px; }
@media (min-width: 1001px) { .lst-bar .quick { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; } }
@media (max-width: 1000px) { .lst-main { padding-top: 14px; } }
.lst-tools { display: none; }
@media (max-width: 1000px) {
  .lst-tools { position: sticky; top: var(--sticky-top, 64px); z-index: 20; display: grid; grid-template-columns: 1fr 1fr; background: var(--canvas); border-block: 1px solid var(--line); margin-inline: calc(-1 * var(--gutter)); transition: top .25s var(--ease); }
  .lst-tools button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; font-weight: 600; }
  .lst-tools button + button { border-inline-start: 1px solid var(--line); }
  .lst-tools .badge { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; background: var(--teal); color: var(--teal-ink); font-size: .74rem; border-radius: 999px; }
}
.lst-sort { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); }
.lst-sort .select { min-height: 42px; width: auto; font-size: .92rem; font-weight: 600; color: var(--ink); }
@media (max-width: 1000px) { .lst-sort { display: none; } }
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.quick::-webkit-scrollbar { display: none; }
.qchip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.qchip:hover { border-color: var(--ink-2); }
.qchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #F4FAFA; }
.applied { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.applied:empty { display: none; }
.achip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 8px 0 12px; background: var(--tint); color: var(--teal-800); font-size: .85rem; font-weight: 600; }
[dir="rtl"] .achip { padding: 0 12px 0 8px; }
.achip .ic { width: 14px; height: 14px; }
.clear-all { font-size: .85rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); padding: 6px 4px; }
.more-wrap { display: grid; justify-items: center; gap: 14px; margin-top: 40px; }
.more-wrap p { color: var(--muted); font-size: .9rem; }
.more-bar { width: min(240px, 60%); height: 3px; background: var(--line); position: relative; }
.more-bar span { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--ink); width: var(--w, 0%); }
.empty { display: grid; justify-items: start; gap: 14px; padding: 40px 0; max-width: 46ch; }
.empty h2 { font-size: 1.35rem; font-weight: 600; }
.empty p { color: var(--muted); }

/* ---------------------------------------------------------------- sheet (filters, sort) */
.sheet { position: fixed; inset: 0; z-index: var(--z-drawer); }
.sheet-scrim { position: absolute; inset: 0; background: rgb(16 24 24 / .45); opacity: 0; transition: opacity .25s var(--ease); }
.sheet-panel { position: absolute; inset-inline: 0; bottom: 0; max-height: 92dvh; display: flex; flex-direction: column; background: var(--canvas); transform: translateY(100%); transition: transform .32s var(--ease); }
.sheet.open .sheet-scrim { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) 10px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 1.15rem; font-weight: 600; }
.sheet-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
.sheet-body { overflow: auto; padding: 8px var(--gutter) 16px; flex: 1; overscroll-behavior: contain; }
.sheet-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.sheet-foot .btn { width: 100%; }
@media (min-width: 1001px) {
  .sheet-panel { inset-block: 0; inset-inline: auto 0; width: 420px; max-height: none; transform: translateX(100%); }
  [dir="rtl"] .sheet-panel { inset-inline: auto 0; transform: translateX(-100%); }
  .sheet.open .sheet-panel { transform: none; }
  .sheet-head::before { display: none; }
}
.sort-list { display: grid; }
.sort-list button { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--line); font-weight: 500; text-align: start; }
.sort-list button[aria-pressed="true"] { font-weight: 700; }
.sort-list button[aria-pressed="true"]::after { content: ""; width: 12px; height: 7px; border: 2.5px solid var(--teal-700); border-top: 0; border-inline-end: 0; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- brand head */
.bhead { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 32px); align-items: center; padding-block: clamp(20px, 3vw, 32px); }
.bhead .blogo { width: clamp(96px, 18vw, 180px); aspect-ratio: 3 / 2; display: grid; place-items: center; background: var(--well); border: 1px solid var(--line); }
.bhead .blogo img { max-width: 72%; max-height: 60%; object-fit: contain; }
.bhead h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.bhead .ar-name { color: var(--muted); margin-top: 4px; }

/* ---------------------------------------------------------------- notes, panels */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--tint); color: var(--teal-800); font-size: .92rem; line-height: 1.5; }
.note .ic { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.panel { border: 1px solid var(--line); background: var(--surface); padding: clamp(18px, 2.4vw, 28px); }
.panel-dark { background: var(--bar); color: var(--bar-ink); border: 0; }
.kv { display: grid; gap: 10px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 600; text-align: end; }
.kv .total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 1.12rem; }
.kv .total dt { color: var(--ink); font-weight: 600; }
.free { color: var(--teal-700); }
.sample-tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 7px; background: var(--well); color: var(--muted); border: 1px dashed var(--line-2); vertical-align: middle; }

/* sticky action bar for phones (product, bag) */
.buybar { position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-tab); display: none; align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgb(255 255 255 / .97); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgb(16 44 43 / .35); transform: translateY(110%); transition: transform .3s var(--ease); }
.buybar.show { transform: none; }
.buybar .bb-price { display: grid; line-height: 1.2; }
.buybar .bb-price b { font-size: 1.1rem; }
.buybar .bb-price small { color: var(--muted); font-size: .78rem; }
.buybar .btn { flex: 1; }
@media (max-width: 1000px) {
  body.has-buybar .buybar { display: flex; }
  body.has-buybar .tabbar { display: none; }
  body.has-buybar .wa { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------------------------------------------------------------- two-column page layout (help, account, policy) */
.split { display: grid; gap: 32px; padding-bottom: clamp(48px, 6vw, 84px); }
@media (min-width: 1001px) { .split { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; } .split > aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.toc { display: grid; border-top: 1px solid var(--line); }
.toc a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 500; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.toc a[aria-current="true"] { box-shadow: inset 3px 0 0 var(--teal); padding-inline-start: 12px; }
[dir="rtl"] .toc a[aria-current="true"] { box-shadow: inset -3px 0 0 var(--teal); }
.prose { max-width: 70ch; line-height: 1.7; color: var(--ink-2); }
.prose h2 { color: var(--ink); margin-top: 36px; margin-bottom: 10px; scroll-margin-top: 140px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); font-size: 1.05rem; font-weight: 600; margin-top: 20px; margin-bottom: 6px; }
.prose p + p, .prose ul, .prose ol { margin-top: 10px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; display: grid; gap: 6px; }

/* contact rows */
.reach { display: grid; gap: 0; border-top: 1px solid var(--line); }
.reach a, .reach div { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding-block: 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.reach .r-ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--tint); color: var(--teal-800); }
.reach b { display: block; font-weight: 600; }
.reach small { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.reach .ic.go { color: var(--muted); }
.reach a:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* phones: the WhatsApp bubble sits above the tab bar already; pages with forms keep it out of the way */
@media (max-width: 768px) { body[data-page="signin"] .wa { display: none; } }

/* square system covers the sheets too (they sit outside <main>) */
.sheet, .sheet *, .sheet *::before, .sheet *::after, .buybar, .buybar * { border-radius: 0 !important; }
body:has(.sheet:not([hidden])) #wq-preview, body.has-buybar #wq-preview { display: none; }
