/* === NORDICLUXE SUMMER - STYLE === */

/* --- Globals & Palette --- */
:root {
    --color-text: #555555; /* Blød grå */
    --color-heading: #635419; /* Mørkere grå */ /* Note: Jeg justerede din oprindelige D0D0D0 til en mørkere for bedre læsbarhed */
    --color-background: #ffffff;
    --color-offwhite: #fbfaf9; /* Meget let off-white */
    --color-border: #eae6e1; /* Varmere grå kant */
    --color-primary: #87CEEB; /* Lys himmelblå / Aqua */ /* Note: Gendannet til din oprindelige Blå? Du havde sat den til f4d03f i seneste svar, holder fast i den hvis det er din ønskede*/
     --color-primary: #f4d03f; /* GUL version som i dit seneste eksempel */
    --color-primary-darker: #f4d03f; /* Mørkere Blå / Aqua */ /* Holder den gul her */
    --color-accent: #FFB6C1; /* Lys koral/fersken/pink */
    --color-accent-hover: #f8a4b0;
    --color-secondary-accent: #f4d03f; /* Solgul */
    --color-white: #ffffff;
    --color-black: #222;
    --color-error: #e74c3c; /* Klar rød for fejl */

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --border-radius: 6px;
    --shadow-soft: 0 6px 15px rgba(100, 100, 100, 0.07);
    --shadow-medium: 0 10px 30px rgba(100, 100, 100, 0.1);
    --shadow-modal: 0 15px 40px rgba(50, 50, 50, 0.15); /* Tilføjet for modal */

    --transition-fast: 0.2s ease-out;
    --transition-base: 0.3s ease-out;
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-modal: 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Tilføjet for modal */

    --section-padding: clamp(4rem, 9vw, 7rem);
    --section-padding-small: clamp(2rem, 5vw, 3.5rem);
}

/* --- Styles for Quantity Controls in Checkout Modal --- */
.checkout-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.6rem; /* Space between buttons and number */
    margin-top: 0.8rem; /* Space above quantity controls */
}

.quantity-change-btn {
    padding: 2px; /* Small padding around icon */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text); /* Default color */
    line-height: 0; /* Prevent extra button height */
    opacity: 0.8;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.quantity-change-btn:hover:not(:disabled) {
    color: var(--color-primary); /* Highlight color on hover */
    opacity: 1;
}

.quantity-change-btn:disabled {
    color: var(--color-border); /* Grey out disabled button */
    cursor: not-allowed;
    opacity: 0.6;
}

.quantity-change-btn .qty-icon {
    width: 18px; /* Size of the +/- icons */
    height: 18px;
    stroke-width: 2;
    display: block; /* Helps alignment */
}

.quantity-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-heading);
    min-width: 20px; /* Ensure space for number */
    text-align: center;
    user-select: none; /* Prevent selecting the number */
}

/* Adjust layout of checkout item details slightly */
.checkout-item-details {
    display: flex;
    flex-direction: column; /* Stack info vertically */
}
/* Add this to style.css */
.variant-select option:disabled {
    color: #aaa;
    font-style: italic;
    background-color: #f8f8f8; /* Optional background */
}

/* Optional: Style for stock limit indicator in cart */
.stock-limit-info {
    font-size: 0.7rem;
    color: var(--color-error); /* Use error color for visibility */
    font-weight: 600;
    margin-left: 0.5rem; /* Space from the + button */
    font-style: italic;
}
/* Add to style.css */
.checkout-shipping, .checkout-total {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem; /* Slightly smaller maybe */
    margin-bottom: 0.5rem;
    color: var(--color-text);
}
.checkout-shipping strong, .checkout-total strong {
    font-weight: 600;
    color: var(--color-heading);
}
.checkout-total.grand-total {
    font-size: 1.1rem; /* Make grand total slightly larger */
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--color-border);
    margin-bottom: 1.5rem;
}
.checkout-total.grand-total strong {
    font-weight: 700;
}
    /* Styling for the new items list in the orders table */
    td.order-items-details-cell {
        vertical-align: top; /* Align list to top if cell gets tall */
    }
    ul.order-item-list {
        list-style: none; /* Remove default bullets */
        padding: 0;
        margin: 0;
        font-size: 0.85rem; /* Slightly smaller font for details */
        line-height: 1.5; /* Adjust line spacing */
    }
    ul.order-item-list li {
        margin-bottom: 4px; /* Space between items in the same order */
        white-space: normal; /* Allow wrapping */
        color: var(--color-text);
    }
    ul.order-item-list li:last-child {
        margin-bottom: 0;
    }

