/* EGYPTIQUE web components · Edition 1 · November 2026
   Load after egyptique-tokens.css and ../fonts/egyptique-fonts.css.
   Base styles use :where() (zero specificity), so the theme can override them without !important.
   Class prefix: eq-  ·  Right-to-left: add dir="rtl" (and lang="ar") on <html>. */

/* ---------- Base ---------- */
:where(html) { -webkit-text-size-adjust: 100%; }
:where(body) { margin: 0; background: var(--eq-alabaster); color: var(--eq-text-on-light);
  font: 400 var(--eq-fs-body)/var(--eq-lh-text) var(--eq-font-text); -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3, h4) { margin: 0; color: var(--eq-basalt); font-family: var(--eq-font-display); font-weight: 500; letter-spacing: -.01em; }
:where(h1) { font-size: var(--eq-fs-h1); line-height: 1.04; }
:where(h2) { font-size: var(--eq-fs-h2); line-height: 1.1; }
:where(h3) { font-size: var(--eq-fs-h3); line-height: 1.2; }
:where(h4) { font: 500 1.0625rem/1.4 var(--eq-font-text); letter-spacing: 0; } /* small headings are Jost, Cormorant stays at 28 px and up */
:where(p) { margin: 0 0 1em; max-width: 68ch; }
:where(b, strong) { font-weight: 500; color: var(--eq-basalt); }
:where(a) { color: var(--eq-basalt); text-decoration: underline; text-decoration-color: var(--eq-gold); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color var(--eq-dur) var(--eq-ease); }
:where(a:hover) { color: var(--eq-gold-700); }
:where(img, svg) { display: block; max-width: 100%; }
:where(:focus-visible) { outline: 2px solid var(--eq-gold-700); outline-offset: 3px; }
::selection { background: var(--eq-gold-100); color: var(--eq-basalt); }

.eq-container { width: min(100% - 2 * var(--eq-gutter), var(--eq-container)); margin-inline: auto; }

/* ---------- Text styles ---------- */
.eq-display { font: 500 var(--eq-fs-display)/1.02 var(--eq-font-display); letter-spacing: -.015em; color: var(--eq-basalt); margin: 0; }
.eq-lede { font: 400 var(--eq-fs-lede)/1.34 var(--eq-font-display); color: #3E372D; max-width: 34em; }
.eq-eyebrow { display: block; font: 500 var(--eq-fs-eyebrow)/1.2 var(--eq-font-logo); letter-spacing: var(--eq-track-eyebrow); text-transform: uppercase; color: var(--eq-gold-700); margin: 0 0 var(--eq-space-4); }
.eq-label { font: 500 var(--eq-fs-label)/1.3 var(--eq-font-logo); letter-spacing: var(--eq-track-label); text-transform: uppercase; color: var(--eq-granite); }
.eq-caption { font-size: var(--eq-fs-small); line-height: 1.45; color: var(--eq-text-caption-on-light); }
.eq-quote { font: italic 400 clamp(1.75rem, 1.5rem + 1vw, 2.5rem)/1.3 var(--eq-font-display); color: var(--eq-basalt); }
.eq-price { font-family: var(--eq-font-text); font-weight: 500; font-variant-numeric: tabular-nums lining-nums; color: var(--eq-basalt); }
.eq-price del { color: var(--eq-text-caption-on-light); font-weight: 400; margin-inline-end: .5em; }
.eq-price ins { text-decoration: none; }

/* ---------- Surfaces ---------- */
.eq-surface--alabaster { background: var(--eq-alabaster); color: var(--eq-text-on-light); }
.eq-surface--papyrus { background: var(--eq-papyrus); color: var(--eq-text-on-light); }
.eq-surface--white { background: #fff; color: var(--eq-text-on-light); }
.eq-surface--basalt, .eq-surface--cedar { color: var(--eq-text-on-dark); }
.eq-surface--basalt { background: var(--eq-basalt); }
.eq-surface--cedar { background: var(--eq-cedar); }
:is(.eq-surface--basalt, .eq-surface--cedar) :is(h1, h2, h3, .eq-display, .eq-quote, b, strong) { color: var(--eq-alabaster); }
:is(.eq-surface--basalt, .eq-surface--cedar) .eq-eyebrow { color: var(--eq-gold); }
:is(.eq-surface--basalt, .eq-surface--cedar) :is(.eq-lede) { color: #E6DCC7; }
:is(.eq-surface--basalt, .eq-surface--cedar) :is(.eq-caption, .eq-label) { color: var(--eq-text-caption-on-dark); }
:is(.eq-surface--basalt, .eq-surface--cedar) a { color: var(--eq-alabaster); }
:is(.eq-surface--basalt, .eq-surface--cedar) :focus-visible { outline-color: var(--eq-gold); }

/* The hieroglyph wall behind a section. Approved strengths: Gold 5–8% on Basalt, 10–14% on Cedar,
   Sandstone 18–25% on Alabaster/Papyrus. Never behind body text at full strength. */
.eq-wall { position: relative; isolation: isolate; }
.eq-wall::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url('../backgrounds/wall-tile-gold-transparent.svg') 50% 0 / var(--eq-wall-size, 520px) auto repeat;
  opacity: var(--eq-wall-opacity, .07); }
.eq-surface--cedar.eq-wall { --eq-wall-opacity: .12; }
:is(.eq-surface--alabaster, .eq-surface--papyrus).eq-wall::before { background-image: url('../backgrounds/wall-tile-sandstone-transparent.svg'); }
:is(.eq-surface--alabaster, .eq-surface--papyrus).eq-wall { --eq-wall-opacity: .22; }
@media (max-width: 640px) { .eq-wall { --eq-wall-size: 416px; } }

/* The sky frieze: a border strip for the top of a footer or the edge of a section */
.eq-frieze { height: 59px; background: url('../backgrounds/frieze-gold-transparent.svg') 0 0 / 80px 59px repeat-x; opacity: .35; }
.eq-frieze--sandstone { background-image: url('../backgrounds/frieze-sandstone-transparent.svg'); opacity: .45; }

.eq-rule { height: var(--eq-line); background: var(--eq-limestone); border: 0; margin: 0; }
.eq-rule--gold { width: 72px; height: 2px; background: var(--eq-gold); border: 0; margin: var(--eq-space-6) 0; }

/* ---------- Buttons: pill, Jost Medium. One gold button per screen, on dark only ---------- */
.eq-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; height: 50px; padding: 0 30px;
  border: var(--eq-line) solid transparent; border-radius: var(--eq-radius-pill); font: 500 1rem/1 var(--eq-font-text); letter-spacing: .02em;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--eq-dur) var(--eq-ease), color var(--eq-dur) var(--eq-ease), border-color var(--eq-dur) var(--eq-ease); }
