/* Resetting margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* Ensure the body takes the full height of the viewport */
    display: flex; /* Enable flexbox on the body */
    flex-direction: column; /* Stack the content vertically */
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333333;
    line-height: 1.6;
    flex: 1; /* Allow the content area to grow and fill the available space */
}

header {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    height: auto;
    margin-right: 10px;
}

.store-name h1 {
    font-size: 32px;
    font-weight: bold;
}

.menu-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: #333333;
}

/* Centered category button */
.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Category Button Styling */
.category-button {
    background: none;
    color: #333333;
    border: none;
    padding: 10px 20px; /* Increased padding for better click area */
    font-size: 18px; /* Increased font size */
    font-weight: bold; /* Make the text bold */
    cursor: pointer;
    text-decoration: none;
    position: relative; /* To position the underline */
    transition: color 0.3s ease;
}

/* Underline Styling */
.category-button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333333; /* Default underline color */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Added transform transition */
}

/* Hover effect for category button */
.category-button:hover::after {
    background-color: red; /* Change underline to red on hover */
    transform: scaleX(1.1); /* Scale the underline a little bit */
}

.category-button:hover {
    color: #333333; /* Keep text color unchanged on hover */
}

/* Sidebar Menu */
.side-menu {
    position: fixed;
    top: 60px;
    right: -250px;
    width: 250px;
    height: calc(100% - 60px);
    background-color: #333333;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.3);
    transition: 0.3s ease-in-out;
    padding-top: 20px;
}

.side-menu.open {
    right: 0;
}

.side-menu nav ul {
    list-style: none;
    padding: 0;
}

.side-menu nav ul li {
    padding: 15px;
    text-align: center;
}

.side-menu nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
}

/* Contact Us Page Styles */
.contact-container {
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 50px;
}

.contact-container h2 {
    font-size: 32px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 20px;
}

.contact-container p {
    font-size: 18px;
    line-height: 1.6;
    color: #555555;
}

.contact-info {
    margin-top: 20px;
}

.contact-info a {
    color: #333333;
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    color: red;
    text-decoration: underline;
}

/* Product Container for Category Page */
.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    padding: 20px;
}

/* Product Box Styling */
.product-box {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 280px; /* Set a fixed width for each product box */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-box h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 15px 0;
}

.product-box p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 15px;
}

.product-box strong {
    font-size: 20px;
    color: #333333;
}

/* Responsive Design: 2 products per row on medium screens */
@media (max-width: 768px) {
    .product-container {
        justify-content: center;
    }
    .product-box {
        width: 45%; /* Two products per row */
    }
}

/* Responsive Design: 1 product per row on smaller screens */
@media (max-width: 480px) {
    .product-box {
        width: 90%; /* One product per row */
    }
}


footer {
    background-color: #333333;
    color: #ffffff;
    text-align: center;
    padding: 16px;
    width: 100%;
    margin-top: auto;
}
