/* =========================================================
   Barakah Walls — Islamic Calligraphy Wall Art
   Global stylesheet (mobile-first)
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --ivory: #FAF7F2;
  --ivory-2: #F3EDE3;
  --teal: #1F4E5F;
  --teal-d: #163a47;
  --emerald: #1E6B45;
  --gold: #C9A24B;
  --gold-l: #e2c98a;
  --ink: #2B2B2B;
  --muted: #6b6760;
  --white: #fff;
  --line: rgba(43, 43, 43, .1);
  --shadow-s: 0 4px 14px rgba(31, 78, 95, .08);
  --shadow-m: 0 14px 40px rgba(31, 78, 95, .13);
  --shadow-l: 0 30px 70px rgba(31, 78, 95, .2);
  --r: 14px;
  --r-l: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --f-head: "Cormorant Garamond", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --f-ar: "Amiri", "Noto Nastaliq Urdu", serif;
  --f-ur: "Noto Nastaliq Urdu", "Amiri", serif;
  --header-h: 70px;
  --gutter: 16px;
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 80px; } }

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 16px; } }
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; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .3s; }
.skip-link:focus { top: 12px; }

h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.15; color: var(--teal-d); }
h1 { font-size: clamp(2.3rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }

/* RTL text blocks */
.ar, [lang="ar"] { font-family: var(--f-ar); direction: rtl; unicode-bidi: isolate; }
.ur, [lang="ur"] { font-family: var(--f-ur); direction: rtl; unicode-bidi: isolate; line-height: 2.2; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 110px 0; } }
.section--tint { background: var(--ivory-2); }
.section--teal { background: var(--teal-d); color: #e9e4da; }
.section--teal h2, .section--teal h3 { color: #fff; }

/* faint Islamic geometric texture (8-point star tile) */
.pattern { position: relative; isolation: isolate; }
.pattern::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%231F4E5F' stroke-width='1.2'%3E%3Cpath d='M40 4l10 26 26 10-26 10-10 26-10-26L4 40l26-10z'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px;
}
.section--teal.pattern::before { opacity: .07; filter: invert(1); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; }
.section-head p { color: var(--muted); margin-top: 14px; }
.section--teal .section-head p { color: #c4ccc9; }

/* ornamental divider */
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); margin: 18px auto 0; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }

