/*
Theme Name: Wolmart Child
Theme URI: https://wolmart.org/
Author: D-THEMES
Author URI: https://wolmart.org/about-me/
Description: Wolmart Responsive WordPress + eCommerce Theme.
Version: 1.0
Template: wolmart
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** DIBAWAH INI ADALAH BEBERAPA KODE TAMBAHAN  ***************/

/* ===KODE TAMBAHAN UNTUK MENGATUR BESAR KECILNYA LOGO DI HEARDER=== */
/* KODE TAMBAHAN ELUX LOGO FINE TUNING HEARDER */
.header .logo img, 
.header-left .logo img {
    /* Coba turunkan ke 180px atau 200px agar tidak terlalu 'makan tempat' */
    width: 190px !important; 
    min-width: 190px !important;
    height: auto !important;
    max-width: none !important;
}

.header .logo, 
.header-left .logo {
    min-width: 190px !important;
    margin-right: 20px !important; /* Memberi jarak dengan menu di sebelahnya */
}

/* Sesuaikan juga tinggi headernya supaya pas */
.header-middle {
    padding: 8px 0 !important;
    min-height: 85px !important; 
}

/* Ukuran di HP (Mobile) - buat lebih compact */
@media (max-width: 768px) {
    .header .logo img {
        width: 140px !important;
        min-width: 140px !important;
    }
}


