/*
Theme Name: TPG Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
@font-face {
    font-family: "block-icon";
    font-display: swap;
    src: url("/wp-content/themes/tpg-en/fonts/iconfont.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

/************************* HEETS ***************/
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: #1d1917;
    background: #fff;
    line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 {
    color: #1d1917;
    margin-bottom: .5em;
    margin-top: 0;
    text-rendering: optimizeSpeed;
    width: 100%;
}
.home h1 {
    font-size: clamp(38px, 6.3vw, 66px);
    line-height: 1;
    margin: 22px 0;
}
h2 {
    font-size: clamp(24px, 4vw, 30px);
    line-height: 1.1;
    margin: 10px 0 16px;
}

h3 {
    font-size: clamp(20px, 3.2vw, 25px);
    line-height: 1.15;
    margin: 10px 0 14px;
}

h4 {
    font-size: clamp(18px, 2.6vw, 22px);
    line-height: 1.2;
    margin: 8px 0 12px;
}

h5 {
    font-size: clamp(16px, 2.2vw, 18px);
    line-height: 1.25;
    margin: 8px 0 10px;
}
p {
	font-weight: normal;
    font-style: normal;
    font-size: 16px;
    line-height: 1.5;
}
/*************** ADD CUSTOM CSS HERE.   ***************/
.kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.kicker:before {
    content: "";
    width: 32px;
    height: 1px;
    background: currentColor;
}
/* Css đường kẻ dưới tiêu đề trang chủ */
.wt-separator-outer {
    overflow: hidden
}
.wt-separator.style-square {
    width: 10px;
    height: 10px;
    background-color: #fff0;
    border: 2px solid #1a2340;
    display: inline-block;
    position: relative
}
.wt-separator.style-square .separator-left,.wt-separator.style-square .separator-right {
    height: 3px
}
.wt-separator .separator-left,.wt-separator .separator-right {
    position: absolute;
    top: 50%;
    width: 100px;
    height: 2px;
    margin-top: -1px
}
.wt-separator .separator-left {
    left: -110px
}
.wt-separator .separator-right {
    right: -110px
}
.bg-primary {
    background-color: #1a2340;
}
/***************** CSS Home ***************************/
.home h2, .manufacturing h2 {
    font-size: clamp(24px, 4vw, 45px);
    line-height: 1.1;
    margin: 10px 0 16px;
}
.home.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 15, 14, .88) 0%, rgba(15, 15, 14, .68) 43%, rgba(15, 15, 14, .15) 78%), linear-gradient(0deg, rgba(0, 0, 0, .42), transparent 50%);
}
.home .hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 78px;
	max-width: 850px;
}
.home .trust {
    padding: 27px 25px;
    border-right: 1px solid #deded9;
}
.home .trust b {
    display: block;
    font-size: 14px;
}
.home .trust span {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.5;
    color: #777;
}
.home .about-img {
    position: relative;
}
.home .about-img img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    filter: saturate(.72);
}
.home .badge {
    position: absolute;
    left: -28px;
    bottom: 28px;
    background: #222;
    color: #fff;
    padding: 22px 25px;
    width: 190px;
}
.home .badge strong {
    font-size: 32px;
}
.home .badge span {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 1px;
}
.home .ticks {
    display: grid;
    gap: 14px;
    margin: 28px 0;
}
.home .tick {
    display: flex;
    gap: 12px;
    font-weight: 650;
    font-size: 14px;
}
.home .tick i {
    font-style: normal;
    width: 22px;
    height: 22px;
    border: 1px solid #aaa;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
}
.home .arrow {
    display: inline-block;
    margin-top: 18px !important;
    font-size: 12px;
    font-weight: 800;
}
.home .process {
    margin-top: 42px;
    border-top: 1px solid #555;
}
.home .process-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #444;
}
.home .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.home .factory {
    display: grid;
    grid-template-columns: 1.fr;
    gap: 18px;
}
.home .factory-main {
    position: relative;
    min-height: 560px;
    overflow: hidden;
}
.home .factory-main img, .home .factory-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.7);
}
.home .factory-main .overlay {
    position: sticky;
    inset: auto 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    padding: 30px 35px 30px;
    color: white;
    height: 30%;
}
.home .factory-side {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 18px;
}
.home .cap-panel {
    background: #292927;
    color: #fff;
    padding: 20px;
}
.home .capgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #555;
}
.home .capgrid div {
    background: #292927;
    padding: 18px;
}
.home .capgrid b {
    display: block;
    font-size: 14px;
}
.home .capgrid span {
    font-size: 11px;
    color: #999;
}
.about-image img{
	border: 1px solid #d0d3d4;
	border-radius: 10px;
}
/***************** CSS Manufacturing ****************/
.manufacturing-tab ul {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
	text-align: center;
}
.manufacturing-tab ul li {
    border: 1px solid #0b5394;
    background: #fff;
    padding: 0 5px;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 30px;
}
.manufacturing-tab ul li:hover{
	background: #1b1d1f;
    border-color: #1b1d1f;
}
.manufacturing-tab ul li a:hover {
    color: #fff;
}
.manufacturing-tab ul li a {
    color: #333333;
	display: block;
}
.manufacturing .stageTitle {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}
.manufacturing .num {
    font-size: 12px;
    font-weight: 900;
    background: #1b1d1f;
    color: #fff;
    padding: 8px 10px;
}
.manufacturing .stageTitle h3 {
    font-size: 25px;
    margin: 0;
    letter-spacing: -1px;
}
.manufacturing .proofItem {
    padding: 15px 0;
    border-bottom: 1px solid #444;
}
.manufacturing .wpcf7 {
    padding: 15px;
    border: 1px solid #444;
    border-radius: 10px;
	background: #fff;
}
.formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
}
.formGrid .field.full {
  grid-column: 1 / -1;
}

