/*
 Theme Name:   VAM
 Theme URI:    https://example.com/storefront-child
 Description:  Child theme of Storefront
 Author:       Your Name
 Template:     storefront
 Version:      1.0.0
*/

/* EB Garamond */
@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        url('assets/fonts/eb-garamond/static/EBGaramond-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'EB Garamond';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src:
        url('assets/fonts/eb-garamond/static/EBGaramond-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src:
        url('assets/fonts/eb-garamond/static/EBGaramond-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'EB Garamond';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src:
        url('assets/fonts/eb-garamond/static/EBGaramond-BoldItalic.ttf') format('truetype');
}

/* Playfair */

@font-face {
    font-family: 'Playfair';
    src: url('assets/fonts/playfair/PlayfairDisplay-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 400 900;
    font-style: normal;
}

@font-face {
    font-family: 'Playfair';
    src: url('assets/fonts/playfair/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 400 900;
    font-style: italic;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

.edit-link,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .with-empty-cart-icon:before,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-separator,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-heading:not(.with-empty-cart-icon),
.storefront-handheld-footer-bar,
.wc-forward:after {
    display: none;
}

a,
a:focus {
    color: inherit;
    outline: none !important;
    box-shadow: none !important;
}

input:focus-visible {
    outline: 0;
}

body {
    font-family: 'EB Garamond', serif;
    font-size: 20px;
    background-color: #fbf4ef;
    color: #000;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair', serif;
}

address {
    font-style: normal;
}

.search-form {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.search-form label {
    width: 50%;
}

.search-form label input {
    height: 70px;
    width: 100%;
    padding: 10px 20px;
    font-size: 20px;
    border: 1px solid grey;
    background: transparent;
    appearance: none;
}

.search-form .search-submit {
    width: 130px;
    margin-left: 15px;
    font-size: 20px;
    border-radius: 0;
    border: none;
    background-color: #000000;
    color: #FFFFFF;
    cursor: pointer;
}

.site {
    min-height: 100vh;
    padding: 0 20px;
}

.site-content .content-area {
    min-height: calc(100vh - 550px);
}

.site-header,
.site-content,
.vam-footer {
    max-width: 1400px;
    margin: auto;
}

@media screen and (max-width: 1400px) {

    .site-header,
    .site-content,
    .vam-footer {
        max-width: 1200px;
    }
}

@media screen and (max-width: 1200px) {

    .site-header,
    .site-content,
    .vam-footer {
        max-width: 900px;
    }
}

@media screen and (max-width: 900px) {

    .search-form {
        display: block;
    }

    .search-form .search-submit {
        margin: 20px 0 0 0;
        height: 50px;
        width: 100%;
    }

    .site-header,
    .site-content,
    .vam-footer {
        max-width: 500px;
    }

    .vam-footer>* {
        display: flex;
        justify-content: center !important;
        width: 100% !important;
    }
}

.woocommerce-message {
    margin: 20px 0 40px 0;
    padding: 20px 30px;
    color: #FFFFFF;
    background-color: #000000;
}

header.site-header,
.vam-footer {
    background: none;
    border: 0;
}

header.site-header {
    margin-bottom: 100px;
}

.woocommerce-active .site-header .main-navigation {
    width: 100%;
}

header.site-header .coll-full {
    max-width: unset;
}

header.site-header .site-branding {
    margin: 0 50px 0 0;
}

.vam-footer-wrapper {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
}

.vam-footer-wrapper .vam-footer>* {
    width: calc(100% / 3);
}

.vam-footer-wrapper .vam-footer .footer-title {
    display: flex;
    justify-content: center;
    text-align: center;
}

.vam-footer-wrapper .vam-footer .footer-address {
    display: flex;
    justify-content: end;
}

.vam-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 100px auto 0 auto;
    padding: 0 0 50px 0;
}

.vam-footer .site-tagline {
    font-size: 37px;
    font-weight: normal;
    text-align: center;
    max-width: 310px;
    margin: 0;
}

@media screen and (max-width: 600px) {

    .vam-footer {
        justify-content: center;
    }

    .vam-footer>* {
        margin: 20px 0;
    }

    .vam-footer .site-tagline {
        font-size: 20px;
    }

    .vam-footer address {
        text-align: center;
    }

}

/** Home page */

.products-overview {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.products-overview .product {
    display: flex;
    flex-direction: column;
    justify-content: end;
    width: calc(100% / 3);
    margin: 30px 0;
    padding: 0 5px;
    box-sizing: border-box;
}

.products-overview .product img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.products-overview .product-degustation {
    font-size: 16px;
    padding: 8px 0 10px 0;
    border-color: #000000;
    border-style: solid;
    border-width: 1px 0 1px 0;
}

.products-overview .product-degustation .product-content {
    max-height: 0;
    padding-top: 15px;
    padding-bottom: 15px;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition:
        max-height 0.5s ease-in-out,
        opacity 0.3s ease-in-out,
        padding 0.3s ease-in-out;
}


.products-overview .product-degustation .product-title {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    line-height: 24px;
}

.products-overview .product-degustation .dropdown-icon {
    display: block;
    height: 20px;
    padding-top: 4px;
}

.products-overview .product-degustation .dropdown-icon svg {
    height: 100%;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.products-overview .product-degustation.expanded .product-content {
    visibility: visible;
}

.products-overview .product-degustation.expanded .dropdown-icon svg {
    transform: rotate(180deg);
}

@media screen and (max-width: 900px) {
    .products-overview .product {
        width: calc(100% / 2);
    }
}

@media screen and (max-width: 600px) {
    .products-overview .product {
        width: 100%;
        padding: 0 5px;
    }
}


/** Products / Shop page */

.products-container {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.products-container .product {
    width: calc(100% / 3);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.products-container .product:hover {
    transform: scale(1.1);
}

.products-container .product a {
    text-decoration: none;
}

.products-container .product .product-thumb {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto 20px auto;
    overflow: hidden;
}

.products-container .product .product-thumb img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.products-container .product .product-title {
    font-size: 20px;
    font-weight: normal;
}

@media screen and (max-width: 600px) {
    .products-container .product {
        flex: 1;
        min-width: 100%;
        padding: 20px;
        text-align: center;
        transition: all 0.3s ease;
        overflow: hidden;
    }
}


/** Product page */

.product-container {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 0 0 300px 0;
}

.product-container>* {
    flex: 1;
    width: 50%;
}

.product-container .product-image {
    display: flex;
    align-items: start;
    justify-content: center;
}

.product-container .product-image img {
    width: 100%;
    height: auto;
}

.product-container .product-description {
    padding: 80px 0 0 0;
}

.product-container .product_title {
    font-size: 36px;
    margin: 0 0 25px 0;
}

.product-container .product_price {
    font-size: 20px;
    margin: 0 0 25px 0;
}

.product-container .product_add_to_cart .cart {
    display: flex;
    margin: 10px 0 40px 0;
}

.product-container .quantity {
    width: 110px;
}

.product-container .quantity input {
    width: 100%;
    padding: 24px 20px;
    text-align: left;
    border: 1px solid grey;
    background: transparent;
    appearance: none;
}

.product-container .single_add_to_cart_button {
    width: 100%;
    margin-left: 55px;
    border: 0;
    border-radius: 0;
    color: #FFFFFF;
    background-color: #000000;
    cursor: pointer;
}

.product-container .single_add_to_cart_button:hover {
    opacity: 0.5;
}

.product-container .wcpay-express-checkout-wrapper {
    margin: 0 0 40px 0;
}

.product-container .attribute>* {
    margin: 5px 0;
}

.product-container .attribute.degustation,
.product-container .attribute.caracteristiques,
.product-container .attribute.balance {
    margin: 35px 0;
}

.product-container .attribute.balance .note {
    display: flex;
}

.product-container .attribute.balance .note .balance-label {
    display: flex;
    margin-right: 5px;
}

@media screen and (max-width: 600px) {
    .product-container {
        display: block;
    }

    .product-container>* {
        width: 100%;
    }

    .product-container .quantity {
        width: 30%;
    }

    .product-container .single_add_to_cart_button {
        width: 70%;
        margin-left: 0;
    }
}

/** Contact page */

.wpcf7-form .wpcf7-text {
    width: 100%;
    height: 30px;
    background: none;
    font-size: 20px;
    border-bottom: 1px solid #000000 !important;
}

.wpcf7-form .wpcf7-textarea {
    width: 100%;
    height: auto;
    background: none;
    font-size: 20px;
    border-bottom: 1px solid #000000 !important;
    resize: vertical;
}

.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-text:focus-visible,
.wpcf7-form .wpcf7-textarea,
.wpcf7-form .wpcf7-textarea:focus,
.wpcf7-form .wpcf7-textarea:focus-visible {
    outline: none;
    border: none;
    box-shadow: none;
}

.wpcf7-form .wpcf7-submit {
    height: auto;
    padding: 20px 30px;
    border: 0;
    color: #FFFFFF;
    background-color: #000000;
}

.map {
    filter: grayscale(100%);
}

/** Cart page */

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
    text-decoration: none;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    font-size: initial !important;
    font-weight: normal !important;
}

.wc-block-components-totals-item__value {
    color: transparent;
    font-size: 0px;
}

.wc-block-components-totals-item__value span {
    color: initial;
    font-size: 25px;
}

.wc-block-components-button {
    text-decoration: none;
    color: #FFFFFF !important;
    background-color: #000000 !important;
    border: 0;
    outline: none !important;
    box-shadow: none !important;
}

.wc-block-components-button:focus {
    text-decoration: none;
    color: #FFFFFF !important;
    background-color: #000000 !important;
    border: 0;
    outline: none !important;
    box-shadow: none !important;
}

.wc-block-components-button:hover {
    opacity: 0.5;
}

/** 404 / Search page */

.no-results {
    text-align: center;
}

.search .site-content {
    text-align: center;
}

.search-results-list .result {
    margin: 10px 0;
}

/** Loader */

#fullpage-loader {
    display: none;
}

#fullpage-loader .loader-logo {
    margin-bottom: 1.5rem;
    /* space between logo and spinner */
    max-width: 200px;
    /* scale down if needed */
}

#fullpage-loader .loader-logo img {
    width: 100%;
    height: auto;
    display: block;
}

body.loading {
    overflow: hidden;
}

body.loading #fullpage-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background-color: #fbf4ef;
    z-index: 9999;
}

body.loading>*:not(#fullpage-loader) {
    visibility: hidden;
}

body.loading #fullpage-loader::after {
    content: "";
    width: 3rem;
    height: 3rem;
    border: 0.4rem solid rgba(0, 0, 0, 0.1);
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.vam-footer .footer-logo img {
    width: auto;
    max-width: 100%;
    max-height: 102px;
}

body.loading>*:not(#fullpage-loader) {
    visibility: hidden;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/** Domain check modal */
#geo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#geo-modal .modal-box {
    background: #fff;
    padding: 2rem;
    max-width: 400px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

#geo-modal button {
    margin: 1rem 0.5rem;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Menu */
.menu {
    display: flex;
    justify-content: space-between;
}

.menu h1 img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 102px;
}

.menu .middle-menu {
    display: flex;
    justify-content: end;
    align-items: center;
    flex-wrap: wrap;
}

.menu .middle-menu .page_item {
    margin: 0 10px;
    padding-bottom: 5px;
}

.menu .middle-menu .page_item.active {
    border-bottom: 1px solid #000000;
}

.menu .middle-menu a {
    color: inherit;
    text-decoration: none;
}

.menu_mobile {
    display: none;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    margin: 20px 0;
}

.menu_mobile h1 {
    display: flex;
    align-items: center;
    margin: 0;
}

.menu_mobile h1 .custom-logo-link {
    display: contents;
}

.menu_mobile h1 img {
    max-width: 100px;
    height: auto;
}

.menu_mobile .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 22px;
}

.menu_mobile .menu-icon span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #000000;
    transition: all 0.3s ease;
}

.menu_mobile .trp_language_switcher_shortcode {
    position: initial;
    margin: 25px 0 0 20px;
}

.menu_mobile #menu_mobile_expandable {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: #fbf4ef;
    z-index: 10;
}

.menu_mobile #menu_mobile_expandable .menu_mobile_links {
    text-align: center;
}

