/* Modern Product Card Styles */
.modern-product-card {
    position: relative;
    /* border-radius: 16px; Removed */
    /* overflow: hidden; Removed to allow image shadow if needed, but wrapper handles zoom clip */
    background: transparent;
    box-shadow: none;
    transition: all 0.4s ease-in-out;
    margin-bottom: 30px;
    height: 100%;
}

.modern-product-card:hover {
    box-shadow: none;
    transform: translateY(-5px);
}

.card-link {
    display: block;
    text-decoration: none;
    height: 100%;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px; /* Decreased by 15% */
    padding-top: 0;
    overflow: hidden;
    background-color: transparent; /* Fallback/Loading bg */
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px; /* Padding inside the card so image doesn't touch edges */
    transition: all 0.5s ease-in-out;
    z-index: 1;
    transform: scale(1.4);
}

.modern-product-card:hover .card-image-wrapper img {
    transform: scale(1.5);
    /* filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); Removed */
}

/* Weight Badge - Top Left */
.weight-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: #b79f3c;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 1; /* Always visible */
    transform: none; /* Always visible */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Removed hover effect for badge since it's always visible */
/* .modern-product-card:hover .weight-badge { ... } */

/* Title Overlay - Bottom */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    padding: 20px;
    padding-top: 60px; /* Space for gradient fade */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 16px 16px; /* Match card radius if any, or flat */
}

.modern-product-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.card-title {
    display: none; /* Hide title */
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
    white-space: normal; /* Allow wrapping if needed */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn-view-details {
    display: inline-block;
    padding: 8px 20px;
    background: #b79f3c;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid #b79f3c;
}

.btn-view-details:hover {
    background: transparent;
    color: #b79f3c;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modern-product-card {
        margin-bottom: 20px;
    }
    
    .card-image-wrapper {
        height: 350px; /* Adjusted height for mobile */
    }
    
    .card-overlay {
        padding: 15px;
        padding-top: 40px;
    }
    
    .card-title {
        font-size: 0.95rem;
    }
}
