/* Kettana storefront */
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/readex-pro-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/readex-pro-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/readex-pro-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/readex-pro-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/readex-pro-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/readex-pro-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

:root {
  --bg: #ffffff;
  --ink: #161616;
  --ink-2: #3a3a3a;
  --muted: #666666;      /* 5.7:1 on white */
  --rule: #e4e4e4;
  --rule-strong: #c9c9c9;
  --wash: #f4f4f4;
  --error: #b3261e;      /* 6.3:1 on white */
  --focus: #161616;
  --font: "Readex Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --gutter: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
@media (pointer: fine) { html { overscroll-behavior: none; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--ink); color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .3em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.strong { font-weight: 600; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--rule); }
.hdr { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.wordmark { font-weight: 500; font-size: 15px; letter-spacing: .34em; text-decoration: none; margin: 0; line-height: 1; padding-block: 14px; }
.hdr-end { display: flex; align-items: center; gap: 4px; margin-inline-end: -10px; }
.lang-switch { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; font-size: .875rem; color: var(--ink-2); text-decoration: none; }
.lang-switch:hover { color: var(--ink); text-decoration: underline; }
.lang-switch:lang(ar) { font-size: .9375rem; }
.hdr-order { position: relative; display: grid; place-items: center; width: 44px; height: 44px; text-decoration: none; }
.hdr-count { position: absolute; top: 2px; inset-inline-end: -2px; min-width: 18px; height: 18px; padding-inline: 4px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 500; }

/* product */
@media (min-width: 992px) {
  .product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; padding-top: 32px; align-items: start; }
  .buy { position: sticky; top: 88px; }
}
.gallery { margin-inline: calc(var(--gutter) * -1); position: relative; }
@media (min-width: 992px) { .gallery { margin-inline: 0; } }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; aspect-ratio: 4 / 5; scroll-snap-align: start; background: var(--wash); overflow: hidden; }
.g-slide img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.gallery.swapping .g-slide img { opacity: 0; }
@media (min-width: 992px) {
  .g-track { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; }
  .g-slide:first-child { grid-column: 1 / -1; }
}
.g-dots { display: flex; justify-content: center; gap: 6px; padding-top: 12px; }
.g-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--rule-strong); transition: background .2s; }
.g-dots span[aria-current="true"] { background: var(--ink); }
@media (min-width: 992px) { .g-dots { display: none; } }

.buy { padding-top: 24px; }
@media (min-width: 992px) { .buy { padding-top: 0; } }
.p-name { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 500; line-height: 1.35; }
.p-price { margin-top: 6px; font-size: 1.25rem; }
.from { color: var(--muted); font-size: .9em; margin-inline-end: 5px; }
.p-line { margin-top: 10px; color: var(--muted); font-size: .9375rem; }

.label { display: block; font-size: .8125rem; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); margin-bottom: 10px; }
.sizes { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.sizes legend { padding: 0; }
.size-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.size-opts input { position: absolute; opacity: 0; pointer-events: none; }
.opt { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--rule-strong); cursor: pointer; transition: border-color .15s, box-shadow .15s; user-select: none; }
.opt .o-n { font-weight: 500; }
.opt .o-m { font-size: .8125rem; color: var(--muted); }
.opt:hover { border-color: var(--ink); }
.size-opts input:checked + .opt { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.size-opts input:focus-visible + .opt { outline: 2px solid var(--focus); outline-offset: 3px; }
.size-opts input:disabled + .opt { cursor: not-allowed; color: var(--muted); background: var(--wash); border-color: var(--rule); }
.size-opts input:disabled + .opt .o-n { text-decoration: line-through; text-decoration-thickness: 1px; }
.stock-note { margin-top: 10px; font-size: .875rem; color: var(--ink-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-weight: 500; font-size: 1rem; text-decoration: none; border-radius: 0; transition: background-color .15s, color .15s, opacity .15s; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #333; border-color: #333; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn:active { opacity: .85; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }
#buyBtn { margin-top: 20px; }
.btn-sum::before { content: "·"; margin-inline: 2px 8px; opacity: .6; }
.btn-sum:empty { display: none; }

.assure { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; font-size: .9375rem; }
.assure li { display: flex; align-items: center; gap: 12px; }
.assure .ico { width: 20px; height: 20px; color: var(--ink-2); }

.details { margin-top: 28px; border-top: 1px solid var(--rule); }
.details details { border-bottom: 1px solid var(--rule); }
.details summary, .more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-weight: 500; }
.details summary::-webkit-details-marker, .more summary::-webkit-details-marker { display: none; }
.details summary::after, .more summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); flex: none; }
.details details[open] summary::after, .more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.d-body { padding-bottom: 20px; color: var(--ink-2); font-size: .9375rem; max-width: 62ch; }
.d-body p + p { margin-top: 8px; }
.spec { margin: 0; display: grid; gap: 8px; }
.spec div { display: flex; justify-content: space-between; gap: 16px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; text-align: end; }

/* sections */
.sec-title { font-size: 1.25rem; font-weight: 500; margin-bottom: 20px; }
.others { margin-top: 64px; }
@media (min-width: 992px) { .others { margin-top: 96px; } }
.o-list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 42%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.o-list::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .o-list { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); margin-inline: 0; padding-inline: 0; overflow: visible; gap: 24px; } }
.o-list li { scroll-snap-align: start; }
.o-card { display: block; text-decoration: none; }
.o-card .o-img { aspect-ratio: 4 / 5; background: var(--wash); overflow: hidden; }
.o-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.o-card:hover img { transform: scale(1.03); }
.o-card .o-t { display: block; margin-top: 10px; font-weight: 500; }
.o-card .o-p { display: block; color: var(--muted); font-size: .9375rem; }

