/* ==========================================================================
   Majora storefront — design system
   Light luxury editorial: ivory paper, ink type, one thin gold accent.
   Loaded once, after Bootstrap 5.3. Uses logical properties (inline/block)
   throughout so the same rules work for Arabic (dir="rtl").
   ========================================================================== */

:root {
  --mj-ivory: #ffffff;
  --mj-paper: #ffffff;
  --mj-sand: #f7f4ef;
  --mj-line: #ebe6de;
  --mj-ink: #1c1a17;
  --mj-ink-2: #3b3732;
  --mj-muted: #6e675e;
  --mj-gold: #ba9544;
  --mj-gold-deep: #866a2b;
  --mj-sale: #9b2c2c;
  --mj-ok: #2f6b47;

  --mj-font-display: "Clarity City", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mj-font-body: "Clarity City", system-ui, -apple-system, "Segoe UI", sans-serif;

  --mj-radius: 2px;
  --mj-header-h: 60px;
  --mj-tabbar-h: 64px;
  --mj-gutter: clamp(16px, 4vw, 48px);
  --mj-max: 1320px;
  --mj-ease: cubic-bezier(.2, .7, .2, 1);

  /* Bootstrap hooks */
  --bs-body-bg: var(--mj-ivory);
  --bs-body-color: var(--mj-ink);
  --bs-body-font-family: var(--mj-font-body);
  --bs-body-font-size: 0.9rem;
  --bs-border-color: var(--mj-line);
  --bs-link-color-rgb: 28, 26, 23;
  --bs-link-hover-color-rgb: 148, 116, 47;
  --bs-border-radius: var(--mj-radius);
  --bs-focus-ring-color: rgba(186, 149, 68, .35);
}

html[lang="ar"] {
  --mj-font-display: "Clarity City", "IBM Plex Sans Arabic", sans-serif;
  --mj-font-body: "Clarity City", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--mj-ivory);
  color: var(--mj-ink);
  font-family: var(--mj-font-body);
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s var(--mj-ease); }
a:hover { color: var(--mj-gold-deep); }
:focus-visible { outline: 2px solid var(--mj-gold); outline-offset: 2px; }
::selection { background: var(--mj-gold); color: #fff; }

.visually-hidden-focusable:focus { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 2000; background: var(--mj-ink); color: #fff; padding: .5rem 1rem; }

/* ---------- Type ---------- */
.mj-display, h1, .h1, h2, .h2 {
  font-family: var(--mj-font-display);
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.1;
}
h1, .h1 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h2, .h2 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
h3, .h3 { font-size: 1rem; font-weight: 500; letter-spacing: .02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] .mj-display { font-weight: 600; letter-spacing: 0; line-height: 1.4; }
html[lang="ar"] h1, html[lang="ar"] .h1 { font-size: clamp(1.45rem, 2.3vw, 2rem); }
html[lang="ar"] h2, html[lang="ar"] .h2 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); }

.mj-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--mj-gold-deep);
}
html[lang="ar"] .mj-eyebrow { letter-spacing: 0; font-size: .85rem; }
.mj-muted { color: var(--mj-muted); }
.mj-rule { width: 48px; height: 1px; background: var(--mj-gold); border: 0; opacity: 1; margin: 1rem 0; }
.text-center .mj-rule, .mj-rule.mx-auto { margin-inline: auto; }

/* ---------- Layout ---------- */
.mj-container { width: 100%; max-width: var(--mj-max); margin-inline: auto; padding-inline: var(--mj-gutter); }
.mj-section { padding-block: clamp(32px, 5vw, 64px); }
.mj-section-sm { padding-block: clamp(20px, 3vw, 40px); }
.mj-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-block-end: clamp(14px, 2vw, 24px); }
.mj-section-head h2 { margin: .35rem 0 0; }
.mj-link-arrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; border-block-end: 1px solid currentColor; padding-block-end: 2px; }
html[lang="ar"] .mj-link-arrow { letter-spacing: 0; font-size: .9rem; }
.bg-paper { background: var(--mj-paper); }
.bg-sand { background: var(--mj-sand); }

