/* General styling for the logo area */
.logo-area {
    padding: 10px 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Grid container to divide the header into 3 columns */
.header-container {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;  /* 1fr for left and right, 3fr for middle (centered) */
    align-items: center;                 /* Vertically centers the items */
    max-width: 100%;                      /* Ensures the container takes the full width */
    padding: 0 20px;                     /* Adds padding to the sides */
}

/* Left column (could be empty or have extra content) */
.left-column {
    display: flex;
    align-items: left; /* Vertically aligns the logo and text */
    justify-content: center; /* Centers the logo and text horizontally */
    gap: 10px; /* Adds space between the text and the logo */
}

/* Middle column (Logo and Text) */
.middle-column {
    
}

/* Styling for the left text ("Support for") and right text ("Printers") */
.left-text, .right-text {
    font-size: 18px;
    font-weight: bold;
    color: #004fda;
}

/* Container for the logo */
.hp-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px; /* Limits the logo's width */
    margin: 0 10px; /* Adds spacing between the text and the logo */
}

/* Styling for the logo */
.hp-logo {
    max-width: 100%;
    height: auto;
}

/* Right column (Header Menu) */
.right-column {
    text-align: right;
}

.header-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-menu li {
    margin-left: 20px; /* Space between the menu items */
}

.header-menu a {
    text-decoration: none;
    font-size: 16px;
    color: #333;
    padding: 10px;
    transition: background-color 0.3s;
}

.header-menu a:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #004fda;
}

/* General Styles for the Content */
.product-selection {
    background-color: #fff;
    padding: 40px 20px;
    margin: 30px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 10px;
}

.search-container {
    margin-bottom: 30px;
}

.search-input {
    padding: 12px;
    width: 70%;
    max-width: 400px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Style for the search button (now <a> tag) */
.search-btn-link {
    text-decoration: none;  /* Remove underline from link */
}

.section-title {
    font-size: 2em;
    margin-bottom: 40px;
    color: #333;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* Keep 4 columns */
    gap: 20px;
    justify-items: center;
    padding: 0 20px;
    align-items: stretch;  /* Ensures all grid items stretch to the same height */
}

.product-item {
    display: flex;
    flex-direction: column;  /* Stack the image and text vertically */
    justify-content: center; /* Center the content vertically */
    align-items: center;     /* Center the content horizontally */
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    width: 100%;
    max-width: 250px;
    text-align: center;
    height: 100%; /* Ensures each item takes the full height of the grid cell */
}

.product-item:hover {
    transform: scale(1.05);
}

.product-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.product-name {
    font-size: 1.2em;
    color: #333;
    margin-top: 10px;
}

.search-btn-link-epson {
    text-decoration: none;
}

.search-btn-hp {
    padding: 12px 20px;
    background-color: #004fda;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 10px;
    display: inline-block;  /* Ensures the <a> tag behaves like a block-level element */
    text-align: center;  /* Centers the text */
}

.search-btn-hp:hover {
    background-color: #0043b6;
}

@media screen and (max-width: 1200px) {
    .product-list {
        grid-template-columns: repeat(3, 1fr);  /* 3 columns for medium screens */
    }
}

@media screen and (max-width: 992px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);  /* 2 columns for smaller screens */
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        grid-template-columns: 1fr;  /* Adjust the grid for smaller screens */
    }

    /* Stack the middle column vertically for smaller screens */
    .left-column {
        flex-direction: row;  /* Stack logo and text */
        gap: 5px;                /* Reduce space between the elements */
        justify-content: center;
    }

    .left-text, .right-text {
        font-size: 16px;  /* Slightly reduce the font size */
    }

    .hp-logo-container {
        margin: 10px 0;  /* Add some space around the logo */
    }

    /* Adjust the menu to fit smaller screens */
    .header-menu {
        display: none;  /* Hide menu on small screens, you can replace this with a toggleable menu if needed */
    }

    .search-container {
        display: flex;
        width: 100%;
        flex-direction: column; /* Stack input and button vertically on smaller screens */
        align-items: center; /* Center the items horizontally */
    }

    .product-list {
        grid-template-columns: 1fr;  /* 1 column for mobile screens */
    }

    .search-input {
        width: 90%;  /* Make the input field take up 90% of the screen width on smaller screens */
    }

    .search-btn-link {
        margin-top: 5px;
        width: auto;  /* Adjusts the button size to fit the text */
        padding: 10px 15px;  /* Adjusts the button padding */
    }
}
@media (max-width: 480px) {
    .header-container {
        grid-template-columns: 1fr;  /* Equal width for each column */
        padding: 0 10px;  /* Reduce padding on small screens */
    }

    .left-column {
        flex-direction: column;  /* Stack logo and text vertically */
        justify-content: center;
    }

    .left-text, .right-text {
        font-size: 14px;  /* Further reduce font size for very small screens */
    }

    .hp-logo-container {
        max-width: 200px;  /* Make the logo smaller */
    }

    /* Adjust menu visibility for small screens */
    .header-menu {
        display: none;  /* Display menu as block for small screens */
        text-align: center;
        margin-top: 10px;  /* Add some margin above the menu */
    }

    .header-menu ul {
        display: block;  /* Stack the menu items vertically */
    }

    .header-menu li {
        margin-left: 0;
        margin-bottom: 10px;  /* Space between the menu items */
    }

    .header-menu a {
        font-size: 14px;  /* Adjust font size */
        padding: 8px;
    }
}