/* ===KODE TAMBAHAN UNTUK MENGATUR BESAR KECILNYA LOGO DI FOOTER=== */
/* KODE TAMBAHAN ELUX FOOTER LOGO - BRUTE FORCE METHOD */
footer img, 
.footer img, 
.widget-about img, 
.footer-middle img {
    /* Kita targetkan gambar yang punya rasio lebar seperti logo abang */
    min-width: 180px !important; 
    width: 180px !important;
    max-width: 250px !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Membuka kunci kontainer widget agar tidak sempit */
.footer .widget, 
.footer .widget-about,
.footer-middle .container .row > div {
    overflow: visible !important;
}

/* Khusus untuk tampilan HP */
@media (max-width: 768px) {
    footer img, .footer img {
        width: 150px !important;
        min-width: 150px !important;
    }
}


/* ===KODE TAMBAHAN UNTUK SEMBUNYIKAN NAMA KATEGORI DI HALAMAN TOKO=== */
/* Sembunyikan semua H1 dan H2 yang ada di atas produk pada halaman kategori */
.archive.woocommerce h1.page-title, 
.archive.woocommerce .page-header h2 {
    display: none !important;
}

/* ELUX DIGITAL - Hapus Deskripsi Kategori yang Double */
.archive .term-description {
    display: none !important;
}

/* Biar jarak antar elemen di atas produk lebih rapi di HP */
header.woocommerce-products-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/* ===KODE TAMBAHAN UNTUK MENGUBAH WARNA LABEL DISKON, RATING DAN TERJUAL=== */
/* 1. BADGE DISKON: Gradasi Merah Elegan (Biar gak terlalu 'neon') */
.onsale, 
.product-label.label-sale, 
.product-label.label-discount {
    background: linear-gradient(135deg, #cc0000 0%, #ff4d4d 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    box-shadow: 0px 3px 10px rgba(204, 0, 0, 0.2) !important;
    border: none !important;
}

/* 2. RATING BINTANG: Emas Solid (Tetap dipertahankan) */
.star-rating,
.star-rating span,
.star-rating::before,
.star-rating span::before,
.w-star-rating .star-full {
    color: #FFD700 !important;
    -webkit-text-fill-color: #FFD700 !important;
    letter-spacing: 1px !important;
}

/* 3. TIPS: Jika kamu punya badge "Terjual", kasih warna Hitam/Abu */
/* Ganti .label-sold dengan class yang sesuai di web kamu */
.label-sold { 
    background: #222 !important; 
    color: #fff !important;
}

/* ELUX DIGITAL - JURUS SAPU JAGAT RATING BINTANG */
/* 1. Pakai Selector Paling Kuat untuk Font Icon */
.star-rating,
.star-rating span,
.star-rating::before,
.star-rating span::before,
.woocommerce .star-rating,
.woocommerce .star-rating span,
.w-star-rating .star-full {
    color: #FFD700 !important; /* Warna Emas */
    -webkit-text-fill-color: #FFD700 !important; /* Paksaan buat browser tertentu */
}

/* 2. Kalau Wolmart pakai SVG, ini kuncinya! */
.star-rating svg,
.star-rating svg path,
.w-star-rating svg,
.w-star-rating svg path {
    fill: #FFD700 !important; /* Warna Emas buat gambar vektor */
    stroke: #FFD700 !important;
}

/* 3. Khusus buat Wolmart Rating Container */
.ratings-container .star-rating:before,
.ratings-container .star-rating span:before {
    color: #FFD700 !important;
}


/* ===KODE TAMBAHAN UNTUK MENGATUR BESAR KECILNYA TOMBOL ADD TO CART DAN BUY NOW  === */
/* =========================================
   1. ATURAN UMUM & DESKTOP (Layar Besar)
   ========================================= */
.elux-action-wrapper {
    display: flex !important;
    gap: 10px !important;
    margin-top: 15px !important;
    width: 100% !important;
}

.elux-action-wrapper a.button {
    flex: 1 !important; /* Di desktop biarkan mengalir sesuai ruang */
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px 15px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    border-radius: 5px !important;
    height: 45px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Warna Tombol */
.elux-action-wrapper a.add_to_cart_button {
    background-color: #2F3640 !important;
    color: #fff !important;
}

.elux-action-wrapper a.buy_now_button {
    background: linear-gradient(135deg, #cc0000 0%, #ff4d4d 100%) !important;
    color: #fff !important;
}

/* =========================================
   2. KHUSUS MOBILE (Layar di bawah 767px)
   ========================================= */
@media (max-width: 767px) {
    .elux-action-wrapper {
        gap: 6px !important;
        padding: 0 5px !important;
    }

    .elux-action-wrapper a.button {
        flex: 1 1 50% !important; /* Bagi dua sama rata */
        max-width: 50% !important; /* Kunci di 50% */
        font-size: 10px !important; /* Font lebih kecil biar gak tumpah */
        padding: 8px 2px !important;
        height: 40px !important;
        text-indent: 0 !important; /* Paksa teks muncul */
    }

    /* Hilangkan ikon pengganggu yang bikin kotak kosong */
    .elux-action-wrapper a.button::before,
    .elux-action-wrapper a.button::after {
        display: none !important;
        content: "" !important;
    }
}

/* Warna Add to Cart */
.elux-action-wrapper a.add_to_cart_button {
    background-color: #2F3640 !important;
}

/* Warna Buy Now */
.elux-action-wrapper a.buy_now_button {
    background: linear-gradient(135deg, #cc0000 0%, #ff4d4d 100%) !important;
}


/* ===KODE TAMBAHAN UNTUK MENGATUR MEMPERJELAS TULISAN DI HALAMAN CART & CHECKOUT=== */
/* ============================================================
   ELUX DIGITAL - PREMIUM HIGH CONTRAST (CART & CHECKOUT)
============================================================ */

/* 1. GLOBAL STYLE UNTUK KEDUA HALAMAN */
body.woocommerce-cart, 
body.woocommerce-checkout {
    background-color: #f4f6f8 !important; /* Latar abu-abu mewah */
}

/* Sembunyikan gangguan chat di kedua halaman */
body.woocommerce-cart .joinchat, body.woocommerce-checkout .joinchat,
body.woocommerce-cart #chat-popup, body.woocommerce-checkout #chat-popup,
body.woocommerce-cart .wp-plugin-whatsapp-chat, body.woocommerce-checkout .wp-plugin-whatsapp-chat {
    display: none !important;
    visibility: hidden !important;
}

/* 2. HALAMAN CART (KERANJANG) */
body.woocommerce-cart .woocommerce-cart-form {
    background: #ffffff !important;
    padding: 25px !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 30px !important;
}

body.woocommerce-cart .cart_totals {
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 15px !important;
    border: 1.5px solid #161b22 !important;
}

/* 3. HALAMAN CHECKOUT (PEMBAYARAN) */
body.woocommerce-checkout #customer_details, 
body.woocommerce-checkout #order_review {
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 25px !important;
}

/* Pertegas Input Field di Checkout */
body.woocommerce-checkout .form-row input.input-text, 
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout .form-row textarea {
    background-color: #ffffff !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    color: #161b22 !important;
    padding: 12px 15px !important;
}

/* 4. TOMBOL SAKTI (KONSISTEN DI KEDUA HALAMAN) */
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.woocommerce-checkout #place_order {
    background: #161b22 !important; /* Hitam ELUX */
    color: #ffffff !important;
    border-radius: 50px !important; /* Model Pill */
    height: 60px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

/* ============================================================
   ELUX DIGITAL - HIGH CONTRAST CHECKOUT (KEJELASAN MAKSIMAL)
============================================================ */

/* 1. UBAH LATAR BELAKANG HALAMAN (BIAR KOTAK ISIAN POP-OUT) */
body.woocommerce-checkout {
    background-color: #f4f6f8 !important; /* Abu-abu sangat muda */
}

/* 2. BUAT KOTAK ISIAN JADI SANGAT JELAS */
body.woocommerce-checkout .form-row input.input-text, 
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout .form-row textarea {
    background-color: #ffffff !important; /* Putih bersih */
    border: 1.5px solid #d1d5db !important; /* Garis tepi tegas */
    border-radius: 8px !important;
    color: #161b22 !important; /* Teks isian hitam pekat */
    font-size: 15px !important;
    padding: 12px 15px !important;
    transition: all 0.2s ease-in-out;
}

/* 3. EFEK SAAT DIKLIK (FOCUS MODE) */
body.woocommerce-checkout .form-row input.input-text:focus {
    border-color: #0072ff !important; /* Biru ELUX */
    box-shadow: 0 0 0 4px rgba(0, 114, 255, 0.1) !important; /* Efek glowing tipis */
    outline: none !important;
}

/* 4. PERTEGAS TULISAN LABEL (JUDUL ISIAN) */
body.woocommerce-checkout form.checkout label {
    color: #161b22 !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    display: block;
    font-size: 14px !important;
}

/* 5. BUNGKUS FORM DALAM KOTAK PUTIH (SECTIONING) */
body.woocommerce-checkout #customer_details, 
body.woocommerce-checkout #order_review {
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
    border: 1px solid #e2e8f0 !important;
}

/* 6. SEMBUNYIKAN GANGGUAN LAGI (BIAR GAK LUPA) */
body.woocommerce-checkout .joinchat, 
body.woocommerce-checkout #chat-popup {
    display: none !important;
}


/* ===KODE TAMBAHAN UNTUK MENGATUR TOMBOL CART & CHECKOUT=== */
/* --- FIX TOMBOL SAJA (CART & CHECKOUT) --- */
/* 1. Untuk Desktop: Kasih ruang napas sedikit */
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.woocommerce-checkout #place_order {
    padding-left: 35px !important;
    padding-right: 35px !important;
    font-size: 15px !important; /* Ukuran pas biar nggak nabrak */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important; /* Biar nggak maksa lebar di desktop */
    min-width: 250px;
}

/* 2. Untuk Mobile: Biar nggak mepet banget ke pinggir oval */
@media screen and (max-width: 480px) {
    body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
    body.woocommerce-checkout #place_order {
        width: 100% !important; /* Di HP tetap full width */
        font-size: 13px !important; /* Kecilin dikit biar muat dalam oval */
        padding-left: 15px !important;
        padding-right: 15px !important;
        letter-spacing: -0.2px !important; /* Rapatkan huruf dikit biar nggak meluber */
        white-space: nowrap !important; /* Biar tulisan nggak pecah jadi 2 baris */
    }
}