/* Label */
.formGrid label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #000;
}

/* Input, select, textarea */
.formGrid .wpcf7-form-control-wrap {
  display: block;
}
.formGrid input[type="text"],
.formGrid select,
.formGrid textarea {
	width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: none;
}
.formGrid textarea {
  height: 100px;
  resize: vertical;
}

/* Nút submit */
.formGrid .btn.dark,
.formGrid input[type="submit"] {
	background: #1c1d1f;
    border: 0;
    border-radius: 10px;
}
.manufacturing .map.reveal.visible {
    min-height: 420px;
    position: relative;
    background: radial-gradient(circle at 72% 52%, rgba(185, 108, 59, .16), transparent 13%), url(/wp-content/themes/tpg-child/img/map-tpg.svg) center / contain no-repeat;
}
.manufacturing .market-card {
    position: absolute;
    right: 0;
    bottom: 15px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .1);
    width: 260px;
}
.manufacturing .origin {
    position: absolute;
    left: 71%;
    top: 48%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: #b96c3b;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 7px rgba(185, 108, 59, .2);
}
.manufacturing .origin-label {
    position: absolute;
    left: calc(72% + 16px);
    top: calc(48% - 8px);
    font-size: .72rem;
    font-weight: 900;
}
.manufacturing .markets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: .8rem;
    color: #65686c;
}
.manufacturing .tab-panels .equalize-box {
    margin-bottom: 50px;
}
/*************** Css Product - home *****************/
a.view-product-wrapper {
    display: flex;
}
.view-product-text {
    flex: 1;
    background: #1a2340;
    color: #ffffff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
}
.view-product-arrow {
    background: #d4af37;
    color: #ffffff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    flex-shrink: 0;
}

/**************** CSS Trang Danh Mục Sản Phẩm *************/
aside.widget {
    background: #fcfcfa;
    border: 1px solid #d4d6cc;
    padding: 18px 18px 20px;
    margin-bottom: 14px;
}
aside.widget ul li:before {
    content: "\f105";
    margin-right: 15px;
}
.product-small.box {
    border: 1px solid #d4d6cc;
    box-shadow: 0 1px 1px rgb(0 0 0 / .04);
}
.box-text-products {
    background: #fcfcfa;
	border-top: 1px solid #d4d6cc;
}
.product-cat {
    position: absolute;
    bottom: 100%;
    left: 0px;
    font-size: 8px;
    font-weight: 600;
    background: #1a1d1b;
    color: #ffffff;
    padding: 4px 8px;
}
.title-wrapper .product-title {
    font-weight: 700;
    font-size: 15px;
}
.tp-product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
	font-size: 13px;
}
.tp-product-spec {
    border: 1px solid #d4d6cc;
}
/********* Chỉnh trang sản phẩm con *************/
.product-gallery-slider {
    border: 1px solid #d0d3d4;
}
/* Căn ảnh sản phẩm ở giữa khung, 
 * chỉnh khung vuông*/

.woocommerce-product-gallery .flickity-viewport {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  background: #fff;
}
.woocommerce-product-gallery .flickity-slider > .woocommerce-product-gallery__image {
  height: 100% !important;
  background: #fff;
}
.woocommerce-product-gallery .flickity-slider > .woocommerce-product-gallery__image > a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.woocommerce-product-gallery .flickity-slider > .woocommerce-product-gallery__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
/* Xong css căn khung*/
ul.tabs.wc-tabs {
    border-bottom: 1px solid #0b5394;
}
.product-whatapp a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 20px;
    background: #484ba0;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    transition: background 0.2s, transform 0.1s;
}
.product-whatapp a svg, .contact-box svg {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}
.contact-box img {
	width: 35px;
    height: auto;
    filter: brightness(0) invert(1);
}
.contact-boxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-boxes .contact-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 20px;
    background: #484ba0;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    transition: background 0.2s, transform 0.1s;
}
.nvhdev_form {
    margin-bottom: 0;
    background: #f2f2f2;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px dashed #484ba0;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .1), 0 2px 6px 2px rgba(60, 64, 67, .15);
}
.nvhdev_group_input {
    display: flex;
    gap: 10px;
}
.nvhdev_form input {
    font-size: 13px;
    box-shadow: unset;
    border-radius: 6px;
}
.nvhdev_form span.wpcf7-spinner {
    position: absolute;
    display: none;
}
.nvhdev_group_input span {
    display: contents;
}
/* Css Bảng Thông Số Kỹ Thuật Sản Phẩm */
.ux-product th {
    text-align: center;
    color: #ffffff;
    background: #1a2340;
    border-bottom: none;
    font-size: 16px;
}

.ux-product td {
    font-size: 15px;
    color: #272c42;
}

.ux-product td:first-child,
.ux-product th:first-child {
    padding: 8px 16px;
    vertical-align: middle;
}

.tab-panels p {
    margin: 12px 0;
}

.ux-product tr td:not(:first-child) {
    text-align: center;
}

.ux-product table tr td:first-child {
    border-left: 1px solid #1a2340;
    width: fit-content;
}

.ux-product table tr:first-child td {
    border-top: 1px solid #1a2340;
}

.ux-product table td {
    padding: 8px;
    border-right: 1px solid #1a2340;
    border-bottom: 1px solid #1a2340;
}

/******************** CSS Trang About US *******************/
.tpg-about-hero {
	background-image: linear-gradient(90deg, rgba(12, 20, 31, .91) 0%, rgba(12, 20, 31, .77) 47%, rgba(12, 20, 31, .24) 100%), url(https://tpgcashew.com/wp-content/uploads/2026/10/cashew-home.webp);
    background-size: cover;
    background-position: center;
}
.tpg-about-hero h1 {
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.09;
    letter-spacing: -.035em;
    color: #ffffff;
    max-width: 850px;
}
.tpg-about-hero h1 span {
    color: #d9b977;
}
/*************** Css Buttom ************************/
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 2px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn-primary {
    background: #bf4e1f;
    color: #fff;
}
.btn-dark {
    background: #1b1d1f;
    color: #fff;
}
.btn-outline {
    color: #333333;
    border: 1px solid #202326;
}

/* =========================
   QUOTE POPUP
========================= */

.tp-quote-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .5);
    justify-content: center;
    align-items: center;
}

.tp-quote-popup-overlay.active {
    display: flex;
}
.open-popup{
	display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d4af37;
    font-size: 14px;
    border-radius: 6px;
}
.tp-quote-popup {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    padding: 30px;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
}

.tp-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    padding: 0;
    border: 0;
    background: none;
    color: #333;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}


/* =========================
   CF7 FORM
========================= */
.form-grid, .cf7-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
	gap: 10px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group.full, .cf7-field.cf7-full {
    grid-column: 1 / -1;
}
.form-group label {
    margin-bottom: 7px;
    font-weight: 600;
}
.form-group label span {
    color: #d93025;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.wpcf7-submit {
    margin-top: 20px;
    padding: 13px 28px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}
.wpcf7-spinner {
    display: none;
}
/* =========================
   CF7 LOADING
========================= */

.cf7-loading-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255, 255, 255, .92);
    border-radius: 12px;
}
.wpcf7 form .wpcf7-response-output {
    border: 2px solid #00a0d2;
    color: red;
    text-align: center;
}
.cf7-loading-overlay.active {
    display: flex;
}
.cf7-spinner {
    width: 52px;
    height: 52px;
    border: 5px solid #e0e0e0;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.cf7-progress-wrap {
    width: 220px;
    height: 6px;
    overflow: hidden;
    background: #e0e0e0;
    border-radius: 999px;
}
.cf7-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    border-radius: 999px;
    transition: width .3s ease;
}
.cf7-loading-text {
    font-size: 14px;
    font-weight: 600;
    color: #4f46e5;
}

.cf7-loading-percent {
    font-size: 13px;
    color: #888;
}
.cf7-full.cf7-submit-wrap input {
    margin-top: 20px;
    padding: 5px;
    border: 0;
    border-radius: 6px;
    background: #8b5e3c;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
/* chỉnh footer chung */
.logo-footer img {
    filter: brightness(0) invert(1);
}
/* Button hệ sinh thái footer */
.tp-ecosystem-box{
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    padding: 18px 15px;
    border: #fff solid 1px;
    border-radius: 10px;
    background-color: #f9f9f91a;
    text-transform: capitalize;
}

.tp-ecosystem-title a{
    color:#ffffff;
    font-weight:700;
    text-decoration:none;
}

.tp-ecosystem-title a:hover{
    color:#004b85;
}

.tp-ecosystem-link{
    margin-top:8px;
	display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #0d5bd7;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
}

.tp-ecosystem-link a{
    color:#fff;
    font-weight:600;
    text-decoration:none;
}

.tp-ecosystem-link a:hover{
    text-decoration:underline;
}
/* Keyframe dùng chung cho spinner (cf7-spinner và wpcf7-spinner) */
@keyframes spin {
    to { transform: rotate(360deg); }
}
/* ============================================
   TABLET (min-width: 768px)
   Chỉ viết những gì THAY ĐỔI so với mobile
   ============================================ */
@media (min-width: 768px) {
	.form-grid, .cf7-grid {
    	display: grid;
    	grid-template-columns: repeat(2, 1fr);
    }
    .wpcf7-submit {
        width: 100%;
    }
    .tp-quote-popup {
        padding: 25px 20px;
    }
}
/* ============================================
   DESKTOP NHỎ / LAPTOP (min-width: 1024px)
   ============================================ */
@media (min-width: 1024px) {
.product-cat {
    left: 10px;
    font-size: 11px;
}
.title-wrapper .product-title {
    font-weight: 700;
    font-size: 16.5px;
}
.home .factory {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
}
.home .factory-main .overlay {
    padding: 90px 35px 30px;
}
}
/* ============================================
   DESKTOP LỚN (min-width: 1280px)
   ============================================ */
@media (min-width: 1280px) {
.container-width,.full-width .ubermenu-nav,.container,.row {max-width: 1080px !important;}
/* Css Liên Hệ Main Header **/
.r_header {
    display: flex;
    align-items: center;
}
.hotline_email {
    display: flex;
    align-items: center;
}
.social_search {
    display: flex;
    flex-direction: column;
    justify-content: center;
	margin-right:20px;
	min-width: 380px;
}
.hotline_email a {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e9e9e9;
    padding: 0 20px;
}
.hotline_email label {
    position: relative;
    display: flex;
}
.hotline_email .hotline label:before,
.hotline_email .email label:before {
    font-family: 'FontAwesome';
    font-weight: normal;
    margin: 0 10px 0 0;
    color: #0a54c3;
    line-height: 1;
    font-size: 20px;
}
.hotline_email .hotline label:before {
    content: "\f095";
}
.hotline_email .email label:before {
    content: "\f0e0";
}
.click_search,
.header-button,
i.icon-angle-down {
    display: none;
}
/* Css Bottom Hearder */
.header-bottom-nav > li > a {
    line-height: 16px;
    display: block;
    padding: 16px 18px;
    color: #ffffff;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s;
}
.header-bottom-nav > li.active > a {
    color: #ffff00 !important;
}
/* Chỉnh Content */
.actions-btn {
	display: flex;
	gap: 15px;
	margin-top: 30px;
	flex-wrap: wrap;
}
}
/* ============================================
   MÀN HÌNH RẤT LỚN (min-width: 1536px) — tuỳ chọn
   ============================================ */
@media (min-width: 1536px) {
	.container-width,
    .full-width .ubermenu-nav,
    .container,
    .row {
        max-width: 1350px !important;
    }
}