/* ========================================
   LUMORA BOOKS — ALL BOOKS PAGE
   Premium Catalogue Design
======================================== */


/* ========================================
   DESIGN TOKENS
======================================== */

:root {
  --ink: #17231e;
  --ink-soft: #707a73;
  --green: #214d3c;
  --green-deep: #14352a;

  --cream: #f8f8f4;
  --paper: #fffefa;
  --white: #ffffff;

  --orange: #d99852;
  --orange-soft: #f2e1cd;

  --line: #e3e7df;
  --muted: #9aa39c;

  --shadow-soft: 0 18px 45px rgba(23, 35, 30, 0.06);
  --shadow-card: 0 12px 35px rgba(23, 35, 30, 0.055);
  --shadow-hover: 0 22px 50px rgba(23, 35, 30, 0.13);

  --radius-large: 28px;
  --radius-medium: 20px;
  --radius-small: 12px;

  --container-width: 1280px;
  --transition: 280ms ease;
}

[data-theme="dark"] {
  --ink: #e4ebe6;
  --ink-soft: #9aa8a0;
  --green: #5cb88a;
  --green-deep: #7dd4a6;
  --cream: #0f1410;
  --paper: #1a2420;
  --white: #161d18;
  --orange: #e8b06a;
  --orange-soft: #2e2518;
  --line: #2a3a30;
  --muted: #9aa8a0;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 22px 50px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] body {
  background: var(--cream);
}

[data-theme="dark"] .site-header {
  background: rgba(15, 20, 16, 0.85);
  border-bottom-color: rgba(228, 235, 230, 0.06);
}

[data-theme="dark"] .nav-icon:hover {
  color: var(--green);
  transform: translateY(-2px);
}

[data-theme="dark"] .primary-button {
  background: var(--green);
  color: var(--cream);
}

[data-theme="dark"] .primary-button:hover {
  background: var(--green-deep);
}

[data-theme="dark"] .book-card {
  background: var(--paper);
  border-color: var(--line);
}

[data-theme="dark"] .book-card:hover {
  border-color: var(--green);
}

[data-theme="dark"] .search-box {
  background: var(--paper);
  border-color: var(--line);
}

[data-theme="dark"] .search-box input {
  color: var(--ink);
}

[data-theme="dark"] .filter-wrapper select {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

[data-theme="dark"] .category-pill {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink-soft);
}

[data-theme="dark"] .category-pill:hover {
  color: var(--green);
  border-color: var(--green);
}

[data-theme="dark"] .site-footer {
  background: #0a0f0b;
  border-top-color: var(--line);
}


/* ========================================
   RESET
======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;

  color: var(--ink);
  background:
    radial-gradient(
      circle at 5% 15%,
      rgba(33, 77, 60, 0.05),
      transparent 27rem
    ),
    radial-gradient(
      circle at 95% 45%,
      rgba(217, 152, 82, 0.06),
      transparent 27rem
    ),
    var(--cream);

  font-family: "Manrope", sans-serif;

  animation: pageEnter 550ms ease both;
}

body.page-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========================================
   GLOBAL CONTAINER
======================================== */

.container {
  width: min(
    var(--container-width),
    calc(100% - 112px)
  );

  margin-inline: auto;
}


/* ========================================
   HEADER
======================================== */

.site-header {
  height: 84px;

  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid var(--line);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar {
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}


/* Brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 39px;
  height: 39px;

  display: grid;
  place-items: center;

  color: var(--white);
  background: var(--green);

  border-radius: 12px;

  font-size: 17px;

  box-shadow:
    0 8px 20px rgba(33, 77, 60, 0.16);
}

.brand-name {
  font-family: "DM Serif Display", serif;
  font-size: 29px;
  line-height: 1;
  letter-spacing: -0.8px;
}

.brand-name span {
  color: var(--orange);
}


/* Navigation */

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  position: relative;

  padding: 32px 0;

  color: #6c766f;

  font-size: 13px;
  font-weight: 800;

  transition: color var(--transition);
}

.nav-links a::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;

  height: 2px;

  background: var(--orange);

  transform: scaleX(0);
  transform-origin: center;

  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}


/* Header Actions */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}

.nav-icon {
  width: 32px;
  height: 32px;

  position: relative;

  display: grid;
  place-items: center;

  color: var(--ink);
  font-size: 17px;

  transition:
    color var(--transition),
    transform var(--transition);
}

.nav-icon:hover {
  color: var(--green);
  transform: translateY(-2px);
}

