/* Modern Product Cards */
.product-item {
    margin-bottom: 30px;
    perspective: 1000px;
}

.product {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.product-grid {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.product:hover .product-grid {
    transform: scale(1.05);
}

.product-grid .inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.product:hover .product-grid .inner {
    opacity: 1;
}

.product-grid .inner p {
    margin: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.product:hover .product-grid .inner p {
    transform: translateY(0);
}

.product-grid .inner .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #fff;
    color: #6366f1;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.product-grid .inner .icon:hover {
    background: #6366f1;
    color: #fff;
    transform: scale(1.1);
}

.desc {
    padding: 20px;
    text-align: center;
    background: #fff;
    position: relative;
    z-index: 2;
}

.desc h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.desc h3 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.desc h3 a:hover {
    color: #6366f1;
}

.product .desc .product-description {
    margin: 10px 0 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price {
    display: block;
    color: #6366f1;
    font-weight: 700;
    font-size: 18px;
    margin-top: 10px;
}

/* Warning badge for missing categories */
.desc div[style*="background: #fff3cd"] {
    background: #fff3cd !important;
    border: 1px solid #ffc107 !important;
    color: #856404 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    margin-bottom: 15px !important;
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-grid {
        height: 220px;
    }

    .desc {
        padding: 15px;
    }

    .product .desc .product-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .desc h3 {
        font-size: 16px;
    }
}