/* --- Base & Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; font: inherit; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; /* Ca header højde */}
body {
    font-family: var(--font-body); font-weight: 400; color: var(--color-text);
    background-color: var(--color-background); line-height: 1.7; overflow-x: hidden;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    opacity: 0; transition: opacity 0.6s 0.1s ease-in; /* Let forsinket fade */
}
body:not(.preload) { opacity: 1; }
body.disable-scroll { overflow: hidden; }

img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: var(--color-primary-darker); text-decoration: none; transition: color var(--transition-base); }
a:hover, a:focus-visible { color: var(--color-heading); outline-color: var(--color-primary); } /* Synlig focus */
button { cursor: pointer; border: none; background: none; padding: 0; text-align: left; color: inherit; }
.sr-only { /* Til skærmlæser labels */
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading); font-weight: 400; /* Lettere default */
    color: var(--color-heading); line-height: 1.3; margin-bottom: 1rem;
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -0.01em; font-weight: 600; /* Lidt tungere H1 */ }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); margin-bottom: 2.5rem; text-align: center; font-weight: 600; }
h3 { font-size: clamp(1.1rem, 3vw, 1.3rem); font-weight: 600; color: var(--color-heading); margin-bottom: 0.6rem;}
p { margin-bottom: 1rem; max-width: 68ch; color: var(--color-text); font-weight: 300; font-size: 1.05rem;} /* Lidt større brødtekst */
strong { font-weight: 600; }

/* --- Layout & Helpers --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding-top: var(--section-padding); padding-bottom: var(--section-padding); }
.section-padding-small { padding-top: var(--section-padding-small); padding-bottom: var(--section-padding-small); }
.bg-offwhite { background-color: var(--color-offwhite); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.text-center { text-align: center; }
.section-title { position: relative; margin-bottom: 3.5rem;}
.section-title-left { text-align: left; margin-bottom: 1.5rem; } /* Til 'Om Os' */
.section-cta { text-align: center; margin-top: 3rem; }


/* --- Header --- */
.site-header {
    padding: 1rem 0; /* Mindre padding */ position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: background-color var(--transition-base), border-color var(--transition-base), transform var(--transition-smooth);
    transform: translateY(0);
}
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--color-border);
}
.site-header.hide-header { transform: translateY(-100%); }

.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: inline-block; }
.logo-image { height: 80px; margin-top: 5px; /* Juster efter dit PNG */ width: auto; vertical-align: middle; }

.main-navigation { display: block; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    font-weight: 400; letter-spacing: 0.5px; text-transform: capitalize; /* Normal casing */
    font-size: 0.95rem; /* Lidt større */ position: relative; padding: 0.5rem 0;
    color: var(--color-heading); opacity: 0.8;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--color-primary); opacity: 1; outline: none; }
.nav-links a::after { /* Meget subtil prik effekt */
    content: ''; position: absolute; bottom: 0px; left: 50%; transform: translateX(-50%) scale(0);
    width: 5px; height: 5px; border-radius: 50%; background: var(--color-primary);
    transition: transform var(--transition-smooth);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: translateX(-50%) scale(1); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; /* Lidt tættere */ }
