/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.16.0
*/

/*************** ADD CUSTOM CSS HERE ***************/

/* ============================================================
   FONT
   ============================================================ */

@font-face {
    font-family: 'Roboto';
    src: url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   GLOBAL FONT
   ============================================================ */

body {
    font-family: 'Roboto', sans-serif !important;
}

body div#wpadminbar a,
body div#wpadminbar p,
body div#wpadminbar span,
body div#wpadminbar strong{
    font-family: 'dashicons' !important;
}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */

.product-short-description {
    margin-top: 20px;
    font-size: 14px;
    color: #333;
}

.product-short-description h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-title,
.product-description,
.offer-details,
.product-price {
    font-family: 'Roboto', sans-serif;
}

.product-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.original-price {
    font-size: 18px;
    color: #888;
    text-decoration: line-through;
    margin-right: 10px;
}

.discounted-price {
    font-size: 22px;
    font-weight: bold;
    color: #ed1b24;
}

.product-description p {
    font-size: 16px;
    margin: 8px 0;
}

.offer-details {
    margin-top: 30px;
}

.offer-details h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.offer-details ul {
    list-style-type: disc;
    margin-left: 20px;
}

.offer-details li {
    font-size: 16px;
    margin-bottom: 8px;
}

.product_meta {
    display: none !important;
}

/* ============================================================
   PRICE / LOOP
   ============================================================ */

span.amount {
    color: #ed1b24;
    font-weight: bold;
    text-transform: uppercase;
}

/* ============================================================
   UI / BOX / ROW
   ============================================================ */

.footer_home.ck .icon-box-text.last-reset p {
    margin-bottom: 0px !important;
}

.akhoa-box-shadow {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px !important;
    border-radius: 20px;
}

.row-dashed .col:before,
.row-solid .col:before {
    border-left: none !important;
    content: " ";
    height: 100%;
    left: -1px;
    position: absolute;
    top: 0;
}

.row-dashed .col:after,
.row-solid .col:after {
    border-bottom: none !important;
    bottom: -1px;
    content: " ";
    height: 0;
    left: 0;
    position: absolute;
    width: 100%;
}

a#top-link {
    background-color: var(--fs-color-primary);
    border-color: var(--fs-color-primary);
    color: #fff !important;
}

/* ============================================================
   PAGE WIDTH
   ============================================================ */

body.page .entry-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

body.single-product .entry-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 100% !important;
}

/* ============================================================
   TABLE (GIỮ NGUYÊN CODE GỐC)
   ============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table th,
table td {
    padding: 8px 12px;
    border: 1px solid #e6e6e6;
    vertical-align: middle;
}

table thead tr,
table tr:first-child {
    background-color: #ED1C24 !important;
    color: #ffffff !important;
}

table thead th,
table tr:first-child th,
table tr:first-child td {
    color: #ffffff !important;
    font-weight: 600;
}

table tr:not(:first-child):nth-child(even) {
    background-color: #f9f9f9;
}

.table-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

body .entry-content table thead tr,
body .entry-content table tr:first-child {
    background-color: #ED1C24 !important;
}

body .entry-content table thead th,
body .entry-content table tr:first-child th,
body .entry-content table tr:first-child td {
    color: #ffffff !important;
}

/* ============================================================
   FIX: KHÔNG ĐỎ BẢNG TRONG TRANG SẢN PHẨM
   ============================================================ */

body.single-product table thead tr,
body.single-product table tr:first-child {
    background-color: transparent !important;
    color: inherit !important;
}

body.single-product table th,
body.single-product table td {
    background-color: transparent !important;
    color: inherit !important;
    border-color: inherit !important;
}

/* ============================================================
   STICKY NAV
   ============================================================ */

#sticky-nav .nav-link {
    font-weight: bold;
    transition: color 0.3s ease;
}

#sticky-nav .nav-link:hover {
    color: #000;
}

/* ============================================================
   CATALOGUE
   ============================================================ */

.catalogue-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.catalogue-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    font-size: 2em;
}

.catalogue-button {
    display: inline-block;
    background-color: #C8102E;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2em;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.catalogue-button:hover {
    background-color: #A50F1E;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.catalogue-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalogue-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #C8102E;
}

.catalogue-list li a {
    color: #C8102E;
    text-decoration: none;
}

.catalogue-list li a:hover {
    text-decoration: underline;
}

.catalogue-list li i {
    margin-right: 10px;
}

/* ===== SIDEBAR BÀI VIẾT ===== */

/* Cột nội dung */
.single-post .large-9{
  flex:0 0 calc(100% - 320px);
  max-width:calc(100% - 320px);
}

/* Cột sidebar */
.single-post .large-3{
  flex:0 0 320px;
  max-width:320px;
}

