/*
Theme Name: My Prices
Template: amaz-store
Description: Child theme for Amaz Store
Version: 1.0.0
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Source+Sans+Pro:wght@300;400;600&display=swap');

/* Product card outer border - compact */
.product-card-outer {
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 12px;
    background: #ffffff;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

/* Product card inner border */
.product-card-inner {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    background: #fdfdfd;
    flex: 1;
    margin-bottom: 8px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 80px;
    position: relative;
}

/* Product image */
.woocommerce ul.products li.product img {
    margin-bottom: 10px;
    border-radius: 5px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* Product title with better font and color */
.woocommerce-loop-product__title {
    margin-bottom: 6px !important;
    font-size: 0.95em !important;
    color: #2d3748 !important; /* Softer dark gray instead of black */
    text-align: center;
    line-height: 1.4;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
}

/* Product price with better styling */
.product-price {
    margin: 8px 0 0 0 !important;
    font-weight: 600 !important;
    font-size: 1.1em !important;
    color: #3047f4 !important;
    text-align: center;
    font-family: 'Inter', sans-serif !important;
}

/* Hidden product description */
.product-description-hover {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 8px;
}

.product-desc-text {
    font-size: 0.85em !important;
    color: #4a5568 !important; /* Medium gray for better readability */
    line-height: 1.5;
    text-align: center;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 400 !important;
    padding: 5px 0;
}

/* Add to cart button in outer area */
.product-card-button {
    text-align: center;
    transition: all 0.3s ease;
}

.woocommerce .product-card-button .button.add_to_cart_button,
.woocommerce .product-card-button .button.product_type_simple {
    width: 150px !important;
    padding: 8px 5px !important;
    margin: 0 auto !important;
    display: block !important;
    background-color: #3047f4 !important;
    color: white !important;
    border-radius: 6px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    border: none !important;
    font-size: 0.85em !important;
    font-family: 'Inter', sans-serif !important;
}

.woocommerce .product-card-button .button.add_to_cart_button:hover,
.woocommerce .product-card-button .button.product_type_simple:hover {
    background-color: #2338c7 !important;
    transform: translateY(-1px);
}

/* Rating stars */
.woocommerce .star-rating {
    margin: 4px auto !important;
    display: block !important;
}

/* Hide duplicate prices */
.woocommerce .products li.product .price {
    display: none !important;
}

/* Sale flash */
.woocommerce span.onsale {
    background: #3047f4 !important;
    color: white !important;
    border-radius: 3px !important;
    padding: 2px 6px !important;
    font-size: 0.75em !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
}

/* ===== HOVER EFFECTS ===== */
.woocommerce ul.products li.product:hover .product-card-outer {
    border-color: #3047f4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(48, 71, 244, 0.15);
}

.woocommerce ul.products li.product:hover .product-card-inner {
    border-color: #3047f4;
    background: #f8faff;
    padding: 15px 10px; /* More padding on hover */
    min-height: 140px; /* Expanded height for description */
}

.woocommerce ul.products li.product:hover .product-description-hover {
    opacity: 1;
    max-height: 100px; /* Space for description to appear */
    margin-top: 10px;
}

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

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: #1a202c !important; /* Slightly darker on hover for emphasis */
}

.woocommerce ul.products li.product:hover .product-card-button {
    transform: translateY(2px);
}

/* Responsive design */
@media (max-width: 768px) {
    .product-card-outer {
        padding: 10px;
    }
    
    .product-card-inner {
        padding: 8px;
        margin-bottom: 6px;
    }
    
    .woocommerce ul.products li.product:hover .product-card-inner {
        padding: 12px 8px;
        min-height: 120px;
    }
    
    .product-desc-text {
        font-size: 0.8em !important;
    }
    
    .woocommerce .product-card-button .button.add_to_cart_button,
    .woocommerce .product-card-button .button.product_type_simple {
        width: 140px !important;
        padding: 7px 4px !important;
    }
}