.icon-button { color: var(--color-heading); padding: 8px; position: relative; border-radius: 50%; background: transparent; line-height: 1; /* Fix alignment issues */ }
.icon-button svg { width: 20px; height: 20px; stroke-width: 1.8; vertical-align: middle;} /* Style via SVG */
.icon-button:hover, .icon-button:focus-visible { color: var(--color-primary); background-color: rgba(244, 208, 63, 0.1); outline: none; } /* Lys Gul hover bg */

.cart-badge {
    position: absolute; top: 5px; right: 5px; background-color: var(--color-accent); /* Koral badge */
    color: var(--color-white); border-radius: 50%; width: 16px; height: 16px;
    font-size: 0.65rem; font-weight: 700; line-height: 16px; /* Centrerer teksten */
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); display: flex; justify-content: center; align-items: center;
}
.cart-badge.visible { transform: scale(1); }

/* --- Mobile Navigation --- */
.mobile-nav-toggle { display: none; }
.mobile-nav-menu {
    position: fixed; top: 0; right: 0; width: 90%; max-width: 320px; height: 100vh;
    background-color: var(--color-background); padding: 0; /* Ingen padding på container */
    box-shadow: var(--shadow-medium); z-index: 101;
    transform: translateX(100%); visibility: hidden;
    transition: transform var(--transition-smooth), visibility var(--transition-smooth);
    display: flex; flex-direction: column;
    border-left: 1px solid var(--color-border);
}
.mobile-nav-menu.active { transform: translateX(0); visibility: visible; }
.mobile-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--color-border);
}
.mobile-nav-menu nav { padding: 2rem 1.5rem; }
.mobile-nav-menu ul { display: flex; flex-direction: column; gap: 0.5rem; /* Tættere links */}
.mobile-nav-menu a {
    font-weight: 400; font-size: 1.1rem; display: block; padding: 0.8rem 0;
    color: var(--color-heading); border-bottom: 1px solid var(--color-border);
}
.mobile-nav-menu a:hover { color: var(--color-primary); }
.mobile-nav-menu .close-mobile-menu { /* Ingen ekstra styling nødvendig hvis icon-button bruges */ }
.mobile-nav-overlay {
    position: fixed; inset: 0; background-color: rgba(80, 80, 80, 0.5); z-index: 100;
    opacity: 0; visibility: hidden; transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; } /* Added 'open' class handling */
body.mobile-nav-open .mobile-nav-overlay { /* This can be removed if using .open */ }

@media (max-width: 900px) {
    .main-navigation { display: none; }
    .mobile-nav-toggle { display: block; }
}


/* --- Hero Section --- */
.hero-section {
    min-height: 85vh; /* Lidt lavere */
    background-color: var(--color-offwhite); /* Lys base farve */
    padding: var(--section-padding) 0; padding-bottom: 4rem; /* Mere bundpadding */
    display: flex; align-items: center; /* Centrér vertikalt */
    position: relative; overflow: hidden;
}
.hero-content {
    position: relative; z-index: 2; text-align: left; /* Venstrestillet tekst */
    max-width: 550px; animation: fadeInContent 1s 0.2s ease-out forwards; opacity: 0;
}
@keyframes fadeInContent { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.hero-title { font-size: clamp(2.5rem, 6vw, 3.8rem); line-height: 1.2; margin-bottom: 1.5rem; color: var(--color-heading); }
.hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.15rem); font-weight: 400; margin-bottom: 2.5rem; color: var(--color-text); opacity: 0.9;}
/* hero-cta bruger standard knapper */
.hero-image-focus {
    position: absolute;
    right: 0; /* Positioneret til højre */
    bottom: 0; /* Starter fra bunden */
    width: 45%; /* Juster bredde */
    max-width: 600px;
    z-index: 1;
    aspect-ratio: 3 / 4; /* Typisk portræt ratio */
    overflow: hidden;
    border-top-left-radius: 100px; /* Blød kurve i toppen */
}
.hero-image-focus img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: center top; /* Fokusér på øvre del */
    animation: scaleInImage 1.2s 0.4s ease-out forwards; opacity: 0; transform: scale(1.1);
}
@keyframes scaleInImage {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
}
/* Valgfri blød baggrundsdekoration (kun på større skærme) */
.hero-background-decoration { display: none; /* Simpel version uden */}
.scroll-down-indicator {
     position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
     color: var(--color-text); z-index: 3; animation: bounceArrow 1.5s infinite ease-out;
     padding: 8px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.3);
 }
 .scroll-down-indicator:hover { color: var(--color-primary); }
 @keyframes bounceArrow {
     0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
     40% { transform: translateX(-50%) translateY(-8px); }
     60% { transform: translateX(-50%) translateY(-4px); }
 }

