/* quill editor custom */
.ql-editor {
    box-sizing: border-box;
    counter-reset: list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
    line-height: 1.3; /* ql default: 1.44 */
    height: auto; /* ql default: 100% */
    outline: none;
    overflow-y: auto;
    padding: 0; /* ql default: 12px 15px */
    tab-size: 4;
    -moz-tab-size: 4;
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ql-editor strong {font-weight: bold !important;}

.ql-editor em {font-style: italic !important;}

/* GENERAL */

html {
    box-sizing: border-box;
}
  *, *:before, *:after {
    box-sizing: inherit;
}

body {
    line-height: 1.3;
    font-family: "Cormorant Garamond";
    font-size: 17px;
    overflow-y:scroll;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url(../assets/fonts/CormorantGaramond-Regular.ttf);
    font-weight: 400;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url(../assets/fonts/CormorantGaramond-Italic.ttf);
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url(../assets/fonts/CormorantGaramond-SemiBold.ttf);
    font-weight: 600;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url(../assets/fonts/CormorantGaramond-SemiBoldItalic.ttf);
    font-weight: 600;
    font-style: italic;
}


h1 {
    display:none;
}


/* HEADER */

#header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    height:60px;
    z-index: 99;
    text-align: center;
    background-color: #fff;
}

#logo-container {
    display: inline-block;
    padding-top: 8px;
    transition: all 400ms ease-in-out;
}

#logo {
    height: 74px;
    transition: all 400ms ease-in-out;
    cursor: pointer;
}

/* NAV */
#nav-container{
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
    align-items: center;
    padding: 0 8px;
    justify-content: center;
    margin-top: 30px;
}

.nav-item {
    cursor: pointer;
    line-height: 18px;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-item.active {
    color: #565656;
    font-weight: 500;
    background-color: #e0e0e0;
}

/* SECTION CONTAINER */

#section-container {
    position:relative;
}

.inner {
    padding:48px 32px;
}

.section {
    display: none;
}

.section.active{
    display: block;
}

#shop-section{
    margin-top: 70px;
    text-align: center;
}

#blog-section{
    margin-top: 70px;
    text-align: center;
}

/* HOME SECTION */

#home-section {
    height: 100vh;
    background-size:cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.home-inner {
    display:flex;
    flex-direction: column;
    height:100%;
    width:100%;
    justify-content: center;
    align-items: center;
}

#home-content {
    display: flex;
    flex-direction: column;
    padding: 40px;
    backdrop-filter: blur(4px);
    align-items: center;
    border-radius: 20px;
}

#home-info {
    padding: 20px;
    color: white;
}

.contact-link{
    color: white;
    padding: 10px;
}

#blog-title{
    margin-top: 120px;
    margin-bottom: 50px;
}

/* SWIPER */
#home-slider-container{
    margin: 40px 0;
    width: 400px;
}

#home-slider {
    border-radius: 4px;
}

.home-slider-item-image {
    display:block;
    width:100%;
    height:200px;
    object-fit:cover;
}

.home-slider-item-title {
    font-weight: bold;
    font-size: large;
    padding-top: 24px;
    background-color: #ebebeb;
    text-align: center;
}

.home-slider-item-text {
    padding: 24px;
    background-color: #ebebeb;
    padding-bottom: 32px;
    text-align: center;
}

.swiper-button {
    width: 40px;
    height: 60px;
    color: #fff !important;
}

/* BLOG & FEED */
.feed-item{
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid;
}

.feed-item-title{
    font-weight: bold;
    text-align: center;
}

.feed-item-image{
    width: 200px;
}

#project-blog{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.project-blog-item{
    width: 400px;
}


/* POPUP */
#popup-container{
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 999;
    backdrop-filter: blur(4px);
}

#popup-container.active{
    display: flex;
}

#popup {
    padding: 48px;
    background-color: #fff;
    text-align: center;
    position: relative;
    border-radius: 4px;
}

#popup-title{
    font-weight: 600;
    margin-bottom: 16px;
}

#popup-info {
    text-align: center;
}

#popup-confirm {
    padding: 12px 16px;
    cursor: pointer;
    background-color: #121212;
    color: #fff;
    border-radius: 4px;
    margin-top: 24px;
}

/* SHOP */
.shop-product-slider-item-image {
    display:block;
    width:100%;
    height:320px;
    object-fit:cover;
    margin-bottom: 8px;
}

#shop-product-thumbs-slider {

}

#shop-product-title {
    font-size:24px;
}

.shop-product-thumbs-slider-item.swiper-slide {
    width:60px;
    opacity:0.6;
}

.shop-product-thumbs-slider-item.swiper-slide.swiper-slide-thumb-active {
    opacity: 1;
}

