/* Product Card - Minimal Design */

.product-card-minimal {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-minimal:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Product Image */
.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #f8f9fa;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-minimal:hover .product-image {
    transform: scale(1.05);
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(238, 90, 111, 0.4);
    z-index: 10;
}

/* Product Name */
.product-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 12px 16px 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
}

/* Product Price Section */
.product-price-section {
    padding: 0 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-original {
    font-size: 0.85rem;
    color: #95a5a6;
    text-decoration: line-through;
    font-weight: 400;
}

.price-final {
    font-size: 1.35rem;
    color: #e74c3c;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Action Buttons */
.product-actions-minimal {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.btn-buy-now,
.btn-view-detail,
.btn-out-of-stock {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

/* Buy Now Button */
.btn-buy-now {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #357abd 0%, #2868a8 100%);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
    transform: translateY(-2px);
}

.btn-buy-now:active {
    transform: translateY(0);
}

/* View Detail Button */
.btn-view-detail {
    background: white;
    color: #4a90e2;
    border: 2px solid #4a90e2;
}

.btn-view-detail:hover {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

/* Out of Stock Button */
.btn-out-of-stock {
    background: #ecf0f1;
    color: #95a5a6;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-name {
        font-size: 0.9rem;
        margin: 10px 12px 6px;
    }

    .price-final {
        font-size: 1.2rem;
    }

    .product-price-section {
        padding: 0 12px 10px;
    }

    .product-actions-minimal {
        padding: 0 12px 12px;
        gap: 6px;
    }

    .btn-buy-now,
    .btn-view-detail,
    .btn-out-of-stock {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .product-card-minimal {
        border-radius: 10px;
    }

    .product-name {
        font-size: 0.85rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .price-final {
        font-size: 1.1rem;
    }

    .btn-buy-now,
    .btn-view-detail {
        padding: 10px;
        font-size: 0.85rem;
    }

    .discount-badge {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* Grid Layout Adjustments */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card-minimal {
    animation: fadeInUp 0.4s ease-out;
}