/* ---------- Buttons ---------- */
.btn { --bs-btn-border-radius: var(--mj-radius); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: .74rem; padding: .7rem 1.35rem; transition: background-color .25s var(--mj-ease), color .25s var(--mj-ease), border-color .25s var(--mj-ease); }
html[lang="ar"] .btn { letter-spacing: 0; font-size: .92rem; text-transform: none; }
.btn-mj { --bs-btn-bg: var(--mj-ink); --bs-btn-color: #fff; --bs-btn-border-color: var(--mj-ink); --bs-btn-hover-bg: var(--mj-gold-deep); --bs-btn-hover-border-color: var(--mj-gold-deep); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--mj-gold-deep); --bs-btn-active-color: #fff; --bs-btn-disabled-bg: #8f8a83; --bs-btn-disabled-border-color: #8f8a83; --bs-btn-disabled-color: #fff; }
.btn-mj-outline { --bs-btn-color: var(--mj-ink); --bs-btn-border-color: var(--mj-ink); --bs-btn-hover-bg: var(--mj-ink); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--mj-ink); --bs-btn-active-bg: var(--mj-ink); --bs-btn-active-color: #fff; }
.btn-mj-light { --bs-btn-bg: #fff; --bs-btn-color: var(--mj-ink); --bs-btn-border-color: #fff; --bs-btn-hover-bg: var(--mj-ink); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--mj-ink); }
.btn-mj-gold { --bs-btn-bg: var(--mj-gold); --bs-btn-color: #fff; --bs-btn-border-color: var(--mj-gold); --bs-btn-hover-bg: var(--mj-gold-deep); --bs-btn-hover-border-color: var(--mj-gold-deep); --bs-btn-hover-color: #fff; }
.btn-icon { padding: .6rem; line-height: 1; border: 0; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; position: relative; }
.btn-icon .bi { font-size: 1.25rem; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: var(--mj-radius); border-color: var(--mj-line); background-color: var(--mj-paper); padding: .8rem 1rem; font-size: .95rem; }
.form-control:focus, .form-select:focus { border-color: var(--mj-gold); box-shadow: 0 0 0 .2rem rgba(186, 149, 68, .18); }
.form-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mj-muted); margin-block-end: .4rem; }
html[lang="ar"] .form-label { letter-spacing: 0; font-size: .88rem; text-transform: none; }
.form-check-input:checked { background-color: var(--mj-ink); border-color: var(--mj-ink); }
.invalid-feedback { font-size: .82rem; }

/* ---------- Announcement + header ---------- */
.mj-announce { background: var(--mj-ink); color: #f4efe6; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; text-align: center; padding: .4rem var(--mj-gutter); }
html[lang="ar"] .mj-announce { letter-spacing: 0; font-size: .85rem; }
.mj-announce a { color: #f4efe6; border-block-end: 1px solid rgba(255,255,255,.4); }

.mj-header { position: sticky; inset-block-start: 0; z-index: 1030; background: rgba(255, 255, 255, .97); border-block-end: 1px solid var(--mj-line); }
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   make it the containing block for the fixed-position mobile menu. */
.mj-header::before { content: ""; position: absolute; inset: 0; backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); z-index: -1; }
.mj-header-inner { height: var(--mj-header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.mj-logo { display: block; line-height: 0; }
.mj-logo img { height: 34px; width: auto; }
.mj-header-actions { display: flex; justify-content: flex-end; align-items: center; gap: .15rem; }
.mj-badge { position: absolute; inset-block-start: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--mj-gold); color: #fff; font-size: .66rem; font-weight: 600; line-height: 18px; text-align: center; letter-spacing: 0; }
.mj-badge:empty, .mj-badge[data-count="0"] { display: none; }
.mj-lang { font-size: .78rem; font-weight: 500; letter-spacing: .1em; padding: .5rem .6rem; min-height: 44px; display: inline-flex; align-items: center; }

.mj-nav { display: none; }
.mj-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2vw, 2.2rem); }
.mj-nav > ul > li { position: static; }
.mj-nav > ul > li > a { display: inline-flex; align-items: center; height: var(--mj-header-h); font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; position: relative; }
html[lang="ar"] .mj-nav > ul > li > a { letter-spacing: 0; font-size: .95rem; }
.mj-nav > ul > li > a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 18px; height: 1px; background: var(--mj-gold); transform: scaleX(0); transition: transform .3s var(--mj-ease); }
.mj-nav > ul > li > a:hover::after, .mj-nav > ul > li > a[aria-current="page"]::after, .mj-nav > ul > li:focus-within > a::after { transform: scaleX(1); }
.mj-nav .mj-sale-link { color: var(--mj-sale); }

.mj-mega { position: absolute; inset-inline: 0; inset-block-start: 100%; background: var(--mj-paper); border-block: 1px solid var(--mj-line); box-shadow: 0 24px 40px -24px rgba(28, 26, 23, .25); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--mj-ease), transform .2s var(--mj-ease), visibility 0s .2s; }
.mj-nav li:hover > .mj-mega, .mj-nav li:focus-within > .mj-mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mj-mega-inner { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; padding-block: 2.2rem; }
.mj-mega h3 { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--mj-muted); margin-block-end: 1rem; }
.mj-mega ul { list-style: none; padding: 0; margin: 0; }
.mj-mega li a { display: block; padding-block: .35rem; font-size: .95rem; }
.mj-mega-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.mj-mega-tiles a { display: block; text-align: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.mj-mega-tiles img { aspect-ratio: 3/4; object-fit: cover; width: 100%; margin-block-end: .6rem; background: var(--mj-sand); }
.mj-brand-cols { columns: 4 160px; column-gap: 2rem; }

@media (min-width: 992px) {
  .mj-nav { display: block; }
  .mj-menu-btn { display: none !important; }
  .mj-header-inner { grid-template-columns: auto 1fr auto; }
  .mj-header-inner .mj-logo { order: -1; }
  .mj-nav { justify-self: center; }
  .mj-logo img { height: 38px; }
}

/* Off-canvas mobile menu */
.mj-offcanvas { --bs-offcanvas-width: min(88vw, 380px); --bs-offcanvas-bg: var(--mj-ivory); }
.mj-offcanvas .offcanvas-header { border-block-end: 1px solid var(--mj-line); min-height: var(--mj-header-h); }
.mj-mobile-nav { list-style: none; padding: 0; margin: 0; }
.mj-mobile-nav > li { border-block-end: 1px solid var(--mj-line); }
.mj-mobile-nav > li > a, .mj-mobile-nav > li > button { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 1.05rem 0; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; background: none; border: 0; color: inherit; text-align: start; }
html[lang="ar"] .mj-mobile-nav > li > a, html[lang="ar"] .mj-mobile-nav > li > button { letter-spacing: 0; font-size: 1rem; }
.mj-mobile-nav .collapse ul, .mj-mobile-nav .collapsing ul { list-style: none; padding: 0 0 1rem; margin: 0; }
.mj-mobile-nav .collapse a, .mj-mobile-nav .collapsing a { display: block; padding: .5rem 0; color: var(--mj-ink-2); }
.mj-mobile-nav button .bi { transition: transform .25s var(--mj-ease); }
.mj-mobile-nav button[aria-expanded="true"] .bi { transform: rotate(180deg); }

/* Bottom tab bar (phones) */
.mj-tabbar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 1025; height: calc(var(--mj-tabbar-h) + env(safe-area-inset-bottom)); padding-block-end: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .97); border-block-start: 1px solid var(--mj-line); display: grid; grid-template-columns: repeat(5, 1fr); }
.mj-tabbar a, .mj-tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mj-ink-2); background: none; border: 0; position: relative; }
html[lang="ar"] .mj-tabbar a, html[lang="ar"] .mj-tabbar button { letter-spacing: 0; font-size: .72rem; }
.mj-tabbar .bi { font-size: 1.25rem; }
.mj-tabbar [aria-current="page"] { color: var(--mj-gold-deep); }
.mj-tabbar .mj-badge { inset-block-start: 6px; inset-inline-end: calc(50% - 20px); }
body.has-tabbar { padding-block-end: calc(var(--mj-tabbar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 992px) { .mj-tabbar { display: none; } body.has-tabbar { padding-block-end: 0; } }

/* Search overlay */
.mj-search .modal-content { background: var(--mj-ivory); border: 0; }
.mj-search-input { border: 0; border-block-end: 1px solid var(--mj-ink); background: transparent; font-family: var(--mj-font-display); font-size: clamp(1.4rem, 4vw, 2.2rem); padding: .5rem 0; width: 100%; border-radius: 0; }
.mj-search-input:focus { outline: none; border-color: var(--mj-gold); }
.mj-search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.25rem; margin-block-start: 1.5rem; }
.mj-search-results a { font-size: .85rem; }
.mj-search-results img { aspect-ratio: 3/4; object-fit: cover; width: 100%; background: var(--mj-sand); margin-block-end: .5rem; }

/* ---------- Product card ---------- */
.mj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px) clamp(10px, 1.6vw, 24px); }
@media (min-width: 768px) { .mj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .mj-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mj-grid.mj-grid-3 { }
@media (min-width: 1200px) { .mj-grid.mj-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.mj-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.mj-card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #fff; border: 1px solid var(--mj-line); }
/* contain, not cover: glasses and bags are shot landscape and were being cropped */
.mj-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform .8s var(--mj-ease), opacity .4s var(--mj-ease); }
.mj-card:hover .mj-card-media img { transform: scale(1.03); }
.mj-card-tags { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 1; }
.mj-tag { background: var(--mj-paper); color: var(--mj-ink); font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: .3rem .55rem; }
html[lang="ar"] .mj-tag { letter-spacing: 0; font-size: .74rem; }
.mj-tag-sale { background: var(--mj-sale); color: #fff; }
.mj-card-body { padding-block: .6rem .15rem; display: flex; flex-direction: column; gap: .2rem; }
.mj-card-brand { position: relative; z-index: 1; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mj-muted); }
html[lang="ar"] .mj-card-brand { letter-spacing: 0; font-size: .78rem; }
.mj-card-title { font-size: .88rem; line-height: 1.35; margin: 0; font-weight: 400; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mj-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* whole card clickable */
.mj-price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; font-size: .86rem; }
.mj-price .now { font-weight: 500; }
.mj-price .was { color: var(--mj-muted); text-decoration: line-through; font-size: .82rem; }
.mj-price .off { color: var(--mj-sale); font-size: .78rem; }
.mj-card-quick { position: absolute; inset-inline: 10px; inset-block-end: 10px; z-index: 2; opacity: 0; transform: translateY(8px); transition: opacity .25s var(--mj-ease), transform .25s var(--mj-ease); }
.mj-card:hover .mj-card-quick, .mj-card:focus-within .mj-card-quick { opacity: 1; transform: none; }
@media (hover: none) { .mj-card-quick { display: none; } }

/* Horizontal rail (swipe on phones, scroll-snap, no JS needed) */
.mj-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: clamp(10px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block-end: 4px; overscroll-behavior-x: contain; }
.mj-rail::-webkit-scrollbar { display: none; }
.mj-rail > * { scroll-snap-align: start; }
@media (min-width: 768px) { .mj-rail { grid-auto-columns: 23.5%; } }
@media (min-width: 1200px) { .mj-rail { grid-auto-columns: calc(20% - 13px); } }
.mj-rail-nav { display: none; gap: .5rem; }
@media (min-width: 992px) { .mj-rail-nav { display: flex; } }
.mj-rail-nav button { width: 44px; height: 44px; border: 1px solid var(--mj-line); background: var(--mj-paper); display: inline-flex; align-items: center; justify-content: center; }
.mj-rail-nav button:hover { border-color: var(--mj-ink); }
html[dir="rtl"] .mj-rail-nav .bi, html[dir="rtl"] .mj-flip { transform: scaleX(-1); }

/* ---------- Hero ---------- */
.mj-hero { position: relative; min-height: clamp(460px, 78vh, 820px); display: grid; overflow: hidden; background: var(--mj-sand); color: #fff; }
.mj-hero picture, .mj-hero > img, .mj-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mj-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 16, 14, .62) 0%, rgba(18, 16, 14, .15) 45%, rgba(18, 16, 14, 0) 70%); }
.mj-hero-content { position: relative; z-index: 1; align-self: end; padding: clamp(28px, 6vw, 80px) var(--mj-gutter); max-width: 720px; }
.mj-hero-content .mj-eyebrow { color: #f1e3c3; }
.mj-hero h1, .mj-hero h2 { color: #fff; margin-block: .6rem 1rem; }
.mj-hero p { color: rgba(255, 255, 255, .88); max-width: 46ch; margin-block-end: 1.6rem; }
.mj-hero-slides { position: relative; }
.mj-hero-slides .carousel-item { transition-duration: .9s; }
.mj-hero-slides .carousel-indicators { justify-content: flex-start; margin: 0; inset-inline-start: var(--mj-gutter); inset-inline-end: auto; inset-block-end: 18px; }
.mj-hero-slides .carousel-indicators [data-bs-target] { width: 28px; height: 2px; border: 0; margin-inline: 0 8px; opacity: .45; }
.mj-hero-slides .carousel-indicators .active { opacity: 1; }

/* ---------- Category tiles ---------- */
.mj-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 1.6vw, 20px); }
.mj-cats { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 575.98px) { .mj-cats { grid-template-columns: repeat(3, 1fr); } }
.mj-cat { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--mj-sand); color: #fff; }
.mj-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--mj-ease); }
.mj-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 16, 14, .55), rgba(18, 16, 14, 0) 55%); }
.mj-cat:hover img { transform: scale(1.05); }
.mj-cat span { position: absolute; z-index: 1; inset-inline: 0; inset-block-end: 0; padding: 1rem; font-family: var(--mj-font-display); font-size: clamp(.95rem, 1.4vw, 1.15rem); text-align: center; padding: .6rem; }
.mj-cat small { display: block; font-family: var(--mj-font-body); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85; margin-block-start: .2rem; }
.mj-cat:hover { color: #fff; }

/* ---------- Brand strip ---------- */
.mj-brands { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 1rem; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.mj-brands::-webkit-scrollbar { display: none; }
.mj-brands a { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mj-ink-2); }
.mj-brands img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--mj-paper); border: 1px solid var(--mj-line); filter: grayscale(.15); transition: filter .3s, border-color .3s; }
.mj-brands a:hover img { filter: none; border-color: var(--mj-gold); }
@media (min-width: 992px) { .mj-brands { grid-auto-columns: 1fr; grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); overflow: visible; } }

