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

:root {
  --bg: #fafaf6;
  --green: #5f7e5f;
  --green-dark: #46603f;
  --text: #2a2a2a;
  --muted: #8a8a85;
  --line: #ececea;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.phone {
  width: 100%;
  max-width: 430px;
  background: var(--bg);
  position: relative;
  min-height: 100vh;
  padding-bottom: 90px;
}

/* Header Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 8px;
}
.title {
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--text);
}
.top-actions { display: flex; gap: 8px; }
.round {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s;
}
.round:hover {
  transform: scale(1.05);
}
.round svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
}

.content { padding: 8px 22px; }

/* Hero Banner Layout */
.hero {
  position: relative;
  margin-left: -22px;
  margin-right: -22px;
  padding: 24px 22px 32px;
  margin-bottom: 8px;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.95;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: center;
}
.book-cover {
  width: 130px;
  height: 185px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: #e9efea;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-info h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--text);
}
.subtitle {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 10px;
}
.author-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.author-svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
}
.meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}
.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.price {
  font-size: 20px;
  font-weight: 600;
  color: var(--green);
}
.price-old {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}
.discount {
  background: #faf2ea;
  color: #c07a50;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}
.action-row { display: flex; gap: 8px; }
.buy, .preview {
  flex: 1;
  padding: 10px 0;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform 0.2s, background 0.2s;
}
.buy {
  background: var(--green);
  color: #fff;
}
.buy:hover {
  background: var(--green-dark);
}
.preview {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}
.preview:hover {
  background: var(--bg);
}

/* Feature grid */
.features {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 18px 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}
.feat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feat-ico {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}
.feat small {
  font-size: 9px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

/* Content Sections */
.section { margin-top: 24px; }
.section h3 {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-head h3 { margin: 0; }
.desc { font-size: 12px; color: #555; line-height: 1.6; margin-bottom: 8px; }
.more {
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.more-chevron {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  transition: transform 0.2s;
}
.more-chevron.up {
  transform: rotate(180deg);
}
.see-all { color: var(--muted); font-size: 12px; cursor: pointer; }

/* Table Info and Decovase */
.info-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 12px;
  align-items: center;
}
.info {
  font-size: 12px;
  width: 100%;
  border-collapse: collapse;
}
.info td {
  padding: 6px 0;
  vertical-align: top;
  line-height: 1.4;
}
.info td:first-child {
  color: var(--muted);
  width: 100px;
}
.info td:last-child {
  color: var(--text);
  font-weight: 500;
}
.info-deco {
  width: 90px;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
}

/* TOC (Mục lục) */
.toc {
  list-style: none;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 6px 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}
.toc li {
  display: grid;
  grid-template-columns: 28px 1fr auto 16px;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 0.2s;
}
.toc li:last-child { border-bottom: none; }
.num {
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
}
.ch-title {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.ch-pages {
  font-size: 11px;
  color: var(--muted);
}
.ch-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.ch-arrow-svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* Try Card */
.try-card {
  margin-top: 24px;
  background: #f4f6f3;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}
.try-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
  color: var(--green);
}
.try-svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}
.try-body {
  flex: 1;
}
.try-body h4 { font-size: 13px; font-weight: 600; margin-bottom: 3px; color: var(--text); }
.try-body p { font-size: 10px; color: var(--muted); line-height: 1.4; }
.try-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.try-btn:hover {
  background: var(--green-dark);
}

.bottom-spacer { height: 20px; }

/* Bottom navigation bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #fff;
  display: flex;
  justify-content: space-around;
  padding: 10px 0 16px;
  border-top: 1px solid var(--line);
  z-index: 100;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
}
.nav-item small { font-size: 10px; }
.nav-item.active { color: var(--green); font-weight: 600; }

.nav-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
}
.nav-item.active .nav-icon path {
  fill: currentColor;
}
