/* ==================================================
   PRODUCTS PAGE – INDUSTRIAL GRADE
   ================================================== */

/* ================= PAGE ================= */
.products-page {
    padding: 30px;
    background: #f7f8fa;
    min-height: 100vh;
}

/* ================= HEADER ================= */
.products-header {
    margin-bottom: 28px;
}

.products-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.products-header p {
    font-size: 15px;
    color: #555;
}

/* ================= GRID ================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* ================= CARD ================= */
.product-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px;
    position: relative;
    border: 1px solid #e6e8eb;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

/* ================= IMAGE ================= */
.product-image {
    display: block;
    height: 200px;
    margin-bottom: 10px;
    background: #fafafa;
    border-radius: 6px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ================= INFO ================= */
.product-info {
    text-align: center;
}

/* PRODUCT NAME */
.product-name {
    margin-bottom: 4px;
}

.product-name a {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    line-height: 1.3;
}

.product-name a:hover {
    color: #2874f0;
}

/* ================= PRICE ================= */
.price-box {
    margin: 8px 0;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.mrp {
    font-size: 14px;
    color: #777;
    text-decoration: line-through;
    margin-left: 6px;
}

/* ================= STOCK ================= */
.stock {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.stock.in {
    color: #0a8f08;
}

.stock.out {
    color: #d93025;
}

/* ================= BUTTON ================= */
.details-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #ffd814;
    color: #111;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.details-btn:hover {
    background: #f7ca00;
}

/* ================= WISHLIST ================= */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.wishlist-btn:hover:not(.disabled) {
    transform: scale(1.1);
}

.wishlist-btn.active {
    border-color: #e53935;
}

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

/* ================= EMPTY STATE ================= */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-top: 40px;
}

/* ===============================
   PRODUCTS HEADER
   =============================== */

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* SAME STYLE AS HOME PAGE */
.categories-btn {
    padding: 10px 18px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.25s ease;
}

.categories-btn:hover {
    background: #1d4ed8;
}


/* ================= RESPONSIVE ================= */
@media (max-width: 600px) {
    .products-page {
        padding: 15px;
    }

    .products-header h1 {
        font-size: 22px;
    }
}