.eq-btn .eq-icon { width: 20px; height: 20px; }
.eq-btn--primary { background: var(--eq-basalt); color: var(--eq-alabaster); }
.eq-btn--primary:hover { background: var(--eq-cedar); color: var(--eq-alabaster); }
.eq-btn--gold { background: var(--eq-gold); color: var(--eq-basalt); }
.eq-btn--gold:hover { background: var(--eq-gold-300); color: var(--eq-basalt); }
.eq-btn--outline { border-color: var(--eq-basalt); color: var(--eq-basalt); background: transparent; }
.eq-btn--outline:hover { background: var(--eq-basalt); color: var(--eq-alabaster); }
.eq-btn--outline-light { border-color: var(--eq-alabaster); color: var(--eq-alabaster); background: transparent; }
.eq-btn--outline-light:hover { background: var(--eq-alabaster); color: var(--eq-basalt); }
.eq-btn--sm { height: 40px; padding: 0 22px; font-size: .9375rem; }
.eq-btn--lg { height: 58px; padding: 0 36px; font-size: 1.0625rem; }
.eq-btn--block { width: 100%; }
.eq-btn:disabled, .eq-btn[aria-disabled='true'] { opacity: .45; pointer-events: none; }
.eq-link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 500; color: var(--eq-gold-700); text-decoration: none; }
.eq-link-arrow .eq-icon { width: 18px; height: 18px; transition: transform var(--eq-dur) var(--eq-ease); }
.eq-link-arrow:hover .eq-icon { transform: translateX(3px); }

/* ---------- The cartouche: a frame for a name (collection, material, certificate no.) ---------- */
.eq-cartouche { display: inline-flex; align-items: center; height: 34px; padding: 0 18px; margin-inline-end: 14px; position: relative;
  border: 2px solid currentColor; border-radius: var(--eq-radius-pill); font: 500 11px/1 var(--eq-font-logo); letter-spacing: var(--eq-track-label);
  text-transform: uppercase; white-space: nowrap; color: var(--eq-basalt); }
