/*
Theme Name: Sello Theme
Author: Gemini
Description: A modern e-commerce theme based on the Sello design.
Version: 1.3
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
Tags: e-commerce, custom-header, custom-logo, featured-images, one-column
Text Domain: sellotheme
*/

/* General WooCommerce Styles */
.woocommerce ul.products li.product {
    text-align: center;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    position: relative;
    padding: 0;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Flexbox structure for product cards */
.woocommerce ul.products li.product .product-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
}

.woocommerce ul.products li.product .product-image-link {
    display: block;
    margin-bottom: 1rem;
}

/* This is the key fix for the image size */
.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: auto !important;
    border-radius: 0.5rem;
    margin-left: auto;
    margin-right: auto;
}

.woocommerce ul.products li.product .product-details {
    flex-grow: 1;
}

.woocommerce ul.products li.product .product-card-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #374151;
}

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

.woocommerce ul.products li.product .price {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0.5rem 0;
}

/* === UPDATED BUTTON STYLES START === */
.woocommerce ul.products li.product .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #4f46e5;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border: 1px solid transparent;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #4338ca;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
}
/* === UPDATED BUTTON STYLES END === */

.woocommerce span.onsale {
    background-color: #ef4444;
    color: white;
    border-radius: 9999px;
    min-height: 2.5rem;
    min-width: 2.5rem;
    padding: 0.5rem;
    font-size: 0.875rem;
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

/* Single Product Page Styles */
.woocommerce div.product p.price, .woocommerce div.product span.price {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
}

.woocommerce div.product .woocommerce-product-gallery {
    border-radius: 0.5rem;
    overflow: hidden;
}

.woocommerce div.product form.cart .quantity .qty {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    width: 4rem;
}

.woocommerce div.product form.cart .button {
    background-color: #4f46e5;
    color: white;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.woocommerce div.product form.cart .button:hover {
    background-color: #4338ca;
}

.woocommerce .product_meta {
    margin-top: 1.5rem;
}

/* Product Tabs (Description, Reviews) */
.woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.woocommerce-tabs ul.tabs li {
    display: inline-block;
    margin-right: 1.5rem;
    border: none;
    background: none;
    padding: 0;
}

.woocommerce-tabs ul.tabs li::before {
    display: none;
}

.woocommerce-tabs ul.tabs li a {
    padding: 0.5rem 0;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.woocommerce-tabs .panel {
    padding-top: 1rem;
    color: #4b5563;
}

.woocommerce-tabs .panel h2, .woocommerce-tabs .panel h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.woocommerce-tabs .panel p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Related Products (Trending) Section */
.related.products > h2 {
    font-size: 1.875rem; /* 30px */
    font-weight: 700;
    margin-top: 4rem; /* 64px */
    margin-bottom: 2rem; /* 32px */
    text-align: center;
}

.related.products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}