/* ===KODE TAMBAHAN UNTUK MENGHAPUS POPUP=== */
/* ============================================================
   ELUX DIGITAL - ANTI-POPUP DISTURBANCE
============================================================ */

/* --- 1. SIKAT KONTEKS VISUAL POPUP --- */
.newsletter-popup, 
.wolmart-newsletter-popup,
.newsletter-popup-wrapper {
    display: none !important;
}

/* --- 2. BONGKAR LAPISAN HANTU (OVERLAY) --- */
/* Ini yang bikin tombol gak bisa diklik. Kita harus matikan total. */
.mfp-bg, 
.mfp-wrap, 
.mfp-container {
    display: none !important;
    pointer-events: none !important; /* Supaya klik tembus ke bawah */
    z-index: -9999 !important;      /* Lempar ke urutan paling belakang */
}

/* --- 3. KEMBALIKAN KONTROL KLIK KE BODY --- */
html, body {
    overflow: visible !important;
    pointer-events: auto !important; /* Pastikan klik aktif kembali */
    position: relative !important;
    height: auto !important;
}

/* --- 4. PROTEKSI NAVIGASI (AGAR TETAP DI DEPAN) --- */
.header, 
.header-middle, 
.header-bottom, 
.mobile-menu-wrapper,
.dropdown,
.my-account {
    z-index: 99999 !important; /* Paksa menu tampil paling depan */
    pointer-events: auto !important;
}


