/* ==============================================
   TARJETAS DE PRODUCTOS - UX FASE 2 (REPARACION)
   ============================================== */

/* Layout & Container */
.single_product_item {
    margin-bottom: 24px; /* More breathing room between rows */
}

.single_product_list {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px; /* Clean, modern radius */
    height: 100%; /* Fill the column height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden; /* Contains children */
    position: relative;
}

/* Modern Hover Effect - Lift & Shadow (Better than border change) */
.single_product_list:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); /* Soft but deep shadow */
    transform: translateY(-5px); /* Clear "Lift" effect */
    border-color: #dcdcdc;
    z-index: 2; /* Bring to front */
}

/* Image Area */
.product_img_container {
    padding: 1rem;
    background-color: #fff;
    position: relative;
    /* Height is controlled by inline style, but we ensure flexibility */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumbnail-img {
    transition: transform 0.4s ease;
    will-change: transform;
    max-width: 100%;
}

.single_product_list:hover .product-thumbnail-img {
    transform: scale(1.06); /* Subtle zoom */
}

/* Content Area */
.single_product_list .py-3.px-1 {
    padding: 16px !important; /* Unified padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Typography */
.title-product {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #2c2c2c !important;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    min-height: 42px; /* Ensure 2 lines alignment */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.single_product_list:hover .title-product {
    color: #d32f2f !important; /* Brand color on hover */
}

/* Rating */
.product_review_star {
    margin-bottom: 8px;
}

/* Price */
.price {
    font-size: 1.1rem;
    color: #d32f2f;
    margin-bottom: 0;
}

.old_price {
    font-size: 0.85rem;
    color: #999;
}

/* Buttons */
.btn-add-to-cart {
    padding: 0 16px 16px 16px !important;
    margin-top: auto; /* Push to bottom */
}

#add_to_cart_btn_card {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    background-color: #f5f5f5; /* Light default */
    color: #333;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.single_product_list:hover #add_to_cart_btn_card {
    background-color: #d32f2f;
    border-color: #d32f2f;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(211, 47, 47, 0.2);
}
