@import url("https://use.typekit.net/xfq5uol.css");

body {
    font-family: open-sans, sans-serif;
    margin: 0;
    background-color: #f0f3f5;
    color: #212121;
}

h1, h2, h3, h4 {
    font-family: montserrat, sans-serif;
    font-weight: bold;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    padding: 18px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}
.nav-container {
    display: flex;
    align-items: center;
    gap: 48px;
}
.logo {
    font-size: 1.5em;
    font-weight: bold;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 48px;
}
nav a {
    font-family: montserrat, sans-serif;
    font-weight: normal;
    text-decoration: none;
    color: #333333;
    padding: 8px 16px;
    border-radius: 12px;
    transition: background-color 0.2s ease-in-out;
}

nav a:hover {
    background-color: #FFACA8;
}

/* This will be in shop.css but we need to override the hover for active links */
nav a.active {
    font-weight: bold;
    color: #212121;
    background-color: #FFACA8;
}

.icons {
    display: flex;
    gap: 16px;
}
.icons span {
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px 10px;
    background: #ddd;
    border-radius: 5px;
}
.hero {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #e3fdfd, #ffe6fa);
}
.product-section {
    text-align: center;
    max-width: max-content;
    margin: 0 auto;
    position: relative;
}
.product-section h1 {
    padding-bottom: 64px;
}
.product-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: url('img/Background_2.png') center/cover no-repeat;
    z-index: -1;
    left: 50%;
    transform: translateX(-50%);
}
.product-list {
    display: flex;
    justify-content: center;
    gap: 150px;
    flex-wrap: wrap;
}
.product img {
    width: 130px;
    height: auto;
    display: block;
    transition: transform 0.05s ease-in-out;
    cursor: pointer;
}
.product span {
    display: block;
    margin-top: 10px;
    margin-bottom: -10px;
    font-family: montserrat, sans-serif;
    font-weight: bold;
    font-size: 16px;
}
.content-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 128px;
    margin: 0 auto;
}
.content-section img {
    width: 600px;
    height: auto;
    border-radius: 12px;
}
.content-text {
    padding: 48px;
    max-width: 635px;
}

/* Add specific padding for each content text section */
.content-text1 {
    padding: 48px;
    padding-left: 265px;
    max-width: 635px;
}

.content-text2 {
    padding: 48px;
    padding-right: 265px;
    max-width: 635px;
}

.content-text3 {
    padding: 48px;
    padding-left: 265px;
    max-width: 635px;
}

.newsletter {
    background: linear-gradient(135deg, #edaea8, #F8CEB5);
    text-align: center;
    padding: 48px 20px;
    margin: 40px auto 96px auto;
    border-radius: 16px;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.newsletter h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #333;
}
.newsletter input {
    padding: 15px;
    width: 80%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1em;
    text-align: center;
}
.newsletter button {
    padding: 15px 30px;
    background: #F8948E ;
    color: #212121;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.1s ease-in-out, transform 0.1s ease-in-out;
}
.newsletter button:hover {
    background: #F47069;
}
.icon img {
    height: 18px;
    width: auto;
    display: block;
}

footer {
    background: #D7968A;
    color: #212121;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.footer-column {
    width: 30%;
}
.footer-column h3 {
    margin-bottom: 15px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column ul li a {
    color: #212121;
    text-decoration: none;
}
.product img:hover{
    transform: scale(1.05);
}

.product {
    position: relative;
}

.discount-label {
    position: absolute;
    left: -25%;
    bottom: 40%; /* Positioned 1/5 up from the bottom */
    background-color: #FF5555;
    color: white;
    font-family: montserrat, sans-serif;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 12px;
    z-index: 1;
}

/* Baggrundsbillede */
.pic {
    background: url('img/mockup_background_cropped2.webp') bottom center no-repeat;/* Full height, auto width - may crop horizontally */
    min-width: 100%;
    min-height: 800px; /* Fixed height to ensure full image height is visible */
    display: flex;
    align-items: center; /* Vertically center the children */
    justify-content: flex-start; /* Keep the content left aligned */
    padding-left: 50px; /* Justér efter behov */ 
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden; /* Hide horizontal overflow if image is wider than viewport */
}

/* Tekstcontainer */
.pic .container {
    /* Removed absolute positioning for vertical centering */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left aligned */
    max-width: 400px;
    color: #212121; /* Make all text white */
}

/* Reduce space between first paragraph and h1 */
.pic .container p:first-child {
    margin-bottom: 4px;
}

.pic .container h1 {
    margin-top: 5px;
    color: #212121; /* Ensure heading is white */
}

/* For containers outside of .pic, maintain original styling */
.container:not(.pic .container) {
    display: flex;
    flex-direction: column;
    max-width: 400px;
}

/* Knap styling */
.btn {
    background-color: #FFACA8;
    color: #212121;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: background-color 0.05s ease-in-out;
}

.btn:hover {
    background-color: #FF928C;
}

.layered-image {
    position: relative;
    width: 550px;
    height: auto;
    isolation: isolate;
}

/* First content section */
.content-section-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 128px;
    margin: 0 auto;
}

.content-section-1 .layered-image {
    position: relative;
    width: 550px;
    height: auto;
    isolation: isolate;
}

.content-section-1 .background-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.content-section-1 .foreground-img {
    position: absolute;
    bottom: -250px;
    left: 0;
    height: auto;
    max-width: 100%;
    z-index: 2;
}

/* Second content section */
.content-section-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 128px;
    margin: 0 auto;
}

.content-section-2 .layered-image {
    position: relative;
    width: 550px;
    height: auto;
    isolation: isolate;
    margin-right: 20px;
}

.content-section-2 .background-img {
    width: 600px;
    max-width: none;
    height: auto;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.content-section-2 .foreground-img {
    position: absolute;
    bottom: -300px;
    left: auto;
    right: -50px;
    height: auto;
    max-width: none;
    width: 600px;
    z-index: 2;
    transform-origin: right bottom;
    text-align: right;
}

/* Third content section (Weekly Favorite/Ugens Favorit) */
.content-section-3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 128px;
    margin: 0 auto;
    flex-direction: row; /* Ensure text is on left, images on right */
    padding-bottom: 250px;
}

.content-section-3 .content-text3 {
    padding: 48px;
    padding-left: 265px;
    max-width: 635px;
    order: 1; /* Ensure text comes first */
}

.content-section-3 .layered-image {
    position: relative;
    width: 550px;
    height: auto;
    isolation: isolate;
    order: 2; /* Ensure images come second */

}

.content-section-3 .background-img {
    width: 600px;
    max-width: none;
    height: auto;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.content-section-3 .foreground-img {
    position: absolute;
    bottom: -275px;
    left: auto;
    right: -50px;
    height: auto;
    max-width: none;
    width: 600px;
    z-index: 2;
    transform-origin: right bottom;
    text-align: right;
}

/* General styles for background and foreground images */
.background-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.foreground-img {
    position: absolute;
    bottom: -250px;
    left: 0;
    height: auto;
    max-width: 100%;
    z-index: 2;
}

/* Left side image container */
.left-image {
    margin-right: 20px;
}

/* Right-aligned foreground image */
.foreground-img.right-aligned {
    left: auto;
    right: 0;
    bottom: -250px;
    /* Add these properties to ensure proper right alignment */
    transform-origin: right bottom;
    text-align: right;
}

/* Floating animation for beer bottles */
.float-animation {
    transform: translateY(-150px) !important;
    transition: transform 1.5s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}