/* ==========================================================================
   ORVANA THEME — camada de design aplicada por cima do CSS existente.
   Carregar SEMPRE em último lugar. Não altera conteúdo nem lógica (JS):
   só aparência. Tokens e linguagem visual inspirados no template Orvana.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
/* paleta alinhada com o logótipo (verde-salva) + tons de terra */
:root {
    --primary: #1F3B2C;          /* verde floresta */
    --primary-dark: #142A1F;
    --mint: #CFE3A6;             /* verde folha (destaques) */
    --mint-soft: #EEF4E2;
    --sage: #7E8F72;             /* cor do logótipo */
    --earth: #B4683A;            /* terracota (pormenores) */
    --surface: #F6F2EA;          /* creme */
    --surface-2: #EFE9DC;
    --text: #3D4238;
    --text-2: #5F6558;
    --line: #E4DED1;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-card: 0 8px 28px rgba(31, 59, 44, 0.08);
    --shadow-hover: 0 18px 40px rgba(31, 59, 44, 0.16);
    --font-body: "Poppins", sans-serif;
    --font-head: "Fraunces", Georgia, serif;
    --container: 1320px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

    /* remapeia as variáveis antigas para a nova paleta,
       para que páginas ainda não tocadas fiquem coerentes */
    --green: var(--primary);
    --green-one: var(--mint);
    --green-hover-img: rgba(31, 59, 44, 0.12);
    --orange: var(--primary);
    --orange-two: rgba(31, 59, 44, 0.12);
    --yellow: var(--mint);
    --white: #ffffff;
    --white-two: rgba(255, 255, 255, 0.92);
    --background-color: var(--surface);
    --black-hover-img: rgba(0, 0, 0, 0.55);
    --pastel: var(--surface);
}

/* ---------- 2. BASE ---------- */
* {
    font-family: var(--font-body);
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--surface);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* header é fixo: páginas sem hero precisam de espaço no topo */
body:not(:has(.welcomeSection)) {
    padding-top: 104px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--primary);
    line-height: 1.25;
}

h1 *, h2 *, h3 *, h4 *, h5 *, h6 * {
    font-family: inherit;
}

a {
    color: var(--primary);
}

img {
    max-width: 100%;
}

::selection {
    background: var(--mint);
    color: var(--primary);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--primary);
}

/* ---------- 3. HEADER (pílula flutuante) ---------- */
header {
    position: fixed;
    top: 14px;
    left: 14px;
    right: 14px;
    min-width: 0;
    max-width: none;
    width: auto;
    z-index: 99;
    padding: 6px 8px 6px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: visible;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

header.change-header-overflow-x {
    position: fixed;
    overflow: visible;
    transition: none;
}

/* o <nav> deixa de ser caixa: logo e ícones ficam itens diretos do header */
.navbar {
    display: contents;
}

.logo-img-div {
    padding: 0;
}

.logo-img-div:first-child {
    order: 1;
}

.logo-img-div:nth-child(2) {
    order: 2;
    margin-right: auto;
}

.logo-img {
    max-height: 44px;
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-img-div h1 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: none;
    color: var(--primary);
    letter-spacing: 0;
    white-space: nowrap;
}

.cart-and-menu {
    order: 4;
    gap: 14px;
    padding: 10px 18px;
    background: var(--mint);
    border-radius: 999px;
}

.cart-and-menu i,
.cart-div .fa-basket-shopping,
.fa-magnifying-glass,
.fa-bars-staggered,
.fa-clock-rotate-left {
    color: var(--primary);
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.cart-and-menu i:hover {
    transform: scale(1.12);
}

.article-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
}

/* ---- menu mobile (ecrã inteiro) ---- */
.menu-list {
    position: fixed;
    inset: 0;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 96px 28px 40px;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.35s ease;
    overflow-y: auto;
}

.menu-list.show {
    opacity: 1;
    pointer-events: auto;
    z-index: 100;
}

.menu-list a {
    color: #fff;
    font-family: var(--font-head);
    text-transform: none;
    font-weight: 500;
}

header .menu-list a .menu-li {
    text-align: left;
    padding: 14px 0;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

header .menu-list a .menu-li:hover {
    color: var(--mint);
}

.fa-x {
    position: fixed;
    top: 26px;
    right: 28px;
    color: #fff !important;
    font-size: 1.4rem;
    z-index: 101;
    /* o min-height: 100% herdado deixava o ícone com a altura do ecrã e o hover fazia-o fugir */
    min-height: 0;
    height: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.cart-and-menu i.fa-x:hover {
    transform: none;
    opacity: 0.8;
}

.fa-x.fa-bars-staggered,
.openMenu.fa-x {
    background: none;
}

/* ---- pesquisa ---- */
.searchBar-div {
    background-color: rgba(20, 42, 31, 0.97);
    padding: 18vh 8vw;
    gap: 1.25rem;
}

.searchBar-div h3 {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    text-align: center;
}

.close-searchbar {
    color: #fff;
    top: 1rem;
}

.close-searchbar:hover {
    color: var(--mint);
}

.searchBarInput {
    width: min(720px, 100%);
    min-width: 0;
    padding: 16px 26px;
    font-size: 1.05rem;
    border: none;
    border-radius: 999px;
    color: var(--text);
    background: #fff;
    outline: none;
}

.searchBar-div .searchResults,
.searchResults {
    width: min(720px, 100%);
    list-style: none;
}

.searchResults li,
.searchResults li a {
    color: #fff;
}

.searchbar-button {
    background: var(--mint);
    color: var(--primary);
    border: none;
    border-radius: 999px;
}

/* ---- avisos ---- */
.alert {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    padding: 12px 18px;
}

.alert .cart-changed-message {
    font-size: 0.85rem;
    font-weight: 500;
}

.alert button {
    background: var(--mint);
    border: none;
    color: var(--primary);
    border-radius: 999px;
    padding: 8px 18px;
}

.alert button a {
    color: var(--primary);
    font-weight: 600;
}

/* ---------- 4. BOTTOM MENU (mobile) ---------- */
.bottom-menu {
    left: 14px;
    right: 14px;
    bottom: 14px;
    min-width: 0;
    max-width: none;
    width: auto;
    background: #fff;
    border: none;
    border-radius: 999px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
    padding: 12px 10px;
}

.bottom-menu div i,
.bottom-menu .cart-div .fa-basket-shopping {
    color: var(--primary);
}

/* ---------- 5. HERO (home) ---------- */
.welcomeSection {
    min-height: 100svh;
    background: #142A1F;
}

.welcomeSection .title-div {
    min-width: 100vw;
    max-width: 100vw;
    min-height: 100svh;
    max-height: none;
    margin: 0;
    padding: 0;
    align-items: flex-end;
    justify-content: flex-start;
}

.welcomeSection .title-div::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 32, 24, 0.78) 0%, rgba(16, 32, 24, 0.3) 55%, rgba(16, 32, 24, 0.1) 100%),
                linear-gradient(0deg, rgba(16, 32, 24, 0.55) 0%, rgba(16, 32, 24, 0) 45%);
}

.welcomeSection .title-div h1 {
    position: relative;
    bottom: auto;
    width: min(880px, 90vw);
    margin: 0 0 15svh 6vw;
    padding: 0;
    text-align: left;
    text-transform: none;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(2.3rem, 6vw, 5rem);
    line-height: 1.1;
    color: #fff;
    border-image: none;
}

/* ---------- 6. SECÇÃO DA IMAGEM DOS CABAZES DA SEMANA ---------- */
.image-with-weekly-baskets {
    width: min(var(--container), calc(100% - 28px));
    max-width: none;
    min-height: 0;
    height: min(72vh, 640px);
    margin: 56px auto 0;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .image-with-weekly-baskets {
        background-size: cover;
    }
}

/* ---------- 7. CABAZES DA SEMANA ---------- */
.cabazes {
    width: min(var(--container), calc(100% - 28px));
    margin: 72px auto 0;
    padding: 0;
}

.cabazes-section-title,
.cabazes .title-div {
    max-width: none;
    margin: 0 0 32px;
    text-align: center;
}

.cabazes-section-title h1,
.cabazes .title-div h1 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    color: var(--primary);
    text-align: center;
    padding: 0;
}

.cabaz-menu {
    margin: 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-content: stretch;
    align-items: stretch;
}

.cabaz-menu .photo-div-cabaz {
    display: flex;
}

.cabaz-menu .photo-div-cabaz > a {
    display: flex;
    width: 100%;
}

.cabaz-menu .photo-div-cabaz > a > div {
    width: 100%;
    display: flex;
}

.cabazContent {
    width: 100%;
    min-height: 170px;
    padding: 28px 18px;
    gap: 14px;
    align-content: center;
    text-align: center;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: none;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cabazContent:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--mint);
}

.cabazContent h3,
.cabazName {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: none;
    min-width: 0;
    padding: 0;
    color: var(--primary);
}

.cabazContent span,
.cabazPrice {
    background: var(--mint);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 999px;
    margin: 0 auto;
    width: fit-content;
}

/* primeiro cartão (criar cabaz) em destaque */
.cabaz-menu .cabaz-4 .cabazContent {
    background: var(--primary);
}

.cabaz-menu .cabaz-4 .cabazContent h3 {
    color: #fff;
}

@media (min-width: 860px) {
    .cabaz-menu {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
        margin: 0;
        align-items: stretch;
    }

    .cabaz-menu .cabaz-4 {
        grid-column: auto;
    }

    .cabazContent {
        min-height: 220px;
    }
}

/* ---------- 8. SOBRE NÓS (home + página) ---------- */
.about-us {
    width: min(var(--container), calc(100% - 28px));
    margin: 96px auto 0;
    display: block;
}

.about-us-div {
    display: grid;
    gap: 28px;
    text-align: left;
    font-size: 1rem;
    max-width: none;
}

.about-us-photo {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.about-us-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.about-us .about-us-description,
.about-us-description {
    margin: 0;
    padding: 28px 24px;
    gap: 14px;
    text-align: left;
    background: #fff;
    border-radius: var(--radius-lg);
    align-content: center;
    justify-content: stretch;
}

.about-us-description h2 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    padding: 0;
    margin: 0 0 4px;
    max-width: none;
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--primary);
}

.about-us-description p {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 400;
    text-align: left;
    line-height: 1.75;
    padding: 0;
}

.description-two {
    margin: 0;
}

.see-more-button button {
    color: var(--primary);
    font-weight: 600;
    font-style: normal;
    text-decoration: underline;
}

@media (min-width: 900px) {
    .about-us-div {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        align-items: stretch;
    }

    .about-us-description {
        padding: 48px 44px;
    }

    .about-us-div > :nth-child(1) { grid-column: 1; grid-row: 1; }
    .about-us-div > :nth-child(2) { grid-column: 2; grid-row: 1; }
    .about-us-div > :nth-child(3) { grid-column: 2; grid-row: 2; }
    .about-us-div > :nth-child(4) { grid-column: 1; grid-row: 2; }
}

/* ---------- 9. INFORMAÇÕES (home + página) ---------- */
.informations-sec {
    width: min(var(--container), calc(100% - 28px));
    max-width: none;
    margin: 72px auto 0;
    display: grid;
    gap: 20px;
    text-align: left;
}

.come-see-us,
.website-explanation {
    margin: 0;
    padding: 32px 28px;
    gap: 14px;
    background: #fff;
    border-radius: var(--radius-lg);
    align-content: start;
}

.come-see-us h3,
.website-explanation h3 {
    text-align: left;
    text-transform: none;
    color: var(--primary);
    font-size: 1.35rem;
}

.come-see-us p,
.website-explanation p {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.75;
}

.praca-location a,
.create-cabaz a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 1000px) {
    .informations-sec {
        grid-template-columns: 1fr 1fr 1.25fr;
        align-items: stretch;
    }
}

/* ---------- 10. TESTEMUNHOS ---------- */
.section-title-testimonial {
    width: min(var(--container), calc(100% - 28px));
    margin: 80px auto 0;
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 600;
    text-align: center;
    color: var(--primary);
}

.testimonials {
    width: min(var(--container), calc(100% - 28px));
    margin: 28px auto 0;
    padding: 0 0 12px;
}

.testimonials-flex {
    gap: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.testimonials .client-testimonial {
    flex: 0 0 min(86%, 380px);
    min-width: 0;
    margin: 0;
    padding: 28px 26px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: none;
    border: 1px solid var(--line);
    scroll-snap-align: start;
    align-content: start;
}

.testimonials .client-name {
    font-family: var(--font-head);
    font-size: 1.05rem;
    letter-spacing: 0;
    color: var(--primary);
}

.testimonials .testimonial-text {
    font-size: 0.95rem;
    font-style: normal;
    color: var(--text);
    line-height: 1.7;
}

.testimonials .client-testimonial .date-and-job {
    color: var(--text-2);
}

.testimonials .testimonial-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-2);
}

/* ---------- 11. IMPRENSA ---------- */
.press {
    width: min(var(--container), calc(100% - 28px));
    margin: 28px auto 0;
    padding: 28px 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    display: grid;
    gap: 22px;
    align-items: center;
}

.press .media-text-description {
    color: var(--text);
    line-height: 1.75;
}

.press .press-photo {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    max-height: 360px;
}