@media (max-width: 900px) {
    .hero-section { text-align: center; align-items: center; min-height: 70vh; padding-bottom: 8rem; /* Plads til scroll pil */ }
    .hero-content { text-align: center; max-width: 600px; margin: 0 auto; }
    .hero-image-focus { display: none; } /* Skjul billede på mindre skærme for mere plads */
}


/* --- Knapper --- */
.cta-button {
    padding: 12px 28px; border-radius: 50px;
    font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
    transition: all var(--transition-base); border: 1px solid transparent; line-height: 1.2;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; /* Til loader ikon */
}
/* Primary (Aqua/Gul) */
.cta-button.primary-cta { background-color: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); box-shadow: 0 4px 10px rgba(244, 208, 63, 0.2); }
.cta-button.primary-cta:hover { background-color: var(--color-primary-darker); border-color: var(--color-primary-darker); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(244, 208, 63, 0.3); }
/* Secondary (Outline/Accent) */
.cta-button.secondary-cta { background-color: transparent; color: var(--color-primary); border: 1px solid var(--color-border); }
.cta-button.secondary-cta:hover { background-color: rgba(244, 208, 63, 0.08); border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }

/* Tilføj til kurv - mere standard knap nu */
.product-card .add-to-cart-btn {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius); /* Match generel radius */
    padding: 10px 20px; /* Lidt mere padding */
    font-size: 0.75rem; /* Lidt mindre tekst */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
    position: static; /* Ikke absolut positioneret */
    opacity: 1; transform: none; /* Altid synlig */
    width: auto; height: auto; /* Ikke fast størrelse */
    margin-top: 1rem; /* Plads efter varianter */
    align-self: flex-start; /* Knappen starter til venstre under info */
    transition: all var(--transition-base);
}
.product-card .add-to-cart-btn .icon { width: 16px; height: 16px; stroke-width: 2; } /* Ikon størrelse */
.product-card .add-to-cart-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}
.product-card .add-to-cart-btn[disabled] {
    background-color: #f0f0f0 !important; color: #aaa !important; border-color: #f0f0f0 !important; cursor: not-allowed; transform: none !important; box-shadow: none !important; opacity: 0.7;
}

/* Tekst Link */
.text-link {
    color: var(--color-primary); font-weight: 600; font-size: 0.9rem;
    border-bottom: 1px solid transparent; transition: border-color var(--transition-base);
    display: inline-block;
}
.text-link:hover { border-bottom-color: var(--color-primary); }

/* General Disabled state */
.cta-button:disabled { background-color: #f0f0f0 !important; color: #aaa !important; border-color: #f0f0f0 !important; cursor: not-allowed; transform: none !important; box-shadow: none !important; opacity: 0.7; }


/* --- Produkt Grid & Kort --- */
.product-section {} /* Minimal styling for selve sektionen */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 2.5rem 1.8rem; }
.featured-grid { /* Fremhævede varer kan være større */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.loading-message { grid-column: 1 / -1; text-align: center; color: var(--color-text); opacity: 0.7; padding: 2rem; }

.product-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-base);
    display: flex; flex-direction: column;
    opacity: 0; /* Til animation - sat af JS*/
    transform: translateY(15px); /* Start lidt nede for animation */
    overflow: hidden; position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }

.product-card-link { display: block; } /* Gør hele billedet klikbart via linket */
.product-card-image {
    width: 100%; height: 380px; /* Højere billeder */ overflow: hidden;
    background-color: var(--color-offwhite); position: relative; display: block;
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1); display: block; }
.product-card:hover .product-card-image img { transform: scale(1.03); }
/* Ny Tilføjet Mærkat (Valgfrit) */
.product-label {
    position: absolute; top: 1rem; left: 1rem; background-color: var(--color-accent); color: var(--color-white);
    padding: 3px 10px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    border-radius: 4px; z-index: 2; /* Sikrer det er over billedet */
}
.image-load-error::after { /* Viser tekst hvis billedet fejler */
    content: "Billede mangler";
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 0.8rem; color: var(--color-text); opacity: 0.7; z-index: 1;
}

/* --- Produkt Grid & Kort --- */

/* Tilføjelser/justeringer til eksisterende .product-card */
.product-card.is-out-of-stock .product-card-image img {
    filter: grayscale(80%); /* Gør billedet gråt ved udsolgt */
    opacity: 0.7;
}
.product-card.is-out-of-stock .product-info {
    opacity: 0.8; /* Gør info lidt mere dæmpet */
}

/* Pris Styling */
.product-price.on-sale {
    display: flex; /* Placer priser ved siden af hinanden */
    align-items: baseline; /* Juster baseline */
    gap: 0.5rem; /* Lidt afstand */
}
.original-price {
    font-size: 0.85em; /* Lidt mindre end normal/sale pris */
    color: var(--color-text);
    opacity: 0.7;
    text-decoration: line-through; /* Streg igennem */
}
.sale-price {
    font-weight: 700; /* Fremhæv tilbudspris */
    color: var(--color-error); /* Brug fejlfarve for at fange øjet */
    font-size: 1em; /* Matcher den normale pris størrelse hvis ikke on-sale */
}

