/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Impor stylesheet induk */
@import url("../kadence/style.css");

/* === SEMBUNYIKAN TOMBOL ADD TO CART DI SEMUA HALAMAN WOOCOMMERCE === */
body.woocommerce .button.add_to_cart_button,
body.woocommerce a.button.add_to_cart_button,
body.woocommerce .product .add_to_cart_button,
body.woocommerce ul.products li.product .button.add_to_cart_button,
body .add_to_cart_button,
body .ajax_add_to_cart {
    display: none;
}

/* Sembunyikan form keranjang di halaman produk tunggal */
body.woocommerce div.product form.cart {
    display: none;
}


/* ——— HILANGKAN MIN-HEIGHT PADA HERO HEADER ——— */
.entry-hero-container-inner .entry-header {
    min-height: 0 !important;
    padding-top: 21px !important;
    padding-bottom: 5px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* === GRID KATEGORI DI HEADER — RESPONSIF & STABIL === */
.ac-category-grid-header {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    justify-content: center;
    max-width: 1000px;
    margin: 5px auto 40px; /* margin-bottom 40px untuk jarak bawah */
    padding: 0;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #333;
    background: white;
    padding: 1px;
    border-radius: 5px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.06);
    transition: transform 0.2s;
    height: 130px;
    text-align: center;
    font-size: 11px;
}

.category-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 5px;
}

.category-card span {
    font-weight: bold;
    line-height: 1.3;
    word-wrap: break-word;
}

.category-card:hover {
    transform: translateY(-2px);
}

/* RESPONSIF: MOBILE & TABLET */
@media (max-width: 768px) {
    .ac-category-grid-header {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 33px;
    }
    .category-card {
        height: 100px;
    }
    .category-card img {
        width: 80px;
        height: 60px;
    }
    .category-card span {
        font-size: 11px;
    }
}

/* === PERBAIKAN JARAK DI SINGLE PRODUK WOOCOMMERCE === */
body.single-product .woocommerce-product-gallery {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}