.press .read-more {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.press .read-more button {
    background: var(--primary);
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.press .read-more button a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

.press .read-more button:hover {
    background: var(--primary-dark);
}

.press .press-logo {
    max-height: 44px;
    width: auto;
}

@media (min-width: 900px) {
    .press {
        grid-template-columns: 1.2fr 1fr;
        padding: 44px;
        gap: 44px;
    }

    .press .media-text-description { grid-column: 1; grid-row: 1; }
    .press .press-photo           { grid-column: 2; grid-row: 1 / span 2; max-height: 420px; }
    .press .read-more             { grid-column: 1; grid-row: 2; }
}

/* ---------- 12. FORMULÁRIOS ---------- */
.contactForm {
    width: min(720px, calc(100% - 28px));
    margin: 64px auto 0;
    padding: 36px 28px;
    background: #fff;
    border-radius: var(--radius-lg);
    display: grid;
    gap: 18px;
}

.contactForm .introductionText,
.contactForm label {
    color: var(--text);
}

.contactForm label {
    font-weight: 500;
    font-size: 0.9rem;
}

.contactForm input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.contactForm textarea,
.contactForm select,
form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
form textarea,
form select {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contactForm input:focus,
.contactForm textarea:focus,
form input:focus,
form textarea:focus,
form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(207, 227, 166, 0.6);
}

.btn-info,
form button[type="submit"] {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 32px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-info:hover,
form button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.obligationOrErrorMessage {
    color: var(--text-2);
    font-size: 0.8rem;
}

/* ---------- 13. PÁGINA DE PRODUTOS (categorias) ---------- */
.all-products {
    width: min(var(--container), calc(100% - 28px));
    margin: 0 auto 72px;
    padding: 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    align-items: stretch;
}

.all-products .products-title {
    grid-column: 1 / -1;
    background: transparent;
    color: var(--primary);
    padding: 12px 0 24px;
    margin: 0;
    max-width: none;
    box-shadow: none;
    border-radius: 0;
    display: block;
}

.products-title h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    font-weight: 600;
    text-align: center;
    color: var(--primary);
}

.all-products div:not(.title-div) {
    padding: 0;
}

.all-products .photo-div-product {
    display: block;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: center;
}

.all-products .photo-div-product:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.all-products .photo-div-product > a {
    display: block;
    padding: 12px 12px 18px;
}

.all-products img {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.all-products .photo-div-product:hover img {
    transform: scale(1.03);
}

.all-products a p {
    display: block;
    max-width: none;
    margin: 14px 0 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--primary);
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    text-align: center;
}

.all-products div a p:hover {
    background: transparent;
    color: var(--primary-dark);
}

@media (min-width: 700px) {
    .all-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1100px) {
    .all-products {
        grid-template-columns: repeat(5, 1fr);
        margin: 0 auto 72px;
        gap: 22px;
    }

    .all-products .products-title {
        grid-column: 1 / -1;
        margin: 0;
    }

    .all-products img {
        min-height: 0;
        max-height: none;
    }
}

/* ---------- 14. LISTAGENS DE PRODUTOS (cartões) ---------- */
section.ervas, section.saladas, section.verduras, section.raizes, section.microverdes, section.floresComestiveis,
section.leguminosas, section.horticulas, section.ovos, section.sabaoNatural, section.plantasEmVaso,
section.compotas, section.cogumelos, section.carnes {
    width: min(var(--container), calc(100% - 28px));
    max-width: none;
    margin: 0 auto 72px;
    padding: 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: stretch;
    justify-content: stretch;
}

.section-title {
    grid-column: 1 / -1;
    margin: 0 auto 12px;
    padding: 0;
    background: transparent;
    color: var(--primary);
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 0;
    text-align: center;
}

.stock-subtitle {
    margin: 14px 0 0;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.stock-subtitle--available {
    background: var(--mint);
    color: var(--primary);
}

.stock-subtitle--unavailable {
    background: #ebe8e1;
    color: var(--text);
    opacity: 1;
}

.boxItem {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    margin: 0;
    padding: 10px 10px 14px;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.boxItem:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.boxItem img {
    order: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    background: var(--surface);
    margin: 0;
}

.boxItem .kiloPrice {
    order: 1;
    margin: 14px 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.boxItem h3 {
    display: block;
    order: 2;
    margin: 4px 4px 12px;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text);
    text-align: left;
}

.boxItem select,
.boxItem input {
    order: 3;
    width: 100%;
    margin: 0;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background-color: #fff;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}

.boxItem select:hover,
.boxItem select:focus {
    border-color: var(--primary);
    outline: none;
}

.boxItem select option {
    background-color: #fff;
    color: var(--text);
    max-width: none;
}

.boxItem .priceToPay {
    order: 4;
    margin: 8px 4px 4px;
    min-height: 1.4em;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

.boxItem button {
    order: 5;
    margin-top: auto;
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.boxItem button:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
}

.boxItem button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.compotas .boxItem select,
.sabaoNatural .boxItem select {
    width: 100%;
}

.boxItem.out-of-stock {
    opacity: 0.65;
    border-color: var(--line);
    background: #fff;
}

.boxItem.out-of-stock h3 {
    color: var(--text-2);
}

.boxItem.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}

@media (min-width: 640px) {
    section.ervas, section.saladas, section.verduras, section.raizes, section.microverdes, section.floresComestiveis,
    section.leguminosas, section.horticulas, section.ovos, section.sabaoNatural, section.plantasEmVaso,
    section.compotas, section.cogumelos, section.carnes {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1000px) {
    section.ervas, section.saladas, section.verduras, section.raizes, section.microverdes, section.floresComestiveis,
    section.leguminosas, section.horticulas, section.ovos, section.sabaoNatural, section.plantasEmVaso,
    section.compotas, section.cogumelos, section.carnes {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
    }
}

/* popup da ficha técnica (criado por JS) */
#fichaPopup {
    border-radius: var(--radius-lg) !important;
}

/* ---------- 15. RODAPÉ ---------- */
.media-and-contacts {
    margin: 96px 0 0;
    padding: 56px max(6vw, 20px) 40px;
    background: var(--primary);
    border-radius: 32px 32px 0 0;
    color: #fff;
    gap: 28px;
}

.media-and-contacts,
.media-and-contacts * {
    color: #fff;
}

.media-and-contacts .footer-head {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.media-and-contacts .footer-head .logo-img {
    height: 64px;
    width: 64px;
}

.media-and-contacts .footer-head h4 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
    color: #fff;
}

.media-and-contacts .footer-head p {
    grid-column: auto;
    text-align: left;
    letter-spacing: 0;
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.line-break {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.media-and-contacts i {
    width: 46px;
    height: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mint);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.media-and-contacts a:hover i {
    transform: translateY(-3px);
    background: #fff;
}

.media-and-contacts i {
    color: var(--primary);
}

.social-media {
    padding: 0;
    gap: 14px;
    max-width: none;
    font-weight: 500;
    font-style: normal;
}

.footer-end p,
.social-media {
    font-weight: 500;
    font-style: normal;
}

.media-and-contacts .footer-end {
    padding: 0;
    gap: 10px;
    font-size: 0.95rem;
    letter-spacing: 0;
}

.media-and-contacts .footer-end a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}

.media-and-contacts .footer-end a:hover {
    color: var(--mint);
}

.call-cost {
    grid-column-start: auto;
}

.info-tel {
    width: auto;
    margin: 0;
}

.webDevSp {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 700px) {
    .media-and-contacts {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }

    .media-and-contacts .footer-head,
    .line-break,
    .webDevSp {
        grid-column: 1 / -1;
    }

    .media-and-contacts .footer-head {
        flex-direction: row;
        align-items: center;
        gap: 18px;
        flex-wrap: wrap;
    }

    .media-and-contacts .footer-head p {
        width: 100%;
    }
}

/* ---------- 16. DESKTOP (≥1100px): menu em linha dentro da pílula ---------- */
@media (min-width: 1100px) {
    header {
        top: 18px;
        left: 3vw;
        right: 3vw;
        padding: 8px 10px 8px 22px;
        gap: 22px;
    }

    .fa-bars-staggered,
    .openMenu {
        display: none !important;
    }

    .logo-img-div:nth-child(2) {
        margin-right: 0;
    }

    .logo-img-div h1 {
        font-size: 1.3rem;
    }

    .menu-list {
        order: 3;
        position: static;
        inset: auto;
        flex: 1;
        width: auto;
        height: auto;
        min-width: 0;
        max-width: none;
        margin: 0;
        padding: 0;
        flex-direction: row;
        justify-content: center;
        gap: 4px;
        background: transparent;
        opacity: 1;
        pointer-events: auto;
        z-index: auto;
        overflow: visible;
    }

    .menu-list a {
        color: var(--primary);
        font-family: var(--font-body);
        font-weight: 500;
    }

    header .menu-list a .menu-li {
        padding: 8px 12px;
        font-size: 0.88rem;
        border: none;
        color: var(--primary);
        border-radius: 999px;
        transition: background 0.2s ease;
    }

    header .menu-list a .menu-li:hover {
        background: var(--mint-soft);
        color: var(--primary);
    }

    .cart-and-menu {
        padding: 12px 22px;
    }

    .cart-and-menu .fa-clock-rotate-left {
        display: inline-block;
    }

    .welcomeSection .title-div h1 {
        margin-left: 8vw;
    }

    .alert {
        top: 110px;
    }

    .about-us-div {
        font-size: 1rem;
    }

    .cabaz-menu {
        margin: 0;
    }

    .title-div {
        margin: 0;
        max-width: none;
    }

    .welcomeSection .title-div {
        margin: 0;
        max-width: 100vw;
    }

    .cabazContent h3 {
        color: var(--primary);
    }

    .cabaz-menu .cabaz-4 .cabazContent h3 {
        color: #fff;
    }
}

@media (max-width: 1099px) {
    .bottom-menu {
        display: flex;
    }

    /* espaço para o menu inferior no mobile */
    body {
        padding-bottom: 88px;
    }
}

@media (min-width: 769px) and (max-width: 1099px) {
    .bottom-menu {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}

/* ---------- 17. CARRINHO ---------- */
.cartList {
    width: min(900px, calc(100% - 28px));
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-content: start;
}

.buttonsDelAndAdvance {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 6px;
    padding: 0;
    width: 100%;
    position: static;
}

.delete-cart,
.advance-cart {
    border-radius: 999px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.delete-cart {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.delete-cart:hover {
    background: var(--primary);
    color: #fff;
}

.advance-cart {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

.advance-cart a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.advance-cart:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.advance-cart:disabled {
    opacity: 0.45;
}

.box-cart {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin: 0;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: none;
    transition: box-shadow 0.25s ease;
}

.box-cart:hover {
    box-shadow: var(--shadow-card);
    transform: none;
}

.box-cart .box-1 {
    flex: 0 0 auto;
}

.box-cart img,
.cartList .box-cart img {
    width: 92px;
    height: 92px;
    min-width: 92px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--surface);
}

.box-cart .box-2 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    min-width: 0;
    padding: 0;
    margin: 0;
}

.box-cart .box-2 h3,
.box-cart .itName {
    margin: 0;
    flex: 1 1 140px;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    background: transparent;
    padding: 0;
}

.box-cart .box-2 .box-2-child {
    display: flex;
    margin: 0;
    padding: 0;
    background: transparent;
}

.box-cart .box-2 .box-2-child span,
.box-cart .quantity {
    background: var(--surface);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
}

.box-cart .box-2 > div:nth-child(3) {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    background: transparent;
}

.box-cart .priceToPay {
    background: var(--mint);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    margin: 0;
}

.box-cart button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.box-cart button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.box-cart .fa-trash-can {
    color: var(--primary);
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
    background: transparent;
    width: auto;
    height: auto;
}

.box-cart button:hover .fa-trash-can {
    color: #fff;
}

.empty-car-message {
    text-align: center;
    padding: 56px 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    display: grid;
    gap: 6px;
    justify-content: center;
    min-height: 0;
    margin: 0;
}

.empty-car-message p {
    color: var(--text);
    font-size: 1rem;
    max-width: 460px;
    margin: 0 auto;
}

.empty-car-message p:first-child {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
}

.sub-total {
    position: fixed;
    left: 50%;
    bottom: 100px;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    background: var(--primary);
    color: #fff;
    font-weight: 500;
    border-radius: 999px;
    box-shadow: var(--shadow-hover);
    white-space: nowrap;
}

.sub-total .final-price {
    background: var(--mint);
    color: var(--primary);
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 999px;
    margin: 0;
}

.priceAlert {
    width: min(900px, calc(100% - 28px));
    margin: 24px auto 120px;
    position: static;
    background: transparent;
    color: var(--text-2);
    font-size: 0.82rem;
    text-align: center;
    justify-content: center;
}

@media (min-width: 1100px) {
    .sub-total {
        bottom: 28px;
    }
}

@media (max-width: 560px) {
    .box-cart {
        align-items: flex-start;
    }

    .box-cart img,
    .cartList .box-cart img {
        width: 72px;
        height: 72px;
        min-width: 72px;
    }
}

/* ---------- 18. PÁGINAS DE CABAZ (um, dois, três, extra) ---------- */
.cabaz-um, .cabaz-dois, .cabaz-tres, .cabaz-extra {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: min(760px, calc(100% - 28px));
    margin: 0 auto 0;
    max-width: none;
}

.cabaz-box {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    padding: 40px 28px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.cabaz-name-title {
    margin: 0;
    padding: 0;
    min-width: 0;
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    font-weight: 600;
    color: var(--primary);
    text-align: center;
}

.cabaz-box .cabazPrice {
    margin: 0;
    font-size: 1.05rem;
    padding: 8px 22px;
}

.cabaz-content {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    gap: 22px;
    border: none;
    border-radius: 0;
    grid-column: auto;
    justify-content: stretch;
}

.cabaz-content .cabaz-list {
    padding: 26px 22px;
    background: var(--surface);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 1rem;
    line-height: 2;
    text-align: center;
    justify-content: center;
}

.add-to-cart-button-number-one,
.add-to-cart-button-number-two,
.add-to-cart-button-number-three,
.add-to-cart-button-extra {
    /* mesmo tamanho dos outros botões pequenos do site: só um pouco maior que o texto, centrado */
    display: block;
    width: fit-content;
    min-width: 0;
    min-height: 0;
    height: auto;
    margin: 0 auto;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.6;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.add-to-cart-button-number-one:hover,
.add-to-cart-button-number-two:hover,
.add-to-cart-button-number-three:hover,
.add-to-cart-button-extra:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.sugestionsContent {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.sugestionsContent .sugestionsTitle {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.sugestion {
    padding: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

/* mesmo tamanho dos botões pequenos do site (filtro de stock): só um pouco maiores que o texto */
.sugestion a {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.sugestion a span,
.sugestion span {
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
}

.sugestion:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.sugestion:hover span {
    color: #fff;
    text-decoration: none;
}

.cabaz-um, .cabaz-dois, .cabaz-tres, .cabaz-extra {
    align-items: stretch;
    max-height: none;
}

/* ---------- 19. FORMULÁRIO DE CONTACTO — afinações ---------- */
.contactForm {
    border: none;
    box-shadow: var(--shadow-card);
    max-width: 720px;
}

.contactForm > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 0;
    padding: 0;
    text-align: left;
    align-items: start;
}

.contactForm > div label {
    text-align: left;
    margin: 0;
    padding: 0;
    width: auto;
    color: var(--primary);
    font-size: 0.85rem;
}

.contactForm > div label span {
    color: var(--primary);
}

.contactForm textarea {
    border-radius: 14px;
    resize: vertical;
    min-height: 140px;
    border: 1px solid var(--line);
}

.contactForm .introduction {
    text-align: center;
}

.contactForm .btn-info {
    justify-self: center;
    min-width: 180px;
}

.contactForm .obligationOrErrorMessage {
    text-align: left;
}

/* carrossel horizontal de testemunhos (home) */
.testimonials.testimonials-flex {
    display: flex;
    overflow-x: auto;
    padding: 4px 0 18px;
    gap: 16px;
}

.testimonials.testimonials-flex .client-testimonial {
    flex: 0 0 min(86%, 400px);
    min-width: 0;
}

/* página de testemunhos: grelha de cartões */
.testimonials:not(.testimonials-flex) {
    gap: 16px;
}

.testimonials:not(.testimonials-flex) .client-testimonial {
    margin: 0;
    min-width: 0;
    flex: none;
}

.contactForm div:not(.introduction):not(.clientMessage) {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    align-items: start;
    gap: 6px;
}

.contactForm .clientMessage {
    gap: 6px;
}

.contactForm div input,
.contactForm div textarea {
    min-width: 0;
    width: 100%;
}

.menu-list,
.menu-list.show {
    transition: opacity 0.35s ease;
}

/* ---------- 20. FINALIZAR ENCOMENDA (advancePageOne) ---------- */
.client-data-sec {
    width: min(760px, calc(100% - 28px));
    max-width: none;
}

.client-data-sec form h4 {
    max-width: none;
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--primary);
}

.client-data-sec form section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: none;
}

.client-data-sec input,
.client-data-sec textarea,
.client-data-sec select {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font-weight: 500;
}

.client-data-sec input:focus,
.client-data-sec textarea:focus,
.client-data-sec select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(207, 227, 166, 0.6);
}

.radio-buttons div {
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--primary);
    padding: 10px 22px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.radio-buttons div:hover {
    opacity: 1;
    border-color: var(--primary);
    background: var(--mint-soft);
}

.radio-buttons div label {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.radio-buttons div:has(input:checked) {
    background: var(--mint);
    border-color: var(--primary);
}

.send-user-data-btn {
    max-width: none;
    min-width: 220px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 500;
}

.send-user-data-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    color: #fff;
}

.send-user-data-btn:disabled {
    background: var(--primary);
    opacity: 0.4;
}

/* ==========================================================================
   22. REFINAMENTO 2026 — tipografia, componentes e secções novas
   ========================================================================== */

/* ---- tipografia ---- */
h1, h2, h3, h4 {
    font-weight: 500;
    letter-spacing: -0.015em;
}

.logo-img-div .site-name {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

/* nomes de produtos e textos pequenos ficam na fonte de texto */
.boxItem h3,
.box-cart .box-2 h3,
.box-cart .itName,
.alert,
.menu-list a {
    font-family: var(--font-body);
}

.boxItem h3 {
    font-weight: 500;
    letter-spacing: 0;
}

/* menu: página atual */
header .menu-list a.is-current .menu-li {
    color: var(--mint);
}

@media (min-width: 1100px) {
    header .menu-list a.is-current .menu-li {
        background: var(--mint-soft);
        color: var(--primary);
        font-weight: 600;
    }
}

/* ---- botões ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn i {
    font-size: 0.85em;
    transition: transform 0.3s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:hover .fa-arrow-right {
    transform: translateX(4px);
}

.btn--leaf {
    background: var(--mint);
    color: var(--primary);
}

.btn--leaf:hover {
    background: #fff;
}

.btn--outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline-light:hover {
    background: #fff;
    color: var(--primary);
}

.btn--ghost {
    color: var(--primary);
    border-color: var(--primary);
}

.btn--ghost:hover {
    background: var(--primary);
    color: #fff;
}

/* ---- eyebrow + cabeçalho de secção ---- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #94502A; /* terracota mais escuro: contraste AA sobre creme e branco */
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: currentColor;
}

.eyebrow--light {
    color: var(--mint);
}

.section-head {
    width: min(780px, calc(100% - 28px));
    margin: 104px auto 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.section-head h1,
.section-head h2,
.section-head .section-title-testimonial {
    width: auto;
    margin: 0;
    padding: 0;
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    font-weight: 500;
    line-height: 1.12;
    color: var(--primary);
    text-align: center;
}

.section-head p {
    max-width: 560px;
    color: var(--text-2);
    font-size: 1rem;
}

.cabazes .section-head,
.about-us .section-head {
    width: auto;
    margin: 0 auto 36px;
}

/* ---- HERO DA HOME ---- */
.welcomeSection {
    position: relative;
    display: block;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    background: var(--primary-dark);
}

.welcomeSection .title-div {
    position: absolute;
    inset: 0;
    min-width: 0;
    max-width: none;
    min-height: 0;
    max-height: none;
    z-index: -2;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.8s var(--ease), transform 1.8s var(--ease);
}

.welcomeSection .title-div.is-active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.8s var(--ease), transform 8s linear;
}

.welcomeSection .title-div::before {
    display: none;
}

.welcomeSection::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(16, 32, 24, 0.82) 0%, rgba(16, 32, 24, 0.45) 55%, rgba(16, 32, 24, 0.15) 100%),
        linear-gradient(0deg, rgba(16, 32, 24, 0.7) 0%, rgba(16, 32, 24, 0) 50%);
}

.hero-content {
    min-height: 100svh;
    max-width: 920px;
    padding: 150px 6vw 15svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 20px;
}

.hero-content h1 {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: #fff;
    text-wrap: balance;
}

.hero-content p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.hero-content > * {
    animation: heroIn 1s var(--ease) both;
}

.hero-content > :nth-child(2) { animation-delay: 0.12s; }
.hero-content > :nth-child(3) { animation-delay: 0.24s; }
.hero-content > :nth-child(4) { animation-delay: 0.36s; }

@keyframes heroIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

.hero-badge {
    display: none;
}

@media (min-width: 1000px) {
    .hero-content {
        padding-left: 8vw;
    }

    .hero-badge {
        position: absolute;
        right: 5vw;
        bottom: 15svh;
        display: flex;
        align-items: center;
        gap: 14px;
        max-width: 300px;
        padding: 16px 20px;
        border-radius: 20px;
        color: #fff;
        font-size: 0.85rem;
        line-height: 1.45;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.22);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        animation: heroIn 1s 0.5s var(--ease) both;
    }

    .hero-badge i {
        flex: 0 0 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: var(--mint);
        color: var(--primary);
    }

    .hero-badge strong {
        display: block;
        font-family: var(--font-head);
        font-size: 1.05rem;
        font-weight: 500;
    }
}

/* ---- faixa de valores (marquee) ---- */
.home-values {
    overflow: hidden;
    background: var(--primary);
    color: #fff;
    padding: 20px 0;
}

.home-values__track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.home-values span {
    font-family: var(--font-head);
    font-size: clamp(1.05rem, 1.8vw, 1.4rem);
    white-space: nowrap;
}

.home-values i {
    color: var(--mint);
    font-size: 0.9rem;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ---- imagem dos cabazes da semana ---- */
.image-with-weekly-baskets {
    margin-top: 72px;
}

/* ---- cartões dos cabazes ---- */
.cabazes {
    margin-top: 104px;
}

.cabazContent h3,
.cabazName {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 1.2rem;
}

.cabazContent {
    position: relative;
    border: 1px solid var(--line);
}

.cabazContent::before {
    content: "\f4d8"; /* fa-seedling */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 4px;
    border-radius: 50%;
    background: var(--mint-soft);
    color: var(--sage);
    font-size: 1rem;
}

.cabaz-menu .cabaz-4 .cabazContent {
    border-color: var(--primary);
}

.cabaz-menu .cabaz-4 .cabazContent::before {
    content: "\2b"; /* fa-plus */
    background: var(--mint);
    color: var(--primary);
}

/* ---- números da horta ---- */
.home-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 0 0 32px;
}

.home-stats > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px 22px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
}

.home-stats strong {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 500;
    color: var(--primary);
    line-height: 1.1;
}

.home-stats span {
    color: var(--text-2);
    font-size: 0.88rem;
}

@media (min-width: 900px) {
    .home-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 40px;
    }
}

/* ---- sobre nós ---- */
.about-us {
    margin-top: 120px;
}

.about-us-description h2 {
    font-weight: 500;
}

.about-us-photo img {
    transition: transform 0.6s var(--ease);
}

.about-us-photo img:hover {
    transform: scale(1.03);
}

/* ---- informações (home) ---- */
.section-head--info + .informations-sec {
    margin-top: 0;
}

.come-see-us,
.website-explanation {
    border: 1px solid var(--line);
}

.come-see-us h3,
.website-explanation h3 {
    font-weight: 500;
    font-size: 1.45rem;
}

/* ---- testemunhos ---- */
.section-head + .testimonials,
.section-head + .press {
    margin-top: 0;
}

.testimonials .client-testimonial {
    position: relative;
    padding-top: 56px;
}

.testimonials .client-testimonial::before {
    content: "\201C";
    position: absolute;
    top: 6px;
    left: 24px;
    font-family: var(--font-head);
    font-size: 4.2rem;
    line-height: 1;
    color: var(--mint);
}

/* ---- imprensa ---- */
.press {
    border: 1px solid var(--line);
}

/* ---- TÍTULO DAS PÁGINAS INTERIORES ---- */
.page-hero {
    position: relative;
    isolation: isolate;
    width: min(var(--container), calc(100% - 28px));
    min-height: clamp(260px, 40vh, 400px);
    margin: 0 auto 56px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 28px;
    background: var(--primary) var(--hero-bg, var(--hero-img)) center / cover no-repeat;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(16, 32, 24, 0.85) 0%, rgba(16, 32, 24, 0.5) 60%, rgba(16, 32, 24, 0.25) 100%),
        linear-gradient(0deg, rgba(16, 32, 24, 0.55) 0%, rgba(16, 32, 24, 0) 60%);
}

.page-hero__inner {
    max-width: 780px;
    padding: 40px clamp(24px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.page-hero .eyebrow {
    color: var(--mint);
}

.page-hero h1 {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #fff;
}

.page-hero p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.65;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--mint);
}

.page-hero__inner > * {
    animation: heroIn 0.9s var(--ease) both;
}

/* página "Cria o teu Cabaz" */
.all-products .products-title h1 {
    font-weight: 500;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    letter-spacing: -0.025em;
}

/* ---- FEED DO INSTAGRAM ---- */
.ig-feed {
    width: min(var(--container), calc(100% - 28px));
    margin: 120px auto 0;
}

.ig-feed__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 32px;
    margin-bottom: 28px;
}

.ig-feed__head > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 620px;
}

.ig-feed__head h2 {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    font-weight: 500;
    line-height: 1.12;
    color: var(--primary);
}

.ig-feed__head p {
    color: var(--text-2);
}

.ig-feed__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ig-post {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
    background: var(--surface-2);
}

.ig-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}

.ig-post__overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(20, 42, 31, 0.45);
    color: #fff;
    font-size: 1.7rem;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.ig-post:hover img,
.ig-post:focus-visible img {
    transform: scale(1.08);
}

.ig-post:hover .ig-post__overlay,
.ig-post:focus-visible .ig-post__overlay {
    opacity: 1;
}

@media (min-width: 900px) {
    .ig-feed__grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 14px;
    }
}

