/* ============================================================
   AKHAR WAKHAR — MAIN THEME CSS
   Dark (default) + Light mode
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&family=Noto+Nastaliq+Urdu:wght@400;600;700&display=swap');

/* ─── DARK THEME (default) ─── */
:root, [data-theme="dark"] {
  --bg:#0c0905; --bg2:#131008; --bg3:#1a160d;
  --surface:#201a10; --surface2:#2a2318;
  --gold:#d4a017; --gold2:#f2c040; --gold3:#a07812;
  --gf:rgba(212,160,23,.12); --gf2:rgba(212,160,23,.22);
  --amber:#e8850a; --crimson:#c0192c; --crimson2:#e82040;
  --teal:#0d8a7a; --teal2:#12b09d;
  --green:#22c55e; --green2:#4ade80;
  --purple:#7c3aed; --purple2:#a78bfa;
  --text:#f4efe6; --text2:#ece4d2; --text3:#c8b89a;
  --muted:#8a7a63; --muted2:#6a5c46;
  --bdr:rgba(212,160,23,.13); --bdr2:rgba(212,160,23,.26); --bdr3:rgba(212,160,23,.5);
  --sh:0 4px 24px rgba(0,0,0,.55);
  --sh2:0 12px 48px rgba(0,0,0,.65);
  --sh3:0 24px 80px rgba(0,0,0,.75);
  --hdr:rgba(12,9,5,.96);
  --footer-bg:#131008;
  --input-bg:#0c0905;
  --card-bg:#201a10;
}

/* ─── LIGHT THEME ─── */
[data-theme="light"] {
  --bg:#fdf8f0; --bg2:#f5ead5; --bg3:#ede0c4;
  --surface:#ffffff; --surface2:#faf4e8;
  --gold:#e85d04; --gold2:#f77f00; --gold3:#c44b02;
  --gf:rgba(232,93,4,.08); --gf2:rgba(232,93,4,.16);
  --amber:#c96e00; --crimson:#a01020; --crimson2:#c0192c;
  --teal:#0a6e60; --teal2:#0d8a7a;
  --green:#16a34a; --green2:#22c55e;
  --purple:#6d28d9; --purple2:#8b5cf6;
  --text:#1a1208; --text2:#2a1f10; --text3:#4a3a20;
  --muted:#6b5c45; --muted2:#8a7a63;
  --bdr:rgba(232,93,4,.18); --bdr2:rgba(232,93,4,.32); --bdr3:rgba(232,93,4,.58);
  --sh:0 4px 24px rgba(100,80,20,.10);
  --sh2:0 12px 48px rgba(100,80,20,.14);
  --sh3:0 24px 80px rgba(100,80,20,.18);
  --hdr:rgba(253,248,240,.97);
  --footer-bg:#f0e6cc;
  --input-bg:#fdf8f0;
  --card-bg:#ffffff;
}

