/* ================================================
   TRANG BOOKS — MAIN STYLESHEET
   Tiệm Sách Ngôn Tình Dành Cho Giới Trẻ Hà Nội
   Phong cách Vintage Cozy Boutique (Paper & Page Inspired)
   ================================================ */

/* ---- BIẾN MÀU SẮC & GIAO DIỆN ---- */
:root {
  /* Bảng màu Cozy Boutique */
  --cream: #faf7f2;
  --cream-dark: #f3ede2;
  --cream-mid: #ece4d5;
  --card-bg: #f8f4ec;
  --beige: #e5dac9;
  --beige-dark: #cfc1ab;
  
  /* Màu nhấn chủ đạo */
  --forest-green: #1b382b;
  --forest-green-light: #284f3e;
  --forest-green-hover: #142b21;
  --rose: #c1636a;
  --rose-light: #e8a0a5;
  --rose-deep: #9e3f46;
  --terracotta: #d9826c;
  --gold: #b8956a;
  --gold-light: #d8b482;
  --sage: #7c9070;
  
  /* Màu chữ */
  --text-dark: #2c2119;
  --text-mid: #5d4b3e;
  --text-light: #8e7a6b;
  --white: #ffffff;
  
  /* Đổ bóng & Bo góc */
  --shadow-sm: 0 2px 10px rgba(44, 33, 25, 0.06);
  --shadow-md: 0 8px 24px rgba(44, 33, 25, 0.09);
  --shadow-lg: 0 16px 40px rgba(44, 33, 25, 0.12);
  --shadow-book: -4px 6px 16px rgba(44, 33, 25, 0.18), inset -2px 0 6px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  --transition: 0.28s ease;
  
  /* Phông chữ */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-lora: 'Lora', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

/* ---- RESET & CƠ BẢN ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, button, select, textarea { font-family: inherit; font-size: inherit; }

/* ---- TIỆN ÍCH DÀN TRANG ---- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 68px 0; }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.bg-cream { background-color: var(--cream-dark); }

/* ---- NÚT BẤM (BUTTONS) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-pill); font-size: 14.5px;
  font-weight: 600; cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); letter-spacing: 0.3px;
}
.btn-primary, .btn-forest {
  background: var(--forest-green); color: var(--white); border-color: var(--forest-green);
}
.btn-primary:hover, .btn-forest:hover {
  background: var(--forest-green-hover); border-color: var(--forest-green-hover);
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(27, 56, 43, 0.25);
}
.btn-rose {
  background: var(--rose); color: var(--white); border-color: var(--rose);
}
.btn-rose:hover {
  background: var(--rose-deep); border-color: var(--rose-deep);
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(193, 99, 106, 0.3);
}
.btn-outline {
  background: transparent; color: var(--forest-green); border-color: var(--forest-green);
}
.btn-outline:hover {
  background: var(--forest-green); color: var(--white); transform: translateY(-2px);
}
.btn-white {
  background: var(--white); color: var(--forest-green); border-color: var(--white);
}
.btn-white:hover {
  background: var(--cream-dark); transform: translateY(-2px);
}

/* ---- TOP ANNOUNCEMENT BAR (GIỐNG MẪU THAM KHẢO) ---- */
.announcement-bar {
  background: var(--forest-green);
  color: rgba(255, 255, 255, 0.95);
  padding: 9px 0;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.announcement-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.announcement-msg i { color: #f4a800; font-size: 13px; }
.announcement-links {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.announcement-links a:hover { color: #ffffff; text-decoration: underline; }

/* ---- HEADER CHÍNH ---- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--beige);
  transition: all var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(250, 247, 242, 0.99);
}
.header-inner {
  display: flex; align-items: center;
  padding: 12px 0; gap: 24px;
}
.logo-link {
  display: flex; align-items: center; flex-shrink: 0;
}
.logo-img-horiz {
  height: 52px; width: auto; max-width: 260px;
}
.logo-round-fallback {
  height: 48px; width: 48px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--gold);
}

/* Menu điều hướng */
.nav {
  display: flex; align-items: center; gap: 4px; margin: 0 auto;
}
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px;
  color: var(--text-mid); font-weight: 500; transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--forest-green); background: rgba(27, 56, 43, 0.06); font-weight: 600;
}
.sale-link {
  color: var(--rose-deep) !important; font-weight: 600;
}
.sale-link:hover {
  background: rgba(193, 99, 106, 0.1) !important;
}

/* Các hành động trên Header */
.header-actions {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.header-search-wrap {
  position: relative; display: flex; align-items: center;
}
.header-search-input {
  width: 210px; padding: 8px 36px 8px 16px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--beige-dark); background: var(--white);
  font-size: 13px; color: var(--text-dark); outline: none;
  transition: all var(--transition);
}
.header-search-input:focus {
  width: 250px; border-color: var(--forest-green);
  box-shadow: 0 0 0 3px rgba(27, 56, 43, 0.1);
}
.header-search-btn {
  position: absolute; right: 10px; background: none; border: none;
  color: var(--text-light); cursor: pointer; font-size: 13px;
}
.header-search-btn:hover { color: var(--forest-green); }

.icon-btn {
  position: relative; background: none; border: none; cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-dark); transition: all var(--transition);
}
.icon-btn:hover {
  background: var(--cream-mid); color: var(--forest-green);
}
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--rose); color: white; font-size: 10px; font-weight: 700;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cart-badge.has-items {
  background: var(--forest-green);
}
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--text-dark);
}

