/* ================== 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;
}

/* ================== CORNER MENU ================== */
.corner-menu {
    position: relative;     /* ← ændret: følger headerens layout */
    margin-left: 20px;      /* afstand fra kurv/sprog */
    z-index: 2000;
}

.corner-btn {
    background: #1f1f1f;
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 24px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.corner-btn:hover {
    transform: scale(1.1);
}

/* ============= SLIDE-IN MENU OVERLAY (mørk baggrund) ============= */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    display: none;
    z-index: 100;
}

/* ============= HØJRE PANEL ============= */
.corner-dropdown {
    position: fixed;
    top: 0;
    right: 0;

    width: 40vw;               /* 40% af skærmen */
    max-width: 450px;
    height: 110vh;

    background: #fffdfa;       /* luksus creme */
    border-left: 1px solid rgba(191,164,111,0.35);
    box-shadow: -8px 0 20px rgba(0,0,0,0.2);

    padding-top: 80px;         /* ikke under header */
    overflow-y: auto;

    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 1600;
}

/* Åben panel */
.corner-dropdown.open {
    transform: translateX(0);
}

/* Links i menuen */
.corner-dropdown a {
    display: block;
    padding: 18px 26px;
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(191,164,111,0.2);
    transition: background 0.25s ease, padding-left 0.25s ease;
}

.corner-dropdown a:last-child {
    border-bottom: none;
}

.corner-dropdown a:hover {
    background: rgba(191,164,111,0.12);
    padding-left: 36px;
}

/* ============= MOBIL VISNING ============= */
@media (max-width: 768px) {
    .corner-dropdown {
        width: 80vw;     /* fylder 80% af mobilen */
    }
}

/* ================== 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;
}

/* ========= HEADER LOOK ========== */
.nav-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    backdrop-filter: blur(10px);
    background: rgba(255, 253, 250, 0.8);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    animation: fadeDown 0.6s ease;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-25px); }
    to   { opacity: 1; transform: translateY(0); }
}

.logo {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #222;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 1.15rem;
    position: relative;
}

/* Underline animation */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 0%; height: 2px;
    background: #bfa46f;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========= HAMBURGER ========== */
.hamburger {
    display: none;
    font-size: 30px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #1f1f1f;
    color: white;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}

.hamburger:active {
    transform: scale(0.85);
}

/* ========= MOBILE MENU ========== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0); /* usynlig */
    pointer-events: none;       /* blokér IKKE klik på burgermenu */
    transition: background 0.3s ease;
    z-index: 998;               /* lige under mobile-menu */
}

.menu-overlay.active {
    background: rgba(0,0,0,0.4); /* mørkt baggrund når menu er åben */
    pointer-events: all;         /* nu kan man klikke for at lukke */
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* skjult */
    width: 80vw;
    height: 110vh;
    background: #fffdfa;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overscroll-behavior: contain;
    gap: 1rem;
    z-index: 999;
    transition: right 0.35s cubic-bezier(0.25, 0.5, 0, 1);
}

.mobile-menu.active {
    right: 0;
}


.mobile-menu a {
    padding: 1.4rem;
    font-size: 1.4rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: background 0.2s, padding-left 0.2s;
}

.mobile-menu a:hover {
    background: rgba(191,164,111,0.12);
    padding-left: 2rem;
}

/* ======= Mobile breakpoint ======= */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
}

@media (max-width: 500px) {
    .mobile-menu a {
        padding: 1.1rem;   /* mindre padding på små skærme */
        font-size: 1.2rem; 
    }
}



/* ================== 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; }


/* ================== SHIPPING NOTICE ================== */
.shipping_notice {
    display: flex;
    align-items: center;
    background-color: #111111;
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 2rem 1rem;
}

