/* CUTE BOOKS INTERNATIONAL - Master Stylesheet v2 */
:root {
  --red: #DC2626; --red-dark: #B91C1C; --red-light: #EF4444;
  --blue: #1E3A8A; --blue-dark: #1E40AF; --blue-light: #3B82F6;
  --accent: #F59E0B; --navy: #0F172A;
  --gray-50: #FAFBFC; --gray-100: #F1F5F9; --gray-200: #E2E8F0;
  --gray-300: #CBD5E1; --gray-400: #94A3B8; --gray-500: #64748B;
  --gray-600: #475569; --gray-700: #334155; --gray-800: #1E293B; --gray-900: #0F172A;
  --white: #ffffff; --cream: #FFF9F0; --success: #10B981;
  --shadow: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,.08), 0 2px 4px -2px rgba(15,23,42,.04);
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,.1), 0 4px 6px -4px rgba(15,23,42,.06);
  --shadow-xl: 0 20px 25px -5px rgba(15,23,42,.1), 0 8px 10px -6px rgba(15,23,42,.06);
  --shadow-2xl: 0 25px 50px -12px rgba(15,23,42,.25);
  --radius: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-full: 9999px;
  --header-h: 76px; --container: 1280px;
  --font-display: 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--gray-800); background: var(--white);
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input,textarea,select { font: inherit; color: inherit; }
ul,ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); line-height: 1.25; color: var(--gray-900); font-weight: 800; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
main { min-height: calc(100vh - var(--header-h)); }
section { padding: 80px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  transition: transform .2s, box-shadow .2s, background-color .2s, color .2s, border-color .2s;
  cursor: pointer; white-space: nowrap;
}
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 4px 14px rgba(220,38,38,.25); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(220,38,38,.35); }
.btn-blue { background: var(--blue); color: var(--white); box-shadow: 0 4px 14px rgba(30,58,138,.25); }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,58,138,.35); }
.btn-white { background: var(--white); color: var(--red); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.btn-white:hover { background: var(--gray-100); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.15); color: var(--white); border: 1.5px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-outline-red { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline-red:hover { background: var(--red); color: var(--white); }
.btn-block { width: 100%; }

/* Home Hero */
.hero-home {
  position: relative; min-height: 620px; display: flex; align-items: center;
  overflow: hidden; padding: 80px 0;
  background: linear-gradient(135deg, #FFF9F0 0%, #FEF3E2 100%);
}
.hero-home::before {
  content:''; position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(220,38,38,0.35), transparent 65%);
  border-radius: 50%; filter: blur(80px); opacity: .6;
  animation: floatBlob 8s ease-in-out infinite;
}
.hero-home::after {
  content:''; position: absolute;
  bottom: -150px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(30,58,138,0.35), transparent 65%);
  border-radius: 50%; filter: blur(80px); opacity: .6;
  animation: floatBlob 8s ease-in-out infinite; animation-delay: 3s;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}
.hero-shape {
  position: absolute; pointer-events: none; z-index: 1; opacity: 0.4;
  animation: floatShape 6s ease-in-out infinite;
}
.hero-shape.s1 { top: 15%; left: 8%; width: 54px; height: 54px; animation-delay: 0s; }
.hero-shape.s2 { top: 22%; right: 12%; width: 40px; height: 40px; animation-delay: 1s; }
.hero-shape.s3 { bottom: 25%; left: 15%; width: 46px; height: 46px; animation-delay: 2s; }
.hero-shape.s4 { bottom: 18%; right: 18%; width: 60px; height: 60px; animation-delay: 3s; }
@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(12deg); }
}
.hero-home-content { position: relative; z-index: 2; text-align: center; max-width: 900px; margin: 0 auto; padding: 0 20px; }
.hero-home-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--red); padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700; font-size: 13px;
  margin-bottom: 24px; box-shadow: var(--shadow-md);
}
.hero-home-badge .dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-home h1 {
  font-size: clamp(38px, 6vw, 68px); color: var(--gray-900);
  margin-bottom: 16px; letter-spacing: -0.02em; line-height: 1.08; font-weight: 900;
}
.brand-red { color: var(--red) !important; }
.brand-blue { color: var(--blue) !important; }
.hero-home .subtitle {
  font-size: clamp(17px, 2vw, 21px); color: var(--gray-600);
  margin-bottom: 36px; max-width: 640px; margin-left: auto; margin-right: auto;
  font-weight: 500;
}
.hero-home-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Page banner */
.page-banner {
  position: relative; padding: 80px 20px; text-align: center;
  overflow: hidden; color: var(--gray-900);
  background: linear-gradient(135deg, #FFF9F0 0%, #FAFBFC 100%);
}
.page-banner::before {
  content: ''; position: absolute;
  top: -80px; left: -80px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(220,38,38,0.22), transparent 65%);
  border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.page-banner::after {
  content: ''; position: absolute;
  bottom: -80px; right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(30,58,138,0.22), transparent 65%);
  border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.page-banner-content { position: relative; z-index: 2; }
.page-banner-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); color: var(--red);
  padding: 6px 16px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 13px;
  margin-bottom: 18px; box-shadow: var(--shadow);
}
.page-banner h1 {
  font-size: clamp(32px, 5vw, 52px); color: var(--gray-900);
  margin-bottom: 14px; letter-spacing: -0.02em;
}
.page-banner p {
  font-size: clamp(16px, 2vw, 19px); color: var(--gray-600);
  max-width: 720px; margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200); height: var(--header-h);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: 18px; letter-spacing: -.01em; }