/* ---- RODAPÉ ---- */
.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 64px;
    padding: 76px max(5vw, 20px) 0;
    border-radius: 36px 36px 0 0;
    background:
        radial-gradient(circle at 92% 0%, rgba(207, 227, 166, 0.14), transparent 38%),
        radial-gradient(circle at 0% 100%, rgba(126, 143, 114, 0.22), transparent 42%),
        var(--primary);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.93rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.site-footer a:hover {
    color: var(--mint);
}

.site-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.site-footer__logo img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.site-footer__logo span {
    display: flex;
    flex-direction: column;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.1;
    color: #fff;
}

.site-footer__logo small {
    margin-top: 4px;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mint);
}

.site-footer__brand p {
    max-width: 340px;
    margin: 20px 0 24px;
    line-height: 1.75;
}

.site-footer__social {
    display: flex;
    gap: 10px;
}

.site-footer__social a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}

.site-footer__social a:hover {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--primary);
    transform: translateY(-3px);
}

.site-footer__col h3 {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 14px;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
}

.site-footer__col h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--mint);
}

.site-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.site-footer__col ul a {
    display: inline-block;
}

.site-footer__col ul a:hover {
    transform: translateX(3px);
}

.site-footer__col--families ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
}

.site-footer__contacts li {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: start;
}

.site-footer__contacts li > i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--mint);
    font-size: 0.85rem;
}

.site-footer__contacts li span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 38px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-footer__contacts li a {
    color: #fff;
}

.site-footer__contacts small {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(207, 227, 166, 0.12);
    color: var(--mint);
    font-size: 0.85rem;
}

.site-footer__bottom {
    max-width: var(--container);
    margin: 60px auto 0;
    padding: 24px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.site-footer__bottom a {
    color: #fff;
}

.site-footer__bottom .sep {
    margin: 0 8px;
    opacity: 0.4;
}

.site-footer__top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-footer__top i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-footer__top:hover i {
    background: var(--mint);
    color: var(--primary);
    transform: translateY(-3px);
}

@media (min-width: 700px) {
    .site-footer__inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 40px;
    }
}



/* telemóvel: o rodapé vai até ao fundo, por baixo do menu inferior */
@media (max-width: 768px) {
    body:has(.site-footer) {
        padding-bottom: 0;
    }

    .site-footer {
        border-radius: 28px 28px 0 0;
        padding-top: 60px;
    }

    .site-footer__bottom {
        padding-bottom: 112px;
        flex-direction: column;
        align-items: flex-start;
    }

    /* linhas legais empilhadas e alinhadas à esquerda, sem separadores:
       © Horta d'Ria / Política / Preferências / Desenvolvido por */
    .site-footer__legal {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .site-footer__legal .sep {
        display: none;
    }

    .site-footer__legal .legal-copy    { order: 1; }
    .site-footer__legal .legal-privacy { order: 2; }
    .site-footer__legal .legal-cookies { order: 3; }
    .site-footer__legal .legal-dev     { order: 4; }
}

/* ---- ANIMAÇÃO AO FAZER SCROLL ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---- POLÍTICA DE PRIVACIDADE ---- */
.legal-content {
    width: min(860px, calc(100% - 28px));
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: var(--text);
    line-height: 1.8;
}

.legal-content .legal-updated {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--mint-soft);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
}

.legal-content h2 {
    margin: 40px 0 12px;
    font-family: var(--font-head);
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 500;
    color: var(--primary);
}

.legal-content > h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    margin: 28px 0 8px;
    font-family: var(--font-head);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 500;
    color: var(--primary);
}

.legal-content p,
.legal-content li {
    margin: 0 0 12px;
    font-size: 0.97rem;
}

.legal-content ul {
    padding-left: 22px;
}

.legal-content li::marker {
    color: var(--sage);
}

.legal-content a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* o styleAboutUs.css aplica grid + centro ao 1.º div de .about-us */
.about-us div.section-head {
    display: flex;
}

.about-us .home-stats > div {
    display: flex;
    text-align: left;
}

.section-head p {
    font-weight: 400;
}

/* ícones nos cartões de informação */
.informations-sec > div::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
    border-radius: 16px;
    background: var(--mint-soft);
    color: var(--primary);
    font-size: 1.15rem;
}

.informations-sec > div:nth-child(1)::before { content: "\f073"; } /* calendário */
.informations-sec > div:nth-child(2)::before { content: "\f54e"; } /* banca */
.informations-sec > div:nth-child(3)::before { content: "\f291"; } /* cesto */
.informations-sec > div:nth-child(4)::before { content: "\f15c"; } /* termos */

/* famílias de produtos: as fotos são pequenas (350px), por isso aparecem
   como cartão nítido à direita em vez de ocuparem o fundo todo */
.page-hero--split {
    background:
        radial-gradient(circle at 85% 20%, rgba(207, 227, 166, 0.16), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(126, 143, 114, 0.3), transparent 50%),
        var(--primary);
    align-items: center;
    min-height: 0;
}

.page-hero--split::before {
    display: none;
}

@media (min-width: 760px) {
    .page-hero--split {
        padding-right: clamp(24px, 4vw, 56px);
        justify-content: space-between;
    }

    .page-hero--split::after {
        content: "";
        flex: 0 0 auto;
        width: clamp(200px, 22vw, 300px);
        aspect-ratio: 1 / 1;
        margin: 32px 0;
        border-radius: 24px;
        background: var(--hero-img) center / cover no-repeat;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
        rotate: 2.5deg;
        animation: heroIn 0.9s 0.2s var(--ease) both;
    }
}

/* telemóvel: listas do rodapé em 2 colunas para não ficarem tão compridas */
@media (max-width: 699px) {
    .site-footer__col:not(.site-footer__contacts) ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
    }
}

/* ---- BANNER DE COOKIES ---- */
.btn--primary {
    background: var(--primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--primary-dark);
}

.cookie-banner {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 92px;
    z-index: 200;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(20, 42, 31, 0.22);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.cookie-banner.is-open {
    opacity: 1;
    transform: none;
}

.cookie-banner__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--mint-soft);
    color: var(--earth);
    font-size: 1.2rem;
}

.cookie-banner__text p {
    margin: 0;
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.6;
}

.cookie-banner__text .cookie-banner__title {
    margin-bottom: 4px;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary);
}

.cookie-banner__text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner__actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cookie-banner__actions .btn {
    padding: 12px 18px;
    font-size: 0.9rem;
}

@media (min-width: 769px) {
    .cookie-banner {
        left: 24px;
        right: auto;
        bottom: 24px;
        width: min(440px, calc(100% - 48px));
    }
}

.btn--ghost {
    background: transparent;
}

.cookie-banner .btn--ghost {
    background: #fff;
}

.cookie-banner .btn--ghost:hover {
    background: var(--primary);
}

/* ==========================================================================
   23. REVISÃO DE OUTUBRO: pedidos do cliente
   ========================================================================== */

/* eyebrows sem o traço decorativo */
.eyebrow::before {
    display: none;
}

/* ---- header: logo e ícones centrados na vertical ---- */
header {
    padding: 8px 8px 8px 8px;
}

.logo-img-div,
.logo-img-div a {
    display: flex;
    align-items: center;
}

.logo-img-div .logo-img {
    display: block;
}

@media (min-width: 1100px) {
    header {
        padding: 8px 10px 8px 8px;
    }
}

/* ---- select das quantidades (cartões de produto) ---- */
.boxItem select {
    -webkit-appearance: none;
    appearance: none;
    padding: 10px 40px 10px 16px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231F3B2C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}

/* lista aberta: verde-folha com as quantidades em verde escuro
   (browsers sem select personalizável usam pelo menos estas cores) */
.boxItem select option {
    background-color: var(--mint);
    color: var(--primary);
    font-weight: 500;
}

@supports (appearance: base-select) {
    .boxItem select,
    .boxItem select::picker(select) {
        appearance: base-select;
    }

    .boxItem select {
        background-image: none;
        padding-right: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .boxItem select::picker-icon {
        color: var(--primary);
        transition: rotate 0.25s var(--ease);
    }

    .boxItem select:open::picker-icon {
        rotate: 180deg;
    }

    .boxItem select::picker(select) {
        margin-top: 6px;
        padding: 6px;
        border: none;
        border-radius: 18px;
        background: var(--mint);
        box-shadow: 0 18px 40px rgba(20, 42, 31, 0.22);
    }

    .boxItem select option {
        padding: 9px 14px;
        border-radius: 12px;
        background: transparent;
        color: var(--primary);
        font-size: 0.88rem;
        cursor: pointer;
    }

    .boxItem select option:hover,
    .boxItem select option:focus-visible {
        background: rgba(255, 255, 255, 0.6);
        outline: none;
    }

    .boxItem select option:checked {
        background: var(--primary);
        color: #fff;
        font-weight: 600;
    }

    .boxItem select option::checkmark {
        display: none;
    }
}

/* ---- imagem dos cabazes da semana (Google Sheets): sempre inteira ---- */
.image-with-weekly-baskets {
    width: min(1100px, 100%);
    height: auto;
    min-height: 0;
    margin: 0 auto 40px;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.image-with-weekly-baskets:not(.is-loaded) {
    display: none;
}

.image-with-weekly-baskets img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* ---- sobre nós ---- */
.about-us-description .btn {
    justify-self: start;
    width: fit-content;
    margin-top: 8px;
}

.about-us-description .btn i {
    color: inherit;
}

/* em desktop as fotos ocupam exatamente a altura do texto ao lado */
@media (min-width: 900px) {
    .about-us-div {
        align-items: stretch;
    }

    .about-us-photo {
        contain: size;
        grid-auto-rows: minmax(0, 1fr);
    }

    .about-us-photo img {
        aspect-ratio: auto;
        height: 100%;
        min-height: 0;
    }
}

/* ---- como funciona (uma coluna, sem caixas) ---- */
.how-it-works {
    width: min(820px, calc(100% - 28px));
    margin: 0 auto;
}

.how-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.how-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 20px;
    align-items: start;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.how-step__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--mint-soft);
    color: var(--primary);
    font-size: 1.1rem;
}

.how-step h3 {
    margin: 2px 0 6px;
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary);
}

.how-step p {
    margin: 0;
    color: var(--text);
    font-size: 0.97rem;
    line-height: 1.7;
}

.how-step a,
.how-more a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.how-more {
    margin-top: 28px;
    text-align: center;
    color: var(--text-2);
}

/* ---- testemunhos: cartões iguais, 3 linhas + "Ler mais" ---- */
.testimonials .client-testimonial {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.testimonials .testimonial-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    margin: 0;
}

.testimonials .client-testimonial.is-expanded .testimonial-text {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: none;
}

.testimonial-more {
    align-self: flex-start;
    padding: 0;
    border: none;
    background: none;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.testimonials .date-and-job {
    margin-top: auto;
}

/* página Testemunhos: grelha com cartões da mesma largura e altura */
.testimonials:not(.testimonials-flex) {
    width: min(var(--container), calc(100% - 28px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    align-items: stretch;
    gap: 20px;
}

.testimonials:not(.testimonials-flex) .client-testimonial {
    width: auto;
    max-width: none;
}

/* menos espaço antes da Imprensa */
.testimonials + .section-head {
    margin-top: 56px;
}

/* ---- título com fotos a alternar (Quem somos, Contactos) ---- */
.page-hero--photos::after {
    display: none;
}

.page-hero__slides {
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 24px;
    background: var(--primary-dark);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.page-hero__slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s var(--ease);
}

.page-hero__slides img.is-active {
    opacity: 1;
}

@media (max-width: 759px) {
    .page-hero--photos {
        flex-direction: column;
        align-items: stretch;
    }

    .page-hero__slides {
        margin: 0 24px 24px;
        aspect-ratio: 4 / 3;
    }
}

@media (min-width: 760px) {
    .page-hero__slides {
        width: clamp(220px, 24vw, 320px);
        aspect-ratio: 4 / 5;
        margin: 32px 0;
        rotate: 2.5deg;
        animation: heroIn 0.9s 0.2s var(--ease) both;
    }
}

/* ---- página Cabazes ---- */
.cabazes--page {
    margin-top: 0;
}

.gallery {
    width: min(var(--container), calc(100% - 28px));
    margin: 0 auto;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery__item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface-2);
    cursor: zoom-in;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}

.gallery__zoom {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(20, 42, 31, 0.4);
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
    transform: scale(1.06);
}

.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__zoom {
    opacity: 1;
}

@media (min-width: 700px) {
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (min-width: 1100px) {
    .gallery__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

.lightbox {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox::backdrop {
    background: rgba(16, 32, 24, 0.92);
}

.lightbox figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.lightbox figure img {
    max-width: min(88vw, 1000px);
    max-height: 80vh;
    border-radius: 16px;
    object-fit: contain;
}

.lightbox figcaption {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
}

.lightbox__close,
.lightbox__nav {
    position: fixed;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: var(--mint);
    color: var(--primary);
}

.lightbox__close {
    top: 20px;
    right: 20px;
}

.lightbox__nav {
    top: 50%;
    translate: 0 -50%;
}

.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ---- contactos ---- */
.contact-layout {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.contact-layout .contactForm {
    width: auto;
    max-width: none;
    margin: 0;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(28px, 4vw, 44px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 92% 0%, rgba(207, 227, 166, 0.14), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(126, 143, 114, 0.22), transparent 45%),
        var(--primary);
    color: rgba(255, 255, 255, 0.78);
}

.contact-card h2 {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 500;
    color: #fff;
}

.contact-card > p {
    margin: 0;
    line-height: 1.7;
}

.contact-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.contact-list li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: center;
}

.contact-list li > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--mint);
    font-size: 0.9rem;
}

.contact-list span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-list a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

.contact-list a:hover {
    color: var(--mint);
}

.contact-list small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.58);
}

.contact-card__note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 0;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(207, 227, 166, 0.12);
    color: var(--mint);
    font-size: 0.88rem;
}

.contact-card__social {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.contact-card__social a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact-card__social a:hover {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--primary);
    transform: translateY(-3px);
}

@media (min-width: 960px) {
    .contact-layout {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: stretch;
    }
}

.contact-map {
    position: relative;
    width: min(1180px, calc(100% - 28px));
    height: clamp(320px, 52vh, 480px);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    background: var(--surface-2);
}

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

.contact-map__link {
    position: absolute;
    left: 20px;
    bottom: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* perguntas frequentes (acordeão) */
.faq {
    width: min(860px, calc(100% - 28px));
    margin: 0 auto;
    scroll-margin-top: 100px;
}

.faq__list {
    border-top: 1px solid var(--line);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    position: relative;
    padding: 22px 56px 22px 0;
    list-style: none;
    font-family: var(--font-head);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "\2b"; /* fa-plus */
    position: absolute;
    right: 0;
    top: 50%;
    translate: 0 -50%;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mint-soft);
    color: var(--primary);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.85rem;
    transition: background 0.25s var(--ease), rotate 0.25s var(--ease);
}

.faq details[open] summary::after {
    content: "\f068"; /* fa-minus */
    background: var(--mint);
}

.faq__answer {
    padding: 0 56px 22px 0;
}

.faq__answer p {
    margin: 0 0 12px;
    color: var(--text);
    line-height: 1.75;
}

.faq__answer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- vídeos ---- */
.videos {
    width: min(var(--container), calc(100% - 28px));
    margin: 0 auto;
}

.videos__intro {
    max-width: 780px;
    margin: 0 auto 40px;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.85;
    text-align: center;
}

.videos__grid {
    display: grid;
    gap: 24px;
}

.video-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.video-card__media {
    aspect-ratio: 16 / 9;
    background: var(--primary-dark);
}

.video-card__media video,
.video-card__media iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.video-card__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 26px 28px 30px;
}

.video-card__text h2 {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    font-weight: 500;
    color: var(--primary);
}

.video-card__text p {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
}

