/**
 * ShopMobile Pro - WooCommerce Styles
 * Estilos específicos para WooCommerce
 */

/* ==========================================================================
   Product Grid / Archive
   ========================================================================== */

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    background-color: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.woocommerce ul.products li.product a {
    text-decoration: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem;
    color: #1f2937;
    line-height: 1.4;
}

.woocommerce ul.products li.product .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
    margin: 0 1rem 1rem;
}

.woocommerce ul.products li.product .price del {
    color: #9ca3af;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: #ef4444;
}

/* Product Badges */
.woocommerce span.onsale {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #ef4444;
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
    margin: 0 1rem 1rem;
    width: calc(100% - 2rem);
    text-align: center;
    padding: 0.75rem 1rem;
    background-color: #2563eb;
    color: #ffffff;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.woocommerce ul.products li.product .added_to_cart {
    display: block;
    margin: 0 1rem 1rem;
    text-align: center;
    color: #10b981;
    font-weight: 600;
}

/* Star Rating */
.woocommerce .star-rating {
    color: #f59e0b;
    margin: 0 1rem;
}

/* ==========================================================================
   Single Product
   ========================================================================== */

.woocommerce div.product {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce div.product .product_title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.woocommerce div.product .price {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1.5rem;
}

.woocommerce div.product .price del {
    color: #9ca3af;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.woocommerce div.product .price ins {
    text-decoration: none;
    color: #ef4444;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    margin-bottom: 2rem;
    color: #4b5563;
    line-height: 1.8;
}

/* Product Images */
.woocommerce div.product div.images {
    margin-bottom: 2rem;
}

.woocommerce div.product div.images img {
    border-radius: 0.75rem;
}

/* Product Summary */
.woocommerce div.product div.summary {
    margin-top: 2rem;
}

/* Quantity Input */
.woocommerce div.product form.cart .quantity {
    display: inline-block;
    margin-right: 1rem;
}

.woocommerce div.product form.cart .quantity input.qty {
    width: 80px;
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

/* Add to Cart Button (Single) */
.woocommerce div.product form.cart .single_add_to_cart_button {
    padding: 1rem 2rem;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

/* Product Meta */
.woocommerce div.product .product_meta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #6b7280;
}

.woocommerce div.product .product_meta > span {
    display: block;
    margin-bottom: 0.5rem;
}

/* Product Tabs */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 3rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #e5e7eb;
    gap: 2rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 1rem 0;
    color: #6b7280;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.woocommerce div.product .woocommerce-tabs .panel {
    padding: 2rem 0;
}

/* Related Products */
.woocommerce .related.products {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid #e5e7eb;
}

.woocommerce .related.products h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */

.woocommerce-cart .woocommerce {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.woocommerce table.shop_table th {
    background-color: #f9fafb;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}

.woocommerce table.shop_table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce table.shop_table .product-thumbnail img {
    width: 80px;
    height: auto;
    border-radius: 0.5rem;
}

.woocommerce table.shop_table .product-name a {
    color: #1f2937;
    font-weight: 600;
}

.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-subtotal {
    font-weight: 600;
    color: #2563eb;
}

.woocommerce table.shop_table .product-remove a {
    color: #ef4444;
    font-size: 1.5rem;
    line-height: 1;
}

/* Cart Totals */
.woocommerce .cart-collaterals {
    margin-top: 2rem;
}

.woocommerce .cart-collaterals .cart_totals {
    background-color: #f9fafb;
    padding: 2rem;
    border-radius: 0.75rem;
}

.woocommerce .cart-collaterals .cart_totals h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.woocommerce .cart-collaterals .cart_totals table {
    width: 100%;
}

.woocommerce .cart-collaterals .cart_totals th,
.woocommerce .cart-collaterals .cart_totals td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce .cart-collaterals .cart_totals .order-total th,
.woocommerce .cart-collaterals .cart_totals .order-total td {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
    border-bottom: none;
    padding-top: 1.5rem;
}

.woocommerce .cart-collaterals .wc-proceed-to-checkout {
    margin-top: 1.5rem;
}

.woocommerce .cart-collaterals .wc-proceed-to-checkout a {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #10b981;
    color: #ffffff;
    text-align: center;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.woocommerce .cart-collaterals .wc-proceed-to-checkout a:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

/* ==========================================================================
   Checkout Page
   ========================================================================== */

.woocommerce-checkout .woocommerce {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce form.checkout h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.woocommerce form.checkout .form-row {
    margin-bottom: 1.5rem;
}

.woocommerce form.checkout label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f2937;
}

.woocommerce form.checkout input.input-text,
.woocommerce form.checkout select,
.woocommerce form.checkout textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

.woocommerce #order_review {
    background-color: #f9fafb;
    padding: 2rem;
    border-radius: 0.75rem;
    margin-top: 2rem;
}

.woocommerce #order_review_heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.woocommerce #payment {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.75rem;
    margin-top: 2rem;
}

.woocommerce #payment .payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.woocommerce #payment .payment_methods li {
    margin-bottom: 1rem;
}

.woocommerce #payment #place_order {
    width: 100%;
    padding: 1rem;
    background-color: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce #payment #place_order:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

/* ==========================================================================
   My Account
   ========================================================================== */

.woocommerce-account .woocommerce {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin-bottom: 0.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 0.75rem 1rem;
    color: #1f2937;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background-color: #2563eb;
    color: #ffffff;
}

/* ==========================================================================
   Messages & Notices
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.woocommerce-message {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.woocommerce-info {
    background-color: #dbeafe;
    border-color: #2563eb;
    color: #1e40af;
}

.woocommerce-error {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

/* ==========================================================================
   Responsive WooCommerce
   ========================================================================== */

@media (min-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .woocommerce div.product div.images {
        float: left;
        width: 48%;
    }

    .woocommerce div.product div.summary {
        float: right;
        width: 48%;
        margin-top: 0;
    }
}

@media (min-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        float: left;
        width: 25%;
        margin-right: 4%;
        margin-bottom: 0;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        float: right;
        width: 71%;
    }
}

@media (max-width: 767px) {
    .woocommerce table.shop_table {
        font-size: 0.875rem;
    }

    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: 0.5rem;
    }

    .woocommerce table.shop_table .product-thumbnail img {
        width: 60px;
    }
}
