/* ==========================================================================
   AURORA — Books For A Calmer You
   Styles & Layout Specifications
   ========================================================================== */

:root {
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --color-bg: #ffffff;
  --color-bg-alt: #fbf9f6;
  --color-bg-card: #f8f6f0;
  --color-surface: #ffffff;

  --color-text-main: #111418;
  --color-text-body: #4a5056;
  --color-text-muted: #798089;
  --color-text-light: #9ba1a8;

  --color-primary: #121417;
  --color-primary-hover: #2a2e33;
  --color-accent: #c48f56;
  --color-border: #e6e8eb;
  --color-border-subtle: #f0f1f3;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.1);
  --shadow-book: 0 12px 28px -6px rgba(0, 0, 0, 0.22), 0 4px 10px rgba(0, 0, 0, 0.1);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1580px;
}

/* ----------------------------------------
   Reset & Base Styles
   ---------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ----------------------------------------
   Typography & Shared Elements
   ---------------------------------------- */
h1, h2, h3, h4, .brand-logo, .footer-logo {
  color: var(--color-text-main);
  font-weight: 500;
  line-height: 1.2;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
}

.btn-pill {
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.8rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(18, 20, 23, 0.25);
}

/* ----------------------------------------
   Header & Navigation
   ---------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 232, 235, 0.7);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 0.2em;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 3.5rem;
}

.main-nav .nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin: 0 auto;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-body);
  position: relative;
  padding: 0.4rem 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-text-main);
  transition: width var(--transition-smooth);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.action-btn {
  font-size: 1.15rem;
  color: var(--color-text-main);
  padding: 0.4rem;
  position: relative;
  transition: transform var(--transition-fast), color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  transform: translateY(-2px);
  color: #000;
}

.action-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-icon-wrap .badge,
.action-btn .badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-text {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px 0;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background-color: var(--color-text-main);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero-section {
  padding: 3rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4.8rem;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text-body);
  margin-bottom: 2.2rem;
}

.explore-btn {
  font-size: 1.05rem;
  padding: 0.9rem 2.2rem;
  margin-bottom: 3.5rem;
}

.explore-btn .arrow {
  transition: transform var(--transition-smooth);
}

.explore-btn:hover .arrow {
  transform: translateX(4px);
}

.hero-features {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--color-text-main);
}

.feature-text {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text-main);
}

.feature-divider {
  width: 1px;
  height: 48px;
  background-color: var(--color-border);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-book-wrapper {
  position: relative;
  width: 100%;
  max-width: 680px;
}

.hero-book-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.08));
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-0.5deg);
  }
}

/* ----------------------------------------
   Books for a Calmer You
   ---------------------------------------- */
.calmer-section {
  padding: 5rem 0 6rem;
  border-top: 1px solid var(--color-border-subtle);
}

.calmer-container {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  align-items: center;
  gap: 4rem;
}

.calmer-heading {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.calmer-description {
  font-size: 1.15rem;
  color: var(--color-text-body);
  margin-bottom: 2.4rem;
  line-height: 1.6;
}

.search-box-widget {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #f7f6f4;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.6rem;
  max-width: 440px;
  border: 1px solid #eeece7;
  transition: all var(--transition-fast);
}

.search-box-widget:focus-within {
  background-color: #ffffff;
  border-color: #000;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.search-box-widget i {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.search-box-widget input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
  color: var(--color-text-main);
}

.search-box-widget input::placeholder {
  color: var(--color-text-muted);
}

.calmer-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.calmer-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.5rem;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.calmer-card:hover {
  transform: translateY(-8px);
}

.calmer-book-img {
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow-book);
  transition: transform var(--transition-smooth);
}

.calmer-card:hover .calmer-book-img {
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.3);
}

/* ----------------------------------------
   Top Picks This Week
   ---------------------------------------- */
.top-picks-section {
  padding: 4rem 0 6rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: #c9cdd2;
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0.5rem 1.8rem;
}

.book-cover {
  width: 195px;
  height: 265px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  cursor: pointer;
}

.product-card:hover .book-cover {
  transform: scale(1.03) rotate(-0.5deg);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.wishlist-toggle {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  z-index: 2;
}

.wishlist-toggle:hover {
  color: #e53e3e;
  transform: scale(1.1);
  border-color: #fca5a5;
}

.wishlist-toggle.active {
  background-color: #fee2e2;
  border-color: #f87171;
  color: #dc2626;
}

.wishlist-toggle.active i::before {
  content: "\f004"; /* fa-solid fa-heart */
  font-weight: 900;
}

.card-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 500;
  background-color: #f1f3f5;
  color: var(--color-text-muted);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
}

.book-title {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--color-text-main);
  cursor: pointer;
}

.book-title:hover {
  text-decoration: underline;
}

.book-author {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
}

.book-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 1.2rem;
}

.btn-card {
  width: 100%;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
  margin-top: auto;
}

.btn-card:hover {
  background-color: #000;
}

/* ----------------------------------------
   Unique Best Sellers Banner
   ---------------------------------------- */