/* Theme Toggle */
.theme-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.28s ease;
}

.theme-toggle:hover {
  color: var(--green);
  border-color: var(--line);
  background: var(--paper);
  transform: translateY(-2px);
}

.theme-toggle i {
  font-size: 1rem;
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle:active i {
  transform: rotate(30deg) scale(0.85);
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -8px;

  min-width: 17px;
  height: 17px;

  display: grid;
  place-items: center;

  padding: 0 4px;

  color: var(--white);
  background: var(--orange);

  border-radius: 50px;

  font-size: 9px;
  font-weight: 800;
}

.menu-toggle {
  display: none;

  width: 35px;
  height: 35px;

  border: 0;
  border-radius: 10px;

  color: var(--green);
  background: transparent;

  font-size: 18px;
}


/* ========================================
   HERO
======================================== */

.books-hero {
  padding: 78px 0 55px;
}

.hero-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: var(--orange);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";

  width: 32px;
  height: 1px;

  background: var(--orange);
}

.books-hero h1 {
  max-width: 720px;

  margin-top: 24px;

  color: var(--ink);

  font-family: "DM Serif Display", serif;
  font-size: clamp(54px, 6vw, 82px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -3px;
}

.books-hero h1 em {
  color: var(--green);
  font-style: italic;
}

.hero-description {
  max-width: 520px;

  margin-top: 26px;

  color: var(--ink-soft);

  font-size: 14px;
  line-height: 1.8;
}

.hero-stat {
  min-width: 150px;

  display: flex;
  flex-direction: column;
  align-items: flex-end;

  padding-bottom: 5px;
}

.hero-stat strong {
  color: var(--green);

  font-family: "DM Serif Display", serif;
  font-size: 54px;
  font-weight: 400;
  line-height: 1;
}

.hero-stat span {
  margin-top: 8px;

  color: var(--ink-soft);

  font-size: 11px;
  font-weight: 700;
}


/* ========================================
   TOOLBAR
======================================== */

.books-toolbar-section {
  padding-bottom: 34px;
}

.books-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 190px;
  align-items: end;
  gap: 16px;

  padding: 20px;

  border: 1px solid var(--line);
  border-radius: var(--radius-medium);

  background: rgba(255, 255, 255, 0.58);

  box-shadow: var(--shadow-soft);
}


/* Search */

.search-box {
  height: 48px;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 0 16px;

  border: 1px solid var(--line);
  border-radius: 12px;

  background: var(--white);

  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.search-box:focus-within {
  border-color: rgba(33, 77, 60, 0.5);
  box-shadow: 0 0 0 4px rgba(33, 77, 60, 0.07);
}

.search-box i {
  color: var(--green);
  font-size: 14px;
}

.search-box input {
  width: 100%;

  border: 0;
  outline: 0;

  color: var(--ink);
  background: transparent;

  font-size: 12px;
}

.search-box input::placeholder {
  color: #a0a8a2;
}


/* Select Filters */

.filter-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-wrapper label {
  color: var(--ink-soft);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.filter-wrapper select {
  width: 100%;
  height: 48px;

  padding: 0 13px;

  border: 1px solid var(--line);
  border-radius: 12px;

  outline: 0;

  color: var(--ink);
  background: var(--white);

  font-size: 12px;
  font-weight: 700;

  cursor: pointer;

  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.filter-wrapper select:focus {
  border-color: rgba(33, 77, 60, 0.5);
  box-shadow: 0 0 0 4px rgba(33, 77, 60, 0.07);
}


/* Category Pills */

.category-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;

  margin-top: 20px;
}

.category-pill {
  padding: 10px 15px;

  border: 1px solid var(--line);
  border-radius: 999px;

  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.55);

  font-size: 11px;
  font-weight: 800;

  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.category-pill:hover {
  color: var(--green);
  border-color: rgba(33, 77, 60, 0.25);
  transform: translateY(-2px);
}

.category-pill.active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}


/* ========================================
   BOOKS SECTION
======================================== */

.books-section {
  padding: 0 0 100px;
}

.section-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 20px;
}

.section-topline p {
  color: var(--ink-soft);

  font-size: 12px;
  font-weight: 700;
}

.view-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #9aa39c;

  font-size: 11px;
  font-weight: 700;
}

.view-label i {
  color: var(--green);
}


/* Books Grid */

.books-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}


/* ========================================
   BOOK CARD
======================================== */

