/*
Theme Name: Ginglinger-Fix Child
Theme URI: https://est-data-com.fr/
Template: ginglinger-fix-theme
Author: EST Data Com
Description: Theme enfant Ginglinger-Fix pour les ajustements de navigation, accueil et responsive.
Version: 1.0.8
Text Domain: ginglinger-fix-child
*/

.gf-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
}

body.admin-bar .gf-header {
    top: 32px;
}

.gf-header-inner {
    height: auto;
    min-height: 116px;
    align-items: center;
    gap: 18px;
    padding-top: 10px;
    padding-bottom: 0;
}

.gf-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 0;
    width: auto;
    padding-bottom: 0;
}

.gf-brand img {
    width: clamp(128px, 13vw, 180px);
    max-height: 104px;
    height: auto;
    object-fit: contain;
}

.gf-nav {
    align-items: center;
    align-self: center;
}

.gf-nav a,
.gf-button,
.gf-label-button {
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.gf-nav a:hover,
.gf-nav a:focus-visible {
    transform: translateY(-1px);
}

.gf-button:hover,
.gf-button:focus-visible,
.gf-label-button:hover,
.gf-label-button:focus-visible {
    background: var(--gf-gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

.gf-nav > a[href*="/boutique/"] {
    white-space: nowrap;
}

.gf-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
}

.gf-cart-icon {
    display: block;
    flex: 0 0 auto;
}

.gf-cart-count {
    position: absolute;
    top: 0;
    right: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gf-gold);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.gf-cart-count.is-empty {
    display: none;
}

.gf-home-vineyard,
.gf-wine-glass,
.gf-page-content figure,
.woocommerce ul.products li.product {
    overflow: hidden;
}

.gf-home-vineyard {
    margin: 70px 0 0;
    width: 100%;
    padding-left: 0;
}

.gf-home-vineyard img {
    display: block;
    width: 355px;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gf-wine-glass img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.gf-home-vineyard img,
.gf-wine-glass img,
.gf-page-content img,
.woocommerce ul.products li.product a img {
    transition: transform .28s ease, filter .28s ease, box-shadow .28s ease;
}

.gf-home-vineyard:hover img,
.gf-wine-glass:hover img,
.gf-page-content figure:hover img,
.woocommerce ul.products li.product:hover a img {
    transform: scale(1.025);
    filter: saturate(1.04) contrast(1.02);
}

.woocommerce ul.products li.product {
    transition: transform .22s ease, box-shadow .22s ease;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
}

.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    background: #fff;
    padding: 16px;
    box-sizing: border-box;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.woocommerce ul.products li.product .button {
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .button:focus-visible {
    background: var(--gf-gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

.gf-footer-legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gf-footer-legal a {
    color: inherit;
    opacity: .82;
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease;
}

.gf-footer-legal a:hover,
.gf-footer-legal a:focus-visible {
    opacity: 1;
    transform: translateX(2px);
}

.gf-page-content .gf-legal-note {
    padding: 18px 20px;
    margin: 0 0 28px;
    background: #f5f2ea;
    border-left: 3px solid var(--gf-gold);
}

.gf-page-content .gf-legal-section {
    margin-top: 34px;
}

.gf-page-content .gf-legal-section h2 {
    margin-bottom: 12px;
}

.gf-page-content .gf-legal-section ul {
    padding-left: 20px;
}

.woocommerce-terms-and-conditions-checkbox-text a {
    font-weight: 700;
}

.gf-contact-form {
    display: grid;
    gap: 18px;
    max-width: 780px;
    margin-top: 34px;
}

.gf-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.gf-contact-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.gf-contact-form input,
.gf-contact-form textarea {
    width: 100%;
    border: 1px solid rgba(20, 20, 20, .18);
    border-radius: 0;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
    color: inherit;
    box-sizing: border-box;
}

.gf-contact-form textarea {
    resize: vertical;
}

.gf-contact-form input:focus,
.gf-contact-form textarea:focus {
    outline: 2px solid var(--gf-gold);
    outline-offset: 2px;
}

.gf-contact-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.gf-consent {
    display: flex !important;
    grid-template-columns: none;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px !important;
    font-weight: 400 !important;
}

.gf-consent input {
    width: auto;
    margin-top: 4px;
    flex: 0 0 auto;
}

.gf-form-notice {
    max-width: 780px;
    padding: 14px 16px;
    margin: 24px 0 0;
    border-left: 3px solid var(--gf-gold);
    background: #f5f2ea;
}

.gf-form-notice-error {
    border-left-color: #9b2c2c;
}

.gf-contact-location,
.gf-meetings {
    max-width: 980px;
    margin-top: 56px;
}

.gf-section-heading {
    margin-bottom: 18px;
}

.gf-section-heading p,
.gf-meeting-type {
    margin: 0 0 8px;
    color: var(--gf-gold-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.gf-section-heading h2,
.gf-meeting-card h3 {
    margin: 0;
}

.gf-map-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    overflow: hidden;
    background: #f5f2ea;
}

.gf-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.gf-map-address {
    margin: 12px 0 0;
    font-weight: 700;
}

.gf-meeting-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gf-meeting-card {
    min-height: 168px;
    padding: 24px;
    background: #f5f2ea;
    box-sizing: border-box;
    transition: transform .22s ease, box-shadow .22s ease;
}

.gf-meeting-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.gf-meeting-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 782px) {
    body.admin-bar .gf-header {
        top: 46px;
    }
}

@media (max-width: 760px) {
    .gf-hero {
        height: 50vw;
        min-height: 0;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center top;
    }

    .gf-header-inner {
        min-height: 94px;
        padding-top: 10px;
        padding-bottom: 8px;
    }

    .gf-brand img {
        width: clamp(126px, 42vw, 156px);
        max-height: 82px;
    }

    .gf-menu-toggle {
        flex: 0 0 auto;
    }

    .gf-nav {
        max-height: calc(100vh - 94px);
        overflow-y: auto;
    }

    .gf-cart-link {
        justify-content: flex-start;
        gap: 10px;
        min-height: 48px;
    }

    .gf-cart-count {
        position: static;
        margin-left: auto;
    }

    .gf-nav .gtranslate_wrapper,
    .gf-nav .gf-language-flags {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: flex-start;
        gap: 14px !important;
        min-height: 44px;
        padding: 0 14px !important;
        margin: 0 !important;
        background: #f5f2ea;
    }

    .gf-nav .gtranslate_wrapper a,
    .gf-nav .gf-language-flags a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: auto;
        min-height: auto;
        padding: 0 !important;
        background: transparent !important;
        line-height: 1;
    }

    .gf-nav .gtranslate_wrapper img,
    .gf-nav .gf-language-flags img {
        display: block;
        width: 18px !important;
        height: auto !important;
    }

    .gf-home-vineyard {
        margin: 36px 0 0;
    }

    .gf-home-vineyard img {
        width: 100%;
    }

    .gf-form-grid {
        grid-template-columns: 1fr;
    }

    .gf-contact-location,
    .gf-meetings {
        margin-top: 42px;
    }

    .gf-map-frame {
        aspect-ratio: 4 / 3;
        min-height: 260px;
    }

    .gf-meeting-grid {
        grid-template-columns: 1fr;
    }
}
