/* ================== GLOBAL ================== */
body, html {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background: #fdfbf6; /* blød creme baggrund */
    color: #333;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

main {
    flex-grow: 1;
}


/* ================== HEADER ================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 2rem 3rem;
    background: #fffdfa;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    transition: transform 0.3s ease;
    z-index: 999;
}

header.hide {
    transform: translateY(-100%); /* skub header helt op */
}

h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #222;
    font-weight: 700;
}

.tagline {
    margin: auto;
    font-size: 1.2rem;
    color: #777;
}

/* ================== LANGUAGE & CART ================== */
.header-right {
    position: relative;  /* ← ændret: ligger nu i headeren */
    display: flex;
    align-items: center;
    gap: 1rem;
    background: transparent; /* ingen boks */
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    z-index: 1000;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 14px;
}

.language-switch a {
    color: #333;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.language-switch .active {
    font-weight: bold;
    color: #bfa46f; /* gylden luksusfarve */
    background-color: rgba(191, 164, 111, 0.15);
}

.cart {
    font-size: 1.5rem;
    color: #444;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}

.cart:hover {
    transform: scale(1.1);
}

.cart-count-rød, .cart-count-grå {
    color: white;
    border-radius: 50%;
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    position: absolute;
    top: -10px;
    right: -10px;
}

.cart-count-rød { background-color: rgba(255, 0, 0, 0.9); }
.cart-count-grå { background-color: #666; }

/* ================== PRODUKTOVERSIGT ================== */
.produkt-oversigt {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.produkt-card {
    background: linear-gradient(145deg, #fffdfa, #f9f5eb);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.4s, box-shadow 0.4s;
}

.produkt-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.produkt-card img {
    filter: brightness(180%);
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.produkt-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #5a4632;
    font-size: 1.3rem;
}

.produkt-card p {
    font-weight: bolder;
    font-size: 1rem;
    color: #666;
}

.produkt-card a {
    display: inline-block;
}

/* ================== FOOTER ================== */
footer {
    background: linear-gradient(135deg, #1a1a1a, #3d3d3d); /* mørkere gradient mod sort */
    color: #f1e6d0; /* lys gylden tekst */
    text-align: center;
    padding: 2rem 1rem;
    font-size: 1rem;
    border-top-left-radius: 50% 10%;
    border-top-right-radius: 50% 10%;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 900px) {
    .produkt-oversigt { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

@media (max-width: 600px) {
    .produkt-oversigt { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 480px) {
    header { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 1rem; }
    .header-right { position: absolute; top: 1rem; right: 1rem; padding: 0.3rem 0.6rem; }
    h1 { font-size: 2rem; }
    .produkt-oversigt { grid-template-columns: 1fr; padding: 1rem 0.5rem; }
    .produkt-card { padding: 0.8rem; }
    .produkt-card h3 { font-size: 1rem; }
    .produkt-card p { font-size: 0.9rem; }
    .produkt-card a { font-size: 0.9rem; padding: 0.4rem 0.8rem; }
    .tagline { display: none; }
}
