/* Product Card - Pure CSS Implementation */

.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    padding: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

/* Badges */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 9999px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.badge-discount {
    background-color: rgba(239, 68, 68, 0.15); /* Pastel Red */
    color: #b91c1c; /* Darker Red for text */
}

.badge-offer {
    background-color: rgba(234, 88, 12, 0.15); /* Pastel Orange */
    color: #c2410c; /* Darker Orange for text */
}

.badge-featured {
    background-color: rgba(79, 70, 229, 0.15); /* Pastel Indigo */
    color: #4338ca; /* Darker Indigo for text */
}

.badge-new {
    background-color: rgba(37, 99, 235, 0.15); /* Pastel Blue */
    color: #1d4ed8; /* Darker Blue for text */
}

/* Image Area */
.product-image-container {
    position: relative;
    aspect-ratio: 1 / 1;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 8px;
    background-color: rgba(249, 250, 251, 0.5); /* gray-50/50 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px; /* Harmonious whitespace */
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 20;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af; /* gray-400 */
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    color: #ef4444;
    background-color: #ffffff;
}

.favorite-btn:active {
    transform: scale(0.9);
}

.favorite-btn i {
    transition: transform 0.2s ease;
}

.favorite-btn:hover i:not(.favorited) {
    transform: scale(1.1);
}

.favorite-btn i.favorited,
.favorite-btn:hover i.favorited {
    color: #ef4444; /* Tailwind red-500 */
}

/* Content Area */
.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.product-laboratory {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background-color: #f1f5f9; /* slate-100 */
    border: 1px solid rgba(226, 232, 240, 0.5);
    color: #64748b; /* slate-500 */
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

.product-laboratory i {
    opacity: 0.5;
}

.product-category {
    font-size: 9px;
    color: #94a3b8; /* slate-400 */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.product-title {
    color: #1f2937; /* gray-800 */
    font-weight: 700;
    font-size: 14px;
    line-height: 1.375;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

/* Price Area */
.product-price-container {
    margin-top: auto;
    margin-bottom: 16px;
}

.product-old-price {
    display: block;
    font-size: 12px;
    color: #9ca3af; /* gray-400 */
    text-decoration: line-through;
}

.price-placeholder {
    height: 16px;
}

.product-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.product-price {
    font-size: 20px; /* Increased size */
    font-weight: 800; /* Increased weight for emphasis */
    color: #005a4b;
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background-color: #005a4b;
    color: #ffffff;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 90, 75, 0.3);
}

.add-to-cart-btn:hover {
    background-color: #00473b;
    box-shadow: 0 10px 15px -3px rgba(0, 90, 75, 0.4);
    transform: translateY(-2px);
}

.add-to-cart-btn:active {
    transform: translateY(0);
    transform: scale(0.95);
}

.add-to-cart-btn i {
    font-size: 12px;
}