.brand-tagline { color: var(--blue); font-size: 12px; font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 4px; }
.nav-desktop { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--gray-700);
  transition: background-color .15s, color .15s;
}
.nav-link:hover { background: var(--gray-100); color: var(--red); }
.nav-link.active { background: var(--red); color: var(--white); }
.nav-link.active:hover { background: var(--red-dark); color: var(--white); }

.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gray-100); color: var(--gray-700);
  display: grid; place-items: center; transition: background .15s, color .15s;
  margin-left: 6px;
}
.cart-btn:hover { background: var(--red); color: var(--white); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--red); color: var(--white);
  font-size: 11px; font-weight: 800;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--white);
  animation: popIn .25s ease;
}
.cart-btn:hover .cart-badge { background: var(--white); color: var(--red); border-color: var(--red); }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
.cart-badge.hidden { display: none; }

.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; }
.menu-toggle:hover { background: var(--gray-100); }
.menu-toggle svg { width: 26px; height: 26px; stroke: var(--gray-800); }

.nav-mobile {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 85%; max-width: 360px; background: var(--white);
  z-index: 200; padding: 24px 20px; transform: translateX(100%);
  transition: transform .3s ease; box-shadow: -10px 0 40px rgba(0,0,0,.1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.nav-mobile-close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gray-100); }
.nav-mobile-links { display: flex; flex-direction: column; gap: 4px; }
.nav-mobile-links a {
  padding: 14px 18px; border-radius: 10px; font-weight: 600; font-size: 16px;
  color: var(--gray-700); transition: background-color .15s, color .15s;
  display: flex; align-items: center; gap: 10px;
}
.nav-mobile-links a:hover { background: var(--gray-100); color: var(--red); }
.nav-mobile-links a.active { background: var(--red); color: var(--white); }

.nav-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.55);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 150;
}
.nav-overlay.show { opacity: 1; pointer-events: auto; }

@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .brand-name { font-size: 16px; }
  .brand-tagline { font-size: 11px; }
}

/* Section Heads */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--gray-500); font-size: 17px; max-width: 640px; margin: 0 auto; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.feature-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 32px 24px; text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, #7C3AED 100%);
  color: var(--white); display: grid; place-items: center; margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(124,58,237,.25);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--gray-500); font-size: 14.5px; line-height: 1.6; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Book Card */