/* Lager Styling */
.product-stock {
    font-size: 0.75rem; /* Lille tekst */
    font-weight: 600;
    margin-top: -0.5rem; /* Ryk lidt op mod prisen */
    margin-bottom: 0.8rem; /* Lidt plads før varianter/knap */
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block; /* Undgå at tage fuld bredde */
    line-height: 1.3;
}
.product-stock.low-stock {
    color: #d35400; /* Orange-agtig for lavt lager */
    background-color: rgba(230, 126, 34, 0.1);
    border: 1px solid rgba(230, 126, 34, 0.3);
}
.product-stock.out-of-stock {
    color: var(--color-error); /* Rød for udsolgt */
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Opdateret Utilgængelig Besked */
.product-unavailable-message {
     font-size: 0.75rem; color: var(--color-text); opacity: 0.8; margin-top: 0.5rem; font-style: italic;
}
.product-card.is-out-of-stock .product-unavailable-message {
    display: none; /* Skjul generel utilgængelig besked hvis specifik udsolgt vises */
}

/* Label Styling (Tilføj .sale-label) */
.product-label {
    position: absolute; top: 1rem; left: 1rem; background-color: var(--color-accent); color: var(--color-white);
    padding: 3px 10px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    border-radius: 4px; z-index: 2;
}
.product-label.sale-label {
    background-color: var(--color-error); /* Brug rød til tilbudslabel */
}

.product-info { padding: 1.2rem; text-align: left; flex-grow: 1; display: flex; flex-direction: column; }
.product-brand { display: none; }
.product-name-link { text-decoration: none; color: inherit;}
.product-name { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--color-heading); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-price { font-size: 0.95rem; font-weight: 600; color: var(--color-text); margin-bottom: 1rem; }
.product-unavailable-message { /* Tilføjet for at vise hvis ikke købbar */
     font-size: 0.75rem; color: var(--color-error); margin-top: 0.5rem; font-style: italic;
}


/* --- Produkt Varianter Styling --- */
.product-variants { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.variant-select-group { display: flex; flex-direction: column; gap: 0.3rem; }
.variant-select-group label { font-size: 0.75rem; font-weight: 600; color: var(--color-text); text-transform: uppercase; letter-spacing: 0.5px; }
/* Overvej .sr-only klassen for labels hvis de kun skal være for skærmlæsere */
.variant-select {
    width: 100%; padding: 8px 30px 8px 12px; /* Plads til pil */
    font-size: 0.9rem;
    border: 1px solid var(--color-border); border-radius: var(--border-radius);
    background-color: var(--color-white); color: var(--color-text);
    appearance: none; -webkit-appearance: none; /* Fjern standard pil */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); /* Tilføj custom pil (URL encoded grå #555) */
    background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}
.variant-select:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
.variant-select:required:invalid { /* Let indikation af manglende valg */
    color: #999;
    border-color: var(--color-accent);
}

.product-info .add-to-cart-btn { margin-top: auto; /* Skubber knappen til bunden */ }


/* --- Om Os / About Sektion --- */
.about-container {
    display: grid; grid-template-columns: 1fr 1fr; /* To kolonner */
    gap: 4rem; align-items: center;
}
.about-image img { border-radius: var(--border-radius); box-shadow: var(--shadow-soft); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { font-size: 1rem; line-height: 1.8; margin-bottom: 1.5rem; }

@media (max-width: 768px) {
    .about-container { grid-template-columns: 1fr; gap: 2rem; }
    .about-image { order: -1; /* Billede øverst på mobil */}
    .about-text { text-align: center; }
     .section-title-left { text-align: center;}
}


/* --- Footer --- */
.site-footer { background-color: var(--color-offwhite); color: var(--color-text); /* Note: Brugt --color-text, ikke -secondary her */ }
.footer-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem; padding-bottom: 2rem;
}
.footer-section h4 { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; color: var(--color-heading); }
.footer-section ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-section a { font-size: 0.9rem; color: var(--color-text); }
.footer-section a:hover { color: var(--color-primary); }
.footer-logo-image { height: 80px; width: auto; opacity: 0.8; margin-top: 0.5rem; max-width: 150px; } /* Justeret height + max-width */
.social-links { display: flex; gap: 1rem; margin-top: 0.5rem;}
.social-links a { color: var(--color-text); }
.social-links a:hover { color: var(--color-primary); transform: scale(1.1); }
.social-links svg { width: 20px; height: 20px; stroke-width: 1.8; }
.footer-bottom { border-top: 1px solid var(--color-border); padding-top: 1.5rem; margin-top: 2rem; text-align: center; font-size: 0.8rem; opacity: 0.7; }


/* --- Checkout MODAL --- */
.checkout-overlay {
    position: fixed; inset: 0;
    background-color: rgba(60, 60, 60, 0.6);
    z-index: 1010;
    opacity: 0; visibility: hidden;
    transition: opacity var(--transition-modal), visibility 0s var(--transition-modal); /* Hurtigere hide */
}
.checkout-overlay.open {
    opacity: 1; visibility: visible;
    transition-delay: 0s; /* Vis med det samme */
}
.checkout-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-modal);
    z-index: 1020;
    opacity: 0; visibility: hidden;
    transition: opacity var(--transition-modal), visibility 0s var(--transition-modal), transform var(--transition-modal); /* Hurtigere hide */
    display: flex; flex-direction: column;
    overflow: hidden;
}
.checkout-modal.open {
    opacity: 1; visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0s; /* Vis med det samme */
}

.checkout-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
}
.checkout-header h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0; text-transform: uppercase; letter-spacing: 1px; color: var(--color-heading); }
.checkout-modal .close-button { /* Kan arve fra .icon-button */ }

.checkout-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: var(--color-offwhite);
}
.empty-cart-message { color: var(--color-text); opacity: 0.8; text-align: center; margin-top: 1rem; padding: 2rem 1rem; font-style: normal; font-weight: 300;}
.checkout-item {
    display: grid; grid-template-columns: auto 1fr auto; /* Image, Details, Remove Btn */
    gap: 1rem; align-items: center;
    margin-bottom: 1rem; padding: 1rem;
    border-bottom: 1px solid var(--color-border); background-color: var(--color-white);
    border-radius: var(--border-radius);
}
.checkout-item:last-child { border-bottom: none; } /* Fjern kant på sidste */

