/**
 * EazyFast Catalog - Custom CSS
 */

/* 1. Hilangkan Text 'Shop', Breadcrumbs 'Beranda/Shop', Tombol Kategori, Selector Per Page, dan Shop View */
.elementor-widget-wd_shop_archive_woocommerce_title,
.elementor-widget-wd_wc_breadcrumb,
.elementor-widget-wd_product_categories,
.elementor-widget-wd_shop_archive_per_page,
.elementor-widget-wd_shop_archive_view,
.woodmart-products-per-page,
.woodmart-shop-view,
.woodmart-products-shop-view,
.woocommerce-products-header__title,
.woocommerce-breadcrumb,
.woodmart-product-categories,
.elementor-element-fc288f9,
.elementor-element-70d7493,
.elementor-element-1ad6cc9,
.elementor-element-9a429a8,
.elementor-element-a0904b9 {
    display: none !important;
}

/* 2. Default 5 Grid Columns Per Row pada Desktop */
@media (min-width: 1025px) {
    .woocommerce .products.elements-grid .col-lg-2-4,
    .woocommerce-page .products.elements-grid .col-lg-2-4,
    .wd-products-holder.elements-grid .col-lg-2-4 {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }
}

/* 3. Sembunyikan Data Atribut/Deskripsi Tambahan Saat Hover Produk */
.hover-content,
.hover-content-inner,
.wd-more-desc,
.wd-more-desc-inner,
.wd-more-desc-btn,
.product-grid-item .hover-content,
.product-grid-item .wd-more-desc,
.product-grid-item .shop_attributes,
.woocommerce-product-attributes {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 4. Sembunyikan Animasi Compare, Lihat Cepat (Quick View), dan Wishlist Saat Hover */
.wrap-wishlist-button,
.wrap-quickview-button,
.wd-wishlist-btn,
.wd-quick-view-btn,
.wd-compare-btn,
.woodmart-wishlist-btn,
.woodmart-quick-view-btn,
.woodmart-compare-btn,
.product-compare-button,
.quick-view,
.open-quick-view,
.wd-action-btn.wd-compare-icon,
.wd-action-btn.wd-wishlist-icon,
.wd-action-btn.wd-quick-view-icon,
.wd-buttons[class*="wd-pos-"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ==========================================================================
   GAYA TOMBOL OUTLINE: TAMBAH KERANJANG, PILIH OPSI, STOK HABIS
   ========================================================================== */

/* Hilangkan Animasi Perubahan Text Menjadi Icon pada Tombol */
.wd-product-card-hover .wd-add-btn {
    width: 100% !important;
    flex: 1 1 100% !important;
}

.wd-add-btn a:not(.ef-btn-animating),
.add-to-cart-loop:not(.ef-btn-animating),
.button.add_to_cart_button:not(.ef-btn-animating) {
    width: 100% !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    overflow: hidden !important;
    transform: none !important;
    border-radius: 4px !important;
    border-width: 1.5px !important;
    border-style: solid !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
}

/* Sembunyikan dan matikan icon animasi Woodmart */
.wd-action-icon,
.wd-check-icon,
.add-to-cart-loop .wd-action-icon,
.add-to-cart-loop:before,
.add-to-cart-loop:after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* Kunci text agar tetap tampil statis & tidak bergeser */
.wd-action-text,
.add-to-cart-loop .wd-action-text,
.button.add_to_cart_button span {
    display: inline-block !important;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
    color: inherit !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    min-height: unset !important;
    height: auto !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.add-to-cart-loop:hover .wd-action-text,
.button.add_to_cart_button:hover span {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: inherit !important;
}

/* 1. Tambah Keranjang = Outline Hijau Lebih Gelap */
.wd-add-btn a.ef-btn-add-to-cart:not(.ef-btn-animating),
.add-to-cart-loop.ef-btn-add-to-cart:not(.ef-btn-animating),
a.ef-btn-add-to-cart:not(.ef-btn-animating) {
    background: transparent !important;
    border-color: #166534 !important;
    color: #166534 !important;
}

.wd-add-btn a.ef-btn-add-to-cart:hover,
.add-to-cart-loop.ef-btn-add-to-cart:hover,
a.ef-btn-add-to-cart:hover {
    background: #166534 !important;
    border-color: #166534 !important;
    color: #ffffff !important;
}

/* 2. Pilih Varian = Outline Biru Lebih Gelap */
.wd-add-btn a.ef-btn-select-options,
.add-to-cart-loop.ef-btn-select-options,
a.ef-btn-select-options {
    background: transparent !important;
    border-color: #1d4ed8 !important;
    color: #1d4ed8 !important;
}

.wd-add-btn a.ef-btn-select-options:hover,
.add-to-cart-loop.ef-btn-select-options:hover,
a.ef-btn-select-options:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

/* 3. Stok Habis = Outline Merah Lebih Gelap (Pointer Normal, Bukan Disable) */
.wd-add-btn a.ef-btn-out-of-stock,
.add-to-cart-loop.ef-btn-out-of-stock,
a.ef-btn-out-of-stock {
    background: transparent !important;
    border-color: #b91c1c !important;
    color: #b91c1c !important;
    cursor: pointer !important;
}

.wd-add-btn a.ef-btn-out-of-stock:hover,
.add-to-cart-loop.ef-btn-out-of-stock:hover,
a.ef-btn-out-of-stock:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
    cursor: pointer !important;
}

.product-grid-item.outofstock,
.product-grid-item.outofstock a,
.product-grid-item.outofstock .product-element-top,
.product-grid-item.outofstock .product-information {
    cursor: pointer !important;
}

/* 4. Sembunyikan Floating Badge SOLD OUT di Setiap Grid Produk */
.product-labels .out-of-stock,
.product-labels .sold-out,
.product-label.out-of-stock,
.product-label.sold-out,
.out-of-stock.product-label,
span.out-of-stock,
span.sold-out,
.wd-product .product-labels .out-of-stock {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 5. Nonaktifkan Perubahan / Pertukaran Foto Produk Saat Hover (Termasuk Slider Geser Mouse) */
.wd-product-grid-slider,
.wd-product-grid-slider-pagin,
.wd-product-grid-slider-dot,
.wd-product-grid-slider-nav,
.wd-product-img-hover,
.hover-img,
.product-grid-item .wd-product-grid-slider,
.product-grid-item .wd-product-grid-slider-pagin,
.product-grid-item .wd-product-grid-slider-dot,
.product-grid-item .hover-img,
.product-grid-item .wd-product-img-hover {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.product-grid-item:hover .product-image-link img,
.product-grid-item:hover .wd-product-thumb img {
    opacity: 1 !important;
}

/* 6. Hilangkan Bintang Review pada Setiap Produk */
.product .star-rating,
.product-grid-item .star-rating,
.product-rating-price .star-rating,
.wd-star-rating,
.woodmart-star-rating,
.woocommerce-product-rating {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 7. Hilangkan Kategori Produk pada Tiap Grid Produk */
.wd-product-cats,
.woodmart-product-cats,
.product-grid-item .wd-product-cats {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* 8. Buat Judul Produk Bisa Muat 2 Baris */
.product-grid-item .product-information .wd-entities-title,
.product-grid-item .product-information .woocommerce-loop-product__title,
.product-grid-item .wd-entities-title,
.product-grid-item .woocommerce-loop-product__title,
.wd-entities-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    min-height: 2.6em !important;
    max-height: 2.6em !important;
    margin-bottom: 2px !important;
    word-break: break-word !important;
    white-space: normal !important;
}

.product-grid-item .product-information .wd-entities-title a,
.product-grid-item .product-information .woocommerce-loop-product__title a,
.product-grid-item .wd-entities-title a,
.product-grid-item .woocommerce-loop-product__title a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    white-space: normal !important;
}

/* Sale badge Indonesian polish */
.woocommerce-badges .onsale,
.onsale {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Result count */
.woocommerce-result-count {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 !important;
}

/* Sejajarkan Result Count (Kiri) dan Filter / Ordering (Kanan) */
.elementor-element-db664df,
.elementor-element-db664df.e-con,
.elementor-element-db664df > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    width: 100% !important;
    margin-bottom: 25px !important;
}

.elementor-element-db664df .elementor-widget-wd_shop_archive_result_count,
.elementor-element-db664df .elementor-element-a061ebb,
.elementor-element-db664df .woocommerce-result-count {
    margin-right: auto !important;
    margin-bottom: 0 !important;
    order: 1 !important;
    flex: 0 1 auto !important;
}

.elementor-element-db664df .elementor-widget-wd_builder_off_canvas_column_btn,
.elementor-element-db664df .elementor-element-23042f1,
.elementor-element-db664df .elementor-widget-wd_shop_archive_orderby,
.elementor-element-db664df .elementor-element-0605206 {
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    order: 2 !important;
}

.elementor-element-0d7839b:empty,
.elementor-element-0d7839b:not(:has(.woocommerce-result-count)) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Orderby dropdown polish */
.woocommerce-ordering select.orderby {
    border-radius: 6px;
    font-size: 13.5px;
    color: #334155;
    padding: 6px 12px;
}

/* Pagination polish */
.woocommerce-pagination .page-numbers {
    border-radius: 6px;
}

/* Varian Habis di Dropdown Berwarna Merah */
select option.ef-out-of-stock,
select option[style*="#b91c1c"],
.ef-out-of-stock {
    color: #b91c1c !important;
    font-weight: 600 !important;
}

/* Garis Tipis Antara Setiap Baris Baru Grid Produk (Jarak Lebih Rapat Atas & Bawah) */
.wd-products-holder.elements-grid .product-grid-item,
.woocommerce .products.elements-grid .product-grid-item,
.products.elements-grid .product-grid-item,
.product-grid-item {
    border-bottom: 1px solid #e5e7eb !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
}

/* ==========================================================================
   HOVER PRODUK: HILANGKAN ZOOM / SCALE, HANYA MUNCUL BORDER
   ========================================================================== */

/* Matikan efek scale / zoom pada gambar produk saat hover */
.product-grid-item img,
.product-grid-item:hover img,
.product-image-link img,
.product-image-link:hover img,
.wd-product-thumb img,
.wd-product-thumb:hover img,
.wd-product-thumb .product-image-link,
.wd-product-thumb:hover .product-image-link,
.wd-loop-builder-off .wd-product-thumb:hover .wd-product-img-hover,
.wd-product-img-hover {
    transform: none !important;
    scale: none !important;
    transition: none !important;
}

/* Matikan pembesaran / expanding background card Woodmart (inset -10px, popup background) */
.wd-product-card-bg,
.content-product-imagin,
.product-grid-item .wd-product-card-bg,
.product-grid-item:hover .wd-product-card-bg,
.product-grid-item .content-product-imagin,
.product-grid-item:hover .content-product-imagin {
    display: none !important;
    box-shadow: none !important;
}

/* Wadah wrapper produk dengan border halus */
.product-grid-item .wd-product-wrapper,
.product-grid-item .product-wrapper {
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    padding: 8px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Saat hover (khusus desktop dengan mouse): hanya muncul border saja, tidak ada pembesaran atau zoom */
@media (hover: hover) and (min-width: 769px) {
    .product-grid-item:hover .wd-product-wrapper,
    .product-grid-item:hover .product-wrapper {
        border-color: #cbd5e1 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        transform: none !important;
    }
}

/* Pada layar sentuh / mobile: matikan hover border agar 1x tap langsung membuka produk tanpa tertahan */
@media (hover: none), (max-width: 768px) {
    .product-grid-item .wd-product-wrapper,
    .product-grid-item .product-wrapper,
    .product-grid-item:hover .wd-product-wrapper,
    .product-grid-item:hover .product-wrapper {
        border-color: transparent !important;
        box-shadow: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* ==========================================================================
   PERKECIL JARAK SPASI ANTARA JUDUL PRODUK DENGAN HARGA & BADGE VARIASI
   ========================================================================== */
.product-grid-item .product-information {
    padding-top: 6px !important;
}

.product-grid-item .product-rating-price,
.product-grid-item .wrapp-product-price {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 6px !important;
    gap: 6px !important;
    width: 100% !important;
}

.product-grid-item .price,
.product-grid-item span.price {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
    font-size: 14px !important;
    color: #0284c7 !important;
    font-weight: 600 !important;
    flex: 1 1 auto !important;
}

/* Badge Jumlah Varian Produk (Outline Biru, Text Biru Senada dengan Harga) */
.ef-variation-count-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 2px 7px !important;
    border: 1px solid #1d4ed8 !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #0284c7 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1.2 !important;
}

.ef-variation-count-badge .ef-badge-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background-color: #1d4ed8 !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.ef-variation-count-badge .ef-badge-text {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #0284c7 !important;
}

/* Badge Jumlah Stok Produk Tanpa Varian (Outline Hijau Lebih Gelap Sama Seperti Tombol Masukan Keranjang) */
.ef-stock-available-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 2px 8px !important;
    border: 1px solid #166534 !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #166534 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1.2 !important;
}

.ef-stock-available-badge .ef-stock-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background-color: #166534 !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.ef-stock-available-badge .ef-stock-text {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #166534 !important;
}

/* Badge Produk Habis (Tanya Admin, Outline Merah Senada dengan Tombol Habis) */
.ef-stock-ask-admin-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 2px 8px !important;
    border: 1px solid #b91c1c !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #b91c1c !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.ef-stock-ask-admin-badge:hover {
    background-color: #fef2f2 !important;
    border-color: #991b1b !important;
    color: #991b1b !important;
    text-decoration: none !important;
}

.ef-stock-ask-admin-badge .ef-ask-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background-color: #b91c1c !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.ef-stock-ask-admin-badge .ef-ask-text {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #b91c1c !important;
}

/* ==========================================================================
   RESPONSIVE BADGE TEXT (DESKTOP VS MOBILE <= 768px)
   - Desktop: Tampilkan teks lengkap ("19 Pilihan", "150 Tersedia", "Tanya Admin")
   - Mobile: Tampilkan format ringkas ("19 Opt", "150", "Hub Adm")
   ========================================================================== */
.ef-text-mobile {
    display: none !important;
}

.ef-text-desktop {
    display: inline !important;
}

@media (max-width: 768px) {
    .ef-text-desktop {
        display: none !important;
    }

    .ef-text-mobile {
        display: inline !important;
    }
}

/* ==========================================================================
   STICKY BAR BAWAH KHUSUS MOBILE: WISHLIST, KERANJANG, CHAT
   ========================================================================== */
.ef-mobile-bottom-bar {
    display: none;
}

@media (max-width: 768px) {
    /* Sembunyikan sticky toolbar default bawaan Woodmart */
    .wd-toolbar,
    div.wd-toolbar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        pointer-events: none !important;
    }

    /* Tampilkan custom sticky bar bawah */
    .ef-mobile-bottom-bar {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 56px !important;
        background-color: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06) !important;
        z-index: 99999 !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    /* Item Tombol (Wishlist, Keranjang, Chat) */
    .ef-bottom-bar-item {
        flex: 1 1 33.33% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        text-decoration: none !important;
        color: #475569 !important;
        padding: 4px 0 !important;
        transition: color 0.15s ease !important;
        position: relative !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .ef-bottom-bar-item:active,
    .ef-bottom-bar-item:hover {
        color: #1d4ed8 !important;
        text-decoration: none !important;
    }

    /* Wadah Icon & Badge */
    .ef-bar-icon-wrap {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 26px !important;
        height: 26px !important;
    }

    .ef-bar-svg {
        stroke: currentColor !important;
        width: 22px !important;
        height: 22px !important;
        transition: transform 0.15s ease !important;
    }

    .ef-bottom-bar-item:active .ef-bar-svg {
        transform: scale(0.92) !important;
    }

    /* Badge Angka Counter (Wishlist / Keranjang) */
    .ef-bar-badge {
        position: absolute !important;
        top: -4px !important;
        right: -8px !important;
        background-color: #ef4444 !important;
        color: #ffffff !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        padding: 2px 5px !important;
        border-radius: 10px !important;
        min-width: 14px !important;
        text-align: center !important;
        border: 1.5px solid #ffffff !important;
        box-sizing: border-box !important;
    }

    .ef-bar-badge.ef-badge-empty {
        display: none !important;
    }

    /* Label Text di Bawah Icon */
    .ef-bar-label {
        font-size: 11px !important;
        font-weight: 600 !important;
        line-height: 1.1 !important;
        letter-spacing: 0.1px !important;
        color: inherit !important;
    }

    /* Khusus Tombol Chat WhatsApp: Aksen Segar */
    .ef-bottom-bar-item.ef-bar-chat {
        color: #166534 !important;
    }

    .ef-bottom-bar-item.ef-bar-chat:active,
    .ef-bottom-bar-item.ef-bar-chat:hover {
        color: #15803d !important;
    }

    /* Beri padding-bottom pada body agar konten tidak tertutup bar */
    body {
        padding-bottom: 56px !important;
    }
}

/* ==========================================================================
   HOMEPAGE CUSTOMIZATIONS
   ========================================================================== */
/* 1. Hapus text judul 'Kategori Populer' pada halaman utama */
.home .elementor-element-a4f058a,
.home .elementor-element-a4f058a .woodmart-title-container,
.home .woodmart-title-container:contains("Kategori Populer") {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
}

/* 2. Hapus gambar / icon di dalam tombol 'Semua Produk' */
.home .wd-button-wrapper a[href*="/shop"] .wd-btn-icon,
.home .wd-button-wrapper a .wd-btn-icon,
.elementor-element-b06b2e1 .wd-btn-icon,
.elementor-element-5579ff3 .wd-btn-icon {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ==========================================================================
   BANNER CUSTOMIZATIONS (SLIDER & PROMO BANNER)
   ========================================================================== */

/* 1. Hapus efek zoom saat hover pada foto banner */
[class*="banner-hover-zoom"] .banner-image,
[class*="banner-hover-zoom"]:hover .banner-image,
.promo-banner:hover .banner-image,
.promo-banner .banner-image,
.promo-banner img,
.promo-banner:hover img,
.wd-slider .wd-slide-bg img,
.wd-slider:hover .wd-slide-bg img,
.wd-slide:hover .wd-slide-bg img,
.banner-hover-zoom .banner-image,
.banner-hover-zoom:hover .banner-image {
    transform: none !important;
    scale: none !important;
    transition: none !important;
}

/* 2. Tampilan mobile: Rapikan banner promo tanpa merusak slider bawaan */
@media (max-width: 768px) {
    /* Hero Parent Container: Margin & Gap Bersih */
    .elementor-element-7568552 {
        --margin-top: 0px !important;
        --margin-bottom: 20px !important;
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }

    .elementor-element-7568552 > .e-con-inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .elementor-element-2d3e32a,
    .elementor-element-2c204d2 {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Slider Hero: Terapkan aspect-ratio 2560/1738 agar tinggi proporsional dan tidak ter-crop atas-bawah */
    #slider-821,
    #slider-821 .wd-slide,
    .wd-slider,
    .wd-slider .wd-slide {
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 2560 / 1738 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }

    .wd-slider .wd-slide-bg {
        width: 100% !important;
        height: 100% !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    .wd-slider .wd-slide-bg :is(img, picture) {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
        display: block !important;
    }

    /* Banner Kanan Atas (2560x1045) */
    .elementor-element-a594443 {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .elementor-element-a594443 .promo-banner {
        --wd-img-height: auto !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }

    .elementor-element-a594443 .promo-banner img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        display: block !important;
    }

    /* Dua Promo Banner Bawah (1373x677) */
    .elementor-element-632a8bd {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .elementor-element-358b342,
    .elementor-element-0edf505 {
        width: calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        flex: 1 1 calc(50% - 5px) !important;
        margin: 0 !important;
    }

    .elementor-element-358b342 .promo-banner,
    .elementor-element-0edf505 .promo-banner {
        --wd-img-height: auto !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }

    .elementor-element-358b342 .promo-banner img,
    .elementor-element-0edf505 .promo-banner img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        display: block !important;
    }
}

/* ==========================================================================
   ANIMASI ADD TO CART RINGAN & EYE-CATCHING (GPU ACCELERATED)
   ========================================================================== */

/* 1. Animasi Vivid Pop, Elastic Jelly Bounce & Solid Green Flash pada Tombol Add-to-Cart */
@keyframes efBtnSuccessPop {
    0% {
        transform: scale(1) translateY(0);
    }
    18% {
        transform: scale(0.88, 0.88) translateY(2px);
    }
    40% {
        transform: scale(1.12, 1.10) translateY(-3px);
        background-color: #15803d !important;
        border-color: #15803d !important;
        color: #ffffff !important;
        box-shadow: 0 6px 20px rgba(22, 101, 52, 0.5), 0 0 0 4px rgba(34, 197, 94, 0.35) !important;
    }
    60% {
        transform: scale(0.96, 0.98) translateY(1px);
    }
    78% {
        transform: scale(1.04, 1.02) translateY(-1px);
        background-color: #166534 !important;
        border-color: #166534 !important;
        color: #ffffff !important;
    }
    100% {
        transform: scale(1, 1) translateY(0);
        background-color: #166534 !important;
        border-color: #166534 !important;
        color: #ffffff !important;
    }
}

/* Specificity tinggi untuk mengoverride .add-to-cart-loop, .wd-add-btn a, .button.add_to_cart_button */
.wd-add-btn a.ef-btn-animating,
.add-to-cart-loop.ef-btn-animating,
a.ef-btn-add-to-cart.ef-btn-animating,
.button.add_to_cart_button.ef-btn-animating,
.single_add_to_cart_button.ef-btn-animating,
button.ef-btn-animating,
a.ef-btn-animating,
.ef-btn-animating {
    animation: efBtnSuccessPop 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
    will-change: transform, background-color, box-shadow !important;
    position: relative !important;
    overflow: hidden !important;
    background: #166534 !important;
    background-color: #166534 !important;
    border-color: #166534 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(22, 101, 52, 0.5), 0 0 0 4px rgba(34, 197, 94, 0.35) !important;
    pointer-events: none !important;
}

/* Pastikan semua teks & span di dalam tombol yang beranimasi berwarna putih */
.wd-add-btn a.ef-btn-animating *,
.add-to-cart-loop.ef-btn-animating *,
a.ef-btn-add-to-cart.ef-btn-animating *,
.button.add_to_cart_button.ef-btn-animating *,
.single_add_to_cart_button.ef-btn-animating *,
.ef-btn-animating .wd-action-text,
.ef-btn-animating span {
    color: #ffffff !important;
}

/* Efek kilatan cahaya (shimmer shine) melintas tombol — override display:none dari .add-to-cart-loop:after */
.wd-add-btn a.ef-btn-animating::after,
.add-to-cart-loop.ef-btn-animating::after,
a.ef-btn-add-to-cart.ef-btn-animating::after,
.button.add_to_cart_button.ef-btn-animating::after,
.single_add_to_cart_button.ef-btn-animating::after,
.ef-btn-animating::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 60% !important;
    height: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%) !important;
    transform: skewX(-25deg) !important;
    animation: efBtnShine 0.75s ease-out !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

@keyframes efBtnShine {
    0% {
        left: -100%;
        opacity: 0.8;
    }
    100% {
        left: 200%;
        opacity: 0;
    }
}

/* 2. Animasi Ikon Keranjang (Mobile Bottom Bar & Header Cart): Bounce + Glow */
@keyframes efCartBounceGlow {
    0% {
        transform: scale(1) rotate(0deg);
    }
    20% {
        transform: scale(1.3) rotate(-12deg);
        filter: drop-shadow(0 0 6px rgba(29, 78, 216, 0.6));
    }
    40% {
        transform: scale(1.25) rotate(10deg);
        filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.7));
    }
    65% {
        transform: scale(1.1) rotate(-4deg);
    }
    85% {
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        filter: none;
    }
}

.ef-cart-animating {
    animation: efCartBounceGlow 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    will-change: transform, filter;
}

/* 3. Animasi Badge Angka Counter: Pop Elastic Bounce */
@keyframes efBadgePop {
    0% {
        transform: scale(0.4);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        background-color: #dc2626 !important;
        box-shadow: 0 0 8px rgba(220, 38, 38, 0.8);
    }
    75% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: none;
    }
}

