/*
Theme Name: Agrohouse
Description: Boutique de smoothies pour WooCommerce, avec modèles Elementor Free.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: agrohouse
*/

:root {
    --ag-green: #10482f;
    --ag-ink: #18372a;
    --ag-paper: #fcf9f1;
    --ag-yellow: #ffda5a;
    --ag-line: #e2e7da;
    --ag-white: #fff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--ag-paper);
    color: var(--ag-ink);
    font: 16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

a {
    color: var(--ag-green);
    text-underline-offset: .2em;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

h1,h2,h3 {
    color: var(--ag-green);
    line-height: 1.05;
    letter-spacing: -.045em;
    margin: .2em 0 .45em;
}

h1 {
    font-size: clamp(2.9rem,5.8vw,5.8rem);
    font-weight: 850;
}

h2 {
    font-size: clamp(2rem,4vw,3.6rem);
    font-weight: 800;
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 1em;
}

:focus-visible {
    outline: 3px solid #957000;
    outline-offset: 4px;
}

.ag-skip {
    position: absolute;
    left: 12px;
    top: -200px;
    background: white;
    padding: 10px;
    z-index: 10;
}

.ag-skip:focus {
    top: 12px;
}

.ag-wrap {
    width: min(1200px,calc(100% - 48px));
    margin-inline: auto;
}

.ag-header {
    background: #fff;
    border-bottom: 1px solid var(--ag-line);
}

.ag-header-row {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.ag-brand {
    text-decoration: none;
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: -.08em;
    line-height: 1;
}

.ag-brand span {
    color: #b08200;
}

.custom-logo {
    width: auto;
    max-width: 150px;
    max-height: 55px;
    object-fit: contain;
}

.ag-nav,.ag-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(.7rem,2.2vw,2rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ag-nav a,.ag-footer a {
    text-decoration: none;
    font-weight: 650;
}

.ag-nav a:hover,.ag-footer a:hover {
    text-decoration: underline;
}

.ag-button,.ag-header-cart,.ag-ui .elementor-button, .woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.ag-wrap .wc-block-components-button,.ag-mix button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .5em;
    padding: .82em 1.35em;
    border: 0;
    border-radius: 100px;
    background: var(--ag-green);
    color: white;
    font: inherit;
    font-weight: 730;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.25;
}

.ag-button:hover,.ag-header-cart:hover,.ag-ui .elementor-button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover {
    background: #203b27;
    color: white;
    filter: brightness(1.12);
}

.ag-header-cart {
    border: 1px solid var(--ag-line);
    background: #eef3e7;
    color: var(--ag-green);
    white-space: nowrap;
}

.ag-footer {
    background: var(--ag-green);
    color: #f2f4e9;
    margin-top: 64px;
    padding: 42px 0;
}

.ag-footer a {
    color: inherit;
}

.ag-footer .ag-brand {
    color: white;
}

.ag-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.ag-footer p {
    margin: .5em 0 0;
}

.ag-page {
    padding-block: 42px 15px;
}

.ag-page.ag-page-layout {
    width: 100%;
    padding: 0;
}

.ag-ui .elementor-container,.ag-fallback.ag-ui .ag-inner {
    width: min(1200px,calc(100% - 48px));
    max-width: none;
    margin-inline: auto;
}

.ag-ui .elementor-widget-heading .elementor-heading-title {
    color: var(--ag-green);
    line-height: 1.03;
    letter-spacing: -.055em;
    font-family: inherit;
    font-weight: 850;
}

.ag-ui h1.elementor-heading-title {
    font-size: clamp(2.9rem,6.25vw,6.1rem);
}

.ag-ui h2.elementor-heading-title {
    font-size: clamp(2.1rem,4.1vw,3.75rem);
}

.ag-ui .elementor-widget-text-editor {
    color: var(--ag-ink);
    font: inherit;
}

.ag-ui .elementor-column-gap-default>.elementor-column>.elementor-element-populated {
    padding: 0;
}

.ag-hero {
    padding: clamp(30px,5vw,72px) 0;
    background: #f4f3dc;
}

.ag-hero .elementor-container,.ag-spot .elementor-container,.ag-fallback .ag-inner {
    align-items: center;
    gap: clamp(20px,4vw,52px);
}

.ag-hero .elementor-column,.ag-spot .elementor-column {
    min-width: 0;
}

.ag-hero .elementor-widget-image img,.ag-spot .elementor-widget-image img,.ag-fallback .ag-media {
    width: 100%;
    object-fit: cover;
    border-radius: 36px;
    aspect-ratio: 1/1.04;
}

.ag-hero .elementor-widget-image img,.ag-hero.ag-fallback .ag-media {
    object-position: 50% 62%;
}

.ag-spot .elementor-widget-image img,.ag-spot.ag-fallback .ag-media {
    aspect-ratio: 1.3;
}

.ag-kicker,.ag-kicker p {
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ag-ui .ag-yellow .elementor-button,.ag-button.ag-yellow,.ag-mix button {
    color: #173929;
    background: var(--ag-yellow);
}

.ag-band,.ag-spot {
    padding: clamp(34px,5vw,75px) 0;
}

.ag-spot {
    background: #f5e9cd;
}

.ag-wide {
    padding-top: 12px;
}

.ag-fallback .ag-inner {
    display: grid;
    grid-template-columns: 1fr;
}

.ag-fallback.ag-hero .ag-inner,.ag-fallback.ag-spot .ag-inner {
    grid-template-columns: 1fr 1fr;
}

.ag-fallback .ag-button {
    margin: 0 .55rem .55rem 0;
}

.ag-woo {
    padding-block: 40px 10px;
}

.woocommerce ul.products li.product a img {
    aspect-ratio: 1.05;
    object-fit: cover;
    border-radius: 16px;
    background: #f1f3e8;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.3rem;
    line-height: 1.1;
    color: var(--ag-green);
}

.woocommerce ul.products li.product .price,.woocommerce div.product p.price,.woocommerce div.product span.price {
    color: var(--ag-green);
    font-weight: 800;
}

.woocommerce div.product div.images img {
    border-radius: 20px;
}

.woocommerce .quantity input.qty,.woocommerce select,.woocommerce input.input-text,.woocommerce textarea {
    background: white;
    border: 1px solid #a6b6a4;
    border-radius: 8px;
    padding: .55rem;
    color: var(--ag-ink);
    font: inherit;
}

.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,.ag-wrap .wc-block-components-button.contained {
    background: var(--ag-green);
    color: white;
}

.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce input.button.alt:hover {
    background: #286044;
}

.woocommerce-info,.woocommerce-message {
    border-top-color: var(--ag-green);
    background: #edf3e9;
}

.woocommerce-info::before,.woocommerce-message::before {
    color: var(--ag-green);
}

@media (max-width: 767px) {
    .ag-wrap,.ag-ui .elementor-container,.ag-fallback.ag-ui .ag-inner {
        width: calc(100% - 32px);
    }
    .ag-header-row {
        flex-wrap: wrap;
        padding-block: 13px;
        gap: 10px;
    }
    .ag-header-row nav {
        order: 3;
        flex-basis: 100%;
        border-top: 1px solid var(--ag-line);
        padding-top: 8px;
    }
    .ag-nav {
        font-size: .9rem;
    }
    .ag-fallback.ag-hero .ag-inner,.ag-fallback.ag-spot .ag-inner {
        grid-template-columns: 1fr;
    }
    .ag-hero .elementor-widget-image img,.ag-spot .elementor-widget-image img,.ag-fallback .ag-media {
        border-radius: 24px;
    }
    .ag-hero .elementor-column,.ag-spot .elementor-column {
        width: 100%;
    }
    .ag-hero .elementor-container,.ag-spot .elementor-container {
        gap: 22px;
    }
    .ag-footer {
        margin-top: 38px;
    }
}

.ag-hero .elementor-column:first-child>.elementor-widget-wrap {
    align-content: center;
    column-gap: 12px;
}

.ag-hero .elementor-column:first-child .elementor-widget-button {
    width: auto;
}

.ag-ui .elementor-widget-button {
    margin-top: 4px;
}

.ag-ui .elementor-widget-heading {
    margin-bottom: 8px;
}

.ag-ui .elementor-widget-text-editor p:last-child {
    margin-bottom: 0;
}

.ag-ui .elementor-widget-shortcode {
    margin-top: 18px;
}