/* ─── CUSTOM SINDHI FONTS ─── */
@font-face {
  font-family: 'SSAmargul';
  src: url('/fonts/ss-amargul.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MBSarang';
  src: url('/fonts/mbsarang.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.7;
  overflow-x: hidden;
  transition: background .35s, color .35s;
}
/* ─── SINDHI FONTS — apply everywhere sindhi/urdu text appears ─── */

/* RTL mode (Sindhi language selected) — full site */
[dir="rtl"] {
  font-family: 'MBSarang','Noto Nastaliq Urdu',serif;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .sec-title, [dir="rtl"] .hero-sd, [dir="rtl"] .logo-sd,
[dir="rtl"] .book-title, [dir="rtl"] .cvr-t, [dir="rtl"] .cat-nm {
  font-family: 'SSAmargul', 'MBSarang','Noto Nastaliq Urdu', serif;
}

/* Inline Sindhi/Urdu text — visible in BOTH English & Sindhi modes */
/* These classes are used on Sindhi subtitles, book titles in SD, author names etc */
.fsd,
.logo-sd,
.cvr-a,
.book-author-sd,
.sec-sd,
.hero-sd,
.cat-sd,
.tag-sd,
.tag-ur,
.aotm-sd {
  font-family: 'MBSarang','Noto Nastaliq Urdu',serif;
}
/* RTL direction only for inline Sindhi text fragments */
.fsd, .cat-sd, .logo-sd, .sec-sd, .hero-sd, .tag-sd, .tag-ur, .aotm-sd {
  unicode-bidi: embed;
}

/* Sindhi headings inline — larger display Sindhi text */
.fsd-heading,
.hero-sd,
.sec-sd,
.logo-sd,
.aotm-sd {
  font-family: 'SSAmargul', 'MBSarang','Noto Nastaliq Urdu', serif;
}

/* Book card Sindhi titles & author names (shown in both EN/SD modes) */
.book-title-sd,
.cvr-t-sd,
.author-sd {
  font-family: 'SSAmargul', 'MBSarang','Noto Nastaliq Urdu', serif;
}

/* All elements using Noto Nastaliq Urdu — upgrade to our fonts */
[style*="Noto Nastaliq"],
[class*="fsd"],
[dir="rtl"] * {
  font-family: 'MBSarang','Noto Nastaliq Urdu',serif;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 8px; }
a { text-decoration: none; color: inherit; transition: .25s; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ─── LAYOUT ─── */
.container { max-width: 1300px; margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section-dk { background: var(--bg2); }
.section-surf { background: var(--bg3); }

/* ─── TYPOGRAPHY ─── */
h1,h2,h3,h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; }
/* .fsd rules now handled above */

/* ─── SECTION HEADERS ─── */
.sec-hdr { text-align: center; margin-bottom: 56px; }
.sec-eye { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.sec-title { font-family: 'Playfair Display', serif; font-size: clamp(26px,3.5vw,44px); font-weight: 900; color: var(--text); line-height: 1.1; letter-spacing: -.02em; }
.sec-title em { font-style: italic; color: var(--gold); }
.sec-line { width: 54px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold2)); margin: 14px auto 0; border-radius: 2px; }
.sec-sub { color: var(--muted); font-size: 14.5px; margin-top: 12px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ─── BUTTONS ─── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 22px; border-radius: 6px; font-size: 13.5px; font-weight: 700; border: none; cursor: pointer; transition: .28s; text-decoration: none; white-space: nowrap; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a1208; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(212,160,23,.38); }
.btn-outline { background: transparent; border: 1.5px solid var(--bdr2); color: var(--muted); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gf); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal2); }
.btn-danger { background: rgba(192,25,44,.14); color: var(--crimson2); border: 1px solid rgba(192,25,44,.28); }
.btn-danger:hover { background: var(--crimson); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 14.5px; }
.btn-block { width: 100%; justify-content: center; }

/* ─── PRICE TAGS ─── */
.price-1    { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 900; color: var(--green2); line-height: 1; }
.price-2    { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 900; color: var(--amber); line-height: 1; }
.price-free { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900; color: var(--teal2); line-height: 1; }
.price-bun  { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 900; color: var(--purple2); line-height: 1; }
.price-orig { font-size: 12px; color: var(--muted); text-decoration: line-through; margin-left: 5px; }
.price-save { font-size: 11px; color: var(--green2); font-weight: 700; margin-left: 4px; }

/* ─── LANG TAGS ─── */
.tag-sd { display: inline-block; padding: 2px 9px; border-radius: 100px; font-size: 10px; font-weight: 700; margin-bottom: 6px; background: var(--gf); border: 1px solid var(--bdr2); color: var(--gold2); }
.tag-en { display: inline-block; padding: 2px 9px; border-radius: 100px; font-size: 10px; font-weight: 700; margin-bottom: 6px; background: rgba(13,138,122,.14); border: 1px solid rgba(13,138,122,.28); color: var(--teal2); }
.tag-ur { display: inline-block; padding: 2px 9px; border-radius: 100px; font-size: 10px; font-weight: 700; margin-bottom: 6px; background: rgba(192,25,44,.14); border: 1px solid rgba(192,25,44,.28); color: #f87171; }

/* ─── BADGES ─── */
.bb { padding: 3px 9px; border-radius: 100px; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.bb-free { background: #15803d; color: #bbf7d0; }
.bb-new  { background: #1d4ed8; color: #bfdbfe; }
.bb-hot  { background: var(--gold3); color: var(--gold2); }
.bb-sale { background: #be123c; color: #fecdd3; }
.bb-bun  { background: #4c1d95; color: #ddd6fe; }
.bb-hard { background: #7c3aed; color: #ddd6fe; }

/* ─── STATUS BADGES ─── */
.status { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 100px; font-size: 10px; font-weight: 700; }
.s-done   { background: rgba(34,197,94,.12);  color: var(--green2); border: 1px solid rgba(34,197,94,.22); }
.s-ship   { background: rgba(13,138,122,.12); color: var(--teal2);  border: 1px solid rgba(13,138,122,.22); }
.s-pend   { background: rgba(232,133,10,.12); color: var(--amber);  border: 1px solid rgba(232,133,10,.22); }
.s-proc   { background: rgba(124,58,237,.12); color: var(--purple2);border: 1px solid rgba(124,58,237,.22); }
.s-cancel { background: rgba(192,25,44,.12);  color: #f87171;       border: 1px solid rgba(192,25,44,.22); }

/* ─── FORMS ─── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 7px; }
.form-input { width: 100%; padding: 11px 15px; border: 1px solid var(--bdr2); border-radius: 6px; background: var(--input-bg); color: var(--text); font-size: 13.5px; outline: none; transition: .25s; }
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gf2); }
.form-input::placeholder { color: var(--muted); }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 110px; }
.form-input.err { border-color: var(--crimson); }

/* ─── BOOK CARDS ─── */
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 20px; }
.book-card { background: var(--card-bg); border: 1px solid var(--bdr); border-radius: 14px; overflow: hidden; cursor: pointer; transition: .28s; position: relative; }
.book-card:hover { transform: translateY(-7px); box-shadow: var(--sh3); border-color: var(--bdr3); }
.book-cover { aspect-ratio: 3/4; position: relative; overflow: hidden; background: var(--surface2); }
/* Full image display */
.book-cvr {
  width: 100%; height: 100%;
  position: relative;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  display: flex; align-items: flex-end;
  padding: 0;
}
/* When a real uploaded image: show it fully, minimal overlay */
.book-cvr.has-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 40%, transparent 70%);
}
/* When using gradient (no image): keep text visible */
.book-cvr.no-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.06) 0%, transparent 50%, rgba(0,0,0,.45) 100%);
}
.book-cvr::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,.08) 42%, transparent 68%);
}
.cvr-txt { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 12px 12px 10px; }
.cvr-t { color: rgba(255,255,255,.96); font-size: 12px; font-weight: 700; line-height: 1.3;
         text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.cvr-a { color: rgba(255,255,255,.65); font-size: 10px; margin-top: 3px; }
.book-bgs { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.wish-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: rgba(12,9,5,.75); border: 1px solid var(--bdr2); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; transition: .28s; opacity: 0; color: var(--muted); }
.book-card:hover .wish-btn { opacity: 1; }
.wish-btn:hover, .wish-btn.active { color: var(--crimson2); background: rgba(192,25,44,.15); }
.book-info { padding: 13px 14px 15px; }
.book-title { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 3px; }
.book-author { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.book-cat { font-size: 11px; color: var(--muted2); margin-bottom: 6px; }
.price-row { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; margin: 8px 0 5px; }
.hcopy-pill { display: inline-flex; align-items: center; gap: 4px; background: var(--gf); border: 1px solid var(--bdr2); border-radius: 100px; padding: 2px 10px; font-size: 10.5px; font-weight: 600; color: var(--gold); margin-top: 5px; }
.add-btn { margin-top: 10px; width: 100%; background: var(--surface2); color: var(--text); border: 1px solid var(--bdr2); padding: 9px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: .28s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.add-btn:hover { background: var(--gold); color: #1a1208; border-color: var(--gold); }
.add-btn.free-btn { background: rgba(13,138,122,.12); color: var(--teal2); border-color: rgba(13,138,122,.25); }
.add-btn.free-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Force LTR for nav regardless of document direction */
.main-nav, .nav-inner, .nav-links, .mob-panel, .mob-menu,
.cart-drw, .modal-box {
  direction: ltr !important;
  unicode-bidi: isolate;
}
/* ─── NAVIGATION ─── */
.ann-bar { background: linear-gradient(90deg, #8b0000, #c0192c, #8b0000); text-align: center; padding: 8px 24px; font-size: 12.5px; font-weight: 600; color: #fff; letter-spacing: .03em; }
.ann-bar span { background: rgba(255,255,255,.18); border-radius: 3px; padding: 1px 8px; margin: 0 4px; }
.main-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 300; background: var(--hdr); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--bdr2); transition: box-shadow .3s, background .35s; }
.nav-inner { max-width: 1300px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 62px; gap: 0; }
.logo-wrap { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--gold), var(--gold2)); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: 'MBSarang','Noto Nastaliq Urdu',serif; font-size: 18px; color: #1a1208; font-weight: 700; }
.logo-en { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--text); line-height: 1; }
.logo-sd { font-family: 'MBSarang','Noto Nastaliq Urdu',serif; font-size: 12px; color: var(--gold); line-height: 1.4; }
.nav-spacer { flex: 1; }
.nav-search { flex: 1; max-width: 340px; margin: 0 14px; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--bdr2); border-radius: 100px; padding: 0 5px 0 15px; gap: 5px; transition: .25s; }
.nav-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gf2); }
.nav-search input { flex: 1; border: none; background: transparent; font-size: 13px; color: var(--text); padding: 8px 0; outline: none; }
.nav-search input::placeholder { color: var(--muted); }
.srch-go { background: var(--gold); border: none; border-radius: 100px; padding: 6px 13px; color: #1a1208; font-size: 12px; font-weight: 700; cursor: pointer; transition: .25s; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 6px; transition: .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); background: var(--gf); }
.lang-sw { display: flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--bdr2); border-radius: 100px; padding: 3px; margin: 0 8px; }
.lbtn { padding: 4px 12px; border: none; border-radius: 100px; font-size: 12px; font-weight: 600; cursor: pointer; transition: .25s; background: transparent; color: var(--muted); }
.lbtn.active { background: var(--gold); color: #1a1208; }
.theme-toggle { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--bdr2); border-radius: 100px; padding: 5px 12px 5px 6px; cursor: pointer; transition: .25s; margin: 0 4px; }
.theme-toggle:hover { border-color: var(--gold); }
.tt-track { width: 34px; height: 18px; background: var(--surface2); border-radius: 100px; position: relative; transition: .3s; }
.tt-ball { width: 14px; height: 14px; background: var(--gold); border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: .3s; }
[data-theme="light"] .tt-ball { left: 18px; background: var(--teal); }
.tt-lbl { font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.nav-act { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.ibtn { width: 36px; height: 36px; border: 1px solid var(--bdr2); border-radius: 6px; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); font-size: 15px; transition: .25s; text-decoration: none; position: relative; }
.ibtn:hover { border-color: var(--gold); color: var(--gold); background: var(--gf); }
.cart-badge { position: absolute; top: -5px; right: -5px; background: var(--crimson); color: #fff; font-size: 9px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: none; align-items: center; justify-content: center; border: 2px solid var(--bg); }

/* ─── CART DRAWER ─── */
.cart-ov { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 500; opacity: 0; pointer-events: none; transition: .28s; }
.cart-ov.open { opacity: 1; pointer-events: all; }
.cart-drw { position: fixed; top: 0; right: 0; bottom: 0; width: 385px; background: var(--bg2); z-index: 501; transform: translateX(100%); transition: .32s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; border-left: 1px solid var(--bdr2); }
.cart-drw.open { transform: translateX(0); }
.cart-hdr { padding: 19px 22px; border-bottom: 1px solid var(--bdr); display: flex; align-items: center; justify-content: space-between; }
.cart-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-item { display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--bdr); }
.ci-cover { width: 52px; height: 70px; border-radius: 5px; flex-shrink: 0; }
.ci-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.ci-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.ci-del { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; padding: 2px 4px; transition: .25s; margin-left: auto; flex-shrink: 0; }
.ci-del:hover { color: var(--crimson2); }
.cart-ftr { padding: 18px 22px; border-top: 1px solid var(--bdr); }

/* ─── LOGIN MODAL ─── */
.modal-back { position: fixed; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.78); opacity: 0; pointer-events: none; transition: .28s; }
.modal-back.open { opacity: 1; pointer-events: all; }
.modal-box { background: var(--bg2); border: 1px solid var(--bdr2); border-radius: 20px; width: 445px; max-width: 95vw; overflow: hidden; }
.modal-tabs { display: flex; border-bottom: 1px solid var(--bdr); }
.mtab { flex: 1; padding: 15px; border: none; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: .25s; border-bottom: 2px solid transparent; }
.mtab.active { color: var(--gold); border-bottom-color: var(--gold); }
.m-x { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0 16px; font-size: 18px; margin-left: auto; line-height: 1; }
.modal-body { padding: 28px; }
.mpanel { display: none; }
.mpanel.active { display: block; }
.m-sub { width: 100%; padding: 12px; background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a1208; border: none; border-radius: 6px; font-size: 14px; font-weight: 800; cursor: pointer; transition: .28s; }
.m-sub:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,160,23,.4); }

