/* ========================================================================
   TVGroup Home Template Styles
   Based on home-v1.html design
   Colors: #1A0A06 (dark brown), #FAF6EF (cream), #EDE4D3 (beige),
           #7B1D1D (wine red), #C4922A (gold)
   Fonts: Playfair Display (serif headings), Lato (body)
   ======================================================================== */

/* Google Fonts loaded via wp_enqueue_scripts in functions.php */

:root {
  --tv-dark: #1A0A06;
  --tv-cream: #FAF6EF;
  --tv-beige: #EDE4D3;
  --tv-wine: #7B1D1D;
  --tv-gold: #C4922A;
  --tv-muted: #6B5A4A;
  --tv-font-serif: 'Playfair Display', Georgia, serif;
  --tv-font-body: 'Lato', 'Segoe UI', sans-serif;
}

/* ── Section Label (gold line + text) ─────────────────────────── */
.tv-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tv-label.center {
  justify-content: center;
}

.tv-label span.line {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--tv-gold);
}

.tv-label span.text {
  font-family: var(--tv-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tv-gold);
}

.tv-heading {
  font-family: var(--tv-font-serif);
  font-weight: 400;
  line-height: 1.2;
}

/* ── 1. HERO BANNER ──────────────────────────────────────────── */
.tv-hero {
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.tv-hero img.tv-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-hero .tv-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 10, 6, .80), rgba(26, 10, 6, .50), transparent);
}

.tv-hero .tv-hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.tv-hero .tv-hero-inner {
  max-width: 520px;
}

.tv-hero h1 {
  font-family: var(--tv-font-serif);
  color: #fff;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.tv-hero h1 em {
  color: var(--tv-gold);
  font-style: normal;
}

.tv-hero p {
  color: rgba(255, 255, 255, .8);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.tv-hero .tv-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tv-btn-primary {
  display: inline-block;
  background: var(--tv-wine);
  color: #fff;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s;
}

.tv-btn-primary:hover {
  background: #9B2424;
  color: #fff;
}

.tv-btn-outline {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .6);
  color: #fff;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background .2s;
}

.tv-btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

/* ── 2. TRUST BAR ────────────────────────────────────────────── */
.tv-trust-bar {
  background: var(--tv-dark);
  padding: 20px 0;
}

.tv-trust-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tv-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tv-trust-icon {
  color: var(--tv-gold);
  flex-shrink: 0;
}

.tv-trust-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--tv-gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tv-trust-text h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.tv-trust-text p {
  color: rgba(255, 255, 255, .5);
  font-size: 11px;
  margin: 2px 0 0;
}

/* ── 3/5/7. PRODUCT SECTION (Sản Phẩm Nổi Bật / Mới / Khuyến Mãi) ── */
.tv-section {
  padding: 56px 0 64px;
}

.tv-section .tv-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.tv-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.tv-section-header h2 {
  font-family: var(--tv-font-serif);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--tv-dark);
  margin: 0;
}

.tv-section-header p {
  color: var(--tv-muted);
  font-size: 14px;
  max-width: 560px;
  margin: 8px auto 0;
}

.tv-section.dark {
  background: var(--tv-dark);
}

.tv-section.dark .tv-section-header h2 {
  color: #fff;
}

.tv-section.beige {
  background: var(--tv-beige);
}

/* ── 4. CATEGORY CARDS ───────────────────────────────────────── */
.tv-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tv-cat-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: block;
  text-decoration: none;
}

.tv-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s;
}

.tv-cat-card:hover img {
  transform: scale(1.1);
}

.tv-cat-card .tv-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 10, 6, .8), rgba(26, 10, 6, .2), transparent);
}

.tv-cat-card .tv-cat-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
}

.tv-cat-card h3 {
  color: #fff;
  font-family: var(--tv-font-serif);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.tv-cat-card p {
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  margin: 4px 0 0;
}

/* ── 6. DUAL BANNER CTA ──────────────────────────────────────── */
.tv-dual-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 64px;
}

.tv-banner-card {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.tv-banner-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s;
}

.tv-banner-card:hover img {
  transform: scale(1.05);
}

.tv-banner-card .tv-banner-overlay {
  position: absolute;
  inset: 0;
}

.tv-banner-card:first-child .tv-banner-overlay {
  background: linear-gradient(to right, rgba(92, 24, 24, .85), transparent);
}

.tv-banner-card:last-child .tv-banner-overlay {
  background: linear-gradient(to right, rgba(42, 21, 5, .85), transparent);
}

