/**
* Theme Name: Bacola Child
* Description: This is a child theme of Bacola, generated by Merlin WP.
* Author: <a href="http://themeforest.net/user/KlbTheme">KlbTheme (Sinan ISIK)</a>
* Template: bacola
* Version: 1.1.3
*/

/* ── SEARCH ICON ── */
.header-search .dgwt-wcas-ico-magnifier {
    display: none !important;
}

/* ── LOGO MOBILE ── */
.mobile-logo.hide-desktop {
    display: none !important;
}
.brand-text.hide-mobile {
    display: inline !important;
}

/* ── CATALOG MODE: SEMBUNYIKAN ADD TO CART ── */
.single-product .quantity,
.single-product .single_add_to_cart_button,
.woocommerce-variation-add-to-cart,
button.add_to_cart_button,
.product_type_simple.add_to_cart_button,
.woocommerce a.button.add_to_cart,
.woocommerce button.button.alt {
    display: none !important;
}

/* ── TOMBOL PESAN VIA WHATSAPP ── */
.btn-order-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    margin-top: 10px;
    width: 100%;
    transition: background 0.2s;
}
.btn-order-wa:hover {
    background: #128c7e;
    color: #fff !important;
}
.btn-order-wa svg { flex-shrink: 0; }

/* ── GALLERY THUMBNAIL HORIZONTAL ── */
.woocommerce-product-gallery {
    display: flex !important;
    flex-direction: column !important;
}
.flex-control-thumbs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 10px !important;
    padding: 0 !important;
}
.flex-control-thumbs li {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}
.flex-control-thumbs li img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 2px solid transparent !important;
    transition: border-color 0.2s !important;
}
.flex-control-thumbs li img.flex-active,
.flex-control-thumbs li img:hover {
    border-color: #0a4cde !important;
}

/* ── SEMBUNYIKAN WISHLIST ── */
.woocommerce ul.products li.product .add-to-wishlist,
.woocommerce ul.products li.product [class*="wishlist"],
.ti-wishlists-add-to-wishlist {
    display: none !important;
}

/* ── MY ACCOUNT: LAYOUT 2 KOLOM ── */
#customer_login {
    display: flex !important;
    gap: 40px !important;
    align-items: flex-start !important;
}

#customer_login .u-column1.col-1 {
    flex: 1 !important;
    width: auto !important;
    float: none !important;
    max-width: none !important;
}

#customer_login .u-column2.col-2 {
    flex: 1 !important;
    width: auto !important;
    float: none !important;
    background: #f8f9ff !important;
    border: 1px solid #dde3ff !important;
    border-radius: 12px !important;
    padding: 32px !important;
}

#customer_login .u-column2.col-2 h2 {
    display: none !important;
}

/* ── MY ACCOUNT: TOMBOL DAFTAR VENDOR ── */
.btn-daftar-vendor {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0a4cde;
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s;
}
.btn-daftar-vendor:hover {
    background: #083ab0;
    color: #fff !important;
}

/* ── MY ACCOUNT: INFO VENDOR DI KOLOM KANAN ── */
.vendor-register-section {
    margin-top: 0;
    padding: 0;
}
.vendor-register-title {
    font-weight: 700;
    font-size: 16px;
    color: #0a4cde;
    margin-bottom: 16px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid #dde3ff;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #customer_login {
        flex-direction: column !important;
    }
}

/* ── DASHBOARD VENDOR: SEMBUNYIKAN KOLOM DAFTAR, RAPIKAN FORM MASUK ── */
.mvx-dashboard #customer_login {
    display: block !important;
}

.mvx-dashboard #customer_login .u-column2.col-2 {
    display: none !important;
}

.mvx-dashboard #customer_login .u-column1.col-1 {
    width: 100% !important;
    max-width: 480px !important;
    margin: 40px auto !important;
    float: none !important;
    background: #fff !important;
    border: 1px solid #e8eaf0 !important;
    border-radius: 14px !important;
    padding: 40px !important;
    box-shadow: 0 4px 24px rgba(10,76,222,0.07) !important;
}

.mvx-dashboard #customer_login .u-column1 h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #0a4cde !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid #eef1fb !important;
}

.mvx-dashboard .woocommerce-form-login .form-row {
    margin-bottom: 16px !important;
}

.mvx-dashboard .woocommerce-form-login label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #444 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.mvx-dashboard .woocommerce-form-login .input-text {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1.5px solid #dde3ff !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: border-color 0.2s !important;
    background: #fafbff !important;
}

.mvx-dashboard .woocommerce-form-login .input-text:focus {
    border-color: #0a4cde !important;
    outline: none !important;
    background: #fff !important;
}

/* Tombol show/hide password */
.mvx-dashboard .woocommerce-form-login .show-password-input {
    background: #0a4cde !important;
    color: #fff !important;
    border-radius: 6px !important;
    opacity: 1 !important;
}

.mvx-dashboard .woocommerce-form-login .show-password-input:before {
    color: #fff !important;
}

.mvx-dashboard .woocommerce-form-login .show-password-input.display-password:before {
    color: #fff !important;
}

/* Checkbox ingat saya */
.mvx-dashboard .woocommerce-form-login__rememberme {
    font-size: 13px !important;
    color: #666 !important;
}

/* Tombol Login */
.mvx-dashboard .woocommerce-form-login__submit {
    width: 100% !important;
    background: #0a4cde !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 13px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: 8px !important;
    transition: background 0.2s !important;
    display: block !important;
}

.mvx-dashboard .woocommerce-form-login__submit:hover {
    background: #083ab0 !important;
    color: #fff !important;
}

