﻿/* Qaro2a brand identity v1.0 — loaded after every other stylesheet.
   Core palette: Qaro2a Blue (mark, headings, buttons, links), Deep Navy (text, dark backgrounds), Paper Beige (secondary background), White (base).
   Branch colours: Bookstore green #70B802 (dark #518601 for text), Podcast gold #E8AC00, Publishing burgundy #670E30.
   Type: Readex Pro for headlines, IBM Plex Sans Arabic for body and captions. */
:root {
    --brand-blue: #0270B8;
    --brand-navy: #00346E;
    --brand-beige: #F7F3EB;
    --brand-green: #70B802;
    --brand-green-dark: #518601;
    --brand-gold: #E8AC00;
    --brand-gold-dark: #9C7300;
    --brand-burgundy: #670E30;
    --brand-text: #33475f;
    --brand-muted: #5a6b82;
}

html, body { background: #fff; }

body {
    --heading-font: var(--font-heading);
    --heading-font-weight: 600;
    --heading-color: var(--brand-navy);
    --bs-body-color: var(--brand-text);
    --bs-body-color-rgb: 51, 71, 95;
    --bs-primary: var(--brand-blue);
    --bs-primary-rgb: 2, 112, 184;
    --bs-link-color: var(--brand-blue);
    --bs-link-color-rgb: 2, 112, 184;
    --bs-link-hover-color: var(--brand-navy);
    --bs-link-hover-color-rgb: 0, 52, 110;
    --swiper-theme-color: var(--brand-blue);
    color: var(--brand-text);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--brand-navy);
}

.text-muted { color: var(--brand-muted) !important; }
::selection { background: rgba(2, 112, 184, .22); color: var(--brand-navy); }
:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }

/* primary buttons: blue, navy on hover */
.btn-primary, .btn-primary:disabled {
    --bs-btn-bg: var(--brand-blue); --bs-btn-border-color: var(--brand-blue); --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--brand-navy); --bs-btn-hover-border-color: var(--brand-navy); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--brand-navy); --bs-btn-active-border-color: var(--brand-navy);
}
.btn-outline-primary {
    --bs-btn-color: var(--brand-blue); --bs-btn-border-color: var(--brand-blue);
    --bs-btn-hover-bg: var(--brand-blue); --bs-btn-hover-border-color: var(--brand-blue); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--brand-navy); --bs-btn-active-border-color: var(--brand-navy);
}
.form-control:focus, .form-select:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 .2rem rgba(2, 112, 184, .18); }
.form-check-input:checked { background-color: var(--brand-blue); border-color: var(--brand-blue); }

/* header / footer */
.footer-bg { background-image: none !important; background-color: var(--brand-navy); }
.footer-logo { display: block; width: 11rem; max-width: 70%; height: auto; margin-bottom: 1rem; }
.footer-heading { font-family: var(--font-heading); font-weight: 600; }

