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

/*************** ADD CUSTOM CSS HERE.   ***************/
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-color: #044794;
    --heading-color: #00296b;
    --text-color: #333333;
    --accent-color: #f58220;
    --border-color: #e1e3e4;
    --white: #ffffff;
}

body {
    font-family: "SVN-Gilroy", sans-serif;
    color: var(--text-color); /* Đã đổi sang xám #333333 */
}

/* Áp dụng xanh đậm #00296b cho toàn bộ tiêu đề */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color); 
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-color); /* Đã đổi sang xám #333333 */
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

.col-inner:last-child {
    padding-bottom: 0;
}

/* Link mặc định là xám, khi di chuột (hover) sẽ sáng lên thành màu chủ đạo */
a {
    transition: all .25s ease;
    color: var(--text-color);
}
a:hover {
    color: var(--primary-color);
}

.html_topbar_left h3 {
    color: #fff;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}

.header-bottom {
    border-bottom: 1px solid #eaeaea;
}

a.hotline-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

a.hotline-header span {
    font-size: 14px;
    line-height: 1.4;
    color: var(--heading-color); /* Dùng màu xanh đậm cho hotline */
}

.header-search-form-wrapper .searchform-wrapper {
    margin-left: 20%;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #80808012;
}

.header-search-form-wrapper .searchform-wrapper input {
    box-shadow: none;
    height: 42px;
    border: 0;
    color: var(--text-color);
}

.header-search-form-wrapper .searchform-wrapper .button {
    height: 42px;
    padding: 2px 14px;
    background-color: var(--primary-color); /* Nút tìm kiếm màu xanh chủ đạo */
}

.flickity-page-dots .dot {
    background: #fff !important;
    opacity: 1;
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 4px rgba(0, 41, 107, 0.1);
    transition: all .25s ease;
}

.flickity-page-dots .dot.is-selected {
    background-color: var(--primary-color) !important;
}

.absolute-footer, .wpcf7-spinner {
    display: none;
}

.ss-pd {
    padding-top: 40px !important;
    padding-bottom: 10px !important;
}

.frame-title h2 {
    color: var(--heading-color); /* Xanh đậm */
    font-size: 24px;
    font-weight: 800;
}

.frame-title p {
    color: var(--text-color); /* Xám */
    font-size: 15px;
}

.ss-footer-contact h3 {
    color: var(--heading-color); /* Xanh đậm */
    font-size: 20px;
    font-weight: 700;
}

.ss-footer-contact ul li, .ss-footer-contact ul li a {
    color: var(--text-color); /* Xám */
    font-size: 14px;
}

.ss-footer-contact .ul-link ul li a:hover {
    color: var(--primary-color);
}

.ss-footer-contact .ul-link ul li:before {
    background-color: var(--primary-color);
}

.widget .widget-title {
    color: var(--heading-color); /* Chữ xanh đậm */
    border-bottom: 2px solid var(--primary-color); /* Đường gạch chân xanh chủ đạo */
    font-weight: 700;
}

article.post {
    border: 1px solid var(--border-color);
}

.product-small .product-title a {
    color: var(--heading-color); /* Tên sản phẩm xanh đậm */
    font-weight: 600;
}
.product-small .product-title a:hover {
    color: var(--primary-color); /* Di chuột vào tên SP ra màu xanh chủ đạo */
}

.price-wrapper .price, .price-wrapper .price span {
    color: var(--accent-color); /* Đổi sang màu cam #f58220 cho đồng bộ nhận diện */
}

.btn-call-order {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
}

.btn-call-order:hover {
    background: #fff;
    color: var(--primary-color);
}

.form-footer-edit .wpcf7-submit {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.ss-about .icon-box-text h3 {
    color: var(--heading-color); /* Tiêu đề Icon box xanh đậm */
}

.product-short-description {
    color: var(--text-color); /* Xám */
    border-left: 3px solid var(--primary-color); /* Viền nhấn xanh chủ đạo */
}
.products .product-small .add-to-cart-button,
.product-small .pl-home-woo-buttons {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 15px;
    height: auto !important;
}

.pl-btn-quote,
.pl-btn-detail {
    display: block;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 0.05em;
    border-radius: 4px;
    font-family: var(--kt-font);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pl-btn-quote {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}

.pl-btn-quote:hover {
    background-color: var(--heading-color) !important;
    border-color: var(--heading-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 41, 107, 0.2);
}

.pl-btn-detail {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    margin-top: 8px !important;
}

.pl-btn-detail:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

.pl-quote-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: var(--kt-font);
}

.pl-quote-modal.is-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.pl-quote-modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 41, 107, 0.85);
}

.pl-quote-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 550px;
    background: #ffffff !important;
    padding: 30px 25px;
    border-top: 6px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.pl-quote-modal__dialog h3 {
    color: var(--heading-color) !important;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-right: 30px;
}

.pl-quote-modal__product {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(4, 71, 148, 0.05);
    border-left: 4px solid var(--accent-color);
}

.pl-quote-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: 0;
    font-size: 32px;
    line-height: 1;
    color: #999999;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.pl-quote-modal__close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}