.checkout-item-image img { width: 65px; height: 85px; border-radius: 4px; object-fit: cover; } /* Justeret størrelse */
.checkout-item-details { text-align: left; }
.checkout-item-name { font-weight: 600; font-size: 0.9rem; color: var(--color-heading); margin-bottom: 0.1rem; }
.checkout-item-variant {
    font-size: 0.75rem; color: var(--color-text); margin-bottom: 0.4rem; opacity: 0.8;
    text-transform: capitalize;
}
.checkout-item-price { font-weight: 700; font-size: 0.9rem; color: var(--color-heading); }

.checkout-item .remove-item-btn { justify-self: center; }
.checkout-item .remove-item-btn svg { width: 16px; height: 16px; stroke-width: 2; }

.checkout-footer {
    padding: 1.5rem; border-top: 1px solid var(--color-border);
    background-color: var(--color-white);
    flex-shrink: 0;
}
.checkout-total { display: flex; justify-content: space-between; font-size: 1rem; margin-bottom: 1.5rem; }
.checkout-total span:first-child { color: var(--color-text); }
.checkout-total strong { color: var(--color-heading); font-weight: 700;}
.checkout-cta { width: 100%; padding: 14px; font-size: 0.85rem; }

/* Spinner */
.loader {
     display: inline-block; width: 1em; height: 1em; /* Brug font size */
     border: 2px solid currentColor; /* Brug tekstfarve */
     border-left-color: transparent; /* En side transparent */
     border-radius: 50%;
     animation: spin 0.8s linear infinite;
     vertical-align: middle; /* Juster alignment */
     opacity: 0.7;
     margin-left: 0.5em; /* Lidt afstand */
 }
.cta-button .loader { /* Loader i knap bruger knap-tekst farve */
    border-color: rgba(255, 255, 255, 0.5);
    border-left-color: var(--color-white);
}
@keyframes spin { to { transform: rotate(360deg); } }

.checkout-error { color: var(--color-error); font-size: 0.85rem; margin-bottom: 1rem; text-align: center; min-height: 1.1em; }


/* --- Notifikation --- */
#add-to-cart-notification {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translate(-50%, 200%); /* Start nedenunder */
    background-color: var(--color-heading); color: var(--color-white);
    padding: 10px 22px; border-radius: 50px; /* Pille */
    font-weight: 400; font-size: 0.85rem; letter-spacing: 0.3px;
    box-shadow: var(--shadow-medium); z-index: 1050; /* Over modal */
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    display: flex; align-items: center; gap: 8px; pointer-events: none; /* Ignorer klik */
    white-space: nowrap; /* Forhindr ombrydning */
}
#add-to-cart-notification.show { transform: translate(-50%, 0); opacity: 1; }
/* Styling for error notification hvis .error klassen tilføjes */
#add-to-cart-notification.error { background-color: var(--color-error); }
#add-to-cart-notification svg { /* Styling til checkmark ikon */
    width: 16px; height: 16px; stroke-width: 3; vertical-align: middle;
}

/* === STYLE ADDITIONS/MODIFICATIONS for Sizing Guide & Description === */

/* --- Product Card Adjustments --- */