.ef-badge-animating {
    animation: efBadgePop 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    will-change: transform;
}

/* 4. Flying Dot Efek Meluncur Parabolik Menuju Ikon Keranjang */
.ef-flying-item {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999999;
    width: 16px;
    height: 16px;
    background: #166534;
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(22, 101, 52, 0.7), 0 0 10px rgba(34, 197, 94, 0.8);
    transition: none !important;
    will-change: transform, opacity;
}

/* 4b. Flying Dot Pink Efek Meluncur Parabolik Menuju Ikon Wishlist */
.ef-flying-item.ef-flying-wishlist {
    background: #f43f5e !important;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.75), 0 0 12px rgba(251, 113, 133, 0.9) !important;
}

/* Animasi Target Ikon Wishlist saat partikel tiba */
@keyframes efWishlistBounce {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.35) rotate(-6deg);
    }
    50% {
        transform: scale(0.92) rotate(4deg);
    }
    70% {
        transform: scale(1.15) rotate(-2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.ef-wishlist-target-animating {
    animation: efWishlistBounce 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    will-change: transform;
}

/* Animasi Tombol Wishlist saat ditekan (Heartbeat pop) */
@keyframes efHeartBeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.18);
    }
    50% {
        transform: scale(0.92);
    }
    75% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.ef-wishlist-btn-animating {
    animation: efHeartBeat 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    will-change: transform;
}

