/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

.owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 9999;
    pointer-events: none;
}

.owl-prev,
.owl-next {
    position: absolute;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    color: #4d88b7 !important;
    font-size: 24px !important;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.owl-prev:hover,
.owl-next:hover {
    background: #4d88b7 !important;
    color: #FFF !important;
}

.owl-prev {
    left: -25px;
}

.owl-next {
    right: -25px;
}

@media (max-width: 767.98px) {
    .filter-step-icon {
        width: 48px !important;
        height: 48px !important;
        top: 28% !important;
        left: 50% !important;
        /* ปรับขนาดและตำแหน่งให้เหมาะกับมือถือ */
    }
    .swiper-allproduct-mobile .swiper-slide img {
        max-width: 70%;
        margin: 0 auto;
        display: block;
    }
    .swiper-allproduct-mobile .product-desc {
        text-align: center;
        margin-top: 10px;
    }
    .back-to-top {
        width: 48px;
        height: 48px;
        right: 12px;
        bottom: 16px;
    }
    .back-to-top .progress-circle {
        width: 48px;
        height: 48px;
    }
    .back-to-top .progress-circle circle,
    .back-to-top .progress-circle .progress {
        r: 28;
        cx: 30;
        cy: 30;
        stroke-width: 3;
    }
    .back-to-top .arrow-up {
        font-size: 1.5rem;
    }
    .owl-prev,
    .owl-next {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 20px;
    }
    .owl-prev {
        left: -20px;
    }
    .owl-next {
        right: -20px;
    }
}

.fw-normal {
    font-size: 1.25rem;
}


/* 📱 มือถือ */

@media (max-width: 575px) {
    .heading-block h2 {
        font-size: 37px;
        line-height: 1.3;
        font-weight: 900;
        letter-spacing: -1px;
    }
    .fw-normal {
        font-size: 1.0rem;
    }
    .review-title {
        font-size: 2.2rem;
    }
    .ticker-wrap {
        display: none;
    }
    .ctabutton {
        display: none;
    }
    .ctabutton-phone {
        margin: 50px 0px 50px 0px;
    }
    .logo-image-container {
        display: none;
    }
    .logo-image-container-phone {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0px 50px 0px 50px;
    }
    .logo-image {
        transition: all 0.3s ease;
        max-width: 80%;
        min-width: 80%;
        padding-top: 63%;
    }
    .review-card-mobile {
        min-width: 250px;
        max-width: 250px;
        min-height: 350px;
        max-height: 350px;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: stretch;
        background: #fff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
        overflow: hidden;
    }
    .review-card-mobile .card-body {
        padding: 1.5rem 1.2rem;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .review-header img {
        border: 3px solid #f9b90e;
    }
    .review-header h5 {
        font-weight: 600;
    }
    .review-content {
        font-size: 1rem;
        color: #333;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 964px) {
    .footertitle {
        font-size: 50px;
    }
    .footer_link {
        color: black;
    }
}


/* 💻 โน้ตบุ๊ก */

@media (min-width: 1024px) and (max-width: 1366px) {
    .bottle-buttonimg {
        height: auto;
        width: 82%;
    }
    .label-buttonimg {
        height: auto;
        width: 82%;
    }
    .ticker-wrap {
        bottom: 2%;
    }
    .custom-margin {
        margin-left: 60px;
    }
    .logo-image-container {
        text-align: right;
    }
    .logo-image {
        transition: all 0.3s ease;
        max-width: 45%;
        min-width: 45%;
        padding-top: 10%;
        padding-right: 5%;
    }
}


/* 🖥️ เดสก์ท็อป */

@media (min-width: 1367px) {
    .ticker-wrap {
        bottom: 18%;
        position: relative;
        z-index: 0;
    }
    .custom-margin {
        margin-left: 60px;
    }
    .logo-image-container {
        text-align: right;
    }
    .logo-image {
        transition: all 0.3s ease;
        max-width: 45%;
        min-width: 45%;
        padding-top: 7%;
        padding-right: 5%;
    }
}

.oem-buttons {
    position: relative;
}

.oem-tabs {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-bottom: 30px;
}

.oem-tab {
    position: relative;
    padding: 20px;
    border-radius: 10px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    border: 2px solid transparent;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(61, 128, 228, 0.04);
    z-index: 1;
}

.oem-tab * {
    pointer-events: none;
}

.oem-tab {
    pointer-events: auto;
}

.oem-tab.active {
    background-color: #f9b90e;
    border-color: #001f3f;
}

.oem-tab .step-number {
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #001f3f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.oem-tab h4 {
    margin-top: 10px;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.oem-tab p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.85rem;
}

.oem-image-container {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.oem-image-link {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.oem-image-link.active {
    display: flex;
}

.oem-image.active {
    opacity: 1;
    display: block;
}

.oem-image-link.active:hover .oem-image {
    transform: scale(1.02);
    border-color: #001f3f;
    box-shadow: 0 5px 15px rgba(0, 31, 63, 0.2);
}

.zoom-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0.8;
    z-index: 1;
}

.oem-buttons {
    position: relative;
    height: 350px;
}

.oem-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 125%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    text-align: center;
}

.oem-button.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.oem-button:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .oem-tabs {
        flex-direction: column;
    }
    .oem-tab {
        padding-left: 60px;
        text-align: left;
    }
    .oem-tab .step-number {
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    .oem-image-container {
        height: 350px;
        /* เพิ่มความสูงจาก 300px เป็น 350px สำหรับมือถือ */
        margin-bottom: 30px;
    }
    .oem-buttons {
        margin-top: 60px;
        /* เพิ่มระยะห่างด้านบนสำหรับปุ่มบนมือถือ */
    }
}

.review-swiper {
    position: relative;
    padding: 0 40px;
}

.review-swiper .swiper-button-next,
.review-swiper .swiper-button-prev {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.review-swiper .swiper-button-next:hover,
.review-swiper .swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.review-swiper .swiper-button-next:after,
.review-swiper .swiper-button-prev:after {
    font-size: 18px;
}

.review-card-custom {
    min-width: 350px;
    max-width: 350px;
    min-height: 320px;
    max-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.review-card-custom .card-body {
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-header img {
    border: 3px solid #f9b90e;
}

.review-header h5 {
    font-weight: 600;
}

.review-content {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background: #001f3f;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, background 0.2s;
}

.back-to-top .arrow-up {
    color: #fff;
    font-size: 2rem;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.back-to-top .progress-circle {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    z-index: 1;
}

.back-to-top .progress-circle circle {
    fill: none;
    stroke: #f9b90e;
    stroke-width: 4;
    opacity: 0.2;
}

.back-to-top .progress-circle .progress {
    stroke: #f9b90e;
    stroke-width: 4;
    stroke-linecap: round;
    opacity: 1;
    stroke-dasharray: 176;
    stroke-dashoffset: 176;
    transition: stroke-dashoffset 0.2s;
}

.back-to-top:hover {
    background: #f9b90e;
}

.back-to-top:hover .arrow-up {
    color: #001f3f;
}

.bottle-buttonimg {
    max-width: 800px;
    height: auto;
    object-fit: contain;
}

.label-buttonimg {
    height: 350px;
    width: auto;
    object-fit: contain;
}

.cap-buttonimg {
    max-width: 500px;
    height: 400px;
    object-fit: contain;
}