/* Thanh search mobile/toggle */
.search-bar {
  display: none; padding: 12px 0;
  background: var(--cream-dark); border-top: 1px solid var(--beige);
}
.search-bar.open { display: block; }
.search-inner { display: flex; gap: 10px; }
.search-inner .search-input {
  flex: 1; padding: 11px 18px; border: 1.5px solid var(--beige-dark);
  border-radius: var(--radius-pill); background: var(--white);
  font-size: 14px; outline: none;
}
.search-inner .search-submit {
  padding: 11px 22px; background: var(--forest-green); color: white;
  border: none; border-radius: var(--radius-pill); cursor: pointer;
  font-weight: 500;
}

/* ---- HERO SECTION (THEO BỐ CỤC CHUẨN PAPER & PAGE) ---- */
.hero {
  background: linear-gradient(135deg, #fdfbf7 0%, #f6f0e6 60%, #eee3d1 100%);
  padding: 72px 0 0;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--beige);
}
.hero::before {
  content: '';
  position: absolute; top: -60px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(193,99,106,0.07) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-content {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 56px; align-items: center; min-height: 440px;
}
.hero-text { position: relative; z-index: 1; }
.hero-sub {
  color: var(--rose); font-size: 13.5px; font-weight: 600;
  letter-spacing: 1.5px; margin-bottom: 14px; text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-serif); font-size: 52px; line-height: 1.16;
  color: var(--text-dark); margin-bottom: 20px; font-weight: 700;
}
.hero-title em {
  color: var(--rose-deep); font-style: italic; font-weight: 400;
}
.hero-desc {
  color: var(--text-mid); font-size: 16px; max-width: 490px;
  margin-bottom: 32px; line-height: 1.75;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

/* 4 Cam kết dịch vụ ở Hero (như mẫu Paper & Page) */
.hero-values {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; padding-top: 28px; border-top: 1px solid var(--beige);
}
.hero-val-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.hero-val-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(27, 56, 43, 0.08); color: var(--forest-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.hero-val-title {
  font-size: 12.5px; font-weight: 600; color: var(--text-dark); line-height: 1.3;
}
.hero-val-desc {
  font-size: 11px; color: var(--text-light); line-height: 1.25;
}

/* Ảnh Still Life minh họa bên phải Hero */
.hero-image {
  display: flex; justify-content: center; align-items: center; position: relative;
}
.hero-photo-frame {
  position: relative; width: 100%; max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(44, 33, 25, 0.16);
  border: 4px solid var(--white);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-photo-frame:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 56px rgba(44, 33, 25, 0.22);
}
.hero-cover-img {
  width: 100%; height: auto; aspect-ratio: 4/3;
  object-fit: cover; display: block;
}
.hero-photo-badge {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 8px 16px; border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 600; color: var(--forest-green);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--beige);
}

.hero-still-life {
  position: relative; width: 100%; max-width: 440px;
  aspect-ratio: 4/4.5;
  background: #f1e9dd;
  border-radius: var(--radius-lg);
  border: 2px solid var(--beige-dark);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px;
}
.still-life-header {
  display: flex; justify-content: space-between; align-items: center;
}
.brand-tag {
  background: var(--white); padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 600; color: var(--forest-green);
  box-shadow: var(--shadow-sm); border: 1px solid var(--beige);
}
.still-life-body {
  margin: auto 0; text-align: center;
}
.book-spine-stack {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 20px;
}
.spine-book {
  width: 44px; height: 180px; border-radius: 4px;
  writing-mode: vertical-rl; text-orientation: mixed;
  padding: 10px 4px; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-book);
  color: white; letter-spacing: 0.5px;
}
.sp-1 { background: linear-gradient(180deg, #b85d65, #7d333b); }
.sp-2 { background: linear-gradient(180deg, #1b382b, #0d1e16); }
.sp-3 { background: linear-gradient(180deg, #c59b6d, #7a5833); }
.sp-4 { background: linear-gradient(180deg, #5b738c, #314459); }

.still-life-mug {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); padding: 10px 18px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm); font-size: 13px; font-family: var(--font-lora);
  font-style: italic; color: var(--text-mid); border: 1px solid var(--beige);
}
.still-life-mug i { color: #d9826c; }

.still-life-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-light); padding-top: 12px;
  border-top: 1px dashed var(--beige-dark);
}

/* ---- TIÊU ĐỀ SECTION CÓ ĐƯỜNG TRANG TRÍ (ORNAMENTS) ---- */
.section-header-wrap {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 36px; flex-wrap: wrap; gap: 16px;
}
.section-header {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 40px; text-align: center;
}
.section-ornament {
  color: var(--gold); font-size: 22px; line-height: 1;
}
.section-title {
  font-family: var(--font-serif); font-size: 32px; color: var(--text-dark);
  font-weight: 600; letter-spacing: 0.2px;
}
.view-all-link {
  font-size: 13.5px; font-weight: 600; color: var(--forest-green);
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1.5px solid var(--forest-green); padding-bottom: 2px;
}
.view-all-link:hover {
  color: var(--rose-deep); border-color: var(--rose-deep);
}

/* ---- SHOP BY COLLECTION (8 ICON TRÒN GIỐNG MẪU) ---- */
.collections-section {
  background: var(--white);
  border-bottom: 1px solid var(--beige);
  padding: 56px 0;
}
.collections-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px;
}
.collection-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px; cursor: pointer;
  transition: transform var(--transition);
}
.collection-card:hover {
  transform: translateY(-5px);
}
.col-icon-circle {
  width: 82px; height: 82px; border-radius: 50%;
  background: var(--card-bg); border: 1.5px solid var(--beige);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.collection-card:hover .col-icon-circle {
  border-color: var(--forest-green);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.col-card-sale .col-icon-circle {
  background: #fbeee8; border-color: #f0c3b2;
}
.col-card-sale:hover .col-icon-circle {
  border-color: var(--rose);
}
.col-name {
  font-size: 13px; font-weight: 600; color: var(--text-mid);
  transition: color var(--transition); line-height: 1.3;
}
.collection-card:hover .col-name {
  color: var(--forest-green);
}
.col-card-sale .col-name {
  color: var(--rose-deep); font-weight: 700;
}

/* ---- PRODUCT GRID & PRODUCT CARDS ---- */
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--beige); overflow: hidden;
  transition: all var(--transition); position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--beige-dark);
}

/* Khung bìa sách giả lập cao cấp (Book Mockup) */
.product-img-wrap {
  position: relative; aspect-ratio: 3/4.1;
  background: var(--cream-dark); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.book-cover-mockup {
  width: 100%; height: 100%; border-radius: 4px 8px 8px 4px;
  position: relative; display: flex; flex-direction: column;
  justify-content: space-between; padding: 20px 16px;
  box-shadow: var(--shadow-book);
  cursor: pointer; transition: transform 0.3s ease;
  overflow: hidden;
  border-left: 5px solid rgba(0,0,0,0.2);
}
.product-card:hover .book-cover-mockup {
  transform: scale(1.02) rotate(-0.5deg);
}
.book-spine-line {
  position: absolute; left: 10px; top: 0; bottom: 0; width: 1px;
  background: rgba(255,255,255,0.25);
}
.cover-inner {
  margin: auto 0; text-align: center; color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.cover-emoji {
  font-size: 42px; display: block; margin-bottom: 10px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.cover-title {
  font-family: var(--font-serif); font-size: 15px; font-weight: 700;
  line-height: 1.3; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.cover-author {
  font-size: 11.5px; opacity: 0.9; font-style: italic;
  font-family: var(--font-lora);
}

.product-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--rose-deep); color: white; font-size: 11px;
  font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.product-badge.new { background: var(--forest-green); }

/* Nút hover thao tác */
.product-actions {
  position: absolute; bottom: -52px; left: 0; right: 0;
  display: flex; gap: 8px; padding: 12px; z-index: 3;
  transition: bottom 0.28s ease;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}
.product-card:hover .product-actions { bottom: 0; }
.action-btn {
  flex: 1; padding: 9px; border: none; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 12.5px; font-weight: 600;
  transition: all var(--transition); display: flex; align-items: center;
  justify-content: center; gap: 6px;
}
.action-btn.add-cart {
  background: var(--forest-green); color: white;
}
.action-btn.add-cart:hover {
  background: var(--forest-green-hover);
}
.action-btn.quick-view {
  background: var(--white); color: var(--text-dark);
}
.action-btn.quick-view:hover {
  background: var(--cream-dark);
}

/* Thông tin sách bên dưới */
.product-info {
  padding: 18px; display: flex; flex-direction: column; flex: 1;
}
.product-category {
  font-size: 11px; color: var(--rose); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px;
}
.product-title {
  font-family: var(--font-lora); font-size: 15.5px; font-weight: 600;
  color: var(--text-dark); margin-bottom: 4px; line-height: 1.4;
  cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-title:hover { color: var(--forest-green); }
.product-author {
  font-size: 12.5px; color: var(--text-light); margin-bottom: 10px;
}
.product-rating {
  display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
}
.stars-filled { color: #f4a800; font-size: 12.5px; }
.rating-num { font-size: 12.5px; font-weight: 700; color: var(--text-dark); }
.rating-count { font-size: 12px; color: var(--text-light); }
.product-price {
  margin-top: auto; display: flex; align-items: baseline; gap: 10px;
}
.price-sale {
  font-family: var(--font-serif); font-size: 18px; font-weight: 700;
  color: var(--text-dark);
}
.price-orig {
  font-size: 13px; color: var(--text-light); text-decoration: line-through;
}

/* ---- FLASH SALE BANNER ---- */
.flash-banner {
  background: linear-gradient(135deg, #1b382b 0%, #294e3d 60%, #152d22 100%);
  padding: 60px 0; color: white;
  position: relative; overflow: hidden;
}
.flash-banner::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(217, 130, 108, 0.15) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.flash-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.flash-tag {
  background: rgba(255, 255, 255, 0.16); color: #ffd7a8;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px;
  padding: 6px 16px; border-radius: var(--radius-pill);
  display: inline-block; margin-bottom: 16px; border: 1px solid rgba(255, 255, 255, 0.2);
}
.flash-left h2 {
  font-family: var(--font-serif); font-size: 38px; line-height: 1.25;
  margin-bottom: 12px; font-weight: 700;
}
.discount-num { color: #f8c291; text-decoration: underline; }
.flash-left p {
  color: rgba(255, 255, 255, 0.85); font-size: 15.5px; margin-bottom: 24px;
}
.countdown {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0, 0, 0, 0.25); padding: 20px 28px;
  border-radius: var(--radius-lg); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.cd-item { text-align: center; min-width: 54px; }
.cd-item span {
  display: block; font-size: 40px; font-weight: 700;
  font-family: var(--font-serif); line-height: 1; color: #ffffff;
}
.cd-item small {
  font-size: 11px; text-transform: uppercase; color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px; margin-top: 4px; display: block;
}
.cd-sep {
  font-size: 32px; color: rgba(255, 255, 255, 0.5); font-weight: 300; margin-bottom: 14px;
}

/* ---- SECTION OUR STORY (CHUẨN FORM PAPER & PAGE) ---- */
.about-section {
  background: var(--cream);
  padding: 80px 0;
}
.about-card-split {
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  box-shadow: var(--shadow-sm);
}
.about-image-side {
  background: linear-gradient(135deg, #eee4d5, #dfd0bb);
  padding: 48px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.about-composition {
  text-align: center; max-width: 320px;
}
.about-emblem {
  width: 140px; height: 140px; border-radius: 50%;
  margin: 0 auto 20px; object-fit: cover;
  box-shadow: var(--shadow-md); border: 3px solid var(--white);
}
.about-slogan {
  font-family: var(--font-lora); font-style: italic; font-size: 15px;
  color: var(--text-mid);
}
.about-text-side {
  padding: 56px 48px; display: flex; flex-direction: column; justify-content: center;
}
.about-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--gold); text-transform: uppercase; margin-bottom: 12px;
}
.about-title {
  font-family: var(--font-serif); font-size: 34px; line-height: 1.25;
  color: var(--text-dark); margin-bottom: 20px; font-weight: 700;
}
.about-desc {
  color: var(--text-mid); font-size: 15px; line-height: 1.8; margin-bottom: 18px;
}
.about-hanoi-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream-dark); padding: 8px 16px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; color: var(--forest-green);
  margin-bottom: 28px; width: fit-content; border: 1px solid var(--beige);
}

/* ---- TESTIMONIALS (CẢM NHẬN ĐỘC GIẢ HÀ NỘI) ---- */
.testimonials-section {
  background: var(--cream-dark);
  padding: 72px 0;
}
.testimonials-header {
  text-align: center; margin-bottom: 44px;
}
.testi-big-quote {
  font-family: var(--font-serif); font-size: 54px; line-height: 1;
  color: var(--gold); opacity: 0.6; display: block; margin-bottom: -10px;
}
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial-card {
  background: var(--white); border: 1px solid var(--beige);
  border-radius: var(--radius); padding: 32px 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-sm); transition: transform var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.testi-stars {
  color: #f4a800; font-size: 15px; letter-spacing: 2px; margin-bottom: 14px;
}
.testi-quote {
  font-style: italic; color: var(--text-mid); font-size: 14.5px;
  line-height: 1.7; margin-bottom: 20px;
}
.testi-author-row {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--cream-dark); padding-top: 14px;
}
.testi-author-name {
  font-weight: 600; font-size: 13.5px; color: var(--text-dark);
}
.testi-author-loc {
  font-size: 12px; color: var(--text-light); display: block;
}
.testi-heart {
  color: var(--rose-light); font-size: 16px;
}

/* ---- NEWSLETTER BANNER (PEACH / TERRACOTTA TONE) ---- */
.newsletter-section {
  background: #f4dfd4;
  border-top: 1px solid #ebd0c2;
  border-bottom: 1px solid #ebd0c2;
  padding: 56px 0;
}
.newsletter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; flex-wrap: wrap;
}
.newsletter-left {
  display: flex; align-items: center; gap: 20px;
}
.newsletter-mail-icon {
  font-size: 44px; color: var(--forest-green);
}
.newsletter-title {
  font-family: var(--font-serif); font-size: 26px; color: var(--text-dark);
  margin-bottom: 4px;
}
.newsletter-sub {
  color: var(--text-mid); font-size: 14px;
}
.newsletter-form {
  display: flex; gap: 10px; min-width: 380px;
}
.newsletter-form input {
  flex: 1; padding: 12px 20px; border: 1.5px solid var(--beige-dark);
  border-radius: var(--radius-pill); background: var(--white);
  outline: none; font-size: 14px;
}
.newsletter-form input:focus {
  border-color: var(--forest-green);
}
.newsletter-form button {
  padding: 12px 24px; background: var(--forest-green); color: white;
  border: none; border-radius: var(--radius-pill); cursor: pointer;
  font-weight: 600; font-size: 14px; transition: background var(--transition);
}
.newsletter-form button:hover {
  background: var(--forest-green-hover);
}

/* ---- FOOTER FOREST GREEN (GIỐNG MẪU THAM KHẢO) ---- */
.footer {
  background: var(--forest-green);
  color: rgba(255, 255, 255, 0.8);
  padding: 68px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1.1fr 1.1fr 1.6fr;
  gap: 44px; padding-bottom: 52px;
}
.footer-brand-logo {
  height: 58px; width: auto; margin-bottom: 18px;
}
.footer-desc {
  line-height: 1.7; font-size: 13.5px; max-width: 300px;
  color: rgba(255, 255, 255, 0.75); margin-bottom: 20px;
}
.footer-socials {
  display: flex; gap: 10px;
}
.footer-social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); display: flex;
  align-items: center; justify-content: center; color: white;
  transition: all var(--transition);
}
.footer-social-link:hover {
  background: var(--rose); transform: translateY(-2px);
}
.footer-col h4 {
  color: white; font-family: var(--font-lora); font-size: 16px;
  font-weight: 600; margin-bottom: 18px; letter-spacing: 0.5px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.75); }
.footer-col a:hover { color: white; text-decoration: underline; }

.footer-contact-list { gap: 14px !important; }
.footer-contact-item {
  display: flex; gap: 12px; align-items: flex-start; line-height: 1.5;
}
.footer-contact-item i {
  color: #d8b482; margin-top: 3px; font-size: 15px; flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.55);
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}

/* ---- MODAL QUICK VIEW ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65);
  z-index: 2000; display: none; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 820px; width: 100%; max-height: 90vh; overflow-y: auto;
  position: relative; padding: 36px; box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border-radius: 50%; border: none; background: var(--cream-dark);
  color: var(--text-mid); cursor: pointer; display: flex;
  align-items: center; justify-content: center; font-size: 16px;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--rose); color: white; }
.modal-product {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px;
}
.modal-book-cover {
  width: 100%; aspect-ratio: 3/4.2; border-radius: 6px 12px 12px 6px;
  padding: 28px 20px; display: flex; flex-direction: column;
  justify-content: space-between; text-align: center; color: white;
  position: relative; box-shadow: var(--shadow-book);
  border-left: 6px solid rgba(0,0,0,0.25);
}
.modal-spine {
  position: absolute; left: 12px; top: 0; bottom: 0; width: 1px;
  background: rgba(255,255,255,0.3);
}
.modal-emoji { font-size: 60px; margin-bottom: 12px; }
.modal-cover-title { font-family: var(--font-serif); font-size: 20px; }
.modal-cover-author { font-size: 13px; opacity: 0.9; }

.modal-title {
  font-family: var(--font-serif); font-size: 26px; line-height: 1.25;
  color: var(--text-dark); margin-bottom: 6px; font-weight: 700;
}
.modal-author {
  font-size: 13.5px; color: var(--text-mid); margin-bottom: 12px;
}
.modal-rating {
  display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 18px;
}
.modal-price-wrap {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--beige);
}
.modal-price-wrap .price-sale { font-size: 24px; color: var(--forest-green); }
.discount-badge {
  background: rgba(193, 99, 106, 0.12); color: var(--rose-deep);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill);
}
.modal-synopsis {
  font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 20px;
}
.modal-synopsis h4 { font-size: 13.5px; color: var(--text-dark); margin-bottom: 6px; }
.modal-extra-info {
  background: var(--cream-dark); padding: 14px; border-radius: var(--radius);
  font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px;
}
.modal-extra-info i { color: var(--forest-green); width: 18px; }

.modal-action-row {
  display: flex; gap: 14px; align-items: center;
}
.quantity-selector {
  display: flex; align-items: center; border: 1.5px solid var(--beige-dark);
  border-radius: var(--radius-pill); background: white; overflow: hidden;
}
.qty-btn {
  width: 36px; height: 42px; background: none; border: none;
  cursor: pointer; font-size: 16px; color: var(--text-dark);
}
.qty-btn:hover { background: var(--cream-dark); }
.quantity-selector input {
  width: 44px; text-align: center; border: none; font-weight: 600; outline: none;
}
.btn-add-modal { flex: 1; height: 44px; }

/* ---- TOAST NOTIFICATION ---- */
.toast {
  position: fixed; bottom: 90px; right: 32px; z-index: 3000;
  background: var(--forest-green); color: white;
  padding: 14px 24px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  transform: translateY(80px); opacity: 0; pointer-events: none;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show {
  transform: translateY(0); opacity: 1; pointer-events: auto;
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed; bottom: 32px; left: 32px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); color: var(--forest-green);
  border: 1.5px solid var(--beige-dark); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: var(--shadow-md);
  transition: all var(--transition); opacity: 0; pointer-events: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover {
  background: var(--forest-green); color: white; transform: translateY(-3px);
}

/* ---- NÚT FANPAGE FACEBOOK NỔI TRÊN MÀN HÌNH ---- */
.fb-floating-btn {
  position: fixed; bottom: 32px; right: 32px; z-index: 998;
  background: #1877f2; color: #ffffff !important;
  padding: 11px 20px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.38);
  transition: all var(--transition);
  text-decoration: none;
}
.fb-floating-btn:hover {
  background: #1465cc; color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.52);
}
.fb-floating-btn i { font-size: 16px; }

/* ================================================
   TRANG DANH MỤC & GIỎ HÀNG
   ================================================ */
.page-banner {
  background: linear-gradient(135deg, var(--cream-dark), #ede1cd);
  padding: 44px 0; text-align: center; border-bottom: 1px solid var(--beige);
}
.page-banner h1 {
  font-family: var(--font-serif); font-size: 36px; color: var(--text-dark); margin-bottom: 8px;
}
.page-banner p { color: var(--text-mid); font-size: 15px; }

/* Dàn trang Danh mục */
.catalog-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 36px; padding: 48px 0;
}
.sidebar-filter {
  background: var(--white); border: 1px solid var(--beige);
  border-radius: var(--radius); padding: 24px;
}
.filter-group { margin-bottom: 24px; }
.filter-title {
  font-family: var(--font-lora); font-size: 16px; font-weight: 600;
  color: var(--text-dark); margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--cream-dark);
}
.filter-list { display: flex; flex-direction: column; gap: 10px; }
.filter-item {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 13.5px; color: var(--text-mid);
}
.filter-item:hover { color: var(--forest-green); }
.filter-item input[type="radio"], .filter-item input[type="checkbox"] {
  accent-color: var(--forest-green);
}
.catalog-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.sort-select {
  padding: 8px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--beige-dark);
  background: white; outline: none; font-size: 13.5px;
}