/* 5. Tombol 'Lihat Keranjang' (added_to_cart) Tetap Warna Biru & Auto-Retract */
a.added_to_cart.wc-forward {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    width: 100% !important;
    margin-top: 6px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    background-color: #1d4ed8 !important; /* Warna Biru Toko */
    border: 1.5px solid #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(29, 78, 216, 0.35) !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease !important;
    overflow: hidden !important;
    animation: efViewCartSlideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

@keyframes efViewCartSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

a.added_to_cart.wc-forward:hover {
    background-color: #1e40af !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
}

/* Animasi saat tombol 'Lihat Keranjang' masuk kembali (retract / hide) */
a.added_to_cart.wc-forward.ef-hiding {
    opacity: 0 !important;
    transform: translateY(-8px) scale(0.9) !important;
    max-height: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    pointer-events: none !important;
}

/* Sembunyikan tombol scroll to top default bawaan Woodmart agar tidak bertumpuk */
.scrollToTop,
a.scrollToTop,
.wd-scroll-top {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 6. Tombol Floating 'Scroll to Top' & 'Back to Shop' (50% Lebih Besar & Style Konsisten) */
.ef-scroll-top-btn {
    position: fixed !important;
    bottom: 28px !important;
    right: 28px !important;
    z-index: 99998 !important;
    width: 66px !important;
    height: 66px !important;
    border-radius: 50% !important;
    background-color: #1d4ed8 !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.45) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, box-shadow 0.2s ease !important;
    text-decoration: none !important;
    outline: none !important;
    overflow: hidden !important;
}

.ef-scroll-top-btn:hover {
    background-color: #1e40af !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.55) !important;
    transform: translateY(-3px) scale(1.08) !important;
}

/* Transisi halus ikon panah atas <-> panah kiri */
.ef-scroll-top-btn svg {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 30px !important;
    height: 30px !important;
    stroke: currentColor !important;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* Mode Top (Panah ke Atas - saat scroll ke bawah) */
.ef-scroll-top-btn.ef-mode-top .ef-icon-top {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

.ef-scroll-top-btn.ef-mode-top .ef-icon-back {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translate(-50%, -50%) scale(0.5) rotate(90deg) !important;
}

/* Mode Back (Panah ke Kiri - saat di posisi atas halaman) */
.ef-scroll-top-btn.ef-mode-back .ef-icon-back {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

.ef-scroll-top-btn.ef-mode-back .ef-icon-top {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translate(-50%, -50%) scale(0.5) rotate(-90deg) !important;
}

/* 6b. Tombol Floating Chat WhatsApp */
.ef-floating-wa-btn {
    position: fixed !important;
    bottom: 108px !important;
    right: 28px !important;
    z-index: 99998 !important;
    width: 66px !important;
    height: 66px !important;
    border-radius: 50% !important;
    background-color: #25D366 !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, box-shadow 0.2s ease !important;
    text-decoration: none !important;
    outline: none !important;
}

.ef-floating-wa-btn:hover {
    background-color: #20ba59 !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.08) !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55) !important;
}

.ef-floating-wa-btn svg {
    width: 36px !important;
    height: 36px !important;
    fill: currentColor !important;
}

.ef-scroll-top-btn:active,
.ef-floating-wa-btn:active {
    transform: scale(0.95) !important;
}

@media (max-width: 768px) {
    .ef-scroll-top-btn {
        bottom: 70px !important; /* Di atas sticky bottom bar (56px + 14px) */
        right: 16px !important;
        width: 58px !important;
        height: 58px !important;
    }

    .ef-scroll-top-btn svg {
        width: 26px !important;
        height: 26px !important;
    }

    .ef-floating-wa-btn {
        bottom: 140px !important; /* Di atas tombol scroll-to-top (70px + 58px + 12px) */
        right: 16px !important;
        width: 58px !important;
        height: 58px !important;
    }

    .ef-floating-wa-btn svg {
        width: 32px !important;
        height: 32px !important;
    }
}

/* 7. Modal Pop-up Notifikasi Stok di Halaman Shop (Tanpa Redirect) */
.ef-stock-popup-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(2px) !important;
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.ef-stock-popup-overlay.ef-active {
    opacity: 1 !important;
    visibility: visible !important;
}

.ef-stock-popup {
    background: #ffffff !important;
    border-radius: 12px !important;
    max-width: 440px !important;
    width: 100% !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    padding: 24px !important;
    position: relative !important;
    transform: translateY(16px) scale(0.95) !important;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    text-align: left !important;
}

.ef-stock-popup-overlay.ef-active .ef-stock-popup {
    transform: translateY(0) scale(1) !important;
}

.ef-stock-popup-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.ef-stock-popup-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.ef-stock-popup-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.ef-stock-popup-body {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    color: #334155 !important;
    margin-bottom: 20px !important;
}

.ef-stock-popup-body a {
    color: #1d4ed8 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.ef-stock-popup-footer {
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-end !important;
}

.ef-stock-popup-btn-cart {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: background 0.15s ease !important;
}

.ef-stock-popup-btn-cart:hover {
    background: #1e40af !important;
    color: #ffffff !important;
}

.ef-stock-popup-btn-close {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
}

.ef-stock-popup-btn-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}