.video-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 900px) {
    .videos__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* todas as linhas da grelha de testemunhos com a mesma altura */
.testimonials:not(.testimonials-flex) {
    grid-auto-rows: 1fr;
}

/* ==========================================================================
   24. AJUSTES: testemunhos, imagem do Sheets, botão enviar, subtotal
   ========================================================================== */

/* testemunhos alinhados à esquerda; ao abrir "Ler mais" só esse cartão
   cresce (os de baixo descem), os fechados ficam todos do mesmo tamanho */
.testimonials .client-testimonial,
.testimonials .client-name,
.testimonials .testimonial-text,
.testimonials .date-and-job,
.testimonials .testimonial-date {
    text-align: left;
}

.testimonials .date-and-job {
    display: flex;
    justify-content: flex-start;
}

.testimonials .testimonial-text {
    line-height: 1.7;
    min-height: calc(3 * 1.7em);
}

/* sem "Ler mais" o espaço do botão fica reservado, para os cartões não encolherem */
.testimonials .testimonial-more[hidden] {
    display: inline-block;
    visibility: hidden;
}

.testimonials:not(.testimonials-flex) {
    grid-auto-rows: auto;
    align-items: start;
}

.testimonials.testimonials-flex {
    align-items: flex-start;
}

/* imagem dos cabazes da semana: nunca maior do que o ecrã, sempre inteira */
.image-with-weekly-baskets {
    width: 100%;
    max-width: none;
}

.image-with-weekly-baskets img {
    width: auto;
    max-width: 100%;
    max-height: calc(100svh - 140px);
    margin: 0 auto;
    object-fit: contain;
}

/* botão Enviar (contactos): texto visível no hover */
.btn-info:hover,
form button[type="submit"]:hover {
    color: #fff;
}

/* subtotal do carrinho: fixo só dentro da área do carrinho */
.cart-area {
    padding-bottom: 8px;
}

.cart-area .sub-total {
    position: sticky;
    left: auto;
    bottom: 28px;
    transform: none;
    width: fit-content;
    max-width: none;
    margin: 28px auto 0;
}

.cart-area .priceAlert {
    margin: 20px auto 0;
}

@media (max-width: 768px) {
    .cart-area .sub-total {
        bottom: 100px; /* acima do menu inferior */
    }
}

/* setas do carrossel de testemunhos (home) */
.carousel-nav {
    width: min(var(--container), calc(100% - 28px));
    margin: 18px auto 0;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.carousel-nav[hidden] {
    display: none;
}

.carousel-nav__btn {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--primary);
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.carousel-nav__btn:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
}

.carousel-nav__btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* o espaço antes da Imprensa passa a contar a partir das setas */
.carousel-nav + .section-head {
    margin-top: 56px;
}

/* ==========================================================================
   25. CARRINHO (lixo) + FINALIZAR ENCOMENDA (advancePageOne)
   ========================================================================== */

/* botão de apagar: ícone centrado, sempre verde, só cresce no hover */
.box-cart button {
    justify-content: center;
    align-items: center;
}

.box-cart button:hover {
    background: #fff;
    border-color: var(--line);
}

.box-cart .fa-trash-can,
.box-cart button:hover .fa-trash-can {
    color: var(--primary);
    transition: transform 0.25s var(--ease);
}

.box-cart button:hover .fa-trash-can {
    transform: scale(1.25);
}

/* espaços: metade do que estava antes da pergunta inicial e depois do botão */
.client-data-sec form.cart-form {
    margin: 0 auto;
}

.client-data-sec form.cart-form h4 {
    margin: 22px 0 24px;
    text-align: center;
}

.client-data-sec ~ .ig-feed {
    margin-top: 110px;
}

/* botão Encomendar com o texto ao centro */
.client-data-sec .send-user-data-btn {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 16px auto 0;
}

/* campos: etiqueta por cima e duas colunas (50% cada) */
.client-data-sec .name-email-phone,
.client-data-sec .deliver-sec:not(.hide-section),
.client-data-sec .horta-pick-up-sec:not(.hide-section) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
    align-items: start;
}

.client-data-sec .name-email-phone > div:first-child,
.client-data-sec .deliver-sec > div:nth-child(1),
.client-data-sec .deliver-sec > div:nth-child(2) {
    grid-column: 1 / -1;
}

.client-data-sec .name-email-phone > div:not(.radio-buttons),
.client-data-sec .deliver-sec > div,
.client-data-sec .horta-pick-up-sec > div,
.client-data-sec .cp > div:first-child,
.client-data-sec .schedule-deliver > div {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    width: auto;
    min-width: 0;
    margin: 0;
}

.client-data-sec .schedule-deliver > div {
    margin-top: 10px;
}

.client-data-sec .name-email-phone label,
.client-data-sec .deliver-sec label,
.client-data-sec .horta-pick-up-sec label {
    margin: 0;
    text-align: left;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.client-data-sec .name-email-phone input,
.client-data-sec .deliver-sec input,
.client-data-sec .deliver-sec select,
.client-data-sec .horta-pick-up-sec input,
.client-data-sec .horta-pick-up-sec select {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 10px 14px;
}

/* código postal: as duas partes lado a lado, por baixo da etiqueta */
.client-data-sec .deliver-sec .cp .cp-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: none;
    flex-direction: row;
}

.client-data-sec #cp,
.client-data-sec #cP {
    max-width: none;
    padding-left: 14px;
}

.client-data-sec .deliver-message-region {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--mint-soft);
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 420px) {
    .client-data-sec .name-email-phone,
    .client-data-sec .deliver-sec:not(.hide-section),
    .client-data-sec .horta-pick-up-sec:not(.hide-section) {
        grid-template-columns: 1fr;
    }
}

/* etiquetas com e sem asterisco ficam com a mesma altura */
.client-data-sec label {
    line-height: 1.4;
}

.client-data-sec .required-input-icon {
    font-size: inherit;
    line-height: inherit;
    vertical-align: baseline;
}

.client-data-sec #cp {
    text-align: left;
}

/* observações alinhadas com a etiqueta */
.client-data-sec .obs-sec textarea {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* .box-2 :nth-child(2) (carrinho.css) também apanha o botão: reforça o centro */
.box-cart .box-2 button {
    justify-content: center;
    align-items: center;
}

.box-cart .fa-trash-can:hover {
    background: transparent;
    color: var(--primary);
}

/* header com a mesma largura dos banners e das secções (sem transform,
   para não afetar o menu de ecrã inteiro que está dentro do header) */
header,
header.change-header-overflow-x {
    left: 0;
    right: 0;
    width: min(var(--container), calc(100% - 28px));
    margin: 0 auto;
}

@media (min-width: 1100px) {
    header {
        left: 0;
        right: 0;
    }
}

/* ---- zona de entrega + aviso fora do concelho ---- */
.client-data-sec .deliver-info {
    gap: 10px;
}

.client-data-sec .deliver-message-region {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.client-data-sec .deliver-note {
    margin: 0;
    padding: 12px 16px;
    border-left: 3px solid var(--earth);
    border-radius: 0 12px 12px 0;
    background: var(--surface);
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.6;
}

.client-data-sec .deliver-note a {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

/* ---- resumo da encomenda ---- */
.order-summary {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.order-summary__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.order-summary__head h5 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
}

.order-summary__head a {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.order-summary__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.order-summary__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.order-summary__name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--text);
    font-weight: 500;
}

.order-summary__name small {
    color: var(--text-2);
    font-size: 0.8rem;
    font-weight: 400;
}

.order-summary__list strong {
    flex: 0 0 auto;
    color: var(--primary);
    font-weight: 600;
}

.order-summary__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    color: var(--primary);
    font-weight: 500;
}

.order-summary__total strong {
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--mint);
    font-size: 1.05rem;
}

.order-summary__note {
    margin: 10px 0 0;
    color: var(--text-2);
    font-size: 0.8rem;
}

.order-summary__empty {
    display: none;
    margin: 8px 0 0;
    color: var(--text);
}

.order-summary__empty a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.order-summary.is-empty .order-summary__empty {
    display: block;
}

.order-summary.is-empty .order-summary__list,
.order-summary.is-empty .order-summary__total,
.order-summary.is-empty .order-summary__note {
    display: none;
}

/* aviso de encomendas fechadas (5ª a domingo) */
.orders-closed:not([hidden]) {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 8px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: #FBEFE6;
    border: 1px solid rgba(180, 104, 58, 0.35);
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.6;
}

.orders-closed i {
    margin-top: 3px;
    color: var(--earth);
    font-size: 1.2rem;
}

.orders-closed strong {
    display: block;
    color: var(--primary);
}

.orders-closed a {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

/* faixa de valores: grupos repetidos pelo script.js; o espaço vai dentro de
   cada grupo (e não no gap) para a emenda do loop ficar invisível */
.home-values__track {
    gap: 0;
}

.home-values__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.home-values__group > * {
    margin-right: 28px;
}

/* carrinho: sempre um artigo por linha, com o mesmo aspeto que tem com um só
   (o carrinho.css dava "span 4" à barra dos botões e criava 4 colunas) */
.cartList {
    grid-template-columns: minmax(0, 1fr);
}

.cartList > * {
    grid-column: 1 / -1;
}

/* produto aberto a partir da pesquisa */
.boxItem.is-searched {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--mint);
}

/* ==========================================================================
   26. AUDITORIA DE RESPONSIVIDADE
   ========================================================================== */

/* números da horta: colunas que encolhem e texto que pode partir */
.home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-stats > div {
    min-width: 0;
}

.home-stats strong {
    overflow-wrap: anywhere;
}

@media (max-width: 380px) {
    .home-stats strong {
        font-size: 1.45rem;
    }

    .home-stats > div {
        padding: 18px 16px;
    }
}

/* emails e links compridos partem de linha em vez de saírem da caixa */
.legal-content,
.faq__answer,
.order-summary,
.how-step p {
    overflow-wrap: anywhere;
}

/* carrinho: a barra Esvaziar/Avançar nunca passa por cima do header
   (o carrinho.css dava-lhe desfoque e z-index 100) */
.cartList .buttonsDelAndAdvance {
    position: static;
    z-index: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

header {
    z-index: 120;
}

/* ---- FORMULÁRIOS: os campos ocupam a largura toda do cartão ----
   (o form.css antigo encolhia a grelha ao conteúdo e limitava os campos a 40dvw) */
.contactForm {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
}

.contactForm > div,
.contactForm div {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.contactForm input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.contactForm textarea,
.contactForm select {
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   FAMÍLIAS: títulos de secção, filtro e esqueleto de carregamento (productCards.js)
   ========================================================================== */

/* o nome vem primeiro e o preço por baixo, mais discreto */

.stock-filter__btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* títulos "Disponíveis esta semana" / "Volta em breve" */

.stock-subtitle {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 4px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-family: var(--font-head);
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-weight: 500;
    color: var(--primary);
}

.stock-subtitle::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.stock-subtitle--available,
.stock-subtitle--unavailable {
    background: transparent;
    opacity: 1;
}

.stock-subtitle--unavailable {
    color: var(--text-2);
}

.stock-subtitle__count {
    order: 1;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
}

.stock-subtitle--unavailable .stock-subtitle__count {
    background: var(--surface-2);
    color: var(--text-2);
}

/* filtro Todos / Só disponíveis */

.stock-filter {
    width: min(var(--container), calc(100% - 28px));
    margin: 0 auto 8px;
    display: flex;
    gap: 8px;
}

.stock-filter__btn {
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.stock-filter__btn:hover {
    border-color: var(--primary);
}

.stock-filter__btn.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.only-available .out-of-stock,
.only-available .stock-subtitle--unavailable {
    display: none;
}

/* esqueleto enquanto os produtos carregam */

.product-skeleton {
    width: min(var(--container), calc(100% - 28px));
    margin: 0 auto 72px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-skeleton__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 10px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.product-skeleton__img,
.product-skeleton__line,
.product-skeleton__pill {
    display: block;
    border-radius: 12px;
    background: linear-gradient(100deg, var(--surface) 30%, #fbf9f4 50%, var(--surface) 70%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s linear infinite;
}

.product-skeleton__img {
    aspect-ratio: 1 / 1;
}

.product-skeleton__line {
    height: 14px;
    width: 80%;
}

.product-skeleton__line--short {
    width: 40%;
}

.product-skeleton__pill {
    height: 36px;
    border-radius: 999px;
}

@keyframes skeletonShimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

@media (min-width: 640px) {
    .product-skeleton {
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
        }
}

@media (min-width: 1000px) {
    .product-skeleton {
            grid-template-columns: repeat(4, 1fr);
            gap: 22px;
        }
}

/* o produto que voa para o cesto + pulo do número */

.fly-to-cart {
    position: fixed;
    z-index: 9999;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(20, 42, 31, 0.3);
}

.article-number.is-bumped {
    animation: cartBump 0.45s var(--ease);
}

@keyframes cartBump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.5); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .product-skeleton__img,
        .product-skeleton__line,
        .product-skeleton__pill,
        .article-number.is-bumped {
            animation: none;
        }
}

/* ==========================================================================
   AVISOS DO SITE (scriptDocs/siteNotices.js): encomendas, Natal e neve
   ========================================================================== */

/* ---- aviso das encomendas ---- */

.site-notice {
    position: fixed;
    z-index: 90;
    left: 14px;
    right: 14px;
    bottom: 92px; /* por cima do menu inferior */
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(20, 42, 31, 0.22);
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.site-notice.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* só aparece depois de responder ao aviso de cookies */

body:has(.cookie-banner) .site-notice {
    visibility: hidden;
}

.site-notice__media {
    display: none;
}

.site-notice__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-notice__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 44px 16px 18px;
}

.site-notice__status {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 10px 3px 8px;
    border-radius: 999px;
    background: var(--mint-soft);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
}

.site-notice__status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4f9d5d;
}

.site-notice__status--last {
    background: #fbeede;
    color: #8a4b16;
}

.site-notice__status--last::before {
    background: var(--earth);
    animation: noticePulse 1.6s ease-in-out infinite;
}

.site-notice__status--closed {
    background: var(--surface-2);
    color: var(--text-2);
}

.site-notice__status--closed::before {
    background: var(--text-2);
}

.site-notice__status--market::before {
    background: #c9a227;
}

@keyframes noticePulse {
    50% { transform: scale(1.5); opacity: 0.55; }
}

.site-notice__title {
    margin: 4px 0 0;
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--primary);
}

.site-notice__text {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text);
}

.site-notice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.site-notice__btn {
    flex: 1 1 auto;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-notice__btn:hover {
    transform: translateY(-1px);
}

.site-notice__btn--primary {
    background: var(--primary);
    color: #fff;
}

.site-notice__btn--primary:hover {
    background: var(--primary-dark);
}

.site-notice__btn--ghost {
    background: transparent;
    color: var(--primary);
}

.site-notice__btn--ghost:hover {
    background: var(--mint-soft);
}

.site-notice__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(20, 42, 31, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-notice__close:hover {
    background: #fff;
    transform: rotate(90deg);
}

.site-notice__btn:focus-visible,
.site-notice__close:focus-visible,
.christmas-popup__close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* tablet e computador: cartão no canto superior direito, com imagem */

@media (min-width: 768px) {
    .site-notice {
            left: auto;
            right: 24px;
            bottom: auto;
            top: 104px;
            width: 340px;
            transform: translateX(32px);
        }

    .site-notice.is-open {
            transform: none;
        }

    .site-notice__media {
            display: block;
            aspect-ratio: 2 / 1;
            background: var(--surface-2);
        }

    .site-notice__body {
            padding: 18px 20px 20px;
        }

    .site-notice__title {
            font-size: 1.3rem;
        }
}

/* ---- pop-up de Natal ---- */

.christmas-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(12, 24, 18, 0.72);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.christmas-popup.is-open {
    opacity: 1;
}

.christmas-popup__card {
    position: relative;
    max-height: 100%;
    transform: translateY(18px) scale(0.97);
    transition: transform 0.45s var(--ease);
}

.christmas-popup.is-open .christmas-popup__card {
    transform: none;
}

.christmas-popup__card img {
    display: block;
    max-width: min(520px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    width: auto;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.christmas-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.christmas-popup__close:hover {
    background: #fff;
    transform: rotate(90deg);
}

/* ---- neve ---- */

#snowCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 80;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .site-notice,
        .christmas-popup,
        .christmas-popup__card {
            transition: none;
        }

    .site-notice__status--last::before {
            animation: none;
        }
}

/* ==========================================================================
   FASE 3: mini-cesto, passos da encomenda e histórico
   ========================================================================== */

/* ---- mini-cesto (gaveta) ---- */

.mini-cart {
    position: fixed;
    inset: 0;
    z-index: 950;
}

.mini-cart[hidden] {
    display: none;
}

.mini-cart__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 24, 18, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mini-cart.is-open .mini-cart__backdrop {
    opacity: 1;
}

.mini-cart__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -20px 60px rgba(20, 42, 31, 0.28);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease);
}

.mini-cart.is-open .mini-cart__panel {
    transform: none;
}

body.mini-cart-open {
    overflow: hidden;
}

.mini-cart__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 14px;
    border-bottom: 1px solid var(--line);
}

.mini-cart__head h2 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--primary);
}

.mini-cart__count {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-2);
}

.mini-cart__close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-cart__close:hover {
    background: var(--mint);
    transform: rotate(90deg);
}

.mini-cart__body {
    flex: 1;
    overflow-y: auto;
    padding: 6px 22px;
}

.mini-cart__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mini-cart__item {
    display: grid;
    grid-template-columns: 56px 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.mini-cart__item:last-child {
    border-bottom: none;
}

.mini-cart__item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--surface);
}

.mini-cart__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mini-cart__info strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: capitalize;
    overflow-wrap: anywhere;
}

.mini-cart__info span {
    font-size: 0.8rem;
    color: var(--text-2);
}

.mini-cart__price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.mini-cart__remove {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mini-cart__remove:hover {
    background: var(--surface);
    color: #b3412b;
}

.mini-cart__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 36px 0 28px;
    text-align: center;
    color: var(--text-2);
}

.mini-cart__empty i {
    font-size: 2rem;
    color: var(--sage);
}

.mini-cart__foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 22px calc(22px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fff;
}

.mini-cart__foot:empty {
    display: none;
}

.mini-cart__subtotal {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text);
}

.mini-cart__subtotal strong {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary);
}

.mini-cart__note {
    margin: -4px 0 4px;
    font-size: 0.78rem;
    color: var(--text-2);
}

.mini-cart__btn {
    display: block;
    padding: 13px 18px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.mini-cart__btn--primary {
    background: var(--primary);
    color: #fff;
}

.mini-cart__btn--primary:hover {
    background: var(--primary-dark);
}

.mini-cart__btn--ghost {
    background: transparent;
    color: var(--primary);
}

.mini-cart__btn--ghost:hover {
    background: var(--mint-soft);
}

.mini-cart__link {
    padding: 6px;
    border: none;
    background: none;
    color: var(--text-2);
    font: inherit;
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.mini-cart__link:hover {
    color: var(--primary);
}

.mini-cart__close:focus-visible,
.mini-cart__btn:focus-visible,
.mini-cart__remove:focus-visible,
.mini-cart__link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* tablet e computador: gaveta lateral */

@media (min-width: 768px) {
    .mini-cart__panel {
            top: 0;
            left: auto;
            width: 420px;
            max-height: none;
            border-radius: 24px 0 0 24px;
            box-shadow: -20px 0 60px rgba(20, 42, 31, 0.25);
            transform: translateX(100%);
        }
}

/* ---- passos da encomenda ---- */

.checkout-steps {
    width: min(var(--container), calc(100% - 28px));
    margin: -20px auto 32px;
}

.checkout-steps ol {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 12px 14px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.checkout-steps li {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    justify-content: center;
    color: var(--text-2);
    font-size: 0.82rem;
    font-weight: 500;
}

.checkout-steps li + li::before {
    content: "";
    width: clamp(14px, 6vw, 56px);
    height: 1px;
    margin-right: 8px;
    background: var(--line);
}

.checkout-steps li > a,
.checkout-steps li > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.checkout-steps__dot {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.checkout-steps li.is-current {
    color: var(--primary);
    font-weight: 600;
}

.checkout-steps li.is-current .checkout-steps__dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.checkout-steps li.is-done {
    color: var(--primary);
}

.checkout-steps li.is-done .checkout-steps__dot {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--primary);
}

.checkout-steps li.is-done a:hover .checkout-steps__label {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* em ecrãs pequenos só o passo atual mostra o nome */

@media (max-width: 560px) {
    .checkout-steps li:not(.is-current) .checkout-steps__label {
            display: none;
        }

    .checkout-steps li:not(.is-current) {
            flex: 0 0 auto;
        }

    .checkout-steps li.is-current {
            flex: 1 1 auto;
        }
}

/* ---- histórico de encomendas ---- */

.orders-historic-section {
    width: min(var(--container), calc(100% - 28px));
    max-width: none;
    margin: 0 auto 72px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.orders-note {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--mint-soft);
    color: var(--primary);
    font-size: 0.85rem;
    font-style: normal;
    text-align: left;
}

.order-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.order-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.order-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.order-card__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--earth);
}

.order-card__date {
    margin: 2px 0 0;
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary);
}

.order-card__total {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.order-card__thumbs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-card__thumbs img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #fff;
    background: var(--surface);
}

.order-card__thumbs img + img {
    margin-left: -18px;
}

.order-card__more {
    width: 52px;
    height: 52px;
    margin-left: -18px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.order-card__count {
    margin-left: 8px;
    font-size: 0.85rem;
    color: var(--text-2);
}

.order-card__items {
    list-style: none;
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface);
}

.order-card__items[hidden] {
    display: none;
}

.order-card__items li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 0.88rem;
    text-transform: capitalize;
}