.bestsellers-section {
  padding: 2rem 0 6rem;
}

.bestsellers-banner-card {
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 450px;
    background: url(assets/bestsellers-banner.png);
    background-size: cover;
}

.banner-content {
  padding: 4.5rem 4rem;
}

.banner-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 1.4rem;
}

.banner-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-body);
  margin-bottom: 2.2rem;
  line-height: 1.6;
}

.explore-banner-btn {
  font-size: 1rem;
  padding: 0.85rem 2rem;
}

.banner-image-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.banner-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ----------------------------------------
   World of Fantastic Books
   ---------------------------------------- */
.world-fantastic-section {
  padding: 2rem 0 6rem;
}

.category-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3.5rem;
}

.category-tab {
  padding: 0.65rem 1.6rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-body);
  background: transparent;
  transition: all var(--transition-fast);
}

.category-tab:hover {
  color: var(--color-text-main);
  background: #f4f4f5;
}

.category-tab.active {
  background: var(--color-primary);
  color: #ffffff;
}

.fantastic-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.fantastic-heading {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  line-height: 1.12;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.fantastic-desc {
  font-size: 1.1rem;
  color: var(--color-text-body);
  line-height: 1.65;
}

.fantastic-showcases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.shelf-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth);
}

.shelf-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.shelf-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.shelf-card:hover .shelf-img {
  transform: scale(1.03);
}

/* Seoulful Stories Dual Banners */
.seoulful-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.seoulful-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.seoulful-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.seoulful-img {
  width: 100%;
  display: block;
}

/* ----------------------------------------
   Timeless Classics (Lord of the Rings)
   ---------------------------------------- */
.classics-section {
  padding: 4rem 0 6rem;
  background-color: #faf9f6;
}

.lotr-banner-container {
  border-radius: var(--radius-lg);
  min-height: 600px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3.5rem;
}

.lotr-banner-container:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}


.word-the {
  position: absolute;
  top: -80px;
  left: 60px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.3em;
  color: #121417;
  font-weight: 600;
}

.word-rin, .word-gs {
  font-family: var(--font-serif);
  font-size: 16rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  color: #2b2825;
  line-height: 1;
}

.word-rin {
  margin-left: 2rem;
}

.word-gs {
  margin-right: 2rem;
}

.lotr-book-center {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 420px;
  transition: transform var(--transition-smooth);
}

.lotr-book-center:hover {
  transform: scale(1.03);
}

.lotr-cover-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
}

.lotr-side-content {
  position: absolute;
  right: 4.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.section-tag-small {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-tag-small::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background-color: #ccc;
  width: 40px;
}

.lotr-blurb {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-body);
}

.lotr-action {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.action-sublabel {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
}

.classics-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.classics-link .circle-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.classics-link:hover .circle-arrow {
  background-color: var(--color-primary);
  color: #fff;
  transform: translateX(4px);
}

/* 4 Classic Books Cards */
.classics-books-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.classic-book-card {
  background-color: #f3efe6;
  border-radius: var(--radius-md);
  padding: 2.2rem 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all var(--transition-smooth);
}

.classic-book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background-color: #eee9dd;
}

.classic-img-wrap {
  margin-bottom: 1.4rem;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.classic-img-wrap img {
  max-height: 180px;
  width: auto;
  border-radius: 4px;
  box-shadow: var(--shadow-book);
  transition: transform var(--transition-smooth);
}

.classic-book-card:hover .classic-img-wrap img {
  transform: scale(1.05);
}

.classic-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.classic-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.quick-add-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.quick-add-btn:hover {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.1);
}

/* ----------------------------------------
   Blogs Section
   ---------------------------------------- */
.blogs-section {
  padding: 5rem 0 7rem;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-subtle);
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.blog-thumb {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.05);
}

.blog-meta {
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.blog-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.blog-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
}

.blog-footer-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: 0.8rem;
  text-transform: uppercase;
}

/* ----------------------------------------
   Footer Section
   ---------------------------------------- */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 1.2fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1rem;
}

.footer-tagline {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--color-text-body);
  line-height: 1.6;
  max-width: 300px;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-main);
  margin-bottom: 1.4rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--color-text-body);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #000;
  padding-left: 3px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.92rem;
  color: var(--color-text-body);
  line-height: 1.5;
}

.footer-contact-list i {
  margin-top: 0.25rem;
  font-size: 1rem;
  color: var(--color-text-main);
}

.footer-bottom-wrapper {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2rem;
}

.footer-landscape-art {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 480px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

.copyright-bar {
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ----------------------------------------
   Cart Slide-over Drawer
   ---------------------------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
}

.cart-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}