.tv-banner-card .tv-banner-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}

.tv-banner-card .tv-sub {
  color: var(--tv-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tv-banner-card h3 {
  color: #fff;
  font-family: var(--tv-font-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
}

.tv-banner-card p {
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  margin: 0 0 20px;
}

.tv-btn-gold {
  display: inline-block;
  align-self: flex-start;
  background: var(--tv-gold);
  color: var(--tv-dark);
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
}

.tv-btn-gold:hover {
  background: #fff;
  color: var(--tv-dark);
}

/* ── 8. PARALLAX CTA ─────────────────────────────────────────── */
.tv-parallax {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.tv-parallax img.tv-parallax-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-parallax .tv-parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 10, 6, .75), rgba(26, 10, 6, .40), transparent);
}

.tv-parallax .tv-parallax-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.tv-parallax .tv-parallax-inner {
  max-width: 480px;
}

.tv-parallax h2 {
  font-family: var(--tv-font-serif);
  color: #fff;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.tv-parallax p {
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ── 9. REVIEWS SECTION ──────────────────────────────────────── */
.tv-reviews {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.tv-reviews-summary {
  text-align: left;
}

.tv-reviews-score {
  font-family: var(--tv-font-serif);
  font-size: 64px;
  font-weight: 700;
  color: var(--tv-wine);
  line-height: 1;
  margin-top: 24px;
}

.tv-stars {
  display: flex;
  gap: 4px;
  margin: 8px 0;
}

.tv-stars svg {
  width: 20px;
  height: 20px;
  fill: var(--tv-gold);
  stroke: var(--tv-gold);
}

.tv-reviews-count {
  color: var(--tv-muted);
  font-size: 14px;
}

.tv-rating-bars {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 200px;
}

.tv-rating-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--tv-muted);
}

.tv-rating-bar .bar-label {
  width: 48px;
  flex-shrink: 0;
}

.tv-rating-bar .bar-track {
  flex: 1;
  height: 6px;
  background: var(--tv-beige);
  border-radius: 99px;
  overflow: hidden;
}

.tv-rating-bar .bar-fill {
  height: 100%;
  background: var(--tv-gold);
  border-radius: 99px;
}

.tv-rating-bar .bar-pct {
  width: 32px;
  text-align: right;
}

.tv-review-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tv-review-card {
  background: #fff;
  border: 1px solid rgba(26, 10, 6, .08);
  padding: 20px;
}

.tv-review-card .stars-row {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.tv-review-card .stars-row svg {
  width: 12px;
  height: 12px;
  fill: var(--tv-gold);
  stroke: var(--tv-gold);
}

.tv-review-card blockquote {
  color: #3A2018;
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 16px;
}

.tv-review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(26, 10, 6, .06);
}

.tv-review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tv-wine);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tv-review-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--tv-dark);
}

.tv-review-title {
  font-size: 12px;
  color: var(--tv-muted);
}

.tv-review-cta-card {
  background: var(--tv-wine);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tv-review-cta-card p {
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  margin: 12px 0 16px;
}

.tv-review-cta-card a {
  border: 1px solid var(--tv-gold);
  color: var(--tv-gold);
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .2s;
}

.tv-review-cta-card a:hover {
  background: var(--tv-gold);
  color: var(--tv-dark);
}

/* ── 10. ABOUT + NEWSLETTER ──────────────────────────────────── */
.tv-about-section {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}

.tv-about-section img.tv-about-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-about-section .tv-about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 6, .82);
}