/* ===KODE TAMBAHAN UNTUK MENGUBAH HALAMAN MY ACCOUNT=== */
/* =========================================================
   ELUX DIGITAL - MODERN AI MY ACCOUNT (SHARP TEXT VERSION)
   ========================================================= */

/* 1. LATAR BELAKANG HALAMAN */
.woocommerce-account {
    background: #ffffff !important; /* Ganti ke putih agar kontras dengan teks hitam */
    color: #111111 !important; /* Teks Hitam Tajam */
    padding-bottom: 50px;
}

/* 2. AREA NAVIGASI (MENU KOTAK-KOTAK) */
.woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 110px !important;
    background: #f8f9fa !important; /* Abu-abu sangat muda agar kotak terlihat */
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    color: #111111 !important; /* Teks Hitam Tajam */
    text-decoration: none !important;
    font-weight: 700 !important; /* Tebalkan sedikit */
    font-size: 13px !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

/* Hover & Active State */
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background: #0072ff !important;
    border-color: #0072ff !important;
    color: #ffffff !important; /* Teks putih saat tombol biru aktif */
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.2) !important;
    transform: translateY(-3px) !important;
}

/* 3. AREA KONTEN (DETAIL PESANAN, DLL) */
.woocommerce-MyAccount-content {
    background: #ffffff !important; /* Putih Solid */
    border: 1px solid #eeeeee !important;
    border-radius: 16px !important;
    padding: 35px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

/* 4. TEKS & LINK */
.woocommerce-MyAccount-content p, 
.woocommerce-MyAccount-content address {
    line-height: 1.8 !important;
    color: #111111 !important; /* Hitam Tajam */
}

.woocommerce-MyAccount-content strong {
    color: #0072ff !important; /* Biru ELUX */
}

.woocommerce-MyAccount-content a {
    color: #0072ff !important; /* Biru Link */
    text-decoration: underline !important; /* Garis bawah biar jelas itu link */
}

/* 5. STYLING TABEL PESANAN */
.shop_table.my_account_orders td {
    border-bottom: 1px solid #eeeeee !important;
    padding: 20px 15px !important;
    color: #111111 !important; /* Hitam Tajam */
}

.shop_table.my_account_orders thead th {
    background: #f8f9fa !important;
    color: #111111 !important; /* Judul tabel Hitam */
    border: none !important;
    padding: 15px !important;
}

/* 6. TOMBOL PREMIUM (WARNA LOGO ELUX) */
.woocommerce-account .button,
.woocommerce-MyAccount-content .button {
    background: #0072ff !important; /* Warna Biru sesuai identitas ELUX */
    color: #ffffff !important;      /* Teks Putih Bersih */
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 25px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease !important;
    display: inline-block !important;
    text-align: center;
}

.woocommerce-account .button:hover,
.woocommerce-MyAccount-content .button:hover {
    background: #0056b3 !important; /* Biru gelap pas di-hover */
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3) !important;
}

/* 7. FORM INPUT (Edit Account) */
.woocommerce-EditAccountForm input {
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    color: #111111 !important;
    border-radius: 8px !important;
    padding: 10px !important;
}

