/* ===================================
   PRODUCT CARD COMPONENT
   Reusable product card styles
   Used in: front-page.php, archive-product.php
   =================================== */

/* Product Card Container */
.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.product-link {
    display: block;
    text-decoration: none;
}

/* Product Image Wrapper */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--bg-light);
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Product Overlay (Add to Cart) */
.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-xs);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.product-card:hover .product-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Add to Cart Button & Select Options Button */
.add-to-cart-btn,
.select-options-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 138, 174, 0.35);
    text-decoration: none;
    line-height: 1;
    box-sizing: border-box;
    font-family: inherit;
}

.add-to-cart-btn:hover,
.select-options-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 138, 174, 0.45);
    color: white;
}

.add-to-cart-btn i,
.select-options-btn i {
    font-size: 0.875rem;
}

/* Product Info */
.product-info {
    padding: var(--spacing-md);
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: 2.8em;
}

/* Product Price */
.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price del {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
    margin-right: 5px;
}

.product-price ins {
    text-decoration: none;
}

/* Sale Badge */
.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 3;
}

/* No Image Placeholder */
.product-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

.product-image.no-image i {
    font-size: 3rem;
    color: #ccc;
}

/* ===================================
   PRODUCT CARD RESPONSIVE
   =================================== */

/* Mobile - 768px */
@media (max-width: 768px) {
    .product-image {
        height: 180px;
    }

    .product-info {
        padding: var(--spacing-sm);
    }

    .product-title {
        font-size: 0.85rem;
        min-height: 2.4em;
    }

    .product-price {
        font-size: 1rem;
    }

    .add-to-cart-btn,
    .select-options-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
    .product-card {
        border-radius: 10px;
    }

    .product-image {
        height: 150px;
    }

    .product-title {
        font-size: 0.8rem;
        min-height: auto;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .product-price del {
        font-size: 0.75rem;
    }

    .add-to-cart-btn,
    .select-options-btn {
        padding: 8px 10px;
        font-size: 0.65rem;
        gap: 4px;
    }

    .add-to-cart-btn i,
    .select-options-btn i {
        font-size: 0.65rem;
    }

    /* Sale Badge */
    .sale-badge {
        padding: 2px 8px;
        font-size: 0.6rem;
        top: 6px;
        left: 6px;
    }
}