@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400..900&family=Plus+Jakarta+Sans:wght@400..800&display=swap");

:root {
  --nav-dark: #18324b;
  --nav-mid: #176a55;
  --amber: #f4c65d;
  --amber-hover: #e5b342;
  --yellow-btn: linear-gradient(135deg, #176a55 0%, #125443 100%);
  --yellow-btn-hover: linear-gradient(135deg, #18324b 0%, #102437 100%);
  --orange-btn: linear-gradient(135deg, #f4c65d 0%, #e5b342 100%);
  --orange-btn-hover: linear-gradient(135deg, #e5b342 0%, #d49f2a 100%);
  --prime-blue: #176a55;
  --prime-blue-hover: #18324b;
  --deal-red: #c83e3b;
  --bestseller-orange: #18324b;
  --star-gold: #e5a922;
  --bg-page: #f6f8fa;
  --card-bg: #ffffff;
  --text-main: #18324b;
  --text-muted: #526578;
  --border-light: #dce4ec;
  --success-green: #176a55;
  --radius-sm: 10px;
  --radius-md: 16px;
  --shadow-sm: 0 6px 18px rgba(24, 50, 75, 0.07);
  --shadow-lg: 0 20px 44px rgba(24, 50, 75, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

#to-about,
#to-paper {
  scroll-margin-top: 90px;
}

body {
  font-family: "Plus Jakarta Sans", "Noto Sans Bengali", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Sticky Top Editorial Section Bar */
.amz-sticky-jumpbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 18px rgba(24, 50, 75, 0.1);
  z-index: 250;
  padding: 8px 24px;
}

.amz-sticky-jumpbar[hidden] {
  display: none !important;
}

.amz-jumpbar-inner {
  max-width: 1460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.amz-jump-links {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
}

.amz-jump-link {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.15s;
}

.amz-jump-link:hover,
.amz-jump-link.active {
  background: #176a55;
  color: #ffffff;
}

.amz-jump-book-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

/* Top Boutique Announcement Bar */
.bv-announcement-bar {
  background: #112437;
  color: #e6eef5;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(244, 198, 93, 0.25);
}

.bv-announcement-inner {
  max-width: 1460px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bv-ann-admin-link {
  color: var(--amber);
  text-decoration: none;
  font-weight: 700;
}

.bv-ann-admin-link:hover {
  text-decoration: underline;
}

/* Boutique Main Header (#18324b -> #176a55 with #f4c65d accents) */
.top-header {
  background: linear-gradient(95deg, var(--nav-dark) 0%, #164f52 55%, var(--nav-mid) 100%);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(244, 198, 93, 0.35);
  box-shadow: 0 6px 24px rgba(24, 50, 75, 0.26);
}

.header-container {
  max-width: 1460px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(244, 198, 93, 0.4);
  border-radius: 14px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.brand-logo:hover {
  border-color: var(--amber);
  background: rgba(244, 198, 93, 0.14);
  transform: translateY(-1px);
}

.brand-logo.has-logo-image {
  width: clamp(150px, 21vw, 272px);
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.brand-logo.has-logo-image .logo-text {
  display: none;
}

.brand-logo.has-logo-image .logo-icon,
.brand-logo.has-logo-image .logo-icon img {
  display: block;
  width: 100%;
  height: auto;
}

.logo-icon {
  font-size: 1.9rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: inherit;
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: #ffffff;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--amber);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

/* Pill-Shaped Boutique Search Bar */
.search-bar {
  flex: 1;
  max-width: 640px;
  display: flex;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid rgba(244, 198, 93, 0.65);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  transition: all 0.18s ease;
  position: relative;
}

.search-bar:focus-within {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(244, 198, 93, 0.32);
}

.search-bar select {
  background: #f0f5f3;
  border: none;
  border-right: 1px solid #d0dfd9;
  padding: 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #18324b;
  cursor: pointer;
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 0 16px;
  font-size: 0.92rem;
  color: #18324b;
  outline: none;
}

.clear-search-btn {
  background: none;
  border: none;
  padding: 0 10px;
  color: #526578;
  cursor: pointer;
  font-size: 0.95rem;
}

.search-submit-btn {
  width: 54px;
  background: var(--amber);
  color: #18324b;
  border: none;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
}

.search-submit-btn:hover {
  background: var(--amber-hover);
}

/* Modern Pill Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(244, 198, 93, 0.55);
  color: #ffffff;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.15s;
}

.lang-toggle-btn:hover {
  border-color: var(--amber);
  background: rgba(244, 198, 93, 0.2);
}

.lang-opt {
  opacity: 0.65;
}

.lang-opt.active {
  opacity: 1;
  color: var(--amber);
  font-weight: 800;
}

.lang-sep {
  opacity: 0.4;
}

.bv-pill-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.bv-pill-action:hover,
.bv-pill-action.active-wishlist {
  border-color: var(--amber);
  background: rgba(244, 198, 93, 0.2);
}

.bv-pill-badge {
  background: var(--amber);
  color: #18324b;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.cart-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 198, 93, 0.18);
  border: 1.5px solid var(--amber);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.cart-trigger-btn:hover {
  background: rgba(244, 198, 93, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 198, 93, 0.25);
}

.cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-svg {
  font-size: 1.45rem;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--amber);
  color: #18324b;
  font-size: 0.74rem;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.action-line2 {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
}

.cart-subtotal-mini {
  display: block;
  font-size: 0.74rem;
  color: var(--amber);
  font-weight: 700;
}

/* Sub Navigation Category Pills (#176a55 & #18324b with #f4c65d active pill) */
.sub-nav {
  background: linear-gradient(90deg, var(--nav-mid) 0%, #155746 50%, var(--nav-dark) 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(244, 198, 93, 0.28);
}

.sub-nav-container {
  max-width: 1460px;
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 0;
}

@media (max-width: 960px) {
  .sub-nav-container { justify-content: flex-start; }
  .nav-pills {
    flex: 1 1 auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 2px 4px;
  }
  .nav-pills .nav-pill,
  .sub-nav-container .mobile-filter-toggle { flex-shrink: 0; }
}

.nav-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #f0fdf4;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  font-size: 0.83rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.nav-pill:hover {
  border-color: var(--amber);
  background: rgba(244, 198, 93, 0.18);
  color: #ffffff;
}

.nav-pill.active {
  background: var(--amber);
  color: #18324b;
  border-color: var(--amber);
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.deal-pill {
  color: var(--amber);
  font-weight: 700;
}

.promo-ticker {
  font-size: 0.78rem;
  color: #ffffff;
  white-space: nowrap;
  background: rgba(23, 106, 85, 0.45);
  border: 1px solid rgba(244, 198, 93, 0.45);
  padding: 3px 12px;
  border-radius: 999px;
}

.mobile-filter-toggle {
  display: none;
  background: var(--amber);
  color: #18324b;
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

/* Main Boutique Storefront Layout — Sticky Filter Studio on Left Side, Books on Right */
.main-layout {
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* Left-Side Sticky Boutique Filter Studio */
.filters-sidebar {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  order: 1;
  position: sticky;
  top: 82px;
}

.bv-filter-studio-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.filter-group {
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f6;
}

.filter-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.filter-group h4 {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: #18324b;
}

.filter-header-row h4 {
  margin-bottom: 0;
}

.reset-link {
  background: #eef6f4;
  border: 1px solid #b8dcd2;
  color: #176a55;
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.reset-link:hover {
  background: #176a55;
  color: #ffffff;
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.custom-radio,
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--text-main);
  margin-bottom: 4px;
}

.custom-radio:hover,
.custom-checkbox:hover {
  color: #176a55;
}

.prime-badge-inline {
  background: #176a55;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.66rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.rating-filters {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rating-filter-btn {
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--text-main);
}

.rating-filter-btn.active {
  background: #eef6f4;
  color: #18324b;
  border-color: #176a55;
  font-weight: 700;
}

.stars {
  color: var(--star-gold);
  letter-spacing: 0.5px;
}

.price-slider-box {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #dce4ec;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 4px;
}

#maxPriceSlider {
  width: 100%;
  accent-color: #176a55;
  cursor: pointer;
}

.catalog-section {
  order: 2;
}

/* Store Hero Banner — #18324b, #176a55 & #f4c65d */
.store-banner {
  width: 100%;
  height: 320px;
  overflow: auto;
  background: linear-gradient(125deg, #18324b 0%, #165256 50%, #176a55 100%);
  color: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(244, 198, 93, 0.45);
  padding: 28px 32px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 14px 34px rgba(24, 50, 75, 0.2);
}

.banner-tag {
  display: inline-block;
  background: var(--amber);
  color: #18324b;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.8px;
}

.store-banner h1 {
  font-family: inherit;
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: #ffffff;
}

.store-banner p {
  font-size: 0.92rem;
  color: #e6f2ef;
  max-width: 700px;
}

.active-filters-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.filter-chip {
  background: rgba(244, 198, 93, 0.22);
  border: 1px solid var(--amber);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
}

.banner-stats {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.stat-card {
  background: rgba(24, 50, 75, 0.42);
  border: 1px solid rgba(244, 198, 93, 0.5);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: center;
  min-width: 124px;
  backdrop-filter: blur(8px);
}

.stat-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--amber);
}

.stat-label {
  font-size: 0.74rem;
  color: #e6f2ef;
}

/* Boutique Gallery Header & Sort Toolbar */
.bv-gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.results-heading-row h2 {
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  color: #18324b;
}

.results-heading-row p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

.sort-controls select {
  background: #f0f5f3;
  border: 1px solid #b8dcd2;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #18324b;
  cursor: pointer;
}

/* 3D Boutique Book Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 6px 18px rgba(24, 50, 75, 0.06);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: #176a55;
  box-shadow: 0 18px 36px rgba(23, 106, 85, 0.18);
}

.card-badge-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px 0;
  background: linear-gradient(180deg, #eef6f4 0%, #ffffff 100%);
}

.badge-bestseller {
  background: #18324b;
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.badge-deal {
  background: #176a55;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.badge-choice {
  background: var(--amber);
  color: #18324b;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.wishlist-heart-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  margin-left: auto;
  transition: transform 0.15s;
}

.wishlist-heart-btn:hover {
  transform: scale(1.1);
  border-color: #176a55;
}

.wishlist-heart-btn.saved {
  background: #fff8e6;
  border-color: var(--amber);
}

.cover-stage {
  background: radial-gradient(circle at center, #f4f9f7 0%, #e3efe9 100%);
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
}

/* 3D Physical Book Spine & Page Edge Shadow */
.book-cover-svg-wrap {
  width: 168px;
  height: 218px;
  border-radius: 3px 8px 8px 3px;
  box-shadow:
    -4px 0 0 #18324b,
    4px 4px 0 #ffffff,
    5px 5px 0 #cbd5e1,
    8px 12px 22px rgba(24, 50, 75, 0.25);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cover-stage:hover .book-cover-svg-wrap {
  transform: translateY(-4px) rotate(-1.5deg) scale(1.04);
}

.cover-stage.has-catalog-gallery {
  touch-action: pan-y pinch-zoom;
}

.catalog-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 300ms ease;
}

.catalog-gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}

.catalog-gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .catalog-gallery-track { transition: none; }
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-title {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #18324b;
  margin-bottom: 4px;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.book-title:hover {
  color: #176a55;
}

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

.book-author strong {
  color: #176a55;
  font-weight: 700;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.rating-score {
  background: #18324b;
  color: var(--amber);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 800;
}

.rating-count {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.format-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #176a55;
  background: #eef6f4;
  border: 1px solid #b8dcd2;
  padding: 2px 9px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 8px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.price-main {
  font-size: 1.45rem;
  font-weight: 900;
  color: #18324b;
  line-height: 1;
}

.price-main sup {
  font-size: 0.78rem;
  font-weight: 700;
  top: -0.4em;
}

.price-list {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.delivery-row {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.prime-check {
  color: #176a55;
  font-weight: 800;
}

.card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* #176a55 & #f4c65d Action Buttons */
.add-to-cart-btn {
  background: var(--yellow-btn);
  border: 1px solid #125443;
  color: #ffffff;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(23, 106, 85, 0.25);
  transition: all 0.15s ease;
}

.add-to-cart-btn:hover {
  background: var(--yellow-btn-hover);
  transform: translateY(-1px);
}

.buy-now-btn {
  background: var(--orange-btn);
  border: 1px solid #d49f2a;
  color: #18324b;
  font-size: 0.83rem;
  font-weight: 800;
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(244, 198, 93, 0.3);
  transition: all 0.15s ease;
}

.buy-now-btn:hover {
  background: var(--orange-btn-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   FULL-SCREEN BOUTIQUE BOOK STUDIO PAGE (2-Column #18324b / #176a55 / #f4c65d)
   ========================================================================== */
.amz-full-page-view {
  width: 100%;
  background: #f6f8fa;
  min-height: 100vh;
}

.amz-full-page-view[hidden] {
  display: none !important;
}

.amz-top-leaderboard {
  max-width: 1380px;
  margin: 14px auto 4px;
  background: linear-gradient(90deg, #18324b 0%, #176a55 100%);
  color: #ffffff;
  border: 1px solid rgba(244, 198, 93, 0.5);
  border-radius: 14px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.amz-dp-topbar {
  max-width: 1380px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.amz-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.amz-back-link {
  background: #ffffff;
  border: 1.5px solid #18324b;
  color: #18324b;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-right: 8px;
  transition: all 0.15s;
}

.amz-back-link:hover {
  background: #18324b;
  color: var(--amber);
}

.amz-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.amz-breadcrumbs a:hover {
  color: #176a55;
  text-decoration: underline;
}

.amz-dp-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 10px 24px 56px;
}

/* 2-Column Editorial Studio Grid */
.bv-studio-hero-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 38px;
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 12px 34px rgba(24, 50, 75, 0.08);
}

.amz-dp-left {
  position: sticky;
  top: 72px;
}

.amz-main-stage {
  background: radial-gradient(circle at center, #f4f9f7 0%, #e3efe9 100%);
  border: 1px solid #b8dcd2;
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.amz-stage-book {
  width: 275px;
  height: 355px;
  border-radius: 4px 10px 10px 4px;
  overflow: hidden;
  box-shadow:
    -6px 0 0 #18324b,
    5px 5px 0 #ffffff,
    6px 6px 0 #cbd5e1,
    12px 18px 32px rgba(24, 50, 75, 0.28);
}

.amz-horiz-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.amz-thumb-btn {
  width: 56px;
  height: 68px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  background: #ffffff;
  padding: 3px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  font-weight: 700;
  color: #18324b;
  transition: all 0.15s;
}

.amz-thumb-btn:hover,
.amz-thumb-btn.active {
  border-color: #176a55;
  background: #eef6f4;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(23, 106, 85, 0.2);
}

.amz-follow-section {
  margin-top: 20px;
  padding: 16px;
  background: #f6f8fa;
  border: 1px solid var(--border-light);
  border-radius: 14px;
}

.amz-follow-section h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  color: #18324b;
}

.amz-author-follow-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.amz-author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #18324b;
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.amz-follow-btn {
  background: #ffffff;
  border: 1.5px solid #176a55;
  color: #176a55;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.amz-follow-btn:hover,
.amz-follow-btn.following {
  background: #176a55;
  color: #ffffff;
}

/* Right Column in 2-Column Boutique Studio View */
.bv-studio-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bv-badge-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.amz-dp-title {
  font-family: inherit;
  font-size: 1.9rem;
  font-weight: 800;
  color: #18324b;
  line-height: 1.25;
}

.amz-dp-subtitle-inline {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.amz-dp-byline {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.amz-dp-byline a {
  color: #176a55;
  text-decoration: none;
  font-weight: 700;
}

.amz-dp-rating-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.86rem;
}

/* Unified Boutique Price & Purchase Studio Card */
.bv-purchase-studio-card {
  background: linear-gradient(135deg, #f4f9f7 0%, #fffdf7 100%);
  border: 1.5px solid #176a55;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bv-price-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.amz-buy-price {
  font-size: 2.1rem;
  font-weight: 900;
  color: #18324b;
  line-height: 1;
}

.amz-buy-price sup {
  font-size: 0.95rem;
  top: -0.5em;
}

.bv-action-buttons-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.amz-qty-select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #18324b;
  font-size: 0.86rem;
  font-weight: 700;
  color: #18324b;
  cursor: pointer;
}

.amz-buybox-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.amz-wishlist-full-btn {
  background: #ffffff;
  border: 1.5px solid #18324b;
  color: #18324b;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.amz-wishlist-full-btn:hover {
  background: #18324b;
  color: var(--amber);
}

.bv-trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed #b8dcd2;
}

.bv-trust-item {
  background: #ffffff;
  border: 1px solid #dce4ec;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.75rem;
  text-align: center;
  color: #18324b;
  font-weight: 600;
}

.amz-savings-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  background: #fffbeb;
  border: 1px solid #f4c65d;
  padding: 8px 12px;
  border-radius: 10px;
}

.amz-savings-pill {
  background: #18324b;
  color: var(--amber);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 6px;
}

.amz-book-desc {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.65;
}

.amz-bullet-list {
  margin: 6px 0 10px 18px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.5;
}

.amz-spec-carousel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-top: 6px;
  text-align: center;
}

.amz-spec-item {
  background: #f6f8fa;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
}

.amz-spec-label {
  color: var(--text-muted);
}

.amz-spec-icon {
  font-size: 1.25rem;
  margin: 2px 0;
}

.amz-spec-val {
  font-weight: 800;
  color: #18324b;
}

/* Lower Full-Width Sections */
.amz-dp-section {
  margin-top: 28px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.amz-dp-section h3 {
  font-family: inherit;
  font-size: 1.38rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #18324b;
}

.amz-fbt-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 18px;
  border: 1px solid #b8dcd2;
  background: #f4f9f7;
  border-radius: 14px;
}

.amz-fbt-books {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.amz-fbt-card {
  width: 145px;
  text-align: left;
  font-size: 0.78rem;
  cursor: pointer;
}

.amz-fbt-plus {
  font-size: 1.6rem;
  color: var(--text-muted);
  font-weight: 300;
}

.amz-fbt-total {
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.amz-related-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.amz-rel-card {
  padding: 12px;
  cursor: pointer;
  background: #f6f8fa;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  transition: all 0.15s;
}

.amz-rel-card:hover {
  border-color: #176a55;
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.amz-rel-card:hover .rel-title {
  color: #176a55;
  text-decoration: underline;
}

.amz-publisher-wrap {
  max-width: 1160px;
  margin: 0 auto;
}

.amz-pub-hero-banner {
  border-radius: 16px;
  padding: 34px 28px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(24, 50, 75, 0.16);
}

.amz-pub-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 18px 0 26px;
}

.amz-pub-feature-card {
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  background: #f6f8fa;
}

.amz-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin-top: 16px;
}

.amz-compare-table th,
.amz-compare-table td {
  border-bottom: 1px solid var(--border-light);
  padding: 12px;
  text-align: center;
}

.amz-compare-table th:first-child,
.amz-compare-table td:first-child {
  text-align: left;
  font-weight: 700;
  background: #eef6f4;
  width: 180px;
}

.amz-about-author-box {
  background: #f6f8fa;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 900px;
}

.amz-reviews-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  align-items: start;
}

.amz-hist-row {
  display: grid;
  grid-template-columns: 52px 1fr 40px;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #18324b;
  margin-bottom: 6px;
}

.amz-hist-bar {
  height: 18px;
  background: #eef2f6;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  overflow: hidden;
}

.amz-hist-fill {
  height: 100%;
  background: linear-gradient(90deg, #176a55, #f4c65d);
}

.amz-review-card {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.amz-reviewer-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  margin-bottom: 4px;
}

.amz-reviewer-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #18324b;
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.amz-verified-badge {
  color: #176a55;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Interactive Sample Page Coloring Tester */
.sample-coloring-box {
  width: 100%;
  background: #f6f8fa;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.sample-coloring-box h5 {
  font-size: 0.78rem;
  margin-bottom: 6px;
  color: #18324b;
}

.color-palette-swatches {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cbd5e1;
  cursor: pointer;
}

.color-swatch.active {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px #18324b;
}

/* Slide-Out Shopping Bag Drawer & Modals */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 50, 75, 0.58);
  z-index: 200;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 94vw;
  height: 100vh;
  background: #ffffff;
  z-index: 210;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 28px rgba(24, 50, 75, 0.25);
  transform: translateX(105%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-drawer-header {
  background: linear-gradient(90deg, #18324b 0%, #176a55 100%);
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(244, 198, 93, 0.35);
}

.icon-close-btn {
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.free-shipping-bar {
  background: #eef6f4;
  border-bottom: 1px solid #b8dcd2;
  padding: 10px 16px;
  font-size: 0.82rem;
}

.progress-track {
  height: 7px;
  background: #d0dfd9;
  border-radius: 999px;
  margin-top: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #176a55, #f4c65d);
  transition: width 0.25s ease;
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-thumb {
  width: 60px;
  height: 78px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.cart-item-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #b8dcd2;
  border-radius: 999px;
  background: #eef6f4;
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 26px;
  font-weight: 700;
  cursor: pointer;
}

.qty-val {
  padding: 0 8px;
  font-size: 0.84rem;
  font-weight: 700;
  background: #fff;
}

.remove-item-btn {
  background: none;
  border: none;
  color: #c83e3b;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.cart-drawer-footer {
  border-top: 1px solid var(--border-light);
  padding: 14px 16px;
  background: #f6f8fa;
}

.promo-box {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.promo-box input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.84rem;
}

.promo-box button {
  background: #18324b;
  color: var(--amber);
  border: none;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.promo-message {
  font-size: 0.78rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 0.86rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
}

.discount-row {
  color: #176a55;
  font-weight: 700;
}

.grand-total-row {
  font-size: 1.05rem;
  font-weight: 800;
  padding-top: 6px;
  border-top: 1px solid var(--border-light);
}

.checkout-btn {
  width: 100%;
  background: var(--yellow-btn);
  color: #ffffff;
  border: 1px solid #125443;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(23, 106, 85, 0.25);
}

.checkout-btn:hover {
  background: var(--yellow-btn-hover);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 50, 75, 0.72);
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
}

.modal-backdrop[hidden],
.overlay[hidden] {
  display: none !important;
}

.modal-card {
  background: #ffffff;
  border-radius: 18px;
  max-width: 920px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close-btn {
  position: sticky;
  top: 0;
  float: right;
  background: #eef6f4;
  border: 1px solid #b8dcd2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
}

/* Checkout Form */
.checkout-card {
  max-width: 980px;
}

.checkout-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
}

.form-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.form-section h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #18324b;
}

.form-row {
  margin-bottom: 10px;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-row.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #c2d1e0;
  border-radius: 8px;
  font-size: 0.88rem;
}

.delivery-options,
.payment-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.86rem;
}

.radio-card.selected {
  background: #eef6f4;
  border-color: #176a55;
}

.radio-card .sub-text {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.card-details-box {
  margin-top: 12px;
  padding: 12px;
  background: #f6f8fa;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.order-summary-card {
  background: #f6f8fa;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 18px;
  position: sticky;
  top: 16px;
}

.checkout-items-list {
  max-height: 220px;
  overflow-y: auto;
  margin: 12px 0;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.chk-mini-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  margin-bottom: 14px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
}

.summary-line.total-line {
  font-size: 1.15rem;
  font-weight: 800;
  color: #18324b;
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
}

.place-order-btn {
  width: 100%;
  background: var(--yellow-btn);
  color: #ffffff;
  border: 1px solid #125443;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.place-order-btn:hover {
  background: var(--yellow-btn-hover);
}

.security-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

.order-success-view {
  text-align: center;
  padding: 28px 16px;
}

.success-badge {
  width: 64px;
  height: 64px;
  background: #eef6f4;
  color: #176a55;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 12px;
}

.receipt-box {
  max-width: 540px;
  margin: 18px auto;
  text-align: left;
  background: #f6f8fa;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.86rem;
}

/* Empty State */
.empty-results {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 48px 20px;
  text-align: center;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.primary-btn {
  margin-top: 14px;
  background: var(--yellow-btn);
  color: #ffffff;
  border: 1px solid #125443;
  padding: 9px 20px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: linear-gradient(90deg, #18324b 0%, #176a55 100%);
  color: #ffffff;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--amber);
}

/* Footer (#176a55 -> #18324b with #f4c65d headings) */
.site-footer {
  margin-top: 48px;
  background: #12556a;
  color: #ffffff;
}

.back-to-top {
  background: #176a55;
  color: var(--amber);
  font-weight: 700;
  text-align: center;
  padding: 12px;
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(244, 198, 93, 0.3);
}

.back-to-top:hover {
  filter: brightness(1.08);
}

.footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.7fr);
  gap: clamp(24px, 5vw, 70px);
}

.footer-columns h4 {
  font-size: 1.32rem;
  color: #fff;
  margin: 0 0 18px;
}

.footer-columns h5 { margin: 16px 0 8px; }

.footer-brand-mark {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 800;
}

#footerBrandIcon img {
  display: block;
  width: min(100%, 190px);
  height: auto;
  background: #fff;
  border-radius: 6px;
}

.footer-brand p {
  margin: 14px 0 20px;
  line-height: 1.65;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-address,
.footer-support-links {
  display: grid;
  gap: 10px;
  font-style: normal;
  list-style: none;
  padding: 0;
}

.footer-contact-line {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer-contact-line > span:first-child,
.footer-support-links a::before { color: #ffe092; }
.footer-support-links a::before { content: "›"; margin-right: 8px; }

.footer-columns a {
  color: #fff;
  text-decoration: none;
}

.footer-columns a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .footer-columns { grid-template-columns: 1fr; padding: 30px 20px; }
}

.footer-bottom {
  background: #112437;
  text-align: center;
  padding: 16px;
  font-size: 0.8rem;
  color: #b8c9d9;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .bv-studio-hero-grid {
    grid-template-columns: 1fr;
  }
  .amz-dp-left {
    position: static;
  }
  .bv-action-buttons-row {
    grid-template-columns: 1fr 1fr;
  }
  .bv-trust-badges-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .mobile-filter-toggle {
    display: inline-block;
  }

  .filters-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    z-index: 250;
    overflow-y: auto;
    border-radius: 0;
    padding: 18px;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }

  .filters-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-mobile-header {
    display: flex;
  }

  .amz-reviews-grid,
  .amz-pub-3col,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .amz-spec-carousel {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .store-banner {
    aspect-ratio: 1;
    height: auto;
    min-height: 0;
    padding: clamp(12px, 5vw, 28px);
    overflow: auto;
    align-items: safe center;
  }

  .store-banner h1 {
    font-size: clamp(1.15rem, 6vw, 1.75rem);
  }

  .header-container {
    flex-wrap: wrap;
  }

  .search-bar {
    order: 3;
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
  }

  .bv-announcement-bar,
  .banner-stats {
    display: none;
  }
}

/* Homepage hero images sit behind the existing text and filters. */
.store-banner {
  position: relative;
  isolation: isolate;
  padding-bottom: 52px;
}

.hero-slide-images {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
}

.hero-slide-images img,
.hero-slide-images::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide-images img {
  object-fit: cover;
  opacity: 0;
  transition: opacity 450ms ease;
}

.hero-slide-images img.is-current { opacity: 1; }
.hero-slide-images::after {
  content: "";
  background: linear-gradient(90deg, rgba(12, 32, 44, .94), rgba(12, 32, 44, .66) 50%, rgba(12, 32, 44, .28));
}

.hero-slide-controls {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(10, 28, 38, .86);
  color: #fff;
}

.hero-slide-controls button {
  min-width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.hero-slide-controls button:hover,
.hero-slide-controls button:focus-visible { background: #176a55; }
.hero-slide-controls span { font-size: .75rem; white-space: nowrap; }

@media (max-width: 680px) {
  .store-banner { padding-bottom: 57px; }
  .hero-slide-images::after { background: rgba(12, 32, 44, .72); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide-images img { transition: none; }
}

.kids-subcategories {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 20px 10px;
}

.kids-subcategories[hidden] { display: none; }

.sidebar-kids-subcategories {
  display: grid;
  gap: 4px;
  margin: 5px 0 8px 12px;
  padding-left: 9px;
  border-left: 2px solid var(--border-light);
}
.sidebar-kids-subcategories[hidden] { display: none; }
.sidebar-kids-subcategories .nav-pill {
  color: #18324b;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  white-space: normal;
  padding: 5px 8px;
}
.sidebar-kids-subcategories .nav-pill:is(:hover, :focus-visible, .active) {
  color: #0b4b3a;
  background: #e6f3ee;
  border-color: #c5ddd2;
}

.amz-main-stage { background: #f5f6f5; border: 1px solid var(--border-light); border-radius: 12px; padding: clamp(12px, 4vw, 24px); display: grid; place-items: center; }
.amz-stage-book { width: min(100%, 280px); height: auto; aspect-ratio: 3 / 4; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; border-radius: 0; box-shadow: none; overflow: visible; }
.amz-stage-book > img, .amz-stage-book > svg, .amz-thumb-btn img, .catalog-gallery-slide img { object-fit: contain !important; }
.amz-stage-book > svg { width: 100%; height: 100%; }
.cover-stage.has-catalog-gallery { background: #f5f6f5; }
.cover-stage.has-catalog-gallery .book-cover-svg-wrap { border-radius: 0; box-shadow: none; transform: none; }
.bv-book-story { max-width: 1120px; margin: clamp(24px, 5vw, 56px) auto; color: #153b34; }
.bv-story-hero, .bv-book-story .bv-inside-pages { border-radius: 18px; padding: clamp(18px, 5vw, 55px); }
.bv-story-hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 5vw, 64px); background: radial-gradient(ellipse at 20% 46%, #268473, #10483f 70%); color: #fff; }
.bv-story-cover { display: block; width: min(100%, 290px); height: auto; aspect-ratio: 8.5 / 11; object-fit: contain; justify-self: center; filter: drop-shadow(0 15px 18px #0b302b9c); }
.bv-story-copy h2 { margin: 0 0 10px; color: #ffcf65; font-size: clamp(1.1rem, 2vw, 1.5rem); }
.bv-story-copy h3 { margin: 0 0 16px; font-size: clamp(1.65rem, 3.5vw, 3rem); line-height: 1.15; }
.bv-story-copy p { margin: 0; max-width: 52ch; line-height: 1.7; }
.bv-book-story .bv-inside-pages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: 12px; background: linear-gradient(145deg, #ffedb9, #efc15e); }
.bv-book-story figure { grid-column: span 2; margin: 0; min-width: 0; text-align: center; }
.bv-book-story figure:nth-child(-n+2) { grid-column: span 3; }
.bv-book-story figure img { display: block; width: 100%; aspect-ratio: 8.5 / 11; object-fit: contain; background: #fff; border-radius: 5px; box-shadow: 0 8px 20px #76521835; }
.bv-book-story figcaption { margin-top: 8px; font-weight: 700; }
@media (max-width: 600px) {
  .bv-story-hero { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .bv-story-cover { width: min(100%, 180px); }
  .bv-story-copy p { margin-inline: auto; }
  .bv-book-story .bv-inside-pages { grid-template-columns: minmax(0, 1fr); }
  .bv-book-story figure, .bv-book-story figure:nth-child(-n+2) { grid-column: auto; }
}

.bv-story-video {
  max-width: 800px;
  margin: 16px auto;
}
.bv-story-video video,
.bv-story-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  background: #121212;
}