.drawer-title {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.close-drawer-btn {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.close-drawer-btn:hover {
  color: #000;
}

.drawer-body {
  flex-grow: 1;
  padding: 1.5rem 1.8rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.empty-state {
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--color-text-muted);
}

.empty-state i {
  font-size: 3rem;
  color: var(--color-border);
}

.empty-shop-btn {
  margin-top: 0.5rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.cart-item-thumb {
  width: 70px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.cart-item-info .item-author {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.cart-item-info .item-price {
  font-size: 0.95rem;
  font-weight: 700;
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.qty-pill {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.qty-pill button {
  padding: 0.2rem 0.5rem;
  font-size: 0.9rem;
  background: #f8f8f8;
}

.qty-pill span {
  padding: 0.2rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.remove-item-btn {
  font-size: 0.8rem;
  color: #dc2626;
  text-decoration: underline;
}

.drawer-footer {
  padding: 1.5rem 1.8rem;
  background: #fdfdfd;
  border-top: 1px solid var(--color-border);
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.shipping-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
}

.btn-checkout {
  width: 100%;
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.9rem;
  font-size: 1rem;
}

.btn-checkout:hover {
  background-color: #000;
}

/* ----------------------------------------
   Quick View Modal
   ---------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  z-index: 5;
}

.modal-close-btn:hover {
  color: #000;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
}

.modal-image-col {
  background: #fbf9f6;
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-book-cover {
  max-width: 220px;
  border-radius: 6px;
  box-shadow: var(--shadow-book);
}

.modal-info-col {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-top: 0.6rem;
  margin-bottom: 0.2rem;
}

.modal-author {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.modal-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #f59e0b;
  margin-bottom: 1rem;
}

.modal-rating span {
  color: var(--color-text-muted);
  margin-left: 0.4rem;
}

.modal-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 1.2rem;
}

.modal-summary {
  font-size: 0.95rem;
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.qty-selector .qty-btn {
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
  background: #f8f8f8;
}

.qty-selector input {
  width: 44px;
  text-align: center;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
}

.modal-add-btn {
  flex-grow: 1;
}

/* ----------------------------------------
   Global Search Overlay
   ---------------------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 20, 23, 0.88);
  backdrop-filter: blur(8px);
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 7rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.search-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.search-container {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--color-border);
}

.search-input-wrap i {
  font-size: 1.25rem;
  color: var(--color-text-muted);
}

.search-input-wrap input {
  flex-grow: 1;
  border: none;
  font-size: 1.15rem;
  font-family: inherit;
  outline: none;
}

.search-close {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-text-muted);
}

.search-results-list {
  padding: 1.5rem 1.6rem;
  max-height: 380px;
  overflow-y: auto;
}

.search-hint {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 1.5rem 0;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: #f8f8fa;
}

.search-result-item img {
  width: 44px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
}

/* ----------------------------------------
   Toast Notifications
   ---------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 2000;
}

.toast {
  background: #111418;
  color: #ffffff;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastFadeOut 0.4s ease forwards 2.7s;
}

.toast i {
  color: #10b981;
}

@keyframes toastSlideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toastFadeOut {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Floating Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--color-text-main);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  z-index: 990;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
}

/* ----------------------------------------
   Responsive Breakpoints
   ---------------------------------------- */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.8rem;
  }
  .word-rin, .word-gs {
    font-size: 11rem;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 1.8rem 1.6rem 2.2rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-smooth), opacity var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-left: 0;
    border-bottom: 1px solid var(--color-border);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    z-index: 999;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
    margin: 0;
  }

  .main-nav .nav-links a {
    font-size: 1.15rem;
    font-weight: 500;
    display: block;
    width: 100%;
    padding: 0.2rem 0;
  }

  /* All action buttons placed below the main nav */
  .header-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    width: 100%;
    padding-top: 1.4rem;
    border-top: 1px solid var(--color-border-subtle);
  }

  .action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.25rem;
    background: #fbf9f6;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-subtle);
    gap: 0.35rem;
    width: 100%;
    transition: background var(--transition-fast), transform var(--transition-fast);
  }

  .action-btn:hover,
  .action-btn:active {
    background: #f1ece2;
    transform: translateY(-2px);
  }

  .action-btn i {
    font-size: 1.15rem;
  }

  .action-text {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-body);
    line-height: 1.2;
    text-align: center;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-features {
    justify-content: center;
  }
  .calmer-container {
    grid-template-columns: 1fr;
  }
  .calmer-info {
    text-align: center;
  }
  .search-box-widget {
    margin: 0 auto;
  }
  .bestsellers-banner-card {
    grid-template-columns: 1fr;
  }
  .fantastic-grid {
    grid-template-columns: 1fr;
  }
  .classics-books-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .blogs-grid {
    grid-template-columns: 1fr;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
  .lotr-side-content {
    position: static;
    transform: none;
    max-width: 100%;
    text-align: center;
    align-items: center;
  }
  .lotr-banner-container {
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }
  .lotr-bg-typography {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .calmer-heading, .banner-title, .fantastic-heading {
    font-size: 2.5rem;
  }
  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }
  .feature-divider {
    display: none;
  }
  .calmer-cards-row {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .seoulful-row {
    grid-template-columns: 1fr;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-card {
    max-height: 90vh;
    overflow-y: auto;
  }
}