.product-info {
    /* Ensure info area grows to fill space if needed */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* NEW: Product Description Style */
.product-description {
    font-size: 0.85rem; /* Slightly smaller text */
    line-height: 1.5;
    color: var(--color-text);
    margin-top: 0.5rem; /* Space above */
    margin-bottom: 1rem; /* Space below */
    /* Optional: Limit lines shown initially */
    /* max-height: calc(1.5 * 3em); /* Approx 3 lines */
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
    /* -webkit-line-clamp: 3; */
    /* display: -webkit-box; */
    /* -webkit-box-orient: vertical; */
}

/* NEW: Wrapper for side-by-side variant selectors */
.variant-selectors-inline {
    display: flex;
    gap: 0.8rem; /* Space between selects */
    margin-bottom: 1rem; /* Space below selectors */
    flex-wrap: wrap; /* Allow wrapping on very small screens */
}

.variant-select-group {
    flex: 1 1 100px; /* Allow them to grow, shrink, base width ~100px */
    min-width: 100px; /* Minimum width before wrapping */
}

/* Adjust variant select appearance */
.variant-select {
    width: 100%; /* Take full width of its group */
    padding: 6px 25px 6px 10px; /* Smaller padding */
    font-size: 0.8rem; /* Smaller font */
    background-position: right 8px center; /* Adjust arrow position */
    background-size: 14px; /* Smaller arrow */
}
.variant-select option {
    font-size: 0.9rem; /* Ensure dropdown options are readable */
}

/* Position Add-to-cart button at the bottom */
.product-info .add-to-cart-btn {
    margin-top: auto; /* Push button to bottom of flex container */
    align-self: flex-start; /* Align button to the left */
    width: auto; /* Don't take full width unless needed */
}



/* --- Product Card Adjustments --- */

/* Style the image container itself */
.product-card-image {
    /* width: 100%; height: 380px; etc... */
    /* Keep your existing image styles */
    display: block; /* Ensure it takes space */
}






@media (max-width: 600px) {
    .modal-body-base {
        padding: 1rem;
    }
    #sizing-guide-content table {
        font-size: 0.8rem;
    }
    #sizing-guide-content th,
    #sizing-guide-content td {
        padding: 6px 8px;
    }
    /* Stack variant selects on mobile if flex wrap looks bad */
    .variant-selectors-inline {
        flex-direction: column; /* Stack them instead */
        gap: 0.8rem; /* Vertical gap */
    }
    .variant-select-group {
        flex-basis: auto; /* Reset flex basis */
    }
}


/* --- Responsivitet --- */
@media (max-width: 900px) {
     .product-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem 1.2rem; }
     .featured-grid { grid-template-columns: 1fr 1fr;} /* Altid to på mindre skærme */
     .product-card-image { height: 320px; }
     .site-header { padding: 0.8rem 0;}
     .footer-container { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (max-width: 600px) {
    html { font-size: 93.75%; /* Lidt mindre base skrift */ scroll-padding-top: 70px; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 1rem 0.8rem; }
    .featured-grid { grid-template-columns: 1fr;} /* En kolonne på mobil */
    .product-card-image { height: 280px; } /* Justeret */
    .product-info { padding: 1rem; }
    .product-name { white-space: normal; } /* Tillad navne at wrappe */
    .product-variants { gap: 0.6rem; }
    .variant-select { padding: 7px 25px 7px 10px; font-size: 0.85rem; background-position: right 8px center; } /* Juster select padding og pil */
    .product-card .add-to-cart-btn { padding: 8px 15px; font-size: 0.7rem; gap: 5px;} /* Mindre knap på mobil */

    /* Modal justeringer på mobil */
    .checkout-modal { width: 95%; max-height: 90vh; }
    .checkout-header, .checkout-footer { padding: 1rem; }
    .checkout-items-list { padding: 1rem; }
    .checkout-item { grid-template-columns: 60px 1fr auto; gap: 0.8rem; padding: 0.8rem; } /* Justeret grid */
    .checkout-item-image img { width: 60px; height: 80px; }

    .footer-container { grid-template-columns: 1fr 1fr; text-align: left;}
    .footer-section:first-child, .footer-section:nth-child(3) { grid-column: 1 / 2; }
    .footer-section:nth-child(2), .footer-section:nth-child(4) { grid-column: 2 / 3; }

     #add-to-cart-notification { /* Gør notifikation mindre på mobil */
         padding: 8px 18px; font-size: 0.8rem;
     }
}

/* Cart Icon Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.animate-pulse { animation: pulse 0.5s ease-out; }

