/* Nawras shop theme. Component CSS ported from nawras-store-web (read-only). */
/*
 * Storefront theme (effective prototype values: body.nawrasized re-skin, shell.md §0).
 * Loaded by the storefront layout with ViewEncapsulation.None and scoped to `.sf-root`, so the
 * vendored platform tokens (src/styles/platform.css) stay untouched underneath.
 *
 * Breakpoints (use CSS media queries, never window.innerWidth — SSR):
 *   mobile  < 640px   @media (max-width: 639.98px)
 *   tablet  640–1023  @media (min-width: 640px) and (max-width: 1023.98px)
 *   desktop ≥ 1024    @media (min-width: 1024px)
 *   xl      ≥ 1440    @media (min-width: 1440px)
 *
 * Book artwork (covers, shelf books) must NOT read these tokens: declare literal colours on the
 * cover host (components.md §0.1).
 */

/* Store-only font families mirroring the prototype's weight set (synthetic bold is intended).
   Files live in public/themes/shop/nawras/fonts/ (copied with the vendored platform styles) → /assets. */
@font-face { font-family: 'SF Text EN'; src: url('/themes/shop/nawras/fonts/nawras-text-en-300.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'SF Text EN'; src: url('/themes/shop/nawras/fonts/nawras-text-en-400.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'SF Text EN'; src: url('/themes/shop/nawras/fonts/nawras-text-en-700.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'SF Display EN'; src: url('/themes/shop/nawras/fonts/nawras-display-en-light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'SF Text AR'; src: url('/themes/shop/nawras/fonts/nawras-text-ar-300.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'SF Text AR'; src: url('/themes/shop/nawras/fonts/nawras-text-ar-700.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'SF Display AR'; src: url('/themes/shop/nawras/fonts/nawras-display-ar-light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }

.sf-root {
  --background: #ffffff;
  --foreground: #000000;
  --card: #ffffff;
  --card-foreground: #000000;
  --popover: #ffffff;
  --popover-foreground: #000000;
  --muted: #f3f9fb;
  --secondary: #f3f9fb;
  --muted-foreground: #52647d;
  --secondary-foreground: #52647d;
  --accent: #edf9f6;
  --primary: #006f62;
  --primary-foreground: #ffffff;
  --border: rgba(16, 35, 63, 0.1);
  --input: rgba(16, 35, 63, 0.18);
  --input-background: #ffffff;
  --ring: rgba(8, 187, 158, 0.25);
  --brand-1: #005a98;
  --brand-2: #08bb9e;
  --brand-3: #5dd2bf;
  --chart-1: #005a98;
  --chart-2: #08bb9e;
  --chart-3: #5dd2bf;
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --sidebar: #001395;
  --sidebar-foreground: #ffffff;
  --sidebar-muted: #ffffff;
  --sidebar-border: rgba(255, 255, 255, 0.16);
  --sidebar-accent: rgba(255, 255, 255, 0.1);
  --success: #16a34a;
  --success-ink: #15803d; /* AA-safe text/toast variant (fix, owner sign-off) */
  --destructive: #dc2626;
  --warning: #f59e0b;
  --warning-ink: #8a5300;
  --switch-background: #cbced4;
  --grad: linear-gradient(105deg, #b5eae2 0%, #5dd2bf 25%, #08bb9e 55%, #007c99 85%, #005a98 100%);
  --nawras-gradient: var(--grad);
  --nawras-button-gradient: linear-gradient(105deg, #08bb9e 0%, #007c99 62%, #005a98 100%);
  --nawras-text-gradient: linear-gradient(105deg, #2fc6ad 0%, #08bb9e 45%, #005a98 100%);
  --shadow-brand-card: 0 18px 55px rgba(35, 75, 120, 0.09);
  --shadow-brand-card-hover: 0 22px 65px rgba(35, 75, 120, 0.12);
  --shadow-brand-card-strong: 0 22px 65px rgba(35, 75, 120, 0.15);
  --shadow-brand-soft: 0 8px 24px rgba(35, 75, 120, 0.08);
  --shadow-brand-button: -3px 0 12px rgba(8, 187, 158, 0.25), 3px 0 12px rgba(0, 90, 152, 0.2);
  --shadow-brand-button-hover: -5px 0 20px rgba(8, 187, 158, 0.35), 5px 0 20px rgba(0, 90, 152, 0.28);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --size-progress-h: 5px;
  --size-accent-bar: 3px;
  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
  --control-h-sm: 32px;
  --control-h: 36px;
  --control-h-lg: 40px;
  --content-max-width: 1180px;
  --page-max-width: 1600px;
  /* responsive page constants (shell.md §0.6) */
  --sf-pad: 16px;
  --sf-nav-pad: 4px;
  --sf-main-pad: 20px 16px 56px;
  --font-sans: 'SF Text EN', Arial, sans-serif;
  --font-display: 'SF Display EN', Arial, sans-serif;
  --lh-display: 1.15;
  --lh-head: 1.25;

  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 640px) {
  .sf-root { --sf-pad: 32px; --sf-nav-pad: 20px; --sf-main-pad: 28px 32px 72px; }
}
@media (min-width: 1024px) {
  .sf-root {
    --sf-pad: clamp(40px, 4vw, 72px);
    --sf-nav-pad: clamp(28px, calc(4vw - 12px), 60px);
    --sf-main-pad: 36px var(--sf-pad) 96px;
  }
}

.sf-root[lang='ar'],
.sf-root [lang='ar'] {
  --font-sans: 'SF Text AR', Arial, sans-serif;
  --font-display: 'SF Display AR', Arial, sans-serif;
  --lh-display: 1.45;
  --lh-head: 1.5;
}
.sf-root [lang='en'] {
  --font-sans: 'SF Text EN', Arial, sans-serif;
  --font-display: 'SF Display EN', Arial, sans-serif;
}

/* Global element rules, zero specificity (:where) so every component style wins. */
:where(.sf-root) :where(button, input, select, textarea) { font-family: var(--font-sans); }
:where(.sf-root) :where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: normal;
}
:where(.sf-root[lang='ar']) :where(h1, h2, h3, h4, h5, h6) { font-weight: 700; line-height: 1.3; }
:where(.sf-root) :where(a) { color: var(--primary); text-decoration: none; }
:where(.sf-root) :where(a:hover) { color: var(--brand-2); text-decoration: underline; }
:where(.sf-root) :where(button, a, [tabindex]):focus-visible {
  outline: 2px solid #005a98;
  outline-offset: 3px;
}
:where(.sf-root) :where(input[type='search'])::-webkit-search-cancel-button { -webkit-appearance: none; }
/* Same thumb as nawras-store-web storefront-theme.css. Do not set scrollbar-color:
   on Windows that swaps in the native scrollbar, arrows included. */
html::-webkit-scrollbar,
:where(.sf-root) ::-webkit-scrollbar { width: 5px; height: 5px; }
html::-webkit-scrollbar-button,
:where(.sf-root) ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
html::-webkit-scrollbar-track,
:where(.sf-root) ::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb,
:where(.sf-root) ::-webkit-scrollbar-thumb { background: rgba(21, 62, 213, 0.2); border-radius: 4px; }

/* Utilities shared by all areas */
.sf-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@keyframes nwFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes nwToastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes nwShimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

@media (prefers-reduced-motion: reduce) {
  :where(.sf-root) *,
  :where(.sf-root) *::before,
  :where(.sf-root) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Sticky header wrapper (H0) — shell.md §2.1–§2.4 */
.nw-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: block;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 0 rgba(16, 35, 63, 0.1),
    0 5px 24px rgba(35, 75, 120, 0.06);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  font-family: var(--font-sans);
  line-height: normal;
}

.hdr {
  box-sizing: border-box;
  max-width: 1600px;
  margin: 0 auto;
  padding: 12px var(--sf-pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
@media (min-width: 640px) {
  .hdr {
    padding-block: 16px;
    column-gap: 16px;
  }
}
@media (min-width: 1024px) {
  .hdr {
    column-gap: 32px;
  }
}

/* Brand (H2–H5) */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 0;
  color: #000;
  text-decoration: none;
}
.brand:hover {
  color: #000;
  text-decoration: none;
}
/* Global 2px #005a98 outline (theme) + the prototype's 3px teal halo inside it (shell.md §0.3). */
.brand:focus-visible {
  box-shadow: 0 0 0 3px var(--ring);
}
.nw-header .logo {
  display: block;
  width: auto;
  height: 36px;
  filter: none;
}
.sep {
  width: 1px;
  height: 22px;
  background: rgba(16, 35, 63, 0.1);
}
.label {
  font: 700 14px var(--font-display);
  line-height: normal;
  color: #000;
  white-space: nowrap;
}

/* Actions (A0–A6) */
.nw-header .actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-inline-start: auto;
  margin-top: 0;
  padding: 0;
}
@media (min-width: 640px) {
  .nw-header .actions {
    gap: 8px;
  }
}
.icon-btn,
.cart-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  margin: 0;
  color: #000;
  font: 500 14px/1 var(--font-sans);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s var(--ease-settle),
    color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
  animation: sfHdrIn 0.2s ease-out both;
}
.icon-btn {
  width: 40px;
  padding: 0;
  border: 1px solid rgba(16, 35, 63, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}
.icon-btn:hover {
  color: #000;
  text-decoration: none;
}
/* The label is written in the target language (lang attr for screen readers); keep the page font. */
.lang {
  font-family: inherit;
}

.badge-host {
  position: relative;
  display: inline-flex;
}
.badge {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  box-sizing: border-box;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font: 700 10px var(--font-sans);
  line-height: normal;
  pointer-events: none;
}
.badge--cart {
  background: var(--chart-4);
  color: var(--sidebar);
}
/* The visitor's count is being fetched on a page the cache stored for everyone (nawras/cart-seed). */
.badge--cart[aria-busy='true']::after {
  content: '';
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  border: 1.5px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: sfBadgeSpin 0.7s linear infinite;
}
@keyframes sfBadgeSpin {
  to {
    transform: rotate(360deg);
  }
}

/* A4 cart: gradient ring inside a transparent 1px border + brand glow */
.cart-btn {
  position: relative;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font-weight: 700;
  box-shadow: var(--shadow-brand-button);
}
.cart-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--nawras-button-gradient);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.cart-btn:hover,
.cart-btn:focus-visible {
  box-shadow: var(--shadow-brand-button-hover);
}
@media (max-width: 639.98px) {
  .cart-btn {
    width: 40px;
    padding: 0;
  }
  .cart-label {
    display: none;
  }
}

@keyframes sfHdrIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .icon-btn,
  .cart-btn {
    animation: none;
    transition: none;
  }
  .badge--cart[aria-busy='true']::after {
    animation: none;
    border-inline-end-color: currentColor;
  }
}

/* Header search (shell.md §2.3). The host is the S0 flex item of the header row. */
.nw-search {
  position: relative;
  display: block;
  flex: 1 1 100%;
  order: 3;
  min-width: 0;
  max-width: none;
  margin-inline: 0;
}
@media (min-width: 640px) {
  .nw-search {
    flex: 1 1 240px;
    order: 0;
    max-width: 640px;
  }
}
@media (min-width: 1024px) {
  .nw-search {
    flex-basis: 420px;
    margin-inline: auto;
  }
}
@media (min-width: 1440px) {
  .nw-search {
    max-width: 760px;
  }
}

.form {
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  height: 40px;
  margin: 0;
  padding: 3px;
  gap: 3px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 12px;
  box-shadow: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.form.focused {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

/* S2 category select (desktop only) */
.cat {
  position: relative;
  display: none;
  flex-shrink: 0;
  width: 150px;
}
@media (min-width: 1024px) {
  .cat {
    display: flex;
  }
}
.cat-select {
  width: 100%;
  height: 100%;
  margin: 0;
  padding-block: 0;
  padding-inline: 12px 32px;
  border: 0;
  border-radius: 8px;
  background: #f3f9fb;
  color: #52647d;
  font: 500 13px var(--font-sans);
  line-height: normal;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.cat-select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}
.chev {
  position: absolute;
  top: 50%;
  inset-inline-end: 6px;
  transform: translateY(-50%);
  pointer-events: none;
}

/* S3 input */
.q {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
  font: 400 14px/1 var(--font-sans);
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.q::placeholder {
  color: #52647d;
  opacity: 1;
}

/* S4 submit: gradient ring + brand glow */
.go {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #000;
  cursor: pointer;
  box-shadow: var(--shadow-brand-button);
  transition: box-shadow 0.15s;
}
.go::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--nawras-button-gradient);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.go:hover,
.go:focus-visible {
  box-shadow: var(--shadow-brand-button-hover);
}

/* S5 listbox */
.sug {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-height: 440px;
  padding: 6px;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 14px;
  box-shadow: var(--shadow-brand-card-strong);
  font-family: var(--font-sans);
  line-height: normal;
}
.sug[hidden] { display: none; }
.sug .opt {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  flex-shrink: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  text-align: start;
  cursor: pointer;
}
.sug a.opt,
.sug a.all { color: #000; text-decoration: none; }
.sug .opt:hover,
.sug .opt.active {
  background: #edf9f6;
}
.sug .cover {
  display: block;
  width: 34px;
  flex-shrink: 0;
}
.sug .text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sug .title,
.sug .meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sug .title {
  font-size: 13px;
  font-weight: 600;
  color: #000;
}
.sug .meta {
  font-size: 12px;
  font-weight: 400;
  color: #52647d;
}
.sug .price {
  font-size: 13px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
}
.sug .none {
  padding: 14px 12px;
  font-size: 13px;
  color: #52647d;
}
.sug .all {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 4px;
  padding: 12px 10px 8px;
  border-top: 1px solid rgba(16, 35, 63, 0.1);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
}
.sug .all:hover,
.sug .all.active {
  text-decoration: underline;
}

/* Footer (F0–F9) — shell.md §2.9. Selectors stay under .nw-footer so they do not restyle the header. */
.nw-footer {
  display: block;
}
.nw-footer .foot {
  background: var(--sidebar);
  color: #fff;
  font-family: var(--font-sans);
  line-height: normal;
}
.nw-footer .grid {
  box-sizing: border-box;
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 16px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
@media (min-width: 640px) {
  .nw-footer .grid {
    padding: 56px var(--sf-pad) 36px;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}
.nw-footer .brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.nw-footer .logo {
  display: block;
  width: auto;
  height: 38px;
  filter: brightness(0) invert(1);
}
.nw-footer .lang {
  box-sizing: border-box;
  height: 32px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--sidebar-border);
  border-radius: 999px;
  background: var(--sidebar-accent);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
}
.nw-footer .lang:hover {
  background: rgba(255, 255, 255, 0.16);
}
.nw-footer .col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.nw-footer .h {
  margin: 0;
  font: 700 11px var(--font-sans);
  line-height: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.sf-root[lang='ar'] .nw-footer .h {
  letter-spacing: normal;
}
.nw-footer .links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nw-footer .links a {
  display: block;
  padding: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  text-align: start;
  text-decoration: none;
}
.nw-footer .links a:hover {
  color: #fff;
  text-decoration: none;
}
.nw-footer .lang:focus-visible,
.nw-footer .links a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.nw-footer .bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.nw-footer .inner {
  box-sizing: border-box;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 16px var(--sf-pad);
  font-size: 12px;
  color: #fff;
}

/* Generated cover artwork (components.md §2.1). All lengths in cqw of the cover's own width.
   Colours come from the --cv-* properties set on the host from the literal cover palette. */
.nw-cover {
  --cv-text: 'DM Sans', Inter, system-ui, -apple-system, sans-serif;
  --cv-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  container-type: inline-size;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: var(--cv-radius);
  background: var(--cv-bg);
  color: var(--cv-fg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(21, 62, 213, 0.1);
  font-family: Sora, 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
  text-align: start;
  -webkit-font-smoothing: antialiased;
}
.nw-cover span {
  display: block;
}
.nw-cover .title {
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}
.kicker {
  font-family: var(--cv-text);
  font-weight: 700;
  text-transform: uppercase;
}
.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* band */
.band {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.band-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4cqw;
  padding: 11cqw 9cqw 6cqw;
}
.band .kicker {
  font-size: 5cqw;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.band .title {
  font-size: 11cqw;
}
.band .rule {
  width: 16cqw;
  height: 1.4cqw;
  border-radius: 2cqw;
  background: var(--cv-accent);
}
.band-foot {
  display: flex;
  flex-direction: column;
  gap: 1.5cqw;
  padding: 6cqw 9cqw 8cqw;
  background: var(--cv-band);
  color: var(--cv-band-fg);
  font-family: var(--cv-text);
}
.band .author {
  font-size: 6cqw;
  font-weight: 600;
  line-height: 1.25;
}
.band .pub {
  font-size: 4.6cqw;
  opacity: 0.75;
}

/* frame */
.frame {
  position: absolute;
  inset: 6cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4cqw;
  padding: 10cqw 7cqw 8cqw;
  text-align: center;
  border: 0.8cqw solid color-mix(in srgb, currentColor 45%, transparent);
  border-radius: 2cqw;
}
.frame .kicker {
  font-size: 4.6cqw;
  letter-spacing: 0.1em;
  opacity: 0.8;
}
.frame-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5cqw;
}
.frame .title {
  font-size: 11.5cqw;
}
.diamond {
  width: 4cqw;
  height: 4cqw;
  transform: rotate(45deg);
  background: var(--cv-accent);
}
.frame .sub {
  font-family: var(--cv-text);
  font-size: 5cqw;
  line-height: 1.35;
  opacity: 0.85;
  text-wrap: balance;
}
.frame .author {
  font-family: var(--cv-text);
  font-size: 5.4cqw;
  font-weight: 600;
}

/* bold */
.bold {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 9cqw;
}
.bold .kicker {
  font-size: 5cqw;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.mark {
  margin-top: 3cqw;
  font-size: var(--cv-mark-size);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--cv-accent);
}
.bold-mid {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2.5cqw;
}
.bold .title {
  font-size: 9.5cqw;
}
.bold .sub {
  font-family: var(--cv-text);
  font-size: 4.8cqw;
  line-height: 1.35;
  opacity: 0.85;
}
.bold-foot {
  margin-top: 6cqw;
  padding-top: 4cqw;
  display: flex;
  justify-content: space-between;
  gap: 3cqw;
  font-family: var(--cv-text);
  font-size: 4.4cqw;
  font-weight: 600;
  border-top: 0.6cqw solid color-mix(in srgb, currentColor 30%, transparent);
}
.pub {
  opacity: 0.75;
}

/* back face */
.back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 5cqw;
  padding: 11cqw 10cqw 9cqw;
}
.back .title {
  font-size: 7cqw;
  line-height: 1.2;
  text-wrap: wrap;
}
.back .blurb {
  font-family: var(--cv-text);
  font-size: 5cqw;
  line-height: 1.55;
  opacity: 0.9;
}
.isbn-box {
  margin-top: auto;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  gap: 1.5cqw;
  padding: 3.5cqw 4cqw;
  background: #fff;
  border-radius: 1.5cqw;
}
.barcode {
  width: 44cqw;
  height: 12cqw;
  background: repeating-linear-gradient(
    90deg,
    #111827 0 0.7cqw,
    transparent 0.7cqw 1.3cqw,
    #111827 1.3cqw 2.5cqw,
    transparent 2.5cqw 3.1cqw,
    #111827 3.1cqw 3.5cqw,
    transparent 3.5cqw 4.4cqw
  );
}
.isbn {
  font-family: var(--cv-mono);
  font-size: 3.4cqw;
  color: #111827;
  letter-spacing: 0.04em;
}

/* inside page */
.inside {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 4cqw;
  padding: 12cqw 11cqw 8cqw;
}
.chapter {
  font-family: var(--cv-text);
  font-size: 4.6cqw;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #153ed5;
}
.inside .title {
  font-size: 8cqw;
  line-height: 1.2;
  color: #111827;
  text-wrap: wrap;
}
.inside .rule {
  width: 12cqw;
  height: 1cqw;
  border-radius: 1cqw;
  background: linear-gradient(135deg, #153ed5 0%, #0a87b1 50%, #00cf8f 100%);
}
.inside .blurb {
  font-family: var(--cv-text);
  font-size: 5cqw;
  line-height: 1.7;
  color: #374151;
}
.page {
  margin-top: auto;
  align-self: center;
  font-family: var(--cv-text);
  font-size: 4cqw;
  color: #6b7280;
}

.spine-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--cv-spine);
}

/* BookCard effective values (components.md §2.2). */
.nw-card {
  display: block;
  height: 100%;
  min-width: 0;
}
.card {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 20px;
  box-shadow: 0 18px 55px rgba(35, 75, 120, 0.09);
  backdrop-filter: blur(18px) saturate(140%);
  font-family: var(--font-sans);
  line-height: normal;
  color: #000;
  transition:
    transform 0.2s var(--ease-settle, ease),
    box-shadow 0.2s var(--ease-settle, ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 35, 63, 0.18);
  box-shadow: 0 22px 65px rgba(35, 75, 120, 0.12);
}
@media (max-width: 767.98px) {
  .card {
    border-radius: 18px;
  }
}

.cover-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 26px 18px;
  background: transparent;
  text-decoration: none;
}
.cover-wrap {
  display: block;
  width: 100%;
  max-width: 150px;
}

.badges {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
}

.wish-form { display: contents; }
.wish .heart-fill { display: none; }
.wish.is-on .heart-line { display: none; }
.wish.is-on .heart-fill { display: flex; }
.wish .heart-line,
.wish.is-on .heart-fill { display: flex; }
.wish {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  padding: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: inherit;
  border: 1px solid rgba(16, 35, 63, 0.1);
  box-shadow: 0 8px 24px rgba(35, 75, 120, 0.08);
  cursor: pointer;
  transition: transform 0.15s var(--ease-settle, ease);
}
.wish:hover {
  transform: scale(1.08);
}

.info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  min-width: 0;
}
.meta,
.author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #52647d;
}
.meta {
  font-size: 11px;
  font-weight: 500;
}
.author {
  font-size: 12px;
}
/* The prototype title is a <button> with min-height:2.7em, and a button centres its content
   vertically: a one-line title sits in the middle of the two-line box (9.45 px lower). */
.nw-card .title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 2.7em;
  font: 700 14px/1.35 var(--font-sans);
  color: #000;
  text-align: start;
  text-decoration: none;
}
.nw-card .title:hover {
  color: #006f62;
  text-decoration: none;
}
.title-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.rating-value {
  font-weight: 600;
  color: #000;
}
.nw-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 4px 8px;
}
.nw-card .price-row .now {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  color: #000;
}
.nw-card .price-row .was { margin-inline-start: 0; font-size: 12px; line-height: normal; }

/* Stock line = dot + text (never colour alone). AA fix (owner decision 4): the text uses the
   darker ink of the same hue (#16a34a 3.3:1 → #15803d 5.0:1; amber mix 3.0:1 → #8a5300 6.3:1);
   the dot keeps the prototype colour. Out of stock #dc2626 already passes (4.8:1). */
.stock {
  --dot: #16a34a;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--success-ink, #15803d);
}
[data-stock='low_stock'] .stock {
  --dot: color-mix(in srgb, #f59e0b 58%, black 28%);
  color: var(--warning-ink, #8a5300);
}
[data-stock='out_of_stock'] .stock {
  --dot: #dc2626;
  color: #dc2626;
}
.dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 999px;
  background: var(--dot);
}

.nw-card .actions {
  margin-top: auto;
  padding-top: 6px;
}
.add {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #000;
  font: 700 14px/1 var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: -3px 0 12px rgba(8, 187, 158, 0.25), 3px 0 12px rgba(0, 90, 152, 0.2);
  transition:
    background 0.15s var(--ease-settle, ease),
    color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
  animation: sfCardBtnIn 0.2s ease-out both;
}
.add::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(105deg, #08bb9e 0%, #007c99 62%, #005a98 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.add:is(:hover, :focus-visible) {
  box-shadow: -5px 0 20px rgba(8, 187, 158, 0.35), 5px 0 20px rgba(0, 90, 152, 0.28);
}
/* out of stock (both variants): DS outline look, really disabled, and LOOKS disabled — the DS
   `.nw-btn:disabled{opacity:.5}` the prototype lost to its entrance animation (cart.md fix 2). The
   red "Out of stock" stock line and the label carry the state as text. */
.add.is-out {
  gap: 6px;
  padding: 0 12px;
  border-color: rgba(16, 35, 63, 0.16);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 500;
  box-shadow: none;
  opacity: 0.5;
  cursor: not-allowed;
}
.add.is-out::before {
  content: none;
}
.remove {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 30px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: 500 12px var(--font-sans);
  color: #52647d;
}
.remove:hover {
  color: #dc2626;
}

.wish:focus-visible,
.nw-card .title:focus-visible,
.remove:focus-visible,
.add:focus-visible {
  outline: 2px solid #005a98;
  outline-offset: 3px;
}
.wish:focus-visible,
.remove:focus-visible {
  box-shadow: 0 0 0 3px rgba(8, 187, 158, 0.25);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes sfCardBtnIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .card,
  .wish,
  .add {
    transition: none;
    animation: none;
  }
  .card:hover {
    transform: none;
  }
}

.skip {
  position: absolute;
  inset-inline-start: 8px;
  top: -40px;
}
.skip:focus { top: 8px; z-index: 50; background: #fff; }

.nw-catnav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 1600px;
  margin: 0 auto;
  padding: 8px var(--sf-pad, 16px) 12px;
}
.nw-catnav a {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--muted, #f3f9fb);
  color: #000;
  text-decoration: none;
  font-size: 14px;
}
.nw-page, .nw-row, .nw-hero { max-width: 1180px; margin: 0 auto; padding: 24px var(--sf-pad, 16px); }
.nw-hero {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.nw-slide { flex: 0 0 100%; scroll-snap-align: start; }
.nw-slide {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  background: var(--grad, linear-gradient(105deg, #b5eae2, #005a98));
  color: #fff;
}
.nw-slide h1 { font-family: var(--font-display); font-size: 40px; margin: 8px 0; }
.nw-slide a, .nw-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: #fff;
  color: #005a98;
  text-decoration: none;
  border: 0;
  font-weight: 700;
}
.nw-slide-books { display: flex; gap: 12px; }
.nw-slide-books a { width: 120px; background: transparent; padding: 0; }
.nw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.nw-listing { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.nw-filters fieldset { border: 0; padding: 0 0 12px; display: grid; gap: 4px; }
.nw-filters label { display: flex; gap: 8px; font-size: 14px; }
.nw-toolbar, .nw-lines li, .nw-checkform { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.nw-lines { list-style: none; padding: 0; display: grid; gap: 12px; }
.nw-product { display: grid; grid-template-columns: 280px 1fr; gap: 32px; max-width: 1180px; margin: 0 auto; padding: 24px var(--sf-pad, 16px); }
.nw-gallery { display: grid; gap: 12px; }
.nw-price { font-size: 28px; font-weight: 700; }
.nw-price s { color: #52647d; font-size: 16px; margin-inline-start: 8px; }
.nw-checkform { display: grid; gap: 12px; max-width: 640px; }
.nw-checkform input, .nw-checkform select, .nw-cart input {
  min-height: 40px;
  border: 1px solid rgba(16, 35, 63, 0.18);
  border-radius: 10px;
  padding: 0 12px;
}
.nw-progress { height: 5px; background: #edf9f6; border-radius: 99px; overflow: hidden; }
.nw-progress span { display: block; height: 100%; background: #08bb9e; }
.price-row .was { color: #52647d; text-decoration: line-through; margin-inline-start: 6px; }
.badge-discount, .badge-tag {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: #f59e0b;
  color: #111;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}
@media (max-width: 900px) {
  .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nw-listing, .nw-product, .nw-slide { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nw-grid { grid-template-columns: 1fr; }
}

/* Home chrome ported from nawras-store-web (read-only): hero, book row, section heading, category nav. */

.sf-cat-nav { display: block; border-top: 1px solid rgba(16, 35, 63, 0.1); }
.sf-cat-nav .nav { max-width: 1600px; margin: 0 auto; }
.sf-cat-nav .list {
  box-sizing: border-box;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0 var(--sf-nav-pad);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-padding-inline: var(--sf-nav-pad);
}
.sf-cat-nav .list::-webkit-scrollbar { display: none; }
.sf-cat-nav li { flex-shrink: 0; }
.sf-cat-nav .item {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  color: #000;
  font: 500 13px var(--font-sans);
  line-height: normal;
  white-space: nowrap;
  text-decoration: none;
}
.sf-cat-nav .item:hover { color: #000; text-decoration: none; }
.sf-cat-nav .item::before {
  content: '';
  position: absolute;
  inset: 5px 0;
  padding: 2px;
  border-radius: 999px;
  background: var(--nawras-button-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
}
.sf-cat-nav .item[aria-current='page'] { font-weight: 600; background: #fff; }
.sf-cat-nav .item[aria-current='page']::before { opacity: 1; }
.sf-cat-nav .item:focus-visible { outline: 2px solid #005a98; outline-offset: -4px; }

body.sf-root > main { flex: 1; }
.sf-home-wrap { width: 100%; max-width: var(--page-max-width); margin: 0 auto; padding: var(--sf-main-pad); box-sizing: border-box; }
.sf-home { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
@media (min-width: 640px) { .sf-home { gap: 48px; } }
@media (min-width: 1024px) { .sf-home { gap: 64px; } }

.sf-home-hero { display: block; min-width: 0; }
.sf-home-hero .hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 24px 32px;
  padding: 28px 20px 24px;
  border-radius: 20px;
  color: #000;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.87) 22%, rgba(255, 255, 255, 0.94) 47%, #fff 78%),
    linear-gradient(105deg, #005a98 0%, #007c99 28%, #08bb9e 54%, #5dd2bf 78%, #b5eae2 100%);
  outline: 1px solid rgba(16, 35, 63, 0.06);
  outline-offset: -1px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(0, 90, 152, 0.08),
    0 14px 28px -18px rgba(0, 90, 152, 0.23),
    0 24px 48px -22px rgba(16, 45, 85, 0.2);
}
.sf-home-hero .sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.04) 43%, transparent 64%);
}
.sf-home-hero .copy,
.sf-home-hero .slide {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}
.sf-home-hero .slide[hidden],
.sf-home-hero .cover-set[hidden] { display: none; }
.sf-home-hero .eyebrow {
  padding: 6px 12px;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  color: #000;
  font: 700 11px/normal var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sf-home-hero .title {
  display: block;
  margin: 0;
  max-width: min(680px, 100%);
  width: 100%;
  color: #000;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  white-space: normal;
  text-wrap: balance;
}
.sf-home-hero .word {
  display: inline;
  background: var(--nawras-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.sf-home-hero .sub {
  margin: 0;
  max-width: 560px;
  color: #52647d;
  font: 400 17px/1.6 var(--font-sans);
}
.sf-home-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.sf-home-hero .ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #000;
  font: 700 14px/1 var(--font-sans);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-brand-button);
}
.sf-home-hero .ring::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--nawras-button-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.sf-home-hero .dots { display: flex; align-items: center; margin-top: 12px; }
.sf-home-hero .dot {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  margin-block: -9px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.sf-home-hero .dot::before {
  content: '';
  position: absolute;
  inset: 9px 0;
  width: 8px;
  margin-inline: auto;
  border-radius: 999px;
  background: #b5eae2;
  transition: width 0.3s, background 0.3s;
}
.sf-home-hero .dot.on::before { width: 24px; background: var(--nawras-button-gradient); }
.sf-home-hero .toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-block: -9px;
  margin-inline-start: 8px;
  padding: 0;
  border: 1px solid rgba(16, 35, 63, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}
.sf-home-hero .covers { position: relative; display: none; height: 300px; }
.sf-home-hero .cover {
  position: absolute;
  display: block;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.3s;
}
.sf-home-hero .cover:is(:hover, :focus-visible) { transform: translateY(-6px) rotate(var(--rot, 0deg)); }
.sf-home-hero .cover .nw-cover { width: 100%; }
.sf-home-hero[data-lang='ar'] .eyebrow { letter-spacing: normal; }
.sf-home-hero[data-lang='ar'] .title { font-weight: 700; line-height: 1.3; }
@media (min-width: 640px) {
  .sf-home-hero .hero { padding: 48px 40px; }
  .sf-home-hero .title { font-size: 36px; }
  .sf-home-hero .covers { display: block; }
}
@media (min-width: 1024px) {
  .sf-home-hero .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); padding: clamp(56px, 5vw, 88px) clamp(56px, 5.5vw, 104px); }
  .sf-home-hero .title { font-size: 44px; }
}
@media (min-width: 1440px) { .sf-home-hero .title { font-size: 52px; } }

.sf-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; min-width: 0; }
.sf-section-heading .titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sf-section-heading .h { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.3; color: #000; }
.sf-root[lang='ar'] .sf-section-heading .h { font-weight: 700; }
.sf-section-heading .sub { margin: 0; font-size: 13px; color: #52647d; }
.sf-section-heading .actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.sf-book-row { --row-card-w: 156px; display: block; min-width: 0; }
.sf-book-row[hidden], .sf-book-row .track > .slot[hidden], .sf-grades .books[hidden] { display: none !important; }
@media (min-width: 640px) { .sf-book-row { --row-card-w: 184px; } }
@media (min-width: 1024px) { .sf-book-row { --row-card-w: 196px; } }
@media (min-width: 1440px) { .sf-book-row { --row-card-w: 216px; } }
.sf-book-row > .row { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sf-book-row .see-all { font: 600 13px var(--font-sans); color: #000; text-decoration: none; }
.sf-book-row button.see-all { border: 0; background: transparent; cursor: pointer; padding: 0; }
.sf-book-row .see-all:hover { text-decoration: underline; }
.sf-book-row .arrows { display: none; align-items: center; gap: 8px; }
@media (min-width: 640px) { .sf-book-row .arrows { display: inline-flex; } }
.sf-book-row .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(16, 35, 63, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: #000;
  cursor: pointer;
}
.sf-book-row .arrow[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; }
.sf-book-row .track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 8px 4px 16px;
  margin: -8px -4px -12px;
  scrollbar-width: thin;
}
.sf-book-row .track > .slot { flex: 0 0 var(--row-card-w); display: flex; scroll-snap-align: start; min-width: 0; }
.sf-book-row .track > .slot > .nw-card { flex: 1; min-width: 0; width: 100%; }


/* Cart drawer. Every selector stays under .sf-cart-drawer so .title, .row and .list do not leak. */
.sf-cart-drawer { display: none; }
.sf-cart-drawer.is-open { display: block; }
.sf-cart-drawer .layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  font-family: var(--font-sans);
  line-height: normal;
  color: #000;
}
.sf-cart-drawer .scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
}
.sf-cart-drawer .panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: var(--shadow-brand-card-strong);
  animation: nwDrawer 0.22s ease-out;
}
@keyframes nwDrawer {
  from { transform: translateX(24px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}
.sf-root[dir='rtl'] .sf-cart-drawer .panel {
  animation-name: nwDrawerRtl;
}
@keyframes nwDrawerRtl {
  from { transform: translateX(-24px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}
.sf-cart-drawer .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(16, 35, 63, 0.1);
}
.sf-cart-drawer .head-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sf-cart-drawer .title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}
.sf-root[lang='ar'] .sf-cart-drawer .title { font-weight: 700; line-height: 1.3; }
.sf-cart-drawer .count { font-size: 13px; color: #52647d; white-space: nowrap; }
.sf-cart-drawer .close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #000;
  cursor: pointer;
}
.sf-cart-drawer .close:hover { background: #edf9f6; }
.sf-cart-drawer .empty { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.sf-cart-drawer .empty-inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 16px; }
.sf-cart-drawer .halo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(0, 90, 152, 0.08);
  border: 1.5px solid rgba(0, 90, 152, 0.15);
  color: #005a98;
}
.sf-cart-drawer .empty-title { margin: 15px 0 6px; font: 700 15px var(--font-sans); color: #262626; }
.sf-cart-drawer .empty-desc { margin: 0 0 16px; max-width: 340px; font-size: 13px; color: #52647d; }
.sf-cart-drawer .free {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 24px;
  background: #f3f9fb;
  border-bottom: 1px solid rgba(16, 35, 63, 0.1);
}
.sf-cart-drawer .free-text { font-size: 13px; font-weight: 600; }
.sf-cart-drawer .free-text.unlocked { color: var(--success); }
.sf-cart-drawer .meter { display: block; height: 5px; border-radius: 999px; background: #edf9f6; overflow: hidden; }
.sf-cart-drawer .fill { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.sf-cart-drawer .list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  padding: 0 24px;
  list-style: none;
}
.sf-cart-drawer .list::-webkit-scrollbar { width: 5px; height: 5px; }
.sf-cart-drawer .list::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.sf-cart-drawer .list::-webkit-scrollbar-track { background: transparent; }
.sf-cart-drawer .list::-webkit-scrollbar-thumb { background: rgba(21, 62, 213, 0.2); border-radius: 4px; }
.sf-cart-drawer .line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(16, 35, 63, 0.1); }
.sf-cart-drawer .cover-link { display: block; width: 60px; flex-shrink: 0; }
.sf-cart-drawer .cover-link .nw-cover { width: 60px; }
.sf-cart-drawer .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sf-cart-drawer .name { font-size: 14px; font-weight: 700; line-height: 1.35; color: #000; text-decoration: none; }
.sf-cart-drawer .author { font-size: 12px; color: #52647d; }
.sf-cart-drawer .price-row { display: flex; align-items: baseline; gap: 6px; }
.sf-cart-drawer .price { font-size: 13px; font-weight: 600; }
.sf-cart-drawer .old { font-size: 11px; color: #52647d; }
.sf-cart-drawer .controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.sf-cart-drawer .left { display: flex; align-items: center; gap: 10px; }
.sf-cart-drawer .stepper { display: inline-flex; align-items: center; height: 32px; border: 1px solid rgba(16, 35, 63, 0.1); border-radius: 10px; background: #fff; }
.sf-cart-drawer .stepper form { display: contents; }
.sf-cart-drawer .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 16px;
  cursor: pointer;
}
.sf-cart-drawer .step:disabled { opacity: 0.4; cursor: default; }
.sf-cart-drawer .value {
  min-width: 28px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
}
.sf-cart-drawer .remove {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: #52647d;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.sf-cart-drawer .line-total { font-family: var(--font-display); font-size: 14px; font-weight: 700; white-space: nowrap; }
.sf-cart-drawer .foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(16, 35, 63, 0.1);
}
.sf-cart-drawer .row { display: flex; justify-content: space-between; font-size: 14px; color: #52647d; }
.sf-cart-drawer .row.total { align-items: baseline; padding-top: 10px; border-top: 1px solid rgba(16, 35, 63, 0.1); }
.sf-cart-drawer .total-label { font-size: 15px; font-weight: 700; color: #000; }
.sf-cart-drawer .total-value { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: #000; }
/* Primary md (empty-state browse). Checkout is the pill lg; view-cart is outline lg. */
.sf-cart-drawer .btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #000;
  font: 500 14px/1 var(--font-sans);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-brand-button);
}
.sf-cart-drawer .btn::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--nawras-button-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.sf-cart-drawer .btn.checkout {
  height: 40px;
  padding: 0 24px;
  border-radius: 999px;
  background: #fff;
}
.sf-cart-drawer .btn.checkout:is(:hover, :focus-visible) {
  box-shadow: var(--shadow-brand-button-hover);
}
.sf-cart-drawer .btn.outline {
  height: 40px;
  padding: 0 24px;
  border-radius: 12px;
  border-color: rgba(16, 35, 63, 0.16);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 500;
  box-shadow: none;
}
.sf-cart-drawer .btn.outline::before { display: none; }
.sf-cart-drawer .continue {
  align-self: center;
  margin: 0;
  padding: 4px 0 0;
  border: 0;
  background: none;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sf-cart-drawer .continue:hover { text-decoration: underline; }

/* Checkout, account, product, wishlist, and the home sections below the hero. */

.nw-product { display: block; max-width: none; }
.nw-checkout,
.nw-product {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: var(--sf-main-pad, 20px 16px 56px);
  box-sizing: border-box;
}
.nw-auth {
  position: relative;
  width: min(var(--page-max-width, 1600px), 100%);
  margin: 0 auto;
  padding: var(--sf-main-pad, 36px var(--sf-pad, 24px) 96px);
  box-sizing: border-box;
}

.nw-checkout .title-row,
.nw-product .title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 20px;
}
.nw-checkout h1,
.nw-product h1,
.nw-wish h1,
.nw-auth h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #000;
}
.nw-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff6e8;
  color: #9a6700;
  font-size: 12px;
  font-weight: 600;
}
.nw-badge .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.nw-check-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (min-width: 1024px) {
  .nw-check-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (min-width: 1440px) {
  .nw-check-grid { grid-template-columns: minmax(0, 1fr) 400px; }
}
.nw-steps { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.nw-step,
.nw-summary-card,
.nw-auth-card,
.nw-buy,
.nw-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-brand-card);
  backdrop-filter: blur(18px) saturate(140%);
}
.nw-step { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.nw-step-head { display: flex; align-items: center; gap: 12px; }
.nw-step-no {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--nawras-button-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.nw-step h2 { margin: 0; font-size: 16px; }
.nw-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 16px;
}
@media (min-width: 720px) {
  .nw-fields { grid-template-columns: 1fr 1fr; }
}
.nw-fields label,
.nw-auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.nw-fields .wide { grid-column: 1 / -1; }
.nw-fields input,
.nw-fields select,
.nw-auth-form input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-weight: 400;
  color: #000;
}
.nw-fields input::placeholder { color: var(--muted-foreground); }
.nw-choices { display: grid; gap: 12px; }
@media (min-width: 720px) {
  .nw-choices { grid-template-columns: 1fr 1fr; }
}
.nw-choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
.nw-choice:has(input:checked) {
  border-color: #08bb9e;
  box-shadow: 0 0 0 1px #08bb9e;
  background: var(--accent);
}
.nw-choice .choice-copy { flex: 1; min-width: 0; }
.nw-choice .choice-price { margin-inline-start: auto; white-space: nowrap; }
.nw-choice small { display: block; margin-top: 4px; font-weight: 400; color: var(--muted-foreground); }
.nw-choice .nw-pay-logo { display: inline-block; height: 16px; width: auto; margin-inline-start: 8px; vertical-align: middle; border-radius: 3px; }
.nw-summary-card { position: relative; padding: 24px; overflow: hidden; }
@media (min-width: 640px) {
  .nw-summary-card { position: sticky; top: 124px; }
}
.nw-summary-card .accent { position: absolute; top: 0; inset-inline: 0; height: var(--size-accent-bar); background: var(--grad); }
.nw-summary-card .sum-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.nw-summary-card .sum-head a { color: var(--muted-foreground); font-size: 13px; font-weight: 600; text-decoration: none; }
.nw-summary-card .sum-head a:hover { color: #000; }
.nw-summary-card h2 { margin: 0 0 12px; font-size: 18px; }
.nw-sum-line { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.nw-sum-line .cover { width: 48px; flex: none; }
.nw-sum-line .nw-cover { width: 48px; border-radius: 4px; }
.nw-sum-line .name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; }
.nw-sum-line .name small { display: block; font-weight: 500; color: var(--muted-foreground); }
.nw-sum-line .amt { font-weight: 700; white-space: nowrap; }
.nw-line { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; font-size: 14px; }
.nw-line.savings { color: var(--success-ink); }
.nw-line.total { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 18px; font-weight: 700; }
.nw-vat { margin: 0; font-size: 12px; color: var(--muted-foreground); }
.nw-summary-card .nw-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  margin-top: 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: 700 14px/1 var(--font-sans);
  box-shadow: var(--shadow-brand-button);
  cursor: pointer;
}
.nw-summary-card .nw-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--nawras-button-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.nw-buy .nw-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--nawras-button-gradient);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nw-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff6e8;
  color: #9a6700;
  font-size: 13px;
}

.nw-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
@media (min-width: 1024px) {
  .nw-auth-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 560px); }
}
.nw-auth-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  min-height: 420px;
  border-radius: 16px;
  background: var(--sidebar, #0b1b4a);
  color: #fff;
  box-shadow: var(--shadow-brand-card-hover);
}
@media (min-width: 640px) { .nw-auth-hero { min-height: 540px; } }
@media (min-width: 1024px) { .nw-auth-hero { min-height: 660px; height: auto; } }
.nw-auth-hero .wash,
.nw-auth-hero .lines,
.nw-auth-hero .scene { position: absolute; inset: 0; pointer-events: none; }
.nw-auth-hero .wash {
  background:
    radial-gradient(60% 46% at 50% 30%, rgba(15, 118, 110, 0.55) 0%, transparent 70%),
    radial-gradient(70% 40% at 100% 0%, rgba(21, 62, 213, 0.7) 0%, transparent 70%),
    radial-gradient(60% 40% at 0% 100%, rgba(16, 185, 129, 0.3) 0%, transparent 70%),
    var(--sidebar, #0b1b4a);
}
.nw-auth-hero .lines {
  opacity: 0.07;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 80%);
}
.nw-auth-hero .glow {
  position: absolute; left: 8%; right: 8%; bottom: 9%; height: 16%;
  border-radius: 50%; pointer-events: none; filter: blur(10px);
  background: radial-gradient(50% 50% at 50% 50%, rgba(16, 185, 129, 0.38) 0%, transparent 72%);
}
.nw-auth-hero .float { position: absolute; animation: nwAccFloat var(--dur, 7s) var(--ease-settle, ease) var(--delay, 0s) infinite alternate; }
.nw-auth-hero .sheet { aspect-ratio: 3 / 4; }
.nw-auth-hero .paper {
  width: 100%; height: 100%; border-radius: 3px;
  background: repeating-linear-gradient(180deg, transparent 0 14%, rgba(13, 21, 53, 0.1) 14% 15.5%), linear-gradient(160deg, #fff, #e9edf8);
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.5);
}
.nw-auth-hero .book-body { position: relative; width: 100%; border-radius: 6px 3px 3px 6px; }
.nw-auth-hero .book-body .nw-cover { width: 100%; border-radius: 6px 3px 3px 6px; }
.nw-auth-hero .book-spine,
.nw-auth-hero .book-sheen { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.nw-auth-hero .book-spine { inset-inline-end: auto; width: 6%; border-radius: 6px 0 0 6px; background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.18) 55%, rgba(0,0,0,.08)); }
.nw-auth-hero .book-sheen { background: linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 38%, rgba(0,0,0,.12) 100%); }
.nw-auth-hero .stack {
  position: absolute; bottom: 13%; inset-inline-end: 7%; z-index: 6;
  display: flex; flex-direction: column; align-items: flex-end; width: 44cqw;
  filter: drop-shadow(0 22px 26px rgba(3, 8, 30, 0.55));
}
.nw-auth-hero { --hero-inset: 20px; }
@media (min-width: 640px) { .nw-auth-hero { --hero-inset: 36px; } }
.nw-auth-hero .spine {
  position: relative; display: flex; align-items: stretch; height: 5.4cqw; overflow: hidden; border-radius: 3px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.nw-auth-hero .spine-accent { width: 3cqw; flex-shrink: 0; opacity: 0.9; }
.nw-auth-hero .spine-title {
  flex: 1; display: flex; align-items: center; min-width: 0; padding-inline: 2.2cqw;
  font-family: var(--font-display); font-size: 1.9cqw; font-weight: 700; letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nw-auth-hero.is-ar .spine-title { letter-spacing: normal; }
.nw-auth-hero .spine-pages { width: 2.4cqw; flex-shrink: 0; background: repeating-linear-gradient(180deg, #f4f1e8 0 2px, #dcd6c6 2px 3px); }
.nw-auth-hero .logo { position: absolute; top: var(--hero-inset); inset-inline-start: var(--hero-inset); z-index: 10; }
.nw-auth-hero .logo img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.nw-auth-hero .hello {
  position: absolute; bottom: var(--hero-inset); inset-inline-start: var(--hero-inset); z-index: 10;
  max-width: 62%; margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.15;
  text-shadow: 0 2px 18px rgba(3, 8, 30, 0.6);
}
@media (min-width: 640px) { .nw-auth-hero .hello { max-width: 46%; font-size: 32px; } }
.nw-auth-hero.is-ar .hello { line-height: 1.3; }
@media (min-width: 1024px) { .nw-auth-hero .hello { font-size: 36px; } }
@keyframes nwAccFloat { from { transform: translateY(0); } to { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .nw-auth-hero .float { animation: none; } }
.nw-auth .crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 0 0 20px; padding: 0; list-style: none;
  font: 400 13px/14px var(--font-sans); color: #52647d;
}
.nw-auth .crumbs li { display: contents; }
.nw-auth .crumbs a { color: #52647d; text-decoration: none; }
.nw-auth .crumbs a:hover { color: var(--primary); }
.nw-auth .crumbs [aria-current] { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: #000; }
.nw-auth .crumbs .sep { display: block; width: 14px; height: 14px; min-width: 14px; flex: 0 0 14px; line-height: 0; color: #52647d; }
.nw-auth-card {
  display: flex; flex-direction: column; gap: 24px;
  padding: 24px 20px; box-shadow: var(--shadow-brand-card);
}
@media (min-width: 640px) { .nw-auth-card { padding: 40px; } }
.nw-auth .nw-tabs { display: flex; align-items: flex-end; gap: 16px; margin: 0; border-bottom: 1px solid var(--border, #e7e5e4); }
.nw-auth .nw-tabs a { position: relative; padding: 12px 0; color: var(--muted-foreground, #52647d); text-decoration: none; font: 500 14px/1.43 var(--font-sans); }
.nw-auth .nw-tabs a:hover { color: #000; }
.nw-auth .nw-tabs a.on { color: var(--primary, #006f62); }
.nw-auth .nw-tabs a.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px;
  border-radius: 2px 2px 0 0; background: var(--grad);
}
.nw-auth .nw-auth-form { display: flex; flex-direction: column; gap: 20px; max-width: none; margin: 0; }
.nw-auth .nw-auth-form .auth-head { display: flex; flex-direction: column; gap: 4px; }
.nw-auth .nw-auth-form .auth-head h2 { font-family: var(--font-display); font-size: 22px; line-height: 1.3; }
.nw-auth .nw-auth-form .auth-head p { margin: 0; font-size: 14px; line-height: normal; font-weight: 400; color: var(--muted-foreground, #52647d); }
.nw-auth .nw-auth-form label.field { display: flex; flex-direction: column; gap: 0; min-width: 0; font-weight: 400; }
.nw-auth .nw-auth-form .lbl {
  display: flex; align-items: baseline; gap: 2px; margin-bottom: 8px;
  font: 500 14px var(--font-sans); color: #000;
}
.nw-auth .nw-auth-form .req { color: var(--destructive, #dc2626); }
.nw-auth .nw-auth-form .box {
  display: flex; align-items: center; gap: 8px; box-sizing: border-box; width: 100%; min-width: 0;
  height: var(--control-h, 36px); padding: 0 12px;
  border: 1px solid var(--input, rgba(16, 35, 63, 0.18)); border-radius: var(--radius-md, 12px);
  background: var(--input-background, #fff);
}
.nw-auth .nw-auth-form .box:hover { border-color: color-mix(in srgb, #000 18%, var(--input, rgba(16, 35, 63, 0.18))); }
.nw-auth .nw-auth-form .box:focus-within {
  border-color: var(--primary, #006f62); box-shadow: 0 0 0 3px var(--ring); background: var(--card, #fff);
}
.nw-auth .nw-auth-form .box input {
  flex: 1 1 auto; min-width: 0; width: auto; height: 100%; min-height: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; outline: none; background: transparent; box-shadow: none;
  font: 400 14px var(--font-sans); font-weight: 400; color: #000;
}
.nw-auth .nw-auth-form .box input:-webkit-autofill {
  -webkit-text-fill-color: #000; caret-color: #000;
  transition: background-color 99999s ease-out;
  box-shadow: 0 0 0 1000px #fff inset;
}
.nw-auth .nw-auth-form .box input::placeholder { color: var(--muted-foreground, #52647d); opacity: 1; }
.nw-auth .nw-auth-form .reveal {
  position: static; display: inline-flex; flex: none; align-items: center; justify-content: center;
  width: 16px; height: 16px; padding: 0; border: 0; background: none; cursor: pointer;
}
.nw-auth .nw-auth-form .reveal .eye-off { display: none; }
.nw-auth .nw-auth-form .reveal.is-off .eye-on { display: none; }
.nw-auth .nw-auth-form .reveal.is-off .eye-off { display: block; }
.nw-auth .nw-auth-form .hint { margin: 4px 0 0; font: 400 12px/18px var(--font-sans); color: var(--muted-foreground, #52647d); }
.nw-auth .nw-auth-form .auth-pass { display: flex; flex-direction: column; gap: 8px; }
.nw-auth .nw-auth-form .forgot { align-self: flex-end; margin: 0; color: #000; font: 600 13px var(--font-sans); text-decoration: none; }
.nw-auth .nw-auth-form .forgot:hover { text-decoration: underline; }
.nw-auth .nw-auth-form .switch {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0;
  font-size: 14px; line-height: normal; font-weight: 400; color: var(--muted-foreground, #52647d);
}
.nw-auth .nw-auth-form .switch a { color: #000; font-weight: 600; text-decoration: none; }
.nw-auth .nw-auth-form .switch a:hover { text-decoration: underline; }
.nw-auth .nw-auth-form .switch .nw-link {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: #000; font: inherit; font-weight: 600;
}
.nw-auth .nw-auth-form .switch .nw-link:hover { text-decoration: underline; }
.nw-auth .nw-auth-form .nw-check {
  display: flex; align-items: flex-start; gap: 8px; margin: 0;
  font-size: 13px; line-height: 1.5; color: var(--muted-foreground, #52647d); cursor: pointer;
}
.nw-auth .nw-auth-form .nw-check input { flex: none; width: 16px; height: 16px; margin-top: 2px; accent-color: #000; }
.nw-auth .nw-auth-form + .nw-auth-form { margin-top: 16px; }
.nw-auth .auth-foot {
  margin: 0; padding-top: 16px; border-top: 1px solid var(--border, #e7e5e4);
  font-size: 12px; line-height: 1.5; color: var(--muted-foreground, #52647d); text-align: center;
}
.nw-auth .motifs { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.nw-auth .motifs .cloud, .nw-auth .motifs .bird { position: absolute; display: block; line-height: 0; }
.nw-auth .motifs .cloud { width: 36px; height: 15px; opacity: 0.24; }
.nw-auth .motifs .bird { width: 25px; height: 17px; opacity: 0.3; transform: rotate(-3deg); }
.nw-auth .motifs .bird-d { display: none; }
@media (min-width: 640px) {
  .nw-auth .motifs .cloud { width: 44px; height: 18px; }
}
@media (min-width: 1024px) {
  .nw-auth .motifs .cloud { width: 48px; height: 20px; }
  .nw-auth .motifs .bird-m { display: none; }
  .nw-auth .motifs .bird-d { display: block; width: 28px; height: 18px; }
}
.nw-auth .motifs .cloud { top: 29px; left: calc(1% + 145.4px); }
.nw-auth .motifs .bird { top: 33px; left: calc(46% + 64.4px); }
@media (min-width: 380px) {
  .nw-auth .motifs .cloud { top: 29px; left: calc(5% + 129.5px); }
  .nw-auth .motifs .bird { top: 33px; left: calc(64% - 2.6px); }
}
@media (min-width: 392px) {
  .nw-auth .motifs .cloud { top: 29px; left: calc(43% - 20px); }
  .nw-auth .motifs .bird { top: 33px; left: calc(60% + 13.2px); }
}
@media (min-width: 400px) {
  .nw-auth .motifs .cloud { top: 29px; left: calc(37% + 3.8px); }
  .nw-auth .motifs .bird { top: 33px; left: calc(62% + 5.3px); }
}
@media (min-width: 428px) {
  .nw-auth .motifs .cloud { top: 29px; left: calc(38% - 0.2px); }
  .nw-auth .motifs .bird { top: 33px; left: calc(62% + 6.2px); }
}
@media (min-width: 480px) {
  .nw-auth .motifs .cloud { top: 29px; left: calc(38% + 0.2px); }
  .nw-auth .motifs .bird { top: 31px; left: calc(63% + 2.2px); }
}
@media (min-width: 640px) {
  .nw-auth .motifs .cloud { top: 20px; left: calc(26% + 4px); }
  .nw-auth .motifs .bird { top: 35px; left: calc(74% - 2px); }
}
@media (min-width: 1024px) {
  .nw-auth .motifs .cloud { top: 31px; left: calc(27% + 1.4px); }
  .nw-auth .motifs .bird { top: 48px; left: calc(75% - 3px); }
}
@media (min-width: 1440px) {
  .nw-auth .motifs .cloud { top: 31px; left: calc(27% + 1.2px); }
  .nw-auth .motifs .bird { top: 48px; left: calc(75% - 4px); }
}
.sf-root[lang='ar'] .nw-auth .motifs .cloud { top: 19px; left: calc(99% - 178.4px); }
.sf-root[lang='ar'] .nw-auth .motifs .bird { top: 33px; left: calc(54% - 86.4px); }
@media (min-width: 380px) {
  .sf-root[lang='ar'] .nw-auth .motifs .cloud { top: 19px; left: calc(96% - 166.4px); }
  .sf-root[lang='ar'] .nw-auth .motifs .bird { top: 33px; left: calc(30% + 1px); }
}
@media (min-width: 392px) {
  .sf-root[lang='ar'] .nw-auth .motifs .cloud { top: 19px; left: calc(75% - 83.7px); }
  .sf-root[lang='ar'] .nw-auth .motifs .bird { top: 33px; left: calc(28% + 9px); }
}
@media (min-width: 400px) {
  .sf-root[lang='ar'] .nw-auth .motifs .cloud { top: 19px; left: calc(54% - 0.6px); }
  .sf-root[lang='ar'] .nw-auth .motifs .bird { top: 33px; left: calc(28% + 9.1px); }
}
@media (min-width: 428px) {
  .sf-root[lang='ar'] .nw-auth .motifs .cloud { top: 19px; left: calc(54% - 0.6px); }
  .sf-root[lang='ar'] .nw-auth .motifs .bird { top: 33px; left: calc(31% - 3.4px); }
}
@media (min-width: 480px) {
  .sf-root[lang='ar'] .nw-auth .motifs .cloud { top: 19px; left: calc(54% - 0.4px); }
  .sf-root[lang='ar'] .nw-auth .motifs .bird { top: 31px; left: calc(30% + 1px); }
}
@media (min-width: 640px) {
  .sf-root[lang='ar'] .nw-auth .motifs .cloud { top: 39px; left: calc(58% - 3px); }
  .sf-root[lang='ar'] .nw-auth .motifs .bird { top: 35px; left: calc(23% + 1px); }
}
@media (min-width: 1024px) {
  .sf-root[lang='ar'] .nw-auth .motifs .cloud { top: 21px; left: calc(66% + 0.9px); }
  .sf-root[lang='ar'] .nw-auth .motifs .bird { top: 48px; left: calc(23% + 3.6px); }
}
@media (min-width: 1440px) {
  .sf-root[lang='ar'] .nw-auth .motifs .cloud { top: 21px; left: calc(66% + 0.6px); }
  .sf-root[lang='ar'] .nw-auth .motifs .bird { top: 48px; left: calc(23% + 4.8px); }
}
.nw-auth .nw-auth-form .pass-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .nw-auth .nw-auth-form .pass-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nw-auth .nw-auth-form .nw-cta {
  position: relative; align-self: flex-start; justify-self: start; width: auto; height: 40px; margin: 0; padding: 0 24px;
  border: 1px solid transparent; border-radius: 12px; background: transparent; color: #000;
  font: 700 14px/1 var(--font-sans); white-space: nowrap; cursor: pointer;
  box-shadow: var(--shadow-brand-button);
}
.nw-auth .nw-auth-form .nw-cta::before {
  content: ''; position: absolute; inset: 0; padding: 2px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, #08bb9e 0%, #007c99 62%, #005a98 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.nw-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (min-width: 1024px) {
  .nw-product-grid { grid-template-columns: 280px minmax(0, 1fr) 320px; }
}
.nw-buy, .nw-panel { padding: 20px; }
.nw-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.nw-facts div {
  padding: 12px;
  border-radius: 14px;
  background: #fafaf9;
}
.nw-facts span { display: block; font-size: 12px; color: #78716c; }
.nw-facts strong { font-size: 14px; }
.nw-product .price { font-size: 28px; font-weight: 800; margin: 8px 0; }
.nw-product .price s { margin-inline-start: 8px; color: #a8a29e; font-size: 16px; font-weight: 500; }
.nw-gallery { display: grid; gap: 12px; }
.nw-gallery .nw-cover { width: 100%; border-radius: 16px; }
.nw-specs { margin-top: 28px; }
.nw-specs table { width: 100%; border-collapse: collapse; }
.nw-specs th, .nw-specs td { padding: 10px 0; border-bottom: 1px solid #f5f5f4; text-align: start; }
.nw-row { margin-top: 36px; }
.nw-row h2, .nw-specs h2, .nw-description h2 { margin: 0 0 14px; font-size: 20px; }
.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }

.nw-wish-page {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: var(--sf-main-pad);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.nw-wish-page .head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
}
.nw-wish-page .title-block { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nw-wish-page h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #000;
}
.sf-root[lang='ar'] .nw-wish-page h1 { line-height: 1.3; }
.nw-wish-page .sub { margin: 0; font-size: 13px; color: var(--muted-foreground); }
.nw-wish-body { min-width: 0; }
.nw-wish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nw-wish-grid > li { min-width: 0; }
.nw-wish-page .best { margin-top: 24px; min-width: 0; }
.nw-wish-page .nw-empty {
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 20px;
  box-shadow: 0 18px 55px rgba(35, 75, 120, 0.09);
  backdrop-filter: blur(18px) saturate(140%);
}
.nw-wish-page .nw-empty .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 32px;
}
.nw-wish-page .nw-empty .halo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(0, 90, 152, 0.08);
  border: 1.5px solid rgba(0, 90, 152, 0.15);
}
.nw-wish-page .nw-empty .halo svg { opacity: 0.7; }
.nw-wish-page .nw-empty .title { margin: 15px 0 6px; font: 700 15px var(--font-sans); color: #262626; }
.nw-wish-page .nw-empty .desc {
  max-width: 340px;
  margin: 13px 0 20px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted-foreground, #52647d);
}
.nw-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #000;
  font: 700 14px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-brand-button);
}
.nw-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(105deg, #08bb9e 0%, #007c99 62%, #005a98 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.nw-ring:hover { color: #000; text-decoration: none; }
.nw-ring:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.nw-ring:disabled::before { display: none; }
.nw-ring svg { width: 16px; height: 16px; }
.badge[hidden] { display: none; }
.sf-toasts {
  position: fixed;
  bottom: 24px;
  inset-inline: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}
@media (min-width: 640px) {
  .sf-toasts { inset-inline: auto 24px; }
  .nw-wish-page h1 { font-size: 28px; }
  .nw-wish-grid { grid-template-columns: repeat(auto-fill, minmax(192px, 1fr)); }
}
@media (min-width: 1024px) {
  .nw-wish-page h1 { font-size: 32px; }
}
@media (min-width: 1440px) {
  .nw-wish-grid { grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); }
}
.sf-toast {
  pointer-events: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 384px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font: 500 14px/1.4 var(--font-sans);
  color: #fff;
}
.sf-toast[data-variant='success'] { background: var(--success-ink); }
.sf-toast[data-variant='info'] { background: #000; }
.sf-toast .msg { flex: 1; min-width: 0; }
.sf-toast .x {
  flex: none;
  padding: 2px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
@media (max-width: 767.98px) {
  .nw-wish-page .nw-empty { border-radius: 18px; }
}

/* Listing page — same shell, type, chips, sort, sidebar and grid as nawras-store-web listing-page. */
.nw-list-page {
  width: 100%;
  max-width: var(--page-max-width);
  padding: var(--sf-main-pad);
  box-sizing: border-box;
}
.nw-list { display: flex; flex-direction: column; gap: 20px; }
.nw-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 400 13px/normal var(--font-sans);
  color: #52647d;
}
.nw-crumbs li { display: contents; }
.nw-crumbs .sep { flex: none; }
.nw-crumbs a.crumb { color: #52647d; text-decoration: none; }
.nw-crumbs a.crumb:hover { color: var(--primary); text-decoration: none; }
.nw-crumbs .current {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: #000;
}
.nw-list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.nw-list .controls { display: flex; align-items: center; gap: 8px; }
.nw-list .filters-btn {
  display: none;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: 600 13px var(--font-sans);
  cursor: pointer;
}
.nw-list .filters-btn .badge {
  position: static;
  top: auto;
  inset-inline-end: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 0;
  border-radius: 999px;
  background: var(--primary, #005a98);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}
.nw-list .filters-backdrop { display: none; }
.nw-filters .drawer-close {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.nw-filters .head-actions { display: flex; align-items: center; gap: 4px; }
.nw-list-head .title-block { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nw-list-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  color: #000;
}
.sf-root[lang='ar'] .nw-list-head h1 { font-weight: 700; line-height: 1.3; }
.nw-list-head .count { margin: 0; font-size: 13px; color: var(--muted-foreground); }
.nw-list .sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-foreground); }
.nw-list .sort label { white-space: nowrap; }
.nw-list .select-wrap { position: relative; display: inline-flex; }
.nw-list .sort select {
  box-sizing: border-box;
  height: 36px;
  padding-block: 4px;
  padding-inline: 12px 36px;
  border: 1px solid var(--input);
  border-radius: 12px;
  background: var(--input-background);
  color: #000;
  font: 400 14px/normal var(--font-sans);
  appearance: none;
  cursor: pointer;
}
.nw-list .select-chev {
  position: absolute;
  top: 50%;
  inset-inline-end: 13px;
  margin-top: -8px;
  pointer-events: none;
}
.nw-list .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nw-list .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  padding: 4px 12px;
  border: 1px solid rgba(0, 111, 98, 0.2);
  border-radius: 9999px;
  background: rgba(0, 111, 98, 0.08);
  color: #006f62;
  font: 600 12px/normal var(--font-sans);
  white-space: nowrap;
  text-decoration: none;
}
.nw-list .chip:hover { background: rgba(0, 111, 98, 0.12); color: #006f62; text-decoration: none; }
.nw-list .chip .x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-inline-end: -4px;
  border-radius: 50%;
}
.nw-list .clear-all {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 6px;
  color: #000;
  font: 600 13px var(--font-sans);
  text-decoration: none;
}
.nw-list .clear-all:hover { color: #000; text-decoration: underline; }
.nw-page .nw-listing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.nw-results { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.nw-list .nw-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.nw-filters {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 0 20px 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-brand-card);
}
.nw-filters .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 0 14px;
}
.nw-filters h2 { margin: 0; font: 700 16px/normal var(--font-display); color: #000; }
.nw-filters .head a {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 6px;
  color: #000;
  font: 600 12px var(--font-sans);
  text-decoration: none;
}
.nw-filters .head a:hover { color: #000; text-decoration: underline; }
.nw-filters .group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 10px;
  min-inline-size: 0;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.nw-filters .chev { display: inline-flex; }
.nw-filters .options { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.nw-filters .group-title { margin: 0; padding: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #000; }
.sf-root[lang='ar'] .nw-filters .group-title { letter-spacing: normal; }
.nw-filters .opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}
.nw-filters .opt:hover { color: #000; text-decoration: none; }
.nw-filters .opt .name { flex: 1; min-width: 0; }
.nw-filters .count { font-size: 12px; color: #52647d; }
.nw-filters .opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.nw-filters .box { display: block; width: 16px; height: 16px; flex: none; margin: 3px 3px 3px 4px; }
@media (max-width: 639.98px) {
  .nw-list-head .title-block { flex: 1 1 100%; }
  .nw-list .sort label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}
@media (min-width: 640px) {
  .nw-list-head h1 { font-size: 28px; }
  .nw-list .nw-grid { grid-template-columns: repeat(auto-fill, minmax(192px, 1fr)); }
}
@media (max-width: 1023.98px) {
  .nw-list .filters-btn { display: inline-flex; }
  .nw-filters { display: none; border: 0; border-radius: 0; box-shadow: none; }
  .nw-filters.is-open {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    z-index: 85;
    width: min(360px, 92vw);
    padding: 0 20px;
    overflow-y: auto;
    background: #fff;
    box-shadow: var(--shadow-brand-card);
  }
  .nw-filters .drawer-close { display: inline-flex; align-items: center; justify-content: center; }
  .nw-list .filters-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 84;
    border: 0;
    background: rgba(0, 0, 0, 0.4);
  }
}
@media (min-width: 1024px) {
  .nw-list-head h1 { font-size: 32px; }
  .nw-page .nw-listing { grid-template-columns: 272px minmax(0, 1fr); }
  .nw-filters {
    position: sticky;
    top: calc(var(--sf-header-h, 117px) + 7px);
    max-height: calc(100dvh - var(--sf-header-h, 117px) - 23px);
    overflow-y: auto;
  }
}
@media (min-width: 1440px) {
  .nw-page .nw-listing { grid-template-columns: 300px minmax(0, 1fr); }
  .nw-list .nw-grid { grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); }
}

.sf-cart-page {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: var(--sf-main-pad, 20px 16px 56px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sf-cart-page .head { display: flex; flex-direction: column; gap: 4px; }
.sf-cart-page .head h1 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 700; }
.sf-root[lang='ar'] .sf-cart-page .head h1 { line-height: 1.3; }
.sf-cart-page .count { margin: 0; font-size: 13px; color: var(--muted-foreground); }
.sf-cart-page .grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.sf-cart-page .items { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 640px) {
  .sf-cart-page .head h1 { font-size: 28px; }
}
@media (min-width: 1024px) {
  .sf-cart-page .head h1 { font-size: 32px; }
  .sf-cart-page .grid { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (min-width: 1440px) {
  .sf-cart-page .grid { grid-template-columns: minmax(0, 1fr) 400px; }
}
.sf-cart-page .card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-brand-card);
  backdrop-filter: blur(18px) saturate(140%);
}
.sf-cart-page .lines-card { overflow: hidden; }
.sf-cart-page .free-band { display: flex; flex-direction: column; gap: 8px; padding: 16px 24px; background: var(--muted); border-bottom: 1px solid var(--border); }
.sf-cart-page .free-text { margin: 0; font-size: 13px; font-weight: 600; color: #000; }
.sf-cart-page .is-unlocked .free-text { color: var(--success-ink); }
.sf-cart-page .free-band .track { display: block; height: var(--size-progress-h); border-radius: 999px; background: var(--accent); overflow: hidden; }
.sf-cart-page .free-band .fill { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.sf-cart-page .lines { list-style: none; margin: 0; padding: 0 24px; }
.sf-cart-page .line { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.sf-cart-page .line:last-child { border-bottom: 0; }
.sf-cart-page .line .cover { width: 84px; flex: none; }
.sf-cart-page .line .cover .nw-cover { width: 84px; border-radius: 6px; }
.sf-cart-page .line .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sf-cart-page .line .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.sf-cart-page .line .info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 220px; }
.sf-cart-page .line .meta { font-size: 11px; font-weight: 500; color: var(--muted-foreground); }
.sf-cart-page .line .author, .sf-cart-page .line .unit { font-size: 13px; color: var(--muted-foreground); }
.sf-cart-page .line .unit { font-size: 12px; }
.sf-cart-page .line .old { font-size: 11px; color: var(--muted-foreground); text-decoration: line-through; }
.sf-cart-page .line .title { font: 700 15px/1.4 var(--font-sans); color: #000; text-decoration: none; }
.sf-cart-page .line .title:hover { color: var(--primary, #005a98); }
.sf-cart-page .line .stock { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--success-ink); }
.sf-cart-page .line .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.sf-cart-page .line .prices { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.sf-cart-page .line .line-total { font-family: var(--font-display); font-size: 16px; font-weight: 700; white-space: nowrap; }
.sf-cart-page .line .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 6px; }
.sf-cart-page .stepper {
  display: inline-flex; align-items: center; height: 34px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.sf-cart-page .stepper form, .sf-cart-page .line .actions form { margin: 0; }
.sf-cart-page .stepper button {
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #000; cursor: pointer;
}
.sf-cart-page .stepper form:first-child button { border-start-start-radius: 9px; border-end-start-radius: 9px; }
.sf-cart-page .stepper form:last-of-type button { border-start-end-radius: 9px; border-end-end-radius: 9px; }
.sf-cart-page .stepper button:hover:not(:disabled) { background: var(--accent); }
.sf-cart-page .later, .sf-cart-page .remove {
  padding: 0; border: 0; background: none; cursor: pointer; font: 600 13px var(--font-sans); color: #000;
}
.sf-cart-page .later:hover { text-decoration: underline; }
.sf-cart-page .remove { color: var(--muted-foreground); font-weight: 500; }
.sf-cart-page .remove:hover { color: var(--destructive); }
.sf-cart-page .divider { width: 1px; height: 14px; background: var(--border); }
.sf-cart-page .summary { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; overflow: hidden; }
@media (min-width: 640px) {
  .sf-cart-page .summary { position: sticky; top: 124px; }
}
.sf-cart-page .accent { position: absolute; top: 0; inset-inline: 0; height: var(--size-accent-bar); background: var(--grad); }
.sf-cart-page .summary h2 { margin: 0 0 4px; font-size: 18px; line-height: normal; }
.sf-root[lang='ar'] .sf-cart-page .summary h2 { line-height: 1.3; }
.sf-cart-page dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.sf-cart-page .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sf-cart-page .row dd { margin: 0; }
.sf-cart-page .savings { color: var(--success-ink); }
.sf-cart-page .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--border); }
.sf-cart-page .total span { font-size: 15px; font-weight: 700; }
.sf-cart-page .total strong { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.sf-cart-page .vat { margin: 0; font-size: 12px; color: var(--muted-foreground); }
.sf-cart-page .btn {
  position: relative; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  height: 40px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px;
  background: #fff; color: #000; font: 700 14px/1 var(--font-sans); text-decoration: none;
  box-shadow: var(--shadow-brand-button);
}
.sf-cart-page .btn::before {
  content: ''; position: absolute; inset: 0; padding: 2px; border-radius: inherit;
  background: var(--nawras-button-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude; pointer-events: none;
}
.sf-cart-page .btn.ghost {
  box-shadow: none; border-color: rgba(16, 35, 63, 0.16); background: rgba(255, 255, 255, 0.86); font-weight: 500;
}
.sf-cart-page .btn.ghost::before { content: none; }
.sf-cart-page .empty { padding: 32px; }
.sf-cart-page .saved { padding: 20px 24px; }
.sf-cart-page .saved ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sf-cart-page .saved li { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.sf-cart-page .saved button { border: 0; background: none; font-weight: 700; cursor: pointer; }
.sf-cart-page .rec { margin-top: 8px; }
.sf-cart-page .rec .track { display: flex; gap: 16px; overflow-x: auto; height: auto; background: none; }
.sf-cart-page .rec .track > .slot { flex: 0 0 var(--row-card-w); }

.nw-account {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: var(--sf-main-pad, 20px 16px 56px);
  box-sizing: border-box;
}
.nw-account .crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 0 0 20px; padding: 0; list-style: none;
  font: 400 13px var(--font-sans); color: #52647d;
}
.nw-account .crumbs li { display: contents; }
.nw-account .crumbs a { color: #52647d; text-decoration: none; }
.nw-account .crumbs [aria-current] { font-weight: 500; color: #000; }
.nw-account .crumbs .sep { display: block; color: #52647d; }
.nw-account-card {
  display: flex; flex-direction: column; gap: 20px;
  max-width: 640px; padding: 32px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 20px;
  box-shadow: var(--shadow-brand-card);
}
.nw-account h1 { margin: 0; font-family: var(--font-display); font-size: 28px; }
.nw-account h2 { margin: 0 0 8px; font-size: 14px; color: #52647d; }
.nw-account .mail { margin: 4px 0 0; color: #52647d; }
.nw-account .links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nw-account .links a { color: #000; font-weight: 600; text-decoration: none; }
.nw-account .logout {
  align-self: flex-start; height: 40px; padding: 0 24px;
  border: 1px solid var(--border, #e7e5e4); border-radius: 12px;
  background: #fff; font: 700 14px var(--font-sans); cursor: pointer;
}
.nw-acc-nav { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.nw-acc-nav .who { margin: 0; font-weight: 700; }
.nw-acc-nav .mail, .nw-acc-nav .group { margin: 0; color: #52647d; font-size: 13px; }
.nw-acc-nav ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.nw-acc-nav a { color: #000; font-weight: 600; text-decoration: none; }
.nw-acc-nav a[aria-current='page'] { color: var(--primary, #006f62); }

.nw-confirm {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: var(--sf-main-pad, 20px 16px 56px);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}
.nw-confirm .card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 760px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-brand-card);
  backdrop-filter: blur(18px) saturate(140%);
}
.nw-confirm .accent { position: absolute; top: 0; inset-inline: 0; height: var(--size-accent-bar); background: var(--grad); }
.nw-confirm .head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.nw-confirm .disc {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 999px;
  background: color-mix(in srgb, var(--success-ink) 14%, #fff);
  color: var(--success-ink);
}
.nw-confirm h1 { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.25; }
.sf-root[lang='ar'] .nw-confirm h1 { line-height: 1.3; }
.nw-confirm .sub { margin: 0; max-width: 460px; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.nw-confirm .facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; }
.nw-confirm .tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--muted); }
.nw-confirm .tile dt { font-size: 11px; font-weight: 700; color: #000; }
.nw-confirm .tile dd { margin: 0; }
.nw-confirm .tile .v { font-size: 14px; font-weight: 600; }
.nw-confirm .tile .m { font-size: 12px; color: var(--muted-foreground); }
.nw-confirm .items-block { display: flex; flex-direction: column; gap: 12px; }
.nw-confirm .label { margin: 0; font-size: 11px; font-weight: 700; }
.nw-confirm .items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.nw-confirm .item { display: flex; align-items: center; gap: 12px; }
.nw-confirm .cover { width: 44px; flex: none; }
.nw-confirm .cover .nw-cover { width: 44px; border-radius: 4px; }
.nw-confirm .cover.is-blank { display: block; height: 66px; border-radius: 4px; background: var(--muted); }
.nw-confirm .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nw-confirm .title { font-size: 14px; font-weight: 600; }
.nw-confirm .qty { font-size: 12px; color: var(--muted-foreground); }
.nw-confirm .line { font-size: 14px; font-weight: 700; white-space: nowrap; }
.nw-confirm .learn { font-size: 13px; font-weight: 700; color: #005a98; }
.nw-confirm .totals { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--border); }
.nw-confirm .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.nw-confirm .row dd { margin: 0; }
.nw-confirm .savings { color: var(--success-ink); }
.nw-confirm .row.total { align-items: baseline; padding-top: 8px; border-top: 1px solid var(--border); }
.nw-confirm .total dt { font-size: 15px; font-weight: 700; }
.nw-confirm .amount { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.nw-confirm .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.nw-confirm .btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 999px;
  background: #fff; color: #000; font: 700 14px/1 var(--font-sans); text-decoration: none;
  box-shadow: var(--shadow-brand-button);
}
.nw-confirm .btn::before {
  content: ''; position: absolute; inset: 0; padding: 2px; border-radius: inherit;
  background: var(--nawras-button-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude; pointer-events: none;
}
.nw-confirm .btn.ghost { box-shadow: none; border-color: rgba(16, 35, 63, 0.16); font-weight: 500; }
.nw-confirm .btn.ghost::before { content: none; }
@media (max-width: 767.98px) { .nw-confirm .card { border-radius: 18px; } }
@media (min-width: 640px) {
  .nw-confirm .card { padding: 48px; }
  .nw-confirm h1 { font-size: 28px; }
  .nw-confirm .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { .nw-confirm h1 { font-size: 32px; } }

/* Homepage sections below the hero: grade stepper, promos, new arrivals, people, shelf books.
   Values measured from the v5 prototype (body.nawrasized) and the storefront components that already match it. */

.sf-people { margin-top: 0; }

.sf-shelf {
  --s: 1;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
  isolation: isolate;
  color: #000;
  line-height: normal;
}
.sf-shelf.is-rtl { --s: -1; }
.sf-shelf::before {
  content: '';
  position: absolute;
  inset: -12px;
  z-index: -1;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 55px rgba(35, 75, 120, 0.09);
  pointer-events: none;
}
.sf-shelf:is(:hover, :focus-within)::before {
  border-color: rgba(16, 35, 63, 0.18);
  box-shadow: 0 22px 65px rgba(35, 75, 120, 0.12);
}
.sf-shelf .stage { position: relative; perspective: 1200px; }
.sf-shelf .floor {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -12px;
  height: 22px;
  background: radial-gradient(closest-side, rgba(13, 21, 53, 0.34), transparent);
  opacity: 0.6;
}
.sf-shelf .book {
  position: relative;
  border-radius: 2px 6px 6px 2px;
  transform-origin: left center;
  transition: transform 0.55s var(--ease), box-shadow 0.55s;
  box-shadow:
    calc(3px * var(--s)) 1px 0 -1px #f6f3ec,
    calc(5px * var(--s)) 2px 0 -2px #e4ded0,
    calc(6px * var(--s)) 18px 28px -16px rgba(13, 21, 53, 0.42);
}
.sf-shelf.is-rtl .book { transform-origin: right center; border-radius: 6px 2px 2px 6px; }
.sf-shelf:hover .book { transform: rotateY(calc(-18deg * var(--s))) translateY(-8px); }
.sf-shelf .cover-link { display: block; color: inherit; text-decoration: none; }
.sf-arrivals .sf-shelf .cover-link { padding: 0; }
.sf-shelf .wish {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #000;
}
.sf-shelf form { margin: 0; }
.sf-shelf .add {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  cursor: pointer;
  box-shadow: -3px 0 12px rgba(8, 187, 158, 0.25), 3px 0 12px rgba(0, 90, 152, 0.2);
}
.sf-shelf .add::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--nawras-button-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.sf-shelf .sold-out {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 10px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 21, 53, 0.86);
  color: #fff;
  font: 600 11px/1 var(--font-sans);
}
.sf-shelf .meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sf-shelf .m-kicker {
  color: #52647d;
  font: 600 10.5px/1.4 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-root[lang='ar'] .sf-shelf .m-kicker { letter-spacing: normal; }
.sf-shelf .m-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #000;
  font: 700 16px/1.3 var(--font-display);
  text-decoration: none;
}
.sf-shelf .m-title:hover { color: #000; text-decoration: none; }
.sf-shelf .m-author {
  overflow: hidden;
  color: #52647d;
  font: 400 13px/1.4 var(--font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-shelf .price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 8px;
  margin-top: 6px;
}
.sf-shelf .price { font: 700 22px/1.3 var(--font-display); color: #000; }
.sf-shelf .rating { display: flex; align-items: center; gap: 4px; font: 600 12.5px var(--font-sans); }
.sf-shelf .star { margin-inline-end: 2px; color: #f59e0b; }
.sf-shelf .stock { display: flex; align-items: center; gap: 6px; color: #52647d; font: 500 12px var(--font-sans); }
.sf-shelf .dot { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.sf-shelf .dot.out { background: #dc2626; }

.sf-grades {
  --base: 84px;
  --step: 13px;
  padding: clamp(16px, 2vw, 32px) 0;
  color: #000;
  scroll-margin-top: 130px;
}
.sf-grades .head,
.sf-arrivals .head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
}
.sf-grades .intro,
.sf-arrivals .intro { max-width: 720px; }
.sf-grades .kicker,
.sf-arrivals .kicker {
  position: static;
  color: #000;
  font: 600 11px/1.4 var(--font-sans);
  letter-spacing: normal;
  text-transform: uppercase;
}
.sf-grades .h2,
.sf-arrivals .h2 {
  margin: 12px 0 0;
  color: #000;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1.15;
}
.sf-root[lang='en'] .sf-grades .h2,
.sf-root[lang='en'] .sf-arrivals .h2 { font-weight: 500; line-height: 1.04; }
.sf-grades .desc {
  max-width: 380px;
  margin: 0;
  color: #52647d;
  font: 400 15px/1.6 var(--font-sans);
}
.sf-grades .scroller {
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sf-grades .inner { min-width: 680px; }
.sf-grades .stairs {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  height: calc(var(--base) + 12 * var(--step) + 4px);
}
.sf-grades .step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  box-sizing: border-box;
  height: calc(var(--base) + var(--g) * var(--step));
  padding: 12px 10px;
  border: 0;
  border-radius: 14px 14px 4px 4px;
  background: #fff;
  color: #000;
  text-align: start;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(16, 35, 63, 0.1), 0 8px 24px rgba(35, 75, 120, 0.08);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s;
}
.sf-grades .step[aria-checked='true'] { transform: translateY(-10px); }
.sf-grades .step[aria-checked='true']::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--nawras-button-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.sf-grades .num {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  line-height: 1;
  background: var(--nawras-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.sf-grades .step.kg-ar .num { font-size: clamp(13px, 1.3vw, 19px); }
.sf-grades .count { color: #000; font: 500 10.5px/1.3 var(--font-sans); }
.sf-grades .rule { height: 2px; background: #0d1535; }
.sf-grades .stages {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.sf-grades .stage {
  padding-inline-start: 8px;
  border-inline-start: 1px solid rgba(13, 21, 53, 0.2);
  color: #000;
  font: 600 10.5px/1.3 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sf-grades .detail {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  margin-top: clamp(36px, 5vw, 64px);
}
.sf-grades .sel {
  display: flex;
  flex: 1 1 220px;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
}
.sf-grades .big {
  color: #000;
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 700;
  line-height: 0.9;
}
.sf-grades .bar { width: 64px; height: 6px; border-radius: 999px; }
.sf-grades .label { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.sf-grades .titles { color: #52647d; font: 400 14px var(--font-sans); }
.sf-grades .see {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 40px;
  margin-top: 8px;
  padding: 0 18px;
  border: 1px solid rgba(16, 35, 63, 0.16);
  border-radius: 14px;
  background: #fff;
  color: #000;
  font: 700 14px var(--font-sans);
  text-decoration: none;
  box-shadow: var(--shadow-brand-button);
}
.sf-grades .see::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--nawras-button-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.sf-grades .see:hover { color: #000; text-decoration: none; }
.sf-grades .books {
  display: grid;
  flex: 999 1 520px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 28px;
  align-items: start;
  min-width: 0;
}
.sf-grades .books[hidden] { display: none; }
.sf-grades .books > :nth-child(n + 5) { display: none; }
@media (min-width: 1440px) {
  .sf-grades .books { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sf-grades .books > :nth-child(5) { display: flex; }
}

.sf-promos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sf-promos .promo {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 55px rgba(35, 75, 120, 0.09);
}
.sf-promos .tile {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #000;
}
.sf-promos .text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.sf-promos .eyebrow { color: #000; font: 700 11px/normal var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; }
.sf-promos h3 { margin: 0; color: #000; font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.3; }
.sf-promos p { margin: 0; color: #52647d; font: 400 14px var(--font-sans); }
.sf-promos .ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 14px;
  background: #fff;
  color: #000;
  font: 700 14px var(--font-sans);
  text-decoration: none;
  box-shadow: var(--shadow-brand-button);
}
.sf-promos .ring.ghost { height: 32px; padding: 0 12px; }
.sf-promos .ring::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--nawras-button-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.sf-promos .ring:hover { color: #000; text-decoration: none; }

.sf-arrivals {
  margin-inline: calc(-1 * var(--sf-pad));
  color: #000;
}
.sf-arrivals .band {
  position: relative;
  inset: auto;
  display: block;
  padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 6vw, 80px);
  background: #f7fbff;
}
.sf-arrivals .container {
  box-sizing: border-box;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--sf-pad);
}
.sf-arrivals .desc { max-width: 380px; margin: 14px 0 0; color: #52647d; font: 400 15px/1.6 var(--font-sans); }
.sf-arrivals .nav { display: flex; gap: 8px; }
.sf-arrivals .arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(13, 21, 53, 0.16);
  border-radius: 50%;
  background: #fff;
  color: #000;
  cursor: pointer;
}
.sf-arrivals .arrow:hover { background: #0d1535; color: #fff; }
.sf-root[lang='ar'] .sf-arrivals .arrow svg { transform: scaleX(-1); }
.sf-arrivals .track {
  --x: max(var(--sf-pad), calc((100% - 1600px) / 2 + var(--sf-pad)));
  display: flex;
  align-items: flex-start;
  gap: clamp(22px, 2.6vw, 40px);
  padding: 36px var(--x) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--x);
  scrollbar-width: none;
}
.sf-arrivals .item {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 16px;
  width: clamp(178px, 17vw, 226px);
  scroll-snap-align: start;
}
.sf-arrivals .stamp {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #000;
  font: 500 11px/1 var(--font-sans);
}
.sf-arrivals .dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00cf8f;
  box-shadow: 0 0 0 4px rgba(0, 207, 143, 0.18);
}
.sf-arrivals .when { white-space: nowrap; }
.sf-arrivals .line { flex: 1; height: 1px; background: rgba(13, 21, 53, 0.14); }

.sf-people .card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: auto;
  padding: 24px;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 55px rgba(35, 75, 120, 0.09);
}
.sf-people .authors { gap: 16px; }
.sf-people .authors h2 { margin: 0; }
.sf-people { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sf-people h2 {
  margin: 0 0 8px;
  color: #000;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.sf-people .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.sf-people .author,
.sf-people .pub { display: flex; align-items: center; gap: 12px; color: #000; text-decoration: none; }
.sf-people .author { box-sizing: border-box; padding: 10px; border: 1px solid transparent; border-radius: 12px; }
.sf-people .author:hover { background: #f3f9fb; color: #000; text-decoration: none; }
.sf-people .initials,
.sf-people .square {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  color: #000;
}
.sf-people .initials { width: 40px; height: 40px; border-radius: 50%; font: 700 14px var(--font-sans); }
.sf-people .square { width: 32px; height: 32px; border-radius: 10px; font: 700 13px var(--font-display); }
.sf-people .initials::before,
.sf-people .square::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--nawras-button-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.sf-people .who { display: flex; flex-direction: column; min-width: 0; }
.sf-people .name { font-size: 14px; font-weight: 600; }
.sf-people .meta,
.sf-people .pcount { color: #52647d; font-size: 12px; font-weight: 400; }
.sf-people .pub { padding: 10px 4px; border-top: 1px solid rgba(16, 35, 63, 0.1); }
.sf-people .pname { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.sf-people .pub:hover { color: #006f62; text-decoration: none; }

.sf-root[lang='ar'] .sf-grades .stage,
.sf-root[lang='ar'] .sf-promos .eyebrow { letter-spacing: normal; }
.sf-root[lang='ar'] .sf-grades .h2,
.sf-root[lang='ar'] .sf-arrivals .h2,
.sf-root[lang='ar'] .sf-grades .big,
.sf-root[lang='ar'] .sf-grades .label,
.sf-root[lang='ar'] .sf-grades .num,
.sf-root[lang='ar'] .sf-people h2 { font-weight: 700; line-height: 1.3; }

@media (max-width: 1023.98px) {
  .sf-grades { --base: 70px; --step: 9px; }
  .sf-grades .books { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-grades .books > :nth-child(n + 4) { display: none; }
  .sf-people { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639.98px) {
  .sf-promos { grid-template-columns: minmax(0, 1fr); }
  .sf-grades .books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-shelf::before { border-radius: 18px; }
}

/* Product overview. Ported from nawras-store-web details page. */

.pd {
  display: flex;
  flex-direction: column;
  gap: 64px;
  min-width: 0;
}
.pd p { margin: 0; }
.pd-top { display: flex; flex-direction: column; gap: 20px; }

.pd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'g' 'i' 'b';
  align-items: start;
  gap: 20px;
}
.pd-gallery { grid-area: g; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pd-info { grid-area: i; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pd-buy { grid-area: b; }

.pd-stage[hidden] { display: none; }
.pd-stage {
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  padding: 40px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 20px;
  box-shadow: 0 18px 55px rgba(35, 75, 120, 0.09);
  backdrop-filter: blur(18px) saturate(140%);
}
.pd-stage-cover { width: 100%; max-width: 280px; }
.pd-tabs { display: flex; justify-content: center; gap: 10px; }
.pd-tab {
  display: block;
  width: 64px;
  box-sizing: border-box;
  padding: 6px;
  border: 2px solid rgba(16, 35, 63, 0.1);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.pd-tab[aria-selected='true'] {
  border-color: #006f62;
  box-shadow: 0 0 0 3px rgba(8, 187, 158, 0.25);
}
.pd-thumb { display: block; width: 48px; }
.pd-caption { margin: 0; text-align: center; font-size: 12px; color: #52647d; }

.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-tag-link { display: inline-flex; text-decoration: none; }
.pd-badge {
  --tone: #153ed5;
  --ink: color-mix(in srgb, var(--tone) 58%, black 28%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 2px 8px;
  border: 1px solid color-mix(in srgb, var(--tone) 22%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--tone) 14%, #fff);
  color: var(--ink);
  font: 500 12px/1.4 var(--font-sans);
  white-space: nowrap;
}
.pd-tags .pd-badge[data-tone='info'] { --tone: #006f62; --ink: #006f62; }
.pd-badge[data-tone='teal'] { --tone: #08bb9e; --ink: #006f62; }
.pd-badge[data-tone='warning'] { --tone: #f59e0b; --ink: #8a5300; }
.pd-badge[data-tone='success'] { --tone: #16a34a; --ink: #166534; }
.pd-badge-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.pd-h1 {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.25;
  color: #000;
  text-wrap: balance;
}
.sf-root[lang='ar'] .pd-h1 { font-weight: 700; line-height: 1.3; }
.pd .grad-word {
  background: var(--nawras-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.pd-sub { font-size: 16px; color: #52647d; }
.pd-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: #52647d; }
.pd-person { font: 600 14px var(--font-sans); color: #000; text-decoration: none; }
.pd-person:hover { text-decoration: underline; }
.pd-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  color: #000;
  text-decoration: none;
}
.pd-rating-value { font-size: 14px; font-weight: 700; }
.pd-rating-count { font-size: 13px; }
.pd-rule { height: 1px; margin: 0; border: 0; background: rgba(16, 35, 63, 0.1); }
.pd-desc { font-size: 15px; line-height: 1.7; color: #52647d; }
.pd-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 0; }
.pd-fact { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #f3f9fb; }
.pd-fact dt { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #000; }
.sf-root[lang='ar'] .pd-fact dt { letter-spacing: normal; }
.pd-fact dd { margin: 0; font-size: 14px; font-weight: 600; color: #000; }

.pd-buy {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 20px;
  box-shadow: 0 18px 55px rgba(35, 75, 120, 0.09);
  backdrop-filter: blur(18px) saturate(140%);
}
.pd-buy form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.pd-buy form + form { margin-top: -8px; }
.pd-bar {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--grad);
}
.pd-price { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pd-price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pd-price .now { font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1.2; color: #000; }
.pd-price .was { font-size: 14px; color: #52647d; text-decoration: line-through; }
.pd-vat, .pd-muted { font-size: 12px; color: #52647d; }
.pd-stock {
  --dot: #16a34a;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #15803d;
}
.pd-stock[data-stock='low_stock'] { --dot: #b45309; color: #8a5300; }
.pd-stock[data-stock='out_of_stock'] { --dot: #dc2626; color: #dc2626; }
.pd-stock .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--dot); }
.pd-delivery { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 12px; background: #f3f9fb; }
.pd-drow { display: flex; align-items: flex-start; gap: 10px; color: #000; }
.pd-eta { font-size: 13px; font-weight: 600; color: #000; }
.pd-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-qty-label { font-size: 13px; font-weight: 600; color: #52647d; }
.pd-stepper {
  display: inline-flex;
  align-items: center;
  height: 40px;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 12px;
  background: #fff;
}
.pd-stepper .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
}
.pd-stepper .step:disabled { opacity: 0.4; cursor: not-allowed; }
.pd-stepper .value { min-width: 36px; text-align: center; font-size: 14px; font-weight: 600; }
.pd-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #000;
  font: 700 14px/1 var(--font-sans);
  cursor: pointer;
  box-shadow: -3px 0 12px rgba(8, 187, 158, 0.25), 3px 0 12px rgba(0, 90, 152, 0.2);
}
.pd-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(105deg, #08bb9e 0%, #007c99 62%, #005a98 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.pd-btn.outline {
  border-color: rgba(16, 35, 63, 0.16);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 500;
  box-shadow: none;
}
.pd-btn.outline::before { content: none; }
.pd-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.pd-btn:disabled::before { background: rgba(16, 35, 63, 0.3); }

.pd-fbt, .pd-card, .pd-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 20px;
  box-shadow: 0 18px 55px rgba(35, 75, 120, 0.09);
  backdrop-filter: blur(18px) saturate(140%);
}
.pd-card, .pd-summary { gap: 14px; }
.pd-h2 { margin: 0; font-size: 20px; font-weight: 500; color: #000; }
.sf-root[lang='ar'] .pd-h2 { font-weight: 700; line-height: 1.3; }
.pd-card .pd-h2, .pd-summary .pd-h2 { font-size: 18px; }
.pd-fbt-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.pd-fbt-covers, .pd-fbt-list, .pd-highlights, .pd-hist { margin: 0; padding: 0; list-style: none; }
.pd-fbt-covers { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pd-fbt-cover { display: flex; align-items: center; gap: 12px; }
.pd-plus { width: 22px; text-align: center; font-size: 22px; color: #52647d; }
.pd-cover-link { display: block; width: 96px; transition: opacity 0.2s; }
.pd-cover-link.off { opacity: 0.35; }
.pd-fbt-total { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 200px; }
.pd-fbt-total .pd-btn { width: auto; min-width: 180px; }
.pd-total-label { font-size: 13px; color: #52647d; }
.pd-amount { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: #000; }
.pd-fbt-list { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(16, 35, 63, 0.1); }
.pd-fbt-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.pd-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: #000; }
.pd-check.is-disabled { cursor: default; }
.pd-check.is-disabled span { opacity: 0.5; }
.pd-check input { width: 16px; height: 16px; accent-color: #006f62; }
.pd-item-price { font-size: 14px; font-weight: 700; }

.pd-about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.pd-highlights { display: flex; flex-direction: column; gap: 14px; }
.pd-highlights li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.6; color: #52647d; }
.pd-checkring {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
}
.pd-checkring::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(105deg, #08bb9e 0%, #007c99 62%, #005a98 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.pd-specs { display: flex; flex-direction: column; margin: 0; }
.pd-spec { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 9px 12px; border-radius: 8px; font-size: 13px; }
.pd-spec:nth-child(odd) { background: #f3f9fb; }
.pd-spec dt { color: #52647d; }
.pd-spec dd { margin: 0; font-weight: 500; color: #000; }

.pd-reviews {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  scroll-margin-top: 130px;
}
.pd-reviews:focus { outline: none; }
.pd-score { display: flex; align-items: center; gap: 14px; }
.pd-score-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.pd-score-meta { display: flex; flex-direction: column; gap: 4px; }
.pd-count { font-size: 12px; color: #52647d; }
.pd-hist { display: flex; flex-direction: column; gap: 8px; }
.pd-hist-row {
  display: grid;
  min-height: 16px;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #52647d;
}
.pd-track { display: block; height: 8px; border-radius: 999px; background: #edf9f6; overflow: hidden; }
.pd-fill { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.pd-pct { text-align: end; }
.pd-review-list { display: flex; flex-direction: column; gap: 12px; }
.pd-review {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(35, 75, 120, 0.09);
}
.pd-review-head, .pd-who, .pd-stars-row { display: flex; align-items: center; gap: 8px; }
.pd-review-head { flex-wrap: wrap; justify-content: space-between; }
.pd-who { gap: 10px; }
.pd-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}
.pd-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(105deg, #08bb9e 0%, #007c99 62%, #005a98 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.pd-name { font-size: 14px; font-weight: 600; }
.pd-date { font-size: 12px; color: #52647d; }
.pd-review-title { margin: 0; font: 700 14px var(--font-sans); color: #000; }
.pd-text { font-size: 14px; line-height: 1.65; color: #52647d; }
.pd-helpful {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #52647d;
  font: 600 12px var(--font-sans);
  cursor: pointer;
}
.pd-helpful[aria-pressed='true'] { border-color: #006f62; background: color-mix(in srgb, #006f62 8%, #fff); color: #000; }

.pd-stars {
  --star-pitch: calc(var(--star-size) * 0.835 + 1px);
  position: relative;
  display: inline-block;
  flex: none;
  height: var(--star-size);
  line-height: 1;
  vertical-align: middle;
}
.sf-root[lang='ar'] .pd-stars { --star-pitch: calc(var(--star-size) * 0.835); }
.pd-stars .defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.pd-stars .row, .pd-stars .fill { display: flex; flex-direction: row; height: 100%; }
.pd-stars .fill { position: absolute; top: 0; inset-inline-start: 0; overflow: hidden; }
.pd-stars .slot { position: relative; flex: none; width: var(--star-pitch); height: 100%; }
.pd-stars .slot svg { position: absolute; top: 0; left: 50%; width: var(--star-size); height: var(--star-size); margin-left: calc(var(--star-size) / -2); }

.sf-toasts {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  inset-inline: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}
.sf-toast {
  pointer-events: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 384px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--success-ink, #15803d);
  color: #fff;
  font: 500 14px/1.4 var(--font-sans);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.sf-toast[data-variant='info'] { background: #000; }
.sf-toast .msg { flex: 1; min-width: 0; }
.sf-toast .x { flex: none; padding: 2px; border: 0; background: transparent; color: inherit; cursor: pointer; }
@media (min-width: 640px) {
  .sf-toasts { inset-inline: auto 24px; }
}

@media (min-width: 640px) {
  .pd-hero { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); grid-template-areas: 'g i' 'g b'; gap: 28px; }
  .pd-gallery, .pd-buy { position: sticky; top: 124px; }
}
@media (min-width: 1024px) {
  .pd-hero { grid-template-columns: minmax(0, 360px) minmax(0, 1fr) minmax(0, 320px); grid-template-areas: 'g i b'; gap: 40px; }
  .pd-reviews { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
}
@media (min-width: 1440px) {
  .pd-hero { grid-template-columns: minmax(0, 420px) minmax(0, 1fr) minmax(0, 360px); }
  .pd-reviews { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
}
@media (max-width: 1023.98px) {
  .pd { gap: 48px; }
  .pd-h1 { font-size: 30px; }
  .pd-stage { padding: 32px; }
}
@media (max-width: 767.98px) {
  .pd-stage, .pd-buy, .pd-fbt, .pd-card, .pd-summary { border-radius: 18px; }
}
@media (max-width: 639.98px) {
  .pd { gap: 36px; }
  .pd-h1 { font-size: 24px; }
  .pd-stage { padding: 24px 48px; }
  .pd-about { grid-template-columns: minmax(0, 1fr); }
  .pd-cover-link { width: 72px; }
}

