/* GOVIETWOOD.VN — Lora typography scale v2
   Scoped sizes per component; loaded after site.css / sales-preview.css / site-sales-shell.css. */

:root {
  --font-body: "Lora", "Be Vietnam Pro", "Segoe UI", Arial, serif;
  --font-display: "Lora", "Playfair Display", "Noto Serif", Georgia, serif;
}

html { font-size: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

body p,
body li,
body dd,
body dt,
body td,
body th,
body label,
body input,
body textarea,
body select {
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

/* Page H1 — hero trang tĩnh, danh mục, bài viết, trang chủ */
.shop-page .page-hero h1,
article.section .prose-wide > h1,
.admin-head h1 {
  font-size: clamp(2.5rem, 3.2vw, 3.25rem);
  line-height: 1.15;
}

.shop-page .shop-hero-copy .shop-hero-headline {
  font-size: clamp(2.5rem, 3.2vw, 3.25rem);
  line-height: 1.1;
}

/* Section H2 — tiêu đề khối nội dung */
.shop-page .section-head h2,
.shop-page .shop-section-head h2,
.shop-page .shop-section h2,
.section .section-head h2,
.prose-wide > h2 {
  font-size: clamp(2rem, 2.4vw, 2.375rem);
  line-height: 1.25;
}

/* Product detail */
.shop-page .product-summary h1 {
  font-size: clamp(2rem, 2.7vw, 2.375rem);
  line-height: 1.2;
}

.shop-page .product-detail .prose-wide h2 {
  font-size: 1.875rem;
  line-height: 1.3;
}

/* Category tiles */
.shop-page .shop-section .category-tile h3,
.category-tile h3 {
  font-size: 1.25rem;
  line-height: 1.35;
}

/* Product card */
.shop-page .product-card h3,
.shop-page .product-card .product-body h3 {
  font-size: 1.125rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  overflow: visible;
}

/* Navigation + buttons */
.shop-page .shop-nav a { font-size: 0.9375rem; }
body .button,
body .shop-button,
body .btn,
body button[type="submit"] { font-size: 0.9375rem; }

/* Product card alignment */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card .product-media { flex: 0 0 auto; }
.product-card .product-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 6px;
}
.product-card .product-body h3 {
  min-height: 2.9em;
  margin: 0;
  padding-bottom: 2px;
}
.product-card .product-meta { margin: 0; }
.product-card .product-card-actions {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Mobile scale */
@media (max-width: 760px) {
  .shop-page .page-hero h1,
  article.section .prose-wide > h1,
  .shop-page .shop-hero-copy .shop-hero-headline {
    font-size: clamp(1.875rem, 8vw, 2.25rem); /* 30–36px */
    line-height: 1.18;
  }

  .shop-page .section-head h2,
  .shop-page .shop-section-head h2,
  .shop-page .shop-section h2,
  .section .section-head h2,
  .prose-wide > h2 {
    font-size: clamp(1.625rem, 6.4vw, 1.875rem); /* 26–30px */
  }

  .shop-page .product-summary h1 {
    font-size: clamp(1.75rem, 7vw, 2rem); /* 28–32px */
  }

  .shop-page .product-detail .prose-wide h2 { font-size: 1.5rem; }

  .shop-page .shop-section .category-tile h3,
  .category-tile h3 { font-size: clamp(1.125rem, 4.6vw, 1.25rem); }

  .shop-page .product-card h3,
  .shop-page .product-card .product-body h3 { font-size: clamp(1rem, 4.2vw, 1.125rem); }

  body,
  body p,
  body li,
  body td,
  body label { font-size: clamp(0.9375rem, 3.9vw, 1rem); } /* 15–16px */

  .shop-page .shop-nav a { font-size: 0.875rem; }
}

/* v2 — ghi đè các rule mobile cũ có !important (bắt buộc) */
.shop-page .page-hero.category-hero h1,
.shop-page .shop-hero-copy .shop-hero-headline {
  font-size: clamp(2.5rem, 3.2vw, 3.25rem) !important;
}
.shop-page .product-summary h1 {
  font-size: clamp(2rem, 2.7vw, 2.375rem) !important;
}
.shop-page .prose-wide > h2 { font-size: 1.875rem; line-height: 1.3; }

@media (max-width: 760px) {
  .shop-page .page-hero.category-hero h1 {
    font-size: clamp(1.875rem, 8vw, 2.25rem) !important; /* 30–36px */
  }
  .shop-page .shop-hero-copy .shop-hero-headline {
    font-size: clamp(1.875rem, 8vw, 2.25rem) !important; /* 30–36px */
  }
  .shop-page .product-summary h1 {
    font-size: clamp(1.75rem, 7vw, 2rem) !important; /* 28–32px */
  }
  .shop-page .prose-wide > h2 { font-size: 1.5rem; }
}

/* Lora: đủ khoảng cho dấu tiếng Việt, không cắt chữ */
.shop-page .page-hero h1,
article.section .prose-wide > h1,
.shop-page .shop-hero-copy .shop-hero-headline,
.shop-page .product-summary h1 {
  line-height: 1.22;
  padding-bottom: .06em;
  overflow: visible;
}
.shop-page .section-head h2,
.shop-page .shop-section-head h2,
.shop-page .shop-section h2,
.section .section-head h2,
.prose-wide > h2 {
  line-height: 1.3;
  padding-bottom: .04em;
  overflow: visible;
}
.shop-page .product-card .product-body h3 { line-height: 1.5; }

/* ===== PREMIUM PRODUCT UI (local redesign) ===== */

/* Product detail: 55/45, gallery lớn, summary sticky desktop */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: 36px;
  align-items: start;
}
.product-gallery { position: relative; }
.gallery-main img { border-radius: 16px; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #fff; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 1px solid #e4e9ef; border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; }
.gallery-thumbs img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; height: auto; display: block; }
@media (min-width: 1121px) {
  .product-summary { position: sticky; top: 100px; align-self: start; }
}

/* Product summary hierarchy */
.product-summary h1 { font-size: 28px !important; line-height: 1.28; margin: 6px 0 10px; }
.product-summary .price-panel strong { font-size: 26px; }
.product-summary .spec-list { margin-top: 16px; }
.product-summary .product-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Product card: 2 cột mobile, title tối đa 3 dòng, CTA đáy */
.shop-page .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shop-page .product-card .product-media img { aspect-ratio: 1 / 1; object-fit: cover; }
.shop-page .product-card .product-body .eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.shop-page .product-card .product-body h3 {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 0; font-size: 18px; line-height: 1.45;
}
.shop-page .product-card .product-card-actions { margin-top: auto; }

/* Category tiles: bỏ số thứ tự, gọn trên dưới */
.category-tile > span { display: none; }
.category-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.category-tile { padding: 14px 16px; }
.category-tile h3 { margin: 0 0 6px; font-size: 18px; }
.category-tile p { margin: 0; font-size: 13px; }

/* Buttons: 15px / 600 */
body .button, body .shop-button, body .btn, body button[type="submit"] { font-size: 15px; font-weight: 600; }

@media (max-width: 760px) {
  .product-layout { grid-template-columns: 1fr; gap: 18px; }
  .product-summary { position: static; top: auto; }
  .product-summary h1 { font-size: 23px !important; line-height: 1.32; }
  .product-summary .price-panel strong { font-size: 22px; }
  .gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .gallery-thumbs button { flex: 0 0 72px; scroll-snap-align: start; }
  .shop-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shop-page .product-card .product-body h3 { font-size: 16px; line-height: 1.42; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-tile { padding: 12px; }
  .category-tile h3 { font-size: 16px; }
  .category-tile p { font-size: 12px; }
  .product-detail { padding-bottom: 96px; }
}

/* Không để CTA cố định che nội dung ở trang danh sách */
@media (max-width: 760px) {
  body[data-page="search"] .shop-mobile-cta,
  body[data-page="category"] .shop-mobile-cta,
  body[data-page="articles"] .shop-mobile-cta,
  body[data-page="knowledge"] .shop-mobile-cta { display: none; }
  body[data-page="search"] main,
  body[data-page="category"] main,
  body[data-page="articles"] main,
  body[data-page="knowledge"] main { padding-bottom: 0; }
}

/* override scale sản phẩm theo spec premium */
.shop-page .product-summary h1 { font-size: 28px !important; line-height: 1.28; }
@media (max-width: 760px) { .shop-page .product-summary h1 { font-size: 23px !important; line-height: 1.32; } }

/* product-card actions: xếp dọc, không tràn khỏi ô */
.shop-page .product-card .product-card-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
}
.shop-page .product-card .product-price-button,
.shop-page .product-card .product-detail-button {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
}
.shop-page .product-card .product-price-button strong { font-size: 15px; }
@media (max-width: 760px) {
  .shop-page .product-card .product-price-button strong { font-size: 14px; }
  .shop-page .product-card .product-detail-button { font-size: 13px !important; padding: 8px 6px !important; }
}

/* ===== GOOGLE ADS LANDING ===== */
.landing-hero { background: linear-gradient(110deg, #0f2a44 0%, #2e557b 100%); color: #fff; }
.landing-hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 36px; align-items: center; padding-top: 54px; padding-bottom: 54px; }
.landing-hero h1 { color: #fff; font-size: clamp(2.2rem, 3.4vw, 3.25rem); line-height: 1.15; margin: 8px 0 14px; }
.landing-hero p { color: #dbe5ef; font-size: 1.05rem; max-width: 52ch; }
.landing-hero .shop-kicker { color: #efc17f; }
.landing-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.landing-hero-media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.landing-trust { background: #fff; border-bottom: 1px solid #e4e9ef; }
.landing-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-top: 18px; padding-bottom: 18px; }
.landing-trust strong { display: block; font-size: 1rem; }
.landing-trust span { font-size: .85rem; color: #5b6b78; }
.landing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.landing-form-section { background: #f4f8fc; }
.landing-form-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.landing-form { background: #fff; border: 1px solid #e4e9ef; border-radius: 16px; padding: 24px; display: grid; gap: 12px; }
.landing-field { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.landing-field input, .landing-field select, .landing-field textarea { width: 100%; box-sizing: border-box; border: 1px solid #d6dfe8; border-radius: 10px; padding: 11px 12px; font: inherit; background: #fff; }
.landing-field input:focus, .landing-field select:focus, .landing-field textarea:focus { outline: 2px solid #2f6c9e; outline-offset: 1px; }
.landing-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.landing-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.landing-consent { font-size: .82rem; color: #5b6b78; margin: 0; }
.landing-error { color: #b3261e; font-size: .9rem; margin: 0; }
.landing-submit { width: 100%; justify-content: center; }
.landing-note { font-size: .78rem; color: #5b6b78; margin: 0; text-align: center; }
.landing-points { margin: 14px 0 0; padding-left: 18px; color: #3d536c; }
.landing-points li { margin-bottom: 6px; }
.landing-success-inner { max-width: 720px; text-align: center; }
.landing-success-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 12px; }
.landing-success-note { font-size: .9rem; color: #5b6b78; }

@media (max-width: 760px) {
  .landing-hero-inner { grid-template-columns: 1fr; gap: 22px; padding-top: 32px; padding-bottom: 32px; }
  .landing-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-form-grid { grid-template-columns: 1fr; gap: 20px; }
  .landing-field-row { grid-template-columns: 1fr; }
  .landing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-hero h1 { font-size: 30px; }
}

/* success page H1 theo scale chung */
.shop-page .landing-success h1 { font-size: clamp(2.5rem, 3.2vw, 3.25rem); line-height: 1.2; margin: 8px 0 12px; }
@media (max-width: 760px) { .shop-page .landing-success h1 { font-size: clamp(1.875rem, 8vw, 2.25rem); } }

/* landing hero: chữ sáng trên nền navy */
.shop-page .landing-hero h1,
.shop-page .landing-hero p,
.shop-page .landing-hero strong { color: #ffffff !important; }
.shop-page .landing-hero .shop-kicker { color: #efc17f !important; }

/* landing: CTA vàng nổi bật + input 16px */
.landing-hero-actions .shop-button-gold,
.landing-submit { background: #d89a3e !important; border-color: #d89a3e !important; color: #1b1b16 !important; font-weight: 700; }
.landing-hero-actions .shop-button-gold:hover,
.landing-submit:hover { background: #c98a2e !important; border-color: #c98a2e !important; }
.landing-field input, .landing-field select, .landing-field textarea { font-size: 16px; }

/* landing mobile: chừa chỗ cho CTA cố định */
@media (max-width: 760px) {
  .landing-form-section { padding-bottom: 110px; }
}