.book-card {
  overflow: hidden;

  position: relative;

  display: flex;
  flex-direction: column;

  border: 1px solid rgba(218, 224, 216, 0.9);
  border-radius: var(--radius-medium);

  background: var(--paper);

  box-shadow: var(--shadow-card);

  opacity: 0;
  transform: translateY(14px);

  animation: cardEnter 500ms ease forwards;

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.book-card:hover {
  transform: translateY(-8px);
  border-color: rgba(33, 77, 60, 0.15);
  box-shadow: var(--shadow-hover);
}

@keyframes cardEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Book Cover Area */

.book-cover {
  height: 315px;

  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 28px;

  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.8),
      transparent 30%
    ),
    #e9eee6;
}

.book-card:nth-child(4n + 2) .book-cover {
  background:
    radial-gradient(
      circle at 80% 15%,
      rgba(255, 255, 255, 0.8),
      transparent 30%
    ),
    #f2e6ce;
}

.book-card:nth-child(4n + 3) .book-cover {
  background:
    radial-gradient(
      circle at 15% 80%,
      rgba(255, 255, 255, 0.8),
      transparent 30%
    ),
    #e7e4f1;
}

.book-card:nth-child(4n + 4) .book-cover {
  background:
    radial-gradient(
      circle at 85% 80%,
      rgba(255, 255, 255, 0.8),
      transparent 30%
    ),
    #f0e1dc;
}


/* Dotted Cover Texture */

.book-cover::before {
  content: "";

  position: absolute;
  inset: 0;

  opacity: 0.25;

  background-image: radial-gradient(
    rgba(33, 77, 60, 0.3) 0.8px,
    transparent 0.8px
  );

  background-size: 10px 10px;

  pointer-events: none;
}


/* Book Image */

.book-cover img {
  width: 150px;
  height: 220px;

  position: relative;
  z-index: 2;

  object-fit: contain;

  filter:
    drop-shadow(12px 18px 12px rgba(23, 35, 30, 0.18));

  transform: rotate(-3deg);

  transition:
    transform 500ms ease,
    filter 500ms ease;
}

.book-card:hover .book-cover img {
  transform: rotate(0deg) translateY(-8px) scale(1.04);

  filter:
    drop-shadow(15px 25px 18px rgba(23, 35, 30, 0.2));
}


/* Badge */

.book-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;

  padding: 9px 12px;

  color: var(--green);
  background: rgba(255, 255, 255, 0.82);

  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;

  font-size: 9px;
  font-weight: 800;

  backdrop-filter: blur(10px);
}

.book-badge.orange {
  color: #8b5a2b;
  background: #f5e5d0;
}

.book-badge.purple {
  color: #73547f;
  background: #eee4f3;
}

.book-badge.green {
  color: var(--green);
  background: #dfefe4;
}


/* Wishlist Button */

.wishlist-button {
  width: 36px;
  height: 36px;

  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;

  color: #768179;
  background: rgba(255, 255, 255, 0.8);

  font-size: 14px;

  backdrop-filter: blur(10px);

  transition:
    color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.wishlist-button:hover {
  color: #c56d62;
  background: var(--white);
  transform: scale(1.08);
}

.wishlist-button.saved {
  color: #c56d62;
}


/* Book Details */

.book-details {
  min-height: 205px;

  display: flex;
  flex-direction: column;

  padding: 23px 20px 20px;
}

.book-category {
  color: var(--orange);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.book-title {
  margin-top: 10px;

  color: var(--ink);

  font-family: "DM Serif Display", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.5px;
}

.book-author {
  margin-top: 8px;

  color: #8b948d;

  font-size: 11px;
  line-height: 1.5;
}

.book-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-top: auto;
  padding-top: 20px;
}

.book-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
}

.current-price {
  color: var(--green);

  font-size: 16px;
  font-weight: 800;
}

.old-price {
  color: #a1a8a2;

  font-size: 10px;
  text-decoration: line-through;
}


/* Add Button */

.add-cart-button {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;
  flex-shrink: 0;

  border: 0;
  border-radius: 50%;

  color: var(--white);
  background: var(--green);

  font-size: 15px;

  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.add-cart-button:hover {
  background: var(--green-deep);
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 8px 18px rgba(33, 77, 60, 0.2);
}

.add-cart-button.added {
  background: var(--orange);
}


/* ========================================
   SKELETON LOADING
======================================== */

.skeleton-grid {
  display: grid;
}

.book-skeleton {
  min-width: 0;
}

.skeleton {
  position: relative;
  overflow: hidden;

  background: #e8ece5;
  border-radius: 10px;
}

.skeleton::after {
  content: "";

  position: absolute;
  inset: 0;

  transform: translateX(-100%);

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.65),
    transparent
  );

  animation: skeletonShimmer 1.4s infinite;
}

