/* style2.css */

/* Reset some basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

/* Add these styles to style3.css */

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 15px;
    width: 80%;
    max-width: 700px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body img {
    width: 80%;
    max-height: 80%;
    margin: 0 auto;
    border-radius: 1px;
    margin-bottom: 10px;
}

.modal-body h2 {
    font-family: "proxima-nova", sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.modal-body p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}


.logo img {
    max-width: 100px;
    height: auto;
    alt: "Company Logo"; /* Added for accessibility */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

nav ul li {
    margin: 0;
}

nav ul li button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

nav ul li button:hover,
nav ul li button:focus {
    background-color: #ddd;

    outline-offset: 2px;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 60px;
}

.infop {
    margin-top: 80px;
    margin-bottom: 40px;
    font-size: 10pt;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    padding: 20px;
    border-radius: 2px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative; /* Added to position the label absolutely */
    transition: box-shadow 0.5s;
}


.custom-label {
    position: absolute;
    top: 30px; /* Adjust as needed to position above the image */
    left: 0px;
    background-color: #3667b0;
    color: #fff;
    padding: 5px 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14x;
    font-weight: 400;
    border-radius: 1px;
    z-index: 1; /* Ensure the label is on top of other content */
    opacity: 1;

}

.product-item:hover .custom-label {
    opacity: 0.3; /* Slight transparency for better appearance */
}

.product-item:hover {

    box-shadow: 1 4px 8px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 15px;
    alt: "Product Image"; /* Added for accessibility */
}

.product-item h2 {
    font-family: "proxima-nova", sans-serif;
    font-size: 18px;
    font-weight: 600;

    margin: 10px 0;
}

.product-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-item .buy-inquire-container {
    display: flex; /* Use flexbox to align items horizontally */
    justify-content: space-between; /* Space between the price and buttons */
    align-items: center; /* Align items vertically in the center */
    margin-top: auto; /* Push container to the bottom of the product card */
}

.product-item .product-price {
    text-align: left; /* Align text to the left */
    margin: 0; /* Remove margin */
}

.product-item .buy-inquire-buttons {
    display: flex; /* Use flexbox for button alignment */
    gap: 10px; /* Space between buttons */
}

.product-item .buy-button,
.product-item .inquire-button {
    display: inline-block; /* Ensure buttons are inline-block */
    background-color: transparent;
    padding: 5px 10px; /* Add padding for better appearance */
    font-size: 14px;
    outline: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-item .buy-button:hover,
.product-item .buy-button:focus,
.product-item .inquire-button:hover,
.product-item .inquire-button:focus {
    text-decoration: underline;
}

/* Ensure the buttons container stretches to take available space */
.product-item .buy-inquire-container .buy-inquire-buttons {
    flex-grow: 1; /* Allow buttons container to take up remaining space */
    display: flex; /* Ensure buttons are aligned horizontally */
    justify-content: flex-end; /* Align buttons to the right */
}


/* Footer CSS */
footer {
    padding: 40px 0;
    text-align: left;
    border-top: 1px solid #ddd;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1 1 200px;
    margin: 10px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
    color: #333;
}

.footer-section p,
.footer-section ul {
    font-size: 14px;
    margin: 5px 0;
    color: #666;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section ul li a,
.footer-section .social-media li a {
    color: #333;
    text-decoration: none;
}

.footer-section ul li a:hover,
.footer-section ul li a:focus,
.footer-section .social-media li a:hover,
.footer-section .social-media li a:focus {
    text-decoration: underline;
}

.social-media {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
}


/* Responsive design */
@media (max-width: 1230px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-price {
        font-size: 14px;
        padding: 4px 8px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.logo img {
    max-width: 80px;
    height: auto;
    alt: "Company Logo"; /* Added for accessibility */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

nav ul li {
    margin: 0;
}

nav ul li button {
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
    padding: 10px;
    transition: background-color 0.3s;
}

nav ul li button:hover,
nav ul li button:focus {
    background-color: #ddd;

    outline-offset: 2px;
}
}