/* ================== HERO ================== */
.hero {
    margin-top: 100px;
    position: relative;
    text-align: center;
    overflow: hidden;
    height: 500px;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    animation: zoomIn 20s infinite alternate;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(191,164,111,0.5);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
    animation: fadeInUp 1s ease-in-out;
    min-width: 400px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.overlay h2 {
    font-family: 'Playfair Display', serif;
    color: #5a4632;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.overlay button {
    background-color: #b6b6b6;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.overlay button:hover {
    background-color: white;
    color: #b6b6b6;
    border: 2px solid #b6b6b6;
    transform: scale(1.05);
}

/* ================== TIPS SECTION ================== */
.tips {
    background: linear-gradient(135deg, #f7f2e9, #e8dcc5);
    padding: 5rem 3rem;            /* mere indre luft */
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    margin: 4rem auto;             /* mere ydre luft */
    max-width: 1100px;             /* ikke helt kant til kant */
    border: 2px solid #bfa46f;
}

.tips h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #5a4632;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.tips h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #bfa46f;
    margin: 1rem auto 0 auto;
    border-radius: 2px;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;                   /* mere afstand mellem kortene */
}

.tip-card {
    background: white;
    padding: 2.5rem;               /* mere luft inde i kortet */
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tip-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: #bfa46f;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tip-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #5a4632;
    margin-bottom: 0.8rem;
}

.tip-card p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}


/* ================== PRODUCTS ================== */
.products {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    background: #fdfbf6;
    border-radius: 16px;
}

.products h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    color: #5a4632;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product {
    background: linear-gradient(145deg, #fffdfa, #f9f5eb);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.4s, box-shadow 0.4s;
}

.product:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
    filter: brightness(180%);
}

.product h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #5a4632;
    margin-bottom: 0.5rem;
}

.product p {
    font-size: 1rem;
    color: #666;
}

.prbutton {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
    background-color: #b6b6b6;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.prbutton:hover {
    background-color: white;
    color: #b6b6b6;
    border: 2px solid #b6b6b6;
    transform: scale(1.05);
}

/* ================== SECTIONS ================== */
.section {
    padding: 4rem 1rem;
    background-color: #fdfbf6;
    text-align: center;
    border-radius: 16px;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #5a4632;
    margin-bottom: 1.5rem;
}

.section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* ================== FOOTER ================== */
footer {
    background: linear-gradient(135deg, #1a1a1a, #3d3d3d); /* mørkere gradient mod sort */
    color: #f1e6d0; /* lys gylden tekst for kontrast */
    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); /* lidt dybde */
}

/* ================== SCROLL REVEAL ================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.from-left { transform: translateX(-200px); }
.from-right { transform: translateX(200px); }

.revealed { opacity: 1; transform: translateX(0); }

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
    .product-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-left: 1rem;
        padding-bottom: 1rem;
    }

    .overlay h2 {
        font-size: 1.5rem;
    }

    .overlay {
        padding: 2rem;
        min-width: 300px;
    }

    header {
        display: block;
        padding: 3.2rem 3rem;
    }

    .tips-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .tip-card {
        flex: 0 0 80%;              /* hver kort fylder 80% af skærmen */
        scroll-snap-align: start;
        margin-right: 1rem;
    }

    .product { flex: 0 0 80%; scroll-snap-align: start; margin-right: 1rem; }

    h2 { font-size: 1.8rem; }
}

/* ======== OPTIMERET MOBIL HEADER ======== */
@media (max-width: 600px) {

    /* Mindre header-padding */
    .nav-header {
        padding: 0.8rem 1rem;
    }

    /* Logo mindre, men stadig tydeligt */
    .logo {
        font-size: 1.6rem;
        line-height: 1;
    }

    /* Tagline mindre og tættere */
    .tagline {
        font-size: 0.75rem;
        margin-top: 2px;
        color: #666;
    }

    /* Menu-ikoner tættere og mindre */


    .language-switch {
        font-size: 0.8rem;
    }

    .cart {
        font-size: 1.2rem;
    }

    /* Hamburger lille og pæn */
    .hamburger {
        font-size: 22px;
        padding: 4px 10px;
        border-radius: 8px;
    }

    /* Mobil menu links mindre og uden at fylde */
    .mobile-menu a {
        font-size: 1.1rem;
        padding: 1rem 1.2rem;
    }

    /* Mobil menu smallere så den ikke fylder hele skærmen */
    .mobile-menu {
        width: 70vw;
        max-width: 340px;
    }
}

/* ======== ULTRA-SMÅ MOBILER (iPhone SE) ======== */
@media (max-width: 360px) {

    .logo {
        font-size: 1.4rem;
    }

    .header-right {
        gap: 0.2rem;
    }

    .hamburger {
        font-size: 20px;
        padding: 4px 8px;
    }

    .mobile-menu {
        width: 75vw;
    }
}




