/* Products Page — override & enhancement styles */

/* Product grid — responsive (components.css base uses auto-fill) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

/* Product card hover enhancement */
.product-card {
    background: #1a1a1d;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Product image area */
.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #2a2a2f;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Badges */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: #4ade80;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.product-badge.hot {
    background: #f97316;
    color: #fff;
}

/* Product info */
.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: #4ade80;
}

.btn-buy {
    padding: 8px 16px;
    background: #4ade80;
    color: #000;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-buy:hover {
    background: #22c55e;
}

/* Pagination */
.products-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    padding: 10px 20px;
    background: #1a1a1d;
    border: 2px solid #333;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover,
.page-btn.active {
    background: #4ade80;
    border-color: #4ade80;
    color: #000;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty state */
.no-products-msg {
    text-align: center;
    padding: 40px;
    color: #888;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