.eq-cartouche::after { content: ''; position: absolute; inset-inline-end: -10px; top: 22%; bottom: 22%; width: 2.5px; background: currentColor; }
.eq-cartouche--lg { height: 46px; padding: 0 28px; font-size: 14px; margin-inline-end: 20px; }
.eq-cartouche--lg::after { inset-inline-end: -13px; width: 3px; }
.eq-cartouche--gold { color: var(--eq-gold-700); }
.eq-surface--basalt .eq-cartouche--gold, .eq-surface--cedar .eq-cartouche--gold { color: var(--eq-gold); }
.eq-cartouche--lapis { color: var(--eq-lapis); }
.eq-cartouche--carnelian { color: var(--eq-carnelian); }
.eq-cartouche--malachite { color: var(--eq-malachite); }
.eq-cartouche--ochre { color: var(--eq-ochre); } /* Ochre text is 3 : 1 on white: use this label on Basalt or Cedar only */

/* ---------- Badge (sale, new, sold out): small, square, never a filled cartouche ---------- */
.eq-badge { display: inline-block; padding: 6px 10px 5px; background: var(--eq-basalt); color: var(--eq-gold); font: 500 10.5px/1 var(--eq-font-logo); letter-spacing: var(--eq-track-label); text-transform: uppercase; }
.eq-badge--light { background: var(--eq-alabaster); color: var(--eq-basalt); }

/* ---------- Header ---------- */
.eq-header { display: flex; align-items: center; justify-content: space-between; gap: var(--eq-space-5); height: 76px; padding: 0 clamp(16px, 3vw, 40px);
  background: var(--eq-alabaster); border-bottom: var(--eq-line) solid var(--eq-limestone); }
.eq-header__logo { display: block; width: clamp(160px, 14vw, 200px); flex: none; }
.eq-header__logo img, .eq-header__logo svg { width: 100%; height: auto; }
.eq-nav { display: flex; gap: clamp(16px, 2vw, 28px); font: 500 .9375rem/1 var(--eq-font-text); }
.eq-nav a { color: var(--eq-basalt); text-decoration: none; padding: 8px 0; border-bottom: var(--eq-line) solid transparent; }
.eq-nav a:hover, .eq-nav a[aria-current='page'] { border-bottom-color: var(--eq-gold); color: var(--eq-basalt); }
.eq-header__actions { display: flex; gap: 6px; }
.eq-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--eq-basalt); cursor: pointer; border-radius: var(--eq-radius-pill); position: relative; }
.eq-icon-btn:hover { background: var(--eq-papyrus); }
.eq-icon-btn .eq-icon { width: 22px; height: 22px; }
.eq-count { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--eq-basalt); color: var(--eq-gold); font: 500 11px/18px var(--eq-font-text); text-align: center; }
.eq-header__menu { display: none; }
@media (max-width: 960px) { .eq-nav { display: none; } .eq-header__menu { display: inline-grid; } }
@media (max-width: 480px) { .eq-header { gap: 12px; } .eq-header__actions { gap: 0; } .eq-icon-btn { width: 40px; height: 40px; } }
@media (max-width: 640px) { .eq-hide-sm { display: none !important; } }

/* ---------- Product card: the collection pigment marks the left edge ---------- */
.eq-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
@media (max-width: 640px) { .eq-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .eq-card__body { padding: 12px 12px 14px 16px; } .eq-card__meta { font-size: 10px; letter-spacing: .18em; } }
.eq-card { --eq-card-edge: var(--eq-gold); position: relative; display: flex; flex-direction: column; background: #fff; color: var(--eq-text-on-light); text-decoration: none; }
.eq-card::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--eq-card-edge); z-index: 1; }
.eq-card--gods { --eq-card-edge: var(--eq-lapis); }
.eq-card--kings { --eq-card-edge: var(--eq-carnelian); }
.eq-card--home { --eq-card-edge: var(--eq-malachite); }
.eq-card--tut { --eq-card-edge: var(--eq-ochre); }
.eq-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--eq-basalt); }
/* the shop's product photos are shot on black: lighten turns that black into Basalt */
.eq-card__media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten; transition: transform 600ms var(--eq-ease); }
.eq-card:hover .eq-card__media img { transform: scale(1.04); }
.eq-card__media .eq-badge { position: absolute; top: 12px; inset-inline-start: 16px; z-index: 2; }
.eq-card__body { padding: 14px 16px 18px 20px; }
.eq-card__name { font: 500 clamp(1.375rem, 1.2rem + .5vw, 1.625rem)/1.15 var(--eq-font-display); color: var(--eq-basalt); margin: 0; }
.eq-card__meta { display: block; margin-top: 8px; font: 500 11px/1.3 var(--eq-font-logo); letter-spacing: var(--eq-track-label); text-transform: uppercase; color: var(--eq-granite); }
.eq-card__price { display: block; margin-top: 10px; font-size: 1.0625rem; }

