/* BY SHAHLA — storefront */
:root {
  --bg: #FBEFE3;
  --surface: #FFFAF5;
  --soft: #F4E4D4;
  --line: #E8D6C5;
  --navy: #2D2E56;
  --ink: #23243F;
  --text: #3A3A55;
  --muted: #5B5970;
  --ok: #2F5E3A;
  --ok-bg: #E2EEE3;
  --muted-bg: #EFE4DA;
  --wa: #2D2E56;
  --radius: 16px;
  --logo-knock: var(--bg);
  --f-ar: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --f-display: 'Amiri', 'IBM Plex Sans Arabic', serif;
  --f-latin: 'Cormorant Garamond', 'Times New Roman', serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-ar);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--navy); }
a:hover { color: #4A4B7E; }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 8px; color: #fff; }
.muted { color: var(--muted); font-size: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px; border: 1px solid var(--navy);
  background: var(--navy); color: #FFFAF5; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: #3B3C6C; color: #FFFAF5; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: #CDB9A6; }
.btn-ghost:hover { background: var(--surface); color: var(--navy); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-square { width: 56px; min-width: 56px; padding: 0; }
.btn-wa { flex: 1 1 auto; }
.icon-btn {
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; cursor: pointer;
}
.icon-btn:hover { background: var(--soft); color: var(--navy); }
.text-link { font-weight: 600; }

.badge { display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.badge-ok { color: var(--ok); background: var(--ok-bg); }
.badge-muted { color: #5A4A3E; background: var(--muted-bg); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 239, 227, .94); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-logo { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.brand-logo:hover { color: var(--navy); }
.logo-mark { height: 42px; width: auto; }
.logo-word { height: 13px; width: auto; }
.header-brands { display: none; }
.header-actions { display: flex; gap: 2px; }
.site-search { display: flex; gap: 8px; padding-top: 4px; padding-bottom: 12px; }
.site-search[hidden] { display: none; }
.site-search input {
  flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid #D9C6B3;
  background: var(--surface); font: inherit; color: var(--ink);
}

/* Hero */
.hero { display: flex; flex-direction: column; gap: 22px; padding-top: 26px; padding-bottom: 8px; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); }
.hero-text { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero h1 { font-family: var(--f-display); font-weight: 700; font-size: 38px; line-height: 1.25; color: var(--navy); }
.hero p { font-size: 16px; line-height: 1.8; color: var(--text); max-width: 32rem; }
.ornament { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); }
.ornament i { display: block; width: 44px; height: 1.5px; background: var(--navy); }
.hero-actions { display: none; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 8px; }
.hero-follow { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-tile { display: block; border-radius: 20px; overflow: hidden; background: var(--soft); }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-tile-0 { grid-column: span 2; aspect-ratio: 6 / 5; }
.hero-tile-1, .hero-tile-2 { display: none; }

/* Brand chips */
.shop { padding-top: 22px; padding-bottom: 44px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid #D9C6B3; background: var(--surface); color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15px;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip-latin { font-family: var(--f-latin); font-weight: 600; font-size: 17px; letter-spacing: .08em; }
.chip[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #FFFAF5; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-family: var(--f-display); font-weight: 700; font-size: 28px; color: var(--navy); }
.section-head h2.latin-title { font-family: var(--f-latin); font-weight: 600; letter-spacing: .1em; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 26px; }
.card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.card:hover { color: var(--ink); }
.card-img { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 1 / 1; margin-bottom: 6px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-badge { position: absolute; top: 8px; inset-inline-start: 8px; }
.card-brand { font-family: var(--f-latin); font-weight: 600; font-size: 14px; letter-spacing: .14em; color: var(--muted); text-align: right; }
.card-name { font-size: 15px; font-weight: 500; line-height: 1.5; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; margin-top: 2px; }
.card-price { font-size: 14px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.dots { display: inline-flex; gap: 3px; flex-wrap: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(35, 36, 63, .2); }

.empty { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--muted); }
.empty-page { padding: 80px 16px; }
.empty-page h1 { font-family: var(--f-display); font-size: 30px; color: var(--navy); }

/* How to order */
.how { padding-top: 8px; padding-bottom: 48px; }
.how-title { font-family: var(--f-display); font-weight: 700; font-size: 24px; color: var(--navy); margin-bottom: 14px; }
.how-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.how-steps li {
  counter-increment: step; position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 58px 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.how-steps li::before {
  content: counter(step); position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #FFFAF5; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px;
}
.how-steps b { font-weight: 600; }
.how-steps span { font-size: 14px; color: var(--muted); }

/* Product page */
.crumbs { display: flex; gap: 8px; align-items: center; padding-top: 14px; padding-bottom: 10px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs a[dir="ltr"] { font-family: var(--f-latin); font-weight: 600; letter-spacing: .1em; }

.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 8px; }
.gallery { position: relative; margin-inline: -16px; background: var(--soft); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 1 / 1; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide video { width: 100%; height: 100%; object-fit: contain; background: #14142A; }
.gallery-count { position: absolute; left: 14px; bottom: 14px; background: rgba(255, 250, 245, .92); color: var(--ink); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.gallery-nav { display: none; }
.thumbs { display: flex; gap: 8px; padding: 12px 0 2px; overflow-x: auto; scrollbar-width: none; }
.thumb { position: relative; flex: 0 0 64px; width: 64px; height: 64px; padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { outline: 2px solid var(--navy); outline-offset: 1px; border-color: transparent; }
.thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(20, 20, 42, .42); color: #fff; }

.product-info { display: flex; flex-direction: column; gap: 0; padding-top: 18px; }
.product-brand { font-family: var(--f-latin); font-weight: 600; font-size: 17px; letter-spacing: .16em; color: var(--muted); text-decoration: none; align-self: flex-start; }
.product-name { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1.3; color: var(--navy); margin-top: 4px; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.product-price { font-size: 22px; font-weight: 600; color: var(--ink); }

.colors { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.colors-label { font-size: 15px; }
.colors-label b { font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 46px; height: 46px; border-radius: 50%; padding: 4px; border: 1px solid #D4C1AE; background: transparent; cursor: pointer; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(35, 36, 63, .15); }
.swatch[aria-pressed="true"] { border: 2px solid var(--navy); padding: 3px; }

.order-box { display: flex; gap: 10px; margin-top: 22px; }
.details { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; }
.details div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 500; }
.details dd[dir="ltr"] { text-align: right; font-family: var(--f-latin); font-weight: 600; letter-spacing: .1em; font-size: 16px; }
.desc { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.desc h2 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.desc p { font-size: 15px; line-height: 1.9; color: var(--text); }
.note { margin-top: 22px; padding: 14px; border-radius: 14px; background: var(--soft); display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.note svg { flex: 0 0 auto; margin-top: 2px; }
.note p { font-size: 14px; line-height: 1.7; color: var(--text); }
.note a { font-weight: 600; }

.related { padding-top: 34px; padding-bottom: 40px; }
.related h2 { font-family: var(--f-display); font-weight: 700; font-size: 24px; color: var(--navy); margin-bottom: 16px; }

.order-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 250, 245, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(35, 36, 63, .07);
}
.page-product .site-footer { padding-bottom: 92px; }

/* Policy */
.policy { max-width: 760px; padding-top: 32px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 18px; }
.policy-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 8px; color: var(--navy); }
.policy-mark { height: 64px; width: auto; }
.policy-head h1 { font-family: var(--f-display); font-weight: 700; font-size: 32px; color: var(--navy); }
.policy-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.policy-card h2 { font-family: var(--f-display); font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.policy-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.policy-card li { position: relative; padding-inline-start: 22px; line-height: 1.8; color: var(--text); }
.policy-card li::before { content: '✦'; position: absolute; inset-inline-start: 0; top: 0; color: var(--navy); font-size: 12px; line-height: 2.4; }
.policy-contact { text-align: center; display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.policy-contact .order-box { justify-content: center; margin-top: 10px; }
.policy-contact .btn { flex: 0 1 200px; }

/* Footer */
.site-footer { background: var(--navy); color: #F5E8DB; margin-top: 8px; --logo-knock: var(--navy); }
.footer-grid { display: grid; gap: 22px; padding-top: 34px; padding-bottom: 30px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-word { height: 16px; width: auto; color: #FBEFE3; align-self: flex-start; }
.footer-brand p { font-size: 14px; color: #D9CCC0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-links a { color: #FBEFE3; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #5A5B85; display: inline-flex; align-items: center; justify-content: center; color: #FBEFE3; }
.round-btn:hover { background: #3B3C6C; color: #fff; }
.footer-copy { font-size: 12px; color: #B9B3C2; text-align: right; }

/* Larger screens */
@media (min-width: 700px) {
  .wrap { padding-inline: 28px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; row-gap: 34px; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0 0 22px; padding: 0; }
  .hero-actions { display: flex; }
  .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { margin-inline: 0; border-radius: 22px; overflow: hidden; }
}

@media (min-width: 960px) {
  .header-row { height: 76px; }
  .logo-mark { height: 48px; }
  .logo-word { height: 15px; }
  .header-brands { display: flex; flex-wrap: wrap; gap: 4px 26px; font-family: var(--f-latin); font-weight: 600; font-size: 16px; letter-spacing: .14em; }
  .header-brands a { text-decoration: none; color: var(--navy); }
  .header-brands a:hover { text-decoration: underline; text-underline-offset: 6px; }

  .hero { flex-direction: row; align-items: center; gap: 56px; padding-top: 56px; padding-bottom: 32px; }
  .hero-text { flex: 1 1 400px; min-width: 0; gap: 16px; }
  .hero h1 { font-size: 3.6rem; }
  .hero p { font-size: 18px; }
  .hero-media { flex: 1 1 520px; min-width: 0; gap: 14px; }
  .hero-tile-0 { aspect-ratio: 16 / 10; }
  .hero-count-1 .hero-tile-0 { aspect-ratio: 4 / 3; }
  .hero-tile-1, .hero-tile-2 { display: block; aspect-ratio: 4 / 3; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 24px; row-gap: 40px; }
  .grid-related { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .section-head h2 { font-size: 34px; }

  .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 48px; align-items: start; padding-top: 6px; }
  .gallery { grid-column: 1; grid-row: 1; }
  .thumbs { grid-column: 1; grid-row: 2; }
  .product-info { grid-column: 2; grid-row: 1 / span 3; padding-top: 6px; position: sticky; top: 100px; }
  .product-name { font-size: 38px; }
  .gallery-nav {
    display: flex; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: rgba(255, 250, 245, .92); color: var(--navy); align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 2px 10px rgba(35, 36, 63, .12);
  }
  .gallery-prev { right: 14px; }
  .gallery-next { left: 14px; }
  .order-bar { display: none; }
  .page-product .site-footer { padding-bottom: 0; }

  .footer-grid { grid-template-columns: 1.4fr 1fr auto; align-items: start; padding-top: 44px; }
  .footer-copy { grid-column: 1 / -1; }
}

@media (max-width: 959px) {
  .product-info .order-box { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-img img { transition: none; }
}