/*
Theme Name: Mythic Jewels WooCommerce
Theme URI: http://example.com/mythic-jewels/
Author: AI Assistant
Description: A WooCommerce theme for Mythic Jewels based on the provided design.
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.0
License: GNU General Public License v2 or later
Text Domain: mythic-jewels
Tags: e-commerce, custom-background, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.tonal-shift {
    background: linear-gradient(to bottom, #fdf9f6, #f7f3f0);
}
.editorial-shadow {
    box-shadow: 0 12px 40px rgba(28, 27, 26, 0.06);
}

/* Base styling for WordPress components generated by WooCommerce and the editor */
.prose img {
    max-width: 100%;
    height: auto;
}
.woocommerce-page .site-main {
    font-family: 'Manrope', sans-serif;
}

/* Fix WooCommerce Shop Grid for Tailwind Constraints */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 2.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    columns: auto !important; /* Defeat Tailwind columns-4 */
}
@media (min-width: 768px) {
    ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (min-width: 1024px) {
    ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
ul.products::before,
ul.products::after {
    display: none !important;
}
ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
}
ul.products li.product > a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    width: 100% !important;
    color: inherit;
}
ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: 1/1 !important;
    border-radius: 12px;
    margin-bottom: 1.5rem !important;
}
ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Newsreader', serif;
    font-size: 1.25rem !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    color: #1c1b1a !important; 
    text-align: center;
}
ul.products li.product .price {
    color: #714428 !important; 
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem !important;
    display: block !important;
}
ul.products li.product .price del {
    color: #84746c !important; 
    font-weight: 400;
    margin-right: 0.5rem;
}
ul.products li.product .price ins {
    text-decoration: none;
    color: #714428 !important;
}
ul.products li.product .onsale {
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    background-color: #8d5b3e !important; 
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 0.5rem 1rem !important;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.875rem !important;
    z-index: 10;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1 !important;
}
ul.products li.product .button {
    margin-top: auto !important;
    background-color: #f1edea !important; 
    color: #1c1b1a !important;
    border-radius: 9999px !important;
    padding: 0.75rem 1.75rem !important;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    text-align: center;
    display: inline-block !important;
    transition: all 0.2s;
    border: none !important;
}
ul.products li.product .button:hover {
    background-color: #e5e2df !important; 
}


/* "View cart" button appearing after adding to cart */
a.added_to_cart {
    background-color: #714428 !important; 
    color: #1c1b1a !important;
    border-radius: 9999px !important;
    padding: 0.75rem 1.75rem !important;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: inline-block !important;
    transition: all 0.2s !important;
    border: none !important;
    text-decoration: none !important;
    margin-top: 0.5rem !important;
}
a.added_to_cart:hover {
    background-color: #e5e2df !important; 
}

/* "Proceed to Checkout" button on Cart page */
.wc-block-cart__submit-button, 
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background-color: #714428 !important; /* Theme Primary Color */
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 1rem 2rem !important;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    border: none !important;
    margin-top: 1.5rem !important;
}
.wc-block-cart__submit-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #8d5b3e !important; 
}

