/* Product Card Component Styles */
.product-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 2px solid var(--bg-tertiary);
    background-color: var(--bg-card);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 450px;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--accent-pink);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-image-container {
    width: 100%;
    height: 280px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    position: relative;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.product-card-imagePlaceholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 3rem;
}

.product-card-content {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 170px;
    gap: 8px;
}

.product-card-content h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-card-old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.product-card-current-price {
    color: var(--accent-pink);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Product Grid Styles — mobile-first cascade */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* Tablet and mobile landscape — 2 columns */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile portrait — 1 column, overrides landscape at narrow widths */
@media (max-width: 768px) and (orientation: portrait) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 20px;
    }
    
    .product-card {
        height: auto;
    }
    
    .product-card-image-container {
        height: 250px;
    }
}

/* Mobile small portrait */
@media (max-width: 480px) and (orientation: portrait) {
    .product-card {
        height: auto;
    }
    
    .product-card-image-container {
        height: 200px;
    }
    
    .product-card-content {
        padding: 0 15px 15px;
        min-height: 150px;
    }
    
    .product-card-content h3 {
        font-size: 1.1rem;
    }
    
    .product-card-description {
        font-size: 0.9rem;
    }
    
    .product-card-current-price {
        font-size: 1.1rem;
    }
}
