/* ============================================================
   PRODUCT CARDS — Used in grids and carousels
   ============================================================ */

/* Card container — flex column with hover lift */
.product-card {
    background: var(--color-bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

/* Hover — lifts card and highlights border */
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

/* Image container — fixed aspect ratio (3:4) */
.product-image-container {
    position: relative;
    padding-top: 133%;
    overflow: hidden;
    background-color: var(--color-bg-surface-2);
}

/* Product image — fills container, zooms on hover */
.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.product-card:hover .product-image { transform: scale(1.08); }

/* Text content area below the image */
.product-info {
    padding: var(--space-4);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Product name */
.product-title {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
    color: var(--color-text-main);
}

/* Bullet list of product details */
.product-desc {
    list-style: disc inside;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
    flex-grow: 1;
}

/* Price — gradient text effect */
.product-price {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-3);
}

/* Order button — full width at the bottom */
.btn-order {
    width: 100%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: white;
    text-align: center;
    border-radius: var(--radius-md);
    padding: var(--space-3);
    border: none;
    font-weight: var(--font-weight-semibold);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-normal);
}
.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* Product label — e.g. "New", "Hot", "Sale" */
.product-label {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: white;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.label-new  { background: var(--color-accent); }        /* Sky blue */
.label-hot  { background: var(--color-error); }          /* Red */
.label-sale { background: var(--color-success); }        /* Green */

/* Stack multiple labels */
.product-label + .product-label {
    left: auto;
    right: var(--space-3);
}

/* Original price strikethrough for sale items */
.original-price {
    text-decoration: line-through;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-right: var(--space-2);
    -webkit-text-fill-color: var(--color-text-muted);
}