.order-card__items small {
    color: var(--text-2);
    text-transform: none;
}

.order-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.order-card__actions button {
    flex: 1 1 auto;
    padding: 11px 16px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.order-card__toggle {
    background: transparent;
    color: var(--primary);
}

.order-card__toggle:hover {
    background: var(--mint-soft);
}

.order-card .order-again-btn {
    background: var(--primary);
    color: #fff;
}

.order-card .order-again-btn:hover:not(:disabled) {
    background: var(--primary-dark);
}

.order-card .order-again-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.orders-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 48px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.orders-empty i {
    font-size: 2.2rem;
    color: var(--sage);
}

.orders-empty h2 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary);
}

.orders-empty p {
    max-width: 420px;
    margin: 0 0 8px;
    color: var(--text-2);
}

@media (min-width: 800px) {
    .orders-historic-section {
            grid-template-columns: repeat(2, 1fr);
        }
}

@media (prefers-reduced-motion: reduce) {
    .mini-cart__panel,
        .mini-cart__backdrop {
            transition: none;
        }
}

/* o ordersHistoric.css antigo usa o id e ganhava ao nosso seletor */

#ordersHistoricSection.orders-historic-section {
    width: min(var(--container), calc(100% - 28px));
    max-width: none;
    margin: 0 auto 72px;
    padding: 0;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 800px) {
    #ordersHistoricSection.orders-historic-section {
            grid-template-columns: repeat(2, 1fr);
        }
}

.orders-historic-section .orders-note {
    margin: 0;
    color: var(--primary);
    font-style: normal;
    text-align: left;
}

/* ---- botão de WhatsApp ---- */

.whatsapp-fab {
    position: fixed;
    z-index: 85;
    right: 14px;
    bottom: 96px; /* por cima do menu inferior */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: 1.7rem;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(20, 42, 31, 0.28);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.whatsapp-fab span {
    display: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.whatsapp-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(20, 42, 31, 0.34);
}

.whatsapp-fab:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* enquanto o aviso das encomendas está aberto em telemóvel, o botão não o tapa */

@media (max-width: 767px) {
    body:has(.site-notice.is-open) .whatsapp-fab,
        body:has(.cookie-banner) .whatsapp-fab,
        body.mini-cart-open .whatsapp-fab {
            visibility: hidden;
        }
}

@media (min-width: 768px) {
    .whatsapp-fab {
            right: 24px;
            bottom: 24px;
            width: auto;
            height: auto;
            padding: 12px 20px 12px 16px;
            font-size: 1.4rem;
        }

    .whatsapp-fab span {
            display: inline;
        }
}

/* contagem decrescente no aviso das encomendas */

.site-notice__countdown {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--earth);
}

/* ---- receitas ---- */

.recipes {
    width: min(var(--container), calc(100% - 28px));
    margin: 0 auto 72px;
}

.recipe-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.recipe-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.recipe-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-2);
}

.recipe-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.recipe-card:hover .recipe-card__media img {
    transform: scale(1.04);
}

.recipe-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 22px;
}

.recipe-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.recipe-card__meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--mint-soft);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
}

.recipe-card h2 {
    margin: 4px 0 0;
    font-family: var(--font-head);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--primary);
}

.recipe-card__body > p {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.recipe-card__ingredients,
.recipe-card__steps {
    margin: 0;
    padding-left: 22px;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.65;
}

.recipe-card__ingredients li::marker {
    color: var(--sage);
}

.recipe-card__steps li {
    padding-left: 4px;
    margin-bottom: 8px;
}

.recipe-card__steps li::marker {
    color: var(--primary);
    font-weight: 600;
}

.recipe-card__products {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--text-2);
}

.recipe-card__products a {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.recipe-card__products a:hover {
    background: var(--mint);
}

.recipes__note {
    margin: 28px 0 0;
    text-align: center;
    color: var(--text-2);
    font-size: 0.9rem;
}

.recipes__note a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.recipes-error {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-2);
}

/* ==========================================================================
   CESTO (carrinho.html): lista à esquerda, resumo à direita
   ========================================================================== */

.cart-page {
    width: min(var(--container), calc(100% - 28px));
    margin: 0 auto 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.cart-page__list {
    padding: 8px 20px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.cart-page__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0 14px;
    border-bottom: 1px solid var(--line);
}

.cart-page__head h2 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--primary);
}

.cart-page__count {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-2);
}

.cart-clear {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text-2);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cart-clear:hover {
    background: var(--surface);
    color: var(--primary);
}

.cart-clear.is-confirming {
    background: #b3412b;
    border-color: #b3412b;
    color: #fff;
}

.cart-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    grid-template-areas:
        "img info remove"
        "img qty price";
    align-items: center;
    column-gap: 14px;
    row-gap: 6px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item__img {
    grid-area: img;
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.cart-item__info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cart-item__name {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: capitalize;
    color: var(--primary);
    overflow-wrap: anywhere;
}

.cart-item__unit {
    font-size: 0.82rem;
    color: var(--text-2);
}

.cart-item__qty {
    grid-area: qty;
    justify-self: start;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.cart-item__price {
    grid-area: price;
    justify-self: end;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.cart-item__remove {
    grid-area: remove;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-2);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cart-item__remove:hover {
    background: #f6e3de;
    color: #b3412b;
    transform: rotate(90deg);
}

.cart-clear:focus-visible,
.cart-item__remove:focus-visible,
.cart-summary__cta:focus-visible,
.cart-summary__link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* estado vazio */

.cart-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 48px 12px 40px;
    text-align: center;
}

.cart-empty i {
    font-size: 2.4rem;
    color: var(--sage);
}

.cart-empty h3 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary);
}

.cart-empty p {
    max-width: 380px;
    margin: 0 0 10px;
    color: var(--text-2);
}

.cart-empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.cart-page.is-empty .cart-empty {
    display: flex;
}

.cart-page.is-empty .cart-page__head,
.cart-page.is-empty .cart-summary {
    display: none;
}

/* resumo da encomenda */

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.cart-summary h2 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--primary);
}

.cart-summary__rows {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-summary__rows > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.cart-summary__rows dt {
    color: var(--text);
    font-size: 0.95rem;
}

.cart-summary__rows dd {
    margin: 0;
    font-weight: 600;
    color: var(--primary);
}

.cart-summary__total {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.cart-summary__total dd {
    font-size: 1.6rem;
}

.cart-summary__note {
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--mint-soft);
    color: var(--primary);
    font-size: 0.82rem;
    line-height: 1.5;
}

.cart-summary__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-summary__cta i {
    transition: transform 0.25s var(--ease);
}

.cart-summary__cta:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 24px rgba(31, 59, 44, 0.25);
}

.cart-summary__cta:hover i {
    transform: translateX(4px);
}

.cart-summary__cta[aria-disabled="true"] {
    opacity: 0.4;
    pointer-events: none;
}

.cart-summary__link {
    align-self: center;
    color: var(--text-2);
    font-size: 0.88rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cart-summary__link:hover {
    color: var(--primary);
}

.cart-summary__perks {
    margin: 4px 0 0;
    padding: 16px 0 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--line);
}

.cart-summary__perks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-2);
    font-size: 0.82rem;
    line-height: 1.45;
}

.cart-summary__perks i {
    width: 16px;
    margin-top: 2px;
    text-align: center;
    color: var(--sage);
}

@media (min-width: 640px) {
    .cart-page__list {
            padding: 8px 28px 14px;
        }

    .cart-item {
            grid-template-columns: 88px minmax(0, 1fr) auto auto 40px;
            grid-template-areas: "img info qty price remove";
            column-gap: 20px;
            padding: 20px 0;
        }

    .cart-item__img {
            width: 88px;
            height: 88px;
        }
}

@media (min-width: 980px) {
    .cart-page {
            grid-template-columns: minmax(0, 1fr) 380px;
            gap: 32px;
        }

    .cart-summary {
            position: sticky;
            top: 110px;
        }

    .cart-page.is-empty {
            grid-template-columns: minmax(0, 1fr);
        }
}

/* ==========================================================================
   RECEITAS: uma coluna, imagem e texto lado a lado e a alternar
   ========================================================================== */

.recipes__grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.recipe-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.recipe-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
}

.recipe-card__body {
    gap: 14px;
    padding: 24px 22px 28px;
}

.recipe-card__cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-top: 6px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.recipe-card__cols h3 {
    margin: 0 0 10px;
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary);
}

@media (min-width: 860px) {
    .recipe-card {
            grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
            min-height: 420px;
        }

    .recipe-card__media {
            aspect-ratio: auto;
            min-height: 100%;
        }

    .recipe-card__media img {
            position: absolute;
            inset: 0;
        }

    .recipe-card__body {
            justify-content: center;
            padding: 36px 40px;
        }

    /* a segunda receita (e as pares) trocam de lado: imagem à direita */

    .recipe-card:nth-child(even) {
            grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        }

    .recipe-card:nth-child(even) .recipe-card__media {
            order: 2;
        }

    .recipe-card h2 {
            font-size: 1.9rem;
        }
}

@media (min-width: 1200px) {
    .recipe-card__cols {
            grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
            gap: 36px;
        }
}

/* o ícone do cesto vinha com o estilo antigo do carrinho.css (quadrado verde) */

.cart-clear .fa-trash-can,
.cart-clear:hover .fa-trash-can {
    background: none;
    border-radius: 0;
    padding: 0;
    font-size: 0.95rem;
    color: inherit;
    transform: none;
}

/* ==========================================================================
   CESTO: prazo, botões − / +, "Desfazer" e barra fixa
   ========================================================================== */

/* aviso do prazo das encomendas */

.cart-deadline {
    width: min(var(--container), calc(100% - 28px));
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--mint-soft);
    border: 1px solid var(--mint);
    color: var(--primary);
}

.cart-deadline[hidden] {
    display: none;
}

.cart-deadline i {
    flex: none;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    font-size: 1.05rem;
}

.cart-deadline p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.cart-deadline strong {
    font-weight: 600;
}

.cart-deadline a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cart-deadline.is-last {
    background: #fbeede;
    border-color: #f1d3b1;
    color: #7a3f12;
}

.cart-deadline.is-last i {
    color: var(--earth);
}

.cart-deadline.is-closed {
    background: var(--surface-2);
    border-color: var(--line);
    color: var(--text);
}

/* botões − / + */

.cart-stepper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.cart-stepper__btn {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary);
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.cart-stepper__btn:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
}

.cart-stepper__btn:active:not(:disabled) {
    transform: scale(0.92);
}

.cart-stepper__btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.cart-stepper__btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.cart-stepper__value {
    min-width: 62px;
    padding: 0 6px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

/* o − / + substituem a etiqueta simples da quantidade */

.cart-item__qty.cart-stepper {
    padding: 3px;
    background: #fff;
}

/* "Desfazer" */

.cart-undo {
    position: fixed;
    z-index: 120;
    left: 14px;
    right: 14px;
    bottom: 160px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px 12px 20px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 16px 40px rgba(20, 42, 31, 0.3);
    animation: cartUndoIn 0.35s var(--ease);
}

.cart-undo[hidden] {
    display: none;
}

.cart-undo button {
    padding: 8px 18px;
    border: none;
    border-radius: 999px;
    background: var(--mint);
    color: var(--primary);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cart-undo button:hover {
    background: #fff;
}

.cart-undo button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@keyframes cartUndoIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

/* barra fixa com o subtotal (telemóvel) */

.cart-bar {
    position: fixed;
    z-index: 95;
    left: 14px;
    right: 14px;
    bottom: 92px; /* por cima do menu inferior */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 10px 10px 20px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(20, 42, 31, 0.2);
}

.cart-bar[hidden] {
    display: none;
}

.cart-bar__total {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cart-bar__total span {
    font-size: 0.72rem;
    color: var(--text-2);
}

.cart-bar__total strong {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.cart-bar__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.cart-bar__cta:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* a barra e o "Desfazer" só existem em ecrãs pequenos; no computador o resumo já está à vista */

@media (min-width: 980px) {
    .cart-bar {
            display: none;
        }

    .cart-undo {
            left: 50%;
            right: auto;
            bottom: 28px;
            width: min(460px, calc(100% - 28px));
            transform: translateX(-50%);
            animation: none;
        }
}

@media (prefers-reduced-motion: reduce) {
    .cart-undo {
            animation: none;
        }
}

.cart-item__name,
.mini-cart__info strong {
    text-transform: none;
}

.cart-item__name::first-letter,
.mini-cart__info strong::first-letter {
    text-transform: uppercase;
}

/* ---- cesto: "Costuma ir bem com…" ---- */

.cart-suggest {
    width: min(var(--container), calc(100% - 28px));
    margin: -28px auto 72px;
}

.cart-suggest[hidden] {
    display: none;
}

.cart-suggest__head {
    margin-bottom: 18px;
}

.cart-suggest__head h2 {
    margin: 0 0 4px;
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 500;
    color: var(--primary);
}

.cart-suggest__head p {
    margin: 0;
    color: var(--text-2);
    font-size: 0.92rem;
}


@media (min-width: 1100px) {
    section.ervas, section.saladas, section.verduras, section.raizes, section.microverdes, section.floresComestiveis,
        section.leguminosas, section.horticulas, section.ovos, section.sabaoNatural, section.plantasEmVaso,
        section.compotas, section.cogumelos, section.carnes {
            grid-template-columns: repeat(4, 1fr);
            gap: 26px;
        }

    .product-skeleton {
            grid-template-columns: repeat(4, 1fr);
            gap: 26px;
        }
}

/* ==========================================================================
   CARTÃO DE PRODUTO (cardUi.js), inspirado no Orvana
   Foto com zoom; ao passar o rato: contorno verde, ícones (favorito, vista
   rápida, ficha) e o botão passa a "Selecionar quantidade"; ao clicar mostram-se
   as quantidades em linha (verde com letra branca ao passar o rato).
   ========================================================================== */

/* o cartão original de cada página fica escondido: a página continua a usá-lo para o cesto */
.pc-legacy {
    display: none !important;
}

.only-available .pc.out-of-stock {
    display: none;
}

/* mais colunas só quando há largura para os cartões novos */
@media (min-width: 1100px) {
    section.ervas, section.saladas, section.verduras, section.raizes, section.microverdes, section.floresComestiveis,
    section.leguminosas, section.horticulas, section.ovos, section.sabaoNatural, section.plantasEmVaso,
    section.compotas, section.cogumelos, section.carnes {
        grid-template-columns: repeat(4, 1fr);
        gap: 26px;
    }

    .product-skeleton {
        grid-template-columns: repeat(4, 1fr);
        gap: 26px;
    }
}

.pc {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* o contorno verde do Orvana */
.pc::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 2px solid transparent;
    border-radius: 18px;
    pointer-events: none;
    transition: border-color 0.25s ease;
}

.pc:hover,
.pc:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(31, 59, 44, 0.12);
}

.pc:hover::after,
.pc:focus-within::after {
    border-color: var(--primary);
}

.pc.is-searched {
    box-shadow: 0 0 0 4px var(--mint);
}

.pc.is-searched::after {
    border-color: var(--primary);
}

/* foto */
.pc__media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--surface);
}

.pc__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.7s var(--ease);
}

.pc:hover .pc__media img {
    transform: scale(1.08);
}

.pc__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(31, 59, 44, 0.9);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ícones no canto superior direito: só aparecem ao passar o rato */
.pc__actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pc__icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    font-size: 0.95rem;
    cursor: pointer;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease), background 0.2s ease, color 0.2s ease;
}

.pc:hover .pc__icon,
.pc:focus-within .pc__icon {
    opacity: 1;
    transform: none;
}

.pc__actions li:nth-child(2) .pc__icon { transition-delay: 0.04s, 0.04s, 0s, 0s; }
.pc__actions li:nth-child(3) .pc__icon { transition-delay: 0.08s, 0.08s, 0s, 0s; }

.pc__icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* o coração de um favorito fica sempre à vista */
.pc__icon[aria-pressed="true"] {
    opacity: 1;
    transform: none;
    color: #b3412b;
}

.pc__icon[aria-pressed="true"]:hover {
    background: #fff;
    color: #b3412b;
}

.pc__icon::after {
    content: attr(data-tip);
    position: absolute;
    right: 48px;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pc__icon:hover::after,
.pc__icon:focus-visible::after {
    opacity: 1;
    transform: none;
}

.pc__icon:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* em ecrãs de toque não há "passar o rato": os ícones ficam sempre à vista */
@media (hover: none) {
    .pc__icon {
        opacity: 1;
        transform: none;
        width: 36px;
        height: 36px;
    }

    .pc__icon::after {
        display: none;
    }
}

/* preço, nome e família */
.pc__body {
    padding: 18px 18px 4px;
}

.pc__price {
    margin: 0 0 4px;
    line-height: 1.2;
    color: var(--text-2);
    font-size: 0.9rem;
}

.pc__price strong {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.pc__name {
    margin: 0;
    min-height: 2.5em;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--text);
}

.pc__name::first-letter {
    text-transform: uppercase;
}

.pc__family {
    display: inline-block;
    margin-top: 6px;
    color: var(--earth);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
}

.pc__family:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* compra */
.pc__buy {
    position: relative;
    margin-top: auto;
    padding: 12px 16px 16px;
}

.pc__btn {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pc__btn i {
    margin-right: 6px;
}

.pc__btn:active {
    transform: scale(0.98);
}

.pc__btn:focus-visible,
.pc__opt:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* o texto muda ao passar o rato: "Adicionar ao cesto" → "Selecionar quantidade" */
.pc__btn-a,
.pc__btn-b {
    grid-area: 1 / 1;
    transition: opacity 0.2s ease, transform 0.25s var(--ease);
}

.pc__btn-b {
    opacity: 0;
    transform: translateY(8px);
}

@media (hover: hover) {
    .pc__btn:hover {
        background: var(--mint-soft);
    }

    .pc__btn:hover .pc__btn-a {
        opacity: 0;
        transform: translateY(-8px);
    }

    .pc__btn:hover .pc__btn-b {
        opacity: 1;
        transform: none;
    }
}

@media (hover: none) {
    .pc__btn-b {
        display: none;
    }
}

.pc__btn[data-action="add"]:hover {
    background: var(--primary);
    color: #fff;
}

/* as quantidades, em linha, no lugar do botão */
.pc__options {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--primary);
    border-radius: 24px;
    background: #fff;
}

.pc__buy.is-picking .pc__options {
    display: flex;
    animation: pcOptionsIn 0.25s var(--ease);
}

.pc__buy.is-picking > .pc__btn {
    display: none;
}

@keyframes pcOptionsIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: none; }
}

