/*
 * AnNoor storefront design system.
 *
 * Built from the approved reference screens (1024px desktop artboard, 390px phone). Sizes are the
 * reference's own: 13px body text, 32px utility bar, 2:1 product images, 5-up product grids.
 * Bootstrap 5 stays loaded only for its behaviour (offcanvas, modal, dropdown, collapse, carousel,
 * grid, utilities); everything visual is defined here. Logical properties throughout so RTL mirrors.
 *
 * Sections: 1 tokens  2 base  3 bootstrap compact overrides  4 buttons/forms  5 layout  6 header
 *           7 mobile nav  8 footer  9 product card  10 home  11 shared page parts
 */

/* ============================== 1. TOKENS ============================== */
:root {
  --ink: #0f2a43;           /* headings, strong text */
  --navy: #0a3b58;          /* utility bar, mobile header */
  --navy-deep: #08243a;     /* footer */
  --teal: #0b7f86;          /* primary action */
  --teal-dark: #086a71;
  --teal-soft: #e5f2f3;
  --gold: #e9b13c;
  --gold-deep: #c98f12;
  --orange: #f0960f;        /* discount badge */
  --red: #cf1f2e;           /* sale price */
  --green: #0b7a55;
  --text: #1c3248;
  --text-2: #5c6f80;        /* secondary text (4.9:1 on white) */
  --line: #e3e9ed;
  --line-2: #eef2f5;
  --surface: #f5f7f9;       /* strips, image wells */
  --white: #fff;

  --r-sm: 6px;
  --r: 8px;
  --r-lg: 10px;
  --r-xl: 14px;
  --shadow-card: 0 1px 3px rgba(15, 42, 67, 0.09), 0 0 0 1px rgba(15, 42, 67, 0.04);
  --shadow-pop: 0 8px 28px rgba(15, 42, 67, 0.16);

  --gutter: 20px;
  --max: 1240px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-ar: "Noto Sans Arabic", "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --nav-h: 56px;
}

