/* Joe Bijoux theme – design rules.  Logical properties are used everywhere so the Arabic (RTL) version mirrors itself. */

@font-face { font-family: 'Inter'; src: url('../fonts/inter.woff') format('woff'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('../fonts/cormorant.woff') format('woff'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('../fonts/tajawal-400.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('../fonts/tajawal-500.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('../fonts/tajawal-700.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JB Aref Ruqaa'; src: url('../fonts/aref-ruqaa.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'JB Noto Tifinagh'; src: url('../fonts/noto-sans-tifinagh.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'JB Great Vibes'; src: url('../fonts/great-vibes.woff') format('woff'); font-display: swap; }

:root {
  --ink: #0b0f1c;
  --navy: #101b36;
  --navy-2: #16264a;
  --silver: #c3c9d4;
  --mist: #eef0f4;
  --paper: #fafbfc;
  --line: #dfe3ea;
  --muted: #5a6275;
  --wa: #1fa855;
  --radius: 16px;
  --container: 1180px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Cormorant', Georgia, 'Times New Roman', serif;
  --metal: linear-gradient(100deg, #8d96a5 0%, #f6f8fb 28%, #b4bcc9 52%, #ffffff 74%, #98a1b0 100%);
  --metal-text: linear-gradient(100deg, #cfd6e2 0%, #ffffff 30%, #e3e8f0 55%, #ffffff 80%, #c9d1dd 100%);
}
.jb-rtl { --font-body: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif; --font-head: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .4em; font-weight: 600; letter-spacing: -.005em; }
.jb-rtl h1, .jb-rtl h2, .jb-rtl h3 { font-weight: 700; letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #5b7bd5; outline-offset: 2px; }

.jb-container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.jb-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.jb-skip:focus { top: 12px; }
.jb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jb-hp { position: absolute !important; inset-inline-start: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- header ---------- */
.jb-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 28, .94); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.jb-announce { background: #000; color: #d9deea; text-align: center; font-size: .78rem; letter-spacing: .04em; }
.jb-announce p { margin: 0; padding: 7px 12px; }
.jb-bar { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; min-height: 68px; }
.jb-burger { appearance: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; margin-inline-start: -10px; }
.jb-brand { justify-self: center; display: grid; justify-items: center; text-decoration: none; line-height: 1; gap: 3px; }
.jb-brand__word { font-family: 'Cormorant', Georgia, serif; font-size: 1.9rem; font-weight: 600; letter-spacing: .42em; padding-inline-start: .42em; }
.jb-brand__tag { font-family: 'JB Noto Tifinagh', sans-serif; font-size: .72rem; letter-spacing: .3em; color: var(--silver); }
.jb-brand__logo { height: 56px; width: auto; display: block; }
.jb-tools { display: flex; align-items: center; gap: 4px; }
.jb-lang { text-decoration: none; font-size: .86rem; font-weight: 600; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; line-height: 1; }
.jb-icon-link { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; }
.jb-nav { position: absolute; inset-inline: 0; top: 100%; background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .1); display: none; padding: 8px 20px 18px; }
.jb-header.is-open .jb-nav { display: grid; }
.jb-nav a { text-decoration: none; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-weight: 500; }
@media (min-width: 900px) {
  .jb-bar { grid-template-columns: auto 1fr auto; gap: 32px; min-height: 80px; }
  .jb-brand__logo { height: 64px; }
  .jb-burger { display: none; }
  .jb-brand { justify-self: start; }
  .jb-nav { position: static; display: flex; gap: 30px; background: none; border: 0; padding: 0; justify-content: center; }
  .jb-nav a { border: 0; padding: 6px 0; font-size: .95rem; opacity: .86; border-bottom: 2px solid transparent; }
  .jb-nav a:hover { opacity: 1; border-bottom-color: var(--silver); }
}

/* ---------- buttons ---------- */
.jb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font: 600 .95rem/1 var(--font-body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .12s, background .15s, color .15s; }
.jb-btn:hover { transform: translateY(-1px); }
.jb-btn--solid { background: var(--navy-2); color: #fff; }
.jb-btn--light { background: #fff; color: var(--ink); }
.jb-btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.jb-btn--wa { background: var(--wa); color: #fff; }
.jb-link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.jb-rtl .jb-link span[aria-hidden] { display: inline-block; transform: scaleX(-1); }

/* ---------- hero ---------- */
.jb-hero { position: relative; isolation: isolate; min-height: min(86svh, 780px); display: grid; align-items: end; color: #fff; overflow: hidden; background: radial-gradient(120% 90% at 70% 0%, #26345c 0%, #101b36 45%, #070a15 100%); }
.jb-hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.jb-hero__video { object-fit: cover; }
.jb-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 8, 18, .92) 0%, rgba(5, 8, 18, .45) 45%, rgba(5, 8, 18, .15) 100%); }
.jb-hero__content { padding-block: 60px 56px; max-width: var(--container); }
.jb-hero__title { font-size: clamp(2.5rem, 7.4vw, 5.4rem); max-width: 14ch; margin-bottom: .3em; font-weight: 500; }
.jb-rtl .jb-hero__title { max-width: 16ch; font-weight: 700; font-size: clamp(2.2rem, 6.4vw, 4.4rem); }
.jb-hero__sub { max-width: 46ch; font-size: clamp(1rem, 2.4vw, 1.2rem); color: #d3d9e6; }
.jb-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* No video and no photo yet: a calm, centred text banner (nothing drawn). */
.jb-hero--plain { min-height: min(64svh, 560px); align-items: center; text-align: center; background: radial-gradient(70% 90% at 50% 0%, #2a3a66 0%, #111c38 50%, #070a15 100%); }
.jb-hero--plain .jb-hero__shade { display: none; }
.jb-hero--plain .jb-hero__content { padding-block: 72px; }
.jb-hero--plain .jb-hero__title, .jb-hero--plain .jb-hero__sub { margin-inline: auto; }
.jb-hero--plain .jb-hero__cta { justify-content: center; }

/* ---------- value strip ---------- */
.jb-usp { background: var(--ink); color: #fff; border-top: 1px solid rgba(255, 255, 255, .08); }
.jb-usp__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; }
.jb-usp__list li { display: grid; gap: 2px; padding: 22px 14px; border-inline-end: 1px solid rgba(255, 255, 255, .09); border-bottom: 1px solid rgba(255, 255, 255, .09); }
.jb-usp__list strong { font-size: .98rem; }
.jb-usp__list span { color: #a9b2c6; font-size: .84rem; line-height: 1.45; }
@media (min-width: 900px) { .jb-usp__list { grid-template-columns: repeat(4, 1fr); } .jb-usp__list li { border-bottom: 0; padding: 26px 22px; } .jb-usp__list li:last-child { border-inline-end: 0; } }

/* ---------- sections ---------- */
.jb-section { padding-block: clamp(48px, 8vw, 96px); }
.jb-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.jb-section__head h2 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); margin: 0; }
.jb-section__head--center { display: block; text-align: center; max-width: 640px; margin-inline: auto; }
.jb-section__head--center p { color: var(--muted); margin-top: 8px; }
.jb-notice { padding: 14px 16px; border-radius: 12px; background: var(--mist); color: var(--muted); }
.jb-notice--ok { background: #e7f6ee; color: #14683d; }
.jb-notice--bad { background: #fdecea; color: #a3261e; }

/* ---------- product grid and cards ---------- */
.jb-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.jb-grid::before, .jb-grid::after { display: none !important; }
.jb-grid > li.product { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
@media (min-width: 720px) { .jb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; } }
@media (min-width: 1040px) { .jb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.jb-card { display: grid; gap: 12px; text-decoration: none; color: inherit; }
.jb-card__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.jb-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s; }
.jb-card__img--alt { opacity: 0; }
@media (hover: hover) { .jb-card:hover .jb-card__img--alt { opacity: 1; } .jb-card:hover .jb-card__img:not(.jb-card__img--alt) { transform: scale(1.03); } }
.jb-card__ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #dfe3ea, #f6f7fa 50%, #cfd5df); }
.jb-card__ph i { font: 600 4.5rem/1 'Cormorant', serif; font-style: normal; color: #9aa3b4; letter-spacing: .1em; }
.jb-card__play { position: absolute; inset-block-end: 10px; inset-inline-end: 10px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(11, 15, 28, .72); color: #fff; }
.jb-card__body { display: grid; gap: 4px; justify-items: start; }
.jb-card__title { font-weight: 600; line-height: 1.3; }
.jb-card__price { color: var(--muted); font-size: .95rem; }
.jb-card__price del { opacity: .55; margin-inline-end: 6px; }
.jb-card__price ins { text-decoration: none; color: var(--ink); font-weight: 600; }
.jb-chip { display: inline-block; font-size: .72rem; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; background: var(--navy-2); color: #fff; margin-top: 2px; }

/* ---------- writing systems ---------- */
.jb-scripts { background: radial-gradient(100% 140% at 50% 0%, #1a2a52 0%, #0d1428 55%, #070a15 100%); color: #fff; }
.jb-scripts .jb-section__head--center p { color: #aab3c8; }
.jb-scripts__grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .jb-scripts__grid { grid-template-columns: repeat(3, 1fr); } }
.jb-engr { margin: 0; display: grid; justify-items: center; gap: 8px; padding: 34px 16px 22px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.jb-engr span { font-size: clamp(2.6rem, 8vw, 3.8rem); line-height: 1.25; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding: 4px 8px; }
.jb-engr--arabic span { font-family: 'JB Aref Ruqaa', serif; }
.jb-engr--tifinagh span { font-family: 'JB Noto Tifinagh', sans-serif; font-size: clamp(2.2rem, 7vw, 3.2rem); }
.jb-engr--latin span { font-family: 'JB Great Vibes', cursive; }
.jb-engr figcaption { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: #8e98b0; }
.jb-rtl .jb-engr figcaption { letter-spacing: 0; text-transform: none; font-size: .9rem; }

/* ---------- steps ---------- */
.jb-steps__list { list-style: none; counter-reset: step; display: grid; gap: 14px; }
@media (min-width: 760px) { .jb-steps__list { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.jb-steps__list li { counter-increment: step; position: relative; padding: 26px 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.jb-steps__list li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%; background: var(--navy-2); color: #fff; font-weight: 700; }
.jb-steps__list h3 { font-size: 1.45rem; }
.jb-steps__list p { color: var(--muted); margin: 0; }

/* ---------- wholesale band ---------- */
.jb-wcta { background: linear-gradient(100deg, #cdd3de 0%, #f1f3f7 45%, #c4cad6 100%); }
.jb-wcta__inner { display: grid; gap: 18px; align-items: center; padding-block: 44px; }
.jb-wcta h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .2em; }
.jb-wcta p { margin: 0; color: #3b4458; }
.jb-wcta .jb-btn--light { background: var(--ink); color: #fff; justify-self: start; }
@media (min-width: 760px) { .jb-wcta__inner { grid-template-columns: 1fr auto; } }

/* ---------- instagram strip ---------- */
.jb-ig__grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 900px) { .jb-ig__grid { grid-template-columns: repeat(6, 1fr); } }
.jb-ig__grid li { aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--mist); }
.jb-ig__grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.jb-ig__grid a:hover img { transform: scale(1.05); }

/* ---------- FAQ ---------- */
.jb-faq__inner { max-width: 780px; }
.jb-faq details { border-bottom: 1px solid var(--line); }
.jb-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; }
.jb-faq summary::-webkit-details-marker { display: none; }
.jb-faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.jb-faq details[open] summary::after { transform: rotate(45deg); }
.jb-faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; max-width: 62ch; }

/* ---------- footer ---------- */
.jb-footer { background: var(--ink); color: #c9d0df; padding-top: 52px; }
.jb-footer__grid { display: grid; gap: 30px; padding-bottom: 36px; }
@media (min-width: 760px) { .jb-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.jb-footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #8e98b0; margin-bottom: 14px; }
.jb-rtl .jb-footer h2 { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.jb-footer ul { list-style: none; display: grid; gap: 10px; }
.jb-footer a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.jb-footer a:hover { color: #fff; }
.jb-footer__brand { margin: 0 0 22px; line-height: 0; }
.jb-footer__logo { height: 128px; width: auto; display: block; }
.jb-footer__pay { color: #fff; font-weight: 600; }
.jb-footer__legal { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 18px 26px; color: #8e98b0; }
.jb-wa { position: fixed; inset-block-end: 18px; inset-inline-end: 18px; z-index: 60; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .55); }
.single-product .jb-wa { inset-block-end: 90px; }
@media (min-width: 560px) { .single-product .jb-wa { inset-block-end: 18px; } }

/* ---------- shop and product pages ---------- */
.jb-main { padding-block: 32px 64px; }
.jb-woo h1.page-title, .jb-woo .woocommerce-products-header__title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 24px; }
.jb-woo .woocommerce-pagination { margin-top: 36px; text-align: center; }
.jb-woo .woocommerce-pagination ul { display: inline-flex; gap: 6px; border: 0; }
.jb-woo .woocommerce-pagination li { border: 0; }
.jb-woo .woocommerce-pagination a, .jb-woo .woocommerce-pagination span { display: block; padding: 9px 14px; border-radius: 10px; background: var(--mist); text-decoration: none; }
.jb-woo .woocommerce-pagination .current { background: var(--navy-2); color: #fff; }

.jb-single div.product { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .jb-single div.product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; } .jb-single .summary { position: sticky; top: 112px; } }
.jb-single .summary { float: none !important; width: auto !important; }
.jb-single .product_title { font-size: clamp(1.9rem, 4.6vw, 2.8rem); margin-bottom: .15em; }
body .jb-single .summary p.price, body .jb-single .summary span.price, .jb-single .summary .price { display: block; font-size: 1.5rem; font-weight: 600; margin: 0 0 14px; color: var(--ink); }
.jb-single .summary .price del { opacity: .5; font-weight: 400; font-size: 1.1rem; }
.jb-single .summary .price ins { text-decoration: none; }
.jb-single .woocommerce-product-details__short-description { color: var(--muted); margin-bottom: 22px; }
.jb-desc, .jb-single .related { grid-column: 1 / -1; }
.jb-desc { padding-top: 36px; border-top: 1px solid var(--line); max-width: 760px; }
.jb-desc h2, .jb-single .related > h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.jb-single .related { padding-top: 36px; border-top: 1px solid var(--line); }
.jb-prose { color: #2b3347; }
.jb-prose img { border-radius: 12px; }
.jb-prose-wrap { max-width: 780px; }
.jb-404 { text-align: center; padding-block: 90px; }

.jb-media { position: relative; }
.jb-media__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); background: var(--mist); }
.jb-media__track::-webkit-scrollbar { display: none; }
.jb-slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 5; }
.jb-slide img, .jb-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.jb-slide .jb-card__ph { position: absolute; }
.jb-dots { position: absolute; inset-inline: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.jb-dot { pointer-events: auto; appearance: none; width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); cursor: pointer; transition: width .2s, background .2s; }
.jb-dot.is-on { width: 22px; border-radius: 6px; background: #fff; }

/* ---------- wholesale page ---------- */
.jb-ws { max-width: 780px; }
.jb-ws h1 { font-size: clamp(2.1rem, 5.4vw, 3.2rem); }
.jb-ws__intro { color: var(--muted); font-size: 1.08rem; margin-bottom: 26px; }
.jb-ws__form { display: grid; gap: 22px; }
.jb-ws__grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .jb-ws__grid { grid-template-columns: 1fr 1fr; } .jb-ws__wide { grid-column: 1 / -1; } }
.jb-ws label { display: grid; gap: 6px; }
.jb-ws label > span { font-size: .84rem; font-weight: 600; color: var(--muted); }
.jb-ws input, .jb-ws select, .jb-ws textarea { width: 100%; font: inherit; padding: 12px 14px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.jb-ws__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- order form: let it inherit the theme's colours ---------- */
.jb-woo .jbco { --jb-accent: var(--navy-2); --jb-ink: var(--ink); --jb-line: var(--line); --jb-soft: var(--mist); --jb-font: var(--font-body); max-width: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