.order { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--rule); scroll-margin-top: 56px; }
@media (min-width: 992px) { .order { margin-top: 112px; padding-top: 56px; } }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.order-grid > * { min-width: 0; }
@media (min-width: 992px) { .order-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; } .summary { order: 2; position: sticky; top: 88px; } .form { order: 1; } }

.summary { border: 1px solid var(--rule); padding: 20px; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--rule); }
.line:first-child { padding-top: 0; }
.line img { width: 56px; height: 70px; object-fit: cover; background: #fff; }
.l-n { font-weight: 500; line-height: 1.4; }
.l-m { font-size: .875rem; color: var(--muted); }
.l-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule-strong); background: #fff; }
.qty button { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; }
.qty button .ico { width: 16px; height: 16px; }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 24px; text-align: center; font-size: .9375rem; }
.rm { border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: .3em; min-height: 44px; padding-inline: 10px; font-size: .875rem; }
.rm:hover { color: var(--ink); }
.l-p { font-size: .9375rem; white-space: nowrap; }
.note-line .l-note { grid-column: 1 / -1; }
.l-note { grid-column: 2 / -1; font-size: .8125rem; color: var(--muted); }
.empty-lines { color: var(--muted); font-size: .9375rem; }
.empty-lines a { color: var(--ink); }
.totals { margin: 16px 0 0; display: grid; gap: 6px; font-size: .9375rem; }
.totals div { display: flex; justify-content: space-between; gap: 16px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals .grand { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--rule-strong); font-weight: 500; font-size: 1.0625rem; }
.totals .grand dt { color: var(--ink); }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--rule-strong); border-radius: 0; background-color: #fff; color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.field textarea { resize: vertical; line-height: 1.6; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23161616' stroke-width='1.5'/%3E%3C/svg%3E"); background-position: left 16px center; background-size: 12px 8px; background-repeat: no-repeat; padding-left: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #767676; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field [aria-invalid="true"], .field [aria-invalid="true"]:focus { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.err { color: var(--error); font-size: .875rem; }
.err:empty { display: none; }
.more { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.more summary { font-weight: 400; font-size: .9375rem; }
.more[open] { padding-bottom: 18px; }
.more .field + .field { margin-top: 14px; }
.form-error { border: 1px solid var(--error); color: var(--error); padding: 12px 14px; font-size: .9375rem; }
.form-error a { color: inherit; font-weight: 500; }
.fine { font-size: .8125rem; color: var(--muted); text-align: center; margin-top: -6px; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* done */
.done { max-width: 560px; text-align: center; padding-block: 64px 40px; display: grid; gap: 10px; justify-items: center; }
.done-ico { width: 56px; height: 56px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.done-items { list-style: none; padding: 0; margin: 4px 0; color: var(--muted); font-size: .9375rem; }
.done-total { font-size: 1.125rem; }
.done-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }

/* footer */
.site-footer { margin-top: 96px; border-top: 1px solid var(--rule); padding-block: 40px calc(96px + env(safe-area-inset-bottom)); font-size: .9375rem; }
@media (min-width: 992px) { .site-footer { padding-bottom: 40px; } }
.foot { display: grid; gap: 24px; }
@media (min-width: 768px) { .foot { grid-template-columns: 2fr 1fr; } .copy { grid-column: 1 / -1; } }
.foot .wordmark { padding: 0 0 12px; display: block; }
.foot .muted { max-width: 46ch; }
.contact { display: grid; gap: 4px; align-content: start; }
.contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.copy { color: var(--muted); font-size: .8125rem; }

/* sticky bar (mobile) */
.sticky-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--rule); box-shadow: 0 -6px 20px rgba(0,0,0,.05); transition: transform .3s var(--ease); }
.sticky-bar.off { transform: translateY(110%); }
.sb-info { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.sb-name { font-size: .875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-price { font-weight: 500; }
.sticky-bar .btn { min-height: 48px; padding-inline: 20px; }
@media (min-width: 992px) { .sticky-bar { display: none !important; } }

/* loading */
.sk { background: linear-gradient(90deg, var(--wash) 0, #ececec 50%, var(--wash) 100%); background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite; }
.sk-line { display: block; height: 1em; width: 60%; }
@keyframes sk { to { background-position: -200% 0; } }
.load-fail { padding-block: 48px; text-align: center; color: var(--muted); }

/* design swatches */
.swatches { margin-top: 24px; }
.sw-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { display: block; width: 48px; height: 60px; padding: 2px; border: 1px solid transparent; transition: border-color .15s; }
.sw img { width: 100%; height: 100%; object-fit: cover; }
.sw:hover { border-color: var(--rule-strong); }
.sw[aria-current="true"] { border-color: var(--ink); }
.sw.out img { opacity: .4; }
.swatches + .sizes { margin-top: 20px; }

/* left-to-right (English) */
[dir="ltr"] .field select { background-position: right 16px center; padding-left: 14px; padding-right: 40px; }
[dir="ltr"] body { line-height: 1.6; }
[dir="ltr"] .wordmark { letter-spacing: .34em; }
