/*
Theme Name: BOSCO
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


.bold {
    font-weight: 700 !important;
}

a:where(:not(.wp-element-button)) {
    text-decoration: none !important;
}

#header {
    position: absolute;
}

.header-wrapper.stuck {
    box-shadow: none !important;
}

.header-main .header-inner {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 40px;
}

.header-main .flex-right {
    margin-right: 5px !important;
}

.header-main .logo {
    margin-left: -10px !important;
}

.slider-style-container .flickity-slider>:not(.is-selected),
.slider-style-focus .flickity-slider>:not(.is-selected),
.slider-style-shadow .flickity-slider>:not(.is-selected) {
    opacity: 1;
}

.button.primary {
    background: linear-gradient(to right, var(--fs-color-primary), var(--fs-color-success), var(--fs-color-success), var(--fs-color-primary)) !important;
    background-size: 300% auto !important;
    background-position: left center !important;
    transition: background-position 0.4s 0.125s cubic-bezier(0, 0.15, 0.85, 1) !important;
    border: none !important;
    padding: 5px 35px;

    &:hover {
        background-position: right center !important;
        box-shadow: none !important;
    }
}

.gradient {
    background: linear-gradient(to right, var(--fs-color-primary), var(--fs-color-success), var(--fs-color-primary)) !important;
    background-size: 200% auto !important;
    background-position: right center !important;
}

.gradient.rtl {
    background-position: right center !important;
}

.gradient.ltr {
    background-position: left center !important;
}

.glassy {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.position-fixed {
    position: fixed !important;
}

.position-sticky {
    position: sticky !important;
}

.w-100vw {
    width: 100vw !important;
}

.h-100vh {
    height: 100vh !important;
}

.h-200vh {
    height: 200vh !important;
}

.h-300vh {
    height: 300vh !important;
}

.h-400vh {
    height: 400vh !important;
}

.h-500vh {
    height: 500vh !important;
}

.h-600vh {
    height: 600vh !important;
}

.h-700vh {
    height: 700vh !important;
}

.z-0 {
    z-index: 0 !important;
}

.z-1 {
    z-index: 1 !important;
}

.z-2 {
    z-index: 2 !important;
}

.z-3 {
    z-index: 3 !important;
}

.left-0 {
    left: 0 !important;
}

.right-0 {
    right: 0 !important;
}

.top-0 {
    top: 0 !important;
}

.bottom-0 {
    bottom: 0 !important;
}

.left-50 {
    left: 50% !important;
}

.right-50 {
    right: 50% !important;
}

.top-50 {
    top: 50% !important;
}

.bottom-50 {
    bottom: 50% !important;
}

.left-100 {
    left: 100% !important;
}

.right-100 {
    right: 100% !important;
}

.top-100 {
    top: 100% !important;
}

.bottom-100 {
    bottom: 100% !important;
}

.translate-middle {
    transform: translate(-50%, -50%) !important;
}

.rounded-30,
.rounded-30 * {
    border-radius: 1.8rem !important;
}

.my-0 {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.mx-0 {
    margin-left: 0px !important;
    margin-right: 0px !important;
}

.py-0 {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.px-0 {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.m-1 {
    margin: 1rem !important;
}

.mb-1 {
    margin-bottom: 1rem !important;
}

.subtitle {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
}

.text-primary {
    color: var(--fs-color-primary) !important;
}

.text-secondary {
    color: var(--fs-color-secondary) !important;
}

.text-success {
    color: var(--fs-color-success) !important;
}

.text-danger {
    color: var(--fs-color-danger) !important;
}

.text-white {
    color: #fff !important;
}

.text-outline-primary {
    color: white;
    text-shadow:
        -2px -2px 0 var(--fs-color-primary),
        2px -2px 0 var(--fs-color-primary),
        -2px 2px 0 var(--fs-color-primary),
        2px 2px 0 var(--fs-color-primary),
        -2px 0px 0 var(--fs-color-primary),
        2px 0px 0 var(--fs-color-primary),
        0px -2px 0 var(--fs-color-primary),
        0px 2px 0 var(--fs-color-primary);
}

.text-dark-primary {
    color: var(--fs-color-primary) !important;
    filter: brightness(0.65) contrast(1.5);
}

.text-xs {
    font-size: 70% !important;
}

.text-sm {
    font-size: 85% !important;
}

.text-md {
    font-size: 100% !important;
}

.text-lg {
    font-size: 150% !important;
}

.text-xl {
    font-size: 250% !important;
}

.text-xxl {
    font-size: 400% !important;
}

.lh-1 {
    line-height: 1 !important;
}

.lh-2 {
    line-height: 1.5 !important;
}

.lh-3 {
    line-height: 2.5 !important;
}

.lh-4 {
    line-height: 4 !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.absolute-footer .container {
    border-top: 1px solid #E0E0E0 !important;
    padding-top: 15px !important;
}

.footer-primary {
    padding: 7.5px 0px !important;
}

a:where(:not(.wp-element-button)) {
    text-decoration: none !important;
}

#header {
    position: absolute;
}

.header-wrapper.stuck {
    box-shadow: none !important;
}

.header-main .header-inner {
    margin-top: 20px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5)) !important;
    backdrop-filter: blur(10px);
    border-radius: 40px;
}

.header-main .flex-right {
    margin-right: 35px !important;
}

.header-main .logo {
    margin-left: -10px !important;
}

/* FIX TOC */
#ftwp-header-control {
    display: none !important;
}