.tv-about-section .tv-about-grid {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.tv-about-text h2 {
  font-family: var(--tv-font-serif);
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.tv-about-text h2 em {
  color: var(--tv-gold);
  font-style: normal;
}

.tv-about-text p {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.tv-newsletter-box {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .15);
  padding: 32px;
  backdrop-filter: blur(6px);
}

.tv-newsletter-box h3 {
  font-family: var(--tv-font-serif);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.tv-newsletter-box p {
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
  margin: 0 0 20px;
}

.tv-newsletter-box input {
  width: 100%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
  font-family: var(--tv-font-body);
}

.tv-newsletter-box input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.tv-newsletter-box input:focus {
  border-color: var(--tv-gold);
}

.tv-newsletter-box button {
  width: 100%;
  background: var(--tv-gold);
  color: var(--tv-dark);
  padding: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background .2s;
  font-family: var(--tv-font-body);
}

.tv-newsletter-box button:hover {
  background: #D4A235;
}

/* ── 11. BLOG CARDS ──────────────────────────────────────────── */
.tv-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tv-blog-card {
  background: #fff;
  border: 1px solid rgba(26, 10, 6, .08);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: box-shadow .3s;
}

.tv-blog-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.tv-blog-card .tv-blog-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.tv-blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

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

.tv-blog-card .tv-blog-body {
  padding: 20px;
}

.tv-blog-card .tv-blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tv-blog-card .tv-blog-cat {
  background: var(--tv-beige);
  color: var(--tv-wine);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
}

.tv-blog-card .tv-blog-date {
  color: var(--tv-muted);
  font-size: 11px;
}

.tv-blog-card h3 {
  color: var(--tv-dark);
  font-family: var(--tv-font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.tv-blog-card .tv-blog-read {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--tv-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 16px;
  text-decoration: none;
}

/* ── 12. MEMBER PROMO ────────────────────────────────────────── */
.tv-promo {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
}

.tv-promo-badge {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--tv-wine);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tv-promo-badge .num {
  font-family: var(--tv-font-serif);
  font-size: 40px;
  font-weight: 900;
  color: var(--tv-wine);
  line-height: 1;
}

.tv-promo-badge .lbl {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tv-wine);
}

.tv-promo-text {
  flex: 1;
}

.tv-promo-text h2 {
  font-family: var(--tv-font-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--tv-dark);
  margin: 0 0 8px;
}

.tv-promo-text p {
  color: var(--tv-muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.tv-promo-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tv-btn-wine {
  display: inline-block;
  background: var(--tv-wine);
  color: #fff;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
}

.tv-btn-wine:hover {
  background: #5C1010;
  color: #fff;
}

.tv-btn-wine-outline {
  display: inline-block;
  border: 1px solid var(--tv-wine);
  color: var(--tv-wine);
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  transition: all .2s;
}

.tv-btn-wine-outline:hover {
  background: var(--tv-wine);
  color: #fff;
}

/* ── WooCommerce Product Grid Override (Home Page) ────────────── */

/* --- Grid Layout --- */
.home .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.home .woocommerce ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  background: #fff;
  border: 1px solid rgba(26, 10, 6, .08);
  overflow: hidden;
  transition: box-shadow .3s;
}

.home .woocommerce ul.products li.product:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

/* --- Product Image --- */
.home .woocommerce ul.products li.product .image_frame {
  position: relative;
  overflow: hidden;
  background: #F5ECD7 !important;
  border: none !important;
  margin: 0 !important;
}

.home .woocommerce ul.products li.product .image_frame .image_wrapper {
  aspect-ratio: 4/3 !important;
  overflow: hidden;
}

.home .woocommerce ul.products li.product .image_frame .image_wrapper a,
.home .woocommerce ul.products li.product .image_frame .image_wrapper .mfn-product-list-gallery-item {
  display: block;
  width: 100%;
  height: 100%;
}

.home .woocommerce ul.products li.product .image_frame .image_wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  aspect-ratio: 4/3 !important;
  transition: transform .5s !important;
}

.home .woocommerce ul.products li.product:hover .image_frame .image_wrapper img {
  transform: scale(1.05) !important;
}

/* --- Product Title --- */
.home .woocommerce ul.products li.product .desc h2,
.home .woocommerce ul.products li.product .desc h3,
.home .woocommerce ul.products li.product .desc h4,
.home .woocommerce ul.products li.product .desc .title {
  font-family: var(--tv-font-serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: var(--tv-dark) !important;
  margin: 6px 0 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home .woocommerce ul.products li.product .desc h2 a,
.home .woocommerce ul.products li.product .desc h3 a,
.home .woocommerce ul.products li.product .desc h4 a {
  font-family: var(--tv-font-serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--tv-dark) !important;
  text-decoration: none !important;
}

/* --- Product Price --- */
.home .woocommerce ul.products li.product .desc .price {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--tv-wine) !important;
  margin-top: 8px !important;
}

.home .woocommerce ul.products li.product .desc .price del {
  color: var(--tv-muted) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  opacity: .7;
}

.home .woocommerce ul.products li.product .desc .price ins {
  text-decoration: none !important;
  color: var(--tv-wine) !important;
  font-weight: 700 !important;
}

/* --- Product Description Wrapper --- */
.home .woocommerce ul.products li.product .desc {
  padding: 12px 16px 16px !important;
}

/* --- Product Badges --- */
.home .woocommerce ul.products li.product .image_frame .product-badge,
.home .woocommerce ul.products li.product .image_frame .onsale,
.home .woocommerce ul.products li.product .product-badge,
.home .woocommerce ul.products li.product .onsale {
  background: var(--tv-wine) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  padding: 4px 10px !important;
  border-radius: 0 !important;
  line-height: 1.4 !important;
}

/* Sale % badges → gold */
.home .woocommerce ul.products li.product .image_frame .product-badge[class*="sale"],
.home .woocommerce ul.products li.product .image_frame .product-badge[class*="off"] {
  background: var(--tv-gold) !important;
  color: var(--tv-dark) !important;
}

/* --- Add to Cart Button --- */
.home .woocommerce ul.products li.product .button,
.home .woocommerce ul.products li.product .add_to_cart_button {
  background: var(--tv-wine) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 10px 16px !important;
  width: 100%;
  text-align: center;
  transition: background .2s !important;
}

.home .woocommerce ul.products li.product .button:hover {
  background: #5C1010 !important;
}

/* --- Dark Section Product Cards (Khuyến Mãi) --- */
.tv-section.dark ul.products li.product {
  background: #2A1209 !important;
  border-color: rgba(255, 255, 255, .1) !important;
}

.tv-section.dark ul.products li.product:hover {
  border-color: rgba(196, 146, 42, .4) !important;
}

.tv-section.dark ul.products li.product .image_frame {
  background: #1A0A06 !important;
}

.tv-section.dark ul.products li.product .desc h2,
.tv-section.dark ul.products li.product .desc h3,
.tv-section.dark ul.products li.product .desc h4,
.tv-section.dark ul.products li.product .desc .title,
.tv-section.dark ul.products li.product .desc h2 a,
.tv-section.dark ul.products li.product .desc h4 a {
  color: rgba(255, 255, 255, .9) !important;
}

.tv-section.dark ul.products li.product .desc .price {
  color: var(--tv-gold) !important;
}

.tv-section.dark ul.products li.product .desc .price ins {
  color: var(--tv-gold) !important;
}

/* --- "Xem tất cả" link --- */
.tv-section-header {
  position: relative;
}

.tv-view-all {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tv-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}

.tv-view-all:hover {
  color: var(--tv-wine);
}

.tv-view-all svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* --- Section spacing compact --- */
.tv-section {
  padding: 48px 0 56px;
}

.tv-section .tv-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.tv-section-header {
  text-align: center;
  margin-bottom: 32px;
}

/* --- Fix BeBuilder wrapper margins --- */
.mcb-column-inner.mfn-module-wrapper {}

/* ── 13. CUSTOM FOOTER ───────────────────────────────────────── */
.tv-footer {
  background: var(--tv-dark);
  padding: 56px 0 24px;
  font-family: var(--tv-font-body);
}

.tv-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.tv-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.tv-footer-logo-name {
  font-family: var(--tv-font-serif);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.tv-footer-logo-sub {
  color: var(--tv-gold);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
}

.tv-footer-desc {
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
  line-height: 1.7;
  margin: 16px 0 20px;
}

.tv-footer-social {
  display: flex;
  gap: 10px;
}

.tv-footer-social a {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .5);
  transition: all .2s;
}

.tv-footer-social a:hover {
  border-color: var(--tv-gold);
  color: var(--tv-gold);
}

.tv-footer-col h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 16px;
}

.tv-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tv-footer-col ul li {
  margin-bottom: 10px;
}

.tv-footer-col ul li a {
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
  text-decoration: none;
  transition: color .2s;
}

.tv-footer-col ul li a:hover {
  color: var(--tv-gold);
}

.tv-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
}

.tv-footer-contact li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.tv-footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.tv-footer-bottom p {
  color: rgba(255, 255, 255, .3);
  font-size: 11px;
  margin: 0;
}

.tv-footer-payments {
  display: flex;
  gap: 8px;
}

.tv-footer-payments span {
  border: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .4);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tv-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tv-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tv-dual-banner {
    grid-template-columns: 1fr;
  }

  .tv-reviews {
    grid-template-columns: 1fr;
  }

  .tv-review-cards {
    grid-template-columns: 1fr 1fr;
  }

  .tv-about-section .tv-about-grid {
    grid-template-columns: 1fr;
  }

  .tv-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tv-section ul.products,
  .mcb-section .desc ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .tv-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tv-hero {
    min-height: 420px;
  }

  .tv-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tv-review-cards {
    grid-template-columns: 1fr;
  }

  .tv-blog-grid {
    grid-template-columns: 1fr;
  }

  .tv-promo {
    flex-direction: column;
    text-align: center;
  }

  .tv-promo-btns {
    justify-content: center;
  }

  .tv-reviews-summary {
    text-align: center;
  }

  .tv-rating-bars {
    margin-left: auto;
    margin-right: auto;
  }

  .tv-view-all {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 8px;
  }

  .tv-section ul.products,
  .mcb-section .desc ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .tv-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tv-footer-social {
    justify-content: center;
  }

  .tv-footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .tv-footer-contact li {
    justify-content: center;
  }
}

/* ── Elementor Posts Widget — styled to match tv-blog-card ──────────────── */
.tv-blog-section .elementor-posts-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

.tv-blog-section .elementor-post {
  background: #fff;
  border: 1px solid rgba(26, 10, 6, .08);
  overflow: hidden;
  transition: box-shadow .3s;
  text-decoration: none;
  display: block;
}

.tv-blog-section .elementor-post:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.tv-blog-section .elementor-post__thumbnail__link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.tv-blog-section .elementor-post__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.tv-blog-section .elementor-post:hover .elementor-post__thumbnail img {
  transform: scale(1.05);
}

.tv-blog-section .elementor-post__text {
  padding: 20px;
}

.tv-blog-section .elementor-post__meta-data {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tv-blog-section .elementor-post-date {
  color: var(--tv-muted);
  font-size: 11px;
}

.tv-blog-section .elementor-post__terms-list a {
  background: var(--tv-beige);
  color: var(--tv-wine);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 8px;
  text-decoration: none;
}

.tv-blog-section .elementor-post__title a {
  font-family: var(--tv-font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--tv-dark);
  text-decoration: none;
}

.tv-blog-section .elementor-post__excerpt p {
  color: var(--tv-muted);
  font-size: 13px;
  margin: 8px 0 0;
}

.tv-blog-section .elementor-post__read-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--tv-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .tv-blog-section .elementor-posts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .tv-blog-section .elementor-posts-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Elementor Testimonial Widget override ──────────────────────────────── */
.home .elementor-widget-testimonial .elementor-testimonial-wrapper {
  background: #fff;
  border: 1px solid rgba(26, 10, 6, .08);
  padding: 20px;
}

.home .elementor-widget-testimonial .elementor-testimonial-content {
  font-style: italic;
  font-size: 14px;
  color: #3A2018;
  line-height: 1.6;
}

.home .elementor-widget-testimonial .elementor-testimonial-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--tv-dark);
}

.home .elementor-widget-testimonial .elementor-testimonial-job {
  font-size: 12px;
  color: var(--tv-muted);
}

/* ── Elementor Progress Bar override ───────────────────────────────────── */
.home .elementor-widget-progress .elementor-progress-wrapper {
  background: var(--tv-beige);
  border-radius: 99px;
  height: 6px;
}

.home .elementor-widget-progress .elementor-progress-bar {
  border-radius: 99px;
}

.home .elementor-widget-progress .elementor-title {
  font-size: 12px;
  color: var(--tv-muted);
}

/* ── Newsletter box styling (S10 About section) ─────────────────────────── */
.home .tv-newsletter-title {
  font-family: var(--tv-font-serif);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.home .tv-newsletter-sub {
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
  margin: 0 0 20px;
}

/* ── Homepage header: normalize icon cluster to match other pages ─────────── */
body.home #Top_bar .top_bar_right {
  padding: 0 20px !important;
  width: auto !important;
  flex-shrink: 0 !important;
}

body.home #Top_bar .top_bar_right .top_bar_right_wrapper {
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
}

body.home #Top_bar .top_bar_right .top-bar-right-icon {
  margin: 0 6px !important;
}

/* Mobile */
@media only screen and (max-width: 767px) {
  body.home #Top_bar .top_bar_right {
    width: 100% !important;
    padding: 5px 16px !important;
  }

  body.home #Top_bar .top_bar_right .top_bar_right_wrapper {
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
  }
}

/* CF7 form inside dark section */
.home .wpcf7-form input[type="text"],
.home .wpcf7-form input[type="email"] {
  width: 100%;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .20);
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
  font-family: var(--tv-font-body);
}

.home .wpcf7-form input:focus {
  border-color: var(--tv-gold);
}

.home .wpcf7-form input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.home .wpcf7-form input[type="submit"] {
  width: 100%;
  background: var(--tv-gold);
  color: var(--tv-dark);
  padding: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}