/* shop = Bookstore branch: green accents (light shades for backgrounds, dark shades for text) */
.product-card .shop-card-badge { background: #e7f5cf; color: var(--brand-green-dark); }
.product-card .shop-card-price, .shop-card-price { color: var(--brand-navy); }
.product-card .shop-card-author-chip { background: var(--brand-beige); color: var(--brand-navy); }

/* publishing branch: burgundy on the Publish page */
.pub-drop:hover, .pub-drop.is-over { border-color: var(--brand-burgundy); }
.pub-drop__title { color: var(--brand-burgundy); }

/* the old template watermarks (previous logo) are not used any more: plain Paper Beige to navy fade behind the About section */
.home-about-section { background-image: linear-gradient(180deg, #ffffff 0%, var(--brand-beige) 78%, rgba(0, 52, 110, .12) 100%) !important; }
.pd__cta:hover:not(.pd__cta--off) { background: var(--brand-navy); }

/* add-to-cart: white icon, label and animated cart on the blue button (navy while hovering / adding) */
.product-card .shop-card-actions .button.shop-cart-animate,
.shop-products-row .product-card .shop-card-actions .button.shop-cart-animate {
    background: var(--brand-blue); color: #fff; --text: #fff; --cart: #fff; --tick: var(--brand-navy);
}
.product-card .shop-card-actions .button.shop-cart-animate:hover,
.product-card .shop-card-actions .button.shop-cart-animate:focus-visible,
.product-card .shop-card-actions .button.shop-cart-animate.loading,
.shop-products-row .product-card .shop-card-actions .button.shop-cart-animate:hover:not(.loading),
.shop-products-row .product-card .shop-card-actions .button.shop-cart-animate.loading {
    background: var(--brand-navy); color: #fff; --text: #fff; --cart: #fff; --tick: var(--brand-navy);
}
.shop-cart-idle, .shop-cart-label, .shop-cart-plus-icon { color: #fff; }

/* the basket fills white while adding, so the tick is drawn in the button colour (navy) to stay visible */
.shop-products-row .product-card .shop-card-actions .button.shop-cart-animate.loading,
.product-card .shop-card-actions .button.shop-cart-animate.loading { --tick: var(--brand-navy); }


/* ================= branch palettes (brand guide p.6-9) =================
   Each page family uses its branch colour for buttons, accents and small elements. Dark shades carry text,
   light shades carry backgrounds; the logo and the core blue/navy headings stay as they are. */
/* pages without a branch (account, register, login, about...) use the core blue; without this the empty data-branch left every --b-* variable undefined (invisible check marks, unstyled buttons) */
body {
    --b-solid: var(--brand-blue); --b-solid-hover: #025a94; --b-on-solid: #fff; --b-text: var(--brand-blue); --b-tint: #e3f0f9; --b-accent: var(--brand-blue); --b-line: #bcd8ec;
}
body[data-branch="shop"] {      /* Bookstore green #70B802 */
    --b-solid: #518601; --b-solid-hover: #426C01; --b-on-solid: #fff; --b-text: #518601; --b-tint: #E7F5CF; --b-accent: #70B802; --b-line: #cfe6a3;
}
body[data-branch="publish"] {   /* Publishing burgundy #670E30 */
    --b-solid: #670E30; --b-solid-hover: #510B26; --b-on-solid: #fff; --b-text: #670E30; --b-tint: #F6E3EA; --b-accent: #AA174F; --b-line: #e4bccb;
}
body[data-branch="podcast"] {   /* Podcast gold #E8AC00 (dark #9C7300 for text on light) */
    --b-solid: #E8AC00; --b-solid-hover: #FFBE02; --b-on-solid: #00346E; --b-text: #9C7300; --b-tint: #FFF4D1; --b-accent: #E8AC00; --b-line: #f3d98a;
}
body[data-branch] {
    --bs-link-color: var(--b-text); --bs-link-hover-color: var(--b-solid-hover);
    --swiper-theme-color: var(--b-accent);
}
body[data-branch] .btn-primary, body[data-branch] .btn-primary:disabled {
    --bs-btn-bg: var(--b-solid); --bs-btn-border-color: var(--b-solid); --bs-btn-color: var(--b-on-solid);
    --bs-btn-hover-bg: var(--b-solid-hover); --bs-btn-hover-border-color: var(--b-solid-hover); --bs-btn-hover-color: var(--b-on-solid);
    --bs-btn-active-bg: var(--b-solid-hover); --bs-btn-active-border-color: var(--b-solid-hover); --bs-btn-active-color: var(--b-on-solid);
}
body[data-branch] .btn-outline-primary {
    --bs-btn-color: var(--b-text); --bs-btn-border-color: var(--b-solid);
    --bs-btn-hover-bg: var(--b-solid); --bs-btn-hover-border-color: var(--b-solid); --bs-btn-hover-color: var(--b-on-solid);
    --bs-btn-active-bg: var(--b-solid-hover); --bs-btn-active-border-color: var(--b-solid-hover); --bs-btn-active-color: var(--b-on-solid);
}
body[data-branch] .form-control:focus, body[data-branch] .form-select:focus { border-color: var(--b-accent); box-shadow: 0 0 0 .2rem rgba(112, 184, 2, .25); }
body[data-branch] .form-control:focus, body[data-branch] .form-select:focus { border-color: var(--b-accent); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--b-accent) 25%, transparent); }
body[data-branch] .form-check-input:checked { background-color: var(--b-solid); border-color: var(--b-solid); }
body[data-branch] :focus-visible { outline-color: var(--b-accent); }

/* ---- shop (green) ---- */
body[data-branch="shop"] .shop-products-row .product-card .shop-card-actions .button.shop-cart-animate,
body[data-branch="shop"] .product-card .shop-card-actions .button.shop-cart-animate { background: var(--b-solid); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 10px -3px rgba(81, 134, 1, .5); }
body[data-branch="shop"] .product-card .shop-card-actions .button.shop-cart-animate:hover,
body[data-branch="shop"] .product-card .shop-card-actions .button.shop-cart-animate:focus-visible,
body[data-branch="shop"] .product-card .shop-card-actions .button.shop-cart-animate.loading,
body[data-branch="shop"] .shop-products-row .product-card .shop-card-actions .button.shop-cart-animate:hover:not(.loading),
body[data-branch="shop"] .shop-products-row .product-card .shop-card-actions .button.shop-cart-animate.loading { background: var(--b-solid-hover); --tick: var(--b-solid-hover); }
body[data-branch="shop"] .product-card .shop-card-badge { background: var(--b-tint); color: var(--b-solid-hover); }
body[data-branch="shop"] .product-card .shop-card-author-chip { background: var(--b-tint); color: var(--b-solid-hover); }
body[data-branch="shop"] .product-card .shop-card-author-chip:hover, body[data-branch="shop"] .product-card .shop-card-category-chip:hover { background: var(--b-solid); color: #fff; }
body[data-branch="shop"] .product-card .shop-card-title-link:hover { color: var(--b-solid); }
body[data-branch="shop"] .price-range__fill { background: linear-gradient(90deg, #70B802, #518601); }
body[data-branch="shop"] .shop-filter-sidebar.card { border-color: var(--b-line); }
.shop-toprated-switch { display: flex; align-items: center; gap: .6rem; padding-inline-start: 0; margin: 0; }
.shop-toprated-switch .form-check-input { float: none; margin: 0; width: 2.6rem; height: 1.4rem; cursor: pointer; }
.shop-toprated-switch .form-check-label { font-weight: 600; color: var(--brand-navy); cursor: pointer; }
body[data-branch="shop"] .pd__cta, body[data-branch="shop"] .checkout-place { background: var(--b-solid); }
body[data-branch="shop"] .pd__cta:hover:not(.pd__cta--off), body[data-branch="shop"] .checkout-place:hover { background: var(--b-solid-hover); }
body[data-branch="shop"] .pd__eyebrow, body[data-branch="shop"] .pd__crumbs a { color: var(--b-text); }
body[data-branch="shop"] .pd__eyebrow { background: var(--b-tint); }

/* ---- publish (burgundy) ---- */
body[data-branch="publish"] h2 { color: var(--b-solid); }
body[data-branch="publish"] .pub-drop { border-color: var(--b-line); background: linear-gradient(180deg, #fff 0%, var(--b-tint) 100%); }
body[data-branch="publish"] .pub-drop:hover, body[data-branch="publish"] .pub-drop.is-over { border-color: var(--b-solid); box-shadow: 0 10px 28px -12px rgba(103, 14, 48, .35); }
body[data-branch="publish"] .pub-drop.is-done { border-color: var(--b-solid); background: linear-gradient(180deg, #fff 0%, var(--b-tint) 100%); }
body[data-branch="publish"] .pub-drop__title, body[data-branch="publish"] .pub-file__status { color: var(--b-solid); }
body[data-branch="publish"] .pub-file__bar i { background: var(--b-accent); }
body[data-branch="publish"] .pub-ball { color: var(--b-solid); border-color: var(--b-line); }
body[data-branch="publish"] .pub-hoop rect, body[data-branch="publish"] .pub-hoop ellipse, body[data-branch="publish"] .pub-hoop path { stroke: var(--b-solid); }
body[data-branch="publish"] .pub-file__remove:hover, body[data-branch="publish"] .pub-file__remove:focus-visible { background: var(--b-solid); color: #fff; }

/* ---- podcast (gold) ---- */
body[data-branch="podcast"] .podcast-page h1 { position: relative; display: inline-block; padding-bottom: .6rem; color: #fff; }
body[data-branch="podcast"] .podcast-page h1::after { content: ""; position: absolute; inset-inline: 22%; bottom: 0; height: 4px; border-radius: 4px; background: var(--b-solid); }
body[data-branch="podcast"] .podcast-page p { color: #FFCB36; }
body[data-branch="podcast"] .podcast-page .ratio { box-shadow: 0 0 0 2px transparent, 0 14px 30px -14px rgba(0, 0, 0, .6) !important; transition: box-shadow .25s ease, transform .25s ease; }
body[data-branch="podcast"] .podcast-page .ratio:hover { box-shadow: 0 0 0 3px var(--b-solid), 0 18px 34px -14px rgba(0, 0, 0, .6) !important; transform: translateY(-3px); }
body[data-branch="shop"] .price-range__track input[type="range"]::-webkit-slider-thumb { background: var(--b-solid); }
body[data-branch="shop"] .price-range__track input[type="range"]::-moz-range-thumb { background: var(--b-solid); }
body[data-branch="shop"] .shop-filter-toggle__icon { background: var(--b-solid) !important; }
body[data-branch="shop"] .price-range__values b { color: var(--b-text); }


/* ---- quantity stepper on the cards: price | - 1 + | cart (the cart button stays a circle, no hover growth) ---- */
.product-card .shop-card-actions { gap: 8px; flex-wrap: nowrap; }
.product-card .shop-card-actions .shop-card-price { flex: 0 1 auto; min-width: 0; white-space: nowrap; }
.shop-qty { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--b-line, #d9d0bc); border-radius: 999px; background: #fff; direction: ltr; flex: 0 0 auto; }
.shop-qty__btn { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: var(--b-tint, #e8e1d2); color: var(--brand-navy); font-size: 1.05rem; font-weight: 700; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease, transform .15s ease; }
.shop-qty__btn:hover:not(:disabled), .shop-qty__btn:focus-visible { background: var(--b-solid, #0270b8); color: var(--b-on-solid, #fff); }
.shop-qty__btn:active:not(:disabled) { transform: scale(.88); }
.shop-qty__btn:disabled { opacity: .35; cursor: not-allowed; }
.shop-qty__val { min-width: 20px; text-align: center; font-weight: 700; font-size: .9rem; color: var(--brand-navy); font-variant-numeric: tabular-nums; }
body .shop-products-row .product-card .shop-card-actions .button.shop-cart-animate,
body .shop-products-row .product-card .shop-card-actions .button.shop-cart-animate:hover,
body .shop-products-row .product-card .shop-card-actions .button.shop-cart-animate:focus-visible,
body .shop-products-row .product-card .shop-card-actions .button.shop-cart-animate.loading { width: 50px !important; min-width: 50px !important; height: 45px !important; min-height: 45px !important; }
body .shop-products-row .product-card .shop-card-actions .button.shop-cart-animate:hover:not(.loading) .shop-cart-idle,
body .shop-products-row .product-card .shop-card-actions .button.shop-cart-animate:focus-visible:not(.loading) .shop-cart-idle { opacity: 1 !important; transform: none !important; }
body .shop-products-row .product-card .shop-card-actions .button.shop-cart-animate:hover:not(.loading) span.shop-cart-label,
body .shop-products-row .product-card .shop-card-actions .button.shop-cart-animate:focus-visible:not(.loading) span.shop-cart-label { opacity: 0 !important; }

/* the cart button is an icon-only circle: its text label never shows, not even while the add animation runs */
body .shop-products-row .product-card .shop-card-actions .button.shop-cart-animate span.shop-cart-label,
body .shop-products-row .product-card .shop-card-actions .button.shop-cart-animate:hover span.shop-cart-label,
body .shop-products-row .product-card .shop-card-actions .button.shop-cart-animate.loading span.shop-cart-label,
body .product-card .shop-card-actions .button.shop-cart-animate.loading span.shop-cart-label { opacity: 0 !important; visibility: hidden !important; }

/* floating cart, bottom-left */
.cart-fab { position: fixed; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 1090; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--brand-navy); font-size: 1.5rem; text-decoration: none; box-shadow: 0 12px 26px -8px rgba(0, 52, 110, .5), 0 2px 8px rgba(0, 52, 110, .16); transition: transform .2s ease, color .2s ease, box-shadow .2s ease; }
.cart-fab:hover, .cart-fab:focus-visible { transform: translateY(-3px); color: var(--brand-blue); box-shadow: 0 16px 30px -8px rgba(0, 52, 110, .55), 0 2px 8px rgba(0, 52, 110, .2); }
.cart-fab i { line-height: 1; }
.cart-fab .site-header__badge { top: -3px; inset-inline-end: -3px; }
@media (max-width: 575.98px) { .cart-fab { left: 12px; width: 52px; height: 52px; font-size: 1.4rem; } }

/* out of stock: a red delivery truck where the quantity stepper normally sits */
.shop-oos-truck-wrap { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 46px; color: #d62839; }
.shop-oos-truck { display: block; width: 100%; height: auto; filter: drop-shadow(0 2px 3px rgba(214, 40, 57, .25)); }
.product-card .shop-card-actions--out-of-stock { gap: 8px; flex-wrap: nowrap; }
.product-card .shop-card-actions--out-of-stock .shop-out-of-stock-btn { flex: 0 1 auto; min-width: 0; padding-inline: .9rem; white-space: nowrap; }
.product-card .shop-card-actions--out-of-stock { min-height: 45px; align-items: center; }

/* the minus turns into a red x (remove from cart) when the book is in the cart and the number is 1 */
.shop-qty__btn.is-remove { background: #fde8e6; color: #c0392b; font-size: 1.25rem; }
.shop-qty__btn.is-remove:hover:not(:disabled), .shop-qty__btn.is-remove:focus-visible { background: #c0392b; color: #fff; }

/* ---- mobile (<= 860px, the width where the header turns into the burger) ---- */
@media (max-width: 860px) {
    /* the bar is a white pill from the first pixel, so the dark logo is visible over the pale hero */
    .site-header { --bar-bg: #fff; --bar-fg: var(--sh-navy); --bar-shadow: 0 10px 30px rgba(10, 10, 11, .16); --logo-light: 0; --logo-dark: 1; --shoulder: 1; }

    /* home: the two intro texts give way to the page links */
    .home-brand-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .home-brand-tagline { display: none; }
    .home-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 auto; max-width: 28rem; }
}
.home-quick { display: none; }
@media (max-width: 860px) {
    .home-quick { display: grid; }
    .home-quick__item { --q: var(--brand-blue); --q-bg: #e3f0f9; display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.6rem; padding: .7rem 1rem; border-radius: 1rem; border: 1px solid #cdd7e3; border: 1px solid color-mix(in srgb, var(--q) 28%, #fff); background: var(--q-bg); color: var(--q); font-weight: 700; font-size: 1.02rem; text-decoration: none; box-shadow: 0 6px 16px -10px rgba(0, 52, 110, .35); box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--q) 70%, transparent); transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
    .home-quick__item i { font-size: 1.25rem; line-height: 1; }
    .home-quick__item:hover, .home-quick__item:focus-visible { background: var(--q); color: #fff; transform: translateY(-2px); }
    .home-quick__item:active { transform: scale(.97); }
    .home-quick__item--wide { grid-column: 1 / -1; }
    .home-quick__item[data-tone="shop"] { --q: var(--brand-green-dark); --q-bg: #E7F5CF; }
    .home-quick__item[data-tone="podcast"] { --q: var(--brand-gold-dark); --q-bg: #FFF4D1; }
    .home-quick__item[data-tone="publish"] { --q: var(--brand-burgundy); --q-bg: #F6E3EA; }
    .home-quick__item[data-tone="about"], .home-quick__item[data-tone="blog"] { --q: var(--brand-navy); --q-bg: #e3edf7; }
}

/* phones: the price stacks (number over EGP) so price + stepper + cart button always fit inside the card */
@media (max-width: 575.98px) {
    body .product-card .shop-card-actions .shop-card-price { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.05; flex: 0 0 auto; min-width: 0; font-size: 1.15rem; }
    body .product-card .shop-card-actions .shop-card-price .shop-card-currency { font-size: .62rem; margin: 0; }
}

/* ---- shop pager: previous / page numbers / next page ---- */
#shopGrid { scroll-margin-top: 6rem; }
.shop-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; margin: 2.2rem 0 .5rem; }
.shop-pager__nums { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.shop-pager__num { display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .5rem; border-radius: 50%; border: 1px solid var(--b-line); background: #fff; color: var(--brand-navy); font-weight: 700; text-decoration: none; transition: background .2s ease, color .2s ease, transform .15s ease; }
a.shop-pager__num:hover, a.shop-pager__num:focus-visible { background: var(--b-tint); color: var(--b-text); transform: translateY(-2px); }
.shop-pager__num.is-current { background: var(--b-solid); border-color: var(--b-solid); color: var(--b-on-solid); }
.shop-pager__gap { color: var(--brand-muted); padding: 0 .1rem; }
.shop-pager__step { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: .45rem 1.1rem; border-radius: 999px; background: var(--b-solid); color: var(--b-on-solid); font-weight: 700; text-decoration: none; transition: background .2s ease, transform .15s ease; }
.shop-pager__step i { font-size: 1.1rem; line-height: 1; }
.shop-pager__step:hover, .shop-pager__step:focus-visible { background: var(--b-solid-hover); color: var(--b-on-solid); transform: translateY(-2px); }
@media (max-width: 575.98px) {
    .shop-pager { gap: .6rem; }
    .shop-pager__nums { order: -1; width: 100%; }
    .shop-pager__step span { font-size: .95rem; }
}

.shop-result-count { display: inline-block; padding: .25rem .9rem; border-radius: 999px; background: var(--b-tint); color: var(--b-text); font-weight: 700; }

/* ---- star ratings ---- */
.rate { display: flex; align-items: center; gap: .45rem; margin-top: .4rem; }
.rate__stars { display: inline-flex; direction: ltr; gap: 1px; }
.rate__star { border: 0; background: none; padding: 1px; font-size: 1.05rem; line-height: 1; color: var(--brand-gold); cursor: pointer; transition: transform .12s ease; }
.rate__star:hover { transform: scale(1.18); }
.rate__star:focus-visible { outline: 2px solid var(--b-accent, var(--brand-blue)); outline-offset: 2px; border-radius: 4px; }
.rate--mine .rate__star { color: #d99700; }
.rate__text { font-size: .8rem; color: var(--brand-muted); font-variant-numeric: tabular-nums; }
.pd__author + .rate { margin-top: .6rem; }
.pd__author + .rate .rate__star { font-size: 1.3rem; }
.pd__author + .rate .rate__text { font-size: .95rem; }
.rate__text { direction: ltr; unicode-bidi: isolate; }

/* ---- install-the-app SweetAlert (phones) ---- */
.qaro-install-popup { border-radius: 26px !important; padding-bottom: 1.1rem !important; width: min(92vw, 26rem) !important; }
.qaro-install-icon { border-radius: 22px !important; box-shadow: 0 10px 24px -8px rgba(0, 52, 110, .5); }
.qaro-install-popup .swal2-title { font-size: 1.35rem; color: var(--brand-navy); }
.qaro-install-popup .swal2-html-container, .qaro-install-text { font-size: 1rem; color: var(--brand-text); }
.qaro-install-steps { list-style: none; margin: .4rem 0 0; padding: 0; text-align: start; }
.qaro-install-steps li { display: flex; align-items: center; gap: .6rem; padding: .5rem .2rem; font-weight: 600; }
.qaro-install-steps i { font-size: 1.35rem; color: var(--brand-blue); }

/* footer: install-the-app button */
.footer-install-btn { display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem; padding: .5rem 1.1rem; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: transparent; color: #fff; font-weight: 700; font-size: .95rem; cursor: pointer; transition: background .2s ease, color .2s ease, transform .15s ease; }
.footer-install-btn:hover, .footer-install-btn:focus-visible { background: #E8AC00; border-color: #E8AC00; color: #00346E; transform: translateY(-2px); }
.footer-install-btn[hidden] { display: none; }

/* ---- iPhone (notch / home bar): fixed buttons and the full-screen overlay respect the safe areas ---- */
body .video-overlay-toggle { right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
body .cart-fab { left: calc(18px + env(safe-area-inset-left, 0px)); }
body .video-overlay-screen { padding-top: calc(24px + env(safe-area-inset-top, 0px)); padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

/* iPhone zooms the whole page when an input under 16px gets focus: keep form fields at 16px on phones */
@media (max-width: 860px) {
    body .php-email-form input, body .php-email-form textarea, body .php-email-form select, body .php-email-form .form-control,
    body .form-control, body .form-select { font-size: 16px !important; }
}

/* ---- phone navigation: bottom tab bar (replaces the hamburger on phones) ---- */
.mobile-tabbar { display: none; }
@media (max-width: 860px) {
    .mobile-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: flex; align-items: stretch; justify-content: space-around; gap: 2px;
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--brand-navy, #00346E); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px rgba(0, 30, 70, .35); }
    .mobile-tabbar__item { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px 4px; border: 0; background: transparent;
        color: rgba(255, 255, 255, .78); font: inherit; font-size: .68rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .2s ease, transform .15s ease; }
    .mobile-tabbar__item i { font-size: 1.4rem; line-height: 1; }
    .mobile-tabbar__item:active { transform: scale(.92); }
    .mobile-tabbar__item.active { color: var(--brand-gold, #E8AC00); }
    .mobile-tabbar__item.active::before { content: ""; position: absolute; top: -8px; left: 50%; width: 30px; height: 3px; margin-left: -15px; border-radius: 0 0 4px 4px; background: var(--brand-gold, #E8AC00); }
    .mobile-tabbar__badge { position: absolute; top: 0; left: calc(50% + 4px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--brand-gold, #E8AC00); color: var(--brand-navy, #00346E); font-size: .66rem; font-weight: 800; line-height: 17px; text-align: center; }
    .mobile-tabbar__badge:empty { display: none; }
    body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
    body .cart-fab { display: none !important; }
    body .video-overlay-toggle { bottom: calc(94px + env(safe-area-inset-bottom, 0px)); }
    .sh-lock .mobile-tabbar { display: none; }
    body .site-header__toggle { display: none; }
    body .site-header.is-open .site-header__toggle { display: inline-flex; }
}
