/* 🛍️ Product Card Unified Styles */

.product-card { 
    transition: all 0.3s ease; 
    cursor: pointer;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); 
}

.product-image-container {
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

/* Out of Stock Ribbon - شريط قطري */
.out-of-stock-ribbon {
    position: absolute;
    top: 18px;
    right: -28px;
    background: #dc2626;
    color: white;
    padding: 5px 40px;
    font-size: 10px;
    font-weight: bold;
    transform: rotate(45deg);
    transform-origin: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    white-space: nowrap;
    direction: rtl;
    letter-spacing: 0.5px;
}

.eye-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D6C1A6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.eye-icon:hover {
    background: #FFB6C1;
    color: white;
}

.add-to-cart-btn {
    background: #f1a9c2;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
}

.add-to-cart-btn:hover {
    background: #e891b2;
    transform: translateY(-2px);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Line clamp for title */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .product-card {
        border-radius: 12px;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }
}