ol#ftwp-list {
    padding: 20px !important;
}

li.ftwp-item {
    padding: 5px 0px !important;
}

.slider-style-container .flickity-slider>:not(.is-selected),
.slider-style-focus .flickity-slider>:not(.is-selected),
.slider-style-shadow .flickity-slider>:not(.is-selected) {
    opacity: 1;
}


/*
 * Fallback: hide brand intro blocks if a plugin prints outside WooCommerce's archive description hook.
 * Adjust selectors after inspecting your brand page HTML if needed.
 */
body.tax-product_brand .term-description,
body.tax-pwb-brand .term-description,
body.tax-yith_product_brand .term-description,
body.tax-berocket_brand .term-description,
body.tax-pwb-brand .pwb-before-shop-loop,
body.tax-pwb-brand .pwb-browse-brand-desc {
    display: none !important;
}

/* INTRO HERO */
.intro-hero {
    border-radius: 0% 13% 34% 0% / 0% 29% 68% 0%;
}

/* GOODS FLOW - chevron ngăn cách giữa các cột */
.goods-flow {
    align-items: center;
}

.goods-flow>.col {
    position: relative;
}

.goods-flow>.col:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 38%;
    right: 0;
    transform: translate(50%, -50%);
    width: 22px;
    height: 22px;
    z-index: -1;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* chevron kép hướng phải, màu #E9C977 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E9C977' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='7 6 13 12 7 18'/%3E%3Cpolyline points='12 6 18 12 12 18'/%3E%3C/svg%3E");
}

/* GOODS FLOW - hover đổi màu icon sang #E9C977 */
.goods-flow .icon-box .has-icon-bg .icon .icon-inner {
    background: linear-gradient(250deg, rgba(255, 255, 255, 1) 0%, rgba(240, 218, 162, 1) 78%, rgba(233, 201, 119, 1) 100%);
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}

.goods-flow .icon-box:hover .has-icon-bg .icon .icon-inner {
    background: linear-gradient(250deg, rgba(255, 255, 255, 1) 0%, rgb(255, 255, 255) 78%, rgba(233, 201, 119, 1) 100%);
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}

.goods-flow .icon-inner svg,
.goods-flow .icon-inner svg path {
    transition: all 0.3s ease;
    fill: var(--fs-color-primary) !important;
}

.goods-flow .col-inner:hover .icon-inner svg,
.goods-flow .col-inner:hover .icon-inner svg path {
    fill: #E9C977 !important;
}