.shop-product-thumbs-slider-item-image {
    display:block;
    width: 100%;
    height: 60px;
    object-fit:cover;
}

#shop-container {
    position:relative;
    top: 36px;
    display:none;
}

#shop-container.active {
    display:block;

}

#shop-header {
    background-image: url(../assets/img/pattern1.jpg);
    background-repeat: repeat-x;
    background-size: 170px;
    height: 0;
    width:100%;
    position: fixed;
    overflow: hidden;
    transition: all 400ms ease-in-out;
    z-index: 10;
}

#shop-container.active #shop-header{
    height: 124px;
}

#shop-section-container{
    position: relative;
    top: 84px;
}

#shop-container {

}

#shop-main-category-section {
    display:none;
}

#shop-main-category-section.active {
    display:block;
}

#shop-sub-category-section {
    display:none;
}

#shop-sub-category-section.active {
    display:block;
}

#shop-product-list-section {
    display:none;
}

#shop-product-list-section.active {
    display:block;
}

#shop-product-section {
    display:none;
}

#shop-product-section.active {
    display:block;
}

#shop-section-container h2 {
    text-align:center;
    font-style:italic;
    font-size:24px;
    font-weight:bold;
    margin-bottom:48px;
}

#shop-main-category-container {
    display:flex;
    flex-wrap: wrap;
    gap:16px;
    flex-direction: row;
}

.shop-main-category-item {
    width: calc(50% - 8px);
    cursor: pointer;
}

.shop-main-category-item-image {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    padding-top: 100%;
    margin-bottom: 16px;
}


.shop-main-category-item-title {
    /* display:flex; */
    /* flex-direction: column; */
    /* justify-content: flex-end; */
    /* height: 100%; */
    /* width: 100%; */
    /* position: absolute; */
    /* pointer-events: none; */
    /* padding: 8px; */
    /* top: 100%; */
}

#shop-main-category-info {
    margin-bottom: 64px;
    text-align: center;
}

.shop-sub-category-item {
    width: calc(50% - 8px);
    padding-bottom: calc(50% - 8px);
    position: relative;
}

.shop-sub-category-item-image {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    height: 100%;
    position: absolute;
}

.shop-sub-category-item-title {
    display:flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
    position: absolute;
    pointer-events: none;
    padding: 8px;
    color: #fff;
}

#shop-sub-category-info {
    margin-bottom:38px;
}

#shop-product-list-container{display: flex;flex-wrap: wrap;gap: 16px;flex-direction: row;}

.shop-product-list-item{
    width: calc(50% - 8px);
    cursor: pointer;
}

.shop-product-list-item-image {background-size: cover;background-repeat: no-repeat;background-position: center center;width: 100%;padding-top: 100%;margin-bottom: 16px;}

.shop-product-list-item-title{
    z-index: 10;
}

.shop-product-list-item-subtitle{
    z-index: 10;
}

.shop-product-list-item-price{
    z-index: 10;
}

.shop-product-list-item-button{
    z-index: 10;
    padding: 4px;
    cursor: pointer;
}

#shop-product-present-message{
    display: none;
    margin-top: 8px;
    width: 100%;
    height: 128px;
    resize: none;
}

#shop-product-present-message.active{
    display: block;
}

#shop-product-present-container{
    display: none;
    margin-bottom: 24px;
}

#shop-product-present-container.active{
    display: block;
}


.shop-product-style-type{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#shop-product-page-style-section{
    display: none;
}

#shop-product-page-style-section.active{
    display: block;
}

#shop-product-page-style-title{
    /* font-size: larger; */
    /* text-align: center; */
    margin: 24px 0;
}


.shop-product-style-type-title{
    /* font-size: large; */
    /* text-align: center; */
}

#shop-product-page-style-container{
    display: flex;
    flex-direction: row;
    /* justify-content: space-around; */
    gap: 16px;
    margin-bottom: 30px;
}

.shop-product-style-name-container{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-product-style-item{
    display: flex;
    gap: 15px;
    padding: 8px 12px;
    opacity: 0.4;
    cursor: pointer;
    border-radius: 999px;
}

.shop-product-style-item.valid{
    opacity: 1;
}

.shop-product-style-item.sold-out{
    cursor: not-allowed;
    opacity: 0.3;
    text-decoration-line: line-through;
}

.shop-product-style-item.active{
    border: 1px solid #000;
}


.shop-product-style-item-color{
    height: 20px;
    width: 20px;
    border-radius: 50%;   
}

.shop-product-style-item-image{
    height: 20px;
    width: 20px;
}

#shop-cart-button{
    background-color: red;
    width: 100px;
    text-align: center;
    color: white;
}