.skeleton-cover {
  height: 315px;
  border-radius: var(--radius-medium);
}

.skeleton-line {
  width: 75%;
  height: 17px;
  margin-top: 20px;
}

.skeleton-line.short {
  width: 45%;
  height: 12px;
  margin-top: 10px;
}

@keyframes skeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}


/* ========================================
   EMPTY STATE
======================================== */

.empty-state {
  padding: 80px 20px;

  text-align: center;

  border: 1px dashed #cfd8ce;
  border-radius: var(--radius-medium);

  background: rgba(255, 255, 255, 0.4);
}

.empty-icon {
  width: 62px;
  height: 62px;

  display: grid;
  place-items: center;

  margin: 0 auto 20px;

  border-radius: 50%;

  color: var(--green);
  background: #e5eee5;

  font-size: 23px;
}

.empty-state h2 {
  font-family: "DM Serif Display", serif;
  font-size: 32px;
  font-weight: 400;
}

.empty-state p {
  margin-top: 10px;

  color: var(--ink-soft);

  font-size: 13px;
}

.reset-button {
  margin-top: 24px;
  padding: 12px 18px;

  border: 0;
  border-radius: 999px;

  color: var(--white);
  background: var(--green);

  font-size: 12px;
  font-weight: 800;
}


/* ========================================
   ERROR BANNER
======================================== */

.error-banner {
  display: flex;
  align-items: center;
  gap: 15px;

  padding: 20px;

  border: 1px solid #ead4c6;
  border-radius: var(--radius-medium);

  color: #714f3e;
  background: #fff2e8;
}

.error-banner > i {
  font-size: 22px;
}

.error-banner strong {
  font-size: 13px;
}

.error-banner p {
  margin-top: 4px;

  font-size: 11px;
  line-height: 1.5;
}

.error-banner button {
  margin-left: auto;
  padding: 10px 15px;

  border: 0;
  border-radius: 999px;

  color: var(--white);
  background: var(--green);

  font-size: 11px;
  font-weight: 800;
}


/* ========================================
   CTA
======================================== */

.books-cta-section {
  padding-bottom: 100px;
}

.books-cta {
  min-height: 280px;

  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;

  padding: 50px 60px;

  border-radius: var(--radius-large);

  color: var(--white);
  background: var(--green);

  box-shadow: var(--shadow-soft);
}

.books-cta::after {
  content: "";

  width: 330px;
  height: 330px;

  position: absolute;
  right: -70px;
  top: -100px;

  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;

  box-shadow:
    0 0 0 50px rgba(255, 255, 255, 0.025),
    0 0 0 100px rgba(255, 255, 255, 0.02);
}