.pc__opt {
    flex: 1 1 auto;
    min-width: 44px;
    padding: 9px 10px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

/* ao passar o rato: letra branca em fundo verde */
.pc__opt:hover,
.pc__opt:focus-visible {
    background: var(--primary);
    color: #fff;
}

/* indisponíveis */
.pc.out-of-stock {
    background: var(--surface);
}

.pc.out-of-stock .pc__media img {
    filter: grayscale(0.9);
    opacity: 0.7;
}

.pc.out-of-stock .pc__price strong,
.pc.out-of-stock .pc__name {
    color: var(--text-2);
}

.pc__btn--notify {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    font-size: 0.82rem;
}

.pc__btn--notify:hover {
    background: var(--mint-soft);
}

/* ---- vista rápida (o olho) ---- */
.quickview {
    position: fixed;
    inset: 0;
    z-index: 960;
    display: grid;
    place-items: center;
    padding: 14px;
    background: rgba(12, 24, 18, 0.62);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.quickview[hidden] {
    display: none;
}

.quickview.is-open {
    opacity: 1;
}

body.quickview-open {
    overflow: hidden;
}

.quickview__box {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(900px, 100%);
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.35s var(--ease);
}

.quickview.is-open .quickview__box {
    transform: none;
}

.quickview__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.quickview__close:hover {
    background: var(--mint);
    transform: rotate(90deg);
}

.quickview__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--surface);
}

.quickview__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quickview__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 24px 28px;
}

.quickview__info h2 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.15;
    color: var(--primary);
}

.quickview__info h2::first-letter {
    text-transform: uppercase;
}

.quickview__info .pc__price strong {
    font-size: 1.6rem;
}

.quickview__buy {
    padding: 4px 0 0;
}

.quickview__buy .pc__options {
    display: flex;
    animation: none;
}

.quickview__label {
    margin: 0 0 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.quickview__fav {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.quickview__fav:hover {
    background: var(--mint-soft);
}

.quickview__fav[aria-pressed="true"] {
    color: #b3412b;
    border-color: #e8c4bb;
}

/* a ficha técnica dentro da vista rápida (o texto vem do popup da página) */
.quickview__ficha {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--text);
}

.quickview__ficha h2 {
    display: none;
}

.quickview__ficha .ficha-family {
    margin-bottom: 14px;
    font-size: 0.82rem;
    font-style: italic;
    color: var(--text-2);
}

.quickview__ficha .ficha-section {
    margin-bottom: 14px;
}

.quickview__ficha .ficha-section-title {
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage);
}

.quickview__ficha .ficha-harvest {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--mint-soft);
}

.quickview__ficha ul {
    margin: 0;
    padding-left: 18px;
}

.quickview__ficha li {
    margin-bottom: 3px;
}

.quickview__ficha .ficha-flavor {
    padding: 6px 12px;
    border-left: 3px solid var(--mint);
    border-radius: 0 6px 6px 0;
    background: var(--surface);
}

.quickview__ficha .ficha-components {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quickview__ficha .ficha-tag {
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--mint-soft);
    color: var(--primary);
    font-size: 0.8rem;
}

@media (min-width: 760px) {
    .quickview__box {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    }

    .quickview__media {
        aspect-ratio: auto;
        min-height: 100%;
    }

    .quickview__media img {
        position: absolute;
        inset: 0;
    }

    .quickview__info {
        padding: 36px 36px 36px 32px;
    }
}

/* ---- favoritos: coração no cabeçalho e gaveta ---- */
.wish-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: none;
    background: none;
    color: var(--primary);
    cursor: pointer;
}

.wish-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 50%;
}

.wish-btn__count {
    position: absolute;
    top: -8px;
    right: -9px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #b3412b;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
}

.wish-btn__count[hidden] {
    display: none;
}

.wish-item.is-unavailable img {
    filter: grayscale(0.9);
    opacity: 0.7;
}

.wish-item__tag {
    align-self: flex-start;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 0.7rem;
    font-weight: 600;
}

.wish-item__go {
    padding: 8px 14px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.wish-item__go:hover {
    background: var(--primary);
    color: #fff;
}

.wish-item__go--notify {
    border-style: dashed;
}

.wish-drawer .mini-cart__remove {
    color: #b3412b;
}

/* ---- cesto: família por cima do nome e sugestões com o cartão novo ---- */
.cart-item__family {
    display: block;
    margin-bottom: 2px;
    color: var(--earth);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cart-item__family:empty {
    display: none;
}

.cart-suggest__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (min-width: 900px) {
    .cart-suggest__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc,
    .pc__media img,
    .pc__icon,
    .quickview__box {
        transition: none;
    }

    .pc__buy.is-picking .pc__options {
        animation: none;
    }
}

/* as quantidades sobrepõem-se ao botão (sem empurrar os outros cartões da linha) */
.pc__options {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 6;
    box-shadow: 0 10px 28px rgba(31, 59, 44, 0.18);
}

.pc__buy.is-picking > .pc__btn {
    display: grid;
    visibility: hidden;
}

.quickview__buy .pc__options {
    position: static;
    box-shadow: none;
}

/* mais espaço por cima do botão, para as quantidades sobrepostas não taparem o nome */
.pc__buy {
    padding-top: 22px;
}

/* ---- cartões e cabeçalho em telemóvel ---- */

/* com o coração, o cabeçalho ficava apertado e o logótipo encolhia */
.logo-img-div:first-child {
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .cart-and-menu {
        gap: 10px;
        padding: 10px 14px;
    }
}

/* ecrãs de toque: menos ícones por cima da foto e quantidades que empurram o conteúdo (sem sobrepor o preço) */
@media (hover: none) {
    .pc__actions {
        top: 8px;
        right: 8px;
        gap: 6px;
    }

    .pc__icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .pc__actions li:has([data-info]) {
        display: none; /* a vista rápida (olho) já traz a ficha técnica */
    }

    .pc__options {
        position: static;
        box-shadow: none;
    }

    .pc__buy.is-picking > .pc__btn {
        display: none;
    }

    .pc__opt {
        flex: 1 1 40%;
        padding: 11px 8px;
    }
}

/* ---- tablet e telemóvel (sem "passar o rato"): ícones sempre à vista, quantidades logo ao clicar ---- */
@media (max-width: 1024px) {
    .pc__icon {
        opacity: 1;
        transform: none;
    }

    .pc__icon::after {
        display: none;
    }

    .pc__btn-b {
        display: none;
    }

    .pc__options {
        position: static;
        box-shadow: none;
    }

    .pc__buy.is-picking > .pc__btn {
        display: none;
    }
}

/* ---- vista rápida como pop-up (não como página) e cabeçalho/menu inferior sempre à vista ---- */

/* tablet: margem de 30px à volta do pop-up */
@media (max-width: 1099px) {
    .quickview {
        padding: 30px;
    }

    .quickview__box {
        width: min(760px, 100%);
        height: auto;
        max-height: 100%;
        border-radius: 22px;
    }

    .quickview__media {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .quickview__media img {
        position: static;
    }
}

/* telemóvel: cabeçalho e menu inferior ficam por cima de tudo (menos do pop-up de Natal),
   e os pop-ups e as gavetas ficam entre os dois, com 20px de margem */
@media (max-width: 768px) {
    header,
    .bottom-menu {
        z-index: 975;
    }

    .quickview {
        padding: calc(var(--mobile-header, 92px) + 20px) 20px calc(var(--mobile-menu, 84px) + 20px);
    }

    .quickview__box {
        display: block;
        width: 100%;
        height: auto;
        max-height: 100%;
        border-radius: 22px;
    }

    .quickview__media {
        aspect-ratio: 16 / 10;
        max-height: 34vh;
    }

    .quickview__close {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    }

    .quickview__info {
        padding: 18px 18px 22px;
    }

    .quickview__info h2 {
        font-size: 1.45rem;
    }

    /* gavetas do cesto e dos favoritos: por cima do menu inferior não, e por baixo do cabeçalho */
    .mini-cart__panel {
        left: 20px;
        right: 20px;
        bottom: calc(var(--mobile-menu, 84px) + 20px);
        max-height: calc(100dvh - var(--mobile-header, 92px) - var(--mobile-menu, 84px) - 40px);
        border-radius: 22px;
    }

    /* o coração do cabeçalho passa para o menu inferior */
    .cart-and-menu .wish-btn {
        display: none;
    }
}

/* o coração no menu inferior */
.wish-bottom {
    display: flex;
    align-items: center;
}

.wish-bottom .wish-btn {
    font-size: 1.05rem;
}

.wish-bottom .wish-btn i {
    color: var(--primary);
}

/* quantidades na vista rápida: em linha sempre que couberem (senão passam para a linha seguinte) */
@media (max-width: 1099px) {
    .quickview__buy .pc__opt {
        flex: 1 1 auto;
        min-width: 0;
        padding: 10px 8px;
        font-size: 0.78rem;
    }
}

/* telemóvel: sem barra de deslocamento no pop-up (continua a deslizar) e o X fixo no topo direito */
@media (max-width: 768px) {
    .quickview__box {
        scrollbar-width: none;
    }

    .quickview__box::-webkit-scrollbar {
        display: none;
    }

    .quickview__close {
        position: sticky;
        top: 10px;
        right: 10px;
        display: grid;
        width: 38px;
        height: 38px;
        margin: 10px 10px -48px auto;
    }
}

/* ---- pop-ups: scroll preso dentro do pop-up e página bloqueada por trás (modalLock.js) ---- */
html.is-scroll-locked,
body.is-scroll-locked {
    overflow: hidden;
}

/* o cabeçalho fixo não "salta" quando a barra de scroll desaparece */
html.is-scroll-locked header {
    right: calc(14px + var(--scrollbar-gap, 0px));
}

.mini-cart__body,
.mini-cart__panel,
.quickview__box,
#fichaPopup,
.searchBar-div,
.menu-list,
.lightbox {
    overscroll-behavior: contain;
}

.mini-cart__panel {
    max-height: 100vh;
    max-height: 100dvh;
}

.quickview__box {
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
}

#fichaPopup {
    max-height: 85vh;
    max-height: 85dvh;
}

.searchBar-div {
    overflow-y: auto;
    max-height: 100vh;
    max-height: 100dvh;
}

/* créditos das fotografias no rodapé (em telemóvel ficam por último) */
@media (max-width: 768px) {
    .site-footer__legal .legal-credits { order: 5; }
}

/* só para leitores de ecrã */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- formulários: erros, consentimento e estado de envio ---------- */
.contactForm .form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.5;
    cursor: pointer;
}

.contactForm .form-consent input[type="checkbox"] {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    accent-color: var(--primary);
}

.contactForm .form-consent a {
    color: var(--primary);
    text-decoration: underline;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: #A3261F;
    font-size: 0.82rem;
    line-height: 1.4;
}

.field-error[hidden] {
    display: none;
}

.contactForm [aria-invalid="true"]:not([type="checkbox"]) {
    border-color: #A3261F !important;
    box-shadow: 0 0 0 3px rgba(163, 38, 31, 0.12);
}

.form-status {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.form-status:empty {
    display: none;
}

.form-status--ok,
.form-status--error {
    padding: 14px 18px;
    border-radius: 14px;
}

.form-status--ok {
    background: var(--mint-soft);
    color: var(--primary);
}

.form-status--error {
    background: #FBEAE8;
    color: #7C1D17;
}

.contactForm button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

@media (max-width: 768px) {
    /* 16px evita o zoom automático do iOS ao focar um campo */
    .contactForm input:not([type="checkbox"]),
    .contactForm textarea,
    form input:not([type="checkbox"]):not([type="hidden"]),
    form textarea,
    form select {
        font-size: 16px;
    }
}

.contactForm span.field-error {
    color: #A3261F;
    font-size: 0.85rem;
}

.contactForm span.obligationOrErrorMessage {
    color: var(--text-2);
    font-size: 0.85rem;
}

.contactForm .form-consent label span {
    font-size: inherit;
    color: inherit;
}

/* ---------- acessibilidade: saltar para o conteúdo e foco visível ---------- */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100000;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 0.2s var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid var(--mint);
    outline-offset: 2px;
}

main:focus {
    outline: none;
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 6px;
}

/* em fundos escuros o contorno verde-floresta não se vê */
:where(.site-footer, .page-hero, .welcomeSection, .contact-card) :where(a, button):focus-visible {
    outline-color: var(--mint);
}

/* ---------- responsivo: alvos de toque (44px), cabeçalho em ecrãs estreitos e campos a 16px ---------- */
@media (max-width: 1024px) {
    .cart-and-menu {
        gap: 2px;
        padding: 0 8px;
    }

    .cart-and-menu > i,
    .cart-and-menu .cart-div a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        min-height: 44px;
    }

    .bottom-menu {
        padding: 4px 10px;
    }

    .bottom-menu a,
    .bottom-menu .wish-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    .logo-img-div .site-name,
    .site-footer__col ul a,
    .site-footer__contacts a,
    .site-footer__legal a,
    .site-footer__top {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .testimonial-more,
    .press .read-more,
    .press button {
        min-height: 44px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .cart-and-menu > .wish-btn,
    .cart-and-menu > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        min-height: 44px;
    }
}

@media (max-width: 360px) {
    header {
        gap: 8px;
        padding: 6px 6px 6px 10px;
    }

    .logo-img {
        width: 38px;
        height: 38px;
        max-height: 38px;
    }

    .logo-img-div .site-name,
    .logo-img-div h1 {
        font-size: 1.02rem;
    }

    .cart-and-menu {
        padding: 0 6px;
    }

    .cart-and-menu > i,
    .cart-and-menu .cart-div a {
        min-width: 34px;
    }

    .cart-div .article-number,
    .article-number {
        margin-left: 2px;
    }
}

@media (max-width: 768px) {
    .contactForm div input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    .contactForm div textarea {
        font-size: 16px;
    }
}

/* "Ler artigo": ligação com aspeto de botão (antes era um <a> dentro de um <button>) */
.press .read-more .read-more__btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.press .read-more .read-more__btn:hover {
    background: var(--primary-dark);
}

/* alvos de toque de 44px nos cartões, filtros, "ver mais" e ligações curtas do rodapé */
@media (hover: none), (max-width: 1024px) {
    .pc__icon {
        width: 44px;
        height: 44px;
    }

    .stock-filter__btn,
    .see-more-button-aboutUs-description button,
    .see-more-button-mission button,
    .see-more-button-website-explanation button {
        min-height: 44px;
    }

    .site-footer__col ul a,
    .site-footer__contacts a,
    .site-footer__legal a {
        min-width: 44px;
    }
}

/* áreas de toque maiores sem mexer no desenho (padding compensado com margem negativa) */
@media (hover: none), (max-width: 1024px) {
    .breadcrumb a {
        display: inline-block;
        padding: 12px 6px;
        margin: -12px -6px;
    }

    .contact-card li a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

/* menu: <ul><li><a><span>, sem alterar o desenho (o <li> não gera caixa) */
.menu-list > li {
    display: contents;
}

.menu-list a .menu-li {
    display: block;
    list-style: none;
}

/* ---------- QUEM SOMOS: pilares, fotos, roteiro, imagem total e missão ---------- */
.story-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mint-soft);
    color: var(--primary);
    font-size: 1.5rem;
}

.story-icon--small {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 1.1rem;
}

.story-pillars,
.story-photos,
.story-mission,
.roadmap {
    width: min(var(--container), calc(100% - 28px));
    margin-left: auto;
    margin-right: auto;
}

.story-pillars {
    margin-top: 72px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.story-pillars article {
    padding: 8px 40px;
    border-left: 1px solid var(--line);
}

.story-pillars article:first-of-type {
    border-left: 0;
    padding-left: 0;
}

.story-pillars h3,
.story-list h3,
.roadmap h3 {
    margin: 18px 0 8px;
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary);
}

.story-pillars p,
.story-list p,
.roadmap p {
    margin: 0;
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.65;
}

.story-photos {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.story-photos img,
.story-mission__photos img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* roteiro */
.story-roadmap {
    margin-top: 88px;
    padding: 80px 0;
    background: #fff;
}

.story-roadmap .section-head {
    margin-bottom: 0;
}

.roadmap {
    margin-top: 48px;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.roadmap__when {
    display: block;
    font-family: var(--font-head);
    font-size: 1.9rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--primary);
}

.roadmap__dot {
    display: flex;
    align-items: center;
    height: 12px;
    margin: 16px 0 6px;
}

.roadmap__dot::before {
    content: "";
    flex: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 5px var(--mint-soft);
}

.roadmap__dot::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-right: -24px;
    background: var(--line);
}

.roadmap li:last-child .roadmap__dot::after {
    display: none;
}

/* imagem a largura total */
.story-band {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(400px, 66vh, 680px);
    overflow: hidden;
    background: var(--primary-dark);
}

.story-band img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 16%;
}

.story-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 42, 31, 0.88) 0%, rgba(20, 42, 31, 0.35) 55%, rgba(20, 42, 31, 0) 100%);
}

.story-band__text {
    position: relative;
    z-index: 1;
    width: min(var(--container), calc(100% - 28px));
    margin: 0 auto;
    padding: 0 0 56px;
}

