{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    color: orange;
    #padding: 2rem 0;
    text-align: center;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    #background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text visibility */
    z-index: 1;
}

header .header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;  /* Align logo and text in the same line */
    justify-content: center; /* Center horizontally */
    gap: 10px; /* Adds space between logo and text */
    flex-direction: row; /* Ensures they stay in a row */
}

header img.logo {
    width: 100px;
    height: auto;
}

.header-subtext {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    text-align: center; /* Centers the text */
    margin-top: 10px; /* Adds spacing below the header */
}

header h1 {
    font-size: 2.5rem;
}

nav {
    display: flex;
    justify-content: center;
    background: #333;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 1rem;
    display: block;
}

nav a:hover {
    background: #ce7e00;
}

.hero {
    #background: url('../img/background1.jpeg') no-repeat center center/cover;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: firebrick;
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.hero h2 {
    font-size: 1.5rem;
    #background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 4rem; /* Added space between sections */
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}


.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.2rem;
    margin: 1rem;
}

.product-card p {
    margin: 0 1rem 1rem;
}

.product-card button {
    background: #ce7e00;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.product-card button:hover {
    background: #45a049;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: #ce7e00;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.cart-modal.active {
    display: flex;
}

.cart-content {
    background: white;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 5px;
    text-align: center;
}

.cart-content h2 {
    margin-bottom: 1rem;
}

.cart-items {
    margin: 1rem 0;
    text-align: left;
}

.cart-items p {
    margin: 0.5rem 0;
}

.cart-total {
    font-weight: bold;
    margin: 1rem 0;
}

.cart-buttons {
    display: flex;
    justify-content: space-between;
}

.cart-buttons button {
    background: #ce7e00;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cart-buttons button:hover {
    background: #45a049;
}

.cart-buttons .close-btn {
    background: #f44336;
}

.cart-buttons .close-btn:hover {
    background: #e53935;
}
