/* SELVORA — Minimal Luxury storefront */
:root {
  --ivory: #F7F3EE;
  --paper: #FFFDFA;
  --sand: #EFE7DD;
  --line: #E4DAD0;
  --ink: #2A2626;
  --ink-2: #5E5552;
  --muted: #8F837D;
  --rose: #C49A91;
  --rose-d: #A97B72;
  --rose-l: #F1E2DD;
  --ok: #5F7F63;
  --err: #B4534A;
  --radius: 4px;
  --shadow: 0 10px 40px rgba(42, 38, 38, .08);
  --font: 'IBM Plex Sans Arabic', 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Cormorant Garamond', 'IBM Plex Sans Arabic', Georgia, serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
html[lang="en"] body { font-family: 'Jost', 'IBM Plex Sans Arabic', system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { font-weight: 400; margin: 0; letter-spacing: -.005em; }
html[lang="en"] h1, html[lang="en"] h2 { font-family: var(--display); font-weight: 500; }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.flip-rtl { transform: scaleX(1); }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 30px; border-radius: var(--radius); background: var(--ink); color: var(--paper); font-size: 14px; letter-spacing: .04em; transition: background .2s, transform .1s, opacity .2s; white-space: nowrap; }
.btn:hover { background: #000; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.light { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.light:hover { background: var(--ink); color: var(--paper); }
.btn.rose { background: var(--rose); }
.btn.rose:hover { background: var(--rose-d); }
.btn.block { width: 100%; }
.link { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rose); }

/* ---------- Top bars ---------- */
.demo-bar { background: var(--rose-l); color: var(--rose-d); text-align: center; font-size: 12px; padding: 4px 10px; padding-top: calc(4px + var(--safe-top)); }
.announce { background: var(--ink); color: var(--sand); text-align: center; font-size: 12.5px; padding: 8px 12px; letter-spacing: .02em; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(247, 243, 238, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-in { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.logo { display: block; width: 168px; color: var(--ink); }
.logo svg { width: 100%; height: auto; }
.nav { display: flex; gap: 26px; font-size: 14px; }
.nav a { position: relative; padding: 6px 0; color: var(--ink-2); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--rose); }
.tools { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.tool { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.tool:hover { background: var(--sand); }
.badge { position: absolute; top: 4px; inset-inline-end: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.lang-btn { font-size: 13px; padding: 0 12px; height: 34px; border-radius: 17px; box-shadow: inset 0 0 0 1px var(--line); margin-inline-end: 6px; }
.lang-btn:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .logo { width: 132px; }
  .lang-btn { display: none; }
  .tool.hide-sm { display: none; }
}

/* ---------- Drawer / overlay ---------- */
.overlay { position: fixed; inset: 0; background: rgba(30, 26, 26, .4); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 80; }
.overlay.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(420px, 92vw); background: var(--paper); z-index: 90; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2, .7, .2, 1); box-shadow: var(--shadow); padding-top: var(--safe-top); }
.drawer.end { inset-inline-end: 0; }
.drawer.start { inset-inline-start: 0; }
[dir="ltr"] .drawer.end { transform: translateX(105%); }
[dir="rtl"] .drawer.end { transform: translateX(-105%); }
[dir="ltr"] .drawer.start { transform: translateX(-105%); }
[dir="rtl"] .drawer.start { transform: translateX(105%); }
.drawer.on { transform: none !important; }
.drawer-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-h h3 { font-size: 17px; }
.drawer-b { flex: 1; overflow: auto; padding: 18px 22px; }
.drawer-f { border-top: 1px solid var(--line); padding: 18px 22px calc(18px + var(--safe-bottom)); }
.mnav a { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }

/* ---------- Search ---------- */
.search-panel { position: fixed; inset-inline: 0; top: 0; z-index: 90; background: var(--paper); transform: translateY(-105%); transition: transform .3s, visibility .3s; box-shadow: var(--shadow); padding-top: var(--safe-top); max-height: 85vh; overflow: auto; }
.search-panel { visibility: hidden; }
.search-panel.on { transform: none; visibility: visible; }
.search-row { display: flex; gap: 12px; align-items: center; padding: 18px 0; }
.search-row input { flex: 1; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-size: 20px; padding: 8px 0; outline: none; }
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; padding-bottom: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #F3E9E1 0%, #EAD7CF 55%, #E2CFC3 100%); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; min-height: min(78vh, 680px); gap: 30px; }
.hero-copy { padding: 60px 0; }
.kicker { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--rose-d); margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.08; white-space: pre-line; font-weight: 300; }
html[lang="en"] .hero h1 { font-weight: 400; font-style: italic; }
.hero p { max-width: 440px; color: var(--ink-2); font-size: 16px; margin: 22px 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; height: 100%; min-height: 420px; }
.hero-art .card { position: absolute; border-radius: 200px 200px 6px 6px; overflow: hidden; box-shadow: 0 30px 60px rgba(90, 60, 50, .18); }
.hero-art .c1 { width: 52%; aspect-ratio: 2/3; inset-inline-end: 4%; top: 10%; }
.hero-art .c2 { width: 38%; aspect-ratio: 2/3; inset-inline-start: 6%; bottom: 8%; border-radius: 6px; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-ring { position: absolute; width: 380px; height: 380px; border: 1px solid rgba(169, 123, 114, .35); border-radius: 50%; inset-inline-start: -140px; top: -140px; }
@media (max-width: 800px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 44px 0 10px; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-art { min-height: 400px; margin-bottom: 20px; }
  .hero-art .c1 { width: 56%; inset-inline-end: 8%; top: 4%; }
  .hero-art .c2 { width: 40%; bottom: 0; }
}

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--paper); }
.feature { display: flex; gap: 14px; align-items: center; padding: 22px 18px; border-inline-end: 1px solid var(--line); }
.feature:last-child { border-inline-end: 0; }
.feature .icon { color: var(--rose-d); flex: none; width: 26px; height: 26px; }
.feature b { display: block; font-weight: 500; font-size: 14px; }
.feature span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } .feature:nth-child(2) { border-inline-end: 0; } .feature:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .feature { padding: 16px 12px; gap: 10px; } .feature b { font-size: 13px; } }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-h { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.section-h h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 300; }
.section-h .sub { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
@media (max-width: 600px) { .section { padding: 48px 0; } }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cat { position: relative; aspect-ratio: 3/4; max-height: 540px; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.cat:hover img { transform: scale(1.05); }
.cat .label { position: absolute; inset-inline: 14px; bottom: 14px; background: rgba(255, 253, 250, .92); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; border-radius: var(--radius); font-size: 15px; }
@media (max-width: 800px) { .cats { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid { grid-template-columns: 1fr 1fr; gap: 22px 10px; } }
.pcard { position: relative; display: flex; flex-direction: column; }
.pcard .media { position: relative; aspect-ratio: 2/3; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.pcard:hover .media img { transform: scale(1.04); }
.pcard .tags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; }
.tag { font-size: 11px; letter-spacing: .06em; padding: 3px 9px; border-radius: 2px; background: var(--paper); color: var(--ink); }
.tag.sale { background: var(--rose); color: #fff; }
.heart { position: absolute; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 253, 250, .85); display: grid; place-items: center; transition: transform .15s; }
.heart:active { transform: scale(.88); }
.heart .icon { width: 18px; height: 18px; }
.heart.on .icon { fill: var(--rose); stroke: var(--rose); }
.quick { position: absolute; inset-inline: 10px; bottom: 10px; height: 40px; background: rgba(255, 253, 250, .94); border-radius: var(--radius); font-size: 13px; opacity: 0; transform: translateY(6px); transition: .25s; }
.pcard:hover .quick { opacity: 1; transform: none; }
@media (hover: none) { .quick { display: none; } }
.pcard .info { padding-top: 12px; }
.pcard .name { font-size: 14px; color: var(--ink); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; gap: 8px; align-items: baseline; margin-top: 4px; font-size: 14px; }
.price s { color: var(--muted); font-size: 12.5px; }
.price .now.sale { color: var(--rose-d); }
.dots { display: flex; gap: 5px; margin-top: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

/* ---------- Banners ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.banner { position: relative; min-height: 360px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: end; padding: 34px; color: var(--ink); }
.banner.b1 { background: linear-gradient(160deg, #F4E6E1, #E6CCC4); }
.banner.b2 { background: linear-gradient(160deg, #E9E3DA, #D4C6B4); }
.banner .art { position: absolute; inset-inline-end: 0; top: 0; height: 100%; width: 55%; opacity: .95; }
.banner .art img { height: 100%; width: 100%; object-fit: cover; mask-image: linear-gradient(to left, #000 60%, transparent); -webkit-mask-image: linear-gradient(to left, #000 60%, transparent); }
[dir="rtl"] .banner .art img { mask-image: linear-gradient(to right, #000 60%, transparent); -webkit-mask-image: linear-gradient(to right, #000 60%, transparent); }
.banner .txt { position: relative; max-width: 300px; }
.banner h3 { font-size: 28px; font-weight: 300; margin-bottom: 8px; }
.banner p { color: var(--ink-2); margin: 0 0 18px; }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } .banner { min-height: 280px; padding: 24px; } }

/* ---------- Shop page ---------- */
.page-h { padding: 40px 0 24px; text-align: center; }
.page-h h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 300; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.crumbs a:hover { color: var(--ink); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-block: 1px solid var(--line); margin-bottom: 28px; position: sticky; top: var(--header-h); background: var(--ivory); z-index: 10; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 16px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; background: var(--paper); transition: .2s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
.chip.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.select { height: 38px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 0 12px; font-size: 13px; }
.count { font-size: 13px; color: var(--muted); }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .icon { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--rose); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; padding: 30px 0 60px; }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-self: start; position: sticky; top: calc(var(--header-h) + 20px); }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumbs button { aspect-ratio: 2/3; border-radius: 3px; overflow: hidden; opacity: .55; transition: .2s; box-shadow: inset 0 0 0 1px transparent; }
.thumbs button.on { opacity: 1; box-shadow: 0 0 0 1px var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.main-img { aspect-ratio: 2/3; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.main-img img { width: 100%; height: 100%; object-fit: cover; }
.pinfo h1 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; line-height: 1.35; }
html[lang="en"] .pinfo h1 { font-family: var(--display); font-size: clamp(28px, 3vw, 38px); }
.pinfo .sku { font-size: 12px; color: var(--muted); letter-spacing: .1em; margin-bottom: 8px; }
.pinfo .price { font-size: 20px; margin-top: 12px; }
.pinfo .price s { font-size: 15px; }
.vat { font-size: 12px; color: var(--muted); }
.bnpl { display: flex; gap: 10px; align-items: center; margin: 16px 0 24px; padding: 12px 14px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.bnpl .pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 3px; }
.pill.tabby { background: #3BFFC1; color: #111; }
.pill.tamara { background: linear-gradient(90deg, #F8C7A0, #E9A0C6, #B5A3F2); color: #111; }
.opt { margin: 22px 0; }
.opt-h { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; }
.opt-h span { color: var(--muted); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .2s; }
.swatch.on { outline-color: var(--ink); }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size { min-width: 52px; height: 44px; padding: 0 12px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); font-size: 13.5px; transition: .2s; }
.size:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
.size.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.size-err { color: var(--err); font-size: 12.5px; margin-top: 8px; min-height: 18px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); height: 50px; }
.qty button { width: 44px; height: 100%; font-size: 18px; color: var(--ink-2); }
.qty span { min-width: 32px; text-align: center; }
.qty.sm { height: 34px; }
.qty.sm button { width: 32px; font-size: 15px; }
.buy-row { display: flex; gap: 10px; margin-top: 10px; }
.buy-row .btn { flex: 1; }
.stock-note { font-size: 12.5px; color: var(--rose-d); margin-top: 10px; }
.acc { border-top: 1px solid var(--line); margin-top: 30px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; font-size: 14px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 18px; color: var(--muted); }
.acc details[open] summary::after { content: '−'; }
.acc .body { padding: 0 0 18px; color: var(--ink-2); font-size: 14px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.size-table th, .size-table td { padding: 8px; border-bottom: 1px solid var(--line); text-align: center; }
.sticky-buy { display: none; }
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; gap: 22px; padding-top: 0; }
  .gallery { position: static; grid-template-columns: 1fr; margin-inline: -20px; }
  .main-img { border-radius: 0; }
  .thumbs { flex-direction: row; order: 2; padding-inline: 20px; }
  .thumbs button { width: 58px; }
  .sticky-buy { display: flex; gap: 10px; position: fixed; inset-inline: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + var(--safe-bottom)); background: rgba(255, 253, 250, .96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .sticky-buy .btn { flex: 1; height: 48px; }
  body.has-sticky .footer { padding-bottom: 90px; }
}

/* ---------- Cart ---------- */
.ship-progress { font-size: 12.5px; color: var(--ink-2); margin-bottom: 16px; }
.bar { height: 3px; background: var(--line); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--rose); transition: width .4s; }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 76px; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; background: var(--sand); }
.line-item .nm { font-size: 14px; line-height: 1.45; }
.line-item .meta { font-size: 12px; color: var(--muted); margin: 3px 0 8px; }
.line-item .end { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-size: 14px; }
.rm { font-size: 12px; color: var(--muted); text-decoration: underline; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.sum-row.total { font-size: 17px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
.sum-row .muted { color: var(--muted); font-size: 12px; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; padding: 20px 0 70px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; }
.panel h3 { font-size: 17px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.panel h3 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 12px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); padding: 0 14px; outline: none; transition: border-color .2s, background .2s; }
.field textarea { height: 84px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: var(--paper); }
.field.bad input, .field.bad select { border-color: var(--err); }
.field .err { color: var(--err); font-size: 12px; min-height: 0; margin-top: 4px; }
input[type="tel"] { direction: ltr; }
[dir="rtl"] input[type="tel"] { text-align: right; }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--ivory); transition: .2s; }
.pay-opt:hover { border-color: var(--ink-2); }
.pay-opt.on { border-color: var(--ink); background: var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.pay-opt input { accent-color: var(--ink); width: 18px; height: 18px; }
.pay-opt .lbl { flex: 1; font-size: 14px; }
.pay-opt .marks { display: flex; gap: 5px; }
.mark { font-size: 10.5px; font-weight: 600; padding: 3px 7px; border-radius: 3px; background: #fff; border: 1px solid var(--line); letter-spacing: .02em; }
.mark.apple { background: #000; color: #fff; border-color: #000; }
.coupon-row { display: flex; gap: 8px; margin: 14px 0; }
.coupon-row input { flex: 1; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 12px; background: var(--ivory); text-transform: uppercase; }
.coupon-row .btn { height: 44px; padding: 0 18px; }
.msg { font-size: 12.5px; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--err); }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.mini-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.mini-item .im { position: relative; flex: none; }
.mini-item img { width: 56px; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; }
.mini-item .q { position: absolute; top: -7px; inset-inline-end: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-2); color: #fff; font-size: 11px; display: grid; place-items: center; }
.mini-item .nm { flex: 1; font-size: 13px; line-height: 1.4; }
.mini-item .nm small { display: block; color: var(--muted); }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); margin-top: 14px; }
.secure .icon { width: 16px; height: 16px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; gap: 0; } .summary { position: static; order: -1; } .panel { padding: 20px; } }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Success / track ---------- */
.narrow { max-width: 620px; margin-inline: auto; padding: 50px 0 80px; text-align: center; }
.check-circle { width: 74px; height: 74px; border-radius: 50%; background: var(--rose-l); color: var(--rose-d); display: grid; place-items: center; margin: 0 auto 20px; }
.check-circle .icon { width: 34px; height: 34px; }
.order-no { display: inline-block; font-size: 22px; letter-spacing: .08em; padding: 10px 22px; border: 1px dashed var(--rose); border-radius: var(--radius); margin: 12px 0 20px; direction: ltr; }
.track-form { display: grid; gap: 12px; text-align: start; margin-top: 26px; }
.timeline { text-align: start; margin-top: 30px; border-inline-start: 1px solid var(--line); padding-inline-start: 22px; }
.tl { position: relative; padding-bottom: 22px; color: var(--muted); }
.tl::before { content: ''; position: absolute; inset-inline-start: -28px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.tl.done { color: var(--ink); }
.tl.done::before { background: var(--rose); }
.tl small { display: block; font-size: 12px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #D9CFC7; padding: 60px 0 calc(30px + var(--safe-bottom)); margin-top: 40px; font-size: 14px; }
.footer .logo { color: var(--sand); width: 170px; margin-bottom: 16px; }
.f-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-weight: 500; color: #fff; margin: 0 0 14px; font-size: 14px; letter-spacing: .04em; }
.footer a { display: block; padding: 4px 0; color: #BFB3AA; }
.footer a:hover { color: #fff; }
.footer p { color: #A99D95; max-width: 340px; margin: 0; }
.pay-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; }
.pay-badges .mark { background: #3A3434; border-color: #4A4242; color: #E8DED6; }
.f-bottom { border-top: 1px solid #3E3737; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #8E827A; }
@media (max-width: 800px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Toast / modal ---------- */
.toast { position: fixed; bottom: calc(24px + var(--safe-bottom)); inset-inline-start: 50%; transform: translate(-50%, 30px); background: var(--ink); color: var(--paper); padding: 13px 22px; border-radius: 30px; font-size: 14px; opacity: 0; pointer-events: none; transition: .3s; z-index: 120; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
[dir="rtl"] .toast { transform: translate(50%, 30px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
[dir="rtl"] .toast.on { transform: translate(50%, 0); }
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: rgba(30, 26, 26, .45); }
.modal-box { background: var(--paper); border-radius: 6px; padding: 30px; width: min(440px, 100%); text-align: center; box-shadow: var(--shadow); }
.modal-box h3 { font-size: 20px; margin-bottom: 10px; }
.modal-box p { color: var(--ink-2); font-size: 14px; }
.modal-box .btns { display: grid; gap: 10px; margin-top: 20px; }

.fade-in { animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.skeleton { background: linear-gradient(90deg, var(--sand), #F4EEE7, var(--sand)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

/* صور المنتجات الحقيقية: تظهر كاملة على خلفية بيضاء (الرسومات الافتراضية تملأ الإطار) */
.pcard .media, .main-img, .thumbs button, .line-item img, .mini-item img, .hero-art .card, .cat { background: #fff; }
.pcard .media img, .main-img img, .thumbs img, .line-item img, .mini-item img, .hero-art img, .cat img { object-fit: contain; }
.pcard .media img[src^="data:"], .main-img img[src^="data:"], .thumbs img[src^="data:"], .line-item img[src^="data:"], .mini-item img[src^="data:"], .hero-art img[src^="data:"], .cat img[src^="data:"] { object-fit: cover; }

/* منع التمرير الأفقي على الجوال عند كثرة الصور المصغّرة */
html, body { overflow-x: clip; }
.gallery, .pinfo { min-width: 0; }
@media (max-width: 860px) {
  .thumbs { overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumbs button { flex: none; }
}

.f-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 16px 0 4px; margin-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; opacity: .85; }