.story-band__text p {
    max-width: 24ch;
    margin: 14px 0 0;
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 3.4vw, 2.8rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

/* missão e visão */
.story-mission {
    margin-top: 88px;
    margin-bottom: 96px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

.story-mission h2 {
    margin: 12px 0 16px;
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.story-mission__text > p {
    margin: 0;
    color: var(--text-2);
    line-height: 1.7;
}

.story-list {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 22px;
}

.story-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.story-list h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.story-mission__photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-bottom: 28px;
}

.story-mission__photos img:nth-child(even) {
    transform: translateY(28px);
}

@media (max-width: 1099px) {
    .roadmap {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 640px;
    }

    .roadmap li {
        position: relative;
        padding: 0 0 32px 36px;
    }

    .roadmap li::before {
        content: "";
        position: absolute;
        left: 5px;
        top: 12px;
        bottom: -6px;
        width: 1px;
        background: var(--line);
    }

    .roadmap li:last-child::before {
        display: none;
    }

    .roadmap__dot {
        position: absolute;
        left: 0;
        top: 8px;
        margin: 0;
    }

    .roadmap__dot::after {
        display: none;
    }

    .roadmap__when {
        font-size: 1.6rem;
    }

    .roadmap h3 {
        margin-top: 6px;
    }
}

@media (max-width: 900px) {
    .story-pillars {
        grid-template-columns: 1fr;
        margin-top: 48px;
    }

    .story-pillars article,
    .story-pillars article:first-of-type {
        padding: 24px 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .story-pillars article:first-of-type {
        border-top: 0;
        padding-top: 0;
    }

    .story-photos {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 40px;
    }

    .story-roadmap {
        margin-top: 64px;
        padding: 56px 0;
    }

    .story-band {
        min-height: 420px;
    }

    .story-band__text {
        padding-bottom: 36px;
    }

    .story-mission {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 64px;
        margin-bottom: 72px;
    }
}

/* ---------- SECÇÃO "VAMOS CONVERSAR" (por cima do Instagram, em todas as páginas) ---------- */
.partner {
    position: relative;
    margin-top: 120px;
    padding: 80px 0;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 56%, rgba(31, 59, 44, 0.55) 74%, rgba(31, 59, 44, 0.1) 100%),
        url("/images/farm-img-homePage2.webp") right center / cover no-repeat;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px) 240px;
    column-gap: 56px;
    align-items: center;
    padding-left: max(14px, calc((100% - var(--container)) / 2));
    padding-right: 0;
}

.partner__info {
    max-width: 540px;
}

.partner h2 {
    margin: 12px 0 16px;
    font-family: var(--font-head);
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
}

.partner__info > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.partner__points {
    margin: 32px 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 20px;
}

.partner__points li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.partner__points .story-icon {
    background: rgba(255, 255, 255, 0.12);
    color: var(--mint);
}

.partner__points h3 {
    margin: 0 0 4px;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
}

.partner__points p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.6;
}

.partner__form {
    display: grid;
    gap: 14px;
    padding: 30px;
    background: #fff;
    color: var(--text);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.partner__form h3 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary);
}

.partner__form-text {
    margin: -6px 0 4px;
    font-size: 0.9rem;
    color: var(--text-2);
}

.partner__form label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.partner__form label span[aria-hidden] {
    margin-left: 2px;
    color: #A3261F;
}

.partner__form textarea {
    resize: vertical;
}

.partner__form .form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

.partner__form .form-consent input[type="checkbox"] {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    accent-color: var(--primary);
}

.partner__form .form-consent a {
    color: var(--primary);
    text-decoration: underline;
}

.partner__form button[type="submit"] {
    justify-self: start;
}

.partner__form .field-error {
    display: block;
    margin-top: 6px;
    color: #A3261F;
    font-size: 0.85rem;
}

.partner__form .field-error[hidden] {
    display: none;
}

.partner__form [aria-invalid="true"]:not([type="checkbox"]) {
    border-color: #A3261F;
    box-shadow: 0 0 0 3px rgba(163, 38, 31, 0.12);
}

.partner__form .form-status:empty {
    display: none;
}

.partner__form .form-status--ok,
.partner__form .form-status--error {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.92rem;
}

.partner__form .form-status--ok { background: var(--mint-soft); color: var(--primary); }
.partner__form .form-status--error { background: #FBEAE8; color: #7C1D17; }

.partner__form button:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 1199px) {
    .partner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
        padding-right: max(14px, calc((100% - var(--container)) / 2));
        background:
            linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 70%, rgba(31, 59, 44, 0.9) 100%),
            url("/images/farm-img-homePage2.webp") right center / cover no-repeat;
    }
}

@media (max-width: 900px) {
    .partner {
        grid-template-columns: 1fr;
        row-gap: 40px;
        margin-top: 88px;
        padding-top: 56px;
        padding-bottom: 56px;
        padding-right: 14px;
    }

    .partner__info {
        max-width: none;
    }

    .partner__form {
        padding: 24px 20px;
    }
}

/* =============================================================================
   ESPAÇAMENTO ENTRE SECÇÕES (regra única, aplicada a todas as páginas)
   - Cada secção tem o mesmo espaço em cima e em baixo (100 / 70 / 50 px).
   - Se duas secções seguidas têm fundos diferentes, as duas têm o espaço completo
     (a de cima em baixo, a de baixo em cima).
   - Se têm o mesmo fundo, só a de cima tem espaço em baixo: a de baixo começa a 0.
   - Hero, faixas de imagem e a tira de valores (sec--media) não têm espaço próprio.
   Tipos de fundo: sec--cream (fundo da página), sec--white, sec--sand, sec--dark, sec--media.
   ============================================================================= */
:root {
    --section-y: 100px;
}

@media (max-width: 1024px) {
    :root { --section-y: 70px; }
}

@media (max-width: 768px) {
    :root { --section-y: 50px; }
}

body .sec.sec {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: var(--section-y);
    padding-bottom: var(--section-y);
}

body .sec--media.sec--media {
    padding-top: 0;
    padding-bottom: 0;
}

/* páginas sem hero: o espaço do cabeçalho já vem do body */
body .sec--first.sec--first {
    padding-top: 0;
}

/* mesmo fundo seguido: a segunda secção começa a 0 */
.sec--cream + .sec--cream,
.sec--white + .sec--white,
.sec--sand + .sec--sand,
.sec--dark + .sec--dark,
main + .sec--cream {
    padding-top: 0;
}

body .sec--cream + .sec--cream.sec--cream,
body main + .sec--cream.sec--cream {
    padding-top: 0;
}

body .sec--white + .sec--white.sec--white,
body .sec--sand + .sec--sand.sec--sand,
body .sec--dark + .sec--dark.sec--dark {
    padding-top: 0;
}

/* secções vazias (ex.: sugestões do carrinho antes de carregarem) não ocupam espaço */
.sec:empty,
.sec[hidden] {
    display: none;
}

/* título da secção dentro de um bloco: sem margem extra em cima */
.sec > .section-head:first-child {
    margin-top: 0;
}

/* filtros que o JavaScript põe entre o hero e a lista */
.stock-filter,
.cart-deadline {
    margin-top: var(--section-y);
}

body .stock-filter + .sec.sec {
    padding-top: 0;
}

/* rodapé: mesmo espaço em cima */
.site-footer {
    margin-top: 0;
    padding-top: var(--section-y);
}

/* a tira de valores da home mantém o seu espaço interno */
body .sec--media.home-values {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* o id do histórico de encomendas ganhava à regra geral de espaçamento */
body #ordersHistoricSection.sec.sec {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: var(--section-y);
    padding-bottom: var(--section-y);
}

/* ---------- menu inferior (mobile): números junto aos ícones, sem sublinhado ---------- */
.bottom-menu a,
.bottom-menu a:hover,
.bottom-menu a:focus,
.bottom-menu i {
    text-decoration: none;
    border-bottom: 0;
}

.bottom-menu .cart-div,
.bottom-menu .wish-bottom {
    position: relative;
}

.bottom-menu .cart-div .article-number,
.bottom-menu .wish-bottom .wish-btn__count {
    position: absolute;
    top: 4px;
    left: 50%;
    right: auto;
    margin: 0 0 0 7px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.65rem;
    box-shadow: 0 0 0 2px #fff;
}

/* ---------- rodapé em tablet e telemóvel: listas mais juntas ---------- */
@media (max-width: 1024px) {
    .site-footer__col:not(.site-footer__contacts) ul {
        gap: 0;
    }

    .site-footer__col:not(.site-footer__contacts) ul a {
        min-height: 28px;
    }
}

/* fotos do topo (Quem somos, Contactos): retrato visível quase por inteiro e rosto sempre dentro */
.page-hero__slides img {
    object-position: center 18%;
}

@media (max-width: 759px) {
    .page-hero__slides {
        aspect-ratio: 4 / 5;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 48px);
    }
}

/* rodapé em desktop largo: cinco colunas (marca, Sobre nós, Links úteis, Famílias, Contactos) */
@media (min-width: 1180px) {
    .site-footer__inner {
        grid-template-columns: minmax(160px, 0.9fr) minmax(172px, 0.9fr) minmax(158px, 0.9fr) minmax(172px, 0.9fr) minmax(280px, 1.4fr);
        gap: 48px 28px;
    }

    .site-footer__col--families ul {
        grid-template-columns: 1fr;
    }
}

/* telemóvel: a gaveta do cesto e dos favoritos fica sempre entre o cabeçalho e o menu inferior
   (esta regra tem de vir depois do max-height: 100dvh geral); o conteúdo desliza lá dentro */
@media (max-width: 768px) {
    .mini-cart__panel {
        max-height: calc(100dvh - var(--mobile-header, 92px) - var(--mobile-menu, 84px) - 40px);
    }

    .mini-cart__body {
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* =============================================================================
   POP-UPS: o mesmo raio nos quatro cantos, em todos os ecrãs
   (cesto, favoritos, vista rápida, ficha, avisos, cookies, Natal, galeria)
   ============================================================================= */
:root {
    --popup-radius: 24px;
}

body .mini-cart__panel,
body .quickview__box,
body #fichaPopup,
body .cookie-banner,
body .site-notice,
body .christmas-popup__card,
body .christmas-popup__card img,
body .lightbox figure img {
    border-radius: var(--popup-radius) !important;
}

/* a gaveta lateral (tablet e desktop) passa a flutuar com margem, para ter os quatro cantos redondos */
@media (min-width: 769px) {
    body .mini-cart__panel {
        top: 14px;
        right: 14px;
        bottom: 14px;
        left: auto;
        max-height: none;
        transform: translateX(calc(100% + 28px));
    }
}

/* telemóvel: entre o cabeçalho e o menu inferior, com margem igual dos dois lados; o conteúdo desliza */
@media (max-width: 768px) {
    body .mini-cart__panel {
        left: 20px;
        right: 20px;
        top: auto;
        bottom: calc(var(--mobile-menu, 84px) + 20px);
        max-height: calc(100dvh - var(--mobile-header, 92px) - var(--mobile-menu, 84px) - 40px);
    }
}

/* =============================================================================
   RODAPÉ EM TABLET E TELEMÓVEL: listas numa só coluna e colunas lado a lado
   ============================================================================= */
@media (max-width: 1179px) {
    body .site-footer__col ul,
    body .site-footer__col:not(.site-footer__contacts) ul {
        grid-template-columns: 1fr;
    }

    .site-footer__inner > .site-footer__brand      { order: 0; grid-column: 1 / -1; }
    .site-footer__inner > .site-footer__col--about    { order: 1; }
    .site-footer__inner > .site-footer__col--families { order: 2; }
    .site-footer__inner > .site-footer__col--legal    { order: 3; }
    .site-footer__inner > .site-footer__contacts      { order: 4; grid-column: 1 / -1; }
}

/* tablet: três colunas; os contactos em duas colunas por baixo */
@media (min-width: 700px) and (max-width: 1179px) {
    .site-footer__inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px 28px;
    }

    body .site-footer__contacts ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 28px;
    }
}

/* telemóvel: duas colunas (Sobre nós e Produtos lado a lado); links úteis e contactos por baixo */
@media (max-width: 699px) {
    .site-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 20px;
    }

    .site-footer__inner > .site-footer__col--legal { grid-column: 1 / -1; }

    body .site-footer__col.site-footer__col--legal:not(.site-footer__contacts) ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
    }
}

/* cabeçalho (tablet e telemóvel): os números ficam encostados ao ícone, como no menu inferior */
@media (max-width: 1024px) {
    body .cart-and-menu .cart-div,
    body .cart-and-menu .wish-btn {
        position: relative;
    }

    body .cart-and-menu .cart-div .article-number,
    body .cart-and-menu .wish-btn .wish-btn__count {
        position: absolute;
        top: 3px;
        left: 50%;
        right: auto;
        margin: 0 0 0 5px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        font-size: 0.65rem;
        box-shadow: 0 0 0 2px var(--mint);
    }
}

/* até aos ecrãs médios os textos do rodapé são um pouco mais pequenos para caberem as cinco colunas */
@media (min-width: 1180px) and (max-width: 1399px) {
    .site-footer__col a,
    .site-footer__contacts small {
        font-size: 0.9rem;
    }
}

/* cabeçalho: os ícones têm todos a mesma largura e o mesmo espaço entre si */
@media (max-width: 1024px) {
    body .cart-and-menu {
        gap: 0;
        justify-content: space-between;
        padding: 0 6px;
    }

    body .cart-and-menu > i,
    body .cart-and-menu .cart-div a {
        width: 44px;
        min-width: 44px;
    }

    body .cart-and-menu i {
        display: inline-block;
        width: 1.3em;
        text-align: center;
        line-height: 1;
    }
}

@media (max-width: 360px) {
    body .cart-and-menu > i,
    body .cart-and-menu .cart-div a {
        width: 38px;
        min-width: 38px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    body .cart-and-menu > a,
    body .cart-and-menu > .wish-btn {
        width: 44px;
        min-width: 44px;
    }
}

@media (max-width: 1024px) {
    body .cart-and-menu > i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 44px;
    }

    body .cart-and-menu .cart-div a i {
        display: block;
    }
}

/* assinaturas do rodapé: sempre em linha, separadas por uma bolinha branca (todos os ecrãs) */
body .site-footer__legal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
}

body .site-footer__legal > * {
    order: 0;
}

