* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
}
.top-bar {
    background-color: #ffcc00;
    padding: 10px 0;
}
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.navbar-header {
    display: flex;
    align-items: center;
    width: 100%;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    margin-right: 40px;
}
.contact-info {
    display: flex;
    gap: 20px;
    margin-left: auto;
}
.contact-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #000;
}
.contact-item i {
    margin-right: 5px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}
.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}
.nav-links li a:hover {
    color: #ddd;
}
.navbar {
    background-color: #444;
    padding: 10px 0;
}
.get-quote {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-left: 20px;
}
.get-quote:hover {
    background-color: #0056b3;
}
.hero {
    text-align: center;
    padding: 30px 0;
    background-color: #f9f9f9;
}
.hero h1 {
    font-size: 36px;
    color: #333;
}
.hero p {
    font-size: 18px;
    color: #555;
}
.search-container {
    text-align: center;
    margin: 40px auto;
    max-width: 500px;
}
.search-container input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    border: 2px solid #ddd;
    border-radius: 5px;
}
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
    max-width: 1600px;
    margin: 40px auto;
    padding: 20px;
}
.product-item {
    position: relative; 
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: calc(20% - 20px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.discount-badge {
    position: absolute;
    top: 28px;
    left: 2px; 
    background: linear-gradient(135deg, #ff6f61, #d9534f); 
    color: #fff;
    padding: 6px 15px; 
    font-weight: bold;
    font-size: 1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: rotate(-30deg);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.discount-badge::before {
    content: "Spar:"; 
    margin-right: 5px;
    font-size: 1.2em; 
}
.discount-badge::after {
    content: "%"; 
    margin-left: 3px;
    font-size: 1em;
}
.product-item img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    border-radius: 8px; 
    margin-bottom: 10px; 
}
.product-item h2 {
    font-size: 1.5em;
    color: #007bff;
    text-align: center;
    margin-bottom: 10px;
}
.product-item h2 a {
    color: #007bff;   
    text-decoration: none;
}
.product-item h2 a:hover {
    color: #007bff;   
    text-decoration: underline;
}
.product-item p {
    font-size: 1em;
    margin: 5px 0;
}
.product-item .btn-buy {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}
.product-item .btn-buy:hover {
    background-color: #0056b3;
}
.footer-container {
    text-align: center;
    padding: 20px;
    background-color: #007bff;
    color: #fff;
    margin-top: 40px;
}
.footer-container p {
    margin: 0;
}
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}
.category {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-weight: bold;
}
.category:hover {
    background: #0056b3;
}
.discount {
    color: #d9534f;
    font-weight: bold;
    margin-left: 5px;
}
.pagination {
    text-align: center;
    margin-top: 20px;
}
.pagination-link {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.pagination-link:hover {
    background-color: #0056b3;
}
.pagination-link.active {
    background-color: #0056b3;
    font-weight: bold;
}
.category-link {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-weight: bold;
}
.category-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #0056b3, #004080);
}
.subcategories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.subcategory-link {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-weight: bold;
}

.subcategory-link:hover {
    background: #0056b3;
}
#editCategoryPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 10px;
    padding: 20px;
    display: none;
}

.popup-content {
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.popup-content form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#editCategoryPopup label {
    font-weight: bold;
}

#editCategoryPopup select {
    padding: 10px;
    font-size: 1em;
}

#editCategoryPopup button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#editCategoryPopup button:hover {
    background-color: #0056b3;
}

/* Backdrop for popup */
#popupBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}
.breadcrumb-container {
    margin: 20px 0;
}

.breadcrumb {
    font-size: 14px;
    color: #555;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-container .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
#moveProductsPopup {
    position: fixed; /* Sørg for, at popuppen bliver i centrum */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Flyt popup til midten */
    width: 400px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Sørg for, at popuppen er foran andre elementer */
    border-radius: 10px;
    padding: 20px;
    display: none;
}

#moveProductsBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999; /* Baggrund bag popuppen */
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}