/* Box sidebar */
.single-post-sidebar .sidebar-box{
  background:#fff;
  padding:18px;
  border-radius:12px;
  box-shadow:0 12px 28px rgba(0,0,0,.12);
  margin-bottom:28px;
}

/* Title */
.single-post-sidebar .sidebar-title{
  font-size:16px;
  font-weight:700;
  text-transform:uppercase;
  margin-bottom:18px;
  padding-bottom:10px;
  position:relative;
}

/* Gạch đỏ Kosmos */
.single-post-sidebar .sidebar-title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:48px;
  height:3px;
  background:#d60000;
  border-radius:2px;
}

/* Item */
.single-post-sidebar .sidebar-post{
  display:flex;
  gap:12px;
  padding-bottom:16px;
  margin-bottom:16px;
  border-bottom:1px solid #eee;
  text-decoration:none;
}

.single-post-sidebar .sidebar-post:last-child{
  border-bottom:none;
  margin-bottom:0;
  padding-bottom:0;
}

/* Thumb */
.single-post-sidebar .sidebar-thumb{
  width:80px;
  height:80px;
  flex-shrink:0;
  overflow:hidden;
  border-radius:6px;
}

.single-post-sidebar .sidebar-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Text */
.single-post-sidebar .sidebar-info h4{
  font-size:14.5px;
  line-height:1.4;
  margin:0 0 6px;
  color:#000;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.single-post-sidebar .sidebar-info p{
  font-size:13px;
  line-height:1.45;
  margin:0;
  color:#666;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Hover */
.single-post-sidebar .sidebar-post:hover h4{
  color:#d60000;
}

/* ===== MOBILE ===== */
@media (max-width:849px){
  .single-post .large-9{
    order:1;
    flex:0 0 100%;
    max-width:100%;
  }
  .single-post .large-3{
    order:2;
    flex:0 0 100%;
    max-width:100%;
    margin-top:24px;
  }
}

/* BANNER */
.single-post-sidebar .sidebar-banner {
    padding: 0;
    overflow: hidden;
}

.single-post-sidebar .sidebar-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* ============================================================
   FAQ / ACCORDION
   ============================================================ */

.faq-chi-hi-bao-gia .accordion-item,
.faq-do-ben-bao-hanh .accordion-item,
.accordion .accordion-item {
    border: 1px solid #eee;
    border-left: 4px solid #ed1c24;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    margin-bottom: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.accordion-item .accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 17px;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    position: relative;
}

.accordion-title .icon-angle-down,
.accordion-title::before {
    display: none !important;
}

.accordion-title::after {
    content: '\276F';
    font-size: 18px;
    color: #ed1c24;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-title::after {
    transform: rotate(90deg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 849px) {
    .single-post .large-9,
    .single-post .large-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .single-post .large-3 {
        margin-top: 24px;
    }
}

@media (max-width: 768px) {
    .catalogue-button {
        padding: 10px 20px;
        font-size: 1em;
    }
    .catalogue-list li {
        font-size: 1em;
    }
    .accordion-item .accordion-title {
        font-size: 16px;
        padding: 14px 16px;
    }
}

@media (max-width: 500px) {
    .row.bn .col,
    body .section.seclioen.show-for-medium {
        padding-bottom: 0;
    }
}
/* ============================================================
   FIX TITLE SẢN PHẨM – KHÔNG BỊ TO & ĐẬM QUÁ (FLATSOME)
   ============================================================ */

/* Box title sản phẩm */
.woocommerce-loop-product__title,
.name.product-title {
    font-size: 14.5px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    margin-bottom: 6px;
}

/* Link bên trong title */
.woocommerce-loop-product__title a,
.name.product-title a {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: #000 !important;
    text-transform: none !important;
}

/* Hover nhẹ – đúng chất nội thất */
.woocommerce-loop-product__title a:hover,
.name.product-title a:hover {
    color: #ed1b24 !important;
}

/* Mobile – chữ gọn hơn */
@media (max-width: 768px) {
    .woocommerce-loop-product__title,
    .name.product-title {
        font-size: 14px !important;
    }
}
/* ============================================================
   FIX H2 TRONG NỘI DUNG – CHUẨN FLATSOME + SEO
   ============================================================ */

.entry-content h2 {
    font-size: 22px;
    font-weight: 600;        /* Giảm đậm: chuẩn đọc, không gắt */
    line-height: 1.5;        /* Tránh dính dòng */
    margin: 28px 0 16px;     /* Nhịp đọc tốt cho bài dài */
}

/* Mobile */
@media (max-width: 768px) {
    .entry-content h2 {
        font-size: 20px;
        line-height: 1.45;
    }
}
