body {
    display: grid;
    grid-template-columns: 1fr minmax(auto, 1200px) 1fr;
    margin: 0;
    padding: 0;
}

header, .topmenu, .mid-menu {
    grid-column: 2;
    width: 100%;
    max-width: 1200px; /* Set a max-width for the elements */
    margin: 0 auto; /* Center the elements within their container */
}

header img {
    width: 100%;
    height: auto;
    background-color: mediumpurple;
}

/* Styles for top navigation menu */
.topmenu {
    background-color: #f0f0f0; /* Light gray background */
    overflow: hidden;
    font-size: 14px; /* Small text size */
    display: flex;
    justify-content: space-between; /* Links on the left, cart on the right */
    align-items: center;
    padding: 0 20px; /* Padding around links */
}

/* Left-aligned links in the top menu */
.topmenu .left-menu {
    display: flex;
    gap: 20px;
}

.topmenu a {
    display: inline-block;
    padding: 14px 20px; /* Spacing around links */
    text-decoration: none;
    color: #666; /* Light gray text color */
    text-align: center;
}

/* Right-aligned menu with Logout, user info, and cart */
.topmenu .right-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topmenu .right-menu a {
    text-decoration: none;
    color: #666; /* Matching text color */
    font-weight: bold;
}

.topmenu .kurv {
    margin-left: auto; /* Ensures the cart icon stays on the far right */
    color: #090505;
    display: flex;
    align-items: center; /* Aligns icon and text vertically */
}

/* Cart icon styling */
.topmenu .kurv i {
    font-size: 24px; /* Size of cart icon */
    margin-right: 8px; /* Space between icon and text */
}

/* Hover and active styles for links */
.topmenu a:hover {
    background-color: #ddd; /* Light gray background on hover */
    color: black; /* Text color on hover */
}

.topmenu a.active {
    background-color: #4CAF50; /* Active link background color */
    color: white; /* Active link text color */
}

/* Mid-menu styling */
.mid-menu {
    background-color: #f0f0f0;
    padding: 0 5px 0 5px;
}

.mid-menu h1 {
    padding-top: 20px;
}

.mid-menu .dropdown {
    display: flex;
    justify-content: flex-start;
    gap: 150px;
}

.mid-menu .kurv {
    padding: 0 40px 20px 0;
    display: flex;
    justify-content: flex-end;
}

/* Button styling */
.mid-menu button[type=submit] {
    width: 20%;
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Additional button styles */
.delete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.update-btn {
    background-color: #e39d08;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.update-btn:hover {
    background-color: #b47509;
}

.total-price-container {
    text-align: right;
    margin-right: 50px;
    margin-bottom: 10px;
}

.mb-3 {
    width: 400px;
    margin-right: auto;
    margin-left: auto;
}

.valg-container {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    align-items: center;
}
