/*
Theme Name: Andy Monarca WooCommerce
Theme URI:
Description: Tema de StoreFront Diseñado para monarca.
Author: Andres Alexander Sanabria Zuluaga
Template: storefront
Version: 1.0
License: GNU General Public License V2 or later
Tags: WooCommerce, Monarca, Store, Movies, Stream.
*/

/* Header Styles */
@media (min-width: 768px) {
    .storefront-primary-navigation {
        background: #000000d4;
        border-top: 1px solid #ffffff;
    }

    .site-header {
        padding-top: 21px;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .site-header .site-branding img {
        max-width: 136px;
    }

    .home.blog .site-header,
    .home.page:not(.page-template-template-homepage) .site-header,
    .home.post-type-archive-product .site-header {
        margin-bottom: 0;
    }
}

/* Navigation & General Styles */
.main-navigation ul li a,
.site-title a,
ul.menu li a,
.site-branding h1 a,
button.menu-toggle,
button.menu-toggle:hover,
.handheld-navigation .dropdown-toggle {
    color: #ffffff;
}

.storefront-breadcrumb {
    margin: 0;
    padding: 0.3%;
}

/* Search Styles */
.site-search .widget_product_search form input[type=search],
.site-search .widget_product_search form input[type=text] {
    border-radius: 10px;
    background-color: rgb(255 255 255 / 80%);
    color: black;
}

/* Product Title Styles */
ul.products li.product .woocommerce-loop-product__title {
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px 10px;
    text-align: center;
    background-color: #ffffff;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    border: 1px solid #f5f5f5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

ul.products li.product .woocommerce-loop-product__title:hover {
    background-color: #e0e0e0;
    color: #000;
}

/* Add to Cart Button Styles */
.add_to_cart_button {
    display: inline-block !important;
    position: relative !important;
    padding: 0.618em 1em !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background-color: #333 !important;
    color: #fff !important;
    border-radius: 4px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    width: auto !important;
    text-align: center !important;
}

.add_to_cart_button:hover {
    background-color: #000 !important;
}

.add_to_cart_button.loading {
    opacity: 0.7 !important;
    padding-right: 2.618em !important;
}

.add_to_cart_button.loading::after {
    font-family: WooCommerce !important;
    content: "\e01c" !important;
    position: absolute !important;
    top: 50% !important;
    right: 1em !important;
    margin-top: -0.5em !important;
    animation: spin 2s linear infinite !important;
}

.add_to_cart_button.added::after {
    font-family: WooCommerce !important;
    content: "\e017" !important;
    margin-left: 0.53em !important;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer Styles */
.site-footer {
    padding: 0;
    background-color: black;
    color: white;
}

.site-info {
    padding: 0;
    margin: 10px;
}

/* Cart & Messages */
.site-header-cart .cart-contents .count {
    opacity: 0.9;
}

.woocommerce-message {
    background-color: black;
    color: white;
}

.fa.fa-shopping-cart::before {
    margin-right: 10px;
}

/* Wallet Styles */
.woo-wallet-my-wallet-container .woo-wallet-sidebar {
    background: transparent;
}

table:not(.has-background) tbody tr:nth-child(2n) td,
fieldset,
fieldset legend {
    background: transparent;
}

/* Mobile Styles */
@media screen and (max-width: 767px) {
    .site-main ul.products li.product {
        width: 31.333% !important;
        float: left !important;
        margin-right: 3% !important;
        clear: none !important;
        margin-left: 0 !important;
    }

    .site-main ul.products li.product:nth-child(3n) {
        margin-right: 0 !important;
    }

    .site-main ul.products li.product:nth-child(3n+1) {
        clear: both !important;
    }

    ul.products li.product .woocommerce-loop-product__title {
        height: auto;
        min-height: 65px;
        font-size: 13px;
        padding: 3px;
    }
    
    ul.products li.product img {
        margin: 0 auto;
        width: 100%;
        height: auto;
    }

    .add_to_cart_button {
        padding: 0.5em 0.8em !important;
        font-size: 12px !important;
    }
}

/* Product Display Fixes */
.woocommerce ul.products li.product {
    text-align: center;
    margin-bottom: 20px;
}

.woocommerce ul.products li.product .price:not(:first-of-type),
.woocommerce ul.products li.product .button:not(:first-of-type) {
    display: none !important;
}