.books-cta h2 {
  max-width: 600px;

  margin-top: 17px;

  font-family: "DM Serif Display", serif;
  font-size: clamp(38px, 4vw, 55px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -1.5px;
}

.books-cta p {
  max-width: 470px;

  margin-top: 18px;

  color: rgba(255, 255, 255, 0.67);

  font-size: 13px;
  line-height: 1.8;
}

.cta-button {
  position: relative;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;

  padding: 15px 21px;

  color: var(--green);
  background: var(--white);

  border-radius: 999px;

  font-size: 12px;
  font-weight: 800;

  transition:
    transform var(--transition),
    gap var(--transition),
    box-shadow var(--transition);
}

.cta-button:hover {
  gap: 17px;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}


/* ========================================
   FOOTER
======================================== */

.site-footer {
  padding: 50px 0 25px;

  border-top: 1px solid var(--line);

  background: rgba(255, 255, 255, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 35px;
}

.footer-brand p {
  max-width: 290px;

  margin-top: 18px;

  color: var(--ink-soft);

  font-size: 12px;
  line-height: 1.8;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-column h3 {
  margin-bottom: 8px;

  color: var(--ink);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-column a,
.footer-column span {
  color: var(--ink-soft);

  font-size: 12px;
  line-height: 1.5;

  transition: color var(--transition);
}

.footer-column a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-top: 38px;
  padding-top: 22px;

  border-top: 1px solid var(--line);

  color: #8a948d;

  font-size: 11px;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1100px) {

  .container {
    width: min(
      var(--container-width),
      calc(100% - 64px)
    );
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .books-toolbar {
    grid-template-columns: minmax(220px, 1fr) 170px 170px;
  }

}


/* ========================================
   MOBILE NAVIGATION
======================================== */

@media (max-width: 760px) {

  .container {
    width: calc(100% - 36px);
  }

  .site-header {
    height: 72px;
  }

  .nav-links {
    display: none;

    position: absolute;
    top: 82px;
    left: 18px;
    right: 18px;

    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 12px;

    border: 1px solid var(--line);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.97);

    box-shadow: var(--shadow-hover);

    animation: menuIn 220ms ease both;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
    border-radius: 10px;
  }

  .nav-links a:hover {
    background: #f2f5f0;
  }

  .nav-links a::after {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  @keyframes menuIn {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .books-hero {
    padding: 55px 0 35px;
  }

  .hero-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }

  .books-hero h1 {
    margin-top: 21px;

    font-size: clamp(51px, 14vw, 72px);
    letter-spacing: -2px;
  }

  .hero-stat {
    align-items: flex-start;
  }

  .hero-stat strong {
    font-size: 45px;
  }

  .books-toolbar {
    grid-template-columns: 1fr;
    gap: 16px;

    padding: 15px;
  }

  .category-pills {
    gap: 7px;
  }

  .category-pill {
    padding: 9px 12px;
    font-size: 10px;
  }

  .books-section {
    padding-bottom: 70px;
  }

  .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .book-cover {
    height: 240px;
    padding: 18px;
  }

  .book-cover img {
    width: 110px;
    height: 170px;
  }

  .book-badge {
    top: 10px;
    left: 10px;
    padding: 7px 9px;
    font-size: 8px;
  }

  .wishlist-button {
    width: 31px;
    height: 31px;

    top: 10px;
    right: 10px;

    font-size: 12px;
  }

  .book-details {
    min-height: 185px;
    padding: 17px 14px 15px;
  }

  .book-category {
    font-size: 8px;
  }

  .book-title {
    font-size: 21px;
  }

  .book-author {
    font-size: 10px;
  }

  .book-bottom {
    padding-top: 16px;
  }

  .current-price {
    font-size: 14px;
  }

  .old-price {
    font-size: 9px;
  }

  .add-cart-button {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .skeleton-cover {
    height: 240px;
  }

  .books-cta-section {
    padding-bottom: 70px;
  }

  .books-cta {
    min-height: 370px;

    align-items: flex-start;
    flex-direction: column;

    padding: 35px 28px;
    border-radius: 23px;
  }

  .books-cta h2 {
    font-size: 42px;
  }

  .cta-button {
    margin-top: 10px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 430px) {

  .brand-name {
    font-size: 25px;
  }

  .nav-actions {
    gap: 7px;
  }

  .nav-icon {
    width: 29px;
    height: 29px;
    font-size: 15px;
  }

  .books-grid {
    gap: 9px;
  }

  .book-cover {
    height: 210px;
    padding: 14px;
  }

  .book-cover img {
    width: 95px;
    height: 145px;
  }

  .book-details {
    min-height: 178px;
    padding: 15px 11px 13px;
  }

  .book-title {
    font-size: 19px;
  }

  .book-author {
    font-size: 9px;
  }

  .book-bottom {
    gap: 5px;
  }

  .current-price {
    font-size: 12px;
  }

  .old-price {
    display: none;
  }

  .add-cart-button {
    width: 31px;
    height: 31px;
  }

  .book-badge {
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .books-cta h2 {
    font-size: 38px;
  }

}


/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}

/* =========================================================
   DYNAMIC BOOK COVER COLORS
========================================================= */

.book-card-visual {
  position: relative;
  min-height: 315px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.book-card-visual::before,
.book-card-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.book-card-visual::before {
  width: 230px;
  height: 230px;
  right: -80px;
  bottom: -100px;
  background: rgba(255, 255, 255, 0.24);
}

.book-card-visual::after {
  width: 180px;
  height: 180px;
  left: -100px;
  top: -90px;
  background: rgba(255, 255, 255, 0.12);
}

/* Background Themes */

.book-card-visual.brown {
  background: #e7eee5;
}

.book-card-visual.green {
  background: #f1e8d2;
}

.book-card-visual.purple {
  background: #e6e2f2;
}

.book-card-visual.terracotta {
  background: #f0e1db;
}

.book-card-visual.blue {
  background: #dce9ec;
}

.book-card-visual.navy {
  background: #dfe5e3;
}

.book-card-visual.rose {
  background: #f0dfe2;
}

.book-card-visual.orange {
  background: #f2e5d4;
}

.book-card-visual.midnight {
  background: #dcdfea;
}

.book-card-visual.yellow {
  background: #eee8c9;
}

.book-card-visual.red {
  background: #eadbd5;
}

.book-card-visual.olive {
  background: #e3e8d9;
}

.book-card-visual.teal {
  background: #dcebe6;
}

.book-card-visual.charcoal {
  background: #e2e4e1;
}

.book-card-visual.lavender {
  background: #e7e1ef;
}

.book-card-visual.sage {
  background: #e0e9dd;
}

.book-card-visual.cream {
  background: #f1eadc;
}

.book-card-visual.coral {
  background: #f1ded5;
}

.book-card-visual.beige {
  background: #ece5d8;
}

.book-card-visual.bluegray {
  background: #dce4e9;
}

.book-card-visual.sand {
  background: #ede5d4;
}

.book-card-visual.space {
  background: #dce1eb;
}

.book-card-visual.cyan {
  background: #dceceb;
}

.book-card-visual.sky {
  background: #dceaf0;
}


/* =========================================================
   BOOK COVER
========================================================= */

.book-cover {
  width: 155px;
  min-height: 225px;
  padding: 24px 17px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-3deg);
  border-radius: 4px 8px 8px 3px;
  box-shadow:
    12px 18px 28px rgba(25, 40, 34, 0.16),
    inset 5px 0 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.book-card:hover .book-cover {
  transform: rotate(0deg) translateY(-8px);
  box-shadow:
    15px 25px 35px rgba(25, 40, 34, 0.2);
}

.book-cover::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.book-cover-brand {
  font-family: "Manrope", sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
}

.book-cover-title {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: 24px;
  line-height: 0.98;
  color: #f9f4e9;
}

.book-cover-author {
  font-family: "Manrope", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}


/* Cover Color Palette */

.book-card-visual.brown .book-cover {
  background: #9b6b51;
}

.book-card-visual.green .book-cover {
  background: #285744;
}

.book-card-visual.purple .book-cover {
  background: #765789;
}

.book-card-visual.terracotta .book-cover {
  background: #bd765e;
}

.book-card-visual.blue .book-cover {
  background: #416b7a;
}

.book-card-visual.navy .book-cover {
  background: #263f52;
}

.book-card-visual.rose .book-cover {
  background: #9a5e6c;
}

.book-card-visual.orange .book-cover {
  background: #b87543;
}

.book-card-visual.midnight .book-cover {
  background: #343d65;
}

.book-card-visual.yellow .book-cover {
  background: #9a7941;
}

.book-card-visual.red .book-cover {
  background: #8e4d42;
}

.book-card-visual.olive .book-cover {
  background: #596746;
}

.book-card-visual.teal .book-cover {
  background: #28665c;
}

.book-card-visual.charcoal .book-cover {
  background: #3d4545;
}

.book-card-visual.lavender .book-cover {
  background: #75648b;
}

.book-card-visual.sage .book-cover {
  background: #5d765b;
}

.book-card-visual.cream .book-cover {
  background: #9d7952;
}

.book-card-visual.coral .book-cover {
  background: #b76855;
}

.book-card-visual.beige .book-cover {
  background: #806d59;
}

.book-card-visual.bluegray .book-cover {
  background: #526b78;
}

.book-card-visual.sand .book-cover {
  background: #8d704f;
}

.book-card-visual.space .book-cover {
  background: #394c76;
}

.book-card-visual.cyan .book-cover {
  background: #32716f;
}

.book-card-visual.sky .book-cover {
  background: #48758b;
}


/* =========================================================
   CART TOAST
========================================================= */

.cart-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: #18352c;
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 15px 35px rgba(18, 42, 33, 0.22);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.cart-toast i {
  color: #e7a45d;
}

.add-cart-button.added {
  background: #c98a4d;
  transform: scale(1.08);
}


/* =========================================================
   RESPONSIVE BOOK COVER
========================================================= */

@media (max-width: 600px) {
  .book-card-visual {
    min-height: 270px;
  }

  .book-cover {
    width: 135px;
    min-height: 195px;
  }

  .book-cover-title {
    font-size: 21px;
  }

  .cart-toast {
    right: 15px;
    left: 15px;
    bottom: 15px;
    justify-content: center;
  }
}