/* ---------- Editorial split ---------- */
.mj-split { display: grid; gap: 0; background: var(--mj-paper); }
@media (min-width: 992px) { .mj-split { grid-template-columns: 1fr 1fr; } }
.mj-split-media { position: relative; min-height: 380px; background: var(--mj-sand); }
.mj-split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mj-split-copy { padding: clamp(32px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }

/* ---------- Value props ---------- */
.mj-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
@media (min-width: 992px) { .mj-values { grid-template-columns: repeat(4, 1fr); } }
.mj-values .bi { font-size: 1.2rem; color: var(--mj-gold); }
.mj-values h3 { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; margin: .6rem 0 .25rem; }
html[lang="ar"] .mj-values h3 { letter-spacing: 0; font-size: .95rem; }
.mj-values p { font-size: .85rem; color: var(--mj-muted); margin: 0; }

/* ---------- Newsletter ---------- */
.mj-newsletter { background: var(--mj-ink); color: #f4efe6; }
.mj-newsletter h2 { color: #fff; }
.mj-newsletter form { display: flex; gap: 0; max-width: 520px; margin-inline: auto; border-block-end: 1px solid rgba(255, 255, 255, .5); }
.mj-newsletter input { flex: 1; background: transparent; border: 0; color: #fff; padding: .9rem 0; font-size: 1rem; min-width: 0; }
.mj-newsletter input::placeholder { color: rgba(255, 255, 255, .55); }
.mj-newsletter input:focus { outline: none; }
.mj-newsletter button { background: none; border: 0; color: #fff; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; padding-inline: .5rem; }

/* ---------- Footer ---------- */
.mj-footer { background: var(--mj-paper); border-block-start: 1px solid var(--mj-line); padding-block: clamp(32px, 4vw, 56px) 20px; font-size: .86rem; }
.mj-footer h2 { font-family: var(--mj-font-body); font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--mj-muted); margin-block-end: 1rem; }
html[lang="ar"] .mj-footer h2 { letter-spacing: 0; font-size: .9rem; }
.mj-footer ul { list-style: none; padding: 0; margin: 0; }
.mj-footer li { margin-block-end: .55rem; }
.mj-footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 992px) { .mj-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.mj-footer-about { grid-column: 1 / -1; }
@media (min-width: 992px) { .mj-footer-about { grid-column: auto; } }
.mj-social { display: flex; gap: .4rem; margin-block-start: 1rem; }
.mj-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--mj-line); border-radius: 50%; }
.mj-social a:hover { border-color: var(--mj-gold); color: var(--mj-gold-deep); }
.mj-footer-bottom { margin-block-start: 2rem; padding-block-start: 1.25rem; border-block-start: 1px solid var(--mj-line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: var(--mj-muted); font-size: .8rem; }
.mj-pay { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.mj-pay span { border: 1px solid var(--mj-line); padding: .2rem .5rem; font-size: .68rem; letter-spacing: .08em; color: var(--mj-ink-2); background: var(--mj-ivory); }

/* WhatsApp */
.mj-wa { position: fixed; z-index: 1020; inset-inline-end: 16px; inset-block-end: calc(var(--mj-tabbar-h) + 16px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.mj-wa:hover { color: #fff; transform: translateY(-2px); }
@media (min-width: 992px) { .mj-wa { inset-block-end: 24px; } }

/* ---------- Breadcrumb + page head ---------- */
.mj-crumbs { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mj-muted); padding-block: 1.1rem; }
html[lang="ar"] .mj-crumbs { letter-spacing: 0; font-size: .85rem; }
.mj-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.mj-crumbs li + li::before { content: "/"; margin-inline-end: .5rem; color: var(--mj-line); }
.mj-page-head { padding-block: clamp(14px, 3vw, 32px) clamp(10px, 2vw, 20px); text-align: center; }
.mj-page-head p { max-width: 60ch; margin-inline: auto; }

/* ---------- Listing toolbar + filters ---------- */
.mj-toolbar { position: sticky; inset-block-start: var(--mj-header-h); z-index: 10; background: var(--mj-ivory); border-block: 1px solid var(--mj-line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .5rem; margin-block-end: 1.5rem; }
.mj-toolbar .form-select { width: auto; border: 0; background-color: transparent; font-size: .82rem; padding-block: .5rem; }
.mj-filter-btn { background: none; border: 0; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; }
html[lang="ar"] .mj-filter-btn { letter-spacing: 0; font-size: .9rem; }
.mj-filter-group { border-block-end: 1px solid var(--mj-line); padding-block: 1rem; }
.mj-filter-group h3 { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; margin-block-end: .75rem; }
html[lang="ar"] .mj-filter-group h3 { letter-spacing: 0; font-size: .92rem; }
.mj-chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--mj-line); background: var(--mj-paper); padding: .45rem .8rem; font-size: .82rem; cursor: pointer; margin: 0 .35rem .45rem 0; user-select: none; }
.btn-check:checked + .mj-chip { border-color: var(--mj-ink); background: var(--mj-ink); color: #fff; }
.btn-check:focus-visible + .mj-chip { outline: 2px solid var(--mj-gold); outline-offset: 2px; }
.mj-count { color: var(--mj-muted); font-size: .82rem; }
.mj-empty { text-align: center; padding: 4rem 1rem; color: var(--mj-muted); }
.mj-empty .bi { font-size: 2rem; color: var(--mj-gold); display: block; margin-block-end: .75rem; }

/* Pagination */
.pagination { --bs-pagination-color: var(--mj-ink); --bs-pagination-bg: transparent; --bs-pagination-border-color: transparent; --bs-pagination-hover-bg: var(--mj-sand); --bs-pagination-hover-color: var(--mj-ink); --bs-pagination-hover-border-color: transparent; --bs-pagination-active-bg: var(--mj-ink); --bs-pagination-active-border-color: var(--mj-ink); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(186, 149, 68, .25); --bs-pagination-disabled-bg: transparent; --bs-pagination-disabled-border-color: transparent; gap: .25rem; justify-content: center; flex-wrap: wrap; }
.page-link { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--mj-radius) !important; }

/* ---------- Product detail ---------- */
.mj-pdp { display: grid; gap: clamp(20px, 4vw, 64px); }
@media (min-width: 992px) { .mj-pdp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }
.mj-gallery { display: grid; gap: .6rem; }
@media (min-width: 992px) { .mj-gallery { grid-template-columns: 76px minmax(0, 1fr); position: sticky; inset-block-start: calc(var(--mj-header-h) + 16px); } }
.mj-gallery-main { position: relative; aspect-ratio: 3/4; max-height: 78vh; margin-inline: auto; width: 100%; background: var(--mj-sand); overflow: hidden; }
.mj-gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.mj-gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 100%; }
.mj-gallery-track::-webkit-scrollbar { display: none; }
.mj-gallery-track > img { scroll-snap-align: center; }
.mj-thumbs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 992px) { .mj-thumbs { flex-direction: column; order: -1; max-height: calc(100vh - 140px); overflow-y: auto; } }
.mj-thumbs button { flex: 0 0 64px; width: 64px; aspect-ratio: 3/4; padding: 0; border: 1px solid transparent; background: var(--mj-sand); }
@media (min-width: 992px) { .mj-thumbs button { width: 76px; flex-basis: auto; } }
.mj-thumbs button[aria-current="true"] { border-color: var(--mj-ink); }
.mj-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.mj-dots { position: absolute; inset-block-end: 12px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.mj-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.mj-dots span.on { background: #fff; }
@media (min-width: 992px) { .mj-dots { display: none; } }

.mj-buy h1 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-block: .3rem .6rem; }
.mj-buy .mj-price { font-size: 1.25rem; }
.mj-buy .mj-price .was { font-size: 1rem; }
.mj-option-label { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-block: 1rem .5rem; }
html[lang="ar"] .mj-option-label { letter-spacing: 0; font-size: .92rem; }
.mj-swatch { min-width: 48px; min-height: 40px; padding: .4rem .8rem; border: 1px solid var(--mj-line); background: var(--mj-paper); font-size: .86rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; margin: 0 .4rem .4rem 0; }
.btn-check:checked + .mj-swatch { border-color: var(--mj-ink); box-shadow: inset 0 0 0 1px var(--mj-ink); }
.btn-check:disabled + .mj-swatch { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.mj-swatch img { width: 28px; height: 36px; object-fit: cover; }
.mj-qty { display: inline-flex; border: 1px solid var(--mj-line); background: var(--mj-paper); height: 44px; }
.mj-qty button { width: 44px; border: 0; background: none; font-size: 1.1rem; }
.mj-qty input { width: 44px; border: 0; text-align: center; background: none; -moz-appearance: textfield; }
.mj-qty input::-webkit-outer-spin-button, .mj-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mj-buy-actions { display: flex; gap: .6rem; margin-block-start: 1.2rem; }
.mj-buy-actions .btn { flex: 1; min-height: 46px; }
.mj-assure { list-style: none; padding: 1.2rem 0 0; margin: 1.4rem 0 0; border-block-start: 1px solid var(--mj-line); display: grid; gap: .6rem; font-size: .88rem; color: var(--mj-ink-2); }
.mj-assure .bi { color: var(--mj-gold); margin-inline-end: .6rem; }
.mj-accordion .accordion-button { background: transparent; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; padding-inline: 0; box-shadow: none; color: var(--mj-ink); }
html[lang="ar"] .mj-accordion .accordion-button { letter-spacing: 0; font-size: .95rem; }
.mj-accordion .accordion-button::after { margin-inline-start: auto; margin-inline-end: 0; }
.mj-accordion .accordion-item { background: transparent; border-inline: 0; border-radius: 0 !important; }
.mj-accordion .accordion-body { padding-inline: 0; color: var(--mj-ink-2); line-height: 1.75; }
.mj-sticky-buy { position: fixed; z-index: 1026; inset-inline: 0; inset-block-end: 0; background: var(--mj-paper); border-block-start: 1px solid var(--mj-line); padding: .6rem var(--mj-gutter) calc(.6rem + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .75rem; transform: translateY(110%); transition: transform .3s var(--mj-ease); }
.mj-sticky-buy.show { transform: none; }
.mj-sticky-buy .btn { flex: 1; min-height: 48px; }
@media (min-width: 992px) { .mj-sticky-buy { display: none; } }

/* Stars */
.mj-stars { color: var(--mj-gold); letter-spacing: .1em; }

/* ---------- Cart + checkout ---------- */
.mj-cart { display: grid; gap: 2rem; }
@media (min-width: 992px) { .mj-cart { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); align-items: start; } }
.mj-line { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; padding-block: 1.25rem; border-block-end: 1px solid var(--mj-line); }
@media (min-width: 576px) { .mj-line { grid-template-columns: 120px 1fr; } }
.mj-line-media { aspect-ratio: 3/4; background: var(--mj-sand); overflow: hidden; display: block; }
.mj-line-media img { width: 100%; height: 100%; object-fit: cover; }
.mj-line-top { display: flex; justify-content: space-between; gap: 1rem; }
.mj-line h3 { font-size: 1rem; font-weight: 400; margin: 0 0 .25rem; }
.mj-line-meta { font-size: .82rem; color: var(--mj-muted); }
.mj-line-bottom { display: flex; justify-content: space-between; align-items: center; margin-block-start: .9rem; gap: 1rem; }
.mj-line .mj-qty { height: 40px; }
.mj-line .mj-qty button { width: 36px; }
.mj-line .mj-qty input { width: 36px; }
.mj-link-btn { background: none; border: 0; padding: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; color: var(--mj-muted); min-height: 32px; }
html[lang="ar"] .mj-link-btn { letter-spacing: 0; font-size: .85rem; }
.mj-summary { background: var(--mj-paper); border: 1px solid var(--mj-line); padding: clamp(20px, 3vw, 32px); }
@media (min-width: 992px) { .mj-summary { position: sticky; inset-block-start: calc(var(--mj-header-h) + 16px); } }
.mj-summary h2 { font-size: 1.5rem; margin-block-end: 1.25rem; }
.mj-summary dl { display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; margin: 0; font-size: .92rem; }
.mj-summary dd { margin: 0; text-align: end; }
.mj-summary .total { font-size: 1.1rem; font-weight: 500; border-block-start: 1px solid var(--mj-line); padding-block-start: .9rem; margin-block-start: .4rem; }
.mj-coupon { display: flex; gap: .5rem; margin-block: 1.25rem; }
.mj-coupon .form-control { flex: 1; min-width: 0; }
.mj-coupon .btn { padding-inline: 1.1rem; }
.mj-steps { display: flex; gap: .5rem; justify-content: center; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mj-muted); margin-block-end: 1.5rem; }
html[lang="ar"] .mj-steps { letter-spacing: 0; font-size: .85rem; }
.mj-steps .on { color: var(--mj-ink); }
.mj-steps span + span::before { content: "—"; margin-inline-end: .5rem; color: var(--mj-line); }
.mj-fieldset { background: var(--mj-paper); border: 1px solid var(--mj-line); padding: clamp(18px, 3vw, 28px); margin-block-end: 1.25rem; }
.mj-fieldset legend { float: left; width: 100%; padding: 0; font-family: var(--mj-font-display); font-size: 1.35rem; margin-block-end: 1rem; }
.mj-fieldset legend + * { clear: left; }
.mj-choice { display: flex; gap: .75rem; flex-direction: column; }
@media (min-width: 576px) { .mj-choice { flex-direction: row; } }
.mj-choice label { flex: 1; border: 1px solid var(--mj-line); padding: 1rem; cursor: pointer; display: flex; gap: .75rem; align-items: center; background: var(--mj-ivory); }
.mj-choice input:checked + label { border-color: var(--mj-ink); background: var(--mj-paper); box-shadow: inset 0 0 0 1px var(--mj-ink); }
.mj-mini-line { display: grid; grid-template-columns: 56px 1fr auto; gap: .8rem; align-items: center; padding-block: .6rem; font-size: .88rem; }
.mj-mini-line img { width: 56px; aspect-ratio: 3/4; object-fit: cover; background: var(--mj-sand); }
.mj-mini-line .q { color: var(--mj-muted); font-size: .8rem; }

/* ---------- Toasts / alerts ---------- */
.mj-toast-wrap { position: fixed; z-index: 1090; inset-inline: 16px; inset-block-start: calc(var(--mj-header-h) + 12px); display: grid; gap: .5rem; justify-items: center; pointer-events: none; }
.mj-toast { pointer-events: auto; background: var(--mj-ink); color: #fff; padding: .85rem 1.2rem; font-size: .88rem; display: flex; gap: .75rem; align-items: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); max-width: 460px; width: 100%; animation: mj-in .35s var(--mj-ease) both; }
.mj-toast.error { background: var(--mj-sale); }
.mj-toast a { color: #f1e3c3; text-decoration: underline; margin-inline-start: auto; white-space: nowrap; }
@keyframes mj-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Prose (policies, about) ---------- */
.mj-prose { max-width: 72ch; margin-inline: auto; line-height: 1.85; color: var(--mj-ink-2); }
.mj-prose h2 { font-size: 1.6rem; margin-block: 2.2rem .8rem; color: var(--mj-ink); }
.mj-prose h3 { margin-block: 1.6rem .5rem; color: var(--mj-ink); }
.mj-prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Account ---------- */
.mj-auth { max-width: 440px; margin-inline: auto; }
.mj-social-login { display: grid; gap: .6rem; }
.mj-social-login .btn { display: flex; align-items: center; justify-content: center; gap: .6rem; }
.mj-divider { display: flex; align-items: center; gap: 1rem; color: var(--mj-muted); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; margin-block: 1.5rem; }
.mj-divider::before, .mj-divider::after { content: ""; flex: 1; height: 1px; background: var(--mj-line); }
.mj-order { background: var(--mj-paper); border: 1px solid var(--mj-line); margin-block-end: 1rem; }
.mj-order-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding: 1rem 1.25rem; border-block-end: 1px solid var(--mj-line); font-size: .85rem; }
.mj-order-head dt { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mj-muted); font-weight: 400; }
.mj-order-head dd { margin: 0; }
.mj-status { display: inline-block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding: .25rem .55rem; border: 1px solid currentColor; }
.mj-status.ok { color: var(--mj-ok); }
.mj-status.wait { color: var(--mj-gold-deep); }
.mj-status.bad { color: var(--mj-sale); }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Home hero ---------- */
.mj-home-hero { background: var(--mj-ivory); overflow: hidden; }
.mj-home-hero-inner { display: grid; gap: clamp(18px, 3vw, 48px); align-items: center; padding-block: clamp(16px, 3vw, 40px); }
@media (min-width: 992px) { .mj-home-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.mj-home-hero-copy h1 { margin-block: .6rem .8rem; max-width: 18ch; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.mj-home-hero-copy > p { max-width: 46ch; font-size: .95rem; line-height: 1.65; margin-block-end: 1.3rem; }
.mj-home-stats { display: flex; gap: clamp(1.25rem, 3vw, 2.4rem); margin: 1.5rem 0 0; padding-block-start: 1rem; border-block-start: 1px solid var(--mj-line); }
.mj-home-stats dt { font-family: var(--mj-font-display); font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 500; line-height: 1; }
.mj-home-stats dd { margin: .35rem 0 0; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mj-muted); }
html[lang="ar"] .mj-home-stats dd { letter-spacing: 0; font-size: .85rem; }
.mj-home-hero-media { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr; gap: clamp(8px, 1.2vw, 16px); height: clamp(300px, 34vw, 440px); }
.mj-home-hero-tile { position: relative; overflow: hidden; background: var(--mj-sand); display: block; }
.mj-home-hero-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--mj-ease); }
.mj-home-hero-tile:hover img { transform: scale(1.04); }
.mj-home-hero-tile.t2 { transform: translateY(18px); }
@media (max-width: 991.98px) {
  .mj-home-hero-inner { padding-block-start: 20px; }
  .mj-home-hero-media { order: -1; height: auto; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .mj-home-hero-tile.t2 { transform: none; }
  .mj-home-hero-tile { aspect-ratio: 4 / 5; }
  .mj-home-hero-tile.t1 { grid-row: auto; }
  .mj-home-hero-tile.t3 { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .mj-home-hero-copy > * { animation: mj-rise .9s var(--mj-ease) both; }
  .mj-home-hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .mj-home-hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .mj-home-hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .mj-home-hero-copy > *:nth-child(5) { animation-delay: .32s; }
  .mj-home-hero-tile { animation: mj-fade 1.2s var(--mj-ease) both; }
  .mj-home-hero-tile.t2 { animation-delay: .15s; }
  .mj-home-hero-tile.t3 { animation-delay: .3s; }
}
@keyframes mj-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes mj-fade { from { opacity: 0; } }

/* Campaign banners (admin artwork with text baked in: never crop) */
.mj-campaigns { background: #1e1d1b; }
.mj-campaigns img { aspect-ratio: 16 / 5; object-fit: contain; background: #1e1d1b; }
.mj-campaigns .carousel-indicators { margin-block-end: .4rem; }
.mj-campaigns .carousel-indicators [data-bs-target] { width: 22px; height: 2px; border: 0; }

/* Card hover image */
.mj-card-hover { transition: opacity .45s var(--mj-ease) !important; }

@media (max-width: 991.98px) { .mj-thumbs { display: none; } }

/* Card add-to-bag */
.mj-card { height: 100%; }
.mj-card-add { margin-block-start: auto; padding-block-start: .5rem; position: relative; z-index: 1; }
.mj-card .btn-sm, .mj-card-add.btn { padding: .5rem .6rem; font-size: .68rem; letter-spacing: .12em; }
html[lang="ar"] .mj-card .btn-sm, html[lang="ar"] .mj-card-add.btn { letter-spacing: 0; font-size: .82rem; }
.mj-card-add .bi { margin-inline-end: .25rem; }
/* Product gallery: whole photo, never cropped */
.mj-gallery-main { background: #fff; border: 1px solid var(--mj-line); }
.mj-gallery-main img { object-fit: contain !important; }
.mj-thumbs button { background: #fff; }
.mj-thumbs img { object-fit: contain; }
.mj-line-media, .mj-mini-line img, .mj-search-results img { background: #fff; }
.mj-line-media img, .mj-mini-line img, .mj-search-results img { object-fit: contain; }

/* Prices stand apart from names (owner request): brand deep gold, heavier weight */
.mj-price .now { color: var(--mj-gold-deep); font-weight: 600; }
.mj-price .off { font-weight: 600; }

/* Payment marks */
.mj-paymarks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.mj-footer .mj-paymarks { justify-content: flex-start; }
.mj-paymarks li { line-height: 0; }
.mj-paymarks svg { display: block; border-radius: 4px; box-shadow: 0 0 0 1px var(--mj-line); }

/* Social icons in their real brand colours */
.mj-social a { border: 0; color: #fff; font-size: 1.05rem; transition: transform .2s var(--mj-ease), box-shadow .2s var(--mj-ease); }
.mj-social a:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .15); }
.mj-social .s-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.mj-social .s-tt { background: #000; box-shadow: inset -2px 0 0 #25F4EE, inset 2px 0 0 #FE2C55; }
.mj-social .s-sc { background: #FFFC00; color: #000; }
.mj-social .s-sc:hover { color: #000; }
.mj-social .s-wa { background: #25D366; }

/* ---------- Product card v2 (owner reference: framed card, split action bar) ---------- */
.mj-card { background: var(--mj-paper); border: 1px solid var(--mj-line); transition: box-shadow .35s var(--mj-ease), transform .35s var(--mj-ease), border-color .35s var(--mj-ease); }
.mj-card:hover { border-color: #d9cdb8; box-shadow: 0 18px 36px -22px rgba(60, 44, 20, .35); transform: translateY(-3px); }
.mj-card-media { border: 0; border-block-end: 1px solid var(--mj-line); }
.mj-card-body { padding: .8rem .9rem .7rem; gap: .3rem; flex: 1; }
.mj-card-title { font-family: var(--mj-font-display); font-size: 1.12rem; font-weight: 500; letter-spacing: .02em; line-height: 1.25; color: var(--mj-ink); }
html[lang="ar"] .mj-card-title { font-size: .98rem; }
.mj-card-title a:hover { color: var(--mj-gold-deep); }
.mj-card .mj-price { font-size: .95rem; }
.mj-card .mj-price .was { font-size: .8rem; }
.mj-card-foot { display: grid; grid-template-columns: 1fr 1fr; border-block-start: 1px solid var(--mj-line); position: relative; z-index: 1; }
.mj-card-foot > form { display: contents; }
.mj-card-action { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 42px; padding: .45rem .5rem; background: none; border: 0; color: var(--mj-ink-2); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; min-width: 0; transition: background-color .2s, color .2s; }
html[lang="ar"] .mj-card-action { letter-spacing: 0; font-size: .8rem; }
.mj-card-action span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mj-card-action .bi { color: var(--mj-gold); font-size: .95rem; flex: none; }
.mj-card-action + .mj-card-action, .mj-card-foot > form + .mj-card-action { border-inline-start: 1px solid var(--mj-line); }
.mj-card-action:hover { background: var(--mj-ink); color: #fff; }
.mj-card-action:hover .bi { color: #d9c08a; }
.mj-card-action:disabled { opacity: .6; }
.mj-card-brandlink { color: var(--mj-gold-deep); }
.mj-card-foot:has(> :only-child) { grid-template-columns: 1fr; }

/* Dirham sign */
.mj-amount { display: inline-flex; align-items: center; gap: .22em; white-space: nowrap; direction: ltr; }
.mj-dh { width: .95em; height: .8em; flex: none; }
.mj-card-action { letter-spacing: .05em; font-size: .66rem; padding-inline: .35rem; gap: .3rem; }
.mj-card-action .bi { font-size: .85rem; }
@media (max-width: 575.98px) {
  .mj-card-title { font-size: 1rem; }
  .mj-card-action { font-size: .6rem; letter-spacing: .02em; min-height: 38px; }
  .mj-card-action .bi { display: none; }
}
/* The brand gets whatever width "Add to bag" leaves, so long names stay readable */
.mj-card-foot { grid-template-columns: auto minmax(0, 1fr); }
.mj-card-foot > form .mj-card-action, .mj-card-foot > .mj-card-action:first-child { padding-inline: .6rem; }
.mj-card-brandlink { justify-content: center; }

/* ---------- White canvas (owner: product photos are on white) ---------- */
.bg-paper { background: #faf8f5; }
.mj-home-hero { background: #fff; }
.mj-card { border-color: #eeeae3; }
.mj-card:hover { border-color: #e2d9c9; }
.mj-card-media { border-block-end-color: #f1ede6; }

/* ---------- Card actions as real buttons ---------- */
.mj-card-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45rem; padding: 0 .9rem .9rem; border-block-start: 0; }
.mj-card-action { min-height: 36px; padding: .4rem .7rem; border: 1px solid var(--mj-ink); border-radius: 2px; font-size: .64rem; font-weight: 500; letter-spacing: .1em; cursor: pointer; transition: background-color .2s var(--mj-ease), color .2s var(--mj-ease), border-color .2s var(--mj-ease); }
.mj-card-action + .mj-card-action, .mj-card-foot > form + .mj-card-action { border-inline-start: 1px solid; }
/* primary: Add to bag / Choose options */
.mj-card-foot > form .mj-card-action, .mj-card-foot > .mj-card-action:first-child { width: 100%; background: var(--mj-ink); color: #fff; border-color: var(--mj-ink); }
.mj-card-foot > form .mj-card-action .bi, .mj-card-foot > .mj-card-action:first-child .bi { color: #e3cc95; }
.mj-card-foot > form .mj-card-action:hover, .mj-card-foot > .mj-card-action:first-child:hover { background: var(--mj-gold-deep); border-color: var(--mj-gold-deep); color: #fff; }
.mj-card-foot > form .mj-card-action:hover .bi, .mj-card-foot > .mj-card-action:first-child:hover .bi { color: #fff; }
/* secondary: brand */
.mj-card-foot .mj-card-brandlink { background: #fff; color: var(--mj-gold-deep); border-color: #dccfb6; }
.mj-card-foot .mj-card-brandlink .bi { color: var(--mj-gold); }
.mj-card-foot .mj-card-brandlink:hover { background: var(--mj-sand); color: var(--mj-ink); border-color: var(--mj-gold); }
.mj-card-foot .mj-card-brandlink:hover .bi { color: var(--mj-gold-deep); }
html[lang="ar"] .mj-card-action { font-size: .76rem; letter-spacing: 0; }
@media (max-width: 575.98px) {
  .mj-card-foot { grid-template-columns: 1fr; gap: .35rem; padding: 0 .6rem .6rem; }
  .mj-card-action { min-height: 34px; font-size: .62rem; }
}

/* Brand button shows the brand's logo (owner request) */
.mj-card-foot .mj-card-brandlink { padding: .2rem .4rem; }
.mj-card-brandlink img { height: 28px; width: auto; max-width: 100%; object-fit: contain; border-radius: 2px; mix-blend-mode: multiply; transition: transform .25s var(--mj-ease); }
.mj-card-brandlink:hover img { transform: scale(1.06); }
@media (max-width: 575.98px) { .mj-card-brandlink img { height: 24px; } }

/* ---------- Clarity City (owner choice) ----------
   One geometric sans for everything; hierarchy comes from weight and
   tracking instead of a second serif face. */
.mj-display, h1, .h1, h2, .h2 { font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
h1, .h1 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h2, .h2 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
.mj-home-hero-copy h1 { font-size: clamp(1.7rem, 2.8vw, 2.45rem); font-weight: 600; letter-spacing: -.02em; }
.mj-page-head h1 { text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
html[lang="ar"] .mj-page-head h1 { letter-spacing: 0; text-transform: none; }
.mj-card-title { font-size: .92rem; font-weight: 600; letter-spacing: .02em; line-height: 1.3; }
.mj-buy h1 { font-weight: 600; letter-spacing: 0; }
.mj-home-stats dt, .mj-summary h2, .mj-fieldset legend { font-weight: 600; letter-spacing: -.01em; }
.mj-search-input { font-weight: 400; }
.mj-cat span { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: clamp(.82rem, 1.1vw, .95rem); }
html[lang="ar"] .mj-cat span { text-transform: none; letter-spacing: 0; }
body { font-weight: 400; }

/* ---------- Contact page ---------- */
.mj-contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); margin-block-end: clamp(24px, 4vw, 48px); }
@media (min-width: 992px) { .mj-contact-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mj-contact-card { display: flex; flex-direction: column; gap: .2rem; padding: clamp(14px, 2vw, 22px); border: 1px solid var(--mj-line); background: #fff; transition: transform .35s var(--mj-ease), box-shadow .35s var(--mj-ease), border-color .35s var(--mj-ease); min-width: 0; }
.mj-contact-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -22px rgba(60, 44, 20, .4); border-color: #e2d9c9; color: inherit; }
.mj-contact-card strong { font-weight: 600; margin-block-start: .6rem; }
.mj-contact-card span { font-size: .9rem; overflow-wrap: anywhere; }
.mj-contact-card small { color: var(--mj-gold-deep); font-size: .74rem; letter-spacing: .06em; margin-block-start: .2rem; }
.mj-contact-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #faf6ef; border: 1px solid #efe5d2; color: var(--mj-gold-deep); font-size: 1.15rem; transition: transform .4s var(--mj-ease); }
.mj-contact-ico.wa { background: #25d366; border-color: #25d366; color: #fff; }
.mj-contact-card:hover .mj-contact-ico { transform: rotate(-10deg) scale(1.1); }

.mj-location { position: relative; height: clamp(360px, 46vw, 520px); background: var(--mj-sand); }
.mj-location iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
.mj-location-inner { position: relative; height: 100%; display: flex; align-items: flex-end; padding-block-end: 24px; pointer-events: none; }
@media (min-width: 768px) { .mj-location-inner { align-items: center; padding-block-end: 0; } }
.mj-location-card { pointer-events: auto; background: rgba(255, 255, 255, .97); border: 1px solid var(--mj-line); box-shadow: 0 24px 48px -24px rgba(28, 26, 23, .45); padding: clamp(18px, 2.4vw, 28px); max-width: 380px; width: 100%; }
.mj-location-card h2 { margin-block: .4rem .5rem; }
.mj-contact-points li { display: flex; gap: .75rem; align-items: center; padding-block: .55rem; border-block-end: 1px solid var(--mj-line); font-size: .92rem; }
.mj-contact-points .bi { color: var(--mj-gold); font-size: 1.1rem; }
/* Google's own place panel sits top-left in the embed: keep our card clear of it */
@media (min-width: 768px) { .mj-location-inner { justify-content: flex-end; } }

/* Account tabs */
.mj-account-tabs { display: flex; gap: .4rem; justify-content: center; margin-block-end: 1.5rem; flex-wrap: wrap; }
.mj-account-tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.1rem; border: 1px solid var(--mj-line); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; background: #fff; }
html[lang="ar"] .mj-account-tabs a { letter-spacing: 0; font-size: .9rem; }
.mj-account-tabs a[aria-current="page"] { background: var(--mj-ink); color: #fff; border-color: var(--mj-ink); }

/* Language switch as a clear pill in the top corner (phones: replaces the bag icon) */
.mj-lang { border: 1px solid var(--mj-line); border-radius: 999px; padding: .3rem .8rem; min-height: 34px; gap: .35rem; font-weight: 600; transition: border-color .2s, background-color .2s; }
.mj-lang:hover { border-color: var(--mj-gold); background: #faf6ef; }
@media (max-width: 991.98px) { .mj-lang { font-size: .8rem; padding: .25rem .7rem; } }
.mj-colour-dot { width: 16px; height: 16px; border-radius: 50%; flex: none; border: 1px solid rgba(0,0,0,.15); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }

/* Home banners (Admin → Banners): artwork shown whole, never cropped */
.mj-banner { display: block; overflow: hidden; border-radius: var(--mj-radius); background: var(--mj-sand); }
.mj-banner img { display: block; width: 100%; height: auto; transition: transform .8s var(--mj-ease); }
a.mj-banner:hover img { transform: scale(1.015); }
.mj-campaigns .carousel-item { transition-duration: .8s; }
.mj-campaign-dots { position: static; margin: 10px 0 0; justify-content: center; }
.mj-campaign-dots [data-bs-target] { width: 22px; height: 3px; border: 0; background: var(--mj-ink); opacity: .2; }
.mj-campaign-dots .active { opacity: .9; }
@media (prefers-reduced-motion: reduce) { .mj-banner img { transition: none; } }
.mj-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mj-line); }
.mj-credit a:hover { color: var(--mj-gold-deep); }

/* Tabby / Tamara (pay in 4 via Nomod) */
.mj-bnpl { margin: .55rem 0 0; font-size: .86rem; color: var(--mj-ink-2); line-height: 1.7; }
.mj-bnpl small { font-size: .74rem; }
.mj-bnpl-tabby, .mj-bnpl-tamara { display: inline-block; font-family: Arial, Helvetica, sans-serif; font-weight: 800; font-size: .72rem; line-height: 1; padding: .2rem .4rem; border-radius: 3px; color: #000; letter-spacing: -.01em; vertical-align: .05em; direction: ltr; }
.mj-bnpl-tabby { background: #3BFFC1; }
.mj-bnpl-tamara { background: linear-gradient(90deg, #F7A6C3, #E7A4F0 55%, #FFB98A); }
.mj-bnpl-or { color: var(--mj-muted); font-size: .8rem; }
.mj-card-bnpl { margin: .2rem 0 0; font-size: .7rem; color: var(--mj-muted); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mj-card-bnpl .mj-bnpl-tabby, .mj-card-bnpl .mj-bnpl-tamara { font-size: .6rem; padding: .12rem .28rem; }
.mj-pdp-paymarks { margin-top: 1rem; }
.mj-pdp-paymarks .mj-paymarks { justify-content: flex-start; }

/* Checkout: how to pay */
.mj-paywith { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.mj-paywith-opt { display: grid; gap: .2rem; padding: .75rem .9rem; border: 1px solid var(--mj-line); background: var(--mj-paper); cursor: pointer; text-align: start; }
.mj-paywith-head { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .9rem; }
.mj-paywith-opt small { font-size: .76rem; line-height: 1.5; }
.btn-check:checked + .mj-paywith-opt { border-color: var(--mj-ink); box-shadow: inset 0 0 0 1px var(--mj-ink); }
.btn-check:focus-visible + .mj-paywith-opt { outline: 2px solid var(--mj-gold); outline-offset: 2px; }
.btn-check:disabled + .mj-paywith-opt { opacity: .55; cursor: not-allowed; }

/* Checkout payment choice as selectable buttons */
.mj-paywith-opt { grid-template-columns: 22px minmax(0, 1fr); column-gap: .75rem; align-items: start; padding: .95rem 1rem; border-radius: 6px; transition: border-color .2s var(--mj-ease), background .2s var(--mj-ease), box-shadow .2s var(--mj-ease); }
.mj-paywith-opt:hover { border-color: var(--mj-ink-2); }
.mj-paywith-radio { width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--mj-muted); display: grid; place-items: center; background: #fff; }
.mj-paywith-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mj-ink); transform: scale(0); transition: transform .2s var(--mj-ease); }
.mj-paywith-body { display: grid; gap: .25rem; min-width: 0; }
.mj-paywith-head { justify-content: space-between; }
.mj-paywith-price { font-weight: 600; color: var(--mj-gold-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mj-paywith-price small { font-weight: 400; color: var(--mj-muted); font-size: .72rem; margin-inline-start: 1px; }
.mj-paywith-marks { display: flex; gap: .5rem; font-size: 1rem; color: var(--mj-ink-2); margin-top: .1rem; }
.mj-paywith-limit { display: block; color: var(--mj-sale); }
.mj-paywith-limit[hidden] { display: none; }
.btn-check:checked + .mj-paywith-opt { border-color: var(--mj-ink); background: var(--mj-sand); box-shadow: inset 0 0 0 1px var(--mj-ink); }
.btn-check:checked + .mj-paywith-opt .mj-paywith-radio { border-color: var(--mj-ink); }
.btn-check:checked + .mj-paywith-opt .mj-paywith-radio::after { transform: scale(1); }
[data-bnpl-fee-row][hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .mj-paywith-opt, .mj-paywith-radio::after { transition: none; } }