.book-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s; position: relative;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.book-card-img { aspect-ratio: 3/4; background: linear-gradient(135deg, #fde68a, #fbcfe8); overflow: hidden; cursor: pointer; display: block; }
.book-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.book-card:hover .book-card-img img { transform: scale(1.05); }
.book-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.book-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 3px 9px; border-radius: var(--radius-full); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.tag-red { background: var(--red); color: var(--white); }
.tag-blue { background: var(--blue); color: var(--white); }
.tag-purple { background: #7C3AED; color: var(--white); }
.tag-accent { background: var(--accent); color: var(--white); }
.tag-gray { background: var(--gray-100); color: var(--gray-700); }

.book-card h3 { font-size: 15px; color: var(--gray-900); line-height: 1.3; min-height: 2.6em; }
.book-card-age { color: var(--gray-500); font-size: 12.5px; }
.book-card-price { color: var(--red); font-size: 20px; font-weight: 800; margin-top: auto; }
.book-card-actions { display: flex; gap: 6px; margin-top: 6px; }
.book-card-btn {
  flex: 1; padding: 10px; background: var(--blue); color: var(--white);
  border-radius: var(--radius-full); font-weight: 700; font-size: 12.5px;
  text-align: center; transition: background-color .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.book-card-btn:hover { background: var(--blue-dark); }
.book-card-btn-cart {
  flex: 1; padding: 10px; background: var(--red); color: var(--white);
  border-radius: var(--radius-full); font-weight: 700; font-size: 12.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  transition: background-color .15s, transform .15s; cursor: pointer; border: 0;
}
.book-card-btn-cart:hover { background: var(--red-dark); }
.book-card-btn-cart.added { background: var(--success); }
.book-card-btn svg, .book-card-btn-cart svg { width: 14px; height: 14px; }

/* Filters */
.filter-row { margin-bottom: 20px; }
.filter-label { font-weight: 700; color: var(--gray-700); margin-bottom: 10px; font-size: 15px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 18px; border-radius: var(--radius-full);
  background: var(--white); color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
  font-weight: 600; font-size: 14px; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; color: var(--gray-700); margin-bottom: 7px; font-size: 14px; }
.form-label .required { color: var(--red); }
.form-input,.form-select,.form-textarea {
  width: 100%; padding: 12px 18px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full); background: var(--white);
  font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.form-textarea { border-radius: var(--radius); min-height: 120px; resize: vertical; font-family: var(--font-body); }
.form-input:focus,.form-select:focus,.form-textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}
.form-success { padding: 16px 20px; background: #ECFDF5; border: 1px solid #6EE7B7; border-radius: var(--radius); color: #065F46; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.form-error { padding: 16px 20px; background: #FEF2F2; border: 1px solid #FCA5A5; border-radius: var(--radius); color: #991B1B; font-weight: 600; }

/* Accordion */
.accordion { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--gray-200); }
.accordion-item:last-child { border-bottom: 0; }
.accordion-trigger {
  width: 100%; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; font-weight: 600; font-size: 15.5px; color: var(--gray-800);
  transition: background-color .15s; cursor: pointer;
}
.accordion-trigger:hover { background: var(--gray-50); }
.accordion-trigger .chev { width: 20px; height: 20px; stroke: var(--gray-500); transition: transform .25s; flex-shrink: 0; }
.accordion-item.open .accordion-trigger .chev { transform: rotate(180deg); stroke: var(--red); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--gray-600); line-height: 1.7; font-size: 15px; }
.accordion-content-inner { padding: 0 24px 20px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--gray-300); padding: 64px 0 24px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .brand-name { color: var(--white); font-size: 22px; }
.footer-brand .brand-tagline { color: rgba(255,255,255,.6); }
.footer-brand p { color: rgba(255,255,255,.65); margin-top: 16px; font-size: 14.5px; line-height: 1.7; max-width: 360px; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.06); display: grid; place-items: center; transition: background-color .15s; }
.footer-socials a:hover { background: var(--red); }
.footer-socials svg { width: 18px; height: 18px; fill: var(--white); }
.footer-heading { color: var(--white); font-size: 17px; font-weight: 800; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: 14.5px; }
.footer-links a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 20px; }
.footer-contact-row { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact-row svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--red); margin-top: 2px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; padding: 11px 18px; border-radius: var(--radius-full); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: var(--white); font-size: 14px; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,.12); }
.newsletter-form button { padding: 11px 22px; background: var(--red); color: var(--white); border-radius: var(--radius-full); font-weight: 700; font-size: 14px; transition: background-color .15s; }
.newsletter-form button:hover { background: var(--red-dark); }
.footer-bottom { padding-top: 24px; text-align: center; font-size: 13.5px; color: rgba(255,255,255,.55); }
.footer-bottom p + p { margin-top: 6px; }
.footer-bottom a { color: var(--red-light); font-weight: 600; }

