﻿/**
 * Almazen Online — Brand fonts
 * LinaRound: Arabic (RTL) UI
 * M PLUS Rounded 1c: Latin / English / numbers
 *
 * LinaRound is excluded from ASCII digits (0-9) so prices, dates, and
 * counters always render Western numerals, even when lang="ar".
 * Unicode range skips U+0030-0039; fallback stack supplies M PLUS.
 */

/* ASCII digits + common numeric punctuation from M PLUS, under the LinaRound
   family name, so mixed Arabic/Latin UI keeps English numerals. */
@font-face {
  font-family: 'LinaRound';
  src: url('./mplus/MPLUSRounded1c-Regular.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0025, U+002B, U+002C, U+002D, U+002E, U+0024;
}

@font-face {
  font-family: 'LinaRound';
  src: url('./mplus/MPLUSRounded1c-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0025, U+002B, U+002C, U+002D, U+002E, U+0024;
}

@font-face {
  font-family: 'LinaRound';
  src: url('./mplus/MPLUSRounded1c-Bold.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0025, U+002B, U+002C, U+002D, U+002E, U+0024;
}

@font-face {
  font-family: 'LinaRound';
  src: url('./mplus/MPLUSRounded1c-Bold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0025, U+002B, U+002C, U+002D, U+002E, U+0024;
}

@font-face {
  font-family: 'LinaRound';
  src: url('./mplus/MPLUSRounded1c-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0025, U+002B, U+002C, U+002D, U+002E, U+0024;
}

@font-face {
  font-family: 'LinaRound';
  src: url('./mplus/MPLUSRounded1c-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0025, U+002B, U+002C, U+002D, U+002E, U+0024;
}

@font-face {
  font-family: 'LinaRound';
  src: url('./linaround/LinaRound-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-0023, U+0026-002A, U+002F, U+003A-10FFFF;
}

@font-face {
  font-family: 'LinaRound';
  src: url('./linaround/LinaRound-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-0023, U+0026-002A, U+002F, U+003A-10FFFF;
}

@font-face {
  font-family: 'LinaRound';
  src: url('./linaround/LinaRound-SemiBold.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-0023, U+0026-002A, U+002F, U+003A-10FFFF;
}

@font-face {
  font-family: 'LinaRound';
  src: url('./linaround/LinaRound-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-0023, U+0026-002A, U+002F, U+003A-10FFFF;
}

@font-face {
  font-family: 'LinaRound';
  src: url('./linaround/LinaRound-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-0023, U+0026-002A, U+002F, U+003A-10FFFF;
}

@font-face {
  font-family: 'LinaRound';
  src: url('./linaround/LinaRound-Bold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-0023, U+0026-002A, U+002F, U+003A-10FFFF;
}

@font-face {
  font-family: 'M PLUS Rounded 1c';
  src: url('./mplus/MPLUSRounded1c-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'M PLUS Rounded 1c';
  src: url('./mplus/MPLUSRounded1c-Bold.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'M PLUS Rounded 1c';
  src: url('./mplus/MPLUSRounded1c-Bold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'M PLUS Rounded 1c';
  src: url('./mplus/MPLUSRounded1c-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'M PLUS Rounded 1c';
  src: url('./mplus/MPLUSRounded1c-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-ar: 'LinaRound', Tahoma, 'Segoe UI', sans-serif;
  --font-latin: 'M PLUS Rounded 1c', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans: 'LinaRound', 'M PLUS Rounded 1c', Tahoma, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Unified type scale — balanced for LinaRound readability */
  --fs-root: 17px;
  --fs-xs: 0.8125rem;     /* ~13.8px */
  --fs-sm: 0.9375rem;     /* ~15.9px */
  --fs-base: 1rem;        /* ~17px   */
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.4375rem;
  --fs-compact: 0.75rem;  /* badges / meta */
}

html[lang="en"],
html[dir="ltr"]:not([lang="ar"]) {
  --font-sans: 'M PLUS Rounded 1c', 'LinaRound', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html[lang="ar"],
html[dir="rtl"] {
  --font-sans: 'LinaRound', 'M PLUS Rounded 1c', Tahoma, system-ui, 'Segoe UI', sans-serif;
}

html {
  font-family: var(--font-sans);
  font-size: var(--fs-root);
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-base);
}

/* Tailwind utilities (compiled build + CDN + legacy markup) */
.text-xs,
[class*=":text-xs"],
[class~="text-xs"] {
  font-size: var(--fs-xs) !important;
}

.text-sm,
[class*=":text-sm"],
[class~="text-sm"] {
  font-size: var(--fs-sm) !important;
}

.text-base,
[class*=":text-base"],
[class~="text-base"] {
  font-size: var(--fs-base) !important;
}

.text-lg,
[class*=":text-lg"],
[class~="text-lg"] {
  font-size: var(--fs-lg) !important;
}

.text-xl,
[class*=":text-xl"],
[class~="text-xl"] {
  font-size: var(--fs-xl) !important;
}

.text-2xl,
[class*=":text-2xl"],
[class~="text-2xl"] {
  font-size: var(--fs-2xl) !important;
}

/* Arbitrary pixel sizes used in templates */
.text-\[9px\] { font-size: 0.6875rem !important; }
.text-\[10px\] { font-size: var(--fs-compact) !important; }
.text-\[11px\] { font-size: var(--fs-xs) !important; }
.text-\[12px\] { font-size: 0.875rem !important; }
.text-\[13px\] { font-size: var(--fs-sm) !important; }
.text-\[14px\] { font-size: var(--fs-base) !important; }

small {
  font-size: var(--fs-sm);
}

/* Upgrade configurator — isolated compact scale (must not inherit site text-sm bumps) */
.laptop-upgrade-container {
  font-size: 0.8125rem;
  line-height: 1.35;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.laptop-upgrade-container .text-xs,
.laptop-upgrade-container .text-sm,
.laptop-upgrade-container .text-base,
.laptop-upgrade-container [class*=":text-xs"],
.laptop-upgrade-container [class*=":text-sm"],
.laptop-upgrade-container [class*=":text-base"] {
  font-size: inherit !important;
  line-height: inherit !important;
}

html[lang="en"] h1,
html[dir="ltr"]:not([lang="ar"]) h1 {
  font-weight: 800;
}
