/*
 * Custom Styles for Candy Candles
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Lato:wght@400;700&display=swap');

/* --- "Cozy" WooCommerce Button Styles --- */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: #E5989B !important; /* Terracotta Pink */
    color: #FFFFFF !important;
    font-weight: bold !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: #d88a8d !important; /* Slightly darker pink on hover */
    transform: scale(1.05) !important;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* --- Mobile Product Grid --- */
@media (max-width: 768px) {
    .woocommerce ul.products {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        grid-gap: 15px; /* Space between products */
    }

    .woocommerce ul.products li.product {
        width: 100% !important;
    }
}

/* Ensure buttons are side-by-side */
.woocommerce div.product form.cart {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap if space is limited */
    align-items: center; /* Vertically align buttons */
    gap: 10px; /* Space between buttons */
}

/* Explicit styling for Buy Now button to match Add to Cart */
.woocommerce button.buy-now-button {
    background-color: #E5989B; /* Terracotta Pink */
    color: #FFFFFF;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    /* Ensure it acts like a button, take up minimal space */
    white-space: nowrap;
    padding: 0.618em 1em !important; /* Standard WooCommerce button padding, forced */
    font-size: 1em !important; /* Standard WooCommerce button font-size, forced */
    cursor: pointer;
    line-height: 1.5; /* Standard WooCommerce button line-height */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 0;
}

.woocommerce button.buy-now-button:hover {
    background-color: #d88a8d; /* Slightly darker pink on hover */
    transform: scale(1.05);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
}

/* Align the quantity input to prevent it from breaking the flex layout */
.woocommerce div.product form.cart .quantity {
    margin-right: 10px; /* Ensure space between quantity and buttons */
}