/* =========================================================
   أروقة الفكر — متجر الكتب
   الألوان والخطوط والمكوّنات المشتركة لكل الصفحات
   ========================================================= */

:root {
  --green-900: #04211a;
  --green-800: #062b1d;
  --green-700: #0b452f;   /* الأخضر الأساسي */
  --green-600: #1a6545;
  --leaf: #8dc63f;        /* أخضر اللوجو */
  --leaf-light: #c6ef8c;
  --gold: #e8b20e;        /* أصفر اللوجو */
  --gold-light: #f2c233;
  --gold-dark: #e0a80a;
  --ink: #141414;
  --ink-2: #1b1b1b;
  --muted: #6b6f68;
  --muted-2: #9a9d95;
  --mint: #eef4ef;
  --mint-text: #c7ddd0;
  --paper: #f6f5f0;
  --line: #e7e5dc;
  --line-2: #dcd9cd;
  --white: #ffffff;
  --danger: #a12a2a;
  --success: #2f7d32;

  --hero-grad: linear-gradient(165deg, var(--green-900) 0%, var(--green-700) 45%, var(--green-600) 100%);
  --gold-grad: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-dark) 100%);

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container: 1200px;
  --gutter: 24px;
  --font: 'Alexandria', system-ui, sans-serif;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffd24d; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.mob-only { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius); border: 0;
  font-size: 13px; font-weight: 700; transition: transform .2s, filter .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--gold { background: var(--gold-grad); color: var(--ink); }
