/* Sticky header */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
}

/* TablePress */
.tablepress thead th {
    background-color: #658d4e;
    color: #f7f8fa;
    font-weight: bold;
    text-align: center;
}

.tablepress th,
.tablepress td {
    text-align: center;
}

/* WooCommerce shop layout */
body.woocommerce-page ul.products,
body.post-type-archive-product ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
}

/* Product cards */
body.woocommerce-page ul.products li.product,
body.post-type-archive-product ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    border: 1px solid #e8e8e8 !important;
    padding: 18px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease;
}

body.woocommerce-page ul.products li.product:hover,
body.post-type-archive-product ul.products li.product:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
    transform: translateY(-4px);
}

/* Product images */
body.woocommerce-page ul.products li.product img,
body.post-type-archive-product ul.products li.product img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    margin-bottom: 18px !important;
}

/* Product titles */
body.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #111 !important;
    min-height: 44px;
}

/* Product prices */
body.woocommerce-page ul.products li.product .price,
body.post-type-archive-product ul.products li.product .price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 12px 0 16px !important;
}

/* Buttons */
body.woocommerce-page ul.products li.product .button,
body.post-type-archive-product ul.products li.product .button {
    width: 120% !important;
    background: #638b4f !important;
    color: #fff !important;
    border: 1px solid #638b4f !important;
    padding: 12px 16px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    border-radius: 0 !important;
}

body.woocommerce-page ul.products li.product .button:hover,
body.post-type-archive-product ul.products li.product .button:hover {
    background: #4f733e !important;
    border-color: #4f733e !important;
    color: #fff !important;
}

/* Hide filters button if not needed */
.wc-block-components-filter-wrapper {
    display: none;
}

/* Mobile */
@media (max-width: 980px) {
    body.woocommerce-page ul.products,
    body.post-type-archive-product ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 520px) {
    body.woocommerce-page ul.products,
    body.post-type-archive-product ul.products {
        grid-template-columns: 1fr !important;
        padding: 25px 14px !important;
    }
}
.woocommerce table.variations tr td select {
height: 3em;
padding: -0.1em 1.1em !important;
font-size: var(--wp--preset--font-size--small);
}
.wc-block-product-filter select,
.wc-blocks-filter-wrapper select {
    height: 56px;
    min-height: 56px;
    line-height: 56px;
    padding: 0 45px 0 20px;
    font-size: 20px;
}