/* GENEREL OPSÆTNING */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f6f3ed;
    color: #504139;
    font-family: "Brandon Grotesesque", sans-serif;
    line-height: 1.6;
}

h1,
h2,
h3,
.logo {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

h1 {
    max-width: 750px;
    font-size: 50px;
    line-height: 1.05;
    margin-bottom: 50px;
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.15;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.eyebrow {
    margin-bottom: 14px;
    color: #504139;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: rgba(246, 243, 237, 0.96);
    border-bottom: 1px solid #d8d5ce;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1200px, 90%);
    min-height: 82px;
    margin: auto;
}

.logo {
    font-size: 1.7rem;
    color: #504139;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a:hover {
    color: #7d4e3d;
}

.nav-links a {
    text-transform: uppercase;
}

.cart-button,
.menu-button {
    padding: 9px 14px;
    color: #504139;
    background: none;
    border: 1px solid #8b958c;
}

.menu-button {
    display: none;
}


/* KNAPPER */

.primary-button,
.secondary-button {
    display: inline-block;
    padding: 14px 24px;
    border: 1px solid #f2eee1;
    transition: 0.2s ease;
}

.primary-button {
    color: #504139;
    background-color: #f2eee1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 228px;
    height: 62px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.primary-button:hover {
    background-color: #f2eee1;
}

.secondary-button {
    color: #35453a;
    background-color: transparent;
}

.secondary-button:hover {
    color: #ffffff;
    background-color: #35453a;
}


/* HERO */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78vh;
    padding: 80px 5%;
    background:
        linear-gradient(
            90deg,
            #362c27,
            rgba(34, 49, 38, 0.18)
        ),
        url("https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=1800&q=85")
        center / cover;
}

.hero-content {
    max-width: 750px;
    color: #ffffff;
    text-align: center;
}

.hero-content .eyebrow {
    color: #e9e4da;
}

.hero-content p:not(.eyebrow) {
    max-width: 580px;
    margin: 25px auto 35px;
    font-size: 1.1rem;
}

.hero .primary-button {
    font-family: "Brandon Grotesque", sans-serif;
    text-transform: uppercase;
}

/* POPULÆRE KATEGORIER */

.popular-categories-section {
    padding: 100px 5%;
    background-color: #f8f5ee;
    text-align: center;
}

.popular-categories-section h2 {
    margin-bottom: 45px;
    text-transform: uppercase;
}

.popular-categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    max-width: 900px;
    margin: auto;
    gap: 30px;
}

.popular-category-button {
    padding: 0;
    color: #514940;
    background: none;
    border: none;
}

.popular-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 105px;
    height: 105px;
    margin: 0 auto 15px;
    background-color: #efebe3;
    border: 2px solid transparent;
    border-radius: 50%;
    font-size: 2.6rem;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.popular-category-name {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.popular-category-button:hover .popular-category-icon {
    transform: translateY(-5px);
    background-color: #e4dfd5;
    border-color: #68756a;
}

.popular-category-button.active .popular-category-icon {
    background-color: #d8ded8;
    border-color: #68756a;
}

.selected-category-message {
    min-height: 25px;
    margin-top: 30px;
    color: #68756a;
}


/* PRODUKTER */

.product-section {
    padding: 90px 5%;
    background-color: #e9e6de;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: min(1200px, 100%);
    margin: 0 auto 45px;
    gap: 30px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-button {
    padding: 10px 16px;
    color: #3e2c26;
    background-color: transparent;
    border: 1px solid #879087;
}

.filter-button:hover,
.filter-button.active {
    color: #ffffff;
    background-color: #3e2c26;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(1200px, 100%);
    margin: auto;
    gap: 30px;
}

.product-card {
    overflow: hidden;
    background-color: #f9f7f2;
}

.product-image {
    display: block;
    width: 100%;
    height: 330px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.03);
}

.product-information {
    padding: 24px;
}

.product-category {
    margin-bottom: 8px;
    color: #737b74;
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.product-information h3 {
    margin-bottom: 8px;
    font-size: 1.45rem;
}

.product-price {
    margin-bottom: 20px;
}

.stock-message {
    margin-bottom: 15px;
    color: #8a453c;
    font-size: 0.9rem;
}

.add-to-cart-button {
    width: 100%;
    padding: 12px;
    color: #ffffff;
    background-color: #3e2c26;
    border: none;
}

.add-to-cart-button:hover {
    background-color: #3f2f2a;
}

.add-to-cart-button:disabled {
    cursor: not-allowed;
    background-color: #a6aaa6;
}


/* OM OS */

.about-section {
    display: flex;
    align-items: center;
    min-height: 600px;
    padding: 80px 5%;
    background:
        linear-gradient(
            90deg,
            rgba(243, 237, 226, 0.98) 0%,
            rgba(243, 237, 226, 0.88) 45%,
            rgba(243, 237, 226, 0.05) 75%
        ),
        url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=1800&q=85")
        center / cover;
}

.about-content {
    max-width: 600px;
}

.about-content > p:not(.eyebrow) {
    margin-bottom: 25px;
}

.extra-text {
    margin-top: 25px;
}


/* NYHEDSBREV */

.newsletter-section {
    padding: 100px 5%;
    color: #ffffff;
    background-color: #504139;
}

.newsletter-content {
    max-width: 700px;
    margin: auto;
    text-align: center;
}

.newsletter-content .eyebrow {
    color: #e4e0d6;
}

.newsletter-form {
    margin-top: 35px;
    text-align: left;
}

.newsletter-form label {
    display: block;
    margin-bottom: 8px;
}

.form-row {
    display: flex;
}

.form-row input {
    flex: 1;
    min-width: 0;
    padding: 15px;
    border: none;
}

.form-row .primary-button {
    border-color: #26342b;
}

.form-message {
    min-height: 25px;
    margin-top: 14px;
}


/* KURV */

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 40;
    width: min(420px, 100%);
    height: 100vh;
    padding: 30px;
    overflow-y: auto;
    background-color: #f9f7f2;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.18);
}

.cart-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.cart-heading h2 {
    margin: 0;
    font-size: 2rem;
}

#close-cart-button {
    padding: 5px 12px;
    font-size: 1.8rem;
    background: none;
    border: none;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #d5d1c8;
}

.cart-item button {
    color: #8a453c;
    background: none;
    border: none;
}

.cart-total {
    margin: 30px 0 20px;
    font-size: 1.1rem;
}


/* BESKED */

.notification {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 50;
    padding: 16px 22px;
    color: #ffffff;
    background-color: #35453a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none;
}


/* FOOTER */

footer {
    padding: 25px 5%;
    color: #ffffff;
    background-color: #3e2c26;
    text-align: center;
}


/* TABLET */

@media (max-width: 900px) {
    .popular-categories {
        grid-template-columns: repeat(3, 1fr);
        max-width: 550px;
        row-gap: 40px;
    }
}


/* MOBIL OG MINDRE TABLET */

@media (max-width: 850px) {
    .menu-button {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 82px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 25px 5%;
        background-color: #f6f3ed;
        border-bottom: 1px solid #d8d5ce;
    }

    .nav-links.menu-open {
        display: flex;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .hero {
        min-height: 650px;
    }

    .popular-categories {
        grid-template-columns: repeat(2, 1fr);
    }

.popular-category-icon img {
    width: 78%;
    height: 78%;
    object-fit: contain;
        font-size: 2.6rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .product-image {
        height: 380px;
    }
}