/* ---------- 4. Buttons ---------- */
.btn {
  --bg: var(--teal); --fg: #fff;
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .92rem; letter-spacing: .02em; border: 1px solid var(--bg);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s;
  isolation: isolate; min-height: 48px; white-space: nowrap;
}
.btn::after { /* sheen sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31,78,95,.28); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--gold { --bg: var(--gold); --fg: #1d1a12; }
.btn--emerald { --bg: var(--emerald); }
.btn--ghost { background: transparent; color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--light:hover { background: #fff; color: var(--teal-d); }
.btn--wa { --bg: #1fa855; }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; min-height: 40px; font-size: .84rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- 5. Header ---------- */
.announce {
  background: var(--teal-d); color: #e6dfcf; font-size: .78rem; text-align: center; padding: 8px 12px; overflow: hidden; white-space: nowrap;
}
.announce__track { display: inline-flex; gap: 48px; animation: marquee 28s linear infinite; }
.announce__track span::before { content: "✦"; color: var(--gold); margin-right: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(250, 247, 242, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .4s, border-color .4s, transform .5s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-s); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-size: 1.45rem; font-weight: 700; color: var(--teal-d); letter-spacing: .01em; }
.logo__mark { width: 38px; height: 38px; flex: none; transition: transform 1.2s var(--ease); }
.logo:hover .logo__mark { transform: rotate(180deg); }
.logo small { display: block; font-family: var(--f-body); font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: -2px; }

.nav { display: none; }
.nav a { position: relative; font-size: .9rem; font-weight: 500; padding: 6px 0; color: var(--ink); transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
@media (min-width: 1024px) { .nav { display: flex; gap: 30px; } }

.header__actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--teal-d); transition: background .3s, transform .3s; }
.icon-btn:hover { background: rgba(31,78,95,.08); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--gold); color: #1d1a12; font-size: .68rem; font-weight: 700; display: grid; place-items: center;
}
.cart-count.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.5); } 60% { transform: scale(.9); } }
.burger { display: grid; }
@media (min-width: 1024px) { .burger { display: none; } }
.burger span { display: block; width: 22px; height: 1.6px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.burger span + span { margin-top: 6px; }
.burger__lines { display: block; }
.menu-open .burger span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99; background: var(--teal-d); color: #fff;
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px;
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease); visibility: hidden; overflow-y: auto;
}
.menu-open .drawer { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.menu-open .header { background: transparent; backdrop-filter: none; box-shadow: none; }
.menu-open .header .logo, .menu-open .header .icon-btn { color: #fff; }
.drawer a.drawer__link {
  font-family: var(--f-head); font-size: 2.1rem; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease), color .3s;
}
.drawer a.drawer__link:hover { color: var(--gold); }
.menu-open .drawer a.drawer__link { opacity: 1; transform: none; }
.menu-open .drawer a.drawer__link:nth-child(1) { transition-delay: .15s; }
.menu-open .drawer a.drawer__link:nth-child(2) { transition-delay: .2s; }
.menu-open .drawer a.drawer__link:nth-child(3) { transition-delay: .25s; }
.menu-open .drawer a.drawer__link:nth-child(4) { transition-delay: .3s; }
.menu-open .drawer a.drawer__link:nth-child(5) { transition-delay: .35s; }
.menu-open .drawer a.drawer__link:nth-child(6) { transition-delay: .4s; }
.menu-open .drawer a.drawer__link:nth-child(7) { transition-delay: .45s; }
.drawer__foot { margin-top: auto; padding-top: 30px; font-size: .9rem; color: #c4ccc9; }
.drawer__ar { font-family: var(--f-ar); font-size: 2rem; color: var(--gold); direction: rtl; margin-top: 18px; }
.menu-open { overflow: hidden; }

/* search overlay */
.search {
  position: fixed; inset: 0; z-index: 200; background: rgba(22,58,71,.9); backdrop-filter: blur(10px);
  display: flex; align-items: flex-start; justify-content: center; padding: 18vh var(--gutter) 0;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.search.open { opacity: 1; visibility: visible; }
.search__box { width: 100%; max-width: 640px; transform: translateY(-30px); transition: transform .6s var(--ease); }
.search.open .search__box { transform: none; }
.search input {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--gold); color: #fff;
  font-family: var(--f-head); font-size: clamp(1.6rem, 6vw, 2.6rem); padding: 10px 0; outline: none;
}
.search input::placeholder { color: rgba(255,255,255,.4); }
.search__results { margin-top: 20px; display: grid; gap: 8px; max-height: 50vh; overflow-y: auto; }
.search__results a { display: flex; gap: 14px; align-items: center; color: #fff; padding: 8px; border-radius: 10px; transition: background .3s; }
.search__results a:hover, .search__results a:focus { background: rgba(255,255,255,.08); }
.search__results img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.search__close { position: absolute; top: 20px; right: 20px; color: #fff; }

/* ---------- 6. Hero slider ---------- */
.hero { position: relative; height: calc(100svh - var(--header-h) - 34px); min-height: 560px; max-height: 920px; overflow: hidden; background: var(--teal-d); }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.4s var(--ease), visibility 1.4s; }
.hero__slide.active { opacity: 1; visibility: visible; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 7s linear; }
.hero__slide.active img { transform: scale(1.02); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,36,44,.35) 0%, rgba(14,36,44,.25) 40%, rgba(14,36,44,.85) 100%); pointer-events: none; }
@media (min-width: 900px) { .hero::after { background: linear-gradient(90deg, rgba(14,36,44,.88) 0%, rgba(14,36,44,.5) 50%, rgba(14,36,44,.1) 100%); } }
.hero__content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; padding-bottom: 90px; color: #fff; }
@media (min-width: 900px) { .hero__content { align-items: center; padding-bottom: 0; } }
.hero__text { max-width: 640px; }
.hero__ar { font-family: var(--f-ar); color: var(--gold-l); font-size: clamp(1.6rem, 5vw, 2.4rem); direction: rtl; text-align: left; margin-bottom: 10px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold-l); }
.hero p { margin: 18px 0 30px; color: #dde3e0; max-width: 480px; font-size: 1.02rem; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__btns .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .hero__btns .btn { flex: 0 0 auto; } }
/* split-word headline reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.split.in .w > span { transform: none; }
.hero__ctrl { position: absolute; z-index: 3; bottom: 28px; left: 0; right: 0; }
.hero__ctrl .container { display: flex; align-items: center; justify-content: space-between; }
.hero__dots { display: flex; gap: 8px; }
.hero__dots button { width: 34px; height: 3px; background: rgba(255,255,255,.3); border-radius: 3px; position: relative; overflow: hidden; padding: 0; min-height: 0; }
.hero__dots button::before { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero__dots button.active::before { animation: dotfill 6s linear forwards; }
@keyframes dotfill { to { transform: scaleX(1); } }
.hero__arrows { display: flex; gap: 8px; }
.hero__arrows button { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff; display: grid; place-items: center; transition: background .3s, border-color .3s; }
.hero__arrows button:hover { background: var(--gold); border-color: var(--gold); color: #1d1a12; }
.hero__scroll { display: none; }
@media (min-width: 900px) {
  .hero__scroll { display: flex; position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.7); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; }
  .hero__scroll i { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: scrollLine 2s var(--ease) infinite; transform-origin: top; }
}
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* page hero (inner pages) */
.page-hero { padding: 64px 0 56px; text-align: center; background: linear-gradient(180deg, var(--ivory-2), var(--ivory)); }
.page-hero p { color: var(--muted); max-width: 560px; margin: 14px auto 0; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 6px; color: var(--gold); }

/* ---------- 7. Trust bar ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }
.trust__item { display: flex; align-items: center; gap: 12px; padding: 20px 10px; font-size: .84rem; font-weight: 600; color: var(--teal-d); }
.trust__item:nth-child(odd) { border-right: 1px solid var(--line); }
.trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .trust__item { justify-content: center; border: 0 !important; padding: 26px 10px; } .trust__item + .trust__item { border-left: 1px solid var(--line) !important; } }
.trust__item small { display: block; font-weight: 400; color: var(--muted); font-size: .74rem; }
.trust__icon { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(201,162,75,.12); color: var(--gold); transition: transform .6s var(--ease); }
.trust__item:hover .trust__icon { transform: rotateY(360deg); }
.trust__icon svg { width: 20px; height: 20px; }

/* ---------- 8. Collections ---------- */
.collections { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .collections { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.collection { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3/4; background: var(--teal); isolation: isolate; box-shadow: var(--shadow-s); }


.collection img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); z-index: -2; }
.collection::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(14,36,44,.9)); transition: opacity .5s; }
.collection:hover img { transform: scale(1.1); }
.collection__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; color: #fff; }
.collection__ar { font-family: var(--f-ar); color: var(--gold-l); font-size: 1.15rem; direction: rtl; text-align: left; }
.collection h3 { color: #fff; font-size: clamp(1.15rem, 3vw, 1.7rem); }
.collection__cta { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; color: var(--gold-l); }
.collection__cta svg { width: 14px; transition: transform .4s var(--ease); }
.collection:hover .collection__cta svg { transform: translateX(6px); }
.collection__frame { position: absolute; inset: 10px; border: 1px solid rgba(201,162,75,.0); border-radius: 10px; transition: border-color .6s, inset .6s var(--ease); pointer-events: none; }
.collection:hover .collection__frame { border-color: rgba(201,162,75,.7); inset: 14px; }

/* ---------- 9. Product cards ---------- */
.grid-products { display: grid; gap: 22px 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .grid-products { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; } }
@media (min-width: 1200px) { .grid-products.grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/5; background: var(--ivory-2); box-shadow: var(--shadow-s); transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.card:hover .card__media { box-shadow: var(--shadow-m); transform: translateY(-6px); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.card__media .img-2 { opacity: 0; transform: scale(1.08); }
.card:hover .img-1 { opacity: 0; transform: scale(1.08); }
.card:hover .img-2 { opacity: 1; transform: scale(1); }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--gold); color: #1d1a12; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.badge--new { background: var(--emerald); color: #fff; }
.badge--off { left: auto; right: 10px; background: #b0392b; color: #fff; animation: offPulse 2.4s ease-in-out infinite; }
@keyframes offPulse { 50% { transform: scale(1.08); } }
.card__quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  transform: translateY(0); opacity: 1; transition: transform .5s var(--ease), opacity .4s;
}
@media (hover: hover) and (min-width: 900px) { .card__quick { transform: translateY(20px); opacity: 0; } .card:hover .card__quick, .card:focus-within .card__quick { transform: none; opacity: 1; } }
.card__quick .btn { width: 100%; padding: 10px 12px; min-height: 42px; font-size: .78rem; background: rgba(255,255,255,.92); color: var(--teal-d); border-color: transparent; backdrop-filter: blur(6px); }
.card__quick .btn:hover { background: var(--teal); color: #fff; }
.card__body { padding: 14px 2px 0; }
.card__ar { font-family: var(--f-ar); color: var(--gold); direction: rtl; font-size: 1.05rem; line-height: 1.6; }
.card h3 { font-size: 1.15rem; margin: 2px 0 4px; }
@media (min-width: 768px) { .card h3 { font-size: 1.35rem; } }
.card h3 a { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.card h3 a:hover { background-size: 100% 1px; }
.card__link { position: absolute; inset: 0; z-index: 1; } /* makes the whole image clickable */
.card__meaning { font-size: .8rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__ur { font-family: var(--f-ur); direction: rtl; font-size: .85rem; color: var(--emerald); line-height: 2; display: none; }
@media (min-width: 768px) { .card__ur { display: block; } }
.card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.price { font-weight: 700; color: var(--teal-d); }
.price s { color: var(--muted); font-weight: 400; font-size: .82em; margin-left: 6px; }
.card__sizes { font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .85rem; }

/* ---------- 10. See it on your wall (before/after) ---------- */
.wall { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .wall { grid-template-columns: 1.2fr 1fr; gap: 70px; } }
.ba { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-l); user-select: none; touch-action: pan-y; cursor: ew-resize; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 50px; height: 50px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: var(--teal); display: grid; place-items: center; box-shadow: var(--shadow-m); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.ba__label { position: absolute; top: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; }
.ba__label--l { left: 14px; } .ba__label--r { right: 14px; }
.ba input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: ew-resize; }
.wall ul { margin: 22px 0 30px; display: grid; gap: 12px; }
.wall li { display: flex; gap: 12px; align-items: flex-start; }
.wall li::before { content: "✦"; color: var(--gold); }

/* ---------- 11. Size & frame guide ---------- */
.guide { display: grid; gap: 30px; }
@media (min-width: 960px) { .guide { grid-template-columns: 1fr 1fr; gap: 50px; } }
.guide__card { background: #fff; border-radius: var(--r-l); padding: 26px 20px; box-shadow: var(--shadow-s); }
@media (min-width: 768px) { .guide__card { padding: 36px; } }
.sizes-viz { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 200px; margin: 24px 0 10px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.sizes-viz button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font-size: .7rem; color: var(--muted); min-height: 0; }
.sizes-viz i { display: block; width: 100%; border: 2px solid var(--teal); border-radius: 3px; background: linear-gradient(135deg, rgba(31,78,95,.05), rgba(201,162,75,.15)); transition: background .4s, transform .5s var(--ease), border-color .3s; transform-origin: bottom; }
.sizes-viz button:hover i, .sizes-viz button.active i { background: linear-gradient(135deg, var(--teal), var(--emerald)); border-color: var(--gold); transform: scale(1.04); }
.sizes-viz button.active { color: var(--teal-d); font-weight: 700; }
.size-info { min-height: 48px; font-size: .9rem; color: var(--muted); }
.size-info strong { color: var(--teal-d); }
.frames { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
@media (min-width: 560px) { .frames { grid-template-columns: repeat(4, 1fr); } }
.frame-sw { text-align: center; font-size: .8rem; font-weight: 600; }
.frame-sw__box { aspect-ratio: 3/4; border-radius: 6px; margin-bottom: 8px; background: linear-gradient(135deg, var(--teal), var(--emerald)); position: relative; transition: transform .5s var(--ease), box-shadow .5s; box-shadow: var(--shadow-s); }
.frame-sw__box::after { content: "بسم الله"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-l); font-family: var(--f-ar); font-size: 1.1rem; }
.frame-sw:hover .frame-sw__box { transform: translateY(-6px) rotate(-1.5deg); box-shadow: var(--shadow-m); }
.fr-black { border: 8px solid #1b1b1b; }
.fr-gold { border: 8px solid; border-image: linear-gradient(135deg, #a77f2c, #f1d98f, #a77f2c) 1; }
.fr-wood { border: 8px solid #a0703f; }
.fr-none { border: 0; }

/* ---------- 12. Custom CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-l); background: linear-gradient(135deg, var(--teal-d), var(--emerald)); color: #fff; padding: 52px 22px; text-align: center; isolation: isolate; }
@media (min-width: 768px) { .cta { padding: 80px 60px; } }
.cta h2 { color: #fff; }
.cta p { color: #d4ddd9; max-width: 540px; margin: 14px auto 28px; }
.cta__ar { position: absolute; z-index: -1; font-family: var(--f-ar); color: rgba(255,255,255,.06); font-size: clamp(6rem, 22vw, 16rem); white-space: nowrap; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: drift 22s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { to { transform: translate(-42%, -50%); } }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); opacity: .5; animation: float 10s ease-in-out infinite alternate; }
.orb--1 { width: 260px; height: 260px; background: var(--gold); top: -80px; right: -60px; }
.orb--2 { width: 200px; height: 200px; background: #2fa57c; bottom: -70px; left: -50px; animation-delay: -4s; }
@keyframes float { to { transform: translate(30px, 30px) scale(1.15); } }

/* ---------- 13. Reviews slider ---------- */
.reviews { position: relative; }
.reviews__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 10px 2px 26px; scrollbar-width: none; }
.reviews__track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 86%; scroll-snap-align: center; background: #fff; border-radius: var(--r-l); padding: 28px 22px; box-shadow: var(--shadow-s); position: relative; transition: transform .5s var(--ease), box-shadow .5s; }
@media (min-width: 700px) { .review { flex-basis: calc(50% - 8px); } }
@media (min-width: 1100px) { .review { flex-basis: calc(33.333% - 11px); } }
.review:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.review::before { content: "“"; position: absolute; top: -6px; right: 20px; font-family: var(--f-head); font-size: 6rem; color: rgba(201,162,75,.25); line-height: 1; }
.review blockquote { font-family: var(--f-head); font-size: 1.22rem; line-height: 1.5; color: var(--teal-d); margin: 12px 0 18px; }
.review__who { display: flex; align-items: center; gap: 12px; font-size: .85rem; }
.review__av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--emerald)); color: #fff; font-weight: 700; }
.review__who small { display: block; color: var(--muted); }
.slider-nav { display: flex; justify-content: center; gap: 10px; }
.slider-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--teal); transition: background .3s, color .3s, transform .3s; }
.slider-nav button:hover { background: var(--teal); color: #fff; transform: scale(1.06); }

/* ---------- 14. Instagram gallery ---------- */
.insta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 900px) { .insta { grid-template-columns: repeat(6, 1fr); gap: 10px; } }
.insta a { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--ivory-2); }
.insta img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.insta a::after { content: ""; position: absolute; inset: 0; background: rgba(31,78,95,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='white'/%3E%3C/svg%3E") center / 30px no-repeat; opacity: 0; transition: opacity .4s; }
.insta a:hover img { transform: scale(1.12) rotate(1deg); }
.insta a:hover::after { opacity: 1; }

/* ---------- 15. Newsletter ---------- */
.news { display: grid; gap: 24px; align-items: center; text-align: center; }
@media (min-width: 900px) { .news { grid-template-columns: 1fr 1fr; text-align: left; } }
.news form { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 560px) { .news form { flex-direction: row; background: #fff; padding: 6px; border-radius: 999px; box-shadow: var(--shadow-s); } .news input { border: 0 !important; background: transparent !important; } }
.news input { flex: 1; min-width: 0; padding: 14px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; outline: none; }
.form-msg { font-size: .85rem; margin-top: 8px; color: var(--emerald); min-height: 1.4em; }

/* ---------- 16. Footer ---------- */
.footer { background: #102c36; color: #b9c3c0; padding: 70px 0 0; font-size: .9rem; position: relative; overflow: hidden; }
.footer h4 { color: #fff; font-family: var(--f-body); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer__grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 960px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } .footer__grid > :first-child { grid-column: auto; } }
.footer__grid > :last-child { grid-column: 1 / -1; }
@media (min-width: 960px) { .footer__grid > :last-child { grid-column: auto; } }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer a { transition: color .3s, padding .3s; }
.footer li + li { margin-top: 9px; }
.footer ul a:hover { color: var(--gold); padding-left: 6px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; transition: background .3s, transform .4s var(--ease), border-color .3s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: #102c36; transform: translateY(-4px); }
.socials svg { width: 18px; height: 18px; }
.contact-list li { display: flex; gap: 10px; }
.contact-list svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--gold); }
.footer__bottom { margin-top: 56px; padding: 22px 0 90px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; font-size: .8rem; }
@media (min-width: 768px) { .footer__bottom { flex-direction: row; justify-content: space-between; padding-bottom: 26px; } }
.pay { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pay span { padding: 5px 10px; border-radius: 6px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: .7rem; font-weight: 600; letter-spacing: .05em; color: #dfe5e3; }
.footer__ar { position: absolute; right: -20px; bottom: 40px; font-family: var(--f-ar); font-size: 9rem; color: rgba(255,255,255,.025); pointer-events: none; line-height: 1; }

/* ---------- 17. Floating WhatsApp + back to top ---------- */
.wa-float {
  position: fixed; z-index: 90; right: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform .4s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.2s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.wa-float:hover { transform: scale(1.1) rotate(-8deg); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float__tip { position: absolute; right: 70px; white-space: nowrap; background: #fff; color: var(--ink); font-size: .8rem; padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow-m); opacity: 0; transform: translateX(10px); transition: .4s var(--ease); pointer-events: none; }
@media (hover: hover) { .wa-float:hover .wa-float__tip { opacity: 1; transform: none; } }
.to-top { position: fixed; z-index: 89; right: 24px; bottom: 86px; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--teal); box-shadow: var(--shadow-m); display: grid; place-items: center; opacity: 0; transform: translateY(20px); transition: .4s var(--ease); pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 126; stroke-dashoffset: var(--p, 126); }

/* scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; z-index: 300; width: 100%; background: linear-gradient(90deg, var(--gold), var(--emerald)); transform-origin: left; transform: scaleX(0); }

/* ---------- 18. Toast & mini-cart ---------- */
.toast { position: fixed; z-index: 400; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--teal-d); color: #fff; padding: 12px 14px 12px 18px; border-radius: 14px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-l); transition: transform .6s var(--ease); width: calc(100% - 32px); max-width: 420px; font-size: .88rem; }
.toast.show { transform: translate(-50%, 0); }
.toast img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.toast a { margin-left: auto; color: var(--gold-l); font-weight: 600; white-space: nowrap; }

/* fly-to-cart ghost */
.fly { position: fixed; z-index: 500; width: 70px; height: 70px; border-radius: 12px; object-fit: cover; pointer-events: none; box-shadow: var(--shadow-l); transition: transform .9s cubic-bezier(.6,-0.2,.7,1), opacity .9s; }

/* ---------- 19. Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-d); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; outline: none;
  transition: border-color .3s, box-shadow .3s; font-size: 16px; /* 16px avoids iOS zoom */
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,75,.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.upload { border: 2px dashed rgba(31,78,95,.25); border-radius: 14px; padding: 26px; text-align: center; cursor: pointer; transition: border-color .3s, background .3s; position: relative; }
.upload:hover, .upload.drag { border-color: var(--gold); background: rgba(201,162,75,.06); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload img { max-height: 160px; margin: 12px auto 0; border-radius: 10px; }
.radio-cards { display: grid; gap: 12px; }
.radio-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .3s, box-shadow .3s; }
.radio-card:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,78,95,.12); }
.radio-card input { accent-color: var(--teal); width: 18px; height: 18px; margin-top: 3px; }
.radio-card small { display: block; color: var(--muted); }

/* ---------- 20. Shop page ---------- */
.shop { display: grid; gap: 30px; }
@media (min-width: 1024px) { .shop { grid-template-columns: 260px 1fr; gap: 44px; } }
.filters { position: fixed; inset: 0 auto 0 0; z-index: 210; width: min(340px, 88vw); background: var(--ivory); padding: 24px 20px 100px; overflow-y: auto; transform: translateX(-105%); transition: transform .6s var(--ease); box-shadow: var(--shadow-l); }
.filters.open { transform: none; }
@media (min-width: 1024px) { .filters { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; transform: none; box-shadow: none; padding: 0; width: auto; z-index: 1; max-height: calc(100vh - var(--header-h) - 40px); background: none; } }
.filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
@media (min-width: 1024px) { .filters__close { display: none; } }
.f-group { border-bottom: 1px solid var(--line); padding: 18px 0; }
.f-group h4 { font-family: var(--f-body); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; color: var(--teal-d); }
.f-opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .9rem; cursor: pointer; }
.f-opt input { accent-color: var(--teal); width: 17px; height: 17px; }
.f-opt span:last-child { margin-left: auto; font-size: .75rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .82rem; transition: .3s; min-height: 38px; }
.chip:hover { border-color: var(--teal); }
.chip.active, .chip[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.range { width: 100%; accent-color: var(--gold); }
.backdrop { position: fixed; inset: 0; background: rgba(16,44,54,.5); z-index: 205; opacity: 0; visibility: hidden; transition: .4s; }
.backdrop.show { opacity: 1; visibility: visible; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.toolbar select { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; min-height: 42px; }
.toolbar__count { font-size: .85rem; color: var(--muted); }
.filter-btn { display: inline-flex; }
@media (min-width: 1024px) { .filter-btn { display: none; } }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; flex-wrap: wrap; }
.pagination button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-weight: 600; transition: .3s; }
.pagination button:hover:not(:disabled) { border-color: var(--teal); }
.pagination button.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.pagination button:disabled { opacity: .35; cursor: default; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty .ar { font-size: 2.4rem; color: var(--gold); }

/* ---------- 21. Product detail ---------- */
.pd { display: grid; gap: 34px; }
@media (min-width: 960px) { .pd { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; } .pd__gallery { position: sticky; top: calc(var(--header-h) + 20px); } }
.pd__main { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4/5; background: var(--ivory-2); cursor: zoom-in; box-shadow: var(--shadow-m); }
.pd__main img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease-out, opacity .4s; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.pd__main.zoom img { transform: scale(2.1); }
.pd__main.swap img { opacity: 0; }
.pd__hint { position: absolute; bottom: 12px; right: 12px; background: rgba(255,255,255,.88); padding: 6px 12px; border-radius: 999px; font-size: .72rem; pointer-events: none; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.thumbs button { flex: 0 0 76px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .6; transition: .3s; padding: 0; }
.thumbs button.active, .thumbs button:hover { border-color: var(--gold); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd__info h1 { font-size: clamp(2rem, 5vw, 3rem); }
.pd__verse { margin: 18px 0; padding: 22px; border-radius: var(--r); background: #fff; border-left: 3px solid var(--gold); box-shadow: var(--shadow-s); }
.pd__verse .ar { font-size: 1.8rem; color: var(--teal-d); line-height: 1.9; }
.pd__verse .ur { color: var(--emerald); font-size: 1.05rem; margin-top: 6px; }
.pd__verse .en { font-style: italic; color: var(--muted); margin-top: 8px; font-family: var(--f-head); font-size: 1.15rem; }
.pd__price { font-size: 1.8rem; font-weight: 700; color: var(--teal-d); margin: 10px 0 4px; display: flex; align-items: baseline; gap: 10px; }
.pd__price span { transition: opacity .3s, transform .4s var(--ease); display: inline-block; }
.pd__price.tick span { opacity: 0; transform: translateY(-8px); }
.opt-label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 22px 0 10px; display: flex; justify-content: space-between; }
.opt-label em { font-style: normal; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); transition: .3s; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--teal); transform: scale(1.08); }
.sw-black { background: #1b1b1b; } .sw-gold { background: linear-gradient(135deg, #a77f2c, #f1d98f, #a77f2c); } .sw-wood { background: linear-gradient(135deg, #8a5a2f, #c49464); } .sw-none { background: repeating-linear-gradient(45deg, #fff 0 5px, #e6e1d8 5px 10px); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; height: 48px; }
.qty button { width: 44px; height: 100%; font-size: 1.2rem; color: var(--teal); }
.qty input { width: 40px; text-align: center; border: 0; background: transparent; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd__actions { display: grid; gap: 10px; margin-top: 24px; grid-template-columns: auto 1fr; }
.pd__actions .btn--wa { grid-column: 1 / -1; }
.acc { border-top: 1px solid var(--line); margin-top: 28px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { padding: 18px 0; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); transition: transform .4s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details > div { padding: 0 0 18px; color: var(--muted); font-size: .92rem; animation: fadeDown .5s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; text-align: center; font-size: .72rem; color: var(--muted); }
.perks div { background: #fff; border-radius: 12px; padding: 12px 6px; }
.perks strong { display: block; color: var(--teal-d); font-size: .78rem; }
/* sticky mobile buy bar */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 88; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); padding: 10px var(--gutter); display: flex; gap: 10px; align-items: center; box-shadow: 0 -8px 24px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .5s var(--ease); }
.buybar.show { transform: none; }
.buybar .btn { flex: 1; }
.buybar strong { font-size: 1.05rem; color: var(--teal-d); white-space: nowrap; }
@media (min-width: 960px) { .buybar { display: none; } }
body.has-buybar .wa-float { bottom: 84px; }

/* ---------- 22. Cart & checkout ---------- */
.cart { display: grid; gap: 30px; }
@media (min-width: 960px) { .cart { grid-template-columns: 1.6fr 1fr; gap: 50px; align-items: start; } }
.cart-item { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); animation: fadeUp .6s var(--ease) both; }
@media (min-width: 640px) { .cart-item { grid-template-columns: 110px 1fr auto; align-items: center; } }
.cart-item.removing { animation: removeX .5s var(--ease) forwards; }
@keyframes removeX { to { opacity: 0; transform: translateX(60px); height: 0; padding: 0; } }
.cart-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; }
.cart-item h3 { font-size: 1.2rem; }
.cart-item__meta { font-size: .8rem; color: var(--muted); }
.cart-item__row { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.cart-item .qty { height: 40px; }
.remove { font-size: .78rem; color: #b04332; text-decoration: underline; }
.cart-item__total { font-weight: 700; color: var(--teal-d); }
@media (max-width: 639px) { .cart-item__total { grid-column: 2; } }
.summary { background: #fff; border-radius: var(--r-l); padding: 26px 22px; box-shadow: var(--shadow-m); position: sticky; top: calc(var(--header-h) + 20px); }
.summary h2 { font-size: 1.7rem; margin-bottom: 16px; }
.summary__row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .92rem; }
.summary__row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 1.15rem; font-weight: 700; color: var(--teal-d); }
.mini-line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .85rem; }
.mini-line img { width: 54px; height: 64px; border-radius: 8px; object-fit: cover; }
.mini-line div { flex: 1; }
.bank { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--ivory-2); font-size: .85rem; display: none; }
.bank.show { display: block; animation: fadeDown .5s var(--ease); }
.steps { display: flex; justify-content: center; gap: 8px; font-size: .78rem; margin-top: 16px; color: var(--muted); flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 6px; }
.steps b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink); font-size: .72rem; }
.steps .on b { background: var(--teal); color: #fff; }
.success { text-align: center; max-width: 520px; margin: 0 auto; }
.success__check { width: 90px; height: 90px; margin: 0 auto 20px; }
.success__check circle { stroke-dasharray: 280; stroke-dashoffset: 280; animation: draw 1s var(--ease) forwards; }
.success__check path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .8s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- 23. About / contact ---------- */
.split-2 { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split-2 { grid-template-columns: 1fr 1fr; gap: 80px; } .split-2.rev > :first-child { order: 2; } }
.img-stack { position: relative; padding: 0 0 40px 40px; }
.img-stack img { border-radius: var(--r-l); box-shadow: var(--shadow-l); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.img-stack img + img { position: absolute; left: 0; bottom: 0; width: 48%; border: 6px solid var(--ivory); aspect-ratio: 1; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; padding: 22px 14px; border-radius: var(--r); text-align: center; box-shadow: var(--shadow-s); }
.stat strong { font-family: var(--f-head); font-size: 2.4rem; color: var(--teal); display: block; line-height: 1; }
.stat span { font-size: .78rem; color: var(--muted); }
.features { display: grid; gap: 18px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: #fff; padding: 30px 24px; border-radius: var(--r-l); box-shadow: var(--shadow-s); transition: transform .5s var(--ease), box-shadow .5s; position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--gold), var(--emerald)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-m); }
.feature:hover::after { transform: scaleX(1); }
.feature__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--emerald)); color: var(--gold-l); margin-bottom: 18px; }
.feature__icon svg { width: 26px; height: 26px; }
.feature p { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.contact-cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.c-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-s); transition: transform .4s var(--ease); }
.c-card:hover { transform: translateY(-4px); }
.c-card .feature__icon { width: 44px; height: 44px; margin: 0; flex: none; border-radius: 12px; }
.c-card .feature__icon svg { width: 20px; height: 20px; }
.c-card small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.c-card strong { word-break: break-word; }
.map { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-m); aspect-ratio: 16/10; background: var(--ivory-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) sepia(.1); }
.panel { background: #fff; border-radius: var(--r-l); padding: 26px 20px; box-shadow: var(--shadow-m); }
@media (min-width: 768px) { .panel { padding: 40px; } }

/* ---------- 24. Scroll reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.zoom { transform: scale(.92); }
.reveal.in { opacity: 1; transform: none; }
.img-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); }
.img-reveal.in { clip-path: inset(0 0 0 0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }

/* page loader */
.loader { position: fixed; inset: 0; z-index: 1000; background: var(--ivory); display: grid; place-items: center; transition: opacity .7s, visibility .7s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader svg { width: 72px; height: 72px; animation: spin 2.6s var(--ease) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader__ar { font-family: var(--f-ar); color: var(--teal); font-size: 1.6rem; margin-top: 12px; text-align: center; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .4; } }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .img-reveal, .split .w > span { opacity: 1; transform: none; clip-path: none; }
}

/* ---------- 25. Cart page (redesign) ---------- */
.cart-hero { padding: 40px 0 30px; background: linear-gradient(180deg, var(--ivory-2), var(--ivory)); }
.cart-hero__row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; }
.cart-hero__count { color: var(--muted); font-size: .9rem; margin-top: 4px; min-height: 1.2em; }
.checkout-steps { display: flex; list-style: none; gap: 0; counter-reset: s; }
.checkout-steps li { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.checkout-steps li + li::before { content: ""; width: 28px; height: 2px; background: var(--line); margin: 0 8px; border-radius: 2px; }
.checkout-steps b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-size: .75rem; }
.checkout-steps .on { color: var(--teal-d); font-weight: 600; }
.checkout-steps .on b { background: var(--teal); color: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31,78,95,.12); }
@media (max-width: 480px) { .checkout-steps span { display: none; } }
.free-ship { position: relative; overflow: hidden; margin-top: 24px; display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-s); font-size: .88rem; }
.free-ship strong { color: var(--emerald); }
.free-ship__icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(30,107,69,.1); color: var(--emerald); animation: drive 2.4s ease-in-out infinite; }
.free-ship__icon svg { width: 20px; }
@keyframes drive { 50% { transform: translateX(4px); } }
.free-ship__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--emerald), var(--gold)); transform-origin: left; animation: fillbar 1.6s .3s var(--ease) both; }
@keyframes fillbar { from { transform: scaleX(0); } }

