/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ===== WRAPPER ===== */
.thumb-slider-wrapper {
    position: relative;
    margin-top: 15px;
}

/* ===== THUMBNAIL CONTAINER ===== */
.flex-control-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 12px;

    /* 🔥 FIX ALIGNMENT */
    padding: 0; /* hapus padding biar sejajar */
    margin: 0;

    scroll-behavior: smooth;
}

/* hide scrollbar */
.flex-control-thumbs::-webkit-scrollbar {
    display: none;
}

/* ===== ITEM ===== */
.flex-control-thumbs li {
    flex: 0 0 auto;
}

/* ===== IMAGE ===== */
.flex-control-thumbs img {
    display: block;
    border-radius: 6px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.flex-control-thumbs .flex-active img {
    opacity: 1;
}

/* ===== ARROW BUTTON ===== */
.thumb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    border-radius: 50%;
    border: none;

    background: rgba(255,255,255,0.95);
    color: #333;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 999;

    box-shadow: 0 2px 8px rgba(0,0,0,0.1);

    transition: all 0.25s ease;
}

/* posisi */
.thumb-prev {
    left: -10px; /* keluar sedikit biar clean */
}

.thumb-next {
    right: -10px;
}

/* hover */
.thumb-arrow:hover {
    background: rgb(0 0 0 / 36%);
    transform: translateY(-50%) scale(1.08);
}
.flex-control-thumbs {
    scroll-snap-type: x mandatory;
}

.flex-control-thumbs li {
    scroll-snap-align: start;
}
.woocommerce div.product div.images .flex-control-thumbs li {
    width: 23.8%;
}

/* ===== SEARCH HEIGHT FIX (ELEMENTOR NEW SEARCH) ===== */

/* ===== FORCE RESET ELEMENTOR SEARCH ===== */

/* container utama */
header .e-search-form {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
}

/* wrapper input */
header .e-search-input-wrapper {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
}

/* input field */
header .e-search-input {
    height: 32px !important;
    min-height: 32px !important;

    padding: 0 14px !important;
    font-size: 13px !important;

    border-radius: 20px 0 0 20px !important;
    box-sizing: border-box;

    display: flex;
    align-items: center;
}

/* tombol */
header .e-search-submit {
    height: 32px !important;
    min-height: 32px !important;

    padding: 0 16px !important;
    font-size: 12px !important;

    border-radius: 0 20px 20px 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* HAPUS tinggi bawaan Elementor */
header .e-search * {
    line-height: normal !important;
}

/* optional: biar lebih clean */
header .e-search-input::placeholder {
    font-size: 12px;
    opacity: 0.7;
}