/* Modern WooCommerce Frontend Styles by Homi Sync */

/* 1. Main Container & Background */
.woocommerce .site-main,
.woocommerce.archive .site-main {
    padding: 40px 0;
    background-color: #f8f9fa;
    /* Light gray to make cards pop */
}

/* 2. Product Grid Layout (Modern Card Style) */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Soft, modern shadow */
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Hover Effect */
.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    /* Lift card */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* 3. Product Image */
.woocommerce ul.products li.product a img {
    border-radius: 8px;
    transition: transform 0.4s ease;
    margin-bottom: 15px !important;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    /* Ensure square images for uniformity */
}

/* Zoom effect on image hover */
.woocommerce ul.products li.product:hover a img {
    transform: scale(1.05);
}

/* 4. Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: center;
}

/* 5. Pricing */
.woocommerce ul.products li.product .price {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
    text-align: center;
}

.woocommerce ul.products li.product .price del {
    color: #999;
    font-size: 0.9em;
    font-weight: 400;
    opacity: 0.7;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    font-weight: 700;
    color: #e74c3c;
    /* Sale color */
}

/* 6. "Add to Cart" Button */
.woocommerce ul.products li.product .button {
    background-color: #333333;
    /* Dark modern primary color */
    color: #ffffff !important;
    border-radius: 6px;
    padding: 12px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: auto;
    /* Push to bottom */
    transition: background-color 0.2s ease;
    border: none;
    text-align: center;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #000000;
    transform: none;
    /* Override default WooCommerce movement if any */
}

/* Loading/Adding state */
.woocommerce ul.products li.product .button.loading {
    opacity: 0.7;
    padding-right: 40px;
}

.woocommerce ul.products li.product .button.added::after {
    margin-left: .53em;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .woocommerce ul.products li.product {
        margin-bottom: 20px;
    }
}