/* ======================= Page Header Section ======================= */
.page-header {
    /* Updated with your specific reddish gradient and background */
    background-image: linear-gradient(rgb(182 3 36 / 66%), rgb(182 3 3 / 64%)), url('https://www.popsci.com/wp-content/uploads/2021/09/28/WiFi-6-Routers-header.jpg?quality=85');
    background-size: cover;
    background-position: center 30%;
    padding: 140px 0 80px 0;
    text-align: center;
    color: var(--white);
}
.page-header h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.page-header p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; opacity: 0.9; }

/* ======================= Product Grid ======================= */
.product-grid {
    display: grid;
    /* Changed to 280px for better mobile fit */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    position: relative;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures cards in a row are same height */
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.07);
    border-color: var(--primary-blue);
}

.product-badge {
    position: absolute;
    top: 20px; left: 20px;
    background: var(--primary-blue);
    color: #fff;
    font-size: 0.7rem;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 1;
}

/* ======================= Product Image ======================= */
.product-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 10px;
}

.product-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

/* ======================= Product Info ======================= */
.product-info .category {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin: 5px 0 10px 0;
    color: #1e293b;
    font-weight: 700;
    line-height: 1.3;
}

/* ======================= KEY FEATURES STYLING ======================= */
.key-features {
    margin: 10px 0 20px 0;
    flex-grow: 1; /* This pushes the price/buttons to the bottom */
}

.key-features strong {
    font-size: 0.85rem;
    color: #1e293b;
    display: block;
    margin-bottom: 8px;
}

.key-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-features li {
    font-size: 0.8rem;
    color: #64748b;
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Custom Red Bullet Point */
.key-features li::before {
    content: "•";
    color: var(--primary-blue); /* Uses your brand red */
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ======================= Stock & Availability ======================= */
.stock-check {
    margin-bottom: 15px;
}

.stock-link {
    font-size: 0.8rem;
    color: #036DB6;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.stock-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* ======================= Price & Order Button ======================= */
.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
}

.btn-order {
    background: #25d366; /* WhatsApp Green */
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-order:hover {
    background: #128c7e;
    transform: scale(1.03);
}

/* ======================= Mobile Adjustments ======================= */
@media (max-width: 480px) {
    .product-grid {
        gap: 1.5rem;
    }
    .product-card {
        padding: 20px;
    }
    .price {
        font-size: 1.1rem;
    }
}