/* ─── WHATSAPP ─── */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa-btn { width: 58px; height: 58px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.4); cursor: pointer; transition: .28s; animation: wapulse 3s ease-in-out infinite; }
.wa-btn:hover { transform: scale(1.12); animation: none; }
.wa-btn svg { width: 30px; height: 30px; fill: #fff; }
.wa-tip { background: var(--bg2); color: var(--text); font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 8px; white-space: nowrap; box-shadow: var(--sh2); opacity: 0; transform: translateY(8px); transition: .28s; pointer-events: none; border: 1px solid var(--bdr2); }
.wa-float:hover .wa-tip { opacity: 1; transform: translateY(0); }
@keyframes wapulse { 0%,100%{box-shadow:0 4px 20px rgba(37,211,102,.4)} 50%{box-shadow:0 4px 32px rgba(37,211,102,.65),0 0 0 8px rgba(37,211,102,.1)} }

/* ─── PAGE HERO ─── */
.page-hero { padding: 118px 0 60px; position: relative; overflow: hidden; background: var(--bg); }
.hero-orb { position: absolute; width: 580px; height: 580px; border-radius: 50%; background: radial-gradient(circle, rgba(212,160,23,.08) 0%, transparent 70%); top: -160px; right: -100px; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; opacity: .024; background-image: linear-gradient(var(--gold) 1px, transparent 1px), linear-gradient(90deg, var(--gold) 1px, transparent 1px); background-size: 58px 58px; pointer-events: none; }

/* ─── FILTERS ─── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; align-items: center; }
.ftab { padding: 7px 18px; border-radius: 100px; border: 1.5px solid var(--bdr2); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: .28s; background: transparent; color: var(--muted); }
.ftab.active, .ftab:hover { background: var(--gold); color: #1a1208; border-color: var(--gold); }
.fsel { padding: 8px 14px; border: 1.5px solid var(--bdr2); border-radius: 100px; background: var(--surface); color: var(--muted); font-size: 12.5px; cursor: pointer; outline: none; transition: .25s; }
.fsel:focus { border-color: var(--gold); }

/* ─── FOOTER ─── */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--bdr); padding: 64px 0 0; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 38px; margin-bottom: 48px; }
.foot-desc { font-size: 13px; line-height: 1.85; color: var(--muted); margin: 14px 0 20px; }
.foot-social { display: flex; gap: 8px; }
.soc { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--bdr2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; cursor: pointer; transition: .25s; }
.soc:hover { border-color: var(--gold); color: var(--gold); background: var(--gf); }
.foot-col h4 { color: var(--text2); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 15px; }
.foot-links { list-style: none; }
.foot-links li + li { margin-top: 9px; }
.foot-links a { color: var(--muted); font-size: 13px; }
.foot-links a:hover { color: var(--gold); }
.pay-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.pay-ico { background: var(--surface); border: 1px solid var(--bdr); border-radius: 4px; padding: 4px 9px; font-size: 10px; color: var(--muted); font-weight: 700; }
.foot-bot { border-top: 1px solid var(--bdr); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted2); flex-wrap: wrap; gap: 10px; }
.foot-bot a { color: var(--muted2); }
.foot-bot a:hover { color: var(--gold); }