.menu_mobile #menu_mobile_expandable .menu_mobile_links .page_item {
    margin: 10px 0;
}

.menu_mobile #menu_mobile_expandable .menu_mobile_links a {
    text-decoration: none;
    color: inherit;
}

.menu_mobile #menu_mobile_expandable .trp_language_switcher_shortcode-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu_mobile #menu_mobile_expandable .trp_language_switcher_shortcode {
    margin: 0 0 7px 0;
}

.menu_mobile #menu_mobile_expandable .trp-ls-shortcode-current-language {
    padding: 0;
}

.menu_mobile #menu_mobile_expandable .trp-ls-shortcode-current-language a {
    font-size: 30px;
    padding-top: 4px;
}

.menu_mobile #menu_mobile_expandable .trp-ls-shortcode-language {
    position: fixed;
    bottom: -3px;
    top: unset;
    width: 100% !important;
    max-height: 50%;
    padding-left: 45px;
    display: flex !important;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    z-index: 20;
}

.menu_mobile #menu_mobile_expandable .trp-ls-shortcode-language a {
    font-size: 30px;
}

#menu_mobile_toggle {
    display: block;
    z-index: 1000;
    cursor: pointer;
}

.menu .trp_language_switcher_shortcode-container {
    margin: 0 25px;
}

