/**
 * Custom WooCommerce Styles
 */

/* WooCommerce Cart Block Styles */
main .wp-block-woocommerce-checkout,
.wp-block-woocommerce-cart {
    container-type: inline-size;
    max-width: 90%;
    margin: auto;
}

/* WooCommerce Product Shortcode Styles */
.wc-product-shortcode {
    border: 1px solid #ddd;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    aspect-ratio: 2/3;
    height: 400px; /* Fallback for browsers that don't support aspect-ratio */
    max-width: 350px;
}

.wc-product-shortcode.bg-blue-light {
    background-color: #e3f2fd; /* Light blue background */
}

.wc-product-shortcode .product-image {
    flex: 2;
    overflow: hidden;
    position: relative;
}

.wc-product-shortcode .product-image a {
    display: block;
    height: 100%;
    width: 100%;
}

.wc-product-shortcode .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.wc-product-shortcode .product-image:hover img {
    transform: scale(1.05);
}

.wc-product-shortcode .product-content {
    flex: 3;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.wc-product-shortcode .product-title {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    line-height: 1.3;
}

.wc-product-shortcode .product-title a {
    text-decoration: none;
    color: #333;
}

.wc-product-shortcode .product-title a:hover {
    color: #0073aa;
}

.wc-product-shortcode .product-price {
    margin: 10px 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #2c5282;
}

.wc-product-shortcode .product-add-to-cart {
    margin-top: auto;
}

.wc-product-shortcode .button {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background-color 0.3s;
}

.wc-product-shortcode .button:hover {
    background-color: #005a87;
    color: white;
}