/*
 * Styles for marketplace-facing shopping pages — starting with the
 * product grid (home.blade.php's two "New Arrivals"/"In Stock Now"
 * sections). Will grow as product.php/cart.php/checkout.php arrive in
 * later batches and need their own matching component classes.
 */

.product-grid-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.product-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.product-grid-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.product-grid-loading,
.product-grid-empty {
    padding: 2rem 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(5, 1fr); }
}

.product-card {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.product-card-image-link {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
}

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

.product-card-wishlist {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-wishlist.is-active {
    color: #ef4444;
}

.product-card-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
}

.product-card-name {
    font-size: 0.8125rem;
    color: #1e293b;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
}

.product-card-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
}

.product-card-add-btn {
    margin-top: auto;
    padding: 0.5rem;
    border: 1px solid #0f172a;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
}

.product-card-add-btn:hover {
    background: #0f172a;
    color: #ffffff;
}