/* ---------- Fields ---------- */
.eq-field { display: grid; gap: 8px; align-content: start; }
.eq-field > label { font: 500 .875rem/1.3 var(--eq-font-text); color: var(--eq-basalt); }
.eq-input, .eq-select, .eq-textarea { width: 100%; box-sizing: border-box; height: 50px; padding: 0 16px; border: var(--eq-line) solid var(--eq-limestone); border-radius: var(--eq-radius-0);
  background: #fff; color: var(--eq-basalt); font: 400 1rem/1.4 var(--eq-font-text); transition: border-color var(--eq-dur) var(--eq-ease); }
.eq-select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1611' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 20px 20px no-repeat; }
[dir='rtl'] .eq-select { background-position: left 14px center; }
.eq-textarea { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; }
.eq-input::placeholder, .eq-textarea::placeholder { color: #7D705C; } /* 4.8 : 1 on white */
.eq-input:hover, .eq-select:hover, .eq-textarea:hover { border-color: var(--eq-sandstone); }
.eq-input:focus, .eq-select:focus, .eq-textarea:focus { border-color: var(--eq-gold-700); outline: 2px solid rgba(138, 98, 39, .18); outline-offset: 0; }
.eq-field--error .eq-input { border-color: var(--eq-carnelian); }
.eq-field__hint { font-size: .8125rem; color: var(--eq-text-caption-on-light); }
.eq-field--error .eq-field__hint { color: var(--eq-carnelian); }

/* ---------- Icons (use with the sprite or inline SVG) ---------- */
.eq-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.eq-icon--filled { fill: currentColor; }
.eq-stars { display: inline-flex; gap: 2px; color: var(--eq-gold-700); }
.eq-stars .eq-icon { width: 18px; height: 18px; }
:is(.eq-surface--basalt, .eq-surface--cedar) .eq-stars { color: var(--eq-gold); }
.eq-trust { display: flex; flex-wrap: wrap; gap: 20px 40px; }
.eq-trust__item { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--eq-basalt); }
.eq-trust__item .eq-icon { width: 28px; height: 28px; color: var(--eq-gold-700); }

/* ---------- Right to left (Arabic) ---------- */
[dir='rtl'] body, body[dir='rtl'], [dir='rtl']:not(html, body) { font-family: var(--eq-font-text-ar); line-height: var(--eq-lh-text-ar); }
[dir='rtl'] body, body[dir='rtl'] { font-size: 1.1875rem; }  /* Cairo is set about 10% larger than the Jost beside it */
[dir='rtl'] :is(h1, h2, h3, .eq-display, .eq-quote, .eq-card__name), :lang(ar) :is(h1, h2, h3, .eq-display, .eq-quote, .eq-card__name) { font-family: var(--eq-font-display-ar); letter-spacing: 0; line-height: 1.3; }
[dir='rtl'] :is(.eq-eyebrow, .eq-label, .eq-card__meta, .eq-cartouche, .eq-badge), :lang(ar) :is(.eq-eyebrow, .eq-label, .eq-card__meta, .eq-cartouche, .eq-badge) { font-family: var(--eq-font-text-ar); font-weight: 600; letter-spacing: 0; text-transform: none; }
[dir='rtl'] .eq-eyebrow { font-size: 1.0625rem; }
[dir='rtl'] .eq-cartouche, [dir='rtl'] .eq-card__meta { font-size: 13px; }
[dir='rtl'] :is(.eq-btn, .eq-input, .eq-select, .eq-textarea, .eq-nav, .eq-price) { font-family: var(--eq-font-text-ar); }
[dir='rtl'] .eq-lede { font-family: var(--eq-font-display-ar); }
[dir='rtl'] .eq-card__body { padding: 14px 20px 18px 16px; }
/* arrows, chevrons, the truck, returns and chat point the other way in Arabic */
[dir='rtl'] .eq-icon--mirror { transform: scaleX(-1); }
[dir='rtl'] .eq-link-arrow:hover .eq-icon { transform: scaleX(-1) translateX(3px); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .eq-card:hover .eq-card__media img { transform: none; } }