/* Dàn trang Giỏ hàng & Thanh toán */
.cart-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 36px; padding: 48px 0;
}
.cart-card {
  background: var(--white); border: 1px solid var(--beige);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.cart-item-row {
  display: grid; grid-template-columns: 70px 1fr auto auto;
  gap: 18px; align-items: center; padding: 18px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.cart-item-row:last-child { border-bottom: none; }
.cart-book-thumb {
  width: 70px; height: 92px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: var(--shadow-sm);
}
.cart-item-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.cart-item-auth { font-size: 12.5px; color: var(--text-light); }
.cart-item-price { font-weight: 700; font-size: 15px; color: var(--forest-green); }
.btn-remove-item {
  background: none; border: none; color: var(--text-light);
  cursor: pointer; font-size: 16px; transition: color var(--transition);
}
.btn-remove-item:hover { color: var(--rose-deep); }

.order-summary-row {
  display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px;
}
.order-summary-row.total {
  font-size: 18px; font-weight: 700; color: var(--text-dark);
  border-top: 1.5px solid var(--beige); padding-top: 14px; margin-top: 14px;
}
.voucher-form {
  display: flex; gap: 8px; margin: 18px 0;
}
.voucher-form input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--beige-dark);
  border-radius: var(--radius-sm); outline: none; font-size: 13.5px;
}
.vietqr-box {
  background: var(--cream); border: 1.5px dashed var(--gold);
  border-radius: var(--radius); padding: 18px; text-align: center;
  margin-top: 20px;
}
.vietqr-box img {
  width: 170px; margin: 10px auto; border-radius: 8px;
  border: 1px solid var(--beige);
}

/* ================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ================================================ */
@media (max-width: 1100px) {
  .collections-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-desc { margin: 0 auto 28px; }
  .hero-cta { justify-content: center; }
  .hero-values { grid-template-columns: repeat(2, 1fr); text-align: left; }
  .hero-image { max-width: 360px; margin: 0 auto; }
  .about-card-split { grid-template-columns: 1fr; }
  .about-image-side { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .catalog-layout, .cart-layout { grid-template-columns: 1fr; }
  
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 16px;
    border-top: 1px solid var(--beige); box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .hamburger { display: block; }
  .header-search-wrap { display: none; }
  .modal-product { grid-template-columns: 1fr; }
  .modal-img-col { display: none; }
}

@media (max-width: 540px) {
  .announcement-inner { justify-content: center; text-align: center; }
  .announcement-links { display: none; }
  .hero-title { font-size: 34px; }
  .hero-values { grid-template-columns: 1fr; }
  .collections-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .products-grid { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { width: 100%; min-width: auto; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .countdown { padding: 14px 18px; }
  .cd-item span { font-size: 28px; }
}
