/* HAIFA MINI – Arabic-only layout refinements. English layout is unchanged. */
html[lang="ar"] .footer,
html[lang="ar"] .footer-cols,
html[lang="ar"] .footer-bottom,
html[lang="ar"] .footer-note { direction: rtl; text-align: right; }
html[lang="ar"] .footer-bottom { display:flex; align-items:flex-start; justify-content:space-between; gap:16px 28px; flex-wrap:wrap; }
html[lang="ar"] .footer-bottom > div { direction:rtl; unicode-bidi:isolate; line-height:1.75; }
html[lang="ar"] .footer-bottom bdi { direction:ltr; unicode-bidi:isolate; display:inline; white-space:nowrap; }
html[lang="ar"] .footer-cols > div { text-align:right; }
html[lang="ar"] .footer-note { line-height:1.8; }

/* Preserve legible Latin numerals and currency; keep the full price aligned
   to the right-hand edge of the Arabic hero text on desktop. */
html[lang="ar"] .hero-contents .price-line {
  width:100%; direction:ltr !important; flex-direction:row !important;
  justify-content:flex-end !important; text-align:right;
}
html[lang="ar"] .hero-contents .price-line .price {
  direction:ltr !important; unicode-bidi:isolate; text-align:right;
  font-variant-numeric:tabular-nums;
}

/* The Arabic headline is editorial text, not an oversized English display font. */
html[lang="ar"] #collectible .big-bg {
  font-family:'Noto Kufi Arabic',Arial,sans-serif !important;
  font-size:clamp(31px,4.2vw,52px) !important;
  font-weight:800 !important;
  line-height:1.13 !important;
  letter-spacing:0 !important;
  margin-top:30px;
  width:100% !important;
  max-width:100%;
  text-align:right !important;
  overflow-wrap:normal;
}
html[lang="ar"] #collectible .showcase { margin-top:0; }

@media (max-width:760px) {
  /* Arabic mobile header: brand on the left. The Haifa signature is before
     the brand text (on its left), while compact navigation stays on the right. */
  html[lang="ar"] .topbar { direction:ltr; justify-content:space-between; }
  html[lang="ar"] .topbar .brand {
    order:0; flex:0 1 auto; min-width:0; direction:ltr;
    flex-direction:row; justify-content:flex-start;
  }
  html[lang="ar"] .topbar .brand-sign { order:0; flex:none; }
  html[lang="ar"] .topbar .brand-copy { order:1; direction:rtl; text-align:right; }
  html[lang="ar"] .topbar .brand-dot { order:2; }
  html[lang="ar"] .topbar .toolbar {
    order:1; direction:ltr; margin-right:0 !important; margin-left:auto !important;
    flex:0 0 auto; display:flex; align-items:center; justify-content:flex-end;
    gap:5px !important;
  }
  html[lang="ar"] .topbar #language { direction:ltr; unicode-bidi:isolate; white-space:nowrap; flex:none; }
  html[lang="ar"] .topbar #menu { flex:none; order:4; }
  html[lang="ar"] .topbar .haifa-music-dock { flex:none; order:3; direction:ltr; }
  html[lang="ar"] .topbar .header-preorder { order:1; }
  html[lang="ar"] .topbar #language { order:2; }
  html[lang="ar"] .topbar .navlinks { direction:rtl; text-align:right; align-items:flex-start; }

  /* Amount follows Arabic copy on the right; preserve left-to-right currency
     digits and dropdown arrow within that right-aligned price group. */
  html[lang="ar"] .hero-contents .price-line {
    justify-content:flex-end !important;
    align-self:stretch;
    text-align:right !important;
  }
  html[lang="ar"] .hero-contents .price-line .price { text-align:right; }
  html[lang="ar"] #collectible .big-bg {
    font-size:clamp(26px,7vw,35px) !important;
    font-weight:800 !important;
    line-height:1.15 !important;
    margin:22px 0 12px !important;
    padding-inline:0;
  }
  html[lang="ar"] #collectible .showcase { margin-top:0 !important; }
  html[lang="ar"] .footer-bottom { flex-direction:column; align-items:stretch; gap:12px; }
  html[lang="ar"] .footer-note { line-height:1.75; }
}
@media (max-width:380px) {
  html[lang="ar"] .topbar .brand-copy { font-size:7px !important; }
  html[lang="ar"] .topbar .toolbar { gap:3px !important; }
  html[lang="ar"] .topbar .brand-sign { width:50px; }
}

/* At 320px, keep the Arabic-header brand text beside the signature instead of hiding it. */
@media (max-width:380px) {
  html[lang="ar"] .topbar .brand-copy { display:block !important; white-space:nowrap; }
}

/* Official IP notice, displayed as a quiet footer line in both languages. */
.footer .footer-ip { margin-top:20px; max-width:1080px; font-size:11px; line-height:1.8; color:rgba(255,255,255,.78); }
.footer .footer-ip a { color:inherit; text-decoration:underline; text-underline-offset:2px; }
html[lang="ar"] .footer .footer-ip { direction:rtl; text-align:right; line-height:1.95; }
html[lang="ar"] .footer .footer-ip bdi { direction:ltr; unicode-bidi:isolate; white-space:nowrap; }
@media(max-width:760px) { .footer .footer-ip { margin-top:16px; font-size:10.5px; line-height:1.8; } }

/* Marketing Arabic copy, 24 Nov 2026: protect headline legibility and preserve RTL spacing. */
html[lang="ar"] .hero-headline .arabic-hero-subline {
  display:block;font:600 clamp(11px,1.15vw,17px)/1.45 'Noto Kufi Arabic',Arial,sans-serif;
  margin-top:10px;letter-spacing:0;filter:none;white-space:normal;
}
html[lang="ar"] #collectible .big-bg {line-height:1.19!important;}
html[lang="ar"] .wave-intro h2 {font-family:'Noto Kufi Arabic',Arial,sans-serif;line-height:1.28!important;}
html[lang="ar"] .hero-contents .price-line{justify-content:flex-end!important;text-align:right!important;}
@media(max-width:760px){
 html[lang="ar"] .hero-headline .arabic-hero-subline{font-size:clamp(10px,2.8vw,12px);line-height:1.45;margin-top:4px;}
 html[lang="ar"] #collectible .big-bg {line-height:1.2!important;}
 html[lang="ar"] .hero-contents .price-line{justify-content:flex-end!important;text-align:right!important;}
}