.cart2 { display: grid; gap: 30px; }
@media (min-width: 1000px) { .cart2 { grid-template-columns: 1fr 380px; gap: 44px; align-items: start; } }
.cart2__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart2__head h2 { font-size: 1.6rem; }
.link-btn { font-size: .82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.link-btn:hover { color: #b04332; }

.c-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; background: #fff; border-radius: var(--r-l); padding: 12px; box-shadow: var(--shadow-s); margin-bottom: 14px; animation: fadeUp .6s var(--ease) both; transition: box-shadow .4s, transform .4s var(--ease); }
.c-item:hover { box-shadow: var(--shadow-m); }
@media (min-width: 640px) { .c-item { grid-template-columns: 150px 1fr; gap: 22px; padding: 16px; } }
.c-item.removing { animation: removeX .45s var(--ease) forwards; }
.c-item__img { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4/5; background: var(--ivory-2); }
.c-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.c-item:hover .c-item__img img { transform: scale(1.06); }
.c-item__body { display: flex; flex-direction: column; min-width: 0; }
.c-item__top { display: flex; justify-content: space-between; gap: 8px; }
.c-item__ar { font-family: var(--f-ar); direction: rtl; text-align: left; color: var(--gold); font-size: .95rem; line-height: 1.5; }
.c-item h3 { font-size: 1.1rem; line-height: 1.25; }
@media (min-width: 640px) { .c-item h3 { font-size: 1.35rem; } }
.c-item h3 a:hover { color: var(--emerald); }
.c-item__x { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background .3s, color .3s, transform .4s var(--ease); }
.c-item__x svg { width: 18px; height: 18px; }
.c-item__x:hover { background: #fbe9e6; color: #b04332; transform: rotate(90deg); }
.c-item__opts { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 10px 0 12px; font-size: .78rem; }
.c-sel { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.c-sel select { padding: 8px 30px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4E5F' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 8px center / 14px no-repeat; -webkit-appearance: none; appearance: none; font-size: .82rem; color: var(--ink); max-width: 100%; }
.c-frames { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.c-frames em { font-style: normal; color: var(--teal-d); font-weight: 600; }
.swatch--sm { width: 28px; height: 28px; }
.c-frames .swatches { gap: 8px; }
.c-item__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.c-item__foot .qty { height: 40px; }
.c-item__foot .qty button { width: 38px; }
.c-item__price { text-align: right; line-height: 1.2; }
.c-item__price small { display: block; color: var(--muted); font-size: .72rem; }
.c-item__price strong { font-size: 1.15rem; color: var(--teal-d); }

.cart-empty { text-align: center; background: #fff; border-radius: var(--r-l); padding: 50px 22px; box-shadow: var(--shadow-s); animation: fadeUp .7s var(--ease) both; }
.cart-empty__icon { width: 86px; height: 86px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--emerald)); color: var(--gold-l); animation: float 3s ease-in-out infinite alternate; }
.cart-empty__icon svg { width: 38px; height: 38px; }
.cart-empty .ar { font-size: 1.7rem; color: var(--gold); }
.cart-empty p:not(.ar) { color: var(--muted); max-width: 380px; margin: 8px auto 24px; }

.cart-perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 700px) { .cart-perks { grid-template-columns: repeat(4, 1fr); } }
.cart-perks div { background: #fff; border-radius: 14px; padding: 14px 10px; text-align: center; font-size: .8rem; box-shadow: var(--shadow-s); transition: transform .4s var(--ease); }
.cart-perks div:hover { transform: translateY(-4px); }
.cart-perks span { font-size: 1.4rem; display: block; }
.cart-perks strong { display: block; color: var(--teal-d); }
.cart-perks small { color: var(--muted); }

.summary2 { background: #fff; border-radius: var(--r-l); padding: 26px 22px; box-shadow: var(--shadow-m); position: relative; overflow: hidden; }
@media (min-width: 1000px) { .summary2 { position: sticky; top: calc(var(--header-h) + 20px); } }
.summary2::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--emerald), var(--gold)); }
.summary2 h2 { font-size: 1.7rem; margin-bottom: 12px; }
.summary2 .total span:last-child { font-size: 1.4rem; }
.summary2__note { font-size: .74rem; color: var(--muted); margin: 2px 0 18px; text-align: right; }
.summary2 .btn + .btn { margin-top: 10px; }
.summary2__pay { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 18px; }
.summary2__pay span { font-size: .68rem; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: var(--ivory-2); color: var(--teal-d); }
.summary2__secure { font-size: .74rem; color: var(--muted); text-align: center; margin-top: 10px; }
[hidden] { display: none !important; }

.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 88; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 -8px 24px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .5s var(--ease); }
.cart-bar.show { transform: none; }
.cart-bar small { display: block; color: var(--muted); font-size: .72rem; }
.cart-bar strong { color: var(--teal-d); font-size: 1.1rem; }
@media (min-width: 1000px) { .cart-bar { display: none; } }
body[data-page="cart"] .wa-float { bottom: 84px; }
@media (min-width: 1000px) { body[data-page="cart"] .wa-float { bottom: 16px; } }
