/* ========================================
   Modern Product Cards - Home Page
   ======================================== */

/* Product Card Modern */
.product-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card-modern:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(255, 71, 72, 0.2);
}

/* Product Image Wrapper */
.product-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-image-wrapper .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-modern:hover .product-image {
    transform: scale(1.15) rotate(2deg);
}

/* Badges */
.product-badge-sale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FF4748 0%, #FF6B6B 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 71, 72, 0.4);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-badge-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-badge-new {
    position: absolute;
    top: 45px;
    left: 10px;
    background: linear-gradient(135deg, #17A2B8 0%, #3BBFCF 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Product Content Modern */
.product-content-modern {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-category-tag {
    color: #FF4748;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-title-modern {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    /*min-height: 2.4rem;*/
}

.product-title-modern a {
    color: #063D5B;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title-modern a:hover {
    color: #FF4748;
}

.product-sku-tag {
    font-size: 0.7rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Price Box */
.product-price-box {
    margin: 0;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.price-old {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.price-new {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FF4748;
    line-height: 1;
}

.price-current {
    font-size: 1.4rem;
    font-weight: 800;
    color: #063D5B;
    line-height: 1;
}

/* Meta Row */
.product-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.75rem;
}

.meta-item-modern {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
}

.meta-item-modern i {
    color: #FF4748;
    font-size: 0.85rem;
}

/* Actions Row */
.product-actions-row {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-view-product {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #063D5B;
    background: transparent;
    color: #063D5B;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.btn-view-product:hover {
    background: #063D5B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 61, 91, 0.3);
}

.btn-order-product {
    flex: 1;
    padding: 8px 12px;
    background: linear-gradient(135deg, #FF4748 0%, #FF6B6B 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(255, 71, 72, 0.3);
}

.btn-order-product:hover {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4748 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 72, 0.4);
}

/* Primary Large Button */
.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #FF4748 0%, #FF6B6B 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 71, 72, 0.3);
}

.btn-primary-large:hover {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4748 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 71, 72, 0.4);
}

/* Empty States */
.empty-products,
.empty-projects {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.empty-products i,
.empty-projects i {
    font-size: 6rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.empty-products h4,
.empty-projects h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #063D5B;
    margin-bottom: 10px;
}

.empty-products p,
.empty-projects p {
    font-size: 1.1rem;
    color: #999;
}

/* Project Card Updates */
.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(138, 196, 63, 0.2);
}

.project-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-image-placeholder {
    width: 100%;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #999;
}

.project-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 10px;
}

.project-content {
    padding: 25px;
}

.project-category {
    display: inline-block;
    background: linear-gradient(135deg, #8AC43F 0%, #9FD54E 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.project-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #063D5B;
    margin-bottom: 15px;
    line-height: 1.4;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-meta i {
    color: #FF4748;
}

.project-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.btn-link {
    color: #FF4748;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #FF6B6B;
    gap: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-image-wrapper {
        height: 220px;
    }
    
    .product-content-modern {
        padding: 20px;
    }
    
    .product-title-modern {
        font-size: 1rem;
    }
    
    .price-new,
    .price-current {
        font-size: 1.5rem;
    }
    
    .product-actions-row {
        flex-direction: column;
    }
    
    .btn-primary-large {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .project-image,
    .project-image-placeholder {
        height: 220px;
    }
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card-modern,
.project-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.product-card-modern:nth-child(1) { animation-delay: 0.1s; }
.product-card-modern:nth-child(2) { animation-delay: 0.2s; }
.product-card-modern:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

/* Hover Effects for Icons */
.product-badge-sale i,
.product-badge-featured i,
.product-badge-new i {
    display: inline-block;
    transition: transform 0.3s ease;
}

.product-card-modern:hover .product-badge-sale i,
.product-card-modern:hover .product-badge-featured i,
.product-card-modern:hover .product-badge-new i {
    transform: rotate(360deg);
}

/* Loading State */
.product-card-modern.loading,
.project-card.loading {
    position: relative;
    overflow: hidden;
}

.product-card-modern.loading::after,
.project-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}