/* GBO Instrument v3 Override Style */
/* Purpose: Bring professional look to legacy template */

/* 1. Global Colors & Typography */
:root {
    --gbo-blue: #003366;
    --gbo-orange: #ff6b00;
    --gbo-light: #f8f9fa;
    --gbo-dark: #333;
}

body {
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
    color: #444;
}

/* 2. Header & Navigation */
.header1 .topbar,
.header3 .topbar {
    background-color: var(--gbo-blue);
    color: white;
}

.topbar-social-item {
    color: white !important;
}

.topbar-child1 {
    color: white !important;
    font-weight: 700;
}

/* 3. Cards (Block1 & Block2) - Professional Look */
.block1,
.block2 {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.block1:hover,
.block2:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.block1-img,
.block2-img {
    border-bottom: 1px solid #f0f0f0;
}

.block2-txt {
    padding: 15px;
    background-color: #FAFAFA;
}

.block2-name {
    color: var(--gbo-blue) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

/* 4. Buttons - Modern Pill Style */
button,
.btn,
.flex-c-m.size2 {
    border-radius: 50px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Fix for long titles like RESISTIVITYMETER */
.gbo-card-title {
    display: block;
    padding: 0 10px;
    word-wrap: break-word;
    /* Ensure long words break */
    white-space: normal;
    font-size: 14px;
    /* Default size */
}

@media (max-width: 576px) {
    .gbo-card-title {
        font-size: 13px;
        /* Slightly smaller on mobile */
    }
}

.bg3,
.bg1 {
    /* Check legacy classes */
    background-color: var(--gbo-blue) !important;
}

.bg3:hover,
.bg1:hover {
    background-color: var(--gbo-orange) !important;
}

.bg4 {
    /* Another button color */
    background-color: var(--gbo-orange) !important;
}

.bg4:hover {
    background-color: var(--gbo-blue) !important;
}

/* 5. Product Detail Tabs (Accordion) */
.wrap-dropdown-content {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #fff;
}

.active-dropdown-content .js-toggle-dropdown-content {
    color: var(--gbo-orange);
}

.dropdown-content {
    padding-left: 15px;
    padding-right: 15px;
    border-top: 1px solid #f0f0f0;
}

/* 6. Footer */
footer.bg6 {
    background-color: #222 !important;
    color: #ccc;
}

footer h4 {
    color: white !important;
}

footer li a {
    color: #aaa !important;
}

footer li a:hover {
    color: var(--gbo-orange) !important;
}

/* 7. Product Title */
.product-detail-name {
    color: var(--gbo-blue);
    font-weight: 800;
    border-bottom: 2px solid var(--gbo-orange);
    display: inline-block;
    padding-bottom: 5px;
}

/* Add Floating WA to existing CSS */

.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 9999;
    transition: all 0.3s ease;
}

.float-wa:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

.my-float-wa {
    margin-top: 16px;
}

/* Sidebar Refinements */
.wrap-side-menu {
    background: linear-gradient(180deg, #003366 0%, #004080 100%) !important;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
}

.side-menu .main-menu>li>a {
    color: #ffffff !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-menu .main-menu>li>a:hover {
    color: #ff6b00 !important;
    padding-left: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.side-menu .sub-menu {
    background: rgba(0, 0, 0, 0.1) !important;
}

.side-menu .sub-menu li a {
    color: #e0e0e0 !important;
}

.side-menu .sub-menu li a:hover {
    color: #ff6b00 !important;
}

.item-topbar-mobile {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-social-item {
    color: #ffffff !important;
}

.topbar-social-item:hover {
    color: #ff6b00 !important;
}

.topbar-child1 {
    color: #ffffff !important;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Enhancing the hamburger button on mobile header */
.btn-show-menu-mobile .hamburger-inner,
.btn-show-menu-mobile .hamburger-inner:before,
.btn-show-menu-mobile .hamburger-inner:after {
    background-color: #003366;
}

/* --- Mobile Aesthetic Overhaul (Instruments) --- */
@media (max-width: 768px) {

    /* 1. Spacing Reduction */
    .p-t-35 {
        padding-top: 20px !important;
    }

    .p-b-80 {
        padding-bottom: 40px !important;
    }

    .p-b-138 {
        padding-bottom: 50px !important;
    }

    .p-l-45,
    .p-r-45 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 2. Product Detail Alignment */
    .product-detail-name {
        font-size: 22px !important;
        text-align: center;
        display: block;
        margin-bottom: 20px;
        border-bottom: 2px solid var(--gbo-orange);
        padding-bottom: 10px;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    /* 3. Related Products Redesign */
    .relateproduct .sec-title {
        padding-bottom: 30px !important;
    }

    .relateproduct .block2 {
        border: none !important;
        /* Cleaner look */
        box-shadow: none !important;
        text-align: center;
        margin-bottom: 20px;
    }

    .relateproduct .block2-img {
        border-bottom: none !important;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    .relateproduct .block2-img img {
        max-width: 120px !important;
        /* Aesthetic small size */
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        /* Soft shadow on image */
    }

    .relateproduct .block2-name {
        font-size: 13px !important;
        color: var(--gbo-blue) !important;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    /* 4. Full Width Buttons */
    .wrapbtn {
        width: 100% !important;
    }

    .wrapbtn .btn,
    .wrapbtn button {
        width: 100% !important;
        border-radius: 8px !important;
        /* Modern rect-round */
        height: 50px !important;
    }

    /* 5. Product Gallery Thumbnails (Tokopedia Style - Precise) */
    .wrap-slick3 {
        display: flex !important;
        flex-direction: column-reverse !important;
        /* Move dots below image */
        align-items: center;
    }

    .wrap-slick3-dots {
        width: 100% !important;
        justify-content: center !important;
        /* Center alignment for precision */
        text-align: center !important;
        white-space: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden;
        display: flex !important;
        padding-top: 15px !important;
        /* Separation from image */
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .wrap-slick3-dots::-webkit-scrollbar {
        display: none;
    }

    .slick3-dots {
        display: flex !important;
        justify-content: center !important;
        /* Ensure dots stay centered */
        padding: 0 !important;
        margin: 0 auto !important;
    }

    .slick3-dots li {
        display: inline-block !important;
        flex: 0 0 auto !important;
        width: 60px !important;
        /* Slightly smaller for precision */
        height: 60px !important;
        margin: 0 5px !important;
        /* Balanced spacing */
    }

    .slick3-dots li img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
        border: 2px solid transparent;
        /* Prepare for active state */
        transition: all 0.2s;
    }

    .slick-active img {
        border-color: var(--gbo-orange) !important;
        /* Highlight active */
    }
}