/* NÚT XEM CẤU HÌNH - BANNER */
.du-an-tieu-bieu {
    background: #f00014 !important;
    color: #fff !important;
    min-height: 48px !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 5px !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 48px !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;

    box-shadow: 0 10px 22px rgba(240, 0, 20, .35) !important;
}
/* NÚT XEM CẤU HÌNH - BANNER */
.xem-cau-hinh {
    background: #f00014 !important;
    color: #fff !important;
    min-height: 48px !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 5px !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 48px !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;

    box-shadow: 0 10px 22px rgba(240, 0, 20, .35) !important;
}

/* MŨI TÊN */
.xem-cau-hinh::after {
    content: "→";
    display: inline-block;
    margin-left: 14px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    vertical-align: -1px;
}

/* HOVER */
.xem-cau-hinh:hover {
    background: #ff1025 !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(240, 0, 20, .5) !important;
    transform: translateY(-1px);
}
/* ==================================================
   FONT MẶC ĐỊNH TOÀN WEBSITE
   ================================================== */

html,
body,
button,
input,
select,
textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", "Noto Sans", Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
p, span, a, div {
    font-family: inherit;
}
/*
Theme Name: TVAUDIO Child Theme
Theme URI: https://thanhvuaudio.com
Description: Flatsome Child Theme cho TVAUDIO - Chuẩn âm thanh karaoke & hội trường. Tối ưu PHP 8.0 - 8.3+ & Flatsome 3.20.x.
Author: TVAUDIO Team
Author URI: https://thanhvuaudio.com
Template: flatsome
Version: 1.3.4
Text Domain: tvaudio-child
*/

/* ==========================================================================
   TVAUDIO - FLATSOME CHILD THEME CUSTOM CSS v1.3.0 (RC3)
   Tone màu chủ đạo: Đỏ (#D32F2F / #B71C1C), Trắng (#FFF), Đen (#111)
   Cập nhật theo chỉ đạo Lão Nô:
   - Badge % giảm giá đúng class .tvaudio-discount-badge.
   - Neo badge trực tiếp vào .box-image.
   - Giữ nguyên MUA NGAY và Sticky Zalo/Hotline RC1 (bỏ nút TVA).
   - Điều chỉnh cỡ chữ to rõ (Header, Menu danh mục, Tin tức).
   - Tương thích dependency Flatsome chuẩn.
   ========================================================================== */

/* 1. TOP BAR & FOOTER MÀU ĐỎ THƯƠNG HIỆU */
#top-bar {
  background-color: #b71c1c !important;
  color: #ffffff !important;
  border-bottom: 1px solid #8e0000;
}
#top-bar a {
  color: #ffffff !important;
}

#footer, .footer-wrapper {
  background-color: #b71c1c !important;
  color: #ffffff !important;
}
#footer a, .footer-wrapper a {
  color: #f5f5f5 !important;
}
#footer a:hover, .footer-wrapper a:hover {
  color: #ffd700 !important;
  text-decoration: underline;
}

/* 2. THẺ SẢN PHẨM WOOCOMMERCE HIỆN ĐẠI (BO GÓC + ĐỔ BÓNG NỔI BẬT) */
.product-small.box {
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid #eaeaea !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.product-small.box:hover {
  transform: translateY(-6px) !important;
  border-color: #d32f2f !important;
  box-shadow: 0 14px 28px rgba(211, 47, 47, 0.16) !important;
}

/* 3. RC3: BADGE GIẢM GIÁ ĐÚNG CLASS .tvaudio-discount-badge */

/* Khung ảnh làm mốc toạ độ duy nhất cho badge */
.box-image {
  position: relative !important;
}

/* Ẩn badge mặc định của Flatsome để tránh trùng lặp */
.badge-circle,
.badge-container,
.out-of-stock-label + .badge-container {
  display: none !important;
}

/* Neo badge .tvaudio-discount-badge vào góc trên bên trái của ảnh (.box-image) */
.box-image .tvaudio-discount-badge,
.tvaudio-discount-badge {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 20 !important;
  background-color: #d32f2f !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  box-shadow: 0 2px 6px rgba(211, 47, 47, 0.45) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  pointer-events: none !important;
  display: inline-block !important;
  border: none !important;
}

/* 4. GIÁ SẢN PHẨM */
.price, .product-title + .price, .woocommerce-Price-amount {
  color: #d32f2f !important;
  font-weight: 800 !important;
  font-size: 16px !important;
}
.price del .woocommerce-Price-amount {
  color: #999999 !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  margin-right: 6px !important;
}

/* 5. NÚT THÊM VÀO GIỎ & NÚT MUA HÀNG */
.add-to-cart-button a,
.single_add_to_cart_button,
.button.checkout {
  background-color: #d32f2f !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border: none !important;
  transition: all 0.25s ease !important;
}

.add-to-cart-button a:hover,
.single_add_to_cart_button:hover,
.button.checkout:hover {
  background-color: #b71c1c !important;
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.35) !important;
}

/* 6. TAB LỌC SẢN PHẨM FLATSOME CHUYỂN ACTIVE SANG ĐỎ */
.tabgroup ul.nav-tabs li.active a {
  background-color: #d32f2f !important;
  color: #ffffff !important;
  border-color: #d32f2f !important;
  border-radius: 6px !important;
}

/* 7. NÚT GỌI HOTLINE RUNG LẮC TỎA SÓNG (RADAR PULSE) GÓC PHẢI */
.tva-floating-call,
.tva-sticky-hotline {
  position: fixed;
  right: 20px;
  bottom: 85px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  background-color: #d32f2f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: tva-call-pulse 1.8s infinite;
}

@keyframes tva-call-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 18px rgba(211, 47, 47, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
  }
}

/* 8. ĐIỀU CHỈNH CỠ CHỮ TO RÕ: HEADER, MENU DANH MỤC SẢN PHẨM & TIN TỨC */

/* 8.1 Header & Top Bar: Chữ to rõ, dễ đọc */
#top-bar, #top-bar .nav > li > a, #top-bar .top-bar-nav {
  font-size: 13px !important;
  font-weight: 500 !important;
}
.header-nav > li > a,
.header-bottom-nav > li > a {
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
}
.header-search-form input[type="search"],
.header-search input {
  font-size: 14.5px !important;
}

/* 8.2 Menu danh mục sản phẩm (Vertical Menu & Dropdown) */
.header-vertical-menu .menu-title,
.vertical-menu-title {
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
}
.header-vertical-menu ul.nav-dropdown > li > a,
.vertical-menu > li > a,
.widget_product_categories ul li a {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  padding: 10px 14px !important;
}
.header-vertical-menu ul.nav-dropdown > li > a .count,
.widget_product_categories ul li a .count {
  font-size: 12px !important;
}

/* 8.3 Tin tức & Bài viết (Blog posts / Archive) */
.post-item .box-text .entry-title,
.blog-archive .entry-title,
.entry-title a {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}
.post-item .from_the_blog_excerpt,
.post-item .entry-summary,
.blog-archive .entry-summary {
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: #444444 !important;
}
.post-item .post-meta,
.entry-meta,
.badge-post-date {
  font-size: 12px !important;
  color: #666666 !important;
}
.single-post .entry-content p {
  font-size: 15.5px !important;
  line-height: 1.7 !important;
}

/* Ép mép trái của Text Box x0 dóng chuẩn theo container 1440px */
.banner-layer.x0 {
  left: calc((100% - 1400px) / 2) !important;
}

@media (max-width: 1440px) {
  .banner-layer.x0 {
    left: 15px !important;
  }
}