/* ============================================= */
/* --- VARIABLES & BASE STYLES --- */
/* ============================================= */
:root {
    --primary-color: #0056b3; /* A strong, professional blue */
    --dark-text: #212529;
    --light-grey-bg: #f8f9fa;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif; /* Modern, clean font */
    background-color: var(--light-grey-bg);
    color: var(--dark-text);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================= */
/* --- 1. PROFESSIONAL HERO BANNER --- */
/* ============================================= */
#category-hero-banner {
    position: relative;
    padding: 120px 20px 80px;
    text-align: center;
    color: #ffffff;
    background-image: url('/assets/images/vending-showcase-banner.png'); /* YOUR NEW BANNER IMAGE */
    background-size: cover;
    background-position: center;
}

/* Dark overlay to ensure text is always readable */
#category-hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, rgba(15, 32, 39, 0.7), rgba(44, 83, 100, 0.7));
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.banner-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

/* ============================================= */
/* --- 2. PRODUCT LISTING SECTION --- */
/* ============================================= */
#product-listing {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ============================================= */
/* --- 3. PROFESSIONAL PRODUCT ITEM (SOFT CARD) --- */
/* ============================================= */
.product-item {
    background-color: #ffffff;
    border-radius: 8px; /* Subtle rounded corners */
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Allows content to push button down */
}

.product-item:hover {
    transform: translateY(-8px); /* Lifts the card on hover */
    box-shadow: var(--card-shadow-hover);
}

.product-item-image-link {
    padding: 20px; /* Gives whitespace around the image */
}

.product-item img {
    max-width: 100%;
    height: 200px; /* The height you liked from the previous design */
    object-fit: contain;
}

.product-item-content {
    padding: 0 20px 20px; /* Padding for the text and button */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* This makes the content area fill the space */
}

.product-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin: 0 0 15px 0;
    flex-grow: 1; /* This pushes the button to the very bottom */
}

.product-item-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.product-item-button:hover {
    background-color: #004494; /* Darker blue on hover */
}

/* ============================================= */
/* --- 4. RESPONSIVE ADJUSTMENTS --- */
/* ============================================= */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .banner-title {
        font-size: 2.5rem;
    }
}