/* CTA */
.cta-block {
  background: linear-gradient(135deg, var(--blue) 0%, #7C3AED 50%, var(--red) 100%);
  color: var(--white);
  border-radius: var(--radius-xl); padding: 48px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-block::before { content:''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.15), transparent 50%); }
.cta-block > * { position: relative; }
.cta-block h2 { color: var(--white); font-size: clamp(24px, 4vw, 34px); margin-bottom: 12px; }
.cta-block p { color: rgba(255,255,255,.9); font-size: 17px; margin-bottom: 24px; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-block-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Utilities */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.text-muted { color: var(--gray-500); }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.hidden { display: none !important; }

.no-results { padding: 60px 20px; text-align: center; color: var(--gray-500); font-size: 17px; }

/* Cart Page */
.cart-page { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .cart-page { grid-template-columns: 1fr; } }
.cart-item {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 16px;
  display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center;
  margin-bottom: 14px;
}
.cart-item-img { width: 90px; height: 120px; border-radius: var(--radius); overflow: hidden; background: var(--gray-100); display: block; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h4 { font-size: 16px; margin-bottom: 4px; }
.cart-item-info .meta { color: var(--gray-500); font-size: 13px; margin-bottom: 8px; }
.cart-item-info .price { color: var(--red); font-size: 16px; font-weight: 800; }

.qty-control { display: inline-flex; align-items: center; background: var(--gray-100); border-radius: var(--radius-full); padding: 4px; }
.qty-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--white); color: var(--gray-700); display: grid; place-items: center; font-weight: 800; transition: background .15s, color .15s; cursor: pointer; }
.qty-btn:hover { background: var(--red); color: var(--white); }
.qty-val { min-width: 32px; text-align: center; font-weight: 700; font-size: 15px; padding: 0 6px; }

.cart-item-remove { color: var(--gray-400); cursor: pointer; padding: 6px; display: grid; place-items: center; border-radius: 50%; transition: background .15s, color .15s; margin-top: 6px; }
.cart-item-remove:hover { background: #FEE2E2; color: var(--red); }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.cart-summary {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.cart-summary h3 { font-size: 20px; margin-bottom: 18px; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--gray-200); font-size: 15px; }
.cart-summary-row.total { border-bottom: 0; padding-top: 16px; margin-top: 6px; border-top: 2px solid var(--gray-200); font-size: 19px; font-weight: 800; }
.cart-summary-row.total span:last-child { color: var(--red); font-size: 22px; }

/* Cart toast */
.cart-toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--gray-900); color: var(--white);
  padding: 14px 22px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-2xl); z-index: 1000;
  display: flex; align-items: center; gap: 10px;
  transform: translateY(100px); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.cart-toast.show { transform: translateY(0); opacity: 1; }
.cart-toast svg { width: 20px; height: 20px; color: var(--success); }

.empty-cart { text-align: center; padding: 80px 20px; }
.empty-cart svg { width: 100px; height: 100px; margin: 0 auto 20px; color: var(--gray-300); }
.empty-cart h2 { font-size: 24px; margin-bottom: 10px; }
.empty-cart p { color: var(--gray-500); margin-bottom: 24px; }

@media (max-width: 700px) {
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp .6s ease backwards; }

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
  --white: #0F172A;
  --cream: #1A1E2E;
  --gray-50: #1E293B;
  --gray-100: #334155;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #64748B;
  --gray-500: #94A3B8;
  --gray-600: #CBD5E1;
  --gray-700: #E2E8F0;
  --gray-800: #F1F5F9;
  --gray-900: #FAFBFC;
  --navy: #020617;
}

[data-theme="dark"] body {
  background: #0F172A;
  color: #E2E8F0;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #F8FAFC;
}

