/* ===================================
   kitabevim.az — Global Styles
   =================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Accessibility utilities */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #4169e1;
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-size: .9rem;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --primary-light: #ff6b6b;
  --secondary: #1d3557;
  --secondary-light: #457b9d;
  --accent: #f4a261;
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --bg-dark: #0d1117;
  --text: #1a1a2e;
  --text-muted: #6c757d;
  --text-light: #adb5bd;
  --border: #e9ecef;
  --border-light: #f0f0f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.18);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
  --header-h: 130px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(230,57,70,.35); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--ghost { background: transparent; color: var(--text-muted); }
.btn--ghost:hover { background: var(--border); }
.btn--light { background: rgba(255,255,255,.15); color: #fff; backdrop-filter: blur(4px); }
.btn--light:hover { background: rgba(255,255,255,.25); }
.btn--lg { padding: .9rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn--sm { padding: .45rem 1rem; font-size: .82rem; border-radius: var(--radius-sm); }
.btn--full { width: 100%; justify-content: center; }
.btn--outline-primary { background: transparent; color: #4169e1; border-color: #4169e1; }
.btn--outline-primary:hover { background: #4169e1; color: #fff; }

/* ===================================
   TOP BAR (hidden — merged into navbar)
   =================================== */
.top-bar { display: none; }

/* ===================================
   NAVBAR  — Litres-style
   =================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: .7rem;
  padding-bottom: .7rem;
}

/* Logo */
.logo { display: flex; align-items: center; gap: .45rem; flex-shrink: 0; text-decoration: none; }
.logo__icon { font-size: 1.6rem; }
.logo__text {
  font-size: 1.45rem;
  font-weight: 800;
  color: #4169e1;
  letter-spacing: -.02em;
}
.logo__dot { color: #4169e1; }
.logo__svg { height: 28px; width: auto; display: block; }
.footer__logo .logo__svg { height: 24px; filter: brightness(0) invert(1); }

/* Catalog pill button */
.catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #4169e1;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: .55rem 1.1rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}
.catalog-btn:hover { background: #2952cc; transform: translateY(-1px); }
.catalog-btn__icon { width: 16px; height: 16px; }

/* Search Bar — full width, borderless inner, button inside */
.search-bar { position: relative; flex: 1; }
.search-bar__input-wrap {
  display: flex;
  align-items: center;
  background: #f4f4f6;
  border: 1.5px solid #e2e2ea;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar__input-wrap:focus-within {
  border-color: #4169e1;
  box-shadow: 0 0 0 3px rgba(65,105,225,.12);
  background: #fff;
}
#searchInput {
  flex: 1;
  border: none;
  background: transparent;
  font-size: .92rem;
  color: var(--text);
  outline: none;
  padding: .62rem 1rem;
  min-width: 0;
}
#searchInput::placeholder { color: #a0a0b0; }
.search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: .95rem;
  cursor: pointer;
  padding: .4rem .6rem;
  flex-shrink: 0;
}
.search-clear:hover { color: var(--primary); }
.search-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: -1.5px -1.5px -1.5px 0;
  background: #4169e1;
  color: #fff;
  border: none;
  padding: .62rem 1.3rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition);
  border-radius: 0;
}
.search-btn svg { width: 16px; height: 16px; }
.search-btn:hover { background: #2952cc; }

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 9000;
  display: none;
  animation: fadeSlideDown .2s ease;
}
.search-dropdown.active { display: block; }
.search-dropdown__section { padding: 0 1rem .75rem; }
.search-dropdown__label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .5rem; }
.search-result-item { display: flex; align-items: center; gap: .75rem; padding: .5rem; border-radius: var(--radius); cursor: pointer; transition: background var(--transition); }
.search-result-item:hover { background: var(--bg); }
.search-result-item__img { width: 36px; height: 52px; object-fit: cover; border-radius: 3px; flex-shrink: 0; background: var(--border); }
.search-result-item__avatar { width: 36px; height: 36px; border-radius: 50%; background: #4169e1; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.search-result-item__info { flex: 1; }
.search-result-item__title { display: block; font-size: .88rem; font-weight: 600; color: var(--text); }
.search-result-item__author { display: block; font-size: .77rem; color: var(--text-muted); }
.search-result-item__price { font-size: .88rem; font-weight: 700; color: #4169e1; flex-shrink: 0; }
.search-dropdown__footer { padding: .5rem 1rem 0; border-top: 1px solid var(--border); }
.search-dropdown__footer a { font-size: .85rem; font-weight: 600; color: #4169e1; }
.search-dropdown__footer a:hover { text-decoration: underline; }

/* ---- Language Switcher ---- */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-switcher__toggle {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem .65rem;
  border: 1.5px solid #e4e5ee;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
  font-family: var(--font);
  color: var(--text);
  transition: border-color .2s, background .2s;
  white-space: nowrap;
}
.lang-switcher__toggle:hover,
.lang-switcher__toggle.open { border-color: #4169e1; background: #f4f6ff; }
.lang-switcher__flag { font-size: 1.1rem; line-height: 1; }
.lang-switcher__code { font-size: .78rem; letter-spacing: .04em; }
.lang-switcher__arrow {
  width: 13px; height: 13px;
  stroke: #aaa;
  transition: transform .2s;
  flex-shrink: 0;
}
.lang-switcher__toggle.open .lang-switcher__arrow { transform: rotate(180deg); }

.lang-switcher__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1.5px solid #e4e5ee;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  min-width: 148px;
  overflow: hidden;
  z-index: 300;
  animation: langFadeIn .15s ease;
}
.lang-switcher__dropdown.open { display: block; }
@keyframes langFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: .6rem .9rem;
  border: none;
  background: none;
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  transition: background .15s;
  text-align: left;
}
.lang-btn span { font-size: 1.1rem; }
.lang-btn:hover { background: #f4f6ff; }
.lang-btn.active { background: #eef0fa; color: #4169e1; }
.lang-btn.active::after {
  content: '✓';
  margin-left: auto;
  font-size: .75rem;
  color: #4169e1;
}

/* Nav Icon Buttons (Bonuslar / Səbət / Kitablarım / Daxil ol) */
.nav-actions { display: flex; align-items: center; gap: .15rem; flex-shrink: 0; }
.nav-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .18rem;
  padding: .35rem .7rem;
  border-radius: var(--radius);
  color: #444;
  transition: all var(--transition);
  position: relative;
  text-decoration: none;
  min-width: 60px;
}
.nav-icon-btn svg { width: 22px; height: 22px; stroke: #555; transition: stroke var(--transition); }
.nav-icon-btn span { font-size: .68rem; font-weight: 500; color: #555; line-height: 1; white-space: nowrap; }
.nav-icon-btn:hover svg { stroke: #4169e1; }
.nav-icon-btn:hover span { color: #4169e1; }
.nav-icon-btn:hover { background: #f0f4ff; }

/* Cart badge */
.cart-btn { position: relative; }
.cart-badge {
    position: absolute;
    top: .2rem;
    right: .55rem;
    background: var(--primary);
    color: #fff !important;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    padding: 0 2px;
}

/* Hamburger (hidden on desktop) */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: .45rem; border-radius: var(--radius-sm); background: transparent; border: none; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* ===================================
   SECONDARY NAV LINKS BAR
   =================================== */
.nav-links-bar {
  background: #fff;
  border-top: 1px solid #eeeef2;
}
.nav-links-bar__inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links-bar__inner::-webkit-scrollbar { display: none; }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: .6rem .85rem;
  font-size: .83rem;
  font-weight: 500;
  color: #333;
  transition: color var(--transition);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.nav-link:hover { color: #4169e1; border-bottom-color: #4169e1; }
.nav-link--promo { color: var(--primary); font-weight: 600; }
.nav-link--promo:hover { color: var(--primary-dark); border-bottom-color: var(--primary); }
.nav-link--more { color: #666; }

/* ===================================
   CATALOG OVERLAY — full page
   =================================== */
.catalog-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
}
.catalog-overlay.active { display: block; }

/* Dark backdrop */
.catalog-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

/* White panel — slides down from navbar */
.catalog-overlay__panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: catSlideDown .22s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

@keyframes catSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header row */
.catalog-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 2rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.catalog-overlay__title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.catalog-overlay__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: #555;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.catalog-overlay__close:hover { background: #f2f2f5; color: #000; border-color: #bbb; }

/* Body grid — 4 columns */
.catalog-overlay__body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 260px;
  gap: 0;
  padding: 1.5rem 2rem 1rem;
  overflow-y: auto;
  flex: 1;
}

/* Each column */
.cat-col {
  padding: 0 1.5rem 0 0;
  border-right: 1px solid var(--border);
}
.cat-col:last-child { border-right: none; padding-right: 0; }
.cat-col:first-child { padding-left: 0; }

/* Genre group */
.cat-group {
margin-bottom: 1.5rem;
    border-right: none;
    padding-right: 0;
    padding-left: 1.5rem;
}
.cat-group h4 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.cat-group a {
  display: block;
  font-size: .84rem;
  color: #444;
  padding: .2rem 0;
  transition: color var(--transition);
  text-decoration: none;
}
.cat-group a:hover { color: #4169e1; }
.cat-more {
  color: #4169e1 !important;
  font-size: .8rem !important;
  margin-top: .15rem;
}
.cat-more:hover { text-decoration: underline; }

/* Right col special links */
.cat-group--links { margin-top: .5rem; }
.cat-special {
  display: block;
  font-size: .9rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  padding: .3rem 0 !important;
}
.cat-special:hover { color: #4169e1 !important; }

/* Footer */
.catalog-overlay__footer {
  padding: .9rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  flex-shrink: 0;
}
.cat-all-link {
  font-size: .9rem;
  font-weight: 600;
  color: #4169e1;
  text-decoration: none;
}
.cat-all-link:hover { text-decoration: underline; }

/* Legacy selectors kept for backward compat */
.menu-icon { width: 16px; height: 16px; }
.chevron-icon { width: 14px; height: 14px; }

/* ===================================
   MOBILE DRAWER
   =================================== */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity var(--transition);
}
.mobile-overlay.active { display: block; opacity: 1; }
.mobile-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  background: #fff;
  z-index: 9999;
  transform: translateX(-110%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 4px 0 32px rgba(0,0,0,.12);
}
.mobile-drawer.active { transform: translateX(0); }

/* Drawer header */
.mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}
.drawer-close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: none;
  cursor: pointer;
  transition: all .15s;
}
.drawer-close:hover { background: #fee2e2; color: #e63946; border-color: #fca5a5; }

/* Drawer user strip */
.drawer-user { padding: .6rem .85rem; background: #f7f8fc; border-bottom: 1px solid var(--border); }
.drawer-user__login {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .75rem;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.drawer-user__login:hover { border-color: #4169e1; box-shadow: 0 2px 8px rgba(65,105,225,.1); }
.drawer-user__login > svg:first-child {
  width: 36px; height: 36px;
  padding: 6px;
  background: #eef0fa;
  border-radius: 50%;
  stroke: #4169e1;
  flex-shrink: 0;
}
.drawer-user__title { display: block; font-size: .88rem; font-weight: 700; color: var(--text); }
.drawer-user__sub   { display: block; font-size: .72rem; color: var(--text-muted); margin-top: 1px; }
.drawer-user__arrow { width: 16px; height: 16px; stroke: #aaa; margin-left: auto; flex-shrink: 0; }

/* Drawer search */
.drawer-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .75rem .85rem;
  padding: .55rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #f7f8fc;
  transition: border-color .2s;
}
.drawer-search:focus-within { border-color: #4169e1; background: #fff; }
.drawer-search svg { width: 16px; height: 16px; stroke: #aaa; flex-shrink: 0; }
.drawer-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: .9rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
}
.drawer-search input::placeholder { color: #bbb; }

/* Drawer nav */
.mobile-drawer__nav { flex: 1; padding: .5rem 0; }
.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .78rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 0;
  transition: background .15s, color .15s;
  position: relative;
}
.drawer-nav-item svg { width: 20px; height: 20px; stroke: #aaa; flex-shrink: 0; transition: stroke .15s; }
.drawer-nav-item:hover { background: #f4f6ff; color: #4169e1; }
.drawer-nav-item:hover svg { stroke: #4169e1; }
.drawer-nav-item--active { color: #4169e1; background: #eef0fa; }
.drawer-nav-item--active svg { stroke: #4169e1; }
.drawer-nav-item--active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: #4169e1;
  border-radius: 0 3px 3px 0;
}
.drawer-nav-badge {
  margin-left: auto;
  padding: .15rem .5rem;
  border-radius: 9999px;
  font-size: .65rem;
  font-weight: 800;
  background: #eef0fa;
  color: #4169e1;
}
.drawer-nav-badge--red { background: #fee2e2; color: #e63946; }

/* Drawer lang */
.drawer-lang {
  padding: .85rem 1.25rem 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.drawer-lang__label { display: block; font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.drawer-lang__btns { display: flex; gap: .5rem; }
.drawer-lang-btn {
  flex: 1;
  padding: .5rem .4rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: .82rem;
  font-weight: 700;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.drawer-lang-btn:hover { border-color: #4169e1; color: #4169e1; background: #f4f6ff; }
.drawer-lang-btn.active { background: #4169e1; border-color: #4169e1; color: #fff; }

/* ===================================
   HERO SECTION — Litres layout
   =================================== */

/* Outer wrapper */
.hero-section {
  padding: 8px 8px 0;
}

/* Grid: main slider + side cards, no container constraints */
.hero-section__inner {
  display: grid;
  grid-template-columns: 1fr 282px;
  gap: 6px;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
}

/* Main slider panel */
.hero-main {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  min-height: 320px;
}

/* Individual slide */
.hero-slide {
  display: none;
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 10px;
}
.hero-slide.active {
  display: flex;
  align-items: stretch;
  animation: fadeSlideIn .45s ease;
}

/* Slide body: text left, cover right */
.hero-slide__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 2.5rem 5rem 3rem 2.5rem;
  gap: 2rem;
}

/* Text content */
.hero-slide__content {
  color: #fff;
  flex: 1;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: .3rem .85rem;
  border-radius: var(--radius-full);
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: .01em;
}
.hero-slide__content h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: .75rem;
  color: #fff;
}
.hero-slide__content p {
  font-size: .95rem;
  opacity: .82;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.hero-slide__content .btn--primary {
  background: #fff;
  color: var(--secondary);
  font-weight: 700;
  border: none;
}
.hero-slide__content .btn--primary:hover {
  background: #f0f4ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* Book cover */
.hero-slide__cover {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
}
.hero-slide__cover img {
  width: 140px;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  transition: transform .35s ease;
}
.hero-slide:hover .hero-slide__cover img {
  transform: translateY(-6px) scale(1.02);
}

/* Edge arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 0;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition);
  padding: 0;
}
.hero-arrow::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
}
.hero-arrow--prev::before { transform: rotate(-135deg) translate(-2px, 2px); }
.hero-arrow--next::before { transform: rotate(45deg) translate(-2px, 2px); }
.hero-arrow:hover { background: rgba(255,255,255,.3); }
.hero-arrow--prev { left: .75rem; }
.hero-arrow--next { right: .75rem; }

/* Dots inside each slide */
.hero-dots {
  position: absolute;
  bottom: .9rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .4rem;
  z-index: 10;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.hero-dot.active { background: #fff; width: 22px; border-radius: 4px; }

/* Side promo cards */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-promo-card {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.2rem 1rem 1rem 1.3rem;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: filter var(--transition);
  border-radius: 10px;
  min-height: 155px;
}
.hero-promo-card:hover { filter: brightness(1.07); }
.hero-promo-card--1 {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 55%, #a78bfa 100%);
}
.hero-promo-card--2 {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 50%, #312e81 100%);
}
.hero-promo-card__body { flex: 1; z-index: 2; }
.hero-promo-card__title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: .35rem;
  color: #fff;
}
.hero-promo-card__sub {
  font-size: .72rem;
  opacity: .8;
  line-height: 1.4;
  max-width: 140px;
}
.hero-promo-card__img {
  font-size: 2.8rem;
  flex-shrink: 0;
  z-index: 2;
  line-height: 1;
}
.hero-promo-card__label {
  position: absolute;
  bottom: .5rem;
  right: .6rem;
  font-size: .6rem;
  opacity: .5;
  color: #fff;
}

/* Legacy compat — old slider btn / dot selectors used by JS */
.slider-btn { display: none; }
.slider-dot { display: none; }

/* ===================================
   STATS STRIP
   =================================== */
.stats-strip { background: var(--secondary); color: #fff; padding: 1.5rem 0; }
.stats-strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-item { text-align: center; padding: .75rem; border-right: 1px solid rgba(255,255,255,.15); }
.stat-item:last-child { border-right: none; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.stat-number::after { content: '+'; }
.stat-number--24::after { content: ''; }
.stat-label { font-size: .8rem; opacity: .75; margin-top: .15rem; display: block; }

/* ===================================
   SECTION COMMONS
   =================================== */
section { padding: 3rem 0; }
.section-title {  font-size: 1.65rem; font-weight: 700; color: var(--text); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; gap: 1rem; flex-wrap: wrap; }
.section-link { font-size: .875rem; font-weight: 600; color: var(--primary); transition: color var(--transition); white-space: nowrap; }
.section-link:hover { color: var(--primary-dark); text-decoration: underline; }
.rec-tag { background: linear-gradient(135deg, var(--primary), #ff6b6b); color: #fff; font-size: .7rem; padding: .2rem .6rem; border-radius: var(--radius-full); font-style: normal; vertical-align: middle; margin-left: .35rem; font-family: var(--font); }

/* ===================================
   CATEGORIES
   =================================== */
.categories-section { padding: 2rem 0 1.5rem; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1rem .8rem 1rem;
  border-radius: var(--radius-lg);
  background: #f0f1f7;
  color: var(--text);
  text-decoration: none;
  min-height: 100px;
  overflow: hidden;
  transition: background var(--transition), transform var(--transition);
}
.category-card:hover { background: #e4e6f0; transform: translateY(-2px); }

.category-card__text { position: relative; z-index: 2; }
.category-card__name {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: .35rem;
}
.category-card__count {
  display: block;
  font-size: .75rem;
  color: #888;
  font-weight: 400;
}

.category-card__img {
  position: absolute;
  bottom: .5rem;
  right: .6rem;
  width: 52px;
  height: 52px;
  opacity: .18;
  color: #4169e1;
  z-index: 1;
}
.category-card__img svg {
  width: 100%;
  height: 100%;
  stroke: #4169e1;
}

/* Genre book sections */
.books-section { padding: 2rem 0 0; }
.books-section + .books-section { padding-top: 1rem; }
.books-section .container,
.recommendation-section .container { padding-bottom: .75rem; }

/* ===================================
   BOOK CARDS
   =================================== */
.books-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.books-carousel::-webkit-scrollbar { display: none; }

.books-carousel .book-card { width: 200px; }

.book-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
}
.book-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(230,57,70,.2); }
.book-card__img-wrap { position: relative; overflow: hidden; background: var(--border); aspect-ratio: 2/3; }
.book-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.book-card:hover .book-card__img-wrap img { transform: scale(1.05); }
.book-card__badge {
  position: absolute;
  top: .5rem;
  left: .5rem;
  background: var(--primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: var(--radius-sm);
  z-index: 2;
}
.book-card__badge--new { background: #2d9d2d; }
.book-card__badge--audio { background: #7b2d8b; }
.book-card__wishlist {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--transition);
  box-shadow: var(--shadow-sm);
}
.book-card:hover .book-card__wishlist { opacity: 1; }
.book-card__wishlist:hover { background: #fff; transform: scale(1.1); }
.book-card__body { padding: .75rem; }
.book-card__title { font-size: .82rem; font-weight: 700; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .25rem; }
.book-card__author { font-size: .75rem; color: var(--text-muted); margin-bottom: .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-card__rating { display: flex; align-items: center; gap: .25rem; margin-bottom: .5rem; }
.book-card__stars { color: #f4a261; font-size: .7rem; letter-spacing: .05em; }
.book-card__rcount { font-size: .7rem; color: var(--text-muted); }
.book-card__footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.book-card__price-wrap { display: flex; flex-direction: column; }
.book-card__price { font-size: .95rem; font-weight: 800; color: var(--primary); }
.book-card__old-price { font-size: .72rem; color: var(--text-light); text-decoration: line-through; }
.book-card__cart-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: transparent;
  font-size: 0;
  line-height: 0;
  padding: 0;
  border: none;
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(230,57,70,.3);
  cursor: pointer;
}
.book-card__cart-btn::before,
.book-card__cart-btn::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 2px;
  top: 50%;
  left: 50%;
}
.book-card__cart-btn::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.book-card__cart-btn::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}
.book-card__cart-btn:hover { background: var(--primary-dark); transform: scale(1.1); }
.book-card__meta-label { font-size: .65rem; color: var(--text-light); padding: 0 .75rem .5rem; }

/* ===================================
   TRENDING / TABS
   =================================== */
.trending-section { background: #fff; }
.tab-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.tab-btn {
  padding: .5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===================================
   BOOK FINDER WIZARD
   =================================== */
.wizard-section { background: #f0f1f7; }

.wizard-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 860px;
  margin: 0 auto;
}

/* Left aside — blue panel */
.wizard-aside {
  background: linear-gradient(160deg, #2a3f8f 0%, #4169e1 100%);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.wizard-aside__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.wizard-aside__title { font-size: 1.4rem; font-weight: 800; margin-bottom: .35rem; }
.wizard-aside__sub { font-size: .82rem; opacity: .7; margin-bottom: 2rem; line-height: 1.5; }

/* Step tracker */
.wizard-steps-track { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2rem; }
.wizard-track-step {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .85rem;
  opacity: .5;
  transition: opacity var(--transition);
}
.wizard-track-step.active { opacity: 1; font-weight: 700; }
.wizard-track-step.done { opacity: .75; }
.wizard-track-step__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  flex-shrink: 0;
  transition: all var(--transition);
}
.wizard-track-step.active .wizard-track-step__dot {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.2);
}
.wizard-track-step.done .wizard-track-step__dot {
  background: rgba(255,255,255,.4);
  border-color: rgba(255,255,255,.4);
}

/* Progress bar */
.wizard-progress { height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; margin-bottom: .5rem; margin-top: auto; }
.wizard-progress-fill { height: 100%; background: #fff; border-radius: 2px; transition: width .4s ease; }
.wizard-step-label { font-size: .75rem; opacity: .6; }

/* Right body — white panel */
.wizard-body { background: #fff; padding: 2.5rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeSlideDown .3s ease; }
.wizard-step h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 1.5rem; }

/* Option chips */
.wizard-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.wizard-options--6 { grid-template-columns: repeat(3, 1fr); }
.wizard-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.1rem .75rem;
  border-radius: var(--radius-lg);
  background: #f5f6fa;
  border: 2px solid #f0f1f7;
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.wizard-opt:hover { background: #eef0fa; border-color: #c5cbee; }
.wizard-opt.selected { background: #eef0fa; border-color: #4169e1; color: #4169e1; box-shadow: 0 0 0 3px rgba(65,105,225,.12); }
.wizard-opt__icon { font-size: 1.75rem; }

/* Result screen */
.wizard-result { text-align: center; padding: 1rem 0; }
.wizard-result__icon { font-size: 3.5rem; margin-bottom: .75rem; animation: bounce .8s ease; display: block; }
.wizard-result h3 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: .5rem; }
.wizard-result p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.wizard-result__actions { display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap; }

/* ===================================
   AUDIO BOOKS
   =================================== */
.audio-section { background: #0d1117; }
.audio-section .section-title { color: #fff; }
.audio-section .section-link { color: #a0aec0; }
.audio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.audio-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.audio-card:hover { border-color: rgba(255,255,255,.25); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.audio-card__img { position: relative; aspect-ratio: 1; overflow: hidden; }
.audio-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.audio-card:hover .audio-card__img img { transform: scale(1.05); }
.audio-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.audio-card:hover .audio-card__overlay { opacity: 1; }
.audio-play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(230,57,70,.5);
  transition: transform var(--transition);
}
.audio-play-btn:hover { transform: scale(1.1); }
.audio-card__body { padding: .9rem; }
.audio-card__title { font-size: .85rem; font-weight: 700; color: #fff; margin-bottom: .25rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.audio-card__author { font-size: .75rem; color: rgba(255,255,255,.5); margin-bottom: .6rem; }
.audio-waveform { display: flex; align-items: center; gap: 2px; height: 28px; margin-bottom: .75rem; }
.audio-waveform .bar {
  flex: 1;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  animation: waveAnim 1.2s ease-in-out infinite;
}
.audio-card__footer { display: flex; align-items: center; justify-content: space-between; }
.audio-card__price { font-size: .9rem; font-weight: 700; color: var(--primary-light); }
.audio-card__duration { font-size: .72rem; color: rgba(255,255,255,.4); }

/* ===================================
   AUTHORS
   =================================== */
.authors-section { background: var(--bg); }
.authors-carousel {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  padding-bottom: .75rem;
  scrollbar-width: none;
}
.authors-carousel::-webkit-scrollbar { display: none; }

.author-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .85rem;
  padding: .6rem .9rem .6rem .6rem;
  background: #f0f1f7;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--text);
  transition: background var(--transition), transform var(--transition);
  min-width: 195px;
}
.author-card:hover { background: #e4e6f0; transform: translateY(-2px); }

.author-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  overflow: hidden;
  background: #dde;
}
.author-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.author-card__info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.author-card__name {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.author-card__count { font-size: .75rem; color: var(--text-muted); font-weight: 400; }

/* ===================================
   DISCOUNTS
   =================================== */
.discounts-section { background: #fff; }
.discount-header-left { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.countdown-timer { display: flex; align-items: center; gap: .25rem; }
.countdown-item { display: flex; flex-direction: column; align-items: center; background: var(--secondary); color: #fff; padding: .3rem .6rem; border-radius: var(--radius-sm); min-width: 44px; }
.countdown-item span { font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown-item small { font-size: .6rem; opacity: .75; }
.countdown-sep { color: var(--text-muted); font-weight: 700; font-size: 1.1rem; }

/* ===================================
   QUOTES + BLOG
   =================================== */
.quotes-blog-section { background: var(--bg); }
.quotes-blog-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; }
.quotes-list { display: flex; flex-direction: column; gap: 1rem; }
.quote-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  transition: all var(--transition);
}
.quote-card:hover { box-shadow: var(--shadow-md); }
.quote-card__text { font-style: italic; color: var(--text); margin-bottom: .75rem; line-height: 1.6; font-size: .9rem; }
.quote-card__meta { display: flex; align-items: center; gap: .75rem; }
.quote-card__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quote-card__name { font-size: .82rem; font-weight: 700; }
.quote-card__book { font-size: .75rem; color: var(--text-muted); }
.blog-list { display: flex; flex-direction: column; gap: 1rem; }
.blog-card {
  display: flex;
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  color: var(--text);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.blog-card__img { width: 90px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.blog-card__body { padding: .9rem .9rem .9rem 0; flex: 1; }
.blog-card__tag { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); background: rgba(230,57,70,.08); padding: .15rem .5rem; border-radius: var(--radius-sm); }
.blog-card__body h4 { font-size: .88rem; font-weight: 700; margin: .35rem 0 .25rem; line-height: 1.3; }
.blog-card__body p { font-size: .78rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card__date { font-size: .72rem; color: var(--text-light); margin-top: .35rem; display: block; }

/* ===================================
   EVENTS
   =================================== */
.events-section { background: #f0f1f7; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.event-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.event-card--accent {
  background: linear-gradient(145deg, #2a3f8f 0%, #4169e1 100%);
  color: #fff;
  border-color: transparent;
}
.event-card--accent .event-card__date { color: rgba(255,255,255,.65); }
.event-card--accent .event-card__desc { color: rgba(255,255,255,.75); }
.event-card--accent .event-card__meta { color: rgba(255,255,255,.6); }
.event-card--accent .event-card__cta { color: #fff; }
.event-card--accent .event-badge--online { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }

.event-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .2rem;
}
.event-card__date { font-size: .72rem; color: var(--text-muted); font-weight: 500; }
.event-card__title { font-size: .92rem; font-weight: 700; line-height: 1.35; }
.event-card__desc { font-size: .8rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.event-card__meta { font-size: .75rem; color: var(--text-muted); }
.event-card__cta { font-size: .8rem; font-weight: 700; color: #4169e1; margin-top: .25rem; }

.event-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 700; padding: .15rem .55rem; border-radius: var(--radius-full); border: 1px solid transparent; }
.event-badge--online { background: rgba(45,157,45,.1); color: #2d9d2d; border-color: rgba(45,157,45,.25); }
.event-badge--offline { background: rgba(234,123,12,.1); color: #c97706; border-color: rgba(234,123,12,.25); }

/* ===================================
   FOOTER
   =================================== */
.footer { background: linear-gradient(180deg, var(--secondary) 0%, #0f1a2e 100%); color: rgba(255,255,255,.75); padding: 4rem 0 0; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }

/* Column headers */
.footer__col h5 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 1.25rem; position: relative; }
.footer__col h5::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; }

/* Links */
.footer__col a { display: block; font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: .75rem; transition: all var(--transition); position: relative; padding-left: 0; }
.footer__col a:hover { color: #fff; padding-left: 4px; }
.footer__col a::before { content: '›'; position: absolute; left: -12px; opacity: 0; transition: all var(--transition); color: var(--primary); }
.footer__col a:hover::before { left: -4px; opacity: 1; }

/* Brand column */
.footer__col--brand p { font-size: .9rem; opacity: .7; line-height: 1.8; margin: 1.25rem 0 1.5rem; max-width: 320px; }
.footer__logo { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.footer__logo .logo__text { font-size: 1.4rem; color: #fff; font-weight: 700; }

/* Social buttons */
.footer__social { display: flex; gap: .75rem; margin-top: .5rem; }
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
  text-transform: uppercase;
  transition: all .25s ease;
}
.social-btn:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(230,57,70,.35); }
.social-btn svg { width: 20px; height: 20px; fill: currentColor; display: block; margin: auto; }
.social-btn--facebook:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 8px 20px rgba(24,119,242,.35); }
.social-btn--instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: transparent; }

/* Footer bottom */
.footer__bottom { background: rgba(0,0,0,.25); border-top: 1px solid rgba(255,255,255,.06); padding: 1.5rem 0; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; font-size: .85rem; }
.footer__bottom-inner > span { color: rgba(255,255,255,.5); }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { color: rgba(255,255,255,.5); font-size: .85rem; transition: color var(--transition); position: relative; }
.footer__links a:hover { color: #fff; }
.footer__links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--primary); transition: width var(--transition); }
.footer__links a:hover::after { width: 100%; }

/* Payment methods */
.payment-methods { display: flex; gap: .6rem; }
.payment-badge { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.8); font-size: .7rem; font-weight: 700; padding: .4rem .75rem; border-radius: var(--radius-sm); letter-spacing: .05em; transition: all var(--transition); }
.payment-badge:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }

/* ===================================
   BOTTOM NAV (MOBILE)
   =================================== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  z-index: 800;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .6rem .25rem;
  color: var(--text-muted);
  font-size: .65rem;
  font-weight: 600;
  transition: color var(--transition);
  position: relative;
  text-decoration: none;
}
.bottom-nav__item svg { width: 22px; height: 22px; }
.bottom-nav__item.active { color: var(--primary); }
.bottom-nav__badge {
  position: absolute;
  top: .4rem;
  right: calc(50% - 18px);
  background: var(--primary);
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* ===================================
   TOAST
   =================================== */
.toast {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  background: var(--secondary);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  opacity: 0;
  transform: translateY(10px);
  transition: all .3s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeSlideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes waveAnim {
  0%, 100% { transform: scaleY(.4); }
  50% { transform: scaleY(1); }
}
.audio-waveform .bar:nth-child(1) { animation-delay: 0s; height: 100%; }
.audio-waveform .bar:nth-child(2) { animation-delay: .1s; height: 80%; }
.audio-waveform .bar:nth-child(3) { animation-delay: .2s; height: 60%; }
.audio-waveform .bar:nth-child(4) { animation-delay: .3s; height: 90%; }
.audio-waveform .bar:nth-child(5) { animation-delay: .4s; height: 70%; }
.audio-waveform .bar:nth-child(6) { animation-delay: .5s; height: 85%; }
.audio-waveform .bar:nth-child(7) { animation-delay: .6s; height: 55%; }
.audio-waveform .bar:nth-child(8) { animation-delay: .7s; height: 75%; }
.audio-waveform .bar:nth-child(9) { animation-delay: .8s; height: 95%; }
.audio-waveform .bar:nth-child(10) { animation-delay: .9s; height: 65%; }
.audio-waveform .bar:nth-child(11) { animation-delay: 1s; height: 50%; }
.audio-waveform .bar:nth-child(12) { animation-delay: 1.1s; height: 80%; }

/* ===================================
   RESPONSIVE — TABLET (≤1024px)
   =================================== */
@media (max-width: 1024px) {
  .container { padding: 0 1.5rem; }
  .footer__inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.5rem; }
  .footer__col h5 { font-size: .72rem; }
  .footer__col a { font-size: .85rem; }
  .mega-menu__inner { grid-template-columns: 1fr 1fr 1fr; }
  .mega-menu__banner { display: none; }
  .audio-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  /* Hero tablet */
  .hero-section__inner { grid-template-columns: 1fr 200px; }
  .hero-slide__body { padding: 2rem 4rem 2.5rem 2rem; }
  .hero-slide__cover img { width: 110px; height: 165px; }
}

/* ===================================
   RESPONSIVE — MOBILE (≤768px)
   =================================== */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .container { padding: 0 1rem; }

  /* Navbar */
  .navbar__inner { padding: .5rem 1rem; gap: .5rem; }
  .hamburger { display: flex; }
  .nav-actions { gap: 0; }
  .nav-icon-btn { display: none; }
  .lang-switcher { margin-left: auto; }
  .lang-switcher__code { display: none; }
  .lang-switcher__toggle { padding: .36rem .42rem; gap: .25rem; }
  .nav-links-bar { display: none; }
  .catalog-btn { display: none; }
  .search-bar { display: none; }

  /* Hero */
  .hero-section { padding: 0 1rem; }
  .hero-section__inner { grid-template-columns: 1fr; gap: 6px; }
  .hero-main { border-radius: 10px; min-height: unset; overflow: hidden; }
  .hero-side { flex-direction: row; gap: 6px; padding: 0; }
  .hero-promo-card { min-height: auto; flex: 1; padding: .85rem; }
  .hero-promo-card__title { font-size: .92rem; }
  .hero-promo-card__sub { display: none; }
  .hero-slide { min-height: unset; border-radius: 0; }
  .hero-slide__body { padding: 1.5rem 1rem 1.5rem 1.25rem; gap: .75rem; flex-direction: row; align-items: center; }
  .hero-slide__content h2 { font-size: 1.2rem; line-height: 1.3; }
  .hero-slide__content p { display: none; }
  .hero-slide__content .btn--primary { font-size: .8rem; padding: .45rem .9rem; }
  .hero-slide__cover { flex-shrink: 0; }
  .hero-slide__cover img { width: 80px; height: 120px; }
  .hero-arrow { width: 28px; height: 28px; }
  .hero-dots { bottom: .6rem; }

  /* Stats */
  .stats-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,.15); border-top: 1px solid rgba(255,255,255,.15); }
  .stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,.15); }
  .stat-item { padding: .85rem .5rem; }
  .stat-number { font-size: 1.4rem; }

  /* Section spacing */
  section { padding: 1.75rem 0; }
  .section-title { font-size: 1.2rem; }
  .section-header { margin-bottom: 1rem; }
  .section-header .btn { font-size: .75rem; padding: .35rem .8rem; }

  /* Book cards carousel */
  .books-carousel .book-card { width: 150px; }
  .book-card__img-wrap { aspect-ratio: 2/3; }
  .book-card__title { font-size: .8rem; -webkit-line-clamp: 2; line-clamp: 2; }
  .book-card__author { font-size: .7rem; }
  .book-card__price { font-size: .88rem; }
  .book-card__cart-btn { width: 28px; height: 28px; }
  .book-card__body { padding: .6rem; }
  .books-carousel { gap: .65rem; }

  /* Categories */
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .category-card { padding: 1rem .75rem; border-radius: 10px; }
  .category-card__name { font-size: .78rem; }
  .category-card__count { font-size: .68rem; }

  /* Wizard */
  .wizard-card { grid-template-columns: 1fr; }
  .wizard-aside { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .75rem; padding: 1rem 1.25rem; }
  .wizard-aside__icon { font-size: 1.8rem; margin: 0; }
  .wizard-aside__title { font-size: 1rem; margin: 0; }
  .wizard-aside__sub { display: none; }
  .wizard-steps-track { flex-direction: row; gap: .5rem; margin: 0; flex: 1; justify-content: flex-end; }
  .wizard-progress { display: none; }
  .wizard-step-label { display: none; }
  .wizard-body { padding: 1.25rem; }
  .wizard-options { grid-template-columns: 1fr 1fr; }

  /* Audio */
  .audio-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .audio-card { padding: 1rem; }
  .audio-card__title { font-size: .85rem; }

  /* Authors */
  .authors-carousel { gap: 1rem; }
  .author-card { min-width: 90px; }
  .author-card__avatar { width: 58px; height: 58px; }
  .author-card__name { font-size: .75rem; }

  /* Quotes + Blog */
  .quotes-blog-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .quote-card { padding: 1.25rem; }

  /* Events */
  .events-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer { padding: 3rem 0 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__col--brand { grid-column: 1 / -1; text-align: center; }
  .footer__col--brand p { max-width: 100%; margin: 1rem auto 1.25rem; }
  .footer__logo { justify-content: center; }
  .footer__social { justify-content: center; }
  .footer__col h5 { font-size: .8rem; margin-bottom: 1.5rem; }
  .footer__col h5::after { width: 20px; }
  .footer__col a { font-size: .9rem; margin-bottom: .65rem; }
  .footer__bottom { padding: 1.25rem 0; }
  .footer__bottom-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .payment-methods { justify-content: center; flex-wrap: wrap; }

  /* Bottom Nav */
  .bottom-nav { display: flex; }
  main { padding-bottom: 72px; }
  .toast { bottom: 5.5rem; }
}

/* ===================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   =================================== */
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .audio-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .discount-header-left { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .hero-slide__content h1 { font-size: 1.75rem; }
  .books-carousel .book-card { width: 135px; }
  .book-card__body { padding: .5rem; }

  /* Footer small mobile */
  .footer { padding: 2.5rem 0 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer__col h5 { margin-bottom: 1.25rem; }
  .footer__col h5::after { left: 50%; transform: translateX(-50%); }
  .footer__col a { margin-bottom: .6rem; }
  .footer__col a:hover { padding-left: 0; }
  .footer__col a::before { display: none; }
  .footer__bottom-inner { gap: .75rem; }
  .footer__links { gap: .75rem; }
}

/* ===================================
   SCHOOL SUPPLIES SECTION
   =================================== */
.school-supplies-section { padding: 2.5rem 0; background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.school-supplies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.school-category-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--border-light);
}
.school-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.school-category-card__icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.school-category-card__text { display: flex; flex-direction: column; }
.school-category-card__name {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.3;
}
.school-category-card__count {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

/* ===================================
   WATER BOTTLES SECTION
   =================================== */
.water-bottles-section { padding: 2.5rem 0; background: #fff; }
.water-bottles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.water-bottle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  border: 1px solid #bae6fd;
}
.water-bottle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
}
.water-bottle-card__img {
  width: 64px;
  height: 64px;
  color: #0284c7;
  margin-bottom: .75rem;
}
.water-bottle-card__text { display: flex; flex-direction: column; }
.water-bottle-card__name {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  line-height: 1.3;
}
.water-bottle-card__count {
  font-size: .78rem;
  color: #0369a1;
  margin-top: .35rem;
}

/* ===================================
   TOYS SECTION
   =================================== */
.toys-section { padding: 2.5rem 0; background: linear-gradient(180deg, #fdf4ff 0%, #fae8ff 100%); }
.toys-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.toy-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid #f5d0fe;
}
.toy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #e879f9;
}
.toy-card__icon {
  font-size: 2.2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.toy-card__text { display: flex; flex-direction: column; }
.toy-card__name {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.3;
}
.toy-card__count {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

/* ===================================
   STUDENT DEALS SECTION
   =================================== */
.student-deals-section { padding: 2.5rem 0; background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%); }
.student-deals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.student-deal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  text-decoration: none;
}
.student-deal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.student-deal-card--primary { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); color: #fff; }
.student-deal-card--secondary { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); color: #fff; }
.student-deal-card--tertiary { background: linear-gradient(135deg, #059669 0%, #047857 100%); color: #fff; }
.student-deal-card--quaternary { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); color: #fff; }
.student-deal-card__content { display: flex; flex-direction: column; }
.student-deal-card__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: .35rem .75rem;
  background: rgba(255,255,255,.2);
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.student-deal-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.student-deal-card__desc {
  font-size: .9rem;
  opacity: .9;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.student-deal-card__price {
  font-size: 1.5rem;
  font-weight: 800;
}
.student-deal-card__price del {
  font-size: 1rem;
  opacity: .6;
  margin-left: .5rem;
  font-weight: 500;
}
.student-deal-card__img {
  font-size: 4rem;
  opacity: .9;
}

/* ===================================
   RESPONSIVE — SCHOOL SUPPLIES
   =================================== */
@media (max-width: 1200px) {
  .school-supplies-grid { grid-template-columns: repeat(2, 1fr); }
  .water-bottles-grid { grid-template-columns: repeat(3, 1fr); }
  .toys-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .school-supplies-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .school-category-card { padding: 1rem; }
  .school-category-card__icon { width: 48px; height: 48px; font-size: 1.6rem; }
  .water-bottles-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .water-bottle-card { padding: 1.25rem .75rem; }
  .water-bottle-card__img { width: 48px; height: 48px; }
  .toys-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .toy-card { padding: 1rem; }
  .toy-card__icon { width: 48px; height: 48px; font-size: 1.8rem; }
  .student-deals-grid { grid-template-columns: 1fr; }
  .student-deal-card { padding: 1.25rem; }
  .student-deal-card__title { font-size: 1.1rem; }
  .student-deal-card__img { font-size: 3rem; }
}
@media (max-width: 480px) {
  .school-supplies-grid { grid-template-columns: 1fr 1fr; }
  .water-bottles-grid { grid-template-columns: repeat(2, 1fr); }
  .toys-grid { grid-template-columns: 1fr 1fr; }
  .student-deal-card { flex-direction: column; text-align: center; gap: 1rem; }
  .student-deal-card__badge { align-self: center; }
}
