/* 
 * BIOSCIENCES KENYA LTD - Premium Product Card Design
 * Optimized for Landing Page and Shop Page
 */

:root {
    --card-bg: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 46, 93, 0.05);
    --card-shadow-hover: 0 20px 40px rgba(0, 46, 93, 0.12);
    --card-radius: 20px;
    --card-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Product Card - Base Container */
.product-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--card-transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--card-shadow);
    position: relative;
    cursor: pointer;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(59, 181, 74, 0.2);
}

/* Image Container */
.product-card__image-container {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.product-card__image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--card-transition);
}

.product-card:hover .product-card__image-wrapper {
    transform: scale(1.05);
}

.product-card__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.05));
    transition: var(--card-transition);
}

/* Badges - Glassmorphism */
.product-card__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.product-card__badge--new {
    background: rgba(59, 181, 74, 0.85); /* brand-green with opacity */
    color: white;
}

.product-card__badge--sale {
    background: rgba(255, 59, 48, 0.85); /* brand-red with opacity */
    color: white;
}

/* Hover Overlay */
.product-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 46, 93, 0.03);
    opacity: 0;
    transition: var(--card-transition);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card:hover .product-card__overlay {
    opacity: 1;
}

.product-card__view-btn {
    width: 48px;
    height: 48px;
    background: #ffffff;
    color: var(--brand-navy-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: var(--card-transition);
    text-decoration: none;
}

.product-card:hover .product-card__view-btn {
    transform: translateY(0);
}

.product-card__view-btn:hover {
    background: var(--brand-green);
    color: white;
}

/* Content Area */
.product-card__content {
    padding: 24px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.product-card__category {
    font-size: 12px;
    font-weight: 700;
    color: #3BB54A;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}

.product-card__title {
    font-size: 19px;
    font-weight: 700;
    color: #002E5D;
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.product-card:hover .product-card__title {
    color: #00ADEF;
}

.product-card__title-link {
    color: inherit;
    text-decoration: none;
}

.product-card__description {
    font-size: 14px;
    color: #616e7a;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Shop Grid Adjustments */
.shop-page .row {
    --bs-gutter-x: 24px;
    --bs-gutter-y: 24px;
}

/* Responsive */
@media (max-width: 991px) {
    .product-card__image-container {
        height: 240px;
    }
}

@media (max-width: 767px) {
    .product-card__image-container {
        height: 140px;
        padding: 10px;
    }
    .product-card__title {
        font-size: 13px;
    }
    .product-card__content {
        padding: 10px 8px 12px;
    }
    .product-card:hover {
        transform: none;
    }
}