/* --- Global Styles --- */
/* A reset to ensure consistent styling across browsers */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f2f1ec;
    scroll-behavior: smooth;
    overflow-x: hidden;

}

.container {
    width: 100%;
    max-width: 1200px; /* A reasonable max-width for larger screens */
    margin: 0 auto;
    padding: 0 20px; /* Add horizontal padding */
}

h1,
h2 {
    font-weight: 300;
    margin-bottom: 20px;
}

header {
    position: static;
    width: 100%;
    background-color: #f2f1ec;
    padding: 0 0;
    border-bottom: 1px solid #eee;

}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.logo {
    height: 20vh;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    transition: color 0.3s;
}

nav a:hover {
    color: #888;
}

section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#hero {
    background-image: url('/images/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    min-height: 100vh;
}

#hero h2,
#hero p {
    color: #fff;
}

.button {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 15px 30px;
    margin-top: 30px;
    margin-bottom: 50px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #555;
}

.details-button {
    background-color: transparent;
    border: 1px solid #0056b3;
    color: #0056b3;
    padding: 10px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
}

.details-button:hover {
    background-color: #0056b3;
    color: #fff;
}


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

.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space evenly */
    padding: 1.5rem 1.5rem;
    gap: 1rem; /* Add consistent vertical spacing between items */
}

.product-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    /* Removed fixed height */
}

.product-price {
    /* Removed fixed height */
}

.product-detail {
    /* Removed fixed height */
}

.product-image {
    height: 300px; /* Fixed height for the image container */
    overflow: hidden; /* Hide overflowing parts of the image */
    display: flex;
    justify-content: center;
    align-items: center;
}
.product-card img {
    width: 100%;
    height: 100%; /* Make image take full height of its container */
    object-fit: cover; /* Cover the container while maintaining aspect ratio */
}

.main-image img {
    max-width: 400px;
    max-height: 400px;
    transition: transform 0.3s ease; /* Smooth transition for zoom */
    cursor: zoom-in; /* Indicate zoomable */
    transform-origin: center center; /* Zoom from the center */
}

.main-image img:hover {
    transform: scale(1.5); /* Zoom in by 20% on hover */
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

.product-price span {
    font-size: 1.25rem;
    font-weight: bold;
    color: #0056b3;
}

.product-card .button {
    padding: 10px 15px;
    font-size: 0.9rem;
}


#contact {
    min-height: 20vh;
    background-color: #ffff;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #333;
    color: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

thead th {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #333;
    font-size: 1rem;
    color: #333;
    font-weight: bold;
}

tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

tbody tr:hover {
    background-color: #f7f7f7;
}

.cart-total {
    text-align: right;
    margin-top: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.checkout-btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    background-color: #0056b3;
    color: #fff;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
}

.cart-empty {
    text-align: center;
    font-size: 1.25rem;
    color: #888;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1.1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0056b3;
}

.order-summary {
    background-color: #f7f7f7;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.order-summary h3,
.order-summary h4 {
    margin-top: 0;
}

.order-summary ul {
    list-style: none;
    padding: 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.order-summary li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.order-summary .total {
    font-size: 1.25rem;
    font-weight: bold;
    color: #0056b3;
    margin-top: 1rem;
}

.checkout-btn:hover {
    background-color: #007bff;
}
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.profile-forms {
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.profile-update-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.profile-update-form header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.profile-update-form h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.button-danger {
    background-color: #dc3545;
}

.button-danger:hover {
    background-color: #c82333;
}

/* --- Hamburger Menu Styling --- */
.hidden-checkbox {
    display: none; /* Hide the checkbox from view */
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001; /* Ensure it is on top of other elements */
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}
.form-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 24px; 
    margin-top: 2rem; 
}
.form-group .form-control {
    width: 100%;
}
@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
        flex-direction: column;
    }

    nav ul {
        margin-top: 10px;
        flex-direction: column;
        gap: 0;
    }

    nav li {
        width: 100%;
    }

    nav a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        text-align: center;
    }

    /* Rules for sections */
    section {
        padding: 60px 0;
    }

    /* Rules for the hamburger menu */
    .hamburger-menu {
        display: flex;
    }

    /* Rules for the main navigation menu */
    nav#main-nav {
        display: none;
        width: 100%;
        background-color: #f7f7f7;
        padding-top: 1rem;
        position: absolute;
        top: 100px;
        left: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .hidden-checkbox:checked ~ nav#main-nav {
        display: block;
    }
        .form-grid-layout {
        grid-template-columns: 1fr; 
        gap: 16px;
    }
}