/* ================================ 2. BASE ================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
body.annoor-body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: clip;
}
html[lang="ar"] body.annoor-body, html[lang="ar"] button, html[lang="ar"] input, html[lang="ar"] select { font-family: var(--font-ar); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: 24px; } h2 { font-size: 20px; } h3 { font-size: 16px; } h4 { font-size: 14px; } h5, h6 { font-size: 13px; }
p { margin: 0 0 0.75em; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }
img { max-width: 100%; height: auto; }
ul, ol { padding-inline-start: 1.2em; }
small, .small { font-size: 11.5px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.text-muted { color: var(--text-2) !important; }
.text-annoor { color: var(--teal-dark) !important; }
.fw-semibold { font-weight: 600 !important; } .fw-bold { font-weight: 700 !important; }
.visually-hidden-focusable:not(:focus):not(:focus-within) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[dir="rtl"] .an-flip { display: inline-block; transform: scaleX(-1); }

/* ================= 3. BOOTSTRAP: compact, on-brand overrides ================= */
.container { max-width: var(--max); padding-inline: var(--gutter); }
@media (max-width: 991.98px) { .container { padding-inline: 12px; } }
.row { --bs-gutter-x: 16px; --bs-gutter-y: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); --bs-card-border-color: var(--line); }
.badge { font-weight: 700; font-size: 10.5px; border-radius: 999px; padding: 3px 8px; }
.alert { border-radius: var(--r); font-size: 12.5px; padding: 10px 14px; border: 1px solid transparent; }
.alert-info { background: var(--teal-soft); border-color: #c3e0e2; color: var(--ink); }
.alert-warning { background: #fff6e0; border-color: #f2dc9a; color: #6b4a00; }
.alert-danger { background: #fdeceb; border-color: #f5c2c0; color: #8a1c14; }
.alert-success { background: #e6f5ee; border-color: #bfe3d3; color: #0b5a3f; }
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); font-size: 12.5px; padding: 6px; }
.dropdown-item { border-radius: var(--r-sm); padding: 7px 10px; color: var(--text); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--teal-soft); color: var(--ink); }
.offcanvas { font-size: 13px; }
.offcanvas-header { border-bottom: 1px solid var(--line); padding: 12px 16px; }
.offcanvas-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.modal-content { border: 0; border-radius: var(--r-xl); box-shadow: var(--shadow-pop); }
.pagination { gap: 4px; font-size: 12.5px; }
.page-link { border: 1px solid var(--line); border-radius: var(--r-sm) !important; color: var(--ink); padding: 5px 11px; }
.page-item.active .page-link { background: var(--teal); border-color: var(--teal); color: #fff; }
.breadcrumb { font-size: 12px; margin: 0 0 14px; --bs-breadcrumb-divider-color: var(--text-2); }
.breadcrumb a { color: var(--text-2); }
.accordion-item { border: 1px solid var(--line); border-radius: var(--r-lg) !important; overflow: hidden; margin-bottom: 8px; }
.accordion-button { font-size: 13px; font-weight: 600; color: var(--ink); padding: 12px 14px; }
.accordion-button:not(.collapsed) { background: var(--teal-soft); color: var(--ink); box-shadow: none; }
.toast { font-size: 12.5px; border-radius: var(--r); }
.table { font-size: 12.5px; --bs-table-bg: transparent; }
.btn-close:focus { box-shadow: none; }

/* ============================ 4. BUTTONS / FORMS ============================ */
.btn { font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.2; padding: 8px 14px; border-radius: var(--r); border-width: 1px; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn-sm { font-size: 12px; padding: 6px 11px; border-radius: var(--r-sm); }
.btn-lg { font-size: 14px; padding: 11px 20px; }
.btn-annoor, .an-btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-annoor:hover, .btn-annoor:focus, .an-btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-annoor:disabled, .btn-annoor.disabled { background: #b9c6cf; border-color: #b9c6cf; color: #fff; opacity: 1; }
.btn-outline-annoor { background: #fff; border: 1.5px solid var(--teal); color: var(--teal-dark); }
.btn-outline-annoor:hover, .btn-outline-annoor:focus { background: var(--teal); color: #fff; }
.an-btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.an-btn-gold:hover { background: #d99d27; border-color: #d99d27; color: var(--ink); }
.an-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.an-btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.an-btn-white { background: #fff; border-color: #fff; color: var(--ink); font-weight: 700; }
.an-btn-pill { border-radius: 999px; padding-inline: 18px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.form-control, .form-select { font-family: inherit; font-size: 13px; padding: 8px 11px; min-height: 36px; border: 1px solid #cfd9e0; border-radius: var(--r); color: var(--ink); background-color: #fff; }
.form-control-sm, .form-select-sm { min-height: 32px; font-size: 12.5px; padding: 5px 10px; border-radius: var(--r-sm); }
.form-control::placeholder { color: #8695a3; }
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11, 127, 134, 0.16); }
.form-check-input { width: 1.05em; height: 1.05em; border-color: #9fb0bd; }
.form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.form-check-label { font-size: 12.5px; }
.input-group-text { font-size: 12.5px; background: var(--surface); border-color: #cfd9e0; }
.an-chip { display: inline-block; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 1px 9px; font-size: 11px; font-weight: 700; }
.an-chip--ok { background: #e6f5ee; border-color: #bfe3d3; color: var(--green); }
.an-skel { background: linear-gradient(90deg, #eef2f5 25%, #f7f9fa 37%, #eef2f5 63%); background-size: 400% 100%; animation: an-shimmer 1.3s ease infinite; border-radius: var(--r); }
@keyframes an-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ============================== 5. LAYOUT ============================== */
.an-section { margin-top: 28px; }
.an-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.an-section__head h2 { font-size: 19px; margin: 0; }
.an-link-all { font-size: 12px; font-weight: 700; color: var(--teal-dark); white-space: nowrap; }
.an-link-all:hover { text-decoration: underline; }
.an-page { padding-block: 16px 8px; }
.an-page-title { font-size: 22px; margin-bottom: 4px; }
.an-card-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
@media (max-width: 991.98px) {
  .an-section { margin-top: 20px; }
  .an-section__head h2 { font-size: 17px; }
}

/* ============================ 6. HEADER (desktop) ============================ */
.an-header { position: sticky; top: -32px; z-index: 1030; background: #fff; box-shadow: 0 1px 0 var(--line), 0 2px 8px rgba(15, 42, 67, 0.04); }
.an-util { background: var(--navy); color: #fff; font-size: 12px; height: 32px; }
.an-util__inner { display: flex; align-items: center; justify-content: space-between; height: 32px; }
.an-util a, .an-util button, .an-util select { color: #fff; }
.an-util__group { display: flex; align-items: center; }
.an-util__item { display: inline-flex; align-items: center; gap: 6px; padding-inline: 14px; position: relative; font-weight: 500; white-space: nowrap; }
.an-util__item:first-child { padding-inline-start: 0; }
.an-util__item:last-child { padding-inline-end: 0; }
.an-util__item + .an-util__item::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; height: 12px; margin-top: -6px; border-inline-start: 1px solid rgba(255, 255, 255, 0.35); }
.an-util__item svg { width: 14px; height: 14px; flex-shrink: 0; }
.an-util select { width: auto; max-width: 120px; background: transparent; border: 0; font-size: 12px; padding: 0 14px 0 0; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; }
[dir="rtl"] .an-util select { padding: 0 0 0 14px; background-position: left 0 center; }
.an-util select option { color: var(--ink); }
.an-util .an-lang__btn { background: none; border: 0; color: #fff; font-size: 12px; padding: 0; font-weight: 500; opacity: 0.8; }
.an-util .an-lang__btn.is-active { opacity: 1; font-weight: 700; }
.an-util .an-lang__btn + .an-lang__btn { margin-inline-start: 8px; }
.an-lang { display: inline-flex; margin: 0; }

.an-main { height: 58px; }
.an-main__inner { display: flex; align-items: center; gap: 16px; height: 58px; }
.an-logo { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; color: var(--ink); margin: 0; }
.an-logo:hover { color: var(--ink); }
.an-logo img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.an-logo__text { display: flex; flex-direction: column; line-height: 1; }
.an-logo__name { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.an-logo__sub { font-size: 7.5px; letter-spacing: 0.32em; color: var(--text-2); font-weight: 600; margin-top: 3px; padding-inline-start: 1px; }
.an-browse__btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 0; border-radius: var(--r); background: #eef3f6; color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.an-browse__btn:hover { background: #e3ebf0; }
.an-browse__btn svg { width: 14px; height: 14px; }
.an-browse__menu { min-width: 540px; padding: 16px; columns: 2; column-gap: 24px; }
.an-browse__group { break-inside: avoid; display: flex; flex-direction: column; margin-bottom: 12px; }
.an-browse__group a { color: var(--text-2); font-size: 12.5px; padding: 3px 0; }
.an-browse__group a:hover { color: var(--teal-dark); }
.an-browse__root { color: var(--ink) !important; font-weight: 700; }

.an-search { display: flex; flex: 1 1 auto; max-width: 560px; height: 32px; position: relative; margin: 0; }
.an-search__field { position: relative; flex: 1; }
.an-search__input { width: 100%; height: 32px; padding: 0 12px 0 34px; border: 1px solid #cfd9e0; border-inline-end: 0; border-radius: var(--r) 0 0 var(--r); font-size: 12.5px; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a3b58' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-3.6-3.6'/%3E%3C/svg%3E") no-repeat 10px center; }
[dir="rtl"] .an-search__input { padding: 0 34px 0 12px; border-radius: 0 var(--r) var(--r) 0; border-inline-end: 1px solid #cfd9e0; border-inline-start: 0; background-position: right 10px center; }
.an-search__input:focus { outline: 0; border-color: var(--teal); }
.an-search__btn { width: 62px; border: 0; background: var(--teal); color: #fff; border-radius: 0 var(--r) var(--r) 0; display: grid; place-items: center; }
[dir="rtl"] .an-search__btn { border-radius: var(--r) 0 0 var(--r); }
.an-search__btn:hover { background: var(--teal-dark); }
.an-search__btn svg { width: 16px; height: 16px; }
.search-suggestions-dropdown { display: none; position: absolute; inset-inline: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); z-index: 1040; max-height: 70vh; overflow: auto; }
.search-suggestions-dropdown.is-open, .search-suggestions-dropdown:has(.search-suggestion-link) { display: block; }
.search-suggestion-link { display: flex; gap: 10px; align-items: center; padding: 8px 12px; color: var(--ink); font-size: 12.5px; }
.search-suggestion-link:hover { background: var(--teal-soft); }
.search-suggestion-link img { width: 36px; height: 36px; object-fit: cover; border-radius: var(--r-sm); }
.search-suggestions-loading { display: none; padding: 10px 12px; font-size: 12px; color: var(--text-2); }
.search-suggestions-loading.htmx-request { display: flex; gap: 8px; align-items: center; }
.search-suggestions-spinner { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: an-spin 0.7s linear infinite; }
@keyframes an-spin { to { transform: rotate(360deg); } }

.an-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.an-action { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; color: var(--ink); font-size: 12px; font-weight: 700; background: none; border: 0; border-radius: var(--r); white-space: nowrap; }
.an-action:hover { background: var(--surface); color: var(--ink); }
.an-action svg { width: 20px; height: 20px; flex-shrink: 0; }
.an-action__badge-wrap { position: absolute; top: -1px; inset-inline-start: 22px; }
.an-badge, .jm-wish-badge, .badge-count { display: inline-grid; place-items: center; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 9.5px; font-weight: 700; line-height: 1; }
.an-nav { border-top: 1px solid var(--line-2); background: #fff; }
.an-nav__list { display: flex; align-items: stretch; gap: 0; list-style: none; margin: 0; padding: 0; height: 36px; }
.an-nav__link { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding-inline: 20px; color: var(--ink); font-size: 12.5px; font-weight: 700; position: relative; white-space: nowrap; }
.an-nav__link:first-child { padding-inline-start: 0; }
.an-nav__link svg { width: 15px; height: 15px; }
.an-nav__link:hover { color: var(--teal-dark); }
.an-nav__link.is-active { color: var(--teal-dark); }
.an-nav__link.is-active::after { content: ""; position: absolute; inset-inline: 12px; bottom: 0; height: 2px; background: var(--teal); border-radius: 2px; }
.an-nav__link:first-child.is-active::after { inset-inline-start: 0; }
.an-nav__list li { display: flex; align-items: center; }

/* ===================== 6b. HEADER (mobile: app bar + search) ===================== */
.an-mbar { display: none; }
@media (max-width: 991.98px) {
  /* App-bar behaviour (same as Amazon / Noon / Flipkart): pinned at the top, slides away while the shopper scrolls
     down to read, slides back the moment they scroll up. static/js/header.js toggles .is-hidden; transform keeps it on the
     compositor and never reflows the page. It is pinned at top:0 (the desktop rule's -32px would hide the app bar's top). */
  .an-header { top: 0; background: var(--navy); box-shadow: none; transition: transform 0.26s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s; will-change: transform; }
  .an-header.is-stuck { box-shadow: 0 2px 10px rgba(8, 36, 58, 0.28); }
  .an-header.is-hidden { transform: translateY(-100%); box-shadow: none; }
  .an-util, .an-main, .an-nav { display: none !important; }
  .an-mbar { display: block; background: linear-gradient(135deg, #0d5668 0%, var(--navy) 70%); padding: max(8px, env(safe-area-inset-top)) 12px 14px; color: #fff; }
  .an-mbar__row { display: flex; align-items: center; gap: 6px; height: 38px; }
  .an-mbar__btn { width: 36px; height: 36px; display: inline-grid; place-items: center; background: none; border: 0; color: #fff; position: relative; border-radius: 50%; flex-shrink: 0; }
  .an-mbar__btn svg { width: 22px; height: 22px; }
  .an-mbar__btn .an-action__badge-wrap { top: 2px; inset-inline-start: 20px; }
  .an-mbar .an-logo { color: #fff; margin-inline-end: auto; }
  .an-mbar .an-logo__name { color: #fff; font-size: 20px; }
  .an-mbar .an-logo__sub { color: rgba(255, 255, 255, 0.75); }
  .an-mbar .an-logo img { width: 30px; height: 30px; background: #fff; }
  .an-mbar .an-badge { background: var(--gold); color: var(--ink); }
  .an-msearch { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; margin-top: 8px; padding: 0 14px; background: #fff; border: 0; border-radius: 999px; color: #7d8d9a; font-size: 13px; text-align: start; }
  .an-msearch svg { width: 18px; height: 18px; color: var(--ink); flex-shrink: 0; }
  .an-msearch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #main-content { position: relative; z-index: 1; background: #fff; border-radius: 16px 16px 0 0; margin-top: -10px; padding-top: 2px; min-height: 60vh; }
}
/* mobile search sheet (full screen) */
.mobile-search { position: fixed; inset: 0; z-index: 1100; display: none; }
.mobile-search.is-open { display: block; }
.mobile-search__backdrop { position: absolute; inset: 0; background: rgba(8, 36, 58, 0.5); }
.mobile-search__sheet { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; }
.mobile-search__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mobile-search__field { position: relative; flex: 1; display: flex; align-items: center; background: var(--surface); border-radius: 999px; padding-inline: 12px; height: 40px; }
.mobile-search__icon { width: 18px; height: 18px; color: var(--text-2); flex-shrink: 0; }
.mobile-search__input { flex: 1; min-width: 0; border: 0; background: transparent; height: 40px; padding: 0 8px; font-size: 14px; color: var(--ink); }
.mobile-search__input:focus { outline: 0; }
.mobile-search__clear { border: 0; background: none; width: 24px; height: 24px; color: var(--text-2); }
.mobile-search__clear svg { width: 16px; height: 16px; }
.mobile-search__cancel { border: 0; background: none; color: var(--teal-dark); font-weight: 700; font-size: 13px; }
.mobile-search__results { flex: 1; overflow: auto; }

/* ====================== 7. MOBILE: bottom nav, menu, sheet ====================== */
.an-mnav { display: none; }
@media (max-width: 991.98px) {
  body.annoor-body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .an-mnav { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15, 42, 67, 0.08); padding-bottom: env(safe-area-inset-bottom); }
  .an-mnav__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 58px; color: #6b7c8b; font-size: 11px; font-weight: 600; background: none; border: 0; padding: 0; }
  .an-mnav__item svg { width: 23px; height: 23px; }
  .an-mnav__item.is-active { color: var(--teal-dark); }
  .an-mnav__item.is-active svg { fill: currentColor; fill-opacity: 0.14; stroke-width: 2.2; }
}
.an-sheet { border-radius: 18px 18px 0 0; height: auto !important; max-height: 82vh; }
.an-sheet__row { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; color: var(--ink); font-weight: 600; font-size: 14px; border: 0; border-bottom: 1px solid var(--line-2); }
.an-sheet__row.is-active { color: var(--teal-dark); background: var(--teal-soft); }
.an-sheet__row--all { background: var(--surface); font-weight: 700; }
.an-sheet__tools { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.an-sheet__tools select { width: 100%; }
.an-sheet__tools .an-lang__btn { color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; }
.an-sheet__tools .an-lang__btn.is-active { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-dark); }
.an-sheet__tools .an-lang { gap: 8px; }

/* ================================ 8. FOOTER ================================ */
.an-footer { background: var(--navy-deep); color: #c9d6df; margin-top: 36px; padding-top: 34px; font-size: 12.5px; }
.an-footer a { color: #c9d6df; }
.an-footer a:hover { color: #fff; }
.an-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1.5fr; gap: 24px; padding-bottom: 26px; }
.an-footer__brand .an-logo { color: #fff; }
.an-footer__brand .an-logo__name { color: #fff; }
.an-footer__brand .an-logo__sub { color: #8fa5b5; }
.an-footer__brand .an-logo img { background: #fff; }
.an-footer__tagline { margin: 12px 0 14px; max-width: 28ch; line-height: 1.5; color: #b7c7d2; }
.an-footer__social { display: flex; gap: 14px; }
.an-footer__social a { width: 24px; height: 24px; display: inline-grid; place-items: center; color: #fff; }
.an-footer__social svg { width: 20px; height: 20px; }
.an-footer h6 { color: #fff; font-size: 12.5px; font-weight: 700; margin-bottom: 12px; letter-spacing: 0.01em; }
.an-footer nav a { display: block; padding: 3px 0; }
.an-footer__sub p { margin-bottom: 10px; }
.an-footer__subform { display: flex; margin: 0; }
.an-footer__subform input { flex: 1; min-width: 0; height: 34px; border: 0; border-radius: var(--r) 0 0 var(--r); padding: 0 12px; font-size: 12.5px; background: #fff; color: var(--ink); }
[dir="rtl"] .an-footer__subform input { border-radius: 0 var(--r) var(--r) 0; }
.an-footer__subform button { width: 40px; height: 34px; border: 0; background: var(--teal); color: #fff; border-radius: 0 var(--r) var(--r) 0; display: grid; place-items: center; }
[dir="rtl"] .an-footer__subform button { border-radius: var(--r) 0 0 var(--r); }
.an-footer__subform button svg { width: 16px; height: 16px; }
.an-footer__contact { margin-top: 14px; line-height: 1.55; }
.an-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: #98abb8; }
.an-footer__legal p { margin: 0 0 2px; }
.an-footer__trust { display: flex; gap: 18px; align-items: center; }
.an-footer__trust span { display: inline-flex; align-items: center; gap: 6px; color: #c9d6df; font-weight: 600; font-size: 11px; line-height: 1.2; }
.an-footer__trust svg { width: 18px; height: 18px; color: var(--gold); }
.an-footer__policies { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 12px 0 0; margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 11.5px; }
@media (max-width: 991.98px) {
  .an-footer { padding-bottom: 72px; }
  .an-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-footer__brand, .an-footer__sub { grid-column: 1 / -1; }
  .an-footer__legal { flex-direction: column; align-items: flex-start; }
}

/* ============================ 9. PRODUCT CARD ============================ */
/* Reference: 5-up grid, 20px gaps, image well 2:1, 10px body padding, 30px add-to-cart. */
.an-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 20px; }
.an-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.an-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.an-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; transition: box-shadow 0.18s, transform 0.18s; }
.an-card:hover { box-shadow: 0 6px 18px rgba(15, 42, 67, 0.14), 0 0 0 1px rgba(15, 42, 67, 0.05); transform: translateY(-1px); }
.an-card__media { position: relative; display: block; aspect-ratio: 2 / 1; background: var(--surface); overflow: hidden; }
.an-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.an-card__img-hover { opacity: 0; transition: opacity 0.2s; }
.an-card:hover .an-card__img-hover { opacity: 1; }
.an-card__badges { position: absolute; top: 7px; inset-inline-end: 7px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; z-index: 2; }
.an-card__badge { background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; line-height: 1.5; }
.an-card__badge--new { background: var(--teal); }
.an-card__badge--best { background: var(--navy); }
.an-card__tools { position: absolute; top: 7px; inset-inline-start: 7px; z-index: 3; display: flex; flex-direction: column; gap: 5px; }
.an-card__icon-btn { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 42, 67, 0.18); padding: 0; }
.an-card__icon-btn svg { width: 13px; height: 13px; }
.an-card__icon-btn:hover { color: var(--teal-dark); }
.an-card__icon-btn.is-active, .an-card__wish.is-active { color: var(--red); }
.an-card__icon-btn.is-active svg { fill: currentColor; }
.an-card__body { display: flex; flex-direction: column; gap: 3px; padding: 10px 10px 10px; flex: 1; }
.an-card__title { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.an-card__title a { color: inherit; }
.an-card__rating { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text); font-weight: 600; min-height: 16px; }
.an-card__rating svg { width: 12px; height: 12px; color: #f5a623; fill: currentColor; }
.an-card__rating small { color: var(--text-2); font-weight: 400; }
.an-card__rating--none { color: var(--text-2); font-weight: 500; }
.an-card__vendor { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-2); min-height: 16px; }
.an-card__vendor svg { width: 12px; height: 12px; color: var(--teal); flex-shrink: 0; }
.an-card__vendor a { color: var(--text-2); position: relative; z-index: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-card__vendor a:hover { color: var(--teal-dark); }
.an-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 2px; }
.an-card__price strong { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.an-card__price.is-sale strong { color: var(--red); }
.an-card__price s { font-size: 11.5px; color: #8493a0; }
.an-card__meta { display: flex; gap: 8px; align-items: center; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.an-card__stock.is-in { color: var(--green); } .an-card__stock.is-low { color: #b45f06; } .an-card__stock.is-out { color: var(--red); }
.an-card__free { color: var(--green); font-size: 10.5px; font-weight: 700; }
.an-card__cta { margin-top: auto; padding-top: 6px; }
.an-card__atc { width: 100%; height: 30px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: var(--r-sm); background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; }
.an-card__atc svg { width: 14px; height: 14px; }
.an-card__atc:hover:not(:disabled) { background: var(--teal-dark); color: #fff; }
.an-card__atc:disabled { background: #cdd7de; color: #fff; }
.an-card__stretch { position: absolute; inset: 0; z-index: 1; }
.an-card__body, .an-card__media { position: relative; }
.an-card__cta, .an-card__vendor a, .an-card__tools { position: relative; z-index: 2; }
@media (max-width: 1199.98px) { .an-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 991.98px) {
  .an-grid, .an-grid--4, .an-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .an-card__media { aspect-ratio: 4 / 3; }
  .an-card__body { padding: 8px; }
  .an-card__title { font-size: 12.5px; }
  .an-card__price strong { font-size: 13.5px; }
  .an-card__atc { height: 28px; font-size: 11.5px; }
}
/* list layout (PLP toggle) */
.an-grid.is-list { grid-template-columns: minmax(0, 1fr); }
.an-grid.is-list .an-card { flex-direction: row; }
.an-grid.is-list .an-card__media { width: 200px; aspect-ratio: auto; flex-shrink: 0; }

/* ============================== 10. HOME ============================== */
.an-home { padding-bottom: 8px; }
/* mobile shortcut icons */
.an-shortcuts { display: none; }
@media (max-width: 991.98px) {
  .an-shortcuts { display: flex; gap: 10px; padding: 18px 12px 4px; overflow-x: auto; scrollbar-width: none; }
  .an-shortcuts::-webkit-scrollbar { display: none; }
  .an-shortcut { flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.2; background: none; border: 0; padding: 0; }
  .an-shortcut__icon { width: 54px; height: 50px; border-radius: 14px; display: grid; place-items: center; }
  .an-shortcut__icon svg { width: 24px; height: 24px; }
  .an-shortcut:nth-child(1) .an-shortcut__icon { background: #e1f2f2; color: var(--teal-dark); }
  .an-shortcut:nth-child(2) .an-shortcut__icon { background: #fdf0dc; color: #b9770a; }
  .an-shortcut:nth-child(3) .an-shortcut__icon { background: #fde6e7; color: #c8323f; }
  .an-shortcut:nth-child(4) .an-shortcut__icon { background: #fdf0dc; color: #b9770a; }
  .an-shortcut:nth-child(5) .an-shortcut__icon { background: #fdf0dc; color: #b9770a; }
}

/* hero + promos */
.an-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 247px; gap: 12px; margin-top: 14px; }
.an-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(105deg, #06263c 0%, #0a3b58 55%, #0e5a6a 100%); color: #fff; min-height: 224px; height: 100%; }
.an-hero .carousel-inner, .an-hero .carousel-item { height: 100%; }
.an-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.an-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 38, 60, 0.78) 0%, rgba(6, 38, 60, 0.25) 55%, transparent 100%); }
.an-hero__copy { position: relative; z-index: 2; padding: 34px 36px; max-width: 520px; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.an-hero__title { color: #fff; font-size: 31px; font-weight: 800; line-height: 1.18; margin: 0 0 12px; }
.an-hero__title em { font-style: normal; color: var(--gold); display: block; }
.an-hero__sub { color: #e6eef3; font-size: 13.5px; max-width: 34ch; margin-bottom: 18px; line-height: 1.5; }
.an-hero__cta { align-self: flex-start; height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 700; font-size: 13px; border: 0; }
.an-hero__cta:hover { background: var(--teal-dark); color: #fff; }
.an-hero__dots { position: absolute; inset-inline-start: 36px; bottom: 14px; margin: 0; display: flex; gap: 5px; z-index: 3; justify-content: flex-start; }
.an-hero__dots [data-bs-target] { width: 6px; height: 6px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.55); padding: 0; margin: 0; opacity: 1; text-indent: 0; }
.an-hero__dots .active { width: 18px; border-radius: 3px; background: #3fc5c8; }
.an-hero__static-dots { position: absolute; inset-inline-start: 36px; bottom: 14px; display: flex; gap: 5px; z-index: 3; }
.an-hero__static-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }
.an-hero__static-dots i:first-child { width: 18px; border-radius: 3px; background: #3fc5c8; }
.an-promos { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; }
.an-promo { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 76px 10px 14px; border-radius: var(--r-lg); overflow: hidden; color: var(--ink); background: #edf3f6; min-height: 66px; }
[dir="rtl"] .an-promo { padding: 10px 14px 10px 76px; }
.an-promo:hover { color: var(--ink); box-shadow: var(--shadow-card); }
.an-promo--1 { background: linear-gradient(120deg, #e7eff3, #dfe9ef); }
.an-promo--2 { background: linear-gradient(120deg, #f3f1ec, #ebe6dd); }
.an-promo--3 { background: linear-gradient(120deg, #fdeee6, #fbe4da); }
.an-promo strong { font-size: 14px; font-weight: 800; line-height: 1.2; }
.an-promo small { font-size: 11px; color: #4a5f70; line-height: 1.3; }
.an-promo__go { margin-top: 4px; width: 26px; height: 18px; border-radius: 999px; background: var(--teal); color: #fff; display: grid; place-items: center; }
.an-promo__go svg { width: 11px; height: 11px; }
.an-promo__img { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 64px; height: 56px; object-fit: contain; }
.an-promo__glyph { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); display: grid; place-items: center; font-size: 20px; font-weight: 800; color: var(--teal-dark); }
@media (max-width: 991.98px) {
  .an-hero-grid { grid-template-columns: minmax(0, 1fr); margin-top: 4px; gap: 10px; }
  .an-hero { min-height: 0; aspect-ratio: 16 / 8; border-radius: 16px; }
  .an-hero__copy { padding: clamp(14px, 4.5vw, 24px); padding-bottom: 34px; max-width: min(86%, 420px); justify-content: center; }
  .an-hero__title { font-size: clamp(17px, 5vw, 24px); margin-bottom: 8px; overflow-wrap: anywhere; }
  .an-hero__sub { font-size: 12px; margin-bottom: 10px; max-width: 30ch; }
  .an-hero__cta { height: 32px; font-size: 12.5px; padding: 0 14px; }
  .an-hero__dots, .an-hero__static-dots { inset-inline-start: clamp(14px, 4.5vw, 24px); bottom: 12px; }
  .an-promos { display: flex; overflow-x: auto; gap: 10px; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: 12px; margin-inline: -12px; padding-inline: 12px; }
  .an-promos::-webkit-scrollbar { display: none; }
  .an-promo { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
  .an-promo strong, .an-promo small { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 1; overflow-wrap: anywhere; }
  .an-promo small { -webkit-line-clamp: 2; }
}
/* trust strip */
.an-trust { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border-radius: var(--r-lg); padding: 10px 6px; margin-top: 12px; list-style: none; margin-bottom: 0; }
.an-trust li { display: flex; align-items: center; gap: 10px; padding: 2px 14px; position: relative; min-width: 0; }
.an-trust li + li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; bottom: 4px; border-inline-start: 1px solid #dbe3e8; }
.an-trust svg { width: 24px; height: 24px; color: var(--teal); flex-shrink: 0; }
.an-trust strong { display: block; font-size: 12px; color: var(--ink); line-height: 1.25; }
.an-trust span { font-size: 11px; color: var(--text-2); line-height: 1.25; }
@media (max-width: 991.98px) {
  .an-trust { display: flex; overflow-x: auto; scrollbar-width: none; padding: 10px 4px; gap: 0; margin-top: 10px; }
  .an-trust::-webkit-scrollbar { display: none; }
  .an-trust li { flex: 0 0 auto; padding: 2px 14px; }
  .an-trust svg { width: 22px; height: 22px; }
}
/* shop by category */
.an-cats { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; }
.an-cat { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-height: 95px; padding: 10px 4px 9px; justify-content: flex-start; border-radius: var(--r-lg); color: var(--ink); font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.2; background: #f1f4f8; }
.an-cat:nth-child(odd) { background: #fbf1e8; }
.an-cat:hover { color: var(--ink); box-shadow: var(--shadow-card); }
.an-cat__art { flex: 0 0 auto; width: 100%; height: 46px; display: grid; place-items: center; }
.an-cat__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; overflow-wrap: anywhere; }
.an-cat__art img { max-width: 100%; max-height: 50px; object-fit: contain; }
.an-cat__glyph { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--teal-dark); display: grid; place-items: center; font-size: 16px; font-weight: 800; box-shadow: 0 1px 3px rgba(15, 42, 67, 0.1); }
.an-cat__glyph svg { width: 22px; height: 22px; }
@media (max-width: 1199.98px) { .an-cats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 991.98px) {
  .an-cats { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; scroll-snap-type: x proximity; margin-inline: -12px; padding-inline: 12px; scroll-padding-inline: 12px; }
  .an-cats::-webkit-scrollbar { display: none; }
  .an-cat { flex: 0 0 76px; min-height: 92px; scroll-snap-align: start; font-size: 10.5px; }
}
/* deals + featured stores row */
.an-deals-row { display: grid; grid-template-columns: 417px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.an-deals { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 22px 24px; min-height: 124px; background: linear-gradient(115deg, #08485a 0%, #0a6a72 100%); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.an-deals h2 { color: #fff; font-size: 21px; display: flex; align-items: center; gap: 6px; margin: 0 0 4px; }
.an-deals h2 svg { width: 22px; height: 22px; color: var(--gold); fill: var(--gold); }
.an-deals p { color: #e2f0f1; margin: 0 0 12px; max-width: 18ch; line-height: 1.35; font-size: 13px; }
.an-deals__cta { align-self: flex-start; height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; }
.an-deals__cta:hover { color: var(--teal-dark); }
.an-deals__badge { position: absolute; inset-inline-end: 22px; top: 50%; transform: translateY(-50%); width: 92px; height: 92px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; text-align: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22); }
.an-deals__badge small { font-size: 11px; font-weight: 600; }
.an-deals__badge strong { font-size: 26px; font-weight: 800; }
.an-deals__badge b { font-size: 12px; }
.an-stores-block .an-section__head { margin-bottom: 10px; }
.an-stores { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.an-store { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 91px; padding: 8px 4px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card); color: var(--ink); text-align: center; }
.an-store:hover { color: var(--ink); box-shadow: 0 6px 16px rgba(15, 42, 67, 0.14); }
.an-store__logo { width: 30px; height: 30px; display: grid; place-items: center; color: var(--teal-dark); font-weight: 800; font-size: 15px; overflow: hidden; border-radius: 50%; background: var(--teal-soft); }
.an-store__logo img { width: 100%; height: 100%; object-fit: cover; }
.an-store__name { font-size: 11.5px; font-weight: 700; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-store__place { font-size: 10.5px; color: var(--text-2); }
.an-rating { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.an-rating > span[aria-hidden] { color: #f5a623; }
.an-rating small { color: var(--text-2); font-weight: 500; }
@media (max-width: 1199.98px) { .an-deals-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 991.98px) {
  .an-deals { min-height: 104px; padding: 16px 18px; border-radius: 16px; }
  .an-deals h2 { font-size: 18px; }
  .an-deals__badge { width: 78px; height: 78px; inset-inline-end: 16px; }
  .an-deals__badge strong { font-size: 22px; }
  .an-stores { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; scroll-snap-type: x proximity; margin-inline: -12px; padding-inline: 12px; scroll-padding-inline: 12px; }
  .an-stores::-webkit-scrollbar { display: none; }
  .an-store { flex: 0 0 112px; height: 84px; scroll-snap-align: start; }
}
/* discover tabs */
.an-discover-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.an-discover-head h2 { margin: 0; font-size: 19px; white-space: nowrap; }
.an-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.an-tabs::-webkit-scrollbar { display: none; }
.an-tab { flex: 0 0 auto; height: 28px; padding: 0 16px; border: 0; border-radius: 999px; background: #f1f4f7; color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.an-tab:hover { background: #e4ebf0; }
.an-tab.is-active { background: var(--teal); color: #fff; }
@media (max-width: 991.98px) {
  .an-discover-head { flex-wrap: wrap; gap: 8px 10px; }
  .an-discover-head .an-tabs { order: 3; flex-basis: 100%; }
  .an-discover-head .an-link-all { margin-inline-start: auto; }
}
/* promo bands */
.an-bands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.an-band { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-radius: var(--r-xl); background: #fbf4ea; min-height: 96px; }
.an-band h2 { font-size: 18px; margin: 0 0 6px; }
.an-band ul { list-style: none; margin: 0 0 10px; padding: 0; font-size: 12px; color: var(--text); }
.an-band li { display: flex; align-items: center; gap: 6px; line-height: 1.7; }
.an-band li svg { width: 13px; height: 13px; color: var(--teal); }
.an-band p { color: var(--text); margin: 0 0 10px; max-width: 34ch; }
.an-band--app { background: #f7f2ea; }
@media (max-width: 991.98px) { .an-bands { grid-template-columns: minmax(0, 1fr); } .an-band { padding: 16px 18px; } }

/* ======================= 11. SHARED PAGE PARTS ======================= */
.an-toast-root { position: fixed; inset-inline: 0; bottom: 80px; display: flex; justify-content: center; pointer-events: none; z-index: 1200; }
.an-install-banner { position: fixed; inset-inline: 12px; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 1080; max-width: 520px; margin-inline: auto; background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 10px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; box-shadow: var(--shadow-pop); font-size: 12.5px; }
.an-install-banner__actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (min-width: 992px) { .an-install-banner { bottom: 16px; } }
.jm-wa-float { position: fixed; inset-inline-end: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 46px; height: 46px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); z-index: 1040; }
.jm-wa-float svg { width: 24px; height: 24px; }
.jm-wa-float__pulse { display: none; }
@media (min-width: 992px) { .jm-wa-float { bottom: 24px; } }
.jm-loader { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: #fff; transition: opacity 0.25s; }
.jm-loader.is-hidden, .jm-loader.is-done { opacity: 0; pointer-events: none; }
.jm-loader__veil { display: none; }
.jm-loader__media { width: 72px; height: 72px; }
.htmx-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; background: var(--teal); z-index: 2100; }
.htmx-toast-root { position: fixed; bottom: 80px; inset-inline-end: 14px; z-index: 1200; display: flex; flex-direction: column; gap: 8px; }

/* tablets: promos sit in one row of three under the hero instead of a swipe rail */
@media (min-width: 576px) and (max-width: 991.98px) {
  .an-promos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .an-promo { flex: none; }
  .an-hero { aspect-ratio: 16 / 6; }
}

@media (prefers-reduced-motion: reduce) { .an-header { transition: none; } }