[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: #1E293B;
}

[data-theme="dark"] .hero-home {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}
[data-theme="dark"] .hero-home h1 {
  color: #F8FAFC;
}
[data-theme="dark"] .hero-home .subtitle {
  color: #CBD5E1;
}
[data-theme="dark"] .hero-home-badge {
  background: #1E293B;
  color: #EF4444;
}

[data-theme="dark"] .page-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #F1F5F9;
}
[data-theme="dark"] .page-banner h1 { color: #F8FAFC; }
[data-theme="dark"] .page-banner p { color: #CBD5E1; }
[data-theme="dark"] .page-banner-chip {
  background: #1E293B;
  color: #EF4444;
}

[data-theme="dark"] .card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .book-card,
[data-theme="dark"] .accordion {
  background: #1E293B;
  border-color: #334155;
  color: #E2E8F0;
}

[data-theme="dark"] .book-card h3 { color: #F8FAFC; }
[data-theme="dark"] .nav-link { color: #CBD5E1; }
[data-theme="dark"] .nav-link:hover { background: #1E293B; color: #EF4444; }

[data-theme="dark"] .cart-btn,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .currency-trigger {
  background: #1E293B;
  color: #E2E8F0;
}

[data-theme="dark"] .menu-toggle svg { stroke: #E2E8F0; }

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  background: #1E293B;
  border-color: #334155;
  color: #F1F5F9;
}
[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
  color: #64748B;
}

[data-theme="dark"] .chip {
  background: #1E293B;
  border-color: #334155;
  color: #CBD5E1;
}
[data-theme="dark"] .chip:hover { border-color: #EF4444; color: #EF4444; }
[data-theme="dark"] .chip.active { background: #DC2626; color: #fff; border-color: #DC2626; }

[data-theme="dark"] .section-head p { color: #94A3B8; }
[data-theme="dark"] .no-results { color: #94A3B8; }

[data-theme="dark"] .accordion-trigger { color: #F1F5F9; }
[data-theme="dark"] .accordion-trigger:hover { background: #0F172A; }

[data-theme="dark"] .cart-summary { background: #0F172A; border-color: #334155; }
[data-theme="dark"] .qty-control { background: #0F172A; }
[data-theme="dark"] .qty-btn { background: #1E293B; color: #E2E8F0; }

[data-theme="dark"] .nav-mobile { background: #0F172A; }
[data-theme="dark"] .nav-mobile-links a { color: #CBD5E1; }
[data-theme="dark"] .nav-mobile-links a:hover { background: #1E293B; color: #EF4444; }

[data-theme="dark"] .cart-item { background: #1E293B; border-color: #334155; }

[data-theme="dark"] .currency-menu {
  background: #1E293B;
  border-color: #334155;
}
[data-theme="dark"] .currency-option { color: #E2E8F0; }
[data-theme="dark"] .currency-option:hover { background: #0F172A; }
[data-theme="dark"] .currency-option.active { background: #0F172A; }

[data-theme="dark"] .site-footer {
  background: #020617;
}

/* ============================================================
   CURRENCY DROPDOWN + THEME TOGGLE
   ============================================================ */
.currency-dropdown {
  position: relative;
  margin-left: 6px;
}
.currency-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 700;
  font-size: 13px;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.currency-trigger:hover { background: var(--red); color: #fff; }
.curr-code { font-size: 12px; letter-spacing: .02em; }

.currency-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  padding: 6px;
  display: none;
  z-index: 200;
}
.currency-menu.open { display: block; animation: popIn .15s ease; }

.currency-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: left;
  transition: background .12s;
  cursor: pointer;
  color: var(--gray-700);
  border: 0;
  background: transparent;
}
.currency-option:hover { background: var(--gray-50); }
.currency-option.active { background: var(--gray-100); }

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-700);
  display: grid;
  place-items: center;
  transition: background .15s, color .15s, transform .3s;
  margin-left: 4px;
}
.theme-toggle:hover {
  background: var(--red);
  color: #fff;
  transform: rotate(20deg);
}
.theme-toggle svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .curr-code { display: none; }
  .currency-trigger { padding: 8px 10px; }
}