.btn--gold:hover { color: var(--ink); }
.btn--green { background: var(--green-700); color: var(--white); }
.btn--green:hover { color: var(--white); }
.btn--leaf { background: var(--leaf); color: #072a1d; }
.btn--leaf:hover { color: #072a1d; }
.btn--ghost { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.3); color: var(--white); font-weight: 600; }
.btn--ghost:hover { color: var(--white); }
.btn--outline { background: var(--white); border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; }
.btn--outline:hover { color: var(--ink); }
.btn--block { width: 100%; }
img.img-broken { color: transparent; font-size: 0; }
.btn--google { gap: 10px; min-height: 48px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; }
.btn--google:hover { background: #f8f9fa; color: #1f1f1f; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.or-sep { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted-2); }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: #e7e5dc; }
.btn--lg { min-height: 54px; font-size: 15px; font-weight: 800; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: var(--white); position: relative;
}
.icon-btn--light { border-color: var(--line); background: var(--white); color: var(--ink); }
.badge {
  position: absolute; top: -6px; left: -6px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px;
  background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.tag--gold { background: var(--gold); color: var(--ink); font-weight: 700; }
.tag--leaf { background: rgba(141,198,63,.18); color: var(--leaf-light); }
.tag--mint { background: var(--mint); color: var(--green-700); }
.tag--dark { background: rgba(11,69,47,.92); color: var(--white); font-weight: 500; font-size: 10px; }

/* ---------- Hero / page band (green header area) ---------- */
.band {
  position: relative; overflow: hidden; color: var(--white);
  background: var(--hero-grad); border-radius: 0 0 40px 40px; padding-bottom: 44px;
}
.band--home { padding-bottom: 70px; }
.band__glow {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 12% 35%, rgba(141,198,63,.16) 0, rgba(141,198,63,0) 36%),
                    radial-gradient(circle at 92% 92%, rgba(232,178,14,.12) 0, rgba(232,178,14,0) 34%);
}
.band__leaves { position: absolute; left: -40px; top: 30px; height: 112%; width: auto; opacity: .07; pointer-events: none; }
.band__body { position: relative; padding-top: 34px; }
.band__title { font-size: clamp(26px, 3vw, 38px); font-weight: 800; padding-top: 14px; }
.band__text { font-size: 13px; font-weight: 300; color: var(--mint-text); line-height: 2; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; animation: fadeDown .7s var(--ease-out) both; }
.site-header__start { display: flex; align-items: center; gap: 30px; min-width: 0; }
.site-header__end { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.logo img { height: 58px; width: auto; }
.main-nav { display: flex; gap: 2px; }
.main-nav a {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: #e4efe8; font-size: 13px; transition: background .2s, color .2s;
}
.main-nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.main-nav a.is-active { color: var(--leaf); font-weight: 600; }
.account-link { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--white); font-size: 13px; }

.m-search { position: relative; z-index: 4; display: none; gap: 8px; padding-top: 14px; animation: slideDown .3s ease both; }
.m-search.is-open { display: flex; }
.m-search input {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: var(--white); font-size: 14px; font-weight: 500; outline-color: var(--leaf);
}
.m-search button { flex: 0 0 auto; width: 48px; height: 48px; border-radius: var(--radius); border: 0; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; }

/* search inputs on green — bright text */
.on-green-input { color: var(--white) !important; font-weight: 500; caret-color: var(--gold-light); }
.on-green-input::placeholder { color: #f1f8f4; opacity: .92; }

/* breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #a9c9b7; animation: fadeUp .8s var(--ease-out) both; }
.crumbs a { color: #d9e9df; min-height: 32px; display: flex; align-items: center; }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--white); font-weight: 600; }

/* ---------- Home hero ---------- */
.hero { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 44px; padding-top: 100px; }
.hero__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero__kicker { font-weight: 500; font-size: clamp(18px, 1.8vw, 22px); color: #e4efe8; }
.hero__brand { font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.5; }
.hero__brand span { color: var(--leaf); }
.hero__desc { font-size: 13px; font-weight: 300; line-height: 2.1; color: #b9d0c3; max-width: 480px; }
.hero-search {
  display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px; max-width: 520px;
  border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
}
.hero-search svg { margin-right: 10px; }
.hero-search input { flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 6px; border: 0; background: transparent; font-size: 13px; outline: none; }
.hero-search .btn { height: 46px; padding: 0 28px; animation: glow 2.4s ease-out infinite; }

.shelf-wrap { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 10px; animation: riseIn 1s var(--ease-out) .35s both; }
.shelf-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.shelf-head::after { content: ""; flex: 1 1 auto; height: 1px; background: rgba(255,255,255,.18); }
.shelf-viewport {
  overflow: hidden; padding-top: 18px; position: relative; z-index: 2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.shelf-track { display: flex; gap: 20px; width: max-content; align-items: flex-end; padding: 0 10px; animation: shelfScroll 42s linear infinite; }
.shelf-viewport:hover .shelf-track { animation-play-state: paused; }
.shelf-book {
  position: relative; display: block; flex: 0 0 auto; width: 124px; aspect-ratio: 420 / 608; overflow: hidden;
  border-radius: 3px 7px 7px 3px; box-shadow: -10px 12px 20px rgba(0,0,0,.5); background: var(--green-700);
  animation: floatBook 4.2s ease-in-out infinite; transition: filter .3s;
}
.shelf-book:nth-child(2n) { animation-delay: -1.4s; }
.shelf-book:nth-child(3n) { animation-delay: -2.8s; }
.shelf-book:hover { filter: brightness(1.08); }
.shelf-book img, .cover img { width: 100%; height: 100%; object-fit: cover; }
.shelf-plank { height: 18px; margin-top: -3px; border-radius: 4px; background: linear-gradient(180deg, #9a6640 0%, #6e4428 55%, #4a2c18 100%); box-shadow: 0 20px 34px rgba(0,0,0,.5); }
.shelf-lip { height: 8px; margin: 0 14px; border-radius: 0 0 6px 6px; background: #35200f; }

/* book spine highlight */
.spine { position: relative; }
.spine::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.28) 0, rgba(255,255,255,0) 6%, rgba(0,0,0,.22) 8%, rgba(0,0,0,0) 14%);
}

/* notch below hero / above footer */
.notch { display: flex; justify-content: center; position: relative; z-index: 3; }
.notch a { width: 104px; height: 30px; background: var(--green-600); color: var(--white); display: flex; align-items: center; justify-content: center; }
.notch--down { margin-top: -1px; }
.notch--down a { border-radius: 0 0 22px 22px; }
.notch--down svg { animation: bounceDown 1.6s ease-in-out infinite; }
.notch--up { padding-top: 60px; }
.notch--up a { border-radius: 22px 22px 0 0; margin-bottom: -1px; }
.notch--up svg { animation: bounceUp 1.6s ease-in-out infinite; }

/* ---------- Sections ---------- */
.section { padding-block: 34px; }
.section--rule > .container > .rule { border-top: 1px dashed #cfccc0; padding-top: 30px; }
.section-title { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; }
.section-title::after { content: ""; flex: 1 1 auto; border-top: 1px dashed #cfccc0; }

/* promo cards */
.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.promo {
  border-radius: var(--radius-lg); padding: 22px; color: var(--white); display: flex; flex-direction: column; gap: 10px; min-height: 190px;
  position: relative; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
}
.promo:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(0,0,0,.22); }
.promo--green { background: linear-gradient(150deg, var(--green-600) 0%, var(--green-700) 60%, var(--green-800) 100%); }
.promo--blend { background: linear-gradient(150deg, var(--green-700) 0%, #10261c 45%, var(--ink) 100%); flex-direction: row; align-items: center; gap: 16px; }
.promo--dark { background: linear-gradient(150deg, #262626 0%, var(--ink) 100%); }
.promo__icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.promo h2 { font-size: 16px; font-weight: 700; }
.promo p { color: var(--mint-text); line-height: 2; font-size: 12px; font-weight: 300; }
.promo__link { margin-top: auto; align-self: flex-start; display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 12px; min-height: 44px; }
.promo__cover { width: 88px; height: 127px; object-fit: cover; border-radius: 3px 7px 7px 3px; box-shadow: -8px 12px 22px rgba(0,0,0,.5); flex: 0 0 auto; --r: -5deg; animation: fanFloat 5s ease-in-out infinite; }

/* category tabs bar */
.tabs-bar { display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: var(--radius); background: var(--ink-2); }
.tabs-bar h2 { padding: 0 12px; font-size: 14px; font-weight: 700; color: var(--white); border-left: 1px solid rgba(255,255,255,.2); white-space: nowrap; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px; flex: 1 1 auto; min-width: 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--radius-sm); font-size: 12px; white-space: nowrap;
  background: transparent; color: #cfcfcf; transition: background .25s, color .25s;
}
.tab[aria-selected="true"] { background: var(--green-700); color: var(--leaf-light); font-weight: 600; box-shadow: inset 0 -3px 0 var(--leaf); }
.tabs-bar .btn--outline { min-height: 44px; font-size: 12px; white-space: nowrap; }

/* ---------- Book card ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.book-grid--shop { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); }
/* الرئيسية: 10 كتب = صفين × 5 على الديسكتوب، و8 بس على التابلت والموبايل */
@media (min-width: 901px) { .book-grid--home { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px) { .book-grid--home > :nth-child(n+9) { display: none; } }
.book-card {
  background: var(--white); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--line); min-width: 0; animation: fadeUp .5s ease both;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.book-card:hover { transform: translateY(-8px); box-shadow: 0 22px 40px rgba(11,69,47,.28); background: var(--green-700); border-color: var(--green-700); }
.book-card__cover { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 420 / 608; background: #e9efe9; position: relative; }
.book-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.book-card:hover .book-card__cover img { transform: scale(1.05); }
.book-card__cover .tag { position: absolute; top: 8px; right: 8px; z-index: 1; }
.book-card__meta { display: flex; flex-direction: column; gap: 3px; min-height: 42px; }
.book-card__title { font-size: 13px; font-weight: 600; line-height: 1.7; }
.book-card__title a { color: var(--ink); transition: color .3s; }
.book-card__author { font-size: 11px; font-weight: 300; color: #5b5f57; line-height: 1.6; transition: color .3s; }
.book-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2); transition: border-color .3s; }
.book-card__price { font-weight: 700; color: var(--green-700); font-size: 12px; transition: color .3s; }
.book-card:hover .book-card__title a { color: var(--white); }
.book-card:hover .book-card__author { color: #b9d8c6; }
.book-card:hover .book-card__price { color: var(--leaf-light); }
.book-card:hover .book-card__foot { border-top-color: rgba(255,255,255,.18); }
.add-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 0; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  background: var(--green-700); color: var(--white); transition: background .3s, color .3s, transform .3s;
}
.book-card:hover .add-btn { background: var(--gold); color: var(--ink); }
.add-btn.is-added { background: var(--leaf) !important; color: #072a1d !important; transform: scale(1.08); }
.add-btn .i-check { display: none; }
.add-btn.is-added .i-plus { display: none; }
.add-btn.is-added .i-check { display: block; animation: popIn .45s cubic-bezier(.3,1.6,.5,1) both; }

/* list card (shop list view) */
.list-card { display: flex; gap: 16px; padding: 12px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); animation: fadeUp .5s ease both; }
.list-card__cover { flex: 0 0 auto; width: 104px; aspect-ratio: 420 / 608; border-radius: 8px; overflow: hidden; display: block; }
.list-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.list-card__title { font-size: 15px; font-weight: 700; line-height: 1.6; }
.list-card__title a { color: var(--ink); }
.list-card__desc { font-size: 12px; font-weight: 300; line-height: 2; color: #4a4d46; }
.list-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.list-card__foot .price { font-size: 15px; font-weight: 800; color: var(--green-700); }
.list-card__foot .btn { min-height: 40px; padding: 0 14px; font-size: 12px; border-radius: 11px; }

/* ---------- Ad slider ---------- */
.ads { display: grid; }
.ad {
  grid-area: 1 / 1; border-radius: var(--radius-xl); padding: 40px 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px;
  position: relative; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.25); color: var(--white);
  opacity: 0; visibility: hidden; transform: scale(.97);
  transition: opacity .8s ease, transform .8s ease, visibility 0s .8s;
}
.ad.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .8s ease, transform .8s ease, visibility 0s; }
.ad::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 18% 50%, rgba(255,255,255,.1) 0, rgba(255,255,255,0) 34%); }
.ad__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.ad__title { font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: 1.4; }
.ad__blurb { margin-top: 4px; padding-right: 14px; border-right: 3px solid var(--gold); font-size: 14px; font-weight: 300; line-height: 2.1; color: #e8e8e8; max-width: 520px; }
.ad__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.ad__cover-area { flex: 0 1 340px; height: 280px; position: relative; display: flex; align-items: center; justify-content: center; }
.ad__glow { position: absolute; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, rgba(232,178,14,.35) 0, rgba(232,178,14,0) 70%); }
.ad__ring { position: absolute; width: 250px; height: 250px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.2); }
.ad__cover { position: relative; width: 168px; aspect-ratio: 420 / 608; border-radius: 3px 8px 8px 3px; overflow: hidden; box-shadow: -14px 22px 40px rgba(0,0,0,.6); --r: -5deg; animation: fanFloat 5s ease-in-out infinite; }
.dots { display: flex; justify-content: center; gap: 2px; padding-top: 12px; }
.dots button { width: 40px; height: 32px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.dots span { display: block; height: 8px; width: 8px; border-radius: 4px; background: #c4c1b5; transition: width .4s, background .4s; }
.dots button[aria-current="true"] span { width: 28px; background: var(--leaf); }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(345deg, var(--green-900) 0%, var(--green-700) 55%, var(--green-600) 100%); border-radius: 40px 40px 0 0; position: relative; overflow: hidden; color: var(--white); }
.site-footer .band__leaves { left: auto; right: -50px; top: auto; bottom: -40px; height: 115%; opacity: .06; transform: scaleX(-1); }
.footer-inner { position: relative; display: flex; flex-wrap: wrap; gap: 32px; padding-block: 56px 44px; }
.footer-brand { flex: 1 1 300px; min-width: 0; border-radius: var(--radius-lg); padding: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { height: 72px; width: auto; align-self: flex-start; }
.footer-brand p { color: var(--mint-text); line-height: 2.1; font-size: 12px; font-weight: 300; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.1); color: var(--white); display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s, color .2s; }
.socials a:hover { background: var(--leaf); color: #072a1d; transform: translateY(-3px); }
.footer-col { flex: 0 1 150px; display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.footer-col__title { font-weight: 700; font-size: 13px; color: var(--white); }
.footer-col a { color: var(--mint-text); font-size: 12px; transition: color .2s, padding .2s; }
.footer-col a:hover { color: var(--leaf-light); padding-right: 4px; }
.footer-contact { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; }
.footer-bar .footer-legal a { min-height: 32px; color: #c9c9c9; }
.footer-bar .footer-legal a:hover { color: var(--white); }
.footer-bar .dev-credit { font-size: 9px; letter-spacing: .3px; color: #6f6f6f; opacity: .75; transition: opacity .2s, color .2s; }
.footer-bar .dev-credit:hover { opacity: 1; color: #bdbdbd; }
.contact-pill { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--white); font-size: 12px; }
.contact-pill:hover { color: var(--white); background: rgba(255,255,255,.12); }
.contact-pill span:first-child { display: flex; align-items: center; gap: 8px; color: var(--mint-text); }
.contact-pill svg { stroke: var(--leaf); }
.footer-bar { position: relative; background: var(--ink); }
.footer-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-block: 14px; font-size: 11px; color: #a3a3a3; }
.footer-bar a { display: flex; align-items: center; gap: 6px; color: var(--white); min-height: 32px; }

/* ---------- Mobile bottom nav ---------- */
.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; justify-content: space-between; align-items: stretch;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line);
  border-radius: 18px 18px 0 0; box-shadow: 0 -8px 24px rgba(0,0,0,.08);
}
.bottom-nav a, .bottom-nav button {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px;
  border: 0; background: transparent; color: var(--muted); font-size: 10px; position: relative;
}
.bottom-nav .is-active { color: var(--green-700); font-weight: 600; }
.bottom-nav .is-active::before { content: ""; position: absolute; top: -6px; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--leaf); }
.bottom-nav .badge { top: 4px; left: calc(50% - 20px); min-width: 17px; height: 17px; font-size: 10px; }

/* ---------- Drawers, backdrop, toast ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 120; border: 0; padding: 0; background: rgba(4,20,14,.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s;
}
.backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .4s ease, visibility 0s; }
.drawer {
  position: fixed; top: 0; bottom: 0; width: min(410px, 92vw); background: var(--white); z-index: 130; display: flex; flex-direction: column;
  color: var(--ink); visibility: hidden; overflow: hidden;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), visibility 0s .5s;
}
.drawer--left { left: 0; border-radius: 0 24px 24px 0; transform: translateX(-105%); }
.drawer--right { right: 0; border-radius: 24px 0 0 24px; transform: translateX(105%); }
.drawer.is-open { transform: none; visibility: visible; transition: transform .5s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.drawer--left.is-open { box-shadow: 24px 0 60px rgba(0,0,0,.25); }
.drawer--right.is-open { box-shadow: -24px 0 60px rgba(0,0,0,.25); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px 14px; border-bottom: 1px solid #ecebe4; }
.drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.drawer__foot { padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid #ecebe4; display: flex; flex-direction: column; gap: 10px; }
.empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px; text-align: center; }
.empty__icon { width: 86px; height: 86px; border-radius: 50%; background: var(--mint); color: var(--green-700); display: flex; align-items: center; justify-content: center; }
.empty--card { max-width: 560px; margin: 0 auto; padding: 50px 20px; border-radius: 22px; background: var(--white); border: 1px dashed var(--line-2); }

.mini-item { display: flex; gap: 12px; padding: 10px; border-radius: var(--radius); border: 1px solid #ecebe4; background: #fbfbf8; animation: rowIn .4s ease both; }
.mini-item__cover { width: 58px; height: 84px; object-fit: cover; border-radius: 3px 6px 6px 3px; flex: 0 0 auto; box-shadow: -4px 6px 12px rgba(0,0,0,.15); }
.qty { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid #ecebe4; }
.qty button { width: 32px; height: 32px; border-radius: 8px; border: 0; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.qty button[data-inc] { background: var(--green-700); color: var(--white); }
.qty button[data-dec] { background: var(--mint); color: var(--green-700); }
.qty span { min-width: 26px; text-align: center; font-size: 13px; font-weight: 700; }
.remove-btn { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--muted-2); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }

.toast {
  position: fixed; z-index: 150; left: 50%; bottom: 28px; width: min(380px, calc(100vw - 24px)); padding: 10px; border-radius: 16px;
  background: var(--ink); color: var(--white); display: flex; align-items: center; gap: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.35);
  transform: translate(-50%, 24px); opacity: 0; visibility: hidden; transition: all .4s cubic-bezier(.2,.9,.3,1.2);
}
.toast.is-open { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast img { width: 40px; height: 58px; object-fit: cover; border-radius: 3px 6px 6px 3px; flex: 0 0 auto; }

.fly { position: fixed; z-index: 200; width: 44px; height: 64px; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: 0 10px 24px rgba(0,0,0,.35); pointer-events: none; animation: flyTo .8s cubic-bezier(.55,-.25,.7,1) forwards; }
.bump { animation: bump .55s cubic-bezier(.3,1.6,.5,1); }

/* account drawer */
.acc-head { position: relative; padding: 18px 18px 26px; background: var(--hero-grad); color: var(--white); overflow: hidden; }
.acc-head .band__leaves { left: -20px; top: -10px; height: 150%; opacity: .08; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: var(--radius); background: #f1f0ea; }
.seg button { min-height: 44px; border: 0; border-radius: 11px; font-size: 13px; font-weight: 500; background: transparent; color: var(--muted); transition: all .25s; }
.seg button[aria-selected="true"] { background: var(--white); color: var(--green-700); font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; min-width: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--white); font-size: 13px; color: var(--ink); outline-color: var(--green-700);
}
.field select { padding: 0 12px; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input[readonly] { background: var(--paper); border-color: var(--line); }
.field .hint { font-weight: 400; color: var(--muted-2); }
.show-errors :invalid, .field :user-invalid { border-color: #c0392b !important; background: #fff8f7; }
.menu-link { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 14px; border-radius: var(--radius); background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; }
.menu-link:hover { color: var(--ink); background: var(--mint); }
.menu-link span { display: flex; align-items: center; gap: 10px; }

/* ---------- Shop ---------- */
.shop { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.filters { flex: 0 0 270px; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.filters__group { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px dashed #e2dfd4; }
.filters__label { font-size: 12px; font-weight: 700; color: var(--muted); }
.cat-option {
  width: 100%; min-height: 44px; padding: 0 10px; border-radius: 11px; border: 0; display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; text-align: right; background: transparent; color: var(--ink); transition: background .2s;
}
.cat-option:hover { background: var(--paper); }
.cat-option > span:first-child { display: flex; align-items: center; gap: 10px; }
.cat-option .box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #cfccc0; transition: all .2s; }
.cat-option .count { min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px; background: #f1f0ea; color: var(--muted); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.cat-option[aria-pressed="true"] { background: var(--mint); color: var(--green-700); font-weight: 700; }
.cat-option[aria-pressed="true"] .box { background: var(--green-700); border-color: var(--green-700); box-shadow: inset 0 0 0 3px var(--mint); }
.range { width: 100%; accent-color: var(--green-700); }
.results { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.toolbar__count { padding: 0 8px; font-size: 13px; color: var(--muted); }
.toolbar__count strong { color: var(--ink); }
.toolbar__ctrls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.select { min-height: 42px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--white); font-size: 12px; color: var(--ink); }
.view-toggle { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: #f1f0ea; }
.view-toggle button { width: 36px; height: 36px; border-radius: 9px; border: 0; display: flex; align-items: center; justify-content: center; background: transparent; color: var(--muted); transition: all .2s; }
.view-toggle button[aria-pressed="true"] { background: var(--green-700); color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--green-700); color: var(--white); font-size: 12px; }
.link-btn { min-height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--green-700); font-size: 12px; font-weight: 600; text-decoration: underline; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding-top: 10px; }
.pagination button { width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line); background: var(--white); color: #b8b5aa; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.pagination [aria-current="page"] { border: 0; background: var(--green-700); color: var(--white); }

/* ---------- Product ---------- */
.product { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 22px; }
.gallery { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; animation: riseIn 1s var(--ease-out) .2s both; }
.stage { position: relative; width: 100%; height: 440px; display: flex; align-items: center; justify-content: center; perspective: 1400px; }
.stage__glow { position: absolute; width: min(340px, 86vw); height: min(340px, 86vw); border-radius: 50%; background: radial-gradient(circle, rgba(232,178,14,.28) 0, rgba(232,178,14,0) 68%); }
.stage__ring { position: absolute; width: min(360px, 90vw); height: min(360px, 90vw); border-radius: 50%; border: 1px dashed rgba(255,255,255,.22); animation: spin 40s linear infinite; }
.stage__shadow { position: absolute; bottom: 26px; width: 230px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.45) 0, rgba(0,0,0,0) 70%); }
.book3d { transform: rotateY(-16deg) rotateX(3deg); transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.8,.2,1); animation: bookIn 1.1s cubic-bezier(.2,.8,.2,1) both; }
.stage:hover .book3d { transform: rotateY(0) rotateX(0) scale(1.03); }
.book3d__face { position: relative; width: 240px; aspect-ratio: 420 / 608; border-radius: 3px 8px 8px 3px; overflow: hidden; box-shadow: -6px 4px 0 -1px #efe9da, -10px 8px 0 -2px #d9d1bb, -26px 34px 54px rgba(0,0,0,.55); }
.book3d__face img { width: 100%; height: 100%; object-fit: cover; }
.book3d__face.flip { animation: flip .6s ease; }
.thumbs { display: flex; gap: 10px; }
.thumbs button { width: 62px; height: 90px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid rgba(255,255,255,.2); opacity: .7; transition: transform .25s, border-color .25s, opacity .25s; background: none; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-pressed="true"] { border-color: var(--gold-light); opacity: 1; transform: translateY(-3px); }
.pinfo { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pinfo > * { animation: fadeUp .8s var(--ease-out) both; }
.pinfo > *:nth-child(2) { animation-delay: .1s; } .pinfo > *:nth-child(3) { animation-delay: .2s; }
.pinfo > *:nth-child(4) { animation-delay: .3s; } .pinfo > *:nth-child(5) { animation-delay: .4s; }
.pinfo__title { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; line-height: 1.4; }
.pinfo__author { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #d9e9df; }
.price-big { display: flex; align-items: baseline; gap: 10px; color: var(--gold-light); }
.price-big strong { display: inline-block; font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.price-big span { font-size: 14px; font-weight: 600; }
.price-note { font-size: 12px; color: var(--mint-text); }
.pinfo__short { font-size: 13px; font-weight: 300; line-height: 2.1; color: var(--mint-text); max-width: 520px; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 16px; margin-top: 4px; border-top: 1px dashed rgba(255,255,255,.18); }
.qty--dark { padding: 4px; border-radius: var(--radius); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.qty--dark button { width: 42px; height: 42px; border-radius: var(--radius-sm); font-size: 18px; font-weight: 700; }
.qty--dark button[data-inc] { background: var(--white); color: var(--green-700); }
.qty--dark button[data-dec] { background: rgba(255,255,255,.12); color: var(--white); }
.qty--dark span { min-width: 34px; font-size: 15px; color: var(--white); }
.buy-row .btn--gold { flex: 1 1 200px; min-height: 52px; font-size: 14px; }
.fav-btn { width: 52px; height: 52px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: var(--white); transition: all .25s; }
.fav-btn[aria-pressed="true"] { border: 0; background: var(--white); color: #d14a4a; }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.feats div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: var(--radius); background: rgba(255,255,255,.06); text-align: center; font-size: 11px; color: #d9e9df; }
.feats svg { stroke: var(--leaf); }
.panel { border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); padding: 26px; }
.panel__content { animation: fadeUp .45s ease both; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.specs div { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--paper); font-size: 13px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: left; }
.steps-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 2; color: #3a3d37; }
.steps-list li { display: flex; gap: 10px; }
.steps-list b { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; background: var(--mint); color: var(--green-700); display: flex; align-items: center; justify-content: center; }

/* ---------- Stepper (cart → checkout → done) ---------- */
.stepper { list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 480px; font-size: 12px; animation: fadeUp .8s var(--ease-out) .2s both; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #a9c9b7; min-width: 0; }
.stepper li + li::before { content: ""; position: absolute; top: 16px; left: 50%; width: 100%; height: 2px; border-radius: 2px; background: rgba(255,255,255,.22); z-index: 0; }
.stepper li.done + li::before { background: var(--leaf); }
.stepper a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: inherit; }
.stepper a:hover { color: var(--white); }
.st-dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: #0d3b28; border: 1.5px solid rgba(255,255,255,.35); color: #d9e9df; }
.stepper li.done { color: var(--leaf-light); }
.stepper li.done .st-dot { background: var(--leaf); border-color: var(--leaf); color: #072a1d; }
.stepper li.cur { color: var(--white); font-weight: 700; }
.stepper li.cur .st-dot { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); animation: stepGlow 2s ease-out infinite; }
.st-lbl { white-space: nowrap; line-height: 1.4; }

/* ---------- Cart page ---------- */
.layout-2 { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.layout-2__main { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.summary { flex: 1 1 330px; min-width: 0; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.summary__title { font-size: 15px; font-weight: 700; }
.summary__rows { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px dashed #e2dfd4; font-size: 13px; }
.summary__rows > div { display: flex; justify-content: space-between; gap: 10px; }
.summary__rows .muted { color: var(--muted); }
.summary__total { align-items: baseline; padding-top: 10px; border-top: 1px solid #ecebe4; }
.summary__total strong { font-size: 20px; font-weight: 800; color: var(--green-700); }
.coupon { display: flex; gap: 6px; }
.coupon input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); font-size: 12px; color: var(--ink); outline-color: var(--green-700); }
.coupon button { flex: 0 0 auto; height: 44px; padding: 0 16px; border-radius: 11px; border: 0; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 600; }
.msg { font-size: 12px; font-weight: 600; }
.msg--ok { color: var(--success); }
.msg--err { color: var(--danger); }
.cart-head, .cart-line { display: grid; grid-template-columns: minmax(0, 1fr) 110px 130px 110px 44px; gap: 12px; align-items: center; }
.cart-head { padding: 12px 16px; border-radius: var(--radius); background: var(--ink-2); color: #d6d6d6; font-size: 12px; font-weight: 600; }
.cart-line { padding: 14px 16px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); animation: rowIn .4s ease both; }
.cl-prod { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cl-prod .cover { position: relative; flex: 0 0 auto; display: block; width: 64px; aspect-ratio: 420 / 608; border-radius: 3px 7px 7px 3px; overflow: hidden; box-shadow: -4px 6px 12px rgba(0,0,0,.15); }
.cl-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.cl-price { font-size: 13px; color: #4a4d46; }
.cl-total { font-size: 14px; font-weight: 800; color: var(--green-700); }
.cl-lbl { display: none; font-weight: 400; color: var(--muted); }
.cl-rm { width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid #f0d4d4; background: #fff7f7; color: var(--danger); display: flex; align-items: center; justify-content: center; }
.qty--lg { padding: 3px; border-radius: 11px; background: #fbfbf8; justify-self: start; }
.qty--lg button { width: 36px; height: 36px; border-radius: 9px; font-size: 17px; }
.qty--lg span { min-width: 30px; font-size: 14px; }

/* ---------- Checkout ---------- */
.co-card { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.co-card legend { float: right; width: 100%; padding: 0; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.co-card legend b { width: 30px; height: 30px; border-radius: 9px; background: var(--green-700); color: var(--leaf-light); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.option { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 1px; border-radius: var(--radius); cursor: pointer; border: 1px solid var(--line); background: var(--white); transition: all .2s; }
.option:has(input:checked) { margin: 0; border: 2px solid var(--green-700); background: #f3f8f4; }
.option input { width: 18px; height: 18px; accent-color: var(--green-700); margin: 0; }
.option__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.option__text strong { font-size: 13px; }
.option__text small { font-size: 11px; color: var(--muted); }
.option__side { font-size: 13px; font-weight: 700; color: var(--green-700); }
.option__icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--mint); color: var(--green-700); display: flex; align-items: center; justify-content: center; }
.notice { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; font-size: 12px; line-height: 1.8; }
.notice--gold { background: #fdf7e3; color: #6b5200; }
.notice--mint { background: var(--mint); color: var(--green-700); }
.notice--err { background: #fff3f1; color: var(--danger); font-weight: 600; }
.bank-box { display: none; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius); background: var(--paper); border: 1px dashed #cfccc0; font-size: 12px; line-height: 1.9; color: #3a3d37; animation: fadeUp .4s ease both; }
.bank-box.is-open { display: flex; }
.terms { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #4a4d46; line-height: 1.8; }
.terms input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green-700); flex: 0 0 auto; }
.terms a { color: var(--green-700); font-weight: 600; }
.confirm-btn { justify-content: space-between; padding: 0 18px; white-space: nowrap; }
.confirm-btn > span:last-child { padding: 5px 10px; border-radius: 9px; background: rgba(0,0,0,.1); font-size: 14px; }
.order-mini { display: flex; gap: 10px; align-items: center; }
.order-mini__cover { position: relative; flex: 0 0 auto; }
.order-mini__cover img { width: 46px; height: 66px; object-fit: cover; border-radius: 3px 6px 6px 3px; }
.order-mini__cover b { position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--green-700); color: var(--white); font-size: 10px; display: flex; align-items: center; justify-content: center; }

/* processing overlay */
.proc { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(4,20,14,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.proc.is-open { display: flex; animation: fadeUp .25s ease both; }
.proc__card { width: min(340px, 100%); padding: 30px 24px; border-radius: 24px; background: var(--white); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.35); animation: procIn .4s cubic-bezier(.2,.9,.3,1.2) both; }
.proc__spin { position: relative; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; }
.proc__spin::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--mint); border-top-color: var(--green-700); border-right-color: var(--leaf); animation: spin .9s linear infinite; }
.proc__spin img { height: 46px; width: auto; }
.proc__bar { width: 100%; height: 6px; border-radius: 3px; background: var(--mint); overflow: hidden; }
.proc__bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--leaf), var(--green-700)); transform-origin: right; animation: barFill 1.6s cubic-bezier(.4,0,.2,1) both; }

/* thank-you */
.done-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 18px; }
.done-check { width: 84px; height: 84px; border-radius: 50%; background: var(--leaf); color: #072a1d; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(141,198,63,.18); animation: checkIn .6s cubic-bezier(.3,1.6,.5,1) .15s both; }
.done-check path { stroke-dasharray: 30; animation: draw .5s ease .6s both; }
.done-card { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); animation: fadeUp .8s var(--ease-out) both; }
.kv { padding: 12px 14px; border-radius: 12px; background: var(--paper); display: flex; flex-direction: column; gap: 4px; }
.kv small { font-size: 11px; color: var(--muted); }
.kv strong { font-size: 14px; font-weight: 800; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; animation: fadeUp .5s ease both; }
.timeline li:nth-child(2) { animation-delay: .12s; } .timeline li:nth-child(3) { animation-delay: .24s; } .timeline li:nth-child(4) { animation-delay: .36s; }
.timeline li::before { content: ""; position: absolute; top: 34px; bottom: 2px; right: 15px; width: 2px; border-radius: 2px; background: #e2dfd4; }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--leaf); }
.tl-dot { position: relative; z-index: 1; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: var(--white); border: 1.5px solid var(--line-2); color: var(--muted-2); }
.timeline li.done .tl-dot { background: var(--leaf); border-color: var(--leaf); color: #072a1d; }
.timeline li.cur .tl-dot { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); animation: stepGlow 2s ease-out infinite; }
.timeline strong { font-size: 13px; }
.timeline p { font-size: 12px; color: var(--muted); line-height: 1.9; }

/* scroll reveal (progressive enhancement) */
@supports (animation-timeline: view()) {
  .reveal { animation: revealUp linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
}

/* ---------- Keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(60px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes revealUp { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes shelfScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floatBook { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(-.6deg); } }
@keyframes fanFloat { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-10px) rotate(var(--r)); } }
@keyframes bounceDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes bounceUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,178,14,.45); } 50% { box-shadow: 0 0 0 10px rgba(232,178,14,0); } }
@keyframes stepGlow { 0% { box-shadow: 0 0 0 0 rgba(242,194,51,.55); } 70% { box-shadow: 0 0 0 10px rgba(242,194,51,0); } 100% { box-shadow: 0 0 0 0 rgba(242,194,51,0); } }
@keyframes flyTo { 0% { transform: translate(0,0) scale(1) rotate(0); opacity: 1; } 60% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.35) rotate(-18deg); opacity: .2; } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.55); } 65% { transform: scale(.88); } 100% { transform: scale(1); } }
@keyframes popIn { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes bookIn { from { opacity: 0; transform: rotateY(-40deg) rotateX(8deg) translateY(30px); } to { opacity: 1; transform: rotateY(-16deg) rotateX(3deg); } }
@keyframes flip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes price { 0% { transform: scale(1); } 40% { transform: scale(1.18); color: #fff; } 100% { transform: scale(1); } }
@keyframes procIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes barFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes checkIn { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
.price-pop { animation: price .4s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* =========================================================
   Ebooks (PDF) + Customer account dashboard
   ========================================================= */
.tag--pdf { position: absolute; bottom: 8px; left: 8px; top: auto; right: auto; z-index: 1; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 10px; letter-spacing: .5px; padding: 3px 7px; }
.book-card__cover .tag.tag--pdf { top: auto; right: auto; bottom: 8px; left: 8px; }
.tag--pdf.tag--inline, .book-card__cover .tag--pdf.tag--inline { position: static; }
.ebook-note { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: #8a6400; transition: color .3s; }
.ebook-note .icon { width: 12px; height: 12px; }
.book-card:hover .ebook-note { color: var(--gold-light); }
.pdf-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #fdf3d6; color: #7a5600; font-size: 10px; font-weight: 800; white-space: nowrap; vertical-align: middle; }
.pdf-chip .icon { width: 13px; height: 13px; }
.pdf-chip--lg { padding: 8px 12px; font-size: 12px; border-radius: 10px; justify-self: start; }
.ebook-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: rgba(232,178,14,.12); border: 1px solid rgba(232,178,14,.35); color: #fff; }
.ebook-box__ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.ebook-box span:last-child { display: flex; flex-direction: column; gap: 2px; }
.ebook-box strong { font-size: 14px; }
.ebook-box small { font-size: 12px; font-weight: 300; color: var(--mint-text); line-height: 1.8; }
#p-status .icon { width: 14px; height: 14px; color: var(--gold-light); }

.acc-hero { padding-top: 16px; animation: fadeUp .8s var(--ease-out) .1s both; }
.acc-hero__row { display: flex; align-items: center; gap: 16px; }
.acc-av { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--leaf); color: #072a1d; font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(141,198,63,.18); }
.acc-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.acc-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.acc-nav a, .acc-nav button { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 500; text-align: right; white-space: nowrap; transition: background .2s, color .2s; }
.acc-nav a span, .acc-nav button span { flex: 1 1 auto; }
.acc-nav a:hover { background: var(--paper); color: var(--ink); }
.acc-nav a .icon { color: var(--muted); }
.acc-nav a[aria-current] { background: var(--green-700); color: #fff; font-weight: 700; }
.acc-nav a[aria-current] .icon { color: var(--leaf); }
.acc-nav b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--gold); color: var(--ink); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.acc-nav__out { margin-top: 6px; border-top: 1px dashed var(--line-2) !important; border-radius: 0 0 14px 14px !important; color: var(--danger) !important; }
.acc-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; animation: fadeUp .45s ease both; }
.acc-title { font-size: 20px; font-weight: 800; }
.acc-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.acc-card__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.acc-card__h h2 { font-size: 15px; font-weight: 700; }
.acc-muted { font-size: 12px; color: var(--muted); line-height: 1.9; }
.acc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.acc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); color: var(--ink); transition: transform .2s, box-shadow .2s; min-width: 0; }
.stat:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11,69,47,.1); }
.stat__ic { width: 38px; height: 38px; border-radius: 12px; background: var(--mint); color: var(--green-700); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.stat:first-child { background: var(--hero-grad); border-color: transparent; color: #fff; }
.stat:first-child .stat__ic { background: rgba(255,255,255,.14); color: var(--leaf-light); }
.stat:first-child .stat__l, .stat:first-child .stat__s { color: var(--mint-text); }
.stat__v { font-size: 22px; font-weight: 800; line-height: 1.3; }
.stat__l { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat__s { font-size: 11px; color: var(--muted-2); }
.acc-kv { display: grid; gap: 10px; margin: 0; }
.acc-kv > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding-bottom: 10px; border-bottom: 1px solid #f1efe8; }
.acc-kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.acc-kv dt { color: var(--muted); white-space: nowrap; }
.acc-kv dd { margin: 0; font-weight: 600; text-align: left; min-width: 0; overflow-wrap: anywhere; }
.acc-kv--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.acc-kv--2 > div { flex-direction: column; gap: 2px; }
.acc-kv--2 dd { text-align: right; }
.acc-bank { flex-wrap: wrap; gap: 12px; align-items: center; }
.acc-bank .btn { min-height: 42px; }
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pill--gold { background: #fdf3d6; color: #7a5600; } .pill--blue { background: #e3eefc; color: #1d4f91; } .pill--violet { background: #ede7fb; color: #5b3fa0; }
.pill--ok { background: #e3f3e6; color: #1f6b35; } .pill--red { background: #fbe6e4; color: var(--danger); }
.acc-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-size: 12px; font-weight: 600; }
.acc-chip b { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--paper); font-size: 10px; display: flex; align-items: center; justify-content: center; }
.acc-chip[aria-selected="true"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.acc-chip[aria-selected="true"] b { background: rgba(255,255,255,.2); }
.ord-list { display: flex; flex-direction: column; gap: 14px; }
.ord { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.acc-card .ord { padding: 0; border: 0; }
.ord__h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ord__h strong { font-size: 15px; font-weight: 800; }
.ord__h small { font-size: 11px; color: var(--muted); }
.ord__b { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ord__t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 1.8; }
.ord__t strong { font-size: 16px; color: var(--green-700); }
.covers { display: flex; flex: none; padding-inline-start: 12px; }
.covers img { width: 40px; height: 58px; object-fit: cover; border-radius: 3px 6px 6px 3px; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.16); margin-inline-start: -12px; background: #e9efe9; }
.ord-steps { --n: 4; list-style: none; margin: 0; padding: 4px 0 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.ord-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.ord-steps li + li::before { content: ""; position: absolute; top: 14px; left: 50%; width: 100%; height: 3px; border-radius: 2px; background: #ebe8dd; }
.ord-steps li.done::before, .ord-steps li.cur::before { background: var(--leaf); }
.ord-steps .d { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: #fff; color: var(--muted-2); border: 2px solid var(--line-2); }
.ord-steps .d .icon { width: 15px; height: 15px; }
.ord-steps .done .d { background: var(--leaf); border-color: var(--leaf); color: #072a1d; }
.ord-steps .cur .d { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); animation: stepGlow 2s ease-out infinite; }
.ord-steps .l { font-size: 11px; color: var(--muted); line-height: 1.5; }
.ord-steps .done .l { color: var(--ink); }
.ord-steps .cur .l { color: var(--ink); font-weight: 800; }
.ord__d { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--paper); animation: fadeUp .3s ease both; }
.ord__line { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.ord__line img { width: 34px; height: 49px; object-fit: cover; border-radius: 3px 5px 5px 3px; }
.ord__line span { flex: 1 1 auto; font-weight: 600; min-width: 0; }
.ord__f { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed #e2dfd4; }
.ord__f .btn { min-height: 42px; font-size: 12px; padding: 0 14px; }
.lib-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lib { display: flex; gap: 14px; padding: 14px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.lib__cover { width: 96px; height: 139px; flex: none; object-fit: cover; border-radius: 4px 8px 8px 4px; box-shadow: -6px 8px 18px rgba(0,0,0,.18); }
.lib__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lib__body .btn { min-height: 42px; margin-top: auto; font-size: 13px; }
.lib__t { font-size: 15px; font-weight: 800; line-height: 1.6; }
.lib__body > small { font-size: 11px; color: var(--muted); }
.lib__lock { display: flex; align-items: flex-start; gap: 6px; margin-top: auto; font-size: 11px; color: #7a5600; line-height: 1.7; }
.lib__lock [dir] { white-space: nowrap; }
.lib__lock .icon { width: 14px; height: 14px; margin-top: 3px; }
.lib-mini { display: flex; flex-direction: column; gap: 10px; }
.lib-mini__i { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.lib-mini__i:hover { color: var(--ink); }
.lib-mini__i img { width: 36px; height: 52px; object-fit: cover; border-radius: 3px 5px 5px 3px; }
.lib-mini__i span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lib-mini__i strong { font-size: 12px; }
.lib-mini__i small { font-size: 11px; font-weight: 700; }
.lib-mini__i small.ok { color: var(--success); } .lib-mini__i small.wait { color: #8a6400; }
.fav-grid .book-card { position: relative; }
.fav-x { position: absolute; top: 14px; left: 14px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--danger); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.fav-x .icon { width: 15px; height: 15px; }
.addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.addr { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); min-width: 0; font-family: inherit; text-align: right; }
.addr.is-def { border: 2px solid var(--green-700); padding: 17px; }
.addr__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.addr__h strong { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.addr p { font-size: 13px; line-height: 1.9; color: #3a3d37; }
.addr small { font-size: 12px; color: var(--muted); }
.addr__f { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.addr__f .btn { min-height: 40px; font-size: 12px; padding: 0 12px; }
.addr--add { align-items: center; justify-content: center; min-height: 170px; border: 2px dashed var(--line-2); background: transparent; cursor: pointer; color: var(--ink); }
.addr--add:hover { border-color: var(--green-700); background: var(--white); }
.addr__plus { width: 46px; height: 46px; border-radius: 50%; background: var(--mint); color: var(--green-700); display: flex; align-items: center; justify-content: center; }
.icon-sq { width: 40px; height: 40px; border-radius: 11px; border: 1px solid #f0d4d4; background: #fff7f7; color: var(--danger); display: flex; align-items: center; justify-content: center; }
.seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.acc-form .btn { min-height: 48px; }
.pref { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 0; }
.pref span { display: flex; flex-direction: column; gap: 2px; }
.pref strong { font-size: 13px; } .pref small { font-size: 11px; color: var(--muted); }
.sw { width: 48px; height: 28px; flex: none; border: 0; border-radius: 14px; padding: 3px; background: #cfccc0; display: flex; justify-content: flex-start; transition: background .2s; }
.sw::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.sw[aria-checked="true"] { background: var(--green-700); }
.sw[aria-checked="true"]::after { transform: translateX(-20px); }
.acc-logout { border: 1px solid #f0d4d4; background: #fff7f7; color: var(--danger); display: none; }
.acc-guest { max-width: 620px; }
.acc-toast { position: fixed; z-index: 150; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; visibility: hidden; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 18px 40px rgba(0,0,0,.3); transition: all .3s; max-width: calc(100vw - 32px); }
.acc-toast .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--leaf); color: #072a1d; }
.acc-toast.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* tablet: 761–1024 */
@media (max-width: 1024px) {
  .acc-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .acc-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 6px; border-radius: 16px; scroll-snap-type: x proximity; }
  .acc-nav::-webkit-scrollbar { display: none; }
  .acc-nav a { flex: 0 0 auto; min-height: 44px; scroll-snap-align: center; }
  .acc-nav a span { flex: none; }
  .acc-nav__out { display: none !important; }
  .acc-logout { display: flex; }
  .acc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .acc-two, .lib-grid, .addr-grid { grid-template-columns: minmax(0, 1fr); }
  .acc-card { padding: 16px; border-radius: 18px; }
  .ord { padding: 14px; }
  .acc-av { width: 52px; height: 52px; font-size: 21px; }
  .acc-hero__row .band__title { font-size: 22px; }
  .acc-title { font-size: 17px; }
  .ord-steps .l { font-size: 10px; }
  .acc-kv--2 { grid-template-columns: minmax(0, 1fr); }
  .acc-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .stat { padding: 14px; } .stat__v { font-size: 18px; }
}

/* ---- الصفحات النصية: الشروط، الخصوصية، الاسترجاع، عن الدار، التواصل ---- */
  .terms-doc { max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
  .terms-doc section { background: #fff; border: 1px solid #e2dfd4; border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
  .terms-doc h2 { font-size: 16px; font-weight: 800; color: var(--green-700); }
  .terms-doc p, .terms-doc li { font-size: 13px; line-height: 2; color: #3c4640; }
  .terms-doc ul { padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; }
  .terms-doc a { color: var(--green-700); font-weight: 700; }
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.contact-card { background: #fff; border: 1px solid #e2dfd4; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.contact-card h2, .contact-side h2 { font-size: 16px; font-weight: 800; color: var(--green-700); }
.contact-side h2 { color: var(--white); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; background: var(--hero-grad); color: var(--white); }
.contact-side p { font-size: 12px; line-height: 2; color: var(--mint-text); }
.contact-side p a { color: var(--leaf-light); font-weight: 700; }
.contact-ok { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: #eef7e3; color: #24451a; animation: fadeUp .45s ease both; }
.contact-ok .icon { width: 22px; height: 22px; flex: none; color: var(--green-700); }
.contact-ok div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.contact-err { padding: 10px 12px; border-radius: 12px; background: #fdecec; color: #9b1c1c; font-size: 12px; font-weight: 600; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: minmax(0, 1fr); } .contact-side { position: static; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .desk-only { display: none !important; }
  .mob-only { display: flex !important; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: flex; }
  .band { border-radius: 0 0 28px 28px; padding-bottom: 32px; }
  .band--home { padding-bottom: 36px; }
  .band__body { padding-top: 22px; }
  .hero { padding-top: 52px; gap: 34px; }
  .promos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
  .promos::-webkit-scrollbar { display: none; }
  .promos > * { scroll-snap-align: start; }
  .promos .reveal { animation: none; }
  .tabs-bar { flex-direction: column; align-items: stretch; }
  .tabs-bar h2 { border-left: 0; padding: 6px 8px 0; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tab { flex: 0 0 auto; }
  .ad { padding: 26px 20px 30px; gap: 20px; }
  .ad__cover-area { height: 220px; flex: 1 1 100%; }
  .site-footer { border-radius: 28px 28px 0 0; }
  .footer-inner { padding-block: 40px 32px; gap: 26px; }
  .footer-brand { align-items: center; text-align: center; }
  .footer-brand img { align-self: center; }
  .socials { justify-content: center; }
  .footer-col { align-items: center; text-align: center; }
  .footer-contact > .footer-col__title { text-align: center; }
  .footer-bar .container { justify-content: center; text-align: center; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .stage { height: 330px; }
  .book3d__face { width: 190px; }
  .product { gap: 18px; padding-top: 10px; }
  .pinfo__title { font-size: 26px; }
  .buy-row .btn--gold { flex: 1 1 100%; order: 3; }
  .panel { padding: 18px; }
  .filters {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 135; flex: none; max-height: 82vh; overflow-y: auto;
    border-radius: 24px 24px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(105%); visibility: hidden; box-shadow: 0 -20px 50px rgba(0,0,0,.25);
    transition: transform .45s cubic-bezier(.2,.8,.2,1), visibility 0s .45s;
  }
  .filters.is-open { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.2,.8,.2,1), visibility 0s; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar__ctrls { justify-content: space-between; }
  .toolbar__ctrls .select { flex: 1 1 auto; min-width: 0; }
  .summary { position: static; }
  .co-card { padding: 18px; }
}
@media (max-width: 760px) {
  .cart-head { display: none; }
  .cart-line { grid-template-columns: minmax(0, 1fr) auto; position: relative; padding: 14px; row-gap: 14px; }
  .cl-prod { grid-column: 1 / -1; padding-left: 46px; }
  .cl-price { display: none; }
  .cl-total { justify-self: end; }
  .cl-total .cl-lbl { display: inline; }
  .cl-rm { position: absolute; top: 12px; left: 12px; }
}
@media (max-width: 560px) {
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .book-card { padding: 9px; border-radius: 16px; }
  .shelf-book { width: 90px; }
  .shelf-track { gap: 14px; }
  .hero-search .btn { padding: 0 18px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .list-card { gap: 12px; }
  .list-card__cover { width: 84px; }
  .list-card__desc { display: none; }
  .stepper { font-size: 11px; }
  .st-dot { width: 30px; height: 30px; }
  .stepper li + li::before { top: 14px; }
  .footer-col { flex: 1 1 40%; }
}
