/**
 * WooCommerce Custom Styles - Cinco Dioses
 */

/* ==========================================================================
   Product Loop / Grid
   ========================================================================== */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.woocommerce ul.products li.product {
    background-color: #fff;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0;
    width: 100%;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2C2416;
}

.woocommerce ul.products li.product .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #B87333;
    margin-bottom: 1rem;
}

.woocommerce ul.products li.product .price del {
    opacity: 0.5;
    font-weight: 400;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
    background-color: #B87333;
    color: #fff;
    border: 2px solid #B87333;
    padding: 0.75rem 1.5rem;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.woocommerce ul.products li.product .button:hover {
    background-color: transparent;
    color: #B87333;
}

/* ==========================================================================
   Single Product Page
   ========================================================================== */
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 3rem 0;
}

.woocommerce div.product .woocommerce-product-gallery {
    position: relative;
}

.woocommerce div.product .woocommerce-product-gallery img {
    width: 100%;
    height: auto;
}

.woocommerce div.product .product_title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2C2416;
}

.woocommerce div.product .price {
    font-size: 2rem;
    font-weight: 700;
    color: #B87333;
    margin-bottom: 2rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #5A5044;
    margin-bottom: 2rem;
}

.woocommerce div.product form.cart {
    margin-bottom: 2rem;
}

.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: 2px solid #ddd;
    font-size: 1rem;
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
    background-color: #B87333;
    color: #fff;
    border: 2px solid #B87333;
    padding: 1rem 2.5rem;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
    background-color: transparent;
    color: #B87333;
}

/* Product Tabs */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 3rem;
    grid-column: 1 / -1;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    gap: 2rem;
    border-bottom: 2px solid #ddd;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    padding: 1rem 2rem;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom: 3px solid #B87333;
    color: #B87333;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */
.woocommerce-cart .woocommerce {
    padding: 3rem 0;
}

.woocommerce table.shop_table {
    width: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
}

.woocommerce table.shop_table th {
    background-color: #F5F1E8;
    padding: 1rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woocommerce table.shop_table td {
    padding: 1.5rem 1rem;
    border-top: 1px solid #ddd;
}

.woocommerce table.shop_table td.product-thumbnail img {
    width: 80px;
    height: auto;
}

.woocommerce table.shop_table td.product-name a {
    font-weight: 600;
    color: #2C2416;
}

.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal {
    font-weight: 700;
    color: #B87333;
    font-size: 1.125rem;
}

.woocommerce .cart-collaterals {
    margin-top: 3rem;
}

.woocommerce .cart-collaterals .cart_totals {
    background-color: #fff;
    padding: 2rem;
    border: 1px solid #ddd;
}

.woocommerce .cart-collaterals .cart_totals h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.woocommerce .cart-collaterals .cart_totals table {
    width: 100%;
}

.woocommerce .cart-collaterals .cart_totals table th {
    padding: 1rem 0;
    font-weight: 600;
    text-align: left;
}

.woocommerce .cart-collaterals .cart_totals table td {
    padding: 1rem 0;
    text-align: right;
    font-weight: 700;
    color: #B87333;
}

/* ==========================================================================
   Checkout Page
   ========================================================================== */
.woocommerce-checkout .woocommerce {
    padding: 3rem 0;
}

.woocommerce form.checkout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.woocommerce form.checkout h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.woocommerce form.checkout .form-row {
    margin-bottom: 1.5rem;
}

.woocommerce form.checkout .form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.woocommerce form.checkout .form-row input.input-text,
.woocommerce form.checkout .form-row select,
.woocommerce form.checkout .form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

.woocommerce form.checkout .form-row input.input-text:focus,
.woocommerce form.checkout .form-row select:focus,
.woocommerce form.checkout .form-row textarea:focus {
    border-color: #B87333;
    outline: none;
}

.woocommerce #payment {
    background-color: #F5F1E8;
    padding: 2rem;
}

.woocommerce #payment ul.payment_methods {
    list-style: none;
    padding: 0;
}

.woocommerce #payment ul.payment_methods li {
    margin-bottom: 1rem;
}

.woocommerce #payment #place_order {
    width: 100%;
    background-color: #B87333;
    color: #fff;
    border: 2px solid #B87333;
    padding: 1rem 2rem;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce #payment #place_order:hover {
    background-color: #2C2416;
    border-color: #2C2416;
}

/* ==========================================================================
   Messages
   ========================================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid;
}

.woocommerce-message {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.woocommerce-info {
    background-color: #d1ecf1;
    border-color: #0c5460;
    color: #0c5460;
}

.woocommerce-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 968px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .woocommerce div.product {
        grid-template-columns: 1fr;
    }
    
    .woocommerce form.checkout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}