#shop-product-buy-button{
    padding: 8px 16px;
    cursor: pointer;
    background-color: #000;
    color: #fff;
    border-radius: 999px;
    display: inline-block;
}

#shop-product-buy-button.sold-out{
    opacity: 0.4;
}

#shop-product-buy-number {
    width:64px;
    line-height: 32px;
    padding: 0 8px;
    margin-right: 8px;
}

#shop-product-container {
    display:flex;
    flex-direction:row;
}

#shop-product-left {
    width:50%;
}

#shop-product-right-page {
    width:50%;
}

/* cart */
/*cart popup*/
#cart-popup-container{
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 700;
    backdrop-filter: blur(4px);
}

#cart-popup-container.active{
    display: flex;
}

#cart-popup {
    padding: 48px;
    background-color: #fff;
    text-align: center;
    position: relative;
    border-radius: 4px;
}

#cart-popup-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

#cart-popup-back{
    display: none;
    cursor: pointer;
    padding: 5px;
}

#cart-popup-back.active {
    display: block;
}

#cart-popup-title{
    font-size: larger;
    font-weight: bold;
}

#cart-popup-close{
    cursor: pointer;
    padding: 5px;
}

#cart-popup-content{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 70px;
}

#cart-popup-items-container{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#cart-popup-info-container{
    display: none;
}

#cart-popup-info-container.active{
    display: block;
}

#cart-popup-footer{
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    gap: 15px;
    align-items: center;
}

#cart-popup-total {
    font-size: larger;
    font-weight: bold;
}

#cart-popup-order {
    padding: 12px 16px;
    cursor: pointer;
    background-color: #121212;
    color: #fff;
    border-radius: 4px;
}

.cart-product{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
    text-align: start;
}

.cart-product-remove{
    cursor: pointer;
    padding: 3px;
}

.cart-popup-customer-shipping-address{
    display: none;
    flex-direction: column;
    gap: 10px;
}

.cart-popup-customer-shipping-address.active{
    display: flex;
}

.cart-popup-customer-billing-address{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#cart-popup-customer-use-shipping{
    margin: 13px 5px;
}



.cart-popup-payment-methods{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-top: 30px;
}

.cart-popup-payment-method{
    padding: 9px;
    border: 1px solid;
    border-radius: 4px;
    cursor: pointer;
}

.cart-popup-payment-method.active{
    background-color: #121212;;
    color: #fff;
}

.cart-product-info-pieces{
    width: 30px;
}

.cart-product-break{
    height: 0;
    flex-basis: 100%;
}

.cart-product-present-message{
    font-style: italic;
    /* display: contents; <--- inline with "Geschenknachricht" but potential empty lines in message get removed*/
}

.cart-product-add{
    padding: 4px;
    cursor: pointer;
}

.cart-product-subtract{
    padding: 4px;
    cursor: pointer;
}

/* shop search */
#search-popup-container{
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 999;
    /* backdrop-filter: blur(4px); */
}

#search-popup-container.active{
    display: flex;
}

#search-popup {
    padding: 48px;
    background-color: #fff;
    text-align: center;
    position: relative;
    border-radius: 4px;
    min-width: 50%;
}

#search-popup-header{
    display: flex;
    justify-content: space-evenly;
}

#search-popup-content{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 30px;
}

.cart-product-pieces{
    width: 60px;
}

/* RESPONSIVE */
/**/
@media screen and (min-width: 600px) {
    .inner {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (min-width: 900px) {
    #header {
        display:flex;
        flex-direction: row;
        justify-content: center;
        gap: 24px;
        height: 54px;
        transition: all 400ms ease-in-out;
    }
    #header.shop {
        height: 36px;
    }
    .desktop-menu-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
    .desktop-menu-container:first-of-type {
        margin-left: 54px;
    }
    #logo {
        height: 74px;
    }
    .inner {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        padding: 96px 0;
    }
    #mobile-nav-container {
        display:none;
    }
    #mobile-nav-button {
        display:none;
    }
    .sortiment-grid-item {
        width: calc(33.33% - 12px);
        padding-bottom:33.33%;
    }
    .intro-slider-item-image {
        height:500px;
    }

    #intro-section p {
        margin-bottom: 96px;
        padding-left: 64px;
        padding-right: 64px;
    }

    #intro-slider {
        margin-bottom: 96px;
    }

    .inspiration-slider-item-image {
        height:500px;
    }

    #degustation-info {
        width:50%;
    }

    #degustation-image-container .image-container-inner {
        padding: 0;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    #degustation-section .inner {
        padding: 146px 0;
    }

    .shop-main-category-item {
        width: calc(25% - 12px);
    }
    .shop-product-list-item {
        width: calc(25% - 12px);
    }

}