/* 8. MOBILE ADJUSTMENT (FIX LEBAR MELUBER) */
@media (max-width: 768px) {
    /* Pastikan halaman tidak bisa geser ke kanan */
    .woocommerce-account {
        overflow-x: hidden !important;
    }

    /* 1. Menu Navigasi: Paksa 100% dan kunci ukurannya */
    .woocommerce-MyAccount-navigation ul {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important; /* Kunci lebar agar tidak bocor */
    }

    .woocommerce-MyAccount-navigation ul li a {
        height: 85px !important; /* Pendekkan sedikit biar pas */
        min-height: unset !important;
        font-size: 11px !important;
        padding: 5px !important;
        box-sizing: border-box !important;
    }

    /* 2. Konten Utama: Paksa lebar sesuai layar HP */
    .woocommerce-MyAccount-content {
        padding: 20px 15px !important;
        margin: 15px 0 !important; /* Hilangkan margin samping yang bikin meluber */
        width: 100% !important;
        display: block !important;
        box-sizing: border-box !important; /* Kunci lebar agar tidak bocor */
        border-radius: 0 !important; /* Flat di mobile biar lebih luas */
        border-left: none !important;
        border-right: none !important;
    }

    /* 3. Tabel Pesanan: Pastikan tidak ada scroll horizontal */
    .shop_table.my_account_orders {
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
    }

    .shop_table.my_account_orders tr {
        margin-bottom: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .shop_table.my_account_orders td {
        display: flex !important;
        justify-content: space-between !important;
        padding: 10px 5px !important;
        box-sizing: border-box !important;
    }

    /* 4. Tombol: Biar gak nabrak pinggir */
    .woocommerce-account .button {
        width: 100% !important;
        margin: 10px 0 !important;
        box-sizing: border-box !important;
    }
}


/* ===KODE TAMBAHAN UNTUK MENGUBAH HALAMAN DETAIL PRODUK=== */
/* --- ELUX PRODUCT DETAIL: FINAL POLISH --- */

/* 1. Sejajarkan Kuantitas & Tombol */
.summary.entry-summary .cart {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.quantity input.qty {
    background: #fdfdfd !important;
    border: 1px solid #e2e2e2 !important;
    color: #444 !important;
    font-weight: 600 !important;
    width: 60px !important;
    height: 45px !important; /* Samakan dengan tinggi tombol */
}

/* 2. Tombol Tambah ke Keranjang - Ukuran Sedang */
.single_add_to_cart_button {
    height: 45px !important;
    padding: 0 25px !important;
    min-width: unset !important; /* Hapus min-width biar gak kepanjangan */
    flex-grow: 1 !important; /* Biar dia ngisi ruang sisa */
}

/* 3. Rapikan Label Stok (Sudah biru, kita haluskan) */
.stock {
    display: inline-block !important;
    margin-bottom: 15px !important;
    font-size: 12px !important;
    background: rgba(0, 114, 255, 0.08) !important;
    color: #0072ff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 4px 10px !important;
}

/* 4. Deskripsi Produk: Sultan Reading Mode */
.woocommerce-Tabs-panel--description {
    line-height: 1.8 !important;
    font-size: 15px !important;
    color: #555 !important;
}

.woocommerce-Tabs-panel--description p {
    margin-bottom: 20px !important;
}

/* 5. Tombol WA 'Tanya Admin' - Biar Gak Nutupi Teks */
#whatsapp-chat-widget {
    bottom: 80px !important; /* Naikin dikit biar gak tumpuk sama menu mobile */
}

/* =========================================================
   ELUX DIGITAL - QUANTITY & PRICE REPAIR (FIXED)
   ========================================================= */

/* 1. MUNCULKAN ANGKA QUANTITY DI TENGAH KOTAK */
.quantity {
    display: inline-flex !important;
    vertical-align: middle !important;
}

.quantity input.qty {
    /* Warna & Background */
    color: #1a1a1a !important; /* Paksa angka jadi hitam pekat */
    background-color: #ffffff !important;
    
    /* Ukuran Kotak */
    height: 48px !important;
    width: 60px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;

    /* Posisi Angka TEPAT DI TENGAH */
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: normal !important; /* Reset biar gak narik ke bawah */
    padding: 0 !important;
    
    /* Pastikan muncul */
    opacity: 1 !important;
    visibility: visible !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

/* 2. WARNA HARGA (BIRU ELUX) */
.single-product .product .price, 
.single-product .product .price .woocommerce-Price-amount,
.single-product .product .price ins .woocommerce-Price-amount {
    color: #0072ff !important; /* Warna biru sesuai brand */
    font-weight: 800 !important;
}

/* Memberi napas agar harga asli dan diskon tidak tumpang tindih */
.single-product .product .price del {
    margin-right: 12px !important;
    display: inline-block !important;
    opacity: 0.6;
}

/* 3. TOMBOL TAMBAH KE KERANJANG (SULTAN BLUE) */
.single_add_to_cart_button {
    background: linear-gradient(90deg, #0072ff 0%, #00c6ff 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    height: 48px !important;
    padding: 0 25px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

/* Hapus Ikon yang bikin miring */
.single_add_to_cart_button::before {
    display: none !important;
    content: "" !important;
}


/* ===KODE TAMBAHAN UNTUK MENGUBAH HALAMAN PEMBAYARAN=== */
/* --- PREMIUM CHECKOUT RECEIPT ELUX HALAMAN PEMBAYARAN --- */

/* 1. Header Order (No Pesanan, Tanggal, dll) */
.woocommerce-order-overview.order_details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #f9f9f9;
    padding: 25px !important;
    border-radius: 15px;
    border: 1px solid #eee;
    list-style: none !important;
    margin-bottom: 30px !important;
}

.woocommerce-order-overview li {
    border-right: 1px solid #ddd;
    padding-right: 20px;
    margin-right: 0 !important;
    text-transform: uppercase;
    font-size: 11px;
    color: #777;
}

.woocommerce-order-overview li strong {
    display: block;
    font-size: 14px;
    color: #111;
    margin-top: 5px;
}

/* 2. Detail Bank (Dibuat Box Eksklusif) */
section.woocommerce-bacs-bank-details {
    background: #ffffff;
    border: 2px solid #f0f0f0;
    padding: 25px !important;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.woocommerce-bacs-bank-details h2 {
    font-size: 18px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px !important;
    color: #222 !important;
}

.wc-bacs-bank-details-account-name {
    font-weight: bold;
    color: #2271b1; /* Warna biru ELUX */
    font-size: 16px;
}

/* 3. Petunjuk Konfirmasi (Pindah Fokus ke Sini) */
/* Ganti .konfirmasi-box dengan class yang ente pakai buat box hijau itu */
.konfirmasi-box, .whatsapp-btn-container { 
    background: #f0fdf4 !important; /* Hijau muda premium */
    border: 1px solid #bbf7d0 !important;
    padding: 20px !important;
    border-radius: 12px !important;
    margin: 20px 0 !important;
}

/* 4. Tabel Rincian Pesanan */
.order_details.shop_table {
    border: none !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.order_details.shop_table thead th {
    background: #222 !important;
    color: #fff !important;
    padding: 15px !important;
}

.order_details.shop_table tbody td {
    padding: 15px !important;
    background: #fff;
}

.order_details.shop_table tfoot th, 
.order_details.shop_table tfoot td {
    background: #fafafa;
    font-weight: bold;
}


/* ===KODE TAMBAHAN UNTUK MENGUBAH HALAMAN USER LOGIN=== */
/* ELUX LOGIN - KHUSUS HALAMAN SEBELUM LOGIN */

/* Targetkan hanya saat user BELUM login (.logged-out) */
.logged-out.woocommerce-account .woocommerce {
    max-width: 500px !important;
    margin: 100px auto !important;
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 30px !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1) !important;
    display: block !important;
    float: none !important;
}

/* Sembunyikan judul hanya di halaman login */
.logged-out.woocommerce-account .page-header, 
.logged-out.woocommerce-account h1.entry-title {
    display: none !important;
}

/* Styling Logo ELUX */
.elux-header-logo {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.elux-header-logo img {
    max-width: 250px;
    height: auto;
}

/* Rapikan Tombol & Input Login saja */
.logged-out.woocommerce-account form.login .button {
    background-color: #0088cc !important;
    border-radius: 12px !important;
    padding: 15px !important;
    width: 100% !important;
}

/* Balikin Dashboard ke Normal (Menghapus paksaan lebar sempit) */
.logged-in.woocommerce-account .woocommerce {
    max-width: 1200px !important; /* Sesuaikan dengan lebar normal tema ente */
    margin: 40px auto !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important; /* Biasanya WooCommerce dashboard pakai flex */
    padding: 0 !important;
}


/* ===KODE TAMBAHAN UNTUK MENGUBAH TABEL HALAMAN DOWNLOAD MOBIL=== */
/* ELUX - FIX DOWNLOAD TABLE MOBILE (CARD STYLE) */
@media screen and (max-width: 768px) {
    /* 1. Ubah tabel jadi tampilan blok (menumpuk ke bawah) */
    .woocommerce-table--order-downloads, 
    .woocommerce-table--order-downloads thead, 
    .woocommerce-table--order-downloads tbody, 
    .woocommerce-table--order-downloads th, 
    .woocommerce-table--order-downloads td, 
    .woocommerce-table--order-downloads tr { 
        display: block !important; 
        width: 100% !important;
    }

    /* Sembunyikan header tabel asli */
    .woocommerce-table--order-downloads thead {
        display: none !important;
    }

    /* 2. Styling setiap baris produk sebagai "Kartu" */
    .woocommerce-table--order-downloads tbody tr {
        margin-bottom: 20px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 15px !important;
        padding: 15px !important;
        background: #fff !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.03) !important;
    }

    /* 3. Styling label info (Sisa & Kadaluarsa) agar muncul kembali */
    .woocommerce-table--order-downloads td {
        text-align: left !important;
        padding: 5px 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Tambahkan teks label manual via CSS */
    .woocommerce-table--order-downloads td.download-remaining::before {
        content: "Sisa Unduhan:";
        font-weight: bold;
        color: #64748b;
    }

    .woocommerce-table--order-downloads td.download-expires::before {
        content: "Kadaluarsa:";
        font-weight: bold;
        color: #64748b;
    }

    /* 4. Styling khusus untuk Nama Produk dan Tombol */
    .woocommerce-table--order-downloads td.download-product {
        font-weight: bold !important;
        font-size: 16px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
        color: #1e293b !important;
        display: block !important; /* Nama produk di atas sendiri */
    }

    .woocommerce-table--order-downloads td.download-file {
        margin-top: 15px !important;
        display: block !important;
    }

    /* Tombol Download Jadi Lebar dan Mantap */
    .woocommerce-table--order-downloads td.download-file a.button {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        background-color: #0088cc !important;
        color: #fff !important;
        padding: 12px !important;
        border-radius: 10px !important;
        font-size: 14px !important;
        text-transform: none !important;
    }
}


/* ===KODE TAMBAHAN UNTUK MENGUBAH TABEL HALAMAN ORDER MOBIL=== */
/* ELUX - FIX ORDER TABLE MOBILE (CARD STYLE) */
@media screen and (max-width: 768px) {
    /* 1. Ubah tabel pesanan jadi tampilan blok */
    .woocommerce-orders-table,
    .woocommerce-orders-table thead,
    .woocommerce-orders-table tbody,
    .woocommerce-orders-table th,
    .woocommerce-orders-table td,
    .woocommerce-orders-table tr {
        display: block !important;
        width: 100% !important;
    }

    /* Sembunyikan header asli tabel */
    .woocommerce-orders-table thead {
        display: none !important;
    }

    /* 2. Styling setiap baris pesanan sebagai kartu */
    .woocommerce-orders-table tbody tr {
        margin-bottom: 20px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 15px !important;
        padding: 15px !important;
        background: #fff !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.03) !important;
    }

    /* 3. Atur info per baris (Tanggal, Status, Total) */
    .woocommerce-orders-table td {
        text-align: left !important;
        padding: 8px 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Munculkan label keterangan manual */
    .woocommerce-orders-table td[data-title="Pesanan"]::before { content: "No. Pesanan:"; font-weight: bold; color: #64748b; }
    .woocommerce-orders-table td[data-title="Tanggal"]::before { content: "Tanggal:"; font-weight: bold; color: #64748b; }
    .woocommerce-orders-table td[data-title="Status"]::before { content: "Status:"; font-weight: bold; color: #64748b; }
    .woocommerce-orders-table td[data-title="Total"]::before { content: "Total:"; font-weight: bold; color: #64748b; }

    /* 4. Highlight Nomor Pesanan */
    .woocommerce-orders-table td.woocommerce-orders-table__cell-order-number {
        border-bottom: 1px solid #f1f5f9 !important;
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
        font-weight: bold !important;
        color: #0088cc !important;
    }

    /* 5. Styling Tombol AKSI (Lihat/Bayar) */
    .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions {
        display: block !important;
        margin-top: 15px !important;
        padding-top: 10px !important;
        border-top: 1px solid #f1f5f9 !important;
    }

    .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions a.button {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        background-color: #0088cc !important;
        color: #fff !important;
        border-radius: 10px !important;
        padding: 12px !important;
        font-weight: bold !important;
    }
}