/* Link lupa password */
.mvx-dashboard .woocommerce-LostPassword {
    margin-top: 12px !important;
    text-align: center !important;
}

.mvx-dashboard .woocommerce-LostPassword a {
    color: #0a4cde !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

.mvx-dashboard .woocommerce-LostPassword a:hover {
    text-decoration: underline !important;
}

/* Mobile */
@media (max-width: 768px) {
    .mvx-dashboard #customer_login .u-column1.col-1 {
        padding: 24px !important;
        margin: 20px auto !important;
    }
}

/* ── DAFTAR VENDOR: SERAGAMKAN UKURAN GAMBAR TOP PRODUCTS ── */
.mvx-store-list .mvx-store-top-products,
.mvx-vendor-list .mvx-store-top-products {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
}

.mvx-store-list .mvx-store-top-products img,
.mvx-vendor-list .mvx-store-top-products img,
.mvx-store-list-img img,
.vendor-store-image img,
.mvx-store-img img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}

/* Card vendor seragam tinggi */
.mvx-store-list .mvx-store-info,
.mvx-vendor-list .mvx-store-info {
    min-height: 320px !important;
}


.mvx-productImg {
    width: 100px !important;
    height: 100px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.mvx-productImg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    display: block !important;
}

/* ── DAFTAR VENDOR: SERAGAMKAN UKURAN GAMBAR PRODUK ── */
#mvx-store-conatiner .mvx-productImg {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

#mvx-store-conatiner .mvx-productImg div.gray {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    flex-shrink: 0 !important;
    background: #f5f5f5 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#mvx-store-conatiner .mvx-productImg div.gray a {
    display: block !important;
    width: 70px !important;
    height: 70px !important;
    line-height: 0 !important;
}

#mvx-store-conatiner .mvx-productImg div.gray img.img-fluid,
#mvx-store-conatiner .mvx-productImg div.gray img {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
    object-fit: contain !important;
    border-radius: 6px !important;
    padding: 3px !important;
}

/* ── DASHBOARD VENDOR: SEMBUNYIKAN FIELD BRANDS & BRAND ── */
.mvx-dashboard .col-md-4 .panel.panel-default.pannel-outer-heading:has(h3.pull-left) {
    display: none !important;
}

/* ── HALAMAN VENDOR: RAPIHKAN TAMPILAN ── */

/* === BANNER: batasi tinggi === */
.tax-dc_vendor_shop .banner-img-cls,
.product-vendor .banner-img-cls {
    max-height: 220px !important;
    overflow: hidden !important;
}

.tax-dc_vendor_shop .banner-img-cls img,
.product-vendor .banner-img-cls img,
.tax-dc_vendor_shop img.mvx-imgcls,
.product-vendor img.mvx-imgcls {
    width: 100% !important;
    max-height: 220px !important;
    object-fit: cover !important;
    object-position: center top !important;
}

/* Sembunyikan banner placeholder */
.tax-dc_vendor_shop img[src*="banner_placeholder"],
.product-vendor img[src*="banner_placeholder"] {
    display: none !important;
}

/* === INFO VENDOR === */
.tax-dc_vendor_shop .mvx-banner-below,
.product-vendor .mvx-banner-below {
    padding: 16px 20px !important;
    background: #fff !important;
    border-bottom: 1px solid #eee !important;
}

.tax-dc_vendor_shop .mvx-profile-area img,
.product-vendor .mvx-profile-area img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.tax-dc_vendor_shop .mvx-heading,
.product-vendor .mvx-heading {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #222 !important;
}

/* === SEMBUNYIKAN VIEW SWITCHER === */
.before-shop-loop .shop-view-selector {
    display: none !important;
}

/* === PRODUK: paksa lebar penuh mengikuti container === */
.tax-dc_vendor_shop .mvx-middle-sec,
.product-vendor .mvx-middle-sec {
    width: 100% !important;
    max-width: 100% !important;
}

.tax-dc_vendor_shop .products,
.product-vendor .products {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    width: 100% !important;
}

.tax-dc_vendor_shop .products .product,
.product-vendor .products .product {
    flex: 0 0 calc(25% - 12px) !important;
    width: calc(25% - 12px) !important;
    max-width: calc(25% - 12px) !important;
    margin: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* === GAMBAR PRODUK SERAGAM === */
.tax-dc_vendor_shop .thumbnail-wrapper,
.product-vendor .thumbnail-wrapper {
    height: 200px !important;
    overflow: hidden !important;
}

.tax-dc_vendor_shop .thumbnail-wrapper img,
.product-vendor .thumbnail-wrapper img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
}

/* === MOBILE === */
@media (max-width: 768px) {
    .tax-dc_vendor_shop .products .product,
    .product-vendor .products .product {
        flex: 0 0 calc(50% - 8px) !important;
        width: calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
    }
}

/* Fix form daftar vendor tidak muncul di mobile */
.mvx-frontend-manager-root,
#mvx-frontend-manager,
#mvx_registration_form,
.mvx-registration-wrapper,
.woocommerce .mvx-vendor-registration,
.entry-content .mvx-frontend-manager-root {
  display: block !important;
  min-height: 400px !important;
  height: auto !important;
  overflow: visible !important;
  width: 100% !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Fix Elementor widget container collapse di Chrome mobile */
.elementor-element-f6c881e,
.elementor-element-f6c881e .elementor-widget-container,
.elementor-element-f6c881e .elementor-shortcode {
  height: auto !important;
  min-height: 100px !important;
  overflow: visible !important;
  display: block !important;
}

/* Fix global Elementor shortcode widget */
.elementor-widget-shortcode .elementor-widget-container {
  height: auto !important;
  min-height: 50px !important;
  overflow: visible !important;
}