@media screen and (max-width: 600px) {

    .menu {
        display: none;
    }

    .menu_mobile {
        display: flex;
    }

    #menu_mobile_toggle.open {
        position: fixed;
        top: 28px;
        right: 19px;
    }

    #menu_mobile_toggle.open .menu-icon span:nth-child(1) {
        opacity: 0;
    }

    #menu_mobile_toggle.open .menu-icon span:nth-child(2) {
        transform: rotate(-45deg);
        transform-origin: 21px 1px;
    }

    #menu_mobile_toggle.open .menu-icon span:nth-child(3) {
        transform: rotate(45deg);
        transform-origin: 23px 0px;
    }

    .menu_mobile #menu_mobile_expandable.open {
        display: flex;
        opacity: 1;
    }

}


/* Language switcher */
.trp_language_switcher_shortcode-container {
    position: relative;
    display: flex;
    justify-content: end;
    align-items: center;
}

.header-planet-icon {
    position: absolute;
    top: 10px;
    left: 0;
}

.trp_language_switcher_shortcode-container .header-dropdown-icon {
    position: absolute;
    top: 13px;
    right: 5px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.trp_language_switcher_shortcode-container .header-dropdown-icon svg {
    width: 20px;
    height: 20px;
}

.trp_language_switcher_shortcode-container:hover .header-dropdown-icon {
    top: 5px;
    transform: rotate(180deg);
}

.trp-language-switcher {
    width: auto;
}

.trp-language-switcher>div {
    border: 0;
    background: none;
}

.trp-language-switcher>div>a {
    padding: 3px 12px;
    font-size: 20px;
}


.trp-ls-shortcode-current-language {
    width: auto !important;
}

.trp-ls-shortcode-language .trp-ls-shortcode-disabled-language {
    opacity: 0.4;
}

/** Helpers */

.height-vh {
    height: 100vh;
}

.fw-normal {
    font-weight: normal;
}

.fs-1 {
    font-size: 80px !important;
}

.fs-2 {
    font-size: 64px !important;
}

.ff-2 {
    font-family: 'Playfair', serif;
}

@media screen and (max-width: 600px) {
    .fs-1 {
        font-size: 40px !important;
    }
}