/* Custom CSS Tablet */
@media (max-width: 849px) {}

/* Custom CSS Mobile */
@media (max-width: 549px) {
    .intro-hero {
        border-radius: unset;
    }

    /* Mobile: đường cong zíc-zắc nối các icon (giữ 2 cột/hàng)
       Tinh chỉnh 2 biến dưới cho khớp icon thực tế:
       --flow-y      = tâm icon tính từ đỉnh cột
       --flow-row-h  = khoảng cách dọc giữa tâm icon của 2 hàng liền nhau */
    .goods-flow {
        --flow-y: 52px;
        --flow-row-h: 150px;
    }

    /* Nối ngang: cột lẻ (1,3,5) -> cột chẵn cùng hàng, đường cong nhẹ */
    .goods-flow>.col:nth-child(odd):not(:last-child)::after {
        top: var(--flow-y);
        left: 50%;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 40px;
        transform: translateY(-50%);
        background-size: 100% 100%;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' fill='none' stroke='%23E9C977' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 10 C 30 2, 70 2, 98 10'/%3E%3C/svg%3E");
    }

    /* Nối chéo xuống: cột chẵn (2,4) -> cột lẻ hàng dưới, đường cong chữ S */
    .goods-flow>.col:nth-child(even):not(:last-child)::after {
        top: var(--flow-y);
        left: -50%;
        right: auto;
        bottom: auto;
        width: 100%;
        height: var(--flow-row-h);
        transform: none;
        background-size: 120% 120%;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23E9C977' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M98 2 C 98 45, 2 55, 2 98'/%3E%3C/svg%3E");
    }
}

/* ============== CORE VALUES SECTION ============== */
#screen-mix {
    mix-blend-mode: screen;
}

/* .core-values svg * {
    filter: drop-shadow(0 0 1px rgba(244, 241, 232, 1));
} */

.core-values svg path#screen-mix {
    transform-box: fill-box;
    transform-origin: center;
    animation: screenMixOpacity 1s ease-in-out infinite;
    will-change: opacity;
}
.core-values svg path#screen-mix:nth-child(3n) {animation-delay: -0.5s;}
.core-values svg path#screen-mix:nth-child(3n + 1) {animation-delay: -1s;}
.core-values svg path#screen-mix:nth-child(3n + 2) {animation-delay: -1.5s;}

.core-values svg g:has(> path#screen-mix) {
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,.9) 35%,
        rgba(255,255,255,1) 50%,
        rgba(255,255,255,.9) 65%,
        transparent 100%
    );

    mask-size: 250% 100%;
    mask-position: -200% 0;
    animation: gradientWave 20s linear infinite;
}

.core-values svg g:has(> path#screen-mix):nth-child(1)  { animation-delay: 0s; }
.core-values svg g:has(> path#screen-mix):nth-child(2)  { animation-delay: -.5s; }
.core-values svg g:has(> path#screen-mix):nth-child(3)  { animation-delay: -1s; }
.core-values svg g:has(> path#screen-mix):nth-child(4)  { animation-delay: -1.5s; }
.core-values svg g:has(> path#screen-mix):nth-child(5)  { animation-delay: -2s; }
.core-values svg g:has(> path#screen-mix):nth-child(6)  { animation-delay: -2.5s; }
.core-values svg g:has(> path#screen-mix):nth-child(7)  { animation-delay: -3s; }
.core-values svg g:has(> path#screen-mix):nth-child(8)  { animation-delay: -3.5s; }
.core-values svg g:has(> path#screen-mix):nth-child(9)  { animation-delay: -4s; }
.core-values svg g:has(> path#screen-mix):nth-child(10) { animation-delay: -4.5s; }

@keyframes screenMixOpacity {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

@keyframes gradientWave {
    0%,
    100%  {
        mask-position: -200% 0;
    }
    50% {
        mask-position: 200% 0;
    }
}