/* ─── BREADCRUMB ─── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.bc-sep { color: var(--bdr3); }

/* ─── PAGINATION ─── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 52px; flex-wrap: wrap; }
.pgbtn { width: 38px; height: 38px; border: 1px solid var(--bdr2); border-radius: 6px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: .25s; display: flex; align-items: center; justify-content: center; }
.pgbtn.active, .pgbtn:hover { background: var(--gold); color: #1a1208; border-color: var(--gold); }
.pgbtn:disabled { opacity: .4; cursor: not-allowed; }

/* ─── TOAST ─── */
.toast { position: fixed; top: 80px; right: 24px; background: var(--bg2); border: 1px solid var(--gold); border-radius: 12px; padding: 14px 20px; z-index: 9999; font-size: 13.5px; font-weight: 600; color: var(--text); box-shadow: var(--sh2); max-width: 300px; opacity: 0; transform: translateX(20px); transition: .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(0); }

/* ─── ANIMATIONS ─── */
.fi { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
.fi.anim { opacity: 0; transform: translateY(22px); }
.fi.anim.vis { opacity: 1; transform: none; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .nav-search, .nav-links { display: none; }
  .section { padding: 60px 0; }
  .container { padding: 0 18px; }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .foot-grid { grid-template-columns: 1fr; }
  .cart-drw { width: 100%; }
  .foot-bot { flex-direction: column; text-align: center; }
}
