/* ===== Al Noor Foundation — Catalog (public site) ===== */
@import url('fonts.css');

:root {
  color-scheme: dark;
  --bg: #0D0A07;
  --bg-deep: #0A0806;
  --surface: #14100B;
  --surface-2: #1A140E;
  --surface-3: #0F0B08;
  --gold: #D4AF6A;
  --gold-hi: #E8C98A;
  --gold-line: #8A6D35;
  --text: #F3EBDD;
  --text-2: #DDD2BF;
  --muted: #B9AC96;
  --muted-2: #9C907C;
  --danger: #F09A8E;
  --line: rgba(212,175,106,0.18);
  --line-2: rgba(212,175,106,0.35);
  --line-3: rgba(212,175,106,0.6);
  --radius: 1.375rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 1rem; line-height: 1.5; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
button, input, textarea, select { font-family: inherit; }
.ic { width: 1.25rem; height: 1.25rem; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: 85rem; margin: 0 auto; padding-left: 2rem; padding-right: 2rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.hdr { position: relative; z-index: 3; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.hdr-in { min-height: 5.5rem; display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.hdr-logo img { height: 4rem; width: auto; }
.nav { display: flex; align-items: center; gap: 0.25rem; flex: 1 1 auto; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-size: 1.125rem; font-weight: 700; padding: 0.75rem 1rem; border-bottom: 2px solid transparent; transition: color .15s; }
.nav a:hover { color: var(--gold-hi); }
.nav a.active { color: var(--gold); border-bottom-color: var(--gold); }
.hdr-search { display: flex; align-items: center; gap: 0.5rem; background: #17120D; border: 1px solid rgba(212,175,106,0.25); border-radius: 0.875rem; padding: 0 0.875rem; height: 3rem; min-width: 15rem; }
.hdr-search .ic { color: var(--gold); }
.hdr-search input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--text); font-size: 1rem; }
.hdr-search input::placeholder { color: var(--muted-2); }
.hdr-search button { background: none; border: none; padding: 0; color: var(--gold); cursor: pointer; display: flex; }

/* ---------- Hero / home ---------- */
.hero { position: relative; padding: 3rem 2rem 5rem; overflow: hidden; }
.hero-bg { position: absolute; top: 0; width: 34%; height: 45rem; object-fit: cover; opacity: .32; pointer-events: none; }
.hero-bg.r { right: 0; }
.hero-bg.l { left: 0; transform: scaleX(-1); }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(13,10,7,.55) 0%, rgba(13,10,7,.92) 55%, var(--bg) 85%); pointer-events: none; }
.hero-in { position: relative; max-width: 77.5rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
.hero-logo { height: 11.875rem; width: auto; }
.hero-title { display: flex; align-items: center; gap: 1.75rem; width: 100%; max-width: 40rem; justify-content: center; }
.hero-title span { flex: 1; height: 2px; background: var(--gold-line); }
.hero-title h1 { margin: 0; font-size: 3.5rem; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.hero-sub { margin: 0; font-size: 1.5rem; color: #CFC3AE; }
.hero-text { margin: 0.5rem 0 0; font-size: 1.0625rem; color: var(--muted); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); gap: 1.75rem; width: 100%; margin-top: 2.75rem; }
.cat-card { background: linear-gradient(180deg, #1A140E 0%, #0F0B08 100%); border: 1px solid var(--line-3); border-radius: 1.5rem; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-0.25rem); border-color: var(--gold); }
.cat-card > a.cat-img { display: block; width: 100%; }
.cat-card img { width: 100%; height: 17.5rem; object-fit: cover; }
.cat-body { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.25rem 1.5rem 1.75rem; width: 100%; }
.cat-ic { width: 3rem; height: 3rem; color: var(--gold); stroke-width: 1.6; }
.cat-body h2 { margin: 0; font-size: 2.125rem; font-weight: 800; }
.cat-body p { margin: 0; font-size: 1rem; color: var(--muted); }
.cat-body .count { color: var(--gold); font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.625rem; }
.btn-pill { display: inline-flex; align-items: center; gap: 0.625rem; background: transparent; border: 1.5px solid var(--gold); color: var(--text); border-radius: 62.4375rem; height: 3.25rem; padding: 0 2.25rem; font-size: 1.125rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.btn-pill .ic { color: var(--gold); width: 1.125rem; height: 1.125rem; }
.btn-pill:hover { background: var(--gold); color: #1A1208; }
.btn-pill:hover .ic { color: #1A1208; }

.features { max-width: 77.5rem; margin: 0 auto; padding: 0 2rem 4.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr)); gap: 1.25rem; }
.feature { border: 1px solid rgba(212,175,106,0.22); border-radius: 1.125rem; padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; background: #120E0A; }
.feature .ic { width: 2rem; height: 2rem; color: var(--gold); stroke-width: 1.6; }
.feature h3 { margin: 0 0 0.375rem; font-size: 1.1875rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

.empty { text-align: center; padding: 5rem 1.25rem; color: var(--muted); font-size: 1.125rem; }

/* ---------- Category page ---------- */
.page { padding-top: 2rem; padding-bottom: 5rem; }
.crumbs { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; color: var(--muted); }
.crumbs a { text-decoration: none; padding: 0.5rem 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin: 0.75rem 0 1.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(212,175,106,0.2); }
.page-head h1 { margin: 0; font-size: 2.75rem; font-weight: 800; }
.page-head p { margin: 0.375rem 0 0; font-size: 1.0625rem; color: var(--muted); }
.page-head p strong { color: var(--gold); }
.chips { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.chip { height: 2.75rem; padding: 0 1.25rem; border-radius: 62.4375rem; border: 1px solid var(--gold); background: transparent; color: var(--text); font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.chip:hover { color: var(--gold-hi); }
.chip.active { background: var(--gold); color: #1A1208; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.875rem, 1fr)); gap: 1.5rem; }
.prod-card { position: relative; background: #15100B; border: 1px solid var(--line-2); border-radius: 1.25rem; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.prod-card:hover { transform: translateY(-0.1875rem); border-color: var(--gold); }
.prod-img { display: block; padding: 0; border: none; background: #0F0B08; cursor: pointer; position: relative; width: 100%; }
.prod-img img { width: 100%; height: 15.625rem; object-fit: cover; }
.img-count { position: absolute; bottom: 0.75rem; left: 0.75rem; display: inline-flex; align-items: center; gap: 0.375rem; background: rgba(10,8,6,.8); color: var(--text); border-radius: 62.4375rem; padding: 0.25rem 0.75rem; font-size: 0.8125rem; }
.img-count .ic { width: 0.875rem; height: 0.875rem; }
.badge-disc { position: absolute; top: 0.875rem; right: 0.875rem; background: var(--gold); color: #1A1208; font-weight: 800; font-size: 0.875rem; border-radius: 62.4375rem; padding: 0.375rem 0.875rem; z-index: 1; }
.prod-body { padding: 1.125rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.375rem; flex: 1; }
.prod-body h3 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.prod-code { margin: 0; font-size: 0.875rem; color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: 0.625rem; margin: 0.375rem 0 0.75rem; flex-wrap: wrap; }
.price-now { font-size: 1.375rem; font-weight: 800; color: var(--gold); }
.price-old { font-size: 1rem; color: var(--muted-2); text-decoration: line-through; }
.btn-outline { margin-top: auto; height: 3rem; border-radius: 0.75rem; border: 1.5px solid var(--gold); background: transparent; color: var(--text); font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.btn-outline:hover { background: var(--gold); color: #1A1208; }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--line); background: var(--bg-deep); }
.ftr-in { padding-top: 2.25rem; padding-bottom: 2.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.ftr-brand { display: flex; align-items: center; gap: 1rem; }
.ftr-brand img { height: 3.25rem; width: auto; }
.ftr-brand p { margin: 0; }
.ftr-brand .n { font-size: 1.125rem; font-weight: 800; }
.ftr-brand .t { font-size: 0.875rem; color: var(--muted); margin-top: 2px; }
.ftr-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.ftr-links a { display: inline-flex; align-items: center; gap: 0.5rem; height: 3rem; padding: 0 1.375rem; border-radius: 0.75rem; border: 1px solid rgba(212,175,106,0.5); color: var(--text); text-decoration: none; font-size: 1rem; font-weight: 700; }
.ftr-links a:hover { border-color: var(--gold); color: var(--gold-hi); }
.ftr-links .ic { color: var(--gold); width: 1.125rem; height: 1.125rem; }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(5,4,3,.82); display: flex; align-items: flex-start; justify-content: center; padding: 2rem 1rem; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.modal.order { z-index: 30; background: rgba(5,4,3,.85); padding-top: 3rem; }
.modal-box { position: relative; width: 100%; max-width: 68.75rem; background: var(--surface); border: 1px solid rgba(212,175,106,.55); border-radius: 1.625rem; padding: 1.75rem; display: flex; flex-wrap: wrap; gap: 2rem; animation: pop .18s ease-out; }
.modal.order .modal-box { max-width: 33.75rem; flex-direction: column; flex-wrap: nowrap; gap: 1.125rem; border-color: var(--line-3); border-radius: 1.5rem; }
@keyframes pop { from { opacity: 0; transform: translateY(0.625rem) scale(.98); } to { opacity: 1; transform: none; } }
.icon-btn { width: 2.75rem; height: 2.75rem; border-radius: 62.4375rem; border: 1px solid rgba(212,175,106,.4); background: var(--bg); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.modal-close { position: absolute; top: 1rem; left: 1rem; z-index: 2; }

.gallery { flex: 1 1 27.5rem; min-width: 0; display: flex; flex-direction: column; gap: 0.875rem; }
.gal-main { position: relative; border-radius: 1.125rem; overflow: hidden; background: var(--bg); }
.gal-main img { width: 100%; height: 27.5rem; object-fit: cover; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 62.4375rem; border: 1px solid rgba(212,175,106,.5); background: rgba(10,8,6,.75); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gal-nav:hover { border-color: var(--gold); color: var(--gold); }
.gal-nav .ic { width: 1.375rem; height: 1.375rem; stroke-width: 2; }
.gal-nav.prev { right: 0.875rem; }
.gal-nav.next { left: 0.875rem; }
.gal-pos { position: absolute; bottom: 0.875rem; left: 50%; transform: translateX(-50%); background: rgba(10,8,6,.8); border-radius: 62.4375rem; padding: 0.375rem 0.875rem; font-size: 0.875rem; }
.thumbs { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.thumb { width: 5.25rem; height: 5.25rem; padding: 0; border-radius: 0.75rem; overflow: hidden; border: 2px solid rgba(212,175,106,.2); background: none; cursor: pointer; opacity: .6; transition: opacity .15s, border-color .15s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--gold); }

.details { flex: 1 1 23.75rem; min-width: 0; display: flex; flex-direction: column; gap: 1rem; padding-top: 0.5rem; }
.tag { align-self: flex-start; border: 1px solid rgba(212,175,106,.5); color: var(--gold); border-radius: 62.4375rem; padding: 0.25rem 0.875rem; font-size: 0.875rem; font-weight: 700; }
.details h2 { margin: 0; font-size: 2.125rem; font-weight: 800; line-height: 1.3; }
.details .code { margin: 0.375rem 0 0; color: var(--muted); font-size: 0.9375rem; }
.price-box { border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 1rem; padding: 1.125rem 1.25rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.price-box .now { font-size: 2.25rem; font-weight: 800; color: var(--gold); }
.price-box .was { display: flex; flex-direction: column; gap: 2px; }
.price-box .was s { font-size: 1.125rem; color: var(--muted-2); }
.price-box .was span { font-size: 0.875rem; color: var(--gold-hi); }
.price-box .pct { margin-inline-start: auto; background: var(--gold); color: #1A1208; font-weight: 800; border-radius: 62.4375rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.desc { margin: 0; font-size: 1.0625rem; line-height: 1.8; color: var(--text-2); white-space: pre-line; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.specs div { background: var(--surface-3); border: 1px solid rgba(212,175,106,.15); border-radius: 0.75rem; padding: 0.75rem 0.875rem; }
.specs dt { font-size: 0.8125rem; color: var(--muted); }
.specs dd { margin: 0.25rem 0 0; font-size: 1rem; font-weight: 700; }
.cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.25rem; }
.btn-gold { flex: 2 1 13.75rem; height: 3.5rem; border-radius: 0.875rem; border: none; background: var(--gold); color: #1A1208; font-size: 1.1875rem; font-weight: 800; cursor: pointer; transition: background .15s; }
.btn-gold:hover { background: var(--gold-hi); }
.btn-gold:disabled { opacity: .6; cursor: wait; }
.btn-line { flex: 1 1 10rem; min-height: 3.5rem; padding: 0 1.375rem; white-space: nowrap; border-radius: 0.875rem; border: 1.5px solid var(--gold); color: var(--text); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 1.0625rem; font-weight: 700; background: transparent; cursor: pointer; }
.btn-line:hover { color: var(--gold-hi); }
.btn-line .ic { color: var(--gold); }
.note { margin: 0; font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.copy-link { align-self: flex-start; background: none; border: none; color: var(--muted); font-size: 0.875rem; cursor: pointer; padding: 0.25rem 0; text-decoration: underline; text-underline-offset: 0.1875rem; }
.copy-link:hover { color: var(--gold); }

/* Order modal */
.order-head h2 { margin: 0; font-size: 1.75rem; font-weight: 800; }
.order-head p { margin: 0.375rem 0 0; font-size: 0.9375rem; color: var(--muted); }
.order-prod { display: flex; align-items: center; gap: 0.875rem; background: var(--surface-3); border: 1px solid rgba(212,175,106,.25); border-radius: 0.875rem; padding: 0.625rem; }
.order-prod img { width: 4.5rem; height: 4.5rem; border-radius: 0.625rem; object-fit: cover; }
.order-prod .info { flex: 1; min-width: 0; }
.order-prod .info p { margin: 0; }
.order-prod .info .n { font-size: 1.0625rem; font-weight: 800; }
.order-prod .info .c { font-size: 0.875rem; color: var(--muted); margin-top: 2px; }
.order-prod .p { font-size: 1.125rem; font-weight: 800; color: var(--gold); }
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field label { font-size: 0.9375rem; font-weight: 700; }
.field label .req { color: var(--gold); }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea { border-radius: 0.75rem; border: 1px solid rgba(212,175,106,.3); background: var(--bg); color: var(--text); padding: 0 1rem; font-size: 1rem; outline: none; }
.field input { height: 3.25rem; }
.field textarea { padding: 0.75rem 1rem; resize: vertical; min-height: 5.625rem; }
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field.has-err input { border-color: var(--danger); }
.field .err { font-size: 0.875rem; color: var(--danger); }
.form-err { margin: 0; padding: 0.75rem 0.875rem; border-radius: 0.75rem; background: rgba(240,154,142,.08); border: 1px solid rgba(240,154,142,.4); color: var(--danger); font-size: 0.9375rem; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.privacy { margin: 0; text-align: center; font-size: 0.8125rem; color: var(--muted); }
.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.875rem; padding: 1.5rem 0.5rem 0.5rem; }
.done-ic { width: 5.25rem; height: 5.25rem; border-radius: 62.4375rem; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.done-ic .ic { width: 2.5rem; height: 2.5rem; stroke-width: 2.2; }
.done h2 { margin: 0; font-size: 1.75rem; font-weight: 800; }
.done p { margin: 0; font-size: 1.0625rem; line-height: 1.8; color: var(--text-2); }
.done .btn-line { flex: none; height: 3.25rem; padding: 0 2rem; margin-top: 0.5rem; }

.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--surface-2); border: 1px solid var(--gold); border-radius: 0.75rem; padding: 0.75rem 1.25rem; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hdr-in { gap: 0.75rem; }
  .hdr-search { order: 3; flex: 1 1 100%; }
  .nav { order: 2; flex: 1 1 100%; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; font-size: 1rem; padding: 0.625rem 0.75rem; }
}
@media (max-width: 640px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .page { padding-bottom: 3.5rem; }
  .hdr-logo img { height: 3.25rem; }
  .hero { padding: 2rem 1rem 3.5rem; }
  .hero-logo { height: 8.125rem; }
  .hero-title { gap: 0.875rem; }
  .hero-title h1 { font-size: 2.375rem; }
  .hero-sub { font-size: 1.1875rem; }
  .hero-bg { width: 50%; height: 32.5rem; }
  .cat-grid { grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem; }
  .cat-card img { height: 14.375rem; }
  .page-head h1 { font-size: 2.125rem; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .prod-img img { height: 10.625rem; }
  .prod-body { padding: 0.75rem; }
  .prod-body h3 { font-size: 1rem; }
  .price-now { font-size: 1.125rem; }
  .price-old { font-size: 0.875rem; }
  .badge-disc { top: 0.5rem; right: 0.5rem; font-size: 0.75rem; padding: 0.25rem 0.625rem; }
  .btn-outline { height: 2.625rem; font-size: 0.875rem; }
  .modal { padding: 0; }
  .modal-box { border-radius: 0; min-height: 100%; padding: 1rem; gap: 1.25rem; border: none; }
  .modal.order { padding: 0; }
  .modal.order .modal-box { border-radius: 0; }
  .modal-box, .modal.order .modal-box { max-width: 100vw; overflow-x: hidden; }
  .cta .btn-gold, .cta .btn-line { flex: 1 1 100%; }
  .gal-main img { height: 21.25rem; }
  .thumb { width: 4rem; height: 4rem; }
  .details h2 { font-size: 1.625rem; }
  .price-box .now { font-size: 1.75rem; }
  .modal-close { top: 1.5rem; left: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
#orderForm { display: flex; flex-direction: column; gap: 1.125rem; }
#orderForm .btn-gold { flex: none; width: 100%; }
.field .hint-sm { font-size: 0.8125rem; color: var(--muted); }

/* ---------- Global scale: every size above is in rem, so this one value sizes the whole site ---------- */
@media (min-width: 768px) { html { font-size: 14.5px; } }
@media (min-width: 1200px) { html { font-size: 13px; } }

/* Product image zoom */
.gal-main img { transition: transform .18s ease-out; will-change: transform; }
.gal-main.zooming img { transform: scale(2.2); }
.gal-main.zooming .gal-pos, .gal-main.zooming .zoom-hint { opacity: 0; }
.zoom-hint { position: absolute; top: 0.875rem; right: 0.875rem; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: rgba(10,8,6,.75); color: var(--gold); display: flex; align-items: center; justify-content: center; pointer-events: none; transition: opacity .15s; }
@media (hover: hover) and (pointer: fine) { .gal-main { cursor: zoom-in; } }

/* Announcement popup */
.modal.ann { z-index: 40; align-items: center; }
.ann-box { max-width: 30rem; padding: 0; flex-direction: column; flex-wrap: nowrap; gap: 0; overflow: hidden; border-color: var(--line-3); }
.ann-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ann-content { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 0.875rem; text-align: center; align-items: center; }
.ann-content h2 { margin: 0; font-size: 1.75rem; font-weight: 800; line-height: 1.35; }
.ann-content .tag { align-self: center; }
.ann-content .desc { font-size: 1.0625rem; }
.ann-actions { display: flex; gap: 0.75rem; width: 100%; flex-wrap: wrap; margin-top: 0.25rem; }
.ann-btn { flex: 2 1 12rem; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; height: 3.25rem; }
.ann-btn:hover { color: #1A1208; }
.ann-dismiss { flex: 1 1 8rem; min-height: 3.25rem; }
.ann .modal-close { background: rgba(10,8,6,.8); }
@media (max-width: 640px) {
  .modal.ann { padding: 1rem; align-items: center; }
  .modal.ann .ann-box { min-height: 0; border-radius: 1.25rem; border: 1px solid var(--line-3); }
  .ann .modal-close { top: 0.75rem; left: 0.75rem; }
}

/* Currency switch */
.cur-switch { display: inline-flex; border: 1px solid rgba(212,175,106,0.45); border-radius: 999px; padding: 0.1875rem; gap: 0.125rem; background: #17120D; flex: none; }
.cur-switch button { min-height: 2.5rem; min-width: 3.5rem; padding: 0 0.875rem; border: none; border-radius: 999px; background: transparent; color: var(--text); font-size: 0.9375rem; font-weight: 700; cursor: pointer; }
.cur-switch button:hover { color: var(--gold-hi); }
.cur-switch button.active { background: var(--gold); color: #1A1208; }
.cur-note { margin: -0.25rem 0 0; font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) {
  .cur-switch { order: 1; margin-inline-start: auto; }
  .cur-switch button { min-height: 2.25rem; min-width: 3rem; padding: 0 0.625rem; font-size: 0.875rem; }
}

/* ---------- Badges, stock, add-ons ---------- */
.card-tags { position: absolute; top: 0.875rem; right: 0.875rem; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 0.375rem; pointer-events: none; }
.card-tags .badge-disc { position: static; }
.badge-tag { display: inline-block; border-radius: 999px; padding: 0.3125rem 0.8125rem; font-size: 0.8125rem; font-weight: 800; background: var(--bg); color: var(--gold); border: 1px solid var(--gold); }
.badge-tag.b-new { background: #F3EBDD; color: #1A1208; border-color: #F3EBDD; }
.badge-tag.b-best { background: var(--bg); color: var(--gold-hi); border-color: var(--gold-hi); }
.badge-tag.b-limited { background: #3A1F14; color: #F2B8A2; border-color: #7A3E28; }
.badge-tag.b-offer { background: var(--gold); color: #1A1208; border-color: var(--gold); }
.prod-card.oos .prod-img img { filter: grayscale(.85) brightness(.6); }
.oos-ribbon { position: absolute; inset: auto 0 50% 0; transform: translateY(50%); background: rgba(10,8,6,.88); color: var(--text); text-align: center; font-weight: 800; font-size: 1rem; padding: 0.5rem; border-block: 1px solid var(--line-3); }
.card-addons { margin: -0.375rem 0 0.75rem; font-size: 0.8125rem; color: var(--gold); display: flex; align-items: center; gap: 0.375rem; }
.card-addons .ic { width: 0.9375rem; height: 0.9375rem; }

.featured { padding-bottom: 3.5rem; }
.feat-head { display: flex; align-items: center; gap: 1.5rem; margin: 0 auto 1.75rem; max-width: 40rem; }
.feat-head span { flex: 1; height: 2px; background: var(--gold-line); }
.feat-head h2 { margin: 0; font-size: 2rem; font-weight: 800; white-space: nowrap; }

.pm-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.oos-tag { border-radius: 999px; padding: 0.25rem 0.875rem; font-size: 0.875rem; font-weight: 800; background: #3A1F14; color: #F2B8A2; border: 1px solid #7A3E28; }
.pm-addons { border: 1px dashed var(--line-3); border-radius: 0.875rem; padding: 0.75rem 1rem; }
.pm-addons-t { margin: 0 0 0.5rem; color: var(--gold); font-weight: 800; display: flex; align-items: center; gap: 0.375rem; }
.pm-addons ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.375rem; }
.pm-addons li { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; }
.pm-addons li .p, .om-addon .p { margin-inline-start: auto; color: var(--gold); font-weight: 800; white-space: nowrap; }
.info-btn { width: 1.625rem; height: 1.625rem; flex: none; border-radius: 999px; border: 1.5px solid var(--gold); background: transparent; color: var(--gold); font-weight: 800; font-size: 0.9375rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.info-btn:hover, .info-btn[aria-expanded="true"] { background: var(--gold); color: #1A1208; }
.addon-pop { position: fixed; z-index: 60; background: var(--surface-2); border: 1px solid var(--gold); border-radius: 1rem; padding: 0.5rem; box-shadow: 0 1rem 2.5rem rgba(0,0,0,.6); }
.addon-pop img { width: 100%; max-height: 16rem; object-fit: contain; border-radius: 0.625rem; background: var(--bg); }
.addon-pop span { display: block; text-align: center; font-size: 0.8125rem; color: var(--muted); padding: 0.375rem 0 0.125rem; }

.om-addons { border: 1px solid var(--line-2); border-radius: 0.875rem; padding: 0.75rem 1rem 0.875rem; margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.om-addons legend { font-weight: 800; color: var(--gold); padding: 0 0.375rem; }
#omAddonList { display: flex; flex-direction: column; gap: 0.625rem; }
.om-addon { display: flex; align-items: center; gap: 0.5rem; }
.om-addon-l { display: flex; align-items: center; gap: 0.625rem; cursor: pointer; font-weight: 700; min-height: 2.75rem; }
.om-addon-l input { width: 1.25rem; height: 1.25rem; accent-color: var(--gold); flex: none; }
.om-addon-text { margin: -0.25rem 0 0.25rem; padding-inline-start: 1.875rem; }
.om-total { margin: 0.25rem 0 0; padding-top: 0.625rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-weight: 700; }
.om-total strong { color: var(--gold); font-size: 1.25rem; }
@media (max-width: 640px) {
  .feat-head h2 { font-size: 1.5rem; }
  .card-tags { top: 0.5rem; right: 0.5rem; }
  .badge-tag { font-size: 0.6875rem; padding: 0.25rem 0.625rem; }
  .oos-ribbon { font-size: 0.8125rem; padding: 0.375rem; }
  .card-addons { font-size: 0.75rem; }
}

/* ---------- Cart ---------- */
.hdr-tools { display: flex; align-items: center; gap: 0.625rem; flex: none; }
.cart-btn { position: relative; width: 3rem; height: 3rem; border-radius: 0.875rem; border: 1px solid rgba(212,175,106,0.35); background: #17120D; color: var(--gold); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cart-btn:hover { border-color: var(--gold); }
.cart-btn .ic { width: 1.5rem; height: 1.5rem; }
.cart-count { position: absolute; top: -0.4375rem; left: -0.4375rem; min-width: 1.375rem; height: 1.375rem; padding: 0 0.3125rem; border-radius: 999px; background: var(--gold); color: #1A1208; font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; animation: pop .25s ease-out; }

.cart-fab { position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 15; display: flex; align-items: center; gap: 0.625rem; height: 3.5rem; padding: 0 0.625rem 0 1.125rem; border-radius: 999px; border: 1px solid var(--gold); background: var(--surface-2); color: var(--text); font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; box-shadow: 0 0.75rem 2rem rgba(0,0,0,.55); }
.cart-fab:hover { border-color: var(--gold-hi); }
.cart-fab .ic { color: var(--gold); width: 1.375rem; height: 1.375rem; }
.cart-fab .cf-n { min-width: 1.5rem; height: 1.5rem; border-radius: 999px; background: var(--gold); color: #1A1208; font-size: 0.8125rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.375rem; }
.cart-fab .cf-sum { color: var(--gold); font-weight: 800; }
.cart-fab .cf-go { display: inline-flex; align-items: center; gap: 0.25rem; background: var(--gold); color: #1A1208; border-radius: 999px; height: 2.5rem; padding: 0 1rem; font-weight: 800; }
.cart-fab .cf-go .ic { color: #1A1208; width: 1.125rem; height: 1.125rem; }

.modal.cart { z-index: 35; justify-content: flex-end; padding: 0; }
.modal.cart .cart-box { max-width: 30rem; min-height: 100%; border-radius: 0; border-width: 0 0 0 1px; flex-direction: column; flex-wrap: nowrap; gap: 1rem; padding: 1.5rem; animation: slideIn .22s ease-out; }
@keyframes slideIn { from { transform: translateX(-2rem); opacity: 0; } to { transform: none; opacity: 1; } }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 0.875rem; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; }
.cart-head h2 .ic { color: var(--gold); width: 1.5rem; height: 1.5rem; }
.cart-empty { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 3rem 1rem; color: var(--muted); text-align: center; }
.cart-empty .ic { width: 3.5rem; height: 3.5rem; color: var(--gold-line); }
.cart-empty p { margin: 0; font-size: 1.125rem; }
.cart-empty .btn-line { flex: none; height: 3rem; padding: 0 1.5rem; }
.cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.cart-item { position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.25rem 0.875rem; padding: 0.75rem; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 1rem; }
.cart-item.unavailable { border-color: var(--danger); opacity: .8; }
.cart-item img { grid-row: span 2; width: 4.5rem; height: 4.5rem; border-radius: 0.75rem; object-fit: cover; }
.ci-info { min-width: 0; padding-inline-end: 1.75rem; }
.ci-info p { margin: 0; }
.ci-name { font-weight: 800; font-size: 1rem; line-height: 1.4; }
.ci-code { font-size: 0.8125rem; color: var(--muted); }
.ci-addon { font-size: 0.8125rem; color: var(--gold); margin-top: 0.125rem !important; }
.ci-warn { font-size: 0.8125rem; color: var(--danger); font-weight: 700; margin-top: 0.25rem !important; }
.ci-ctl { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ci-price { font-weight: 800; color: var(--gold); white-space: nowrap; }
.ci-rm { position: absolute; top: 0.5rem; left: 0.5rem; width: 2rem; height: 2rem; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 1.125rem; cursor: pointer; line-height: 1; }
.ci-rm:hover { color: var(--danger); border-color: var(--danger); }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 0.875rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 700; }
.cart-sum strong { font-size: 1.5rem; color: var(--gold); }
#cartForm { display: flex; flex-direction: column; gap: 0.875rem; }
#cartForm .btn-gold { flex: none; width: 100%; }
.cart-form-t { margin: 0.5rem 0 0; font-size: 1.125rem; font-weight: 800; }

/* quantity stepper (popup + cart) */
.pm-buy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pm-line { margin: 0; font-weight: 700; }
.pm-line strong { color: var(--gold); font-size: 1.375rem; }
#pmAddonList { display: flex; flex-direction: column; gap: 0.5rem; }
.btn-gold .ic { width: 1.25rem; height: 1.25rem; vertical-align: -0.25rem; margin-inline-end: 0.25rem; }
.cta .btn-gold, .cta .btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; }
.cta .btn-wa { flex-basis: 100%; min-height: 3rem; font-size: 1rem; border-style: dashed; }

.toast-cart { position: fixed; bottom: 5.5rem; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 0.875rem; background: var(--surface-2); border: 1px solid var(--gold); border-radius: 0.875rem; padding: 0.625rem 0.75rem 0.625rem 1.125rem; font-weight: 700; box-shadow: 0 0.75rem 2rem rgba(0,0,0,.5); animation: pop .2s ease-out; max-width: calc(100vw - 2rem); }
.toast-cart button { border: none; background: var(--gold); color: #1A1208; font-family: inherit; font-weight: 800; border-radius: 0.625rem; height: 2.5rem; padding: 0 1rem; cursor: pointer; white-space: nowrap; }

@media (max-width: 900px) {
  .hdr-tools { order: 1; margin-inline-start: auto; }
  .cur-switch { order: 0; margin-inline-start: 0; }
}
@media (max-width: 640px) {
  .cart-btn { width: 2.75rem; height: 2.75rem; }
  .cart-fab { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; justify-content: space-between; }
  .cart-fab .cf-t { display: none; }
  .modal.cart .cart-box { max-width: none; border: none; padding: 1rem; }
  .toast-cart { bottom: 5rem; }
}

/* ---------- Mobile: categories as a swipeable carousel (desktop unchanged) ---------- */
.cat-dots { display: none; }
@media (max-width: 640px) {
  .cat-grid { display: flex; gap: 0.875rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem;
    margin-inline: -1rem; padding: 0.25rem 1rem 0.75rem; width: calc(100% + 2rem); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-card { flex: 0 0 74%; scroll-snap-align: center; border-radius: 1.25rem; }
  .cat-card:hover { transform: none; }
  .cat-card img { height: 9.5rem; }
  .cat-body { padding: 0.875rem 1rem 1.125rem; gap: 0.25rem; }
  .cat-ic { width: 2.25rem; height: 2.25rem; }
  .cat-body h2 { font-size: 1.5rem; }
  .cat-body p { font-size: 0.875rem; }
  .cat-body .count { margin-bottom: 0.5rem; font-size: 0.8125rem; }
  .btn-pill { height: 2.75rem; padding: 0 1.25rem; font-size: 0.9375rem; }
  .cat-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.25rem; }
  .cat-dots button { width: 0.5rem; height: 0.5rem; padding: 0; border: none; border-radius: 999px; background: var(--gold-line); opacity: .5; cursor: pointer; transition: width .2s, opacity .2s; }
  .cat-dots button.active { width: 1.5rem; opacity: 1; background: var(--gold); }
}

/* ---------- Animated badges (turned off automatically for people who prefer reduced motion) ---------- */
.badge-tag, .badge-disc { position: relative; overflow: hidden; isolation: isolate; }
/* a light sheen that sweeps across every few seconds */
.badge-tag::after, .badge-disc::after {
  content: ''; position: absolute; inset: -20% auto -20% -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); animation: badgeShine 3.6s ease-in-out infinite;
}
.badge-tag.b-best::after, .badge-tag.b-new::after { background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); }
@keyframes badgeShine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.card-tags .badge-tag:nth-child(2)::after, .card-tags .badge-disc::after { animation-delay: 1.2s; }

/* new: soft "breathing" */
.badge-tag.b-new { animation: badgeBreath 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes badgeBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* best seller: warm golden glow */
.badge-tag.b-best { animation: badgeGlow 2.2s ease-in-out infinite; }
@keyframes badgeGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,201,138,0); } 50% { box-shadow: 0 0 0.875rem 0.125rem rgba(232,201,138,.55); } }

/* limited: a blinking "live" dot before the text */
.badge-tag.b-limited { padding-inline-start: 1.375rem; }
.badge-tag.b-limited::before {
  content: ''; position: absolute; top: 50%; right: 0.5rem; width: 0.4375rem; height: 0.4375rem; margin-top: -0.21875rem;
  border-radius: 999px; background: #F2B8A2; animation: badgeBlink 1.2s ease-in-out infinite;
}
@keyframes badgeBlink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.7); } }

/* special offer: a small playful shake every few seconds */
.badge-tag.b-offer { animation: badgeWiggle 4s ease-in-out infinite; transform-origin: center; }
@keyframes badgeWiggle { 0%, 82%, 100% { transform: rotate(0); } 85% { transform: rotate(-7deg) scale(1.06); } 89% { transform: rotate(6deg) scale(1.06); } 93% { transform: rotate(-3deg); } 96% { transform: rotate(2deg); } }

/* discount: gentle pop */
.badge-disc { animation: badgePop 3s ease-in-out infinite; }
@keyframes badgePop { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.1); } 86% { transform: scale(.97); } }

@media (max-width: 640px) { .badge-tag.b-limited { padding-inline-start: 1.125rem; } .badge-tag.b-limited::before { right: 0.375rem; width: 0.375rem; height: 0.375rem; margin-top: -0.1875rem; } }

/* ---------- Quran / duas player ---------- */
.audio-player { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 16; display: flex; align-items: center; gap: 0.375rem; }
.ap-main { display: flex; align-items: center; gap: 0.625rem; height: 3.25rem; padding: 0 1rem 0 0.375rem; border-radius: 999px; border: 1px solid var(--line-3); background: rgba(20,16,11,.94); color: var(--text); font-family: inherit; cursor: pointer; box-shadow: 0 0.75rem 2rem rgba(0,0,0,.5); max-width: 17rem; backdrop-filter: blur(6px); }
.ap-main:hover { border-color: var(--gold); }
.ap-ic { width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--gold); color: #1A1208; display: flex; align-items: center; justify-content: center; flex: none; }
.ap-ic .ic { width: 1.125rem; height: 1.125rem; }
.ap-pause { display: none; }
.audio-player.playing .ap-play { display: none; }
.audio-player.playing .ap-pause { display: flex; }
.ap-txt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.25; }
.ap-label { font-weight: 800; font-size: 0.9375rem; color: var(--gold); }
.ap-title { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 11rem; display: none; }
.audio-player.playing .ap-title { display: block; }
.ap-eq { display: none; align-items: flex-end; gap: 2px; height: 1rem; }
.audio-player.playing .ap-eq { display: inline-flex; }
.ap-eq i { width: 3px; background: var(--gold); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.ap-eq i:nth-child(2) { animation-delay: .15s; } .ap-eq i:nth-child(3) { animation-delay: .3s; } .ap-eq i:nth-child(4) { animation-delay: .45s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.ap-next { width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--line-3); background: rgba(20,16,11,.94); color: var(--gold); cursor: pointer; display: none; align-items: center; justify-content: center; box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.45); }
.audio-player.playing .ap-next:not([hidden]) { display: flex; }
.ap-next .ic { width: 1rem; height: 1rem; }
@media (max-width: 640px) {
  .audio-player { right: 0.75rem; bottom: 0.75rem; }
  body.has-cart .audio-player { bottom: 4.75rem; }
  .ap-main { height: 2.875rem; padding-inline-end: 0.875rem; }
  .ap-ic { width: 2.125rem; height: 2.125rem; }
  .ap-title { max-width: 8rem; }
}

/* Footer: address / hours / note */
.ftr-info { display: flex; flex-direction: column; gap: 0.5rem; flex: 1 1 16rem; max-width: 26rem; }
.ftr-addr { margin: 0; display: flex; gap: 0.5rem; align-items: flex-start; color: var(--text-2); font-size: 0.9375rem; line-height: 1.7; white-space: pre-line; }
.ftr-addr .ic { color: var(--gold); flex: none; margin-top: 0.25rem; width: 1.125rem; height: 1.125rem; }
.ftr-addr a { font-size: 0.875rem; }
.ftr-links a .ic { color: var(--gold); width: 1.125rem; height: 1.125rem; }
.ftr-note { margin: 0 auto; padding-top: 1rem; padding-bottom: 1.5rem; border-top: 1px solid var(--line); text-align: center; color: var(--muted-2); font-size: 0.8125rem; }
body.has-cart .ftr, body.has-audio .ftr { padding-bottom: 5rem; }
@media (max-width: 640px) { body.has-cart.has-audio .ftr { padding-bottom: 8.5rem; } }
.toast-cart { width: max-content; }
@media (max-width: 640px) { .toast-cart { left: 0.75rem; right: 0.75rem; transform: none; width: auto; max-width: none; justify-content: space-between; } }

/* USD note in the cart: own line with room above/below so it doesn't touch the total or the form title */
#cartCurNote { margin: 0.625rem 0 0.25rem; padding: 0.5rem 0.75rem; border-radius: 0.625rem; background: rgba(212,175,106,.06); border: 1px dashed var(--line-3); font-size: 0.8125rem; }
.btn-gold.in-cart { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.pm-addons.locked { opacity: .55; }
