/*
Theme Name: MADA Stores
Theme URI: https://madastores.com
Author: MADA Stores
Description: Public showcase theme for MADA STORES, a children's book publishing and distribution company. Plain HTML and CSS, no dependencies.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mada-stores
*/

:root {
  --ink: #14213d;
  --ink-deep: #0e1830;
  --accent: #8f388c;
  --accent-dark: #8f388c;
  --gold: #d4a64a;
  --bg: #ffffff;
  --alt: #fff8e6;
  --muted: #5b6475;
  --line: #e8e4da;
  --sky: #e8f3ff;
  --sun: #fff6d6;
  --blush: #ffe9f0;
  --mint: #e4f7ec;
  --lilac: #f3e8f6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
.container { width: min(1100px, 100% - 2rem); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; inset-inline-start: 0; top: 0; transform: translateY(-200%); background: #fff; color: var(--accent); border: 2px solid var(--accent); border-radius: 0 0 10px 10px; font-weight: 700; padding: .5rem 1rem; z-index: 20; }
.skip:focus { transform: none; }

/* header */
.header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: block; }
.logo img { display: block; height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { font-size: .95rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--accent-dark); border-bottom-color: var(--accent); }
.nav a.btn, .nav a.btn:hover, .nav a.btn.active { border: 2px solid var(--accent); color: #fff; padding: .4rem 1rem; }
.menu-toggle, .burger { display: none; }

/* buttons */
.btn { display: inline-block; padding: .8rem 1.6rem; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; border: 2px solid var(--accent); transition: filter .2s, background .2s; }
.btn:hover { filter: brightness(.94); }
.btn-small { padding: .4rem 1rem; }
.btn-ghost { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* hero */
.hero { position: relative; color: var(--ink); background: var(--sky); }
.hero-card { width: min(1100px, 100% - 2rem); margin: 0 auto; padding: 2rem 0 2.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; color: var(--accent); font-size: .9rem; font-weight: 700; }
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; margin: .4rem 0 1rem; letter-spacing: .05em; }
.lead { max-width: 560px; margin-bottom: 1.6rem; color: var(--muted); font-size: 1.1rem; }
@media (min-width: 1001px) {
  .hero-card { position: absolute; right: max(1rem, calc((100% - 1100px) / 2)); bottom: 2rem; width: min(460px, 42%); margin: 0; padding: 1.75rem 2rem; border-radius: 14px; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(20,33,61,.18); }
}

/* values: interactive feature chips */
.values { background: linear-gradient(90deg, var(--sky), var(--sun) 35%, var(--blush) 68%, var(--mint)); padding: 1.25rem 0; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.value { display: block; padding: .9rem 1rem; text-align: center; background: #fff; border: 2px solid transparent; border-radius: 12px; box-shadow: 0 3px 10px rgba(20,33,61,.08); transition: transform .2s, border-color .2s, box-shadow .2s; }
.value strong { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--accent); }
.value span { display: block; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.value:hover, .value:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 18px rgba(143,56,140,.18); }
.value.active { border-color: var(--accent); background: var(--lilac); }

/* sections */
.section { padding: 5.5rem 0; }
.alt { background: var(--alt); }
h2 { font-size: 2rem; margin-bottom: 1rem; line-height: 1.2; }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700; color: var(--accent-dark); margin-bottom: .4rem; }
.center { text-align: center; }
h2.center { margin-bottom: 2.5rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split p { color: var(--muted); margin-bottom: 1rem; }
.ticks { list-style: none; }
.ticks li { padding-left: 1.7rem; position: relative; margin: .5rem 0; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 700; }

/* photo tiles + logo panel */
.logo-panel { display: grid; place-items: center; min-height: 360px; padding: 2rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(20,33,61,.08); }
.logo-panel img { width: min(100%, 420px); height: auto; }
.tile { position: relative; margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(20,33,61,.12); }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.tile figcaption { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.2rem 1rem; color: #fff; background: linear-gradient(transparent, rgba(10,16,34,.8)); }
.tile figcaption strong { display: block; font-size: 1.3rem; }
.tile figcaption span { opacity: .92; font-size: .95rem; }

/* cards + grids */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; padding: 2rem; border-radius: 14px; box-shadow: 0 4px 16px rgba(20,33,61,.08); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(20,33,61,.14); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); }
.icon { display: block; width: 52px; height: 52px; padding: 13px; margin-bottom: 1.1rem; border-radius: 50%; background: var(--lilac); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

/* books */
.books { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 820px; margin-inline: auto; }
.book { padding: 1.5rem; text-align: center; }
.cover { aspect-ratio: 3 / 4; margin-bottom: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 22px rgba(20,33,61,.18); overflow: hidden; }
.cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tag { display: inline-block; margin-bottom: .6rem; padding: .15rem .7rem; border-radius: 999px; background: var(--alt); color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* process */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.steps span { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: .8rem; }
.steps p { color: var(--muted); }

/* call to action */
.cta { background: linear-gradient(135deg, var(--sky), var(--blush)); color: var(--ink); text-align: center; padding: 4.5rem 0; }
.cta p { color: var(--muted); margin-bottom: 1.5rem; }

/* contact + footer */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 720px; margin-inline: auto; text-align: center; }
.contact-grid a { color: var(--accent-dark); font-weight: 700; font-size: 1.15rem; }
.contact-grid a:hover { text-decoration: underline; }
.footer { background: var(--sun); color: var(--muted); padding: 1.5rem 0; font-size: .9rem; border-top: 1px solid var(--line); }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* scroll-in (class added by JS, so content is visible without JS) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* tablet + mobile */
@media (max-width: 1000px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cards, .steps, .contact-grid { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); row-gap: .8rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .logo-panel { min-height: 200px; }
  .grid { grid-template-columns: 1fr; }
  .section { padding: 3.75rem 0; }
  .logo img { height: 40px; }
  .burger { display: block; width: 28px; padding: 10px 0; cursor: pointer; }
  .burger span, .burger span::before, .burger span::after { display: block; height: 2px; background: var(--ink); position: relative; content: ""; }
  .burger span::before { position: absolute; top: -7px; width: 100%; }
  .burger span::after { position: absolute; top: 7px; width: 100%; }
  .menu-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
  .menu-toggle:focus-visible + .burger { outline: 3px solid var(--accent); outline-offset: 2px; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1rem; background: #fff; border-bottom: 1px solid var(--line); }
  .menu-toggle:checked ~ .nav { display: flex; }
}
@media (max-width: 480px) {
  .footer .container { flex-direction: column; }
}
@media (max-width: 600px) {
  .books { grid-template-columns: 1fr; max-width: 380px; }
}


/* about pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.pillars .card:nth-child(1) { background: var(--sky); }
.pillars .card:nth-child(2) { background: var(--blush); }
.pillars .card:nth-child(3) { background: var(--mint); }

/* books: shop info + full Al Maha catalog */
.shop-info { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 0 auto 2.5rem; }
.shop-info span { padding: .55rem 1.1rem; border-radius: 999px; background: var(--mint); border: 1px solid #bfe6cf; font-weight: 600; font-size: .95rem; }
.shop-info span:nth-child(2) { background: var(--sun); border-color: #f2dd96; }
.shop-info span:nth-child(3) { background: var(--sky); border-color: #bcd8f5; }
.books-sub { margin: 3.5rem 0 .4rem; font-size: 1.5rem; }
.books-note { text-align: center; color: var(--muted); margin-bottom: 2rem; }
.books-note a, .price-note a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.price-note { text-align: center; color: var(--muted); margin: 0 auto 2rem; max-width: 640px; }
.catalog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.bk { display: flex; flex-direction: column; padding: 1rem; text-align: center; }
.bk-cover { display: block; aspect-ratio: 1 / 1; margin-bottom: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.bk-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bk .tag { align-self: center; }
.bk h3 { font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.bk p { font-size: .88rem; margin-top: .35rem; }
.bk .price { margin-top: .5rem; font-weight: 800; color: var(--accent); }
.bk-link { margin-top: auto; padding-top: .8rem; font-weight: 700; color: var(--accent); }
.bk-link:hover { text-decoration: underline; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* founder & partner */
.people { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; }
.person { background: var(--lilac); padding: 2.25rem; }
.person h3 { font-size: 1.6rem; margin-bottom: .15rem; }
.person .role { color: var(--accent); font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }
.person p { color: var(--ink); margin-bottom: .8rem; }
.person ul { margin: .4rem 0 1rem 1.2rem; color: var(--muted); }
.person li { margin: .3rem 0; }

@media (max-width: 1000px) { .catalog { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } .catalog { grid-template-columns: repeat(2, 1fr); } .person { padding: 1.5rem; } }
@media (max-width: 400px) { .catalog { gap: .75rem; } .bk { padding: .7rem; } }


/* hero carousel */
.slider { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--sky); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide picture, .slide img { display: block; width: 100%; height: 100%; }
.slide img { object-fit: contain; }
.slider-btn { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border: 2px solid var(--accent); border-radius: 50%; background: #fff; color: var(--accent); cursor: pointer; box-shadow: 0 3px 10px rgba(20,33,61,.2); transition: background .2s, color .2s; }
.slider-btn:hover { background: var(--accent); color: #fff; }
.slider-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.slider-prev { left: .75rem; }
.slider-next { right: .75rem; }
.slider-dots { position: absolute; left: 50%; bottom: .35rem; z-index: 3; display: flex; transform: translateX(-50%); }
.slider-dot { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.slider-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.85); border: 2px solid var(--accent); transition: background .2s, transform .2s; }
.slider-dot.is-active::before { background: var(--accent); transform: scale(1.2); }
@media (min-width: 601px) { .slider { aspect-ratio: 2079 / 756; } }
@media (min-width: 1001px) { .slider { aspect-ratio: 2079 / 756; } }
.hero-card { position: relative; }
.hero-card .eyebrow { padding-right: 3rem; }
.hero-card[hidden] { display: none; }
.card-close { position: absolute; top: .6rem; right: .6rem; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--accent); border-radius: 50%; background: var(--lilac); color: var(--accent); cursor: pointer; transition: background .2s, color .2s; }
.card-close:hover { background: var(--accent); color: #fff; }
.card-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
@media (min-width: 1001px) { .hero-card { position: absolute; } .hero-card .card-close { top: .75rem; right: .75rem; } }

/* header cart */
.logo { order: 1; }
.nav { order: 2; }
.cart-btn { order: 4; position: relative; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .9rem; border: 2px solid var(--accent); border-radius: 999px; background: var(--lilac); color: var(--accent); font-weight: 700; transition: background .2s, color .2s; }
.cart-btn:hover { background: var(--accent); color: #fff; }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: #fff; color: var(--accent); font-size: .8rem; font-weight: 800; border: 1px solid var(--accent); }
.cart-btn.has-items .cart-count { background: var(--accent); color: #fff; }
.burger { order: 5; }
@media (max-width: 900px) { .lang-btn { margin-inline-start: auto; margin-inline-end: .5rem; } .cart-btn { margin-inline-end: .6rem; } }
@media (max-width: 420px) { .cart-label { display: none; } .cart-btn { padding: .4rem .6rem; } }

/* book search / filter */
.book-tools { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; max-width: 760px; margin: 0 auto 1rem; }
.field { margin-bottom: 1rem; }
.book-tools .field { margin-bottom: 0; }
.field label { display: block; margin-bottom: .3rem; font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: .65rem .9rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.search-box { position: relative; }
.search-box input { padding-right: 3rem; }
.clear { position: absolute; top: 50%; right: .4rem; width: 38px; height: 38px; margin-top: -19px; border: 0; border-radius: 50%; background: var(--lilac); color: var(--accent); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.clear[hidden] { display: none; }
.book-count { text-align: center; color: var(--muted); margin-bottom: 1.5rem; }
.book-empty { text-align: center; color: var(--muted); margin: 2rem 0; }
.linklike { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.bk[hidden] { display: none; }
.bk .desc { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.bk .price { margin: .6rem 0 .2rem; font-size: 1.2rem; }
.bk .price small { font-size: .72rem; font-weight: 700; color: var(--muted); }
.bk .btn { margin-top: auto; width: 100%; min-height: 44px; }
.bk .price + .btn { margin-top: .6rem; }
.bk-link { display: block; padding-top: .8rem; }
.bk-cover + .tag { margin-top: 0; }

/* cart + order */
.cart-wrap { max-width: 820px; margin-inline: auto; }
.cart-empty { text-align: center; }
.cart-empty a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.cart-list { list-style: none; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto auto; gap: .5rem 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.ci-info strong { display: block; line-height: 1.3; }
.ci-info span { color: var(--muted); font-size: .9rem; }
.qty { display: inline-flex; align-items: center; gap: .4rem; }
.qty button, .ci-remove { min-width: 44px; min-height: 44px; border: 2px solid var(--accent); border-radius: 10px; background: #fff; color: var(--accent); font-weight: 800; font-size: 1.1rem; cursor: pointer; }
.qty button:hover, .ci-remove:hover { background: var(--accent); color: #fff; }
.qty span { min-width: 2ch; text-align: center; font-weight: 700; }
.ci-total { font-weight: 800; color: var(--accent); text-align: end; }
.ci-remove { grid-column: 4; font-size: .85rem; padding: 0 .7rem; }
.cart-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 1rem 0; font-size: 1.1rem; }
.cart-total p { color: var(--ink); margin: 0; }
.cart-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.order-form { margin-top: 1.5rem; }
.order-form h3 { margin-bottom: 1rem; }
.order-summary { margin-bottom: 1.25rem; padding: 1rem; border-radius: 10px; background: var(--sun); }
.order-summary ul { list-style: none; margin-bottom: .5rem; }
.order-summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.order-summary .sum { display: flex; justify-content: space-between; font-weight: 800; border-top: 1px solid #f2dd96; padding-top: .5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pay { margin: .5rem 0 1rem; color: var(--ink); }
.form-error { margin-bottom: 1rem; padding: .75rem 1rem; border-radius: 10px; background: var(--blush); border: 1px solid #f3b9c9; color: #8a1c3a; }
.form-error[hidden] { display: none; }
.order-result { margin-top: 1.5rem; background: var(--mint); text-align: center; }
.order-result[hidden], .order-form[hidden], #cart-full[hidden], .cart-empty[hidden] { display: none; }
.order-result h3 { margin-bottom: .5rem; }
.order-result.is-error { background: var(--blush); }
.toast { position: fixed; left: 50%; bottom: 1rem; z-index: 30; max-width: calc(100% - 2rem); transform: translateX(-50%); display: flex; align-items: center; gap: .9rem; padding: .7rem 1.1rem; border: 2px solid var(--accent); border-radius: 999px; background: #fff; box-shadow: 0 8px 24px rgba(20,33,61,.2); font-weight: 600; }
.toast[hidden] { display: none; }
.toast a { color: var(--accent); font-weight: 800; text-decoration: underline; white-space: nowrap; }
.ar-name { display: inline-block; margin-left: .5rem; font-weight: 600; color: var(--muted); }

@media (max-width: 900px) { .book-tools { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .cart-item { grid-template-columns: 56px 1fr; }
  .qty, .ci-total, .ci-remove { grid-column: 2; justify-self: start; text-align: left; }
  .cart-actions .btn { flex: 1 1 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* language switch + order note */
.lang-btn { order: 3; min-height: 44px; display: inline-flex; align-items: center; padding: .3rem .85rem; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: .9rem; transition: border-color .2s, color .2s; }
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.pay-note { margin-bottom: 1rem; color: var(--muted); font-size: .92rem; }
.order-result pre { margin: 1rem 0 0; padding: 1rem; border-radius: 10px; background: #fff; text-align: start; white-space: pre-wrap; font: inherit; font-size: .92rem; }
@media (max-width: 420px) { .lang-btn { padding: .3rem .6rem; font-size: .85rem; } }

/* Arabic (right-to-left) */
html[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Sans Arabic", Arial, sans-serif; line-height: 1.8; }
html[lang="ar"] .eyebrow, html[lang="ar"] .kicker, html[lang="ar"] .value strong, html[lang="ar"] .hero h1, html[lang="ar"] .tag, html[lang="ar"] .person .role { letter-spacing: 0; text-transform: none; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.45; }
html[dir="rtl"] .ticks li { padding-left: 0; padding-right: 1.7rem; }
html[dir="rtl"] .ticks li::before { left: auto; right: 0; }
html[dir="rtl"] .slider-prev { left: auto; right: .75rem; }
html[dir="rtl"] .slider-next { right: auto; left: .75rem; }
html[dir="rtl"] .slider-btn svg { transform: scaleX(-1); }
html[dir="rtl"] .card-close { right: auto; left: .6rem; }
html[dir="rtl"] .hero-card .eyebrow { padding-right: 0; padding-left: 3rem; }
html[dir="rtl"] .clear { right: auto; left: .4rem; }
html[dir="rtl"] .search-box input { padding-right: .9rem; padding-left: 3rem; }
@media (min-width: 1001px) {
  html[dir="rtl"] .hero-card .card-close { right: auto; left: .75rem; }
}


/* header polish: brand lockup, language pill, cart button */
.header { box-shadow: 0 2px 14px rgba(20,33,61,.06); }
.logo { display: flex; align-items: center; gap: .8rem; }
.brand-text { display: none; flex-direction: column; justify-content: center; line-height: 1.15; padding-inline-start: .8rem; border-inline-start: 2px solid var(--line); }
.brand-text strong { font-size: 1.2rem; font-weight: 800; letter-spacing: .08em; color: var(--accent); }
.brand-text small { font-size: .72rem; font-weight: 600; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
html[lang="ar"] .brand-text strong, html[lang="ar"] .brand-text small { letter-spacing: 0; }
@media (min-width: 1201px) { .brand-text { display: flex; } .nav { gap: 1.15rem; } }
.lang-btn { gap: .4rem; }
.lang-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cart-btn { gap: .5rem; padding: .4rem 1rem .4rem .85rem; border: 2px solid var(--accent); background: #fff; color: var(--accent); box-shadow: 0 2px 8px rgba(143,56,140,.18); transition: background .2s, color .2s, box-shadow .2s, transform .2s; }
.cart-btn:hover { background: var(--lilac); color: var(--accent); box-shadow: 0 4px 12px rgba(143,56,140,.28); transform: translateY(-1px); }
.cart-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cart-btn svg { width: 24px; height: 24px; stroke-width: 2.1; }
.cart-btn .cart-count { display: none; position: absolute; top: -9px; inset-inline-end: -9px; min-width: 24px; height: 24px; padding: 0 6px; place-items: center; border: 2px solid #fff; border-radius: 999px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 800; line-height: 1; box-shadow: 0 2px 6px rgba(20,33,61,.25); }
.cart-btn.has-items .cart-count { display: inline-grid; }
@media (max-width: 520px) { .cart-label { display: none; } .cart-btn { width: 46px; height: 46px; padding: 0; justify-content: center; } }

/* WordPress: keep the sticky header below the admin bar when logged in */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }
