/*
Theme Name: K-Tech Flatsome Child
Theme URI: 
Description: Flatsome Child Theme for K-Tech (Optimized for Flatsome 3.20.7)
Author: Master WP
Author URI: 
Template: flatsome
Version: 1.0.0
Text Domain: k-tech
*/


/* ==========================================================================
   HEADER CUSTOM
   ========================================================================== */
.header-wrapper.stuck {
    background: #fff;
}

.header .stuck .header-main .header-nav .menu-item a {
    color: var(--fs-color-secondary);
}

.header:not(.transparent) .header-nav-main.nav>li>a {
    color: #0a0a0a;
}

.header .header-main .header-nav>.menu-item a {
    font-weight: 600;
    text-transform: none;

}

.header .header-main .header-nav {
    justify-content: center !important;
}

.header .header-main .header-nav>.menu-item {
    margin: 0 30px;
}

/* Sub menu */
.header .header-main .header-nav>.menu-item .sub-menu {
    padding: 0;
    background: var(--primary-color);
    border-radius: .5rem;
    border: none;
}

.header .header-main .header-nav>.menu-item .sub-menu .menu-item a {
    border: none;
    color: #fff !important;
}

.nav-dropdown-has-arrow li.has-dropdown:after,
.nav-dropdown-has-arrow li.has-dropdown:before {
    display: none;
}


/* Landing page */
.banner-link{
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: all .3s ease;
}

.tb-premium {
    top: 24% !important;
    right: 15% !important;
}

.tb-natural {
	left: 17% !important;
}

.banner-link h3{
    margin: 0;
    color: #41230A !important;
    transition: all .3s ease;
}

.banner-link:hover{
    transform: translateY(-2px);
}

.banner-link:hover h3{
	color: var(--primary-color) !important;
    text-shadow: 0 4px 12px rgba(126, 48, 1, .2);
}

.banner-landing .banner-tb .text-box-content p {
	display: none;
}



/* ==========================================================================
   COMMON CUSTOM
   ========================================================================== */

/* Swiper Adapter cho Flatsome Row (class certificates-slider đặt trực tiếp ở Row) */
.certificates-swiper-outer {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.row.certificates-slider.swiper-wrapper,
.certificates-slider.swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    box-sizing: content-box;
}

.row.certificates-slider .col.swiper-slide,
.certificates-slider .col.swiper-slide {
    flex: 0 0 auto !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    height: auto;
    box-sizing: border-box;
}

.row.certificates-slider .col-inner {
    height: 100%;
}

.row.certificates-slider .col-inner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Navigation Buttons Styling cho Certificates Swiper */
.certificates-swiper-outer .swiper-button-next,
.certificates-swiper-outer .swiper-button-prev {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.certificates-swiper-outer .swiper-button-next:after,
.certificates-swiper-outer .swiper-button-prev:after {
    font-size: 14px;
    font-weight: bold;
}

.certificates-swiper-outer .swiper-button-next:hover,
.certificates-swiper-outer .swiper-button-prev:hover {
    background-color: var(--fs-color-primary, #000);
    border-color: var(--fs-color-primary, #000);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.certificates-swiper-outer .swiper-button-prev {
    left: 4px;
}

.certificates-swiper-outer .swiper-button-next {
    right: 4px;
}

/* PRODUCT SMALL */
.product-small.product>.col-inner,
.products>.product-small>.col-inner {
    background-color: #fff !important;
    height: 100%;
}

.product-small.product>.col-inner:hover,
.products>.product-small>.col-inner:hover {
    background-color: var(--fs-color-primary) !important;
}

.product-small.product>.col-inner:hover .product-title a,
.products>.product-small>.col-inner:hover .product-title a {
    color: #fff !important;
}

/* ==========================================================================
   FOOTER CUSTOM
   ========================================================================== */
#footer a.icon-circle:hover,
#footer a.remove:hover,
#footer a:hover {
    color: var(--fs-color-primary) !important;
}

#footer .ux-menu-link--active .ux-menu-link__link,
#footer .ux-menu-link:hover .ux-menu-link__link {
    color: var(--fs-color-primary) !important;
}

/* ==========================================================================
   MIN-WIDTH (Mobile First - Ưu tiên từ thấp đến cao)
   ========================================================================== */

@media (min-width: 375px) {
    /* Mobile L */
}

@media (min-width: 430px) {
    /* Mobile XL */
}

@media (min-width: 768px) {
    /* Tablet */
}

@media (min-width: 820px) {
    /* Tablet L */
}

@media (min-width: 1024px) {
    /* Laptop / iPad Pro */
}

@media (min-width: 1280px) {
    /* Desktop */
}

@media (min-width: 1920px) {
    /* Large Desktop */
}

/* ==========================================================================
   MAX-WIDTH (Desktop First - Ưu tiên từ cao xuống thấp)
   ========================================================================== */

@media (max-width: 1920px) {
    /* Max Large Desktop */
}

@media (max-width: 1280px) {
    /* Max Desktop */
}

@media (max-width: 1024px) {
    /* Max Laptop / iPad Pro */
}

@media (max-width: 820px) {
    /* Max Tablet L */
}

@media (max-width: 768px) {
    /* Max Tablet */
}

@media (max-width: 430px) {
    /* Max Mobile XL */
}

@media (max-width: 375px) {
    /* Max Mobile L */
}