body .site-footer__legal .sep {
    display: inline-block;
    flex: none;
    width: 4px;
    height: 4px;
    margin: 0 12px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    opacity: 0.85;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

/* com o cabeçalho sempre à vista em tablet e telemóvel, o botão de voltar ao topo não é preciso */
@media (max-width: 1024px) {
    .site-footer__top {
        display: none;
    }

    body .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    body .site-footer__legal {
        font-size: 0.8rem;
    }

    body .site-footer__legal .sep {
        margin: 0 9px;
    }
}

body .site-footer__legal .legal-copy,
body .site-footer__legal .legal-dev,
body .site-footer__legal .legal-credits,
body .site-footer__legal .sep {
    order: 0;
}

/* o botão do WhatsApp fica por baixo da linha final do rodapé sem a tapar */
@media (min-width: 769px) {
    body .site-footer__bottom {
        padding-bottom: 84px;
    }
}

/* rodapé em tablet: o texto da marca ocupa mais de metade da largura */
@media (min-width: 700px) and (max-width: 1179px) {
    .site-footer__brand > p {
        max-width: 62%;
    }
}

/* tablet largo: as quatro colunas (Sobre nós, Produtos, Links úteis, Contactos) na mesma linha;
   em tablet mais estreito os contactos ficam por baixo, em duas colunas */
@media (min-width: 900px) and (max-width: 1179px) {
    .site-footer__inner {
        grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(280px, 1.5fr);
        gap: 40px 24px;
    }

    .site-footer__inner > .site-footer__contacts {
        grid-column: auto;
    }

    body .site-footer__contacts ul {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* telemóvel: o texto cinzento dos contactos fica mais perto do texto de cima (de 12px para 6px);
   o link mantém os 44px de área de toque */
@media (max-width: 699px) {
    body .site-footer__contacts li small {
        margin-top: -6px;
    }
}

/* telemóvel: o texto da marca ocupa toda a largura do rodapé */
@media (max-width: 699px) {
    body .site-footer__brand,
    body .site-footer__brand > p {
        max-width: none;
        width: 100%;
    }
}

/* cabeçalho (tablet e telemóvel): sem sublinhado e o número assenta no canto do ícone,
   por isso o espaço entre pesquisa, cesto e menu parece igual */
@media (max-width: 1024px) {
    body .cart-and-menu a,
    body .cart-and-menu a:hover,
    body .cart-and-menu a:focus,
    body .cart-and-menu i {
        text-decoration: none;
        border-bottom: 0;
    }

    body .cart-and-menu .cart-div .article-number,
    body .cart-and-menu .wish-btn .wish-btn__count {
        left: calc(50% + 12px);
        margin: 0;
        transform: translateX(-50%);
        top: 4px;
    }
}

/* assinaturas do rodapé: as linhas ficam juntas (as ligações não alargam a linha) */
body .site-footer__legal a {
    display: inline;
    min-height: 0;
    min-width: 0;
}

body .site-footer__legal {
    row-gap: 2px;
}

/* cabeçalho (tablet e telemóvel): ícones mais juntos, sem largura a mais;
   clicar no espaço entre a lupa e o cesto abre a pesquisa */
@media (max-width: 1024px) {
    body .cart-and-menu > i,
    body .cart-and-menu .cart-div a {
        width: 40px;
        min-width: 40px;
    }

    body .cart-and-menu > .fa-magnifying-glass {
        position: relative;
        z-index: 2;
    }

    body .cart-and-menu > .fa-magnifying-glass::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 100%;
        width: 14px;
    }
}

@media (max-width: 360px) {
    body .cart-and-menu > i,
    body .cart-and-menu .cart-div a {
        width: 36px;
        min-width: 36px;
    }
}

/* passos da encomenda: o hero já não tem margem em baixo, por isso a barra deixa de se puxar para cima dele
   (o espaço é o mesmo das outras secções: 100 / 70 / 50 px) */
body .checkout-steps {
    margin-top: var(--section-y);
    margin-bottom: 32px;
}

body main .checkout-steps:has(+ .sec--first) {
    margin-top: 0;
}

body .checkout-steps + .sec.sec,
body .checkout-steps + .cart-deadline + .sec.sec {
    padding-top: 0;
}

body .checkout-steps + .cart-deadline {
    margin-top: 0;
}

/* passos da encomenda e formulário (todos os ecrãs): a regra de espaçamento das secções (100 / 70 / 50 px)
   entre hero, passos, aviso, pergunta (título + opções) e os cartões de dados.
   O formulário tem 16 px de espaço entre filhos, por isso as margens descontam esses 16 px. */
body .checkout-steps ~ .sec.sec {
    padding-top: 0;
}

body .checkout-steps {
    margin-top: var(--section-y);
    margin-bottom: var(--section-y);
}

body main .checkout-steps:has(+ .sec--first) {
    margin-top: 0;
}

body .client-data-sec form.cart-form .orders-closed,
body .client-data-sec form.cart-form > h4 {
    margin-top: 0;
}

body .client-data-sec form.cart-form .orders-closed,
body .client-data-sec form.cart-form .radio-buttons {
    margin-bottom: calc(var(--section-y) - 16px);
}

body .client-data-sec form.cart-form > h4 {
    margin-bottom: 0;
}

/* a pergunta e as opções de entrega formam um só bloco: ficam juntas (16 px) */
body .client-data-sec form.cart-form .radio-buttons {
    margin-top: 0;
}

/* páginas da encomenda (cesto, dados e entrega, confirmação): espaços entre blocos reduzidos para menos de metade
   (40 / 30 / 24 px em vez de 100 / 70 / 50 px) */
:root {
    --flow-gap: 40px;
}

@media (max-width: 1024px) {
    :root { --flow-gap: 30px; }
}

@media (max-width: 768px) {
    :root { --flow-gap: 24px; }
}

body .checkout-steps {
    margin-top: var(--flow-gap);
    margin-bottom: var(--flow-gap);
}

body main .checkout-steps:has(+ .sec--first) {
    margin-top: 0;
}

body .client-data-sec form.cart-form .orders-closed,
body .client-data-sec form.cart-form .radio-buttons {
    margin-bottom: calc(var(--flow-gap) - 16px);
}

/* =============================================================================
   HERO COM FOTOS (Quem somos e Contactos) EM TELEMÓVEL E TABLET ESTREITO:
   a foto fica sempre ao lado do texto (nunca por baixo, em tamanho grande)
   ============================================================================= */
@media (max-width: 759px) {
    body .page-hero--photos {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    body .page-hero--photos .page-hero__inner {
        flex: 1 1 auto;
        min-width: 0;
        padding: 28px 8px 28px 20px;
        gap: 8px;
    }

    body .page-hero--photos h1 {
        font-size: clamp(1.7rem, 7vw, 2.4rem);
    }

    body .page-hero--photos .page-hero__inner > p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    body .page-hero--photos .page-hero__slides {
        flex: 0 0 clamp(104px, 24vw, 180px);
        width: clamp(104px, 24vw, 180px);
        max-width: none;
        margin: 20px 18px 20px 0;
        aspect-ratio: 4 / 5;
        rotate: 2.5deg;
    }
}

/* fotos de Quem somos em tablet estreito e telemóvel: quatro em linha (tamanho a metade das de antes).
   O banner da missão não muda. */
@media (max-width: 899px) {
    .story-photos,
    .story-mission__photos {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .story-mission__photos {
        width: 100%;
        padding-bottom: 0;
    }

    .story-photos img,
    .story-mission__photos img {
        border-radius: 14px;
    }

    .story-mission__photos img:nth-child(even) {
        transform: none;
    }
}

/* =============================================================================
   HOME: fotos do Tiago em linha e pequenas, texto da imprensa igual ao resto, rodapé alinhado com as secções
   ============================================================================= */
@media (max-width: 899px) {
    .about-us-photo {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .about-us-photo img {
        height: auto;
        aspect-ratio: 3 / 4;
        border-radius: 14px;
    }
}

/* artigo do jornal: o mesmo tamanho de letra dos textos das outras secções */
body .press .media-text-description {
    font-size: 0.98rem;
    line-height: 1.75;
    padding: 0;
    color: var(--text);
}

/* o rodapé tem a mesma margem lateral (14 px) das secções anteriores, em todos os ecrãs */
body .site-footer {
    padding-left: 14px;
    padding-right: 14px;
}

/* telemóvel: o botão dos cartões diz "Adicionar ao cesto" numa só linha, sem o ícone do cesto */
@media (max-width: 768px) {
    body .pc__btn .fa-basket-shopping {
        display: none;
    }

    body .pc__btn[data-action="add"],
    body .pc__btn[data-action="pick"] {
        padding-left: 6px;
        padding-right: 6px;
        font-size: clamp(0.68rem, 3.3vw, 0.82rem);
        white-space: nowrap;
    }

    body .pc__btn-a,
    body .pc__btn-b {
        white-space: nowrap;
    }
}

/* tablet e telemóvel: ao pousar o dedo/rato o texto do botão não desaparece
   (a troca para "Selecionar quantidade" só existe em desktop) */
@media (max-width: 1024px) {
    body .pc__btn:hover .pc__btn-a,
    body .pc__btn:focus .pc__btn-a,
    body .pc__btn:active .pc__btn-a {
        opacity: 1;
        transform: none;
    }

    body .pc__btn:hover .pc__btn-b,
    body .pc__btn:focus .pc__btn-b,
    body .pc__btn:active .pc__btn-b {
        display: none;
    }

    body .pc__btn:hover,
    body .pc__btn:active {
        color: var(--primary);
    }

    body .pc__btn[data-action="add"]:hover,
    body .pc__btn[data-action="add"]:active {
        background: var(--primary);
        color: #fff;
    }
}

/* o ícone do cesto fica sempre ao lado do texto (nos botões sem escolha de quantidade o ícone e o texto
   eram dois itens de uma grelha e ficavam um por cima do outro) */
body .pc__btn[data-action="add"],
body .pc__btn--notify {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body .pc__btn[data-action="add"] i,
body .pc__btn--notify i {
    margin-right: 0;
}

body .pc__btn-a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body .pc__btn-a i {
    margin-right: 0;
}

/* ==========================================================================
   MENU: SUBMENUS (Cabazes e Produtos)
   Telemóvel/tablet: a seta ao lado abre a lista por baixo (o texto continua a ser o link da página).
   Ecrã grande (≥1100px): lista suspensa ao passar o rato ou ao focar com o teclado.
   ========================================================================== */
.menu-list > li.has-sub {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    align-items: stretch;
}

.menu-list .sub-toggle {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.menu-list .sub-toggle i {
    transition: transform 0.25s ease;
}

.menu-list .sub-toggle:hover,
.menu-list .sub-toggle:focus-visible {
    color: var(--mint);
}

.menu-list .has-sub.open .sub-toggle i {
    transform: rotate(180deg);
}

.menu-list .submenu {
    grid-column: 1 / -1;
    display: none;
    margin: 0;
    padding: 6px 0 10px 14px;
    list-style: none;
    border-left: 2px solid var(--mint);
}

.menu-list .has-sub.open .submenu {
    display: block;
}

.menu-list .submenu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.menu-list .submenu a:hover,
.menu-list .submenu a:focus-visible,
.menu-list .submenu a.is-current {
    color: var(--mint);
}

.menu-list .has-sub.has-current > a .menu-li {
    color: var(--mint);
}

@media (min-width: 1100px) {
    .menu-list > li.has-sub {
        position: relative;
        display: flex;
        align-items: center;
    }

    .menu-list .sub-toggle {
        width: 22px;
        height: 28px;
        margin-left: -8px;
        border: 0;
        color: var(--primary);
        font-size: 0.65rem;
    }

    .menu-list .sub-toggle:hover,
    .menu-list .sub-toggle:focus-visible {
        color: var(--primary);
    }

    .menu-list .submenu {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        z-index: 120;
        display: block;
        min-width: 210px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 18px 40px rgba(31, 59, 44, 0.16);
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    }

    /* ponte invisível para o rato não "perder" o menu ao descer */
    .menu-list .submenu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -14px;
        height: 14px;
    }

    #sub-produtos {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 400px;
    }

    .menu-list .has-sub:hover .submenu,
    .menu-list .has-sub:focus-within .submenu,
    .menu-list .has-sub.open .submenu {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
    }

    .menu-list .has-sub:hover .sub-toggle i,
    .menu-list .has-sub:focus-within .sub-toggle i {
        transform: rotate(180deg);
    }

    .menu-list .submenu a {
        min-height: 38px;
        padding: 0 14px;
        border-radius: 12px;
        font-family: var(--font-body);
        font-size: 0.88rem;
        font-weight: 500;
        color: var(--primary);
    }

    .menu-list .submenu a:hover,
    .menu-list .submenu a:focus-visible {
        background: var(--mint-soft);
        color: var(--primary);
    }

    .menu-list .submenu a.is-current {
        background: var(--mint-soft);
        color: var(--primary);
        font-weight: 600;
    }

    .menu-list .has-sub.has-current > a .menu-li {
        background: var(--mint-soft);
        color: var(--primary);
        font-weight: 600;
    }
}

/* telemóvel/tablet: a lista longa de famílias não fica escondida atrás do menu inferior */
@media (max-width: 1099px) {
    .menu-list {
        padding-bottom: 120px;
    }
}

/* ==========================================================================
   PÁGINAS DE CABAZ (pequeno, médio, grande, Premium), no formato Orvana:
   foto à esquerda; à direita nome, preço, descrição, composição com visto e botão;
   por baixo, as outras sugestões em cartões (os mesmos da página de cabazes).
   ========================================================================== */
section.cabaz-page {
    display: flex;
    flex-direction: column;
    gap: 64px;
    width: min(var(--container), calc(100% - 28px));
    max-width: none;
    margin: 0 auto;
}

.cabaz-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.cabaz-detail__media {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    box-shadow: var(--shadow-card);
}

.cabaz-detail__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cabaz-detail__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.cabaz-detail__info .cabaz-name-title {
    margin: 0;
    font-size: clamp(2rem, 4.6vw, 3rem);
    line-height: 1.1;
    text-align: left;
}

.cabaz-detail__info .cabaz-detail__price {
    margin: 0;
    padding: 8px 22px;
    font-size: 1.05rem;
}

.cabaz-detail__text {
    max-width: 56ch;
    margin: 0;
    color: var(--text-2);
    font-size: 1.05rem;
    line-height: 1.7;
}

.cabaz-detail__subtitle {
    margin: 10px 0 0;
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--primary);
}

.cabaz-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px 24px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cabaz-checklist[hidden] {
    display: none;
}

.cabaz-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.cabaz-checklist li::before {
    content: "\f00c"; /* fa-check */
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--mint);
    font-family: "Font Awesome 6 Free";
    font-size: 0.6rem;
    font-weight: 900;
}

.cabaz-detail__note {
    max-width: 56ch;
    margin: 0;
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.6;
}

.cabaz-detail__info .cabaz-detail__button {
    margin: 6px 0 0;
}

.cabaz-detail__info .cabaz-detail__button:active {
    transform: translateY(0);
}

.cabaz-detail__info .cabaz-detail__button:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 3px;
}

.cabaz-detail__info .cabaz-detail__button.is-added {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--primary);
}

.cabaz-others .section-head {
    width: auto;
    margin: 0 auto 28px;
}

.cabaz-others .cabaz-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (min-width: 860px) {
    section.cabaz-page {
        gap: 88px;
    }

    .cabaz-detail {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 56px;
        align-items: start;
    }

    .cabaz-detail__media {
        position: sticky;
        top: 110px;
        aspect-ratio: 4 / 5;
    }

    .cabaz-others .cabaz-menu {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 420px) {
    .cabaz-others .cabaz-menu {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* sugestões: o cartão "Cria o teu cabaz" ocupa uma só célula (o cabaz.css fazia-o ocupar duas) */
.cabaz-others .cabaz-menu {
    margin: 0;
    align-items: stretch;
    justify-content: stretch;
}

.cabaz-others .cabaz-menu .cabaz-4 {
    grid-column: auto;
}

@media (max-width: 420px) {
    .cabaz-others .cabazContent {
        min-height: 195px;
    }
}

/* páginas de cabaz: não têm banner, por isso o conteúdo respeita o espaçamento padrão
   por baixo do cabeçalho (100px desktop, 70px tablet, 50px telemóvel) */
body section.cabaz-page.sec--first.sec--first {
    /* telemóvel: 10px + os 30px que já sobram do cabeçalho = 40px entre cabeçalho e foto */
    padding-top: 10px;
    padding-bottom: 50px;
}

@media (min-width: 768px) {
    body section.cabaz-page.sec--first.sec--first {
        padding-top: 70px;
        padding-bottom: 70px;
    }
}

@media (min-width: 1100px) {
    body section.cabaz-page.sec--first.sec--first {
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

/* legenda sobre a foto do cabaz: a imagem é ilustrativa e pode não ser o cabaz da semana */
@media (max-width: 859px) {
    .cabaz-detail__media {
        position: relative;
    }
}

.cabaz-detail__caption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 14px;
    border-radius: 14px;
    background: rgba(16, 32, 24, 0.78);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
}

/* preço + botão lado a lado (o botão repete-se no fim da composição) */
.cabaz-detail__buy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.cabaz-detail__buy .cabaz-detail__button,
.cabaz-detail__info .cabaz-detail__buy .cabaz-detail__button {
    margin: 0;
}

/* telemóvel: o pop-up do produto (imagem ou olho) fica entre o cabeçalho e o menu inferior,
   com 20px de margem em cima e em baixo, e desliza por dentro quando o conteúdo é maior.
   (a regra geral "100dvh - 28px" fazia a caixa ocupar o ecrã todo e passar por trás dos menus) */
@media (max-width: 768px) {
    .quickview__box {
        max-height: calc(100vh - var(--mobile-header, 92px) - var(--mobile-menu, 84px) - 40px);
        max-height: calc(100dvh - var(--mobile-header, 92px) - var(--mobile-menu, 84px) - 40px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* botão dos cartões: sem o ícone do cesto quando o texto não cabe numa linha (ver cardUi.js) */
.pc__btn.is-icon-hidden .fa-basket-shopping {
    display: none;
}

/* vista rápida entre 769px e 1099px: duas colunas (foto | texto). A foto preenche a coluna toda;
   a regra de tablet de 16:9 só serve para a coluna única (telemóvel) e deixava espaço em branco por baixo */
@media (min-width: 769px) and (max-width: 1099px) {
    .quickview__box {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    }

    .quickview__media {
        aspect-ratio: auto;
        min-height: 320px;
    }

    .quickview__media img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* botão "Vamos conversar" (e restantes .btn-info): texto numa só linha.
   O form.css limitava-o a 30% da largura e o texto partia em duas linhas */
.btn-info {
    max-width: none;
    white-space: nowrap;
}

/* =============================================================================
   POP-UPS EM TELEMÓVEL: cantos redondos iguais nos quatro cantos e sem desperdício de espaço
   ============================================================================= */

/* o painel corta o que tem lá dentro: o rodapé branco do cesto tinha o fundo quadrado
   e saía pelos cantos de baixo (cesto e favoritos usam o mesmo painel) */
body .mini-cart__panel {
    overflow: hidden;
}

@media (max-width: 768px) {
    /* o espaço por baixo dos botões é igual ao das laterais (o link "Continuar a comprar"
       já traz 44px de área de toque, por isso o padding é pequeno) */
    body .mini-cart__foot {
        padding: 14px 22px 14px;
    }

    body .mini-cart__foot .mini-cart__link {
        margin-bottom: 0;
    }
}

/* títulos das páginas de confirmação: mantêm o aspeto de texto simples */
.thankYouMessage .thank-title {
    font: inherit;
    color: inherit;
    margin: 0;
    line-height: inherit;
}

/* revisão final: texto de apoio com pelo menos 13px e áreas de toque do rodapé de 44px (sem mexer no layout) */
.eyebrow,
.testimonials .testimonial-date,
.site-notice__status {
    font-size: 0.8125rem;
}

@media (max-width: 1024px) {
    .site-footer a {
        position: relative;
    }

    .site-footer a::after {
        content: "";
        position: absolute;
        inset: -8px -4px;
    }
}

/* páginas de confirmação: ícones das redes visíveis sobre o círculo escuro (a variável --orange estava vazia) */
.follow-us-message i {
    color: var(--mint);
}

/* ─── cabazes em pausa (época baixa): ver /scriptDocs/siteConfig.js ─────────────────────────── */
.cabaz-menu .photo-div-cabaz {
    position: relative;
}

.cabaz-menu .photo-div-cabaz > a.is-paused {
    pointer-events: none;
    cursor: not-allowed;
}

.cabaz-menu .photo-div-cabaz > a.is-paused > * {
    opacity: 0.45;
    filter: grayscale(0.6);
}

.cabaz-paused-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--primary, #1F3B2C);
    border: 1px solid rgba(31, 59, 44, 0.2);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
}

.cabazes-pause-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 640px;
    margin: 16px auto 0;
    padding: 12px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(31, 59, 44, 0.15);
    color: var(--primary, #1F3B2C);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
}

.cabazes-pause-note i {
    margin-top: 3px;
}

.cabaz-detail .cabazes-pause-note {
    margin: 0 0 16px;
}

.cabaz-detail__button.is-paused,
.cabaz-detail__button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

html.cabazes-paused .image-with-weekly-baskets {
    display: none;
}

/* Botão dentro de texto legal/404: mantém texto branco e sem sublinhado */
.legal-content a.btn {
    color: #fff;
    text-decoration: none;
}

/* Aviso: cabazes retirados do cesto durante a pausa (cabazesPause.js) */
.cabazes-removed {
    position: fixed;
    z-index: 900;
    top: 92px;
    left: 14px;
    right: 14px;
    max-width: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 12px;
    padding: 16px 14px 16px 18px;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(20, 42, 31, 0.22);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

.cabazes-removed > i {
    margin-top: 4px;
    color: var(--earth);
}

.cabazes-removed strong {
    display: block;
    font-size: 0.95rem;
}

.cabazes-removed p {
    margin: 4px 0 0;
    color: var(--text);
}

.cabazes-removed a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.cabazes-removed button {
    width: 44px;
    height: 44px;
    margin: -10px -8px 0 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
}

.cabazes-removed button:hover {
    background: var(--mint-soft);
}

/* Pausa geral das encomendas (ordersPause.js): aviso no topo e botões desativados */
.orders-pause-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 14px;
    width: min(var(--container), calc(100% - 28px));
    margin: 0 auto 20px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--mint-soft);
    border: 1px solid var(--mint);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: left;
}

.orders-pause-banner > i {
    margin-top: 5px;
    color: var(--earth);
}

.orders-pause-banner strong {
    display: block;
    font-size: 1.05rem;
}

.orders-pause-banner p {
    margin: 4px 0 0;
    color: var(--text);
    font-size: inherit;
}

.orders-pause-banner__links {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
}

.orders-pause-banner__links a {
    display: inline-block;
    padding: 6px 0;
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* dentro da fotografia da página inicial */
.hero-content .orders-pause-banner {
    width: 100%;
    max-width: 720px;
    margin: 0 0 24px;
    text-shadow: none;
}

.pc__btn.pc__btn--paused {
    opacity: 0.55;
    cursor: not-allowed;
}

html.orders-paused .cabaz-detail__note {
    display: none;
}

/* a faixa já faz o espaçamento de cima das páginas sem fotografia de título */
body main > .orders-pause-banner ~ .sec--first.sec--first {
    padding-top: 0;
}

@media (max-width: 600px) {
    .orders-pause-banner {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px 16px 10px;
        margin-bottom: 14px;
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .orders-pause-banner > i {
        display: none;
    }

    .orders-pause-banner strong {
        font-size: 0.94rem;
    }

    .hero-content .orders-pause-banner {
        margin-bottom: 18px;
    }
}

/* na pausa o aviso aumenta a fotografia: o selo do mercado sobe para não ficar tapado pelo botão do WhatsApp */
@media (min-width: 1000px) {
    html.orders-paused .hero-badge {
        top: 150px;
        bottom: auto;
    }
}

.orders-pause-banner__links a {
    padding: 11px 0 9px;
}

/* cartão do sabão: espaço entre a escolha do sabão e a quantidade (telemóvel, tablet, computador) */
.sabaoNatural .boxItem select + select {
    margin-top: 12px;
}

@media (min-width: 768px) {
    .sabaoNatural .boxItem select + select {
        margin-top: 15px;
    }
}

@media (min-width: 1025px) {
    .sabaoNatural .boxItem select + select {
        margin-top: 20px;
    }
}

/* telemóvel: há só um cartão de sabão, ocupa a largura da página para os textos não partirem */
@media (max-width: 767px) {
    .sabaoNatural .boxItem {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 420px;
        justify-self: center;
    }
}
