/* =========================================================
   RESET BASE + VARIABILI
========================================================= */

* {
    box-sizing: border-box;
}

:root {
    --tm-green: #7FBA00;
    --tm-green-dark: #5E8D00;
    --tm-green-deep: #3F6500;

    --tm-accent: #1F2937;
    --tm-accent-dark: #111827;

    --tm-text: #111827;
    --tm-text-soft: #667085;
    --tm-border: #F5F7FA;
    --tm-light: #F5F7FA;
    --tm-white: #FFFFFF;

    --tm-sale: #FF4D6D;
    --tm-sale-dark: #C9184A;
    --tm-warning: #F7B500;

    --tm-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
    --tm-shadow-hover: 0 18px 36px rgba(17, 24, 39, 0.11);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Archivo', sans-serif;
    color: var(--tm-text);
    background: var(--tm-white);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--tm-white);
    border-bottom: 1px solid var(--tm-border);
}

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

/* Barra superiore */

.site-header__contact-bar {
    background: var(--tm-green-dark);
    color: var(--tm-white);
    font-size: 15px;
    font-weight: 700;
}

.site-header__contact-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header__contact-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-header__contact-left a,
.site-header__contact-right {
    color: rgba(255,255,255,0.92);
}

.site-header__contact-left a:hover {
    color: var(--tm-white);
}

/* Riga logo / ricerca / azioni */

.site-header__top {
    border-bottom: 1px solid var(--tm-border);
}

.site-header__top-inner {
    height: 92px;
    display: grid;
    grid-template-columns: 230px minmax(340px, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    color: var(--tm-green);
    font-weight: 800;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.site-logo--image img {
    width: 170px;
    max-height: 68px;
    object-fit: contain;
}

/* Ricerca */

.site-search {
    width: 100%;
    height: 56px;
    display: flex;
    background: var(--tm-light);
    border: 1px solid transparent;
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search:focus-within {
    border-color: var(--tm-green);
    box-shadow: 0 8px 24px rgba(127, 186, 0, 0.12);
}

.site-search input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0 22px;
    outline: none;
    color: var(--tm-text-soft);
    font-size: 14px;
    font-weight: 600;
}

.site-search input[type="search"]::placeholder {
    color: var(--tm-text-soft);
}

.site-search button {
    width: 62px;
    border: 0;
    background: transparent;
    color: var(--tm-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-search button img {
    width: 23px;
    height: 23px;
}

/* Azioni header */

.site-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.site-action,
.site-cart {
    display: inline-flex;
    align-items: center;
    color: var(--tm-text);
    font-weight: 700;
    font-size: 21px;
}

.site-action,
.site-cart__icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--tm-border);
    border-radius: 999px;
    background: var(--tm-white);
    position: relative;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-action:hover,
.site-cart:hover .site-cart__icon {
    background: var(--tm-accent);
    border-color: var(--tm-accent);
    color: var(--tm-white);
    transform: translateY(-1px);
}

.site-action:hover img,
.site-cart:hover .site-cart__icon img {
    filter: brightness(0) invert(1);
}

.site-action--account {
    background: var(--tm-green);
    border-color: var(--tm-green);
}

.site-action img,
.site-cart__icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.site-cart {
    gap: 10px;
    position: relative;
}

.site-cart__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--tm-text);
    line-height: 1.1;
}

.site-cart__text strong {
    font-size: 15px;
    font-weight: 900;
    color: var(--tm-accent);
}

.site-cart__text small {
    margin-top: 3px;
    color: var(--tm-text-soft);
    font-size: 11px;
    font-weight: 700;
}

.site-action__badge,
.site-cart__count {
    position: absolute;
    top: -7px;
    right: -3px;
    left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--tm-sale);
    color: var(--tm-white);
    font-size: 11px;
    font-weight: 900;
    line-height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   NAV ROW + MENU CATEGORIE LATERALE DA SINISTRA
   - apertura a click tramite classe .is-open
   - pannello off-canvas da sinistra
   - categorie e sottocategorie ad accordion
========================================================= */

.site-header__nav-row {
    height: 45px;
    border-bottom: 1px solid var(--tm-border);
    overflow: visible;
}

.site-header__nav-inner {
    position: relative;
    height: 45px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr) auto;
    align-items: stretch;
    overflow: visible;
}

/* Wrapper bottone categorie */

.categories-menu {
    position: static;
    height: 45px;
    z-index: 5000;
}

.categories-button {
    position: relative;
    z-index: 4989;
    width: 330px;
    height: 45px;
    border: 0;
    background: var(--tm-green-dark);
    color: var(--tm-white);
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.categories-button:hover {
    background: var(--tm-green);
}

.categories-button__burger,
.categories-button__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.categories-button__burger img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.categories-button__arrow {
    margin-left: auto;
}

.categories-button__arrow img {
    width: 14px;
    height: 14px;
    transform: rotate(0deg);
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease;
}

.categories-menu.is-open .categories-button__arrow img {
    transform: rotate(180deg);
}

/* Vecchia tendina verticale disattivata */

.categories-dropdown {
    display: none !important;
}

/* Overlay scuro dietro al menu laterale */

.categories-menu::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.48);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    z-index: 4990;
}

.categories-menu.is-open::before {
    opacity: 1;
    visibility: visible;
}

/* Pannello laterale */
.categories-drawer-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    width: 46px;
    height: 46px;
    border: 0;
    background: transparent;
    color: var(--tm-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    z-index: 2;
}

.categories-drawer-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.categories-megamenu {
    position: fixed;
    top: 0;
    left: 0;
    width: min(420px, calc(100vw - 34px));
    height: 100vh;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--tm-white);
    border: 0;
    border-right: 1px solid var(--tm-border);
    box-shadow: 18px 0 44px rgba(17, 24, 39, 0.20);
    opacity: 1;
    visibility: visible;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    z-index: 5001;
}

body.admin-bar .categories-megamenu {
    top: 32px;
    height: calc(100vh - 32px);
}

.categories-menu.is-open .categories-megamenu {
    transform: translateX(0);
}

/* Titolo interno del pannello */

.categories-megamenu::before {
    content: "Tutte le categorie";
    position: sticky;
    top: 0;
    min-height: 58px;
    padding: 0 64px 0 22px;
    display: flex;
    align-items: center;
    background: var(--tm-green-dark);
    color: var(--tm-white);
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    z-index: 1;
}

/* Lista categorie madri */

.categories-megamenu__inner {
    display: block;
    padding: 0;
    margin: 0;
    background: var(--tm-white);
}

/* Categoria madre */

.categories-megamenu__column {
    position: relative;
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid var(--tm-border);
}

/* Link categoria madre */

.categories-megamenu__parent {
    min-height: 52px;
    margin: 0;
    padding: 0 18px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--tm-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    text-align: left;
    text-transform: uppercase;
    white-space: normal;
}

.categories-megamenu__parent:hover,
.categories-megamenu__column.is-open > .categories-megamenu__parent {
    background: var(--tm-light);
    color: var(--tm-green-dark);
}

/* Freccia categorie madri con figli */

.categories-megamenu__column:has(> .categories-megamenu__children) > .categories-megamenu__parent::after {
    content: "▾";
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
    color: var(--tm-text-soft);
    transition: transform 0.2s ease;
}

.categories-megamenu__column.is-open > .categories-megamenu__parent::after {
    transform: rotate(180deg);
}

/* =========================================================
   ACCORDION FIGLI E SOTTOFIGLI
========================================================= */

.categories-megamenu__children,
.categories-megamenu__children--level-1,
.categories-megamenu__children--level-2,
.categories-megamenu__children--level-3,
.categories-megamenu__children--level-4,
.categories-megamenu__children--level-5 {
    position: static;
    display: none;
    min-width: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.categories-megamenu__column.is-open > .categories-megamenu__children,
.categories-megamenu__child.is-open > .categories-megamenu__children {
    display: block;
}

.categories-megamenu__children--level-1 {
    border-top: 1px solid var(--tm-border);
    background: var(--tm-light);
}

.categories-megamenu__children--level-2 {
    background: var(--tm-white);
}

.categories-megamenu__children--level-3,
.categories-megamenu__children--level-4,
.categories-megamenu__children--level-5 {
    background: #F9FAFB;
}

/* Voci figlie */

.categories-megamenu__child {
    position: relative;
    margin: 0;
}

.categories-megamenu__child > a {
    min-height: 42px;
    padding: 0 18px 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--tm-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    border-top: 1px solid rgba(229, 231, 235, 0.85);
}

.categories-megamenu__children--level-2 .categories-megamenu__child > a {
    padding-left: 50px;
    font-size: 13px;
    font-weight: 650;
}

.categories-megamenu__children--level-3 .categories-megamenu__child > a {
    padding-left: 66px;
    font-size: 13px;
    font-weight: 600;
}

.categories-megamenu__children--level-4 .categories-megamenu__child > a,
.categories-megamenu__children--level-5 .categories-megamenu__child > a {
    padding-left: 82px;
    font-size: 12px;
    font-weight: 600;
}

.categories-megamenu__child > a:hover,
.categories-megamenu__child.is-open > a {
    background: rgba(127, 186, 0, 0.08);
    color: var(--tm-green-dark);
}

/* Freccia per i figli che hanno altri figli */

.categories-megamenu__child:has(> .categories-megamenu__children) > a::after {
    content: "▾";
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 1;
    color: var(--tm-text-soft);
    transition: transform 0.2s ease;
}

.categories-megamenu__child.is-open > a::after {
    transform: rotate(180deg);
}

/* Menu principale */

.site-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
}

.main-menu {
    display: flex;
    align-items: stretch;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 45px;
}

.main-menu > li {
    display: flex;
    align-items: stretch;
}

.main-menu a {
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 800;
    color: var(--tm-text);
    text-transform: uppercase;
    border-bottom: 4px solid transparent;
    white-space: nowrap;
}

.main-menu .current-menu-item > a,
.main-menu a:hover {
    color: var(--tm-green-dark);
    border-bottom-color: var(--tm-green-dark);
}

.buy-now-button {
    height: 45px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-light);
    color: var(--tm-text);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

.buy-now-button:hover {
    background: var(--tm-green);
    color: var(--tm-white);
}

/* Mobile */

@media (max-width: 900px) {
    .site-header {
        position: relative;
    }

    body.admin-bar .site-header {
        top: 0;
    }

    body.admin-bar .categories-megamenu {
        top: 0;
        height: 100vh;
    }

    .site-header__nav-row {
        height: auto;
        overflow: visible;
    }

    .site-header__nav-inner {
        height: auto;
        display: grid;
        grid-template-columns: 1fr;
    }

    .categories-menu {
        position: relative;
        width: 100%;
        height: auto;
    }

    .categories-button {
        width: 100%;
        justify-content: flex-start;
    }

    .categories-megamenu {
        width: min(390px, calc(100vw - 30px));
    }

    .site-nav {
        justify-content: flex-start;
        overflow-x: auto;
        border-top: 1px solid var(--tm-border);
    }

    .main-menu {
        width: max-content;
        min-width: 100%;
    }

    .main-menu a {
        padding: 0 14px;
        font-size: 13px;
    }

    .buy-now-button {
        display: none;
    }
}

@media (max-width: 480px) {
    .categories-megamenu {
        width: min(350px, calc(100vw - 26px));
    }

    .categories-megamenu__parent {
        font-size: 13px;
    }

    .categories-megamenu__child > a {
        font-size: 13px;
    }
}


/* =========================================================
   MAIN GENERALE
========================================================= */

.site-main {
    padding: 56px 0;
}

.site-main--home {
    padding: 0;
}

.entry-title,
.page-title {
    margin: 0 0 24px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}


/* =========================================================
   HOME HERO
========================================================= */

.home-hero {
    position: relative;
    min-height: 570px;
    display: flex;
    align-items: center;
    background-image: url("../images/torrazza-market-banner.png");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    overflow: hidden;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.98) 0%,
        rgba(255,255,255,0.96) 39%,
        rgba(255,255,255,0.76) 57%,
        rgba(255,255,255,0.05) 79%,
        rgba(255,255,255,0) 100%
    );
    pointer-events: none;
}

.home-hero__container {
    position: relative;
    z-index: 2;
}

.home-hero__content {
    width: min(680px, 58%);
    padding: 72px 0 120px;
}


/* Badge CAP */

.home-hero__badge {
    width: max-content;
    min-height: 48px;
    margin-bottom: 28px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background: var(--tm-green-dark);
    color: var(--tm-white);
    box-shadow: 0 10px 22px rgba(94, 141, 0, 0.18);
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
}

.home-hero__badge svg {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    fill: currentColor;
}


/* Titolo */

.home-hero__content h1 {
    max-width: 670px;
    margin: 0 0 24px;
    color: var(--tm-text);
    font-size: clamp(48px, 5.6vw, 80px);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.06em;
}


/* Descrizione CAP */

.home-hero__description {
    max-width: 600px;
    margin: 0;
    color: var(--tm-text-soft);
    font-size: 18px;
    line-height: 1.55;
}

.home-hero__description strong {
    color: var(--tm-green-dark);
    font-weight: 900;
}


/* Ritiro in negozio */

.home-hero__pickup {
    position: relative;
    max-width: 590px;
    margin-top: 28px;
    padding-top: 27px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--tm-text-soft);
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}

.home-hero__pickup::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 112px;
    height: 2px;
    background: var(--tm-green-dark);
}

.home-hero__pickup strong {
    color: var(--tm-green-dark);
    font-weight: 900;
}

.home-hero__pickup-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(127, 186, 0, 0.12);
    color: var(--tm-green-dark);
}

.home-hero__pickup-icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}


/* Pulsante */

.home-hero__button {
    min-width: 160px;
    height: 48px;
    margin-top: 32px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-green-dark);
    color: var(--tm-white);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.home-hero__button:hover {
    background: var(--tm-green);
    color: var(--tm-white);
    transform: translateY(-1px);
}


/* =========================================================
   HOME SERVICES
========================================================= */

.home-services {
    position: relative;
    z-index: 10;
    margin-top: -54px;
}

.home-services__box {
    min-height: 108px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--tm-white);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.home-service-card {
    min-height: 108px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    border-right: 1px solid var(--tm-border);
}

.home-service-card:last-child {
    border-right: 0;
}

.home-service-card__icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-light);
    color: var(--tm-green);
    font-size: 24px;
}

.home-service-card__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.home-service-card h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 900;
    color: var(--tm-text);
}

.home-service-card p {
    margin: 0;
    color: var(--tm-text-soft);
    font-size: 14px;
}


/* =========================================================
   SEZIONE CATEGORIE HOME
========================================================= */

.home-shop-categories {
    padding: 36px 0 22px;
    background: var(--tm-white);
}

.home-shop-categories__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.home-shop-categories__heading h2 {
    margin: 0;
    color: var(--tm-text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.home-shop-categories__heading a {
    color: var(--tm-text);
    font-size: 14px;
    font-weight: 700;
}

.home-shop-categories__heading a:hover {
    color: var(--tm-sale);
}

.home-shop-categories__scroll {
    display: flex;
    gap: 34px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.home-shop-categories__scroll::-webkit-scrollbar {
    height: 6px;
}

.home-shop-categories__scroll::-webkit-scrollbar-track {
    background: var(--tm-light);
    border-radius: 999px;
}

.home-shop-categories__scroll::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 999px;
}

.home-shop-category {
    flex: 0 0 138px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    scroll-snap-align: start;
}

.home-shop-category__image {
    width: 142px;
    height: 142px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--tm-light);
    overflow: hidden;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.home-shop-category__image img {
    max-width: 92px;
    max-height: 92px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.home-shop-category__name {
    color: var(--tm-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.home-shop-category:hover .home-shop-category__image {
    transform: translateY(-3px);
    background: var(--tm-light);
}

.home-shop-category:hover .home-shop-category__name {
    color: var(--tm-sale);
}


/* =========================================================
   CARD PRODOTTO CONDIVISE: HOME + ARCHIVE
========================================================= */

.home-deal-card,
.shop-product-card.home-deal-card {
    position: relative;
    background: var(--tm-white);
    border-radius: 14px;
    padding: 20px 18px 16px;
    min-height: 405px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--tm-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-deal-card:hover,
.shop-product-card.home-deal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tm-shadow-hover);
}

.home-deal-card__badge {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    padding: 5px 9px;
    background: var(--tm-sale);
    color: var(--tm-white);
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.home-deal-card__badge--new {
    background: var(--tm-sale);
}

.home-deal-card__image {
    height: 215px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 22px 18px;
    margin-bottom: 8px;
}

.home-deal-card__image img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.home-deal-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-deal-card__title {
    min-height: 48px;
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
}

.home-deal-card__title a {
    color: var(--tm-text);
}

.home-deal-card__title a:hover {
    color: var(--tm-sale);
}

.home-deal-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--tm-text-soft);
    font-size: 12px;
    margin-bottom: 12px;
}

.home-deal-card__star {
    color: var(--tm-warning);
    font-size: 16px;
    line-height: 1;
}

.home-deal-card__bottom {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
}

.home-deal-card__price {
    margin-bottom: 0;
    color: var(--tm-accent);
    font-size: 23px;
    font-weight: 900;
    line-height: 1.15;
}

.home-deal-card__price ins {
    text-decoration: none;
}

.home-deal-card__price del {
    margin-left: 5px;
    color: #98A2B3;
    font-size: 14px;
    font-weight: 500;
}

.home-deal-card__price .woocommerce-Price-amount {
    font-weight: 900;
}

.home-deal-card__add {
    position: static !important;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px;
    background: var(--tm-sale) !important;
    color: var(--tm-white) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    line-height: 1;
    font-size: 0 !important;
    text-indent: 0 !important;
    overflow: hidden;
    border: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-deal-card__add:hover,
.home-deal-card__add.added,
.home-deal-card__add.loading {
    background: var(--tm-sale-dark) !important;
    color: var(--tm-white) !important;
}

.home-deal-card__add:hover {
    transform: translateY(-1px);
}

.home-deal-card__add img {
    width: 25px;
    height: 25px;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.home-deal-card__add::after,
.home-deal-card__add.loading::after,
.home-deal-card__add.added::after {
    display: none !important;
    content: none !important;
}

.home-deal-card .added_to_cart.wc-forward {
    display: none !important;
}

.home-deal-card__button {
    min-height: 40px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--tm-accent);
    color: var(--tm-white);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.home-deal-card__button:hover {
    background: var(--tm-accent-dark);
}

/* Se in qualche template è rimasto lo stock, lo nascondiamo */
.home-deal-card__stock,
.home-deal-card__stock-text,
.home-deal-card__progress {
    display: none !important;
}


/* =========================================================
   HOME NUOVI PRODOTTI
========================================================= */

.home-new-products {
    margin: 50px 0;
}

.home-new-products__box {
    padding: 0;
    background: var(--tm-light);
    border-radius: 18px;
    overflow: hidden;
}

.home-new-products__banner {
    position: relative;
    min-height: 260px;
    padding: 38px 42px;
    display: flex;
    align-items: center;
    background-color: var(--tm-light);
    background-image: url("../images/home-new-products-banner.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-new-products__banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.96) 0%,
        rgba(255,255,255,0.86) 42%,
        rgba(255,255,255,0.18) 78%
    );
}

.home-new-products__banner-content {
    position: relative;
    z-index: 1;
    max-width: 430px;
}

.home-new-products__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--tm-accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.home-new-products__banner h2 {
    margin: 0 0 14px;
    color: var(--tm-accent);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
}

.home-new-products__banner p {
    margin: 0 0 24px;
    color: var(--tm-text-soft);
    font-size: 15px;
    line-height: 1.7;
}

.home-new-products__banner-button {
    min-height: 46px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-accent);
    color: var(--tm-white);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.home-new-products__banner-button:hover {
    background: var(--tm-accent-dark);
    color: var(--tm-white);
}

.home-new-products__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    padding: 18px;
}


/* =========================================================
   HOME PRODOTTI IN EVIDENZA
========================================================= */

.home-deals {
    margin: 50px 0;
}

.home-deals__inner {
    background: var(--tm-sale);
    border-radius: 14px;
    padding: 34px 30px 30px;
}

.home-deals__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    color: var(--tm-white);
}

.home-deals__heading h2 {
    margin: 0;
    color: var(--tm-white);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.home-deals__countdown {
    display: flex;
    gap: 8px;
}

.home-deals__countdown span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-sale-dark);
    color: var(--tm-white);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
}

.home-deals__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}


/* =========================================================
   SHOP ARCHIVE / CATEGORIE WOO
========================================================= */

.shop-archive-page {
    background: var(--tm-light);
}

.shop-archive-hero {
    padding: 48px 0 34px;
    background: var(--tm-white);
    border-bottom: 1px solid var(--tm-border);
}

.shop-archive-hero__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--tm-green-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.shop-archive-hero h1 {
    margin: 0;
    color: var(--tm-text);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.shop-archive-hero__description {
    max-width: 760px;
    margin-top: 14px;
    color: var(--tm-text-soft);
    font-size: 15px;
    line-height: 1.7;
}

.shop-archive-hero__description p {
    margin: 0;
}

.shop-archive-content {
    padding: 42px 0 76px;
}

.shop-toolbar {
    margin-bottom: 30px;
    padding: 16px 18px;
    background: var(--tm-white);
    border: 1px solid var(--tm-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.shop-toolbar__left,
.shop-toolbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-toolbar__result-count,
.woocommerce-result-count {
    margin: 0;
    color: var(--tm-text-soft);
    font-size: 13px;
    font-weight: 700;
}

.shop-toolbar__ordering,
.woocommerce-ordering {
    margin: 0;
}

.shop-toolbar__ordering form {
    margin: 0;
}

.shop-toolbar__ordering select,
.woocommerce-ordering select {
    min-width: 230px;
    height: 42px;
    padding: 0 38px 0 14px;
    background: var(--tm-white);
    border: 1px solid var(--tm-border);
    border-radius: 999px;
    color: var(--tm-text-soft);
    font-size: 13px;
    font-weight: 700;
    outline: none;
}

/* Griglia prodotti Woo */

.woocommerce .products,
.products {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce .products::before,
.woocommerce .products::after {
    display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.shop-product-card {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    list-style: none;
    padding:15px;
}

/* Vecchie classi shop eventualmente ancora presenti */

.shop-product-card {
    background: var(--tm-white);
    min-height: 398px;
    box-shadow: var(--tm-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tm-shadow-hover);
}

.shop-product-card__image-wrap {
    position: relative;
    height: 205px;
    overflow: hidden;
    background: var(--tm-light);
}

.shop-product-card__image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.shop-product-card:hover .shop-product-card__image img {
    transform: scale(1.04);
}

.shop-product-card__content {
    padding: 24px 24px 28px;
    text-align: center;
}

.shop-product-card__title {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--tm-text);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
}

.shop-product-card__title a:hover {
    color: var(--tm-green);
}

.shop-product-card__price {
    margin-bottom: 22px;
    color: var(--tm-green);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
}

.shop-product-card__button {
    min-width: 196px;
    min-height: 46px;
    padding: 13px 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tm-green);
    background: var(--tm-white);
    color: var(--tm-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.shop-product-card__button:hover,
.shop-product-card__button.added {
    background: var(--tm-green);
    color: var(--tm-white);
}

/* Paginazione */

.shop-pagination {
    margin-top: 46px;
    display: flex;
    justify-content: center;
}

.shop-pagination .page-numbers {
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.shop-pagination .page-numbers li {
    list-style: none;
}

.shop-pagination .page-numbers a,
.shop-pagination .page-numbers span {
    min-width: 40px;
    height: 40px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-white);
    color: var(--tm-text);
    border: 1px solid var(--tm-border);
    border-radius: 999px;
    font-weight: 800;
}

.shop-pagination .page-numbers .current,
.shop-pagination .page-numbers a:hover {
    background: var(--tm-green);
    color: var(--tm-white);
    border-color: var(--tm-green);
}

.shop-no-products {
    background: var(--tm-white);
    padding: 30px;
    border: 1px solid var(--tm-border);
    border-radius: 14px;
    box-shadow: var(--tm-shadow);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    margin-top: 80px;
    background: transparent;
    color: var(--tm-text);
}

.site-main--home + .site-footer {
    margin-top: 80px;
}


/* Newsletter */
/* =========================================================
   FOOTER NEWSLETTER - SFONDO VERDE
========================================================= */

.footer-newsletter {
    position: relative;
    background: var(--tm-green);
    color: var(--tm-white);
    overflow: hidden;
}

.footer-newsletter__inner {
    min-height: 260px;
    display: grid;
    grid-template-columns: minmax(320px, 560px) 1fr;
    align-items: center;
    position: relative;
}

.footer-newsletter__content {
    position: relative;
    z-index: 2;
    padding: 54px 0;
}

.footer-newsletter__content h2 {
    margin: 0 0 10px;
    max-width: 540px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
    font-weight: 900;
    color: var(--tm-white);
}

.footer-newsletter__content p {
    margin: 0 0 28px;
    max-width: 460px;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 600;
}

/* =========================================================
   NEWSLETTER BREVO / SIB
========================================================= */

.footer-newsletter {
    position: relative;
    background: var(--tm-green);
    color: var(--tm-white);
    overflow: hidden;
}

.footer-newsletter__inner {
    min-height: 260px;
    display: grid;
    grid-template-columns: minmax(320px, 560px) 1fr;
    align-items: center;
    position: relative;
}

.footer-newsletter__content {
    position: relative;
    z-index: 2;
    padding: 54px 0;
}

.footer-newsletter__content h2 {
    margin: 0 0 10px;
    max-width: 540px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
    font-weight: 900;
    color: var(--tm-white);
}

.footer-newsletter__content p {
    margin: 0 0 28px;
    max-width: 460px;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 600;
}

.footer-newsletter__form-wrap {
    width: min(560px, 100%);
}

#sib_signup_form_1 {
    width: 100%;
    margin: 0;
}

#sib_signup_form_1 .sib_loader {
    margin-bottom: 10px;
}

#sib_signup_form_1 .sib_loader img {
    width: 22px;
    height: 22px;
}

/* Contenitore form */
#sib_signup_form_1 .sib_signup_box_inside_1 {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.95);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

/* Messaggi errore/successo */
#sib_signup_form_1 .sib_msg_disp {
    flex: 0 0 100%;
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

/* Campo email */
#sib_signup_form_1 .sib-email-area {
    flex: 1 1 320px;
    min-width: 0;
    height: 52px;
    border: 0;
    border-radius: 6px;
    background: #ffffff;
    padding: 0 18px;
    outline: none;
    color: var(--tm-text);
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
}

#sib_signup_form_1 .sib-email-area::placeholder {
    color: #667085;
}

#sib_signup_form_1 .sib-email-area:focus {
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.14);
}

/* Bottone */
#sib_signup_form_1 .sib-default-btn {
    flex: 0 0 140px;
    width: 140px;
    height: 52px;
    border: 0;
    border-radius: 6px;
    background: var(--tm-accent);
    color: #ffffff;
    padding: 0 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#sib_signup_form_1 .sib-default-btn:hover {
    background: var(--tm-accent-dark);
    transform: translateY(-1px);
}

/* Checkbox privacy: forza nuova riga */
#sib_signup_form_1 input[type="checkbox"][name="terms"] {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 4px 0 0 0;
    padding: 0;
    accent-color: var(--tm-accent);
}

/* Link privacy */
#sib_signup_form_1 .sib_signup_box_inside_1 a {
    color: #ffffff;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#sib_signup_form_1 .sib_signup_box_inside_1 a:hover {
    color: var(--tm-accent);
}

#sib_signup_form_1 input[type="hidden"] {
    display: none !important;
}

@media (max-width: 767px) {
    .footer-newsletter__inner {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .footer-newsletter__content {
        padding: 42px 0;
    }

    .footer-newsletter__form-wrap {
        width: 100%;
    }

    #sib_signup_form_1 .sib_signup_box_inside_1 {
        gap: 9px;
    }

    #sib_signup_form_1 .sib-email-area,
    #sib_signup_form_1 .sib-default-btn {
        flex: 0 0 100%;
        width: 100%;
        height: 48px;
    }

    #sib_signup_form_1 input[type="checkbox"][name="terms"] {
        flex: 0 0 16px;
        margin-top: 4px;
    }
}

#sib_signup_form_1 .sib_signup_box_inside_1 {
    width: 100%;
}

#sib_signup_form_1 .sib-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

#sib_signup_form_1 .sib-email-area {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    border: 0;
    border-radius: 6px;
    background: #ffffff;
    padding: 0 18px;
    outline: none;
    color: var(--tm-text);
    font-size: 14px;
    font-weight: 600;
}

#sib_signup_form_1 .sib-default-btn {
    flex: 0 0 140px;
    width: 140px;
    height: 52px;
    border: 0;
    border-radius: 6px;
    background: var(--tm-accent);
    color: #ffffff;
    padding: 0 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

#sib_signup_form_1 .sib-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    color: rgba(255,255,255,0.95);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

#sib_signup_form_1 .sib-terms-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--tm-accent);
}

#sib_signup_form_1 .sib-terms-row a {
    color: #ffffff;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 767px) {
    #sib_signup_form_1 .sib-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    #sib_signup_form_1 .sib-email-area,
    #sib_signup_form_1 .sib-default-btn {
        width: 100%;
        flex: 0 0 auto;
        height: 48px;
    }
}

/* Footer principale */

.footer-main {
    position: relative;
    background-image: url("../images/footer-background-image.png");
    background-size: cover;
    background-position: center right;
    color: var(--tm-text);
}

.footer-main__overlay {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(255, 255, 255, 0.76) 42%,
        rgba(255, 255, 255, 0.20) 72%,
        rgba(255, 255, 255, 0.00) 100%
    );
    min-height: 360px;
}

.footer-main__inner {
    padding: 72px 0 58px;
    display: grid;
    grid-template-columns: 1.35fr repeat(4, 1fr);
    gap: 46px;
}

.footer-column h3 {
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 900;
    color: var(--tm-text);
    text-transform: uppercase;
}

.footer-column p {
    margin: 0 0 24px;
    max-width: 290px;
    color: var(--tm-text-soft);
    font-size: 14px;
    line-height: 1.65;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--tm-text);
    font-size: 15px;
    font-weight: 800;
}

.footer-column a:hover {
    color: var(--tm-green-dark);
    text-decoration: underline;
}


/* Logo */

.footer-logo {
    display: inline-flex;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 170px;
    max-height: 68px;
    object-fit: contain;
    background: rgba(255,255,255,0.92);
    border-radius: 6px;
    padding: 6px 10px;
}


/* Contatti */

.footer-contact-info {
    margin: 0 0 24px;
    max-width: 320px;
}

.footer-contact-info__item {
    max-width: none;
    margin: 0 0 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--tm-text);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 800;
}

.footer-contact-info__item a {
    color: var(--tm-text);
    font-size: 14px;
    font-weight: 800;
}

.footer-contact-info__item a:hover {
    color: var(--tm-green-dark);
    text-decoration: underline;
}

.footer-contact-info__icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    flex: 0 0 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-green-dark);
    color: #ffffff;
    margin-top: -3px;
}

.footer-contact-info__icon svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}

.footer-contact-info__icon svg path {
    fill: currentColor;
}

.footer-contact-info__description {
    margin: 16px 0 24px;
    max-width: 290px;
    color: var(--tm-text-soft);
    font-size: 14px;
    line-height: 1.65;
    font-weight: 600;
}


/* Social */

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-green-dark);
    color: #ffffff;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
    background: var(--tm-green);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.footer-social svg path {
    fill: currentColor;
}


/* Bottone eventuale */

.footer-buy-button {
    min-height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-accent);
    color: var(--tm-white) !important;
}

.footer-buy-button:hover {
    background: var(--tm-green);
    color: var(--tm-white) !important;
}


/* Footer bottom */

.footer-bottom {
    border-top: 1px solid rgba(17, 24, 39, 0.16);
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.45);
}

.footer-bottom p {
    margin: 0;
    color: var(--tm-text-soft);
    font-size: 14px;
    font-weight: 600;
}


/* Footer responsive */

@media (max-width: 1100px) {
    .footer-newsletter__inner {
        grid-template-columns: 1fr;
    }

    .footer-newsletter__image {
        opacity: 0.55;
        right: -160px;
        width: 720px;
    }

    .footer-main__inner {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-column--brand {
        grid-column: span 3;
    }
}

@media (max-width: 767px) {
    .footer-newsletter__inner {
        min-height: auto;
    }

    .footer-newsletter__content {
        padding: 42px 0 190px;
    }

    .footer-newsletter__image {
        right: -100px;
        bottom: -10px;
        width: 520px;
        opacity: 0.8;
    }

    .footer-newsletter__form {
        height: auto;
        flex-direction: column;
        background: transparent;
        gap: 10px;
    }

    .footer-newsletter__form input {
        height: 48px;
        border-radius: 4px;
        background: var(--tm-white);
    }

    .footer-newsletter__form button {
        width: 100%;
        height: 48px;
        border-radius: 4px;
    }

    .footer-main__inner {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 50px 0 42px;
    }

    .footer-column--brand {
        grid-column: auto;
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199px) {
    .home-deals__grid,
    .home-new-products__grid,
    .woocommerce .products,
    .products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .site-header__top-inner {
        grid-template-columns: 240px minmax(260px, 1fr) auto;
        gap: 22px;
    }

    .site-logo--image img {
        width: 140px;
        max-height: 58px;
    }

    .main-menu a {
        padding: 0 12px;
        font-size: 13px;
    }

    .home-services__box {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-service-card:nth-child(2) {
        border-right: 0;
    }

    .home-service-card:nth-child(1),
    .home-service-card:nth-child(2) {
        border-bottom: 1px solid var(--tm-border);
    }

}

@media (max-width: 900px) {
    .site-header {
        position: relative;
    }

    body.admin-bar .site-header {
        top: 0;
    }

    .site-header__contact-inner {
        min-height: auto;
        padding: 9px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .site-header__contact-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .site-header__top-inner {
        grid-template-columns: 1fr;
        height: auto;
        padding: 16px 0;
        gap: 16px;
    }

    .site-search {
        height: 50px;
        order: 2;
    }

    .site-actions {
        justify-content: flex-start;
    }

    .site-cart__text {
        display: none;
    }

    .site-header__nav-row {
        height: auto;
    }

    .site-header__nav-inner {
        height: auto;
        display: grid;
        grid-template-columns: 1fr;
    }

    .categories-menu {
        width: 100%;
        height: auto;
    }

    .categories-button {
        width: 100%;
        justify-content: flex-start;
    }

    .categories-dropdown {
        display: none !important;
    }

    .site-nav {
        justify-content: flex-start;
        overflow-x: auto;
        border-top: 1px solid var(--tm-border);
    }

    .main-menu {
        width: max-content;
        min-width: 100%;
    }

    .main-menu a {
        padding: 0 14px;
        font-size: 13px;
    }

    .buy-now-button {
        display: none;
    }

    .site-main {
        padding: 40px 0;
    }

    .home-hero {
        min-height: 620px;
        align-items: flex-start;
        background-size: auto 100%;
        background-position: 70% center;
    }

    .home-hero::before {
        background: linear-gradient(
            90deg,
            rgba(255,255,255,0.98) 0%,
            rgba(255,255,255,0.96) 53%,
            rgba(255,255,255,0.72) 72%,
            rgba(255,255,255,0.16) 100%
        );
    }

    .home-hero__content {
        width: 72%;
        max-width: 610px;
        padding: 58px 0 110px;
    }

    .home-hero__content h1 {
        font-size: clamp(44px, 8vw, 64px);
    }

    .home-hero__description {
        font-size: 16px;
    }

    .home-hero__pickup {
        font-size: 16px;
    }

    .home-services {
        margin-top: -36px;
    }

    .home-services__box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-service-card {
        padding: 20px 16px;
        gap: 12px;
        border-right: 1px solid var(--tm-border);
        border-bottom: 1px solid var(--tm-border);
    }

    .home-service-card:nth-child(2n) {
        border-right: 0;
    }

    .home-service-card:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .home-service-card__icon {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .home-service-card__icon img {
        width: 30px;
        height: 30px;
    }

    .home-service-card h3 {
        font-size: 14px;
        line-height: 1.2;
    }

    .home-service-card p {
        font-size: 12px;
        line-height: 1.35;
    }

}

@media (max-width: 767px) {
    .home-shop-categories {
        padding: 30px 0 16px;
    }

    .home-shop-categories__heading {
        margin-bottom: 20px;
    }

    .home-shop-categories__heading h2 {
        font-size: 19px;
    }

    .home-shop-categories__scroll {
        gap: 22px;
    }

    .home-shop-category {
        flex-basis: 115px;
    }

    .home-shop-category__image {
        width: 112px;
        height: 112px;
    }

    .home-shop-category__image img {
        max-width: 74px;
        max-height: 74px;
    }

    .home-shop-category__name {
        font-size: 13px;
    }

    .home-deals__inner {
        padding: 28px 18px;
    }

    .home-deals__heading {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 28px;
        text-align: center;
    }

    .home-deals__heading h2 {
        font-size: 22px;
    }

    .home-deals__grid,
    .home-new-products__grid,
    .woocommerce .products,
    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .home-deal-card,
    .shop-product-card.home-deal-card {
        min-height: 370px;
        padding: 15px 12px;
    }

    .home-deal-card__image {
        height: 165px;
    }

    .home-deal-card__image img {
        max-height: 150px;
    }

    .home-deal-card__title {
        font-size: 13px;
    }

    .home-deal-card__bottom {
        padding-top: 12px;
    }

    .home-deal-card__price {
        font-size: 20px;
    }

    .home-deal-card__add {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        flex-basis: 38px;
    }

    .home-new-products__banner {
        min-height: 220px;
        padding: 26px 22px;
        background-position: right center;
    }

    .home-new-products__banner::before {
        background: linear-gradient(
            180deg,
            rgba(255,255,255,0.94) 0%,
            rgba(255,255,255,0.84) 100%
        );
    }

    .home-new-products__banner h2 {
        font-size: 24px;
    }

    .home-new-products__grid {
        padding: 16px;
    }

    .shop-archive-content {
        padding: 30px 0 56px;
    }

    .shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .shop-toolbar__right,
    .shop-toolbar__ordering,
    .woocommerce-ordering,
    .shop-toolbar__ordering form,
    .shop-toolbar__ordering select,
    .woocommerce-ordering select {
        width: 100%;
    }

    .shop-archive-hero h1 {
        font-size: 28px;
    }

    .home-hero {
        min-height: 680px;
        align-items: flex-start;
        background-size: auto 54%;
        background-position: right bottom;
        background-color: var(--tm-white);
    }

    .home-hero::before {
        background: linear-gradient(
            180deg,
            rgba(255,255,255,1) 0%,
            rgba(255,255,255,1) 55%,
            rgba(255,255,255,0.92) 67%,
            rgba(255,255,255,0.26) 100%
        );
    }

    .home-hero__content {
        width: 100%;
        max-width: none;
        padding: 38px 0 230px;
    }

    .home-hero__badge {
        min-height: 42px;
        margin-bottom: 22px;
        padding: 0 15px;
        border-radius: 7px;
        font-size: 15px;
    }

    .home-hero__badge svg {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .home-hero__content h1 {
        max-width: 510px;
        margin-bottom: 20px;
        font-size: clamp(40px, 12vw, 56px);
        line-height: 0.98;
    }

    .home-hero__description {
        max-width: 490px;
        font-size: 15px;
        line-height: 1.5;
    }

    .home-hero__pickup {
        max-width: 480px;
        margin-top: 22px;
        padding-top: 22px;
        gap: 12px;
        font-size: 15px;
    }

    .home-hero__pickup-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .home-hero__pickup-icon svg {
        width: 22px;
        height: 22px;
    }

    .home-hero__button {
        min-width: 152px;
        height: 46px;
        margin-top: 26px;
    }

    
}

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

@media (max-width: 480px) {
    .container {
        width: min(100% - 24px, 1320px);
    }

    .home-hero {
        min-height: 650px;
        background-size: auto 47%;
        background-position: 68% bottom;
    }

    .home-hero__content {
        padding: 30px 0 205px;
    }

    .home-hero__content h1 {
        font-size: clamp(38px, 12.5vw, 49px);
        letter-spacing: -0.055em;
    }

    .home-hero__description {
        font-size: 14px;
    }

    .home-hero__pickup {
        font-size: 14px;
    }

    .home-hero__pickup::before {
        width: 88px;
    }

    .home-service-card {
        padding: 18px 12px;
        gap: 10px;
    }

    .home-service-card__icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .home-service-card__icon img {
        width: 26px;
        height: 26px;
    }

    .home-service-card h3 {
        font-size: 13px;
    }

    .home-service-card p {
        font-size: 11px;
    }

    .home-deals__grid,
    .home-new-products__grid,
    .woocommerce .products,
    .products {
        grid-template-columns: 1fr;
    }

    .footer-newsletter__content {
        padding-bottom: 150px;
    }

    .footer-newsletter__image {
        right: -130px;
        width: 440px;
    }

    .footer-logo img {
        width: 150px;
    }
}

/* =========================================================
   SINGLE PRODUCT
========================================================= */

.single-product-page {
    background: var(--tm-light);
    padding: 0;
}

.single-product-hero {
    padding: 36px 0 54px;
}

.single-product-breadcrumb {
    margin-bottom: 24px;
    color: var(--tm-text-soft);
    font-size: 13px;
    font-weight: 700;
}

.single-product-breadcrumb a {
    color: var(--tm-text-soft);
}

.single-product-breadcrumb a:hover {
    color: var(--tm-green-dark);
}

.single-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 34px;
    align-items: start;
}

.single-product-gallery {
    position: relative;
    background: var(--tm-white);
    border-radius: 18px;
    padding: 34px;
    box-shadow: var(--tm-shadow);
}

.single-product-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    padding: 7px 11px;
    border-radius: 7px;
    background: var(--tm-sale);
    color: var(--tm-white);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.single-product-image {
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.single-product-image img {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.single-product-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.single-product-thumbs a {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-light);
    border: 1px solid var(--tm-border);
    border-radius: 12px;
    padding: 8px;
}

.single-product-thumbs img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.single-product-summary {
    background: var(--tm-white);
    border-radius: 18px;
    padding: 34px;
    box-shadow: var(--tm-shadow);
}

.single-product-category {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--tm-green-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.single-product-title {
    margin: 0 0 14px;
    color: var(--tm-text);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.single-product-rating {
    margin-bottom: 18px;
    color: var(--tm-warning);
    font-size: 13px;
}

.single-product-rating .woocommerce-review-link {
    color: var(--tm-text-soft);
    font-weight: 700;
}

.single-product-price {
    margin-bottom: 22px;
    color: var(--tm-accent);
    font-size: 34px;
    font-weight: 900;
    line-height: 1.1;
}

.single-product-price ins {
    text-decoration: none;
}

.single-product-price del {
    margin-right: 8px;
    color: #98A2B3;
    font-size: 20px;
    font-weight: 600;
}

.single-product-short-description {
    margin-bottom: 26px;
    color: var(--tm-text-soft);
    font-size: 15px;
    line-height: 1.75;
}

.single-product-short-description p {
    margin: 0 0 12px;
}

.single-product-cart-box {
    margin-bottom: 24px;
    padding: 18px;
    background: var(--tm-light);
    border-radius: 14px;
}

.single-product-cart-box form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
}

.single-product-cart-box .quantity {
    margin: 0 !important;
}

.single-product-cart-box .quantity input.qty {
    width: 82px;
    height: 48px;
    border: 1px solid var(--tm-border);
    border-radius: 999px;
    background: var(--tm-white);
    color: var(--tm-text);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    outline: none;
}

.single-product-cart-box .single_add_to_cart_button {
    min-height: 48px;
    padding: 0 28px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--tm-sale) !important;
    color: var(--tm-white) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.single-product-cart-box .single_add_to_cart_button:hover {
    background: var(--tm-sale-dark) !important;
    transform: translateY(-1px);
}

.single-product-cart-box .stock {
    width: 100%;
    margin: 8px 0 0;
    color: var(--tm-green-dark);
    font-size: 13px;
    font-weight: 800;
}

.single-product-meta {
    display: grid;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--tm-border);
    color: var(--tm-text-soft);
    font-size: 14px;
}

.single-product-meta div {
    display: flex;
    gap: 8px;
}

.single-product-meta strong {
    color: var(--tm-text);
}

.single-product-details,
.single-product-related {
    padding: 0 0 60px;
}

.single-product-details__box {
    background: var(--tm-white);
    border-radius: 18px;
    padding: 34px;
    box-shadow: var(--tm-shadow);
}

.single-product-details__box h2,
.single-product-section-heading h2 {
    margin: 0 0 20px;
    color: var(--tm-text);
    font-size: 28px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.single-product-description {
    color: var(--tm-text-soft);
    font-size: 15px;
    line-height: 1.8;
}

.single-product-description p:first-child {
    margin-top: 0;
}

.single-product-section-heading {
    margin-bottom: 24px;
}

/* Variabili prodotto */

.single-product-cart-box table.variations {
    width: 100%;
    margin: 0 0 16px;
}

.single-product-cart-box table.variations tr {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.single-product-cart-box table.variations th,
.single-product-cart-box table.variations td {
    display: block;
    padding: 0;
    text-align: left;
}

.single-product-cart-box table.variations label {
    color: var(--tm-text);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.single-product-cart-box table.variations select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--tm-border);
    border-radius: 999px;
    background: var(--tm-white);
    color: var(--tm-text-soft);
    font-size: 14px;
    font-weight: 700;
    outline: none;
}

.single-product-cart-box .reset_variations {
    display: inline-block;
    margin-top: 8px;
    color: var(--tm-sale);
    font-size: 13px;
    font-weight: 800;
}

.single-product-cart-box .woocommerce-variation-price {
    margin: 0 0 14px;
    color: var(--tm-accent);
    font-size: 24px;
    font-weight: 900;
}

/* Responsive single product */

@media (max-width: 991px) {
    .single-product-layout {
        grid-template-columns: 1fr;
    }

    .single-product-image {
        min-height: 360px;
    }

    .single-product-image img {
        max-height: 330px;
    }
}

@media (max-width: 767px) {
    .single-product-hero {
        padding: 26px 0 38px;
    }

    .single-product-gallery,
    .single-product-summary,
    .single-product-details__box {
        padding: 22px;
        border-radius: 16px;
    }

    .single-product-image {
        min-height: 280px;
        padding: 18px;
    }

    .single-product-image img {
        max-height: 250px;
    }

    .single-product-title {
        font-size: 32px;
    }

    .single-product-price {
        font-size: 28px;
    }

    .single-product-cart-box form.cart {
        align-items: stretch;
        flex-direction: column;
    }

    .single-product-cart-box .quantity input.qty,
    .single-product-cart-box .single_add_to_cart_button {
        width: 100%;
    }

    .single-product-related {
        padding-bottom: 46px;
    }
}




/* =========================================================
   YITH WISHLIST
========================================================= */

body.woocommerce-wishlist .site-main,
body.page-id-12 .site-main {
    background: var(--tm-light);
}

body.woocommerce-wishlist .entry-title,
body.page-id-12 .entry-title {
    margin: 0 0 34px;
    color: var(--tm-text);
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

/* Wrapper form */

#yith-wcwl-form {
    background: var(--tm-white);
    border: 1px solid var(--tm-border);
    border-radius: 18px;
    box-shadow: var(--tm-shadow);
    overflow: hidden;
}

/* Titolo interno wishlist */

.wishlist-title-container {
    padding: 24px 28px 0;
}

.wishlist-title h2 {
    margin: 0 0 22px;
    color: var(--tm-text);
    font-size: 26px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

/* Tabella */

.wishlist_table {
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse;
    border-radius: 0;
}

.wishlist_table thead {
    background: var(--tm-white);
}

.wishlist_table th {
    padding: 18px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--tm-border) !important;
    color: var(--tm-text-soft);
    font-size: 12px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
}

.wishlist_table td {
    padding: 20px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--tm-border) !important;
    vertical-align: middle;
}

.wishlist_table tbody tr:last-child td {
    border-bottom: 0 !important;
}

/* Immagine prodotto */

.wishlist_table .product-thumbnail {
    width: 110px;
}

.wishlist_table .product-thumbnail a {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-light);
    border-radius: 14px;
    padding: 10px;
}

.wishlist_table .product-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

/* Nome prodotto */

.wishlist_table .product-name a {
    color: var(--tm-text);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
}

.wishlist_table .product-name a:hover {
    color: var(--tm-sale);
}

/* Prezzo */

.wishlist_table .product-price {
    color: var(--tm-accent);
    font-size: 15px;
    font-weight: 900;
}

.wishlist_table .product-price ins {
    text-decoration: none;
    color: var(--tm-accent);
}

.wishlist_table .product-price del {
    margin-right: 6px;
    color: #98A2B3;
    font-size: 14px;
    font-weight: 600;
}

/* Disponibilità */

.wishlist_table .product-stock-status {
    color: var(--tm-text-soft);
    font-size: 13px;
    font-weight: 800;
}

.wishlist_table .wishlist-in-stock,
.wishlist_table .stock.in-stock {
    color: var(--tm-green-dark);
    font-weight: 900;
}

.wishlist_table .wishlist-out-of-stock,
.wishlist_table .stock.out-of-stock {
    color: var(--tm-sale);
    font-weight: 900;
}

/* Bottone rimuovi */

.wishlist_table .product-remove {
    width: 58px;
    text-align: center;
}

.wishlist_table .product-remove a,
.wishlist_table .remove_from_wishlist {
    width: 34px;
    height: 34px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--tm-light);
    color: var(--tm-text-soft) !important;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
}

.wishlist_table .product-remove a:hover,
.wishlist_table .remove_from_wishlist:hover {
    background: var(--tm-sale);
    color: var(--tm-white) !important;
}

/* Bottone aggiungi al carrello */

.wishlist_table .product-add-to-cart {
    text-align: right;
}

.wishlist_table .product-add-to-cart a,
.wishlist_table .product-add-to-cart .button,
.wishlist_table .add_to_cart_button {
    min-height: 44px;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--tm-sale) !important;
    color: var(--tm-white) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    line-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    white-space: nowrap;
}

.wishlist_table .product-add-to-cart a:hover,
.wishlist_table .product-add-to-cart .button:hover,
.wishlist_table .add_to_cart_button:hover {
    background: var(--tm-sale-dark) !important;
    color: var(--tm-white) !important;
}

/* Nasconde "Visualizza carrello" dopo AJAX se appare */

.wishlist_table .added_to_cart.wc-forward {
    display: none !important;
}

/* Wishlist vuota */

.wishlist_table .wishlist-empty {
    padding: 42px 28px !important;
    color: var(--tm-text-soft);
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    background: var(--tm-white);
}

/* Footer wishlist */

.yith_wcwl_wishlist_footer {
    padding: 20px 28px;
    background: var(--tm-light);
    border-top: 1px solid var(--tm-border);
}

/* =========================================================
   YITH WISHLIST RESPONSIVE
========================================================= */

@media (max-width: 767px) {
    #yith-wcwl-form {
        border-radius: 16px;
    }

    .wishlist-title-container {
        padding: 22px 20px 0;
    }

    .wishlist-title h2 {
        font-size: 22px;
    }

    .wishlist_table thead {
        display: none;
    }

    .wishlist_table,
    .wishlist_table tbody,
    .wishlist_table tr,
    .wishlist_table td {
        display: block;
        width: 100%;
    }

    .wishlist_table tbody tr {
        position: relative;
        padding: 18px;
        border-bottom: 1px solid var(--tm-border);
    }

    .wishlist_table tbody tr:last-child {
        border-bottom: 0;
    }

    .wishlist_table td {
        padding: 8px 0 !important;
        border-bottom: 0 !important;
    }

    .wishlist_table .product-remove {
        position: absolute;
        top: 18px;
        right: 18px;
        width: auto;
        padding: 0 !important;
        z-index: 2;
    }

    .wishlist_table .product-thumbnail {
        width: 100%;
        padding-right: 46px !important;
    }

    .wishlist_table .product-thumbnail a {
        width: 96px;
        height: 96px;
    }

    .wishlist_table .product-name {
        padding-right: 46px !important;
    }

    .wishlist_table .product-price,
    .wishlist_table .product-stock-status {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .wishlist_table .product-price::before {
        content: "Prezzo";
        color: var(--tm-text-soft);
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .wishlist_table .product-stock-status::before {
        content: "Disponibilità";
        color: var(--tm-text-soft);
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .wishlist_table .product-add-to-cart {
        margin-top: 12px;
        text-align: left;
    }

    .wishlist_table .product-add-to-cart a,
    .wishlist_table .product-add-to-cart .button,
    .wishlist_table .add_to_cart_button {
        width: 100%;
    }

    .wishlist_table .wishlist-empty {
        padding: 34px 20px !important;
    }

    .yith_wcwl_wishlist_footer {
        padding: 18px 20px;
    }
}

/* =========================================================
   YITH WISHLIST NELLE CARD PRODOTTO
========================================================= */

.home-deal-card__wishlist {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 4;
}

.home-deal-card__wishlist .yith-wcwl-add-to-wishlist {
    margin: 0;
}

.home-deal-card__wishlist .yith-wcwl-add-button,
.home-deal-card__wishlist .yith-wcwl-wishlistaddedbrowse,
.home-deal-card__wishlist .yith-wcwl-wishlistexistsbrowse {
    margin: 0;
}

.home-deal-card__wishlist a,
.home-deal-card__wishlist .add_to_wishlist,
.home-deal-card__wishlist .delete_item,
.home-deal-card__wishlist .yith-wcwl-wishlistaddedbrowse a,
.home-deal-card__wishlist .yith-wcwl-wishlistexistsbrowse a {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0 !important;
    border-radius: 999px;
    background: var(--tm-white);
    border: 1px solid var(--tm-border);
    color: var(--tm-text);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    overflow: hidden;
}

.home-deal-card__wishlist a::before,
.home-deal-card__wishlist .add_to_wishlist::before,
.home-deal-card__wishlist .delete_item::before,
.home-deal-card__wishlist .yith-wcwl-wishlistaddedbrowse a::before,
.home-deal-card__wishlist .yith-wcwl-wishlistexistsbrowse a::before {
    content: "♡";
    font-size: 20px;
    line-height: 1;
    color: var(--tm-text);
}

.home-deal-card__wishlist a:hover,
.home-deal-card__wishlist .add_to_wishlist:hover,
.home-deal-card__wishlist .delete_item:hover,
.home-deal-card__wishlist .yith-wcwl-wishlistaddedbrowse a:hover,
.home-deal-card__wishlist .yith-wcwl-wishlistexistsbrowse a:hover {
    background: var(--tm-sale);
    border-color: var(--tm-sale);
}

.home-deal-card__wishlist a:hover::before,
.home-deal-card__wishlist .add_to_wishlist:hover::before,
.home-deal-card__wishlist .delete_item:hover::before,
.home-deal-card__wishlist .yith-wcwl-wishlistaddedbrowse a:hover::before,
.home-deal-card__wishlist .yith-wcwl-wishlistexistsbrowse a:hover::before {
    color: var(--tm-white);
}

.home-deal-card__wishlist .feedback,
.home-deal-card__wishlist .separator,
.home-deal-card__wishlist .view-wishlist {
    display: none !important;
}

.home-deal-card__wishlist .yith-wcwl-icon {
    display: none !important;
}

/* =========================================================
   FIX YITH WISHLIST CARD MOBILE
========================================================= */

@media (max-width: 767px) {
    .home-deal-card__wishlist {
        top: 14px;
        right: 14px;
    }

    .home-deal-card__wishlist a,
    .home-deal-card__wishlist .add_to_wishlist,
    .home-deal-card__wishlist .delete_item,
    .home-deal-card__wishlist .yith-wcwl-wishlistaddedbrowse a,
    .home-deal-card__wishlist .yith-wcwl-wishlistexistsbrowse a {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
    }

    .home-deal-card__wishlist a::before,
    .home-deal-card__wishlist .add_to_wishlist::before,
    .home-deal-card__wishlist .delete_item::before,
    .home-deal-card__wishlist .yith-wcwl-wishlistaddedbrowse a::before,
    .home-deal-card__wishlist .yith-wcwl-wishlistexistsbrowse a::before {
        font-size: 18px;
    }

    .home-deal-card__badge {
        top: 16px;
        left: 16px;
    }
}

/* =========================================================
   FIX ICONE HEADER + WISHLIST CARD
========================================================= */

/* Icona user bianca su bottone verde */
.site-action--account img {
    filter: brightness(0) invert(1);
}

/* Anche se il bottone account è hover, resta bianca */
.site-action--account:hover img {
    filter: brightness(0) invert(1);
}

/* Correzione icona carrello header */
.site-cart__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-cart__icon img {
    width: 21px;
    height: 21px;
    object-fit: contain;
    display: block;
}

/* Evita disallineamenti del badge sopra il carrello */
.site-cart__count,
.site-action__badge {
    top: -6px;
    right: -4px;
    left: auto;
    z-index: 2;
}

/* Mantiene allineato testo prezzo/carrello header */
.site-cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-cart__text {
    justify-content: center;
}


/* =========================================================
   FIX WISHLIST NELLE CARD
========================================================= */

.home-deal-card__wishlist {
    position: absolute;
    top: 26px;
    right: 22px;
    z-index: 5;
    width: 38px;
    height: 38px;
}

/* Reset wrapper YITH */
.home-deal-card__wishlist .yith-wcwl-add-to-wishlist,
.home-deal-card__wishlist .yith-wcwl-add-button,
.home-deal-card__wishlist .yith-wcwl-wishlistaddedbrowse,
.home-deal-card__wishlist .yith-wcwl-wishlistexistsbrowse {
    width: 38px;
    height: 38px;
    margin: 0 !important;
    padding: 0 !important;
}

/* Bottone cuore centrato */
.home-deal-card__wishlist a,
.home-deal-card__wishlist .add_to_wishlist,
.home-deal-card__wishlist .delete_item,
.home-deal-card__wishlist .yith-wcwl-wishlistaddedbrowse a,
.home-deal-card__wishlist .yith-wcwl-wishlistexistsbrowse a {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px;
    background: var(--tm-white);
    border: 1px solid var(--tm-border);
    color: var(--tm-text) !important;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    overflow: hidden;
}

/* Nasconde icone/testi generati da YITH */
.home-deal-card__wishlist .yith-wcwl-icon,
.home-deal-card__wishlist .feedback,
.home-deal-card__wishlist .separator,
.home-deal-card__wishlist .view-wishlist,
.home-deal-card__wishlist span:not(.count) {
    display: none !important;
}

/* Cuore generato da CSS, perfettamente centrato */
.home-deal-card__wishlist a::before,
.home-deal-card__wishlist .add_to_wishlist::before,
.home-deal-card__wishlist .delete_item::before,
.home-deal-card__wishlist .yith-wcwl-wishlistaddedbrowse a::before,
.home-deal-card__wishlist .yith-wcwl-wishlistexistsbrowse a::before {
    content: "♡";
    display: block;
    width: 100%;
    height: 100%;
    color: var(--tm-text);
    font-size: 21px;
    font-weight: 700;
    line-height: 36px;
    text-align: center;
}

/* Hover cuore */
.home-deal-card__wishlist a:hover,
.home-deal-card__wishlist .add_to_wishlist:hover,
.home-deal-card__wishlist .delete_item:hover,
.home-deal-card__wishlist .yith-wcwl-wishlistaddedbrowse a:hover,
.home-deal-card__wishlist .yith-wcwl-wishlistexistsbrowse a:hover {
    background: var(--tm-sale);
    border-color: var(--tm-sale);
}

.home-deal-card__wishlist a:hover::before,
.home-deal-card__wishlist .add_to_wishlist:hover::before,
.home-deal-card__wishlist .delete_item:hover::before,
.home-deal-card__wishlist .yith-wcwl-wishlistaddedbrowse a:hover::before,
.home-deal-card__wishlist .yith-wcwl-wishlistexistsbrowse a:hover::before {
    color: var(--tm-white);
}

/* Stato già aggiunto alla wishlist */
.home-deal-card__wishlist .yith-wcwl-wishlistaddedbrowse a::before,
.home-deal-card__wishlist .yith-wcwl-wishlistexistsbrowse a::before {
    content: "♥";
    color: var(--tm-sale);
}

.home-deal-card__wishlist .yith-wcwl-wishlistaddedbrowse a:hover::before,
.home-deal-card__wishlist .yith-wcwl-wishlistexistsbrowse a:hover::before {
    color: var(--tm-white);
}


/* Mobile */
@media (max-width: 767px) {
    .home-deal-card__wishlist {
        top: 16px;
        right: 16px;
        width: 34px;
        height: 34px;
    }

    .home-deal-card__wishlist .yith-wcwl-add-to-wishlist,
    .home-deal-card__wishlist .yith-wcwl-add-button,
    .home-deal-card__wishlist .yith-wcwl-wishlistaddedbrowse,
    .home-deal-card__wishlist .yith-wcwl-wishlistexistsbrowse,
    .home-deal-card__wishlist a,
    .home-deal-card__wishlist .add_to_wishlist,
    .home-deal-card__wishlist .delete_item,
    .home-deal-card__wishlist .yith-wcwl-wishlistaddedbrowse a,
    .home-deal-card__wishlist .yith-wcwl-wishlistexistsbrowse a {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }

    .home-deal-card__wishlist a::before,
    .home-deal-card__wishlist .add_to_wishlist::before,
    .home-deal-card__wishlist .delete_item::before,
    .home-deal-card__wishlist .yith-wcwl-wishlistaddedbrowse a::before,
    .home-deal-card__wishlist .yith-wcwl-wishlistexistsbrowse a::before {
        font-size: 19px;
        line-height: 32px;
    }
}

/* =========================================================
   CHECKOUT BLOCK - RIFINITURE FINALI
========================================================= */

/* Bottone Effettua ordine */
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout button.wc-block-components-checkout-place-order-button {
    min-width: 220px;
    min-height: 54px;
    padding: 0 28px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--tm-sale) !important;
    color: var(--tm-white) !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    cursor: pointer;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout button.wc-block-components-checkout-place-order-button:hover {
    background: var(--tm-sale-dark) !important;
    color: var(--tm-white) !important;
}

/* Testo dentro il bottone */
body.woocommerce-checkout .wc-block-components-checkout-place-order-button__text,
body.woocommerce-checkout .wc-block-components-button__text {
    color: inherit;
    font-weight: 900;
}

/* Riga finale: torna al carrello + bottone */
body.woocommerce-checkout .wc-block-checkout__actions {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--tm-border);
}

body.woocommerce-checkout .wc-block-checkout__actions_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Torna al carrello */
body.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button {
    color: var(--tm-text-soft);
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

body.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button:hover {
    color: var(--tm-sale);
}

body.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button svg {
    fill: currentColor;
}

/* Avviso metodi pagamento */
body.woocommerce-checkout .wc-block-components-notice-banner.is-error {
    max-width: 620px;
    margin: 0;
    padding: 16px 18px !important;
    border: 1px solid var(--tm-sale) !important;
    border-radius: 10px !important;
    background: rgba(255, 77, 109, 0.08) !important;
    color: var(--tm-text) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner.is-error svg {
    fill: var(--tm-sale);
}

body.woocommerce-checkout .wc-block-components-notice-banner__content {
    color: var(--tm-text);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

/* Checkbox nota ordine */
body.woocommerce-checkout .wc-block-checkout__order-notes {
    margin-top: 42px;
}

body.woocommerce-checkout .wc-block-components-checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--tm-text);
    font-size: 14px;
    font-weight: 600;
}

body.woocommerce-checkout .wc-block-components-checkbox__input {
    width: 20px;
    height: 20px;
    border: 1px solid var(--tm-border);
    border-radius: 5px;
}

/* Termini */
body.woocommerce-checkout .wc-block-checkout__terms {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--tm-border);
    color: var(--tm-text);
    font-size: 13px;
    line-height: 1.6;
}

/* Titolo pagamento */
body.woocommerce-checkout #payment-method {
    margin-top: 40px;
}

body.woocommerce-checkout #payment-method .wc-block-components-checkout-step__title {
    margin-bottom: 22px;
    color: var(--tm-text);
    font-size: 24px;
    font-weight: 900;
}

/* Mobile */
@media (max-width: 767px) {
    body.woocommerce-checkout .wc-block-checkout__actions_row {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
    body.woocommerce-checkout button.wc-block-components-checkout-place-order-button,
    body.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button {
        width: 100%;
        justify-content: center;
    }

    body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
        min-width: 0;
    }
}


/* =========================================================
   FOOTER NEWSLETTER - TESTO SINISTRA / FORM DESTRA
========================================================= */

.footer-newsletter__inner {
    min-height: 230px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: 60px;
    position: relative;
}

.footer-newsletter__content {
    position: relative;
    z-index: 2;
    padding: 54px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: 60px;
    grid-column: 1 / -1;
}

.footer-newsletter__content h2 {
    margin: 0;
    max-width: 560px;
    color: var(--tm-white);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.footer-newsletter__content p {
    margin: 12px 0 0;
    max-width: 500px;
    color: rgba(255,255,255,0.88);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 600;
}

.footer-newsletter__form {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-self: center;
    justify-self: end;
    background: var(--tm-white);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
}

/* Responsive */

@media (max-width: 900px) {
    .footer-newsletter__inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-newsletter__content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 44px 0 190px;
    }

    .footer-newsletter__form {
        justify-self: start;
        width: min(520px, 100%);
    }
}

@media (max-width: 767px) {
    .footer-newsletter__content {
        padding: 44px 0 190px;
    }

    .footer-newsletter__form {
        min-height: auto;
        flex-direction: column;
        gap: 10px;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .footer-newsletter__form input,
    .footer-newsletter__form button {
        width: 100%;
        height: 50px;
        border-radius: 999px;
    }
}

/* =========================================================
   FIX FOOTER NEWSLETTER - TESTO SX / FORM DX
========================================================= */

.footer-newsletter__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 80px;
    row-gap: 14px;
    width: 100%;
    grid-column: 1 / -1;
}

.footer-newsletter__content h2 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    max-width: 620px;
}

.footer-newsletter__content p {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    max-width: 500px;
}

.footer-newsletter__form {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    width: 100%;
    max-width: 560px;
}

@media (max-width: 900px) {
    .footer-newsletter__content {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }

    .footer-newsletter__content h2,
    .footer-newsletter__content p,
    .footer-newsletter__form {
        grid-column: 1;
        grid-row: auto;
    }

    .footer-newsletter__form {
        justify-self: start;
        max-width: 560px;
    }
}

/* =========================================================
   WOOCOMMERCE CART BLOCK - STILE COME CHECKOUT
========================================================= */

body.woocommerce-cart .site-main {
    padding: 44px 0 70px;
    background: var(--tm-light);
}

body.woocommerce-cart .entry-title {
    margin: 0 0 48px;
    color: var(--tm-text);
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

/* Layout generale */

body.woocommerce-cart .wp-block-woocommerce-cart {
    margin: 0;
}

body.woocommerce-cart .wc-block-components-sidebar-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 56px;
    align-items: start;
}

/* Colonna prodotti */

body.woocommerce-cart .wc-block-cart__main {
    max-width: 760px;
    width: 100%;
    padding: 0 !important;
    background: var(--tm-white);
    border: 1px solid var(--tm-border);
    border-radius: 18px;
    box-shadow: var(--tm-shadow);
    overflow: hidden;
}

/* Tabella prodotti */

body.woocommerce-cart .wc-block-cart-items {
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse;
}

body.woocommerce-cart .wc-block-cart-items thead {
    background: var(--tm-white);
}

body.woocommerce-cart .wc-block-cart-items th {
    padding: 20px 24px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--tm-border) !important;
    color: var(--tm-text-soft);
    font-size: 12px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
}

body.woocommerce-cart .wc-block-cart-items td {
    padding: 24px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--tm-border) !important;
    vertical-align: middle;
}

body.woocommerce-cart .wc-block-cart-items tbody tr:last-child td {
    border-bottom: 0 !important;
}

/* Immagine prodotto */

body.woocommerce-cart .wc-block-cart-item__image {
    width: 110px;
}

body.woocommerce-cart .wc-block-cart-item__image img {
    width: 82px;
    height: 82px;
    padding: 10px;
    object-fit: contain;
    background: var(--tm-light);
    border-radius: 14px;
}

/* Nome e dettagli prodotto */

body.woocommerce-cart .wc-block-cart-item__product {
    min-width: 0;
}

body.woocommerce-cart .wc-block-cart-item__wrap {
    display: grid;
    gap: 8px;
}

body.woocommerce-cart .wc-block-components-product-name {
    color: var(--tm-text);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 900;
    text-decoration: none;
}

body.woocommerce-cart .wc-block-components-product-name:hover {
    color: var(--tm-sale);
}

body.woocommerce-cart .wc-block-cart-item__prices {
    margin: 0;
}

body.woocommerce-cart .wc-block-components-product-price {
    color: var(--tm-accent);
    font-size: 14px;
    font-weight: 900;
}

body.woocommerce-cart .wc-block-components-product-price del {
    margin-right: 6px;
    color: #98A2B3;
    font-weight: 600;
}

body.woocommerce-cart .wc-block-components-product-price ins {
    color: var(--tm-accent);
    text-decoration: none;
    font-weight: 900;
}

body.woocommerce-cart .wc-block-components-product-metadata {
    color: var(--tm-text-soft);
    font-size: 12px;
    line-height: 1.45;
}

body.woocommerce-cart .wc-block-components-product-metadata p {
    margin: 0;
}

/* Quantità */

body.woocommerce-cart .wc-block-cart-item__quantity {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
}

body.woocommerce-cart .wc-block-components-quantity-selector {
    width: 120px;
    height: 42px;
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    border: 1px solid var(--tm-border);
    border-radius: 999px;
    background: var(--tm-white);
    overflow: hidden;
}

body.woocommerce-cart .wc-block-components-quantity-selector__input {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--tm-text);
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    order: 2;
    box-shadow: none !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button {
    width: 34px;
    height: 40px;
    min-height: 40px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--tm-text-soft);
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button:hover {
    color: var(--tm-sale);
}

body.woocommerce-cart .wc-block-components-quantity-selector__button--minus {
    order: 1;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button--plus {
    order: 3;
}

/* Rimuovi prodotto */

body.woocommerce-cart .wc-block-cart-item__remove-link {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px;
    background: var(--tm-light) !important;
    color: var(--tm-text-soft) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.woocommerce-cart .wc-block-cart-item__remove-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
    background: var(--tm-sale) !important;
    color: var(--tm-white) !important;
}

/* Totale riga */

body.woocommerce-cart .wc-block-cart-item__total {
    text-align: right;
}

body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price__value {
    color: var(--tm-accent);
    font-size: 18px;
    font-weight: 900;
}

body.woocommerce-cart .wc-block-components-sale-badge {
    display: inline-flex;
    margin-top: 8px;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    background: var(--tm-sale);
    color: var(--tm-white);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

/* Sidebar riepilogo come checkout */

body.woocommerce-cart .wc-block-cart__sidebar {
    width: 100%;
    max-width: none;
    padding: 24px !important;
    background: var(--tm-white);
    border: 1px solid var(--tm-border);
    border-radius: 18px;
    box-shadow: var(--tm-shadow);
    position: sticky;
    top: 130px;
}

body.admin-bar.woocommerce-cart .wc-block-cart__sidebar {
    top: 162px;
}

body.woocommerce-cart .wc-block-cart__totals-title {
    margin: 0 0 20px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--tm-border);
    color: var(--tm-text);
    font-size: 24px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

/* Coupon */

body.woocommerce-cart .wc-block-components-totals-wrapper {
    padding: 16px 0 !important;
    border-top: 0;
    border-bottom: 1px solid var(--tm-border);
}

body.woocommerce-cart .wc-block-components-panel__button {
    width: 100%;
    padding: 0 !important;
    color: var(--tm-text);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    word-break: normal;
    overflow-wrap: normal;
}

body.woocommerce-cart .wc-block-components-panel__button:hover {
    color: var(--tm-sale);
}

body.woocommerce-cart .wc-block-components-panel__button-icon {
    fill: currentColor;
}

/* Totali */

body.woocommerce-cart .wc-block-components-totals-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 !important;
    min-height: 36px;
}

body.woocommerce-cart .wc-block-components-totals-item__label {
    color: var(--tm-text-soft);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

body.woocommerce-cart .wc-block-components-totals-item__value {
    color: var(--tm-accent);
    font-size: 15px;
    font-weight: 900;
}

body.woocommerce-cart .wc-block-components-totals-footer-item {
    align-items: flex-end;
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    color: var(--tm-text);
    font-size: 15px;
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: var(--tm-accent);
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
}

/* Bottone checkout */

body.woocommerce-cart .wc-block-cart__submit {
    margin-top: 22px;
}

body.woocommerce-cart .wc-block-cart__submit-container {
    background: transparent !important;
    position: static !important;
}

body.woocommerce-cart .wc-block-cart__submit-button {
    width: 100%;
    min-height: 54px;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--tm-sale) !important;
    color: var(--tm-white) !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    white-space: nowrap;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover {
    background: var(--tm-sale-dark) !important;
}

body.woocommerce-cart .wc-block-cart__submit-button .wc-block-components-button__text {
    color: var(--tm-white);
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Notices */

body.woocommerce-cart .wc-block-components-notices,
body.woocommerce-cart .wc-block-components-notices__snackbar {
    grid-column: 1 / -1;
}

body.woocommerce-cart .wc-block-components-notice-banner {
    margin: 0 0 22px;
    padding: 16px 18px !important;
    border: 1px solid var(--tm-border) !important;
    border-radius: 14px !important;
    background: var(--tm-white) !important;
    color: var(--tm-text) !important;
    box-shadow: var(--tm-shadow);
}

body.woocommerce-cart .wc-block-components-notice-banner.is-success {
    border-left: 4px solid var(--tm-green) !important;
}

body.woocommerce-cart .wc-block-components-notice-banner.is-error {
    border-left: 4px solid var(--tm-sale) !important;
}

/* Responsive */

@media (max-width: 1100px) {
    body.woocommerce-cart .wc-block-components-sidebar-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    body.woocommerce-cart .wc-block-cart__main {
        max-width: none;
    }

    body.woocommerce-cart .wc-block-cart__sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    body.woocommerce-cart .site-main {
        padding: 38px 0 56px;
    }

    body.woocommerce-cart .entry-title {
        margin-bottom: 28px;
        font-size: 38px;
    }

    body.woocommerce-cart .wc-block-cart__main,
    body.woocommerce-cart .wc-block-cart__sidebar {
        border-radius: 16px;
    }

    body.woocommerce-cart .wc-block-cart__sidebar {
        padding: 20px !important;
    }

    body.woocommerce-cart .wc-block-cart-items thead {
        display: none;
    }

    body.woocommerce-cart .wc-block-cart-items,
    body.woocommerce-cart .wc-block-cart-items tbody,
    body.woocommerce-cart .wc-block-cart-items tr,
    body.woocommerce-cart .wc-block-cart-items td {
        display: block;
        width: 100%;
    }

    body.woocommerce-cart .wc-block-cart-items__row {
        position: relative;
        padding: 18px;
        border-bottom: 1px solid var(--tm-border);
    }

    body.woocommerce-cart .wc-block-cart-items__row:last-child {
        border-bottom: 0;
        padding: 45px;
    }

    body.woocommerce-cart .wc-block-cart-items td {
        padding: 0 !important;
        border-bottom: 0 !important;
    }

    body.woocommerce-cart .wc-block-cart-item__image {
        width: 100%;
        margin-bottom: 14px;
        padding-right: 44px !important;
    }

    body.woocommerce-cart .wc-block-cart-item__image img {
        width: 96px;
        height: 96px;
    }

    body.woocommerce-cart .wc-block-cart-item__product {
        padding-right: 44px !important;
    }

    body.woocommerce-cart .wc-block-cart-item__quantity {
        align-items: center;
        justify-content: space-between;
        margin-top: 16px;
    }

    body.woocommerce-cart .wc-block-cart-item__remove-link {
        position: absolute;
        top: 18px;
        right: 18px;
    }

    body.woocommerce-cart .wc-block-cart-item__total {
        margin-top: 16px;
        padding-top: 14px !important;
        border-top: 1px solid var(--tm-border) !important;
        text-align: left;
    }

    body.woocommerce-cart .wc-block-cart-item__total::before {
        content: "Totale";
        display: block;
        margin-bottom: 6px;
        color: var(--tm-text-soft);
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
    }

    body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
        font-size: 26px;
    }
}

/* =========================================================
   FIX NEWSLETTER MOBILE - ALTEZZA INPUT E SPAZI
========================================================= */

@media (max-width: 767px) {
    .wc-block-cart-item__wrap{
      margin-left: 15px;
    }

    .footer-newsletter {
        padding: 0;
    }

    .footer-newsletter__content {
        padding: 46px 0 58px;
        gap: 18px;
    }

    .footer-newsletter__content h2 {
        font-size: 28px;
        line-height: 1.08;
        letter-spacing: -0.04em;
    }

    .footer-newsletter__content p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 4px;
    }

    .footer-newsletter__form {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible;
    }

    .footer-newsletter__form input {
        width: 100%;
        height: 52px !important;
        min-height: 52px !important;
        padding: 0 20px !important;
        border: 0 !important;
        border-radius: 999px !important;
        background: var(--tm-white) !important;
        color: var(--tm-text);
        font-size: 14px;
        font-weight: 700;
        line-height: 52px;
        display: block;
    }

    .footer-newsletter__form input::placeholder {
        color: var(--tm-text-soft);
        opacity: 1;
    }

    .footer-newsletter__form button {
        width: 100%;
        height: 52px !important;
        min-height: 52px !important;
        border-radius: 999px !important;
        background: var(--tm-sale);
        color: var(--tm-white);
        font-size: 13px;
        font-weight: 900;
        line-height: 52px;
    }
}

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

.site-header__contact-left .contact-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    color: var(--tm-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex: 0 0 24px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.site-header__contact-left a:hover .contact-icon {
    background: rgba(255,255,255,0.28);
    transform: translateY(-1px);
}

@media (max-width: 900px) {

    .site-header__contact-bar {
        font-size: 12px;
    }

    .site-header__contact-inner {
        min-height: auto;
        padding: 10px 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .site-header__contact-left {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        width: 100%;
    }

    .site-header__contact-left a {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        line-height: 1.25;
    }

    .site-header__contact-left .contact-icon {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
        font-size: 11px;
    }

    .site-header__contact-left a span:last-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .site-header__contact-right {
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid rgba(255,255,255,0.18);
        line-height: 1.35;
        font-size: 12px;
        font-weight: 700;
        color: rgba(255,255,255,0.86);
    }
}

@media (max-width: 480px) {

    .site-header__contact-inner {
        padding: 9px 0;
        gap: 7px;
    }

    .site-header__contact-left {
        gap: 5px;
    }

    .site-header__contact-left a {
        font-size: 14px;
    }

    .site-header__contact-right {
        font-size: 11px;
    }
}

/* =========================================================
   HEADER MOBILE - LOGO A SINISTRA, AZIONI A DESTRA
   + RICERCA SOTTO A TUTTA LARGHEZZA
========================================================= */

@media (max-width: 900px) {

    .site-header__top-inner {
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "logo actions"
            "search search";
        align-items: center;
        height: auto;
        padding: 14px 0;
        gap: 12px 14px;
    }

    .site-logo {
        grid-area: logo;
        justify-self: start;
        min-width: 0;
    }

    .site-logo--image img {
        width: 130px;
        max-height: 56px;
        object-fit: contain;
    }

    .site-actions {
        grid-area: actions;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        min-width: max-content;
    }

    .site-search {
        grid-area: search;
        order: initial;
        width: 100%;
        height: 48px;
    }

    .site-action,
    .site-cart__icon {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .site-action img,
    .site-cart__icon img {
        width: 20px;
        height: 20px;
    }

    .site-cart {
        gap: 0;
    }

    .site-cart__text {
        display: none;
    }
}

@media (max-width: 480px) {

    .site-header__top-inner {
        padding: 12px 0;
        gap: 10px 10px;
    }

    .site-logo--image img {
        width: 115px;
        max-height: 50px;
    }

    .site-actions {
        gap: 6px;
    }

    .site-action,
    .site-cart__icon {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .site-action img,
    .site-cart__icon img {
        width: 18px;
        height: 18px;
    }

    .site-action__badge,
    .site-cart__count {
        top: -5px;
        right: -4px;
        min-width: 17px;
        height: 17px;
        font-size: 10px;
        line-height: 17px;
    }

    .site-search {
        height: 46px;
    }
}

@media (max-width: 900px) {

    .site-header__contact-inner {
        padding: 8px 0;
        gap: 6px;
    }

    .site-header__contact-left {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .site-header__contact-left a {
        width: 100%;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-width: 0;
        font-size: 14px;
        line-height: 1.2;
    }

    .site-header__contact-left a:first-child {
        justify-content: flex-start;
    }

    .site-header__contact-left a:last-child {
        justify-content: flex-end;
        text-align: right;
    }

    .site-header__contact-left .contact-icon {
        width: 21px;
        height: 21px;
        flex: 0 0 21px;
        font-size: 10px;
    }

    .site-header__contact-left a span:last-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-header__contact-left a:first-child span:last-child {
        font-size: 0;
    }

    .site-header__contact-left a:first-child span:last-child::after {
        content: "+39 347 378 4278";
        font-size: 14px;
    }

    .site-header__contact-right {
        width: 100%;
        padding-top: 6px;
        border-top: 1px solid rgba(255,255,255,0.16);
        text-align: center;
        font-size: 14px;
        line-height: 1.25;
        color: rgba(255,255,255,0.82);
    }
}

@media (max-width: 480px) {

    .site-header__contact-left {
        gap: 6px;
    }

    .site-header__contact-left a {
        gap: 5px;
        font-size: 14px;
    }

    .site-header__contact-left a:first-child span:last-child::after {
        font-size: 14px;
    }

    .site-header__contact-left .contact-icon {
        width: 19px;
        height: 19px;
        flex-basis: 19px;
        font-size: 9px;
    }

    .site-header__contact-right {
        font-size: 14px;
    }
}



/* =========================================================
   FIX FINALE - HOME SERVICES 2 BOX PER RIGA SU MOBILE
========================================================= */

@media (max-width: 900px) {
    .home-services__box {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-service-card {
        padding: 20px 16px;
        gap: 12px;
        border-right: 1px solid var(--tm-border) !important;
        border-bottom: 1px solid var(--tm-border) !important;
    }

    .home-service-card:nth-child(2n) {
        border-right: 0 !important;
    }

    .home-service-card:nth-last-child(-n+2) {
        border-bottom: 0 !important;
    }

    .home-service-card:last-child {
        border-bottom: 0 !important;
    }

    .home-service-card__icon {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .home-service-card__icon img {
        width: 30px;
        height: 30px;
    }

    .home-service-card h3 {
        font-size: 14px;
        line-height: 1.2;
    }

    .home-service-card p {
        font-size: 12px;
        line-height: 1.35;
    }
}

@media (max-width: 480px) {
    .home-service-card {
        padding: 18px 12px;
        gap: 10px;
    }

    .home-service-card__icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .home-service-card__icon img {
        width: 26px;
        height: 26px;
    }

    .home-service-card h3 {
        font-size: 13px;
    }

    .home-service-card p {
        font-size: 11px;
    }
}

/* =========================================================
   HOME HERO - OVERLAY SOLO MOBILE
========================================================= */

@media (max-width: 900px) {

    .home-hero {
        position: relative;
    }

    .home-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            90deg,
            rgba(255,255,255,0.96) 0%,
            rgba(255,255,255,0.90) 48%,
            rgba(255,255,255,0.62) 78%,
            rgba(255,255,255,0.28) 100%
        );
        z-index: 1;
        pointer-events: none;
    }

    .home-hero__container {
        position: relative;
        z-index: 2;
    }
}

/* =========================================================
   HEADER - WHATSAPP
========================================================= */

.site-header__whatsapp .contact-icon--whatsapp {
    background: rgba(255,255,255,0.18);
}

.site-header__whatsapp:hover .contact-icon--whatsapp {
    background: #25D366;
    color: #fff;
}

/* =========================================================
   PAGINAZIONE SHOP WOOCOMMERCE
========================================================= */

.shop-pagination {
    width: 100%;
    margin-top: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shop-pagination .woocommerce-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
}

.shop-pagination .woocommerce-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}

.shop-pagination .woocommerce-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}

.shop-pagination .woocommerce-pagination .page-numbers {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tm-border);
    border-radius: 999px;
    background: var(--tm-white);
    color: var(--tm-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.04);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.shop-pagination .woocommerce-pagination a.page-numbers:hover {
    background: var(--tm-green-dark);
    border-color: var(--tm-green-dark);
    color: var(--tm-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(127, 186, 0, 0.18);
}

.shop-pagination .woocommerce-pagination .page-numbers.current {
    background: var(--tm-green);
    border-color: var(--tm-green);
    color: var(--tm-white);
    box-shadow: 0 10px 22px rgba(127, 186, 0, 0.20);
}

.shop-pagination .woocommerce-pagination .page-numbers.dots {
    min-width: 30px;
    padding: 0 6px;
    border-color: transparent;
    background: transparent;
    color: var(--tm-text-soft);
    box-shadow: none;
}

.shop-pagination .woocommerce-pagination .page-numbers.next,
.shop-pagination .woocommerce-pagination .page-numbers.prev {
    min-width: 46px;
    font-size: 18px;
}

/* Mobile */
@media (max-width: 480px) {
    .shop-pagination {
        margin-top: 34px;
    }

    .shop-pagination .woocommerce-pagination ul.page-numbers {
        gap: 6px;
    }

    .shop-pagination .woocommerce-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 11px;
        font-size: 13px;
    }

    .shop-pagination .woocommerce-pagination .page-numbers.next,
    .shop-pagination .woocommerce-pagination .page-numbers.prev {
        min-width: 40px;
        font-size: 16px;
    }

    .shop-pagination .woocommerce-pagination .page-numbers.dots {
        min-width: 22px;
    }
}

body.woocommerce-checkout .tm-payment-methods-highlight {
    margin-top: 42px;
    padding: 26px;
    background: #ffffff;
    border: 2px solid rgba(127, 186, 0, 0.35);
    border-left: 7px solid var(--tm-green);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.10);
}

body.woocommerce-checkout .tm-payment-methods-highlight .wc-block-components-payment-method-label{
    font-weight:900;
    font-size:18px;
}

/* =========================================================
   CHECKOUT - POSIZIONI PER IL RITIRO PIÙ EVIDENTI
========================================================= */

body.woocommerce-checkout #pickup-options {
    margin-top: 42px;
    padding: 26px;
    background: #ffffff;
    border: 2px solid rgba(127, 186, 0, 0.35);
    border-left: 7px solid var(--tm-green);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.10);
}

/* Titolo */
body.woocommerce-checkout #pickup-options .wc-block-components-checkout-step__title {
    margin-bottom: 20px;
    color: var(--tm-text);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

/* Contenuto */
body.woocommerce-checkout #pickup-options .wc-block-components-checkout-step__content {
    margin-top: 0;
}

/* Wrapper radio */
body.woocommerce-checkout #pickup-options .wc-block-components-radio-control {
    display: grid;
    gap: 12px;
}

/* Singola opzione ritiro */
body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__option {
    position: relative;
    display: block !important;
    padding: 18px 18px 18px 56px !important;
    background: var(--tm-light);
    border: 2px solid transparent;
    border-radius: 15px;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* Hover */
body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__option:hover {
    background: #ffffff;
    border-color: rgba(127, 186, 0, 0.45);
    box-shadow: 0 10px 24px rgba(127, 186, 0, 0.13);
    transform: translateY(-1px);
}

/* Opzione selezionata */
body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__option-checked,
body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__option--checked-option-highlighted {
    background: rgba(127, 186, 0, 0.11) !important;
    border-color: var(--tm-green) !important;
    box-shadow: 0 12px 28px rgba(127, 186, 0, 0.18);
}

/* Radio button */
body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__input {
    position: absolute !important;
    top: 21px;
    left: 18px;
    width: 20px;
    height: 20px;
    margin: 0 !important;
    accent-color: var(--tm-green);
}

/* Layout interno */
body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__option-layout {
    width: 100%;
    min-width: 0;
}

/* Riga: Negozio + gratis */
body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__label-group {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

/* Nome opzione: Negozio */
body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__label {
    min-width: 0;
    color: var(--tm-text);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
}

/* Badge gratis */
body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__secondary-label {
    flex: 0 0 auto;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--tm-green);
    color: var(--tm-white);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
}

body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__secondary-label em {
    color: inherit;
    font-style: normal;
    font-weight: 900;
}

/* Gruppo descrizione indirizzo */
body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__description-group {
    margin-top: 12px;
}

/* Indirizzo */
body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__description {
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #ffffff;
    border-radius: 12px;
    color: var(--tm-text);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

/* Icona indirizzo */
body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__description svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
    fill: var(--tm-green-dark);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    body.woocommerce-checkout #pickup-options {
        margin-top: 32px;
        padding: 20px;
        border-radius: 16px;
    }

    body.woocommerce-checkout #pickup-options .wc-block-components-checkout-step__title {
        font-size: 22px;
    }

    body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__option {
        padding: 16px 16px 16px 52px !important;
    }

    body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__input {
        top: 19px;
        left: 16px;
        width: 19px;
        height: 19px;
    }

    body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__label-group {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__label {
        font-size: 15px;
    }

    body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__secondary-label {
        font-size: 11px;
        padding: 5px 9px;
    }

    body.woocommerce-checkout #pickup-options .wc-block-components-radio-control__description {
        font-size: 13px;
        padding: 11px 12px;
    }
}

/* =========================================================
   CHECKOUT - INDIRIZZO DI SPEDIZIONE PIÙ EVIDENTE
========================================================= */

body.woocommerce-checkout #shipping-fields {
    margin-top: 42px;
    padding: 26px;
    background: #ffffff;
    border: 2px solid rgba(127, 186, 0, 0.35);
    border-left: 7px solid var(--tm-green);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.10);
}

/* Titolo */
body.woocommerce-checkout #shipping-fields .wc-block-components-checkout-step__title {
    margin-bottom: 20px;
    color: var(--tm-text);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

/* Contenuto */
body.woocommerce-checkout #shipping-fields .wc-block-components-checkout-step__content {
    margin-top: 0;
}

/* Card indirizzo già compilato */
body.woocommerce-checkout #shipping-fields .wc-block-components-address-card {
    position: relative;
    padding: 18px 18px;
    background: rgba(127, 186, 0, 0.10);
    border: 2px solid rgba(127, 186, 0, 0.35);
    border-radius: 15px;
    color: var(--tm-text);
}

/* Nome cliente */
body.woocommerce-checkout #shipping-fields .wc-block-components-address-card__address-section--primary {
    display: block;
    margin-bottom: 6px;
    color: var(--tm-text);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
    text-transform: capitalize;
}

/* Indirizzo */
body.woocommerce-checkout #shipping-fields .wc-block-components-address-card__address-section--secondary {
    display: block;
    max-width: calc(100% - 92px);
    color: var(--tm-text-soft);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

/* Bottone modifica */
body.woocommerce-checkout #shipping-fields .wc-block-components-address-card__edit {
    position: absolute;
    top: 16px;
    right: 16px;
    min-height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-green);
    color: var(--tm-white);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

body.woocommerce-checkout #shipping-fields .wc-block-components-address-card__edit:hover {
    background: var(--tm-green-dark);
    color: var(--tm-white);
    transform: translateY(-1px);
}

/* Form indirizzo */
body.woocommerce-checkout #shipping-fields .wc-block-components-address-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

/* Campi larghi */
body.woocommerce-checkout #shipping-fields .wc-block-components-address-form__country,
body.woocommerce-checkout #shipping-fields .wc-block-components-address-form__address_1,
body.woocommerce-checkout #shipping-fields .wc-block-components-address-form__address_2-toggle,
body.woocommerce-checkout #shipping-fields .wc-block-components-address-form__state,
body.woocommerce-checkout #shipping-fields .wc-block-components-address-form__phone {
    grid-column: 1 / -1;
}

/* Input e select */
body.woocommerce-checkout #shipping-fields .wc-block-components-text-input input,
body.woocommerce-checkout #shipping-fields .wc-blocks-components-select__select {
    min-height: 52px;
    border: 1px solid var(--tm-border) !important;
    border-radius: 14px !important;
    background: var(--tm-light) !important;
    color: var(--tm-text) !important;
    font-size: 14px;
    font-weight: 700;
    box-shadow: none !important;
    outline: none !important;
}

/* Focus */
body.woocommerce-checkout #shipping-fields .wc-block-components-text-input input:focus,
body.woocommerce-checkout #shipping-fields .wc-blocks-components-select__select:focus {
    border-color: var(--tm-green) !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(127, 186, 0, 0.12) !important;
}

/* Label */
body.woocommerce-checkout #shipping-fields .wc-block-components-text-input label,
body.woocommerce-checkout #shipping-fields .wc-blocks-components-select__label {
    color: var(--tm-text-soft);
    font-size: 12px;
    font-weight: 900;
}

/* Link aggiungi appartamento */
body.woocommerce-checkout #shipping-fields .wc-block-components-address-form__address_2-toggle {
    margin-top: -2px;
    padding: 12px 14px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: rgba(127, 186, 0, 0.10);
    color: var(--tm-green-dark);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

body.woocommerce-checkout #shipping-fields .wc-block-components-address-form__address_2-toggle:hover {
    background: rgba(127, 186, 0, 0.18);
}

/* Checkbox fatturazione */
body.woocommerce-checkout #shipping-fields .wc-block-checkout__use-address-for-billing {
    margin-top: 22px;
    padding: 16px 18px;
    background: var(--tm-light);
    border-radius: 15px;
}

body.woocommerce-checkout #shipping-fields .wc-block-checkout__use-address-for-billing label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--tm-text);
    font-size: 14px;
    font-weight: 800;
}

/* Checkbox */
body.woocommerce-checkout #shipping-fields .wc-block-components-checkbox__input {
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: var(--tm-green);
}

/* Spunta checkbox */
body.woocommerce-checkout #shipping-fields .wc-block-components-checkbox__mark {
    fill: var(--tm-white);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    body.woocommerce-checkout #shipping-fields {
        margin-top: 32px;
        padding: 20px;
        border-radius: 16px;
    }

    body.woocommerce-checkout #shipping-fields .wc-block-components-checkout-step__title {
        font-size: 22px;
    }

    body.woocommerce-checkout #shipping-fields .wc-block-components-address-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body.woocommerce-checkout #shipping-fields .wc-block-components-address-card {
        padding: 16px;
    }

    body.woocommerce-checkout #shipping-fields .wc-block-components-address-card__address-section--secondary {
        max-width: 100%;
        padding-right: 0;
        font-size: 13px;
    }

    body.woocommerce-checkout #shipping-fields .wc-block-components-address-card__edit {
        position: static;
        width: fit-content;
        margin-top: 14px;
    }

    body.woocommerce-checkout #shipping-fields .wc-block-components-text-input input,
    body.woocommerce-checkout #shipping-fields .wc-blocks-components-select__select {
        min-height: 50px;
        border-radius: 13px !important;
    }

    body.woocommerce-checkout #shipping-fields .wc-block-checkout__use-address-for-billing {
        padding: 14px 16px;
    }

    body.woocommerce-checkout #shipping-fields .wc-block-checkout__use-address-for-billing label {
        align-items: flex-start;
        font-size: 13px;
        line-height: 1.4;
    }
}

/* =========================================================
   CHECKOUT - OPZIONI DI SPEDIZIONE PIÙ EVIDENTI
========================================================= */

body.woocommerce-checkout #shipping-option {
    margin-top: 42px;
    padding: 26px;
    background: #ffffff;
    border: 2px solid rgba(127, 186, 0, 0.35);
    border-left: 7px solid var(--tm-green);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.10);
}

/* Titolo */
body.woocommerce-checkout #shipping-option .wc-block-components-checkout-step__title {
    margin-bottom: 20px;
    color: var(--tm-text);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

/* Contenuto */
body.woocommerce-checkout #shipping-option .wc-block-components-checkout-step__content {
    margin-top: 0;
}

/* Wrapper metodi spedizione */
body.woocommerce-checkout #shipping-option .wc-block-components-radio-control {
    display: grid;
    gap: 12px;
}

/* Singola opzione spedizione */
body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__option {
    position: relative;
    display: block !important;
    padding: 18px 18px 18px 56px !important;
    background: var(--tm-light);
    border: 2px solid transparent;
    border-radius: 15px;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* Hover */
body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__option:hover {
    background: #ffffff;
    border-color: rgba(127, 186, 0, 0.45);
    box-shadow: 0 10px 24px rgba(127, 186, 0, 0.13);
    transform: translateY(-1px);
}

/* Opzione selezionata */
body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__option-checked,
body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__option--checked-option-highlighted {
    background: rgba(127, 186, 0, 0.11) !important;
    border-color: var(--tm-green) !important;
    box-shadow: 0 12px 28px rgba(127, 186, 0, 0.18);
}

/* Radio button */
body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__input {
    position: absolute !important;
    top: 21px;
    left: 18px;
    width: 20px;
    height: 20px;
    margin: 0 !important;
    accent-color: var(--tm-green);
}

/* Layout interno */
body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__option-layout {
    width: 100%;
    min-width: 0;
}

/* Riga: nome spedizione + prezzo */
body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__label-group {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

/* Nome opzione: Tariffa unica */
body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__label {
    min-width: 0;
    color: var(--tm-text);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
}

/* Prezzo spedizione */
body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__secondary-label {
    flex: 0 0 auto;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--tm-green);
    color: var(--tm-white);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__secondary-label .wc-block-formatted-money-amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    body.woocommerce-checkout #shipping-option {
        margin-top: 32px;
        padding: 20px;
        border-radius: 16px;
    }

    body.woocommerce-checkout #shipping-option .wc-block-components-checkout-step__title {
        font-size: 22px;
    }

    body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__option {
        padding: 16px 16px 16px 52px !important;
    }

    body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__input {
        top: 19px;
        left: 16px;
        width: 19px;
        height: 19px;
    }

    body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__label-group {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__label {
        font-size: 15px;
    }

    body.woocommerce-checkout #shipping-option .wc-block-components-radio-control__secondary-label {
        font-size: 11px;
        padding: 5px 9px;
    }
}

/* =========================================================
   CARD PRODOTTO - DISPONIBILITÀ / STOCK
========================================================= */

.home-deal-card__availability {
    margin: 0 0 10px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.home-deal-card__availability.is-in-stock {
    background: rgba(127, 186, 0, 0.12);
    color: var(--tm-green-dark);
}

.home-deal-card__availability.is-out-of-stock {
    background: rgba(255, 77, 109, 0.12);
    color: var(--tm-sale-dark);
}

/* =========================================================
   CARD PRODOTTO - DISPONIBILITÀ / STOCK
========================================================= */

.home-deal-card__availability {
    margin: 0 0 10px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.home-deal-card__availability.is-in-stock {
    background: rgba(127, 186, 0, 0.12);
    color: var(--tm-green-dark);
}

.home-deal-card__availability.is-out-of-stock {
    background: rgba(255, 77, 109, 0.12);
    color: var(--tm-sale-dark);
}

.terms-page {
    padding: 60px 0;
    background: #ffffff;
}

.terms-container {
    width: min(100% - 32px, 960px);
    margin: 0 auto;
    color: #222222;
    font-size: 16px;
    line-height: 1.7;
}

.terms-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.terms-header h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 700;
}

.terms-updated {
    margin: 0;
    color: #777777;
    font-size: 15px;
}

.terms-intro {
    margin-bottom: 36px;
    padding: 24px;
    background: #f7f7f7;
    border-radius: 16px;
}

.terms-section {
    margin-bottom: 36px;
}

.terms-section h2 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    color: #111111;
}

.terms-section p,
.terms-intro p {
    margin: 0 0 16px;
}

.terms-section p:last-child,
.terms-intro p:last-child {
    margin-bottom: 0;
}

.terms-section ul,
.terms-intro ul {
    margin: 0 0 18px;
    padding-left: 22px;
}

.terms-section li,
.terms-intro li {
    margin-bottom: 8px;
}

.terms-page a {
    color: #f28c00;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.terms-page strong {
    font-weight: 700;
}

@media (max-width: 767px) {
    .terms-page {
        padding: 36px 0;
    }

    .terms-container {
        width: min(100% - 24px, 960px);
        font-size: 15px;
        line-height: 1.65;
    }

    .terms-intro {
        padding: 20px;
        border-radius: 12px;
    }

    .terms-section {
        margin-bottom: 30px;
    }

    .terms-section h2 {
        font-size: 21px;
    }
}

/* =========================================================
   WOOCOMMERCE - MY ACCOUNT FIX TEMPLATE
========================================================= */

body.woocommerce-account .tm-my-account-layout {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

body.woocommerce-account .tm-my-account-sidebar,
body.woocommerce-account .tm-my-account-content {
    min-width: 0;
}

/* Reset WooCommerce */
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: auto !important;
}

/* Menu laterale */
body.woocommerce-account .tm-my-account-sidebar .woocommerce-MyAccount-navigation {
    background: var(--tm-white);
    border: 1px solid var(--tm-border);
    border-radius: 18px;
    box-shadow: var(--tm-shadow);
    overflow: hidden;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 10px;
    list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0;
    list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    color: var(--tm-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    background: rgba(127, 186, 0, 0.10);
    color: var(--tm-green-dark);
}

body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    background: var(--tm-green-dark);
    color: var(--tm-white);
}

/* Contenuto */
body.woocommerce-account .tm-my-account-content {
    min-height: 360px;
    padding: 30px;
    background: var(--tm-white);
    border: 1px solid var(--tm-border);
    border-radius: 18px;
    box-shadow: var(--tm-shadow);
    color: var(--tm-text);
    font-size: 15px;
    line-height: 1.7;
}

body.woocommerce-account .tm-my-account-content .woocommerce-MyAccount-content {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

/* Messaggi */
body.woocommerce-account .tm-my-account-content .woocommerce-info,
body.woocommerce-account .tm-my-account-content .woocommerce-message,
body.woocommerce-account .tm-my-account-content .woocommerce-error {
    margin: 0;
    padding: 22px 24px;
    border: 0;
    border-left: 6px solid var(--tm-green);
    border-radius: 16px;
    background: var(--tm-white);
    color: var(--tm-text);
    box-shadow: var(--tm-shadow);
    font-size: 14px;
    font-weight: 800;
}

body.woocommerce-account .tm-my-account-content .woocommerce-error {
    border-left-color: var(--tm-sale);
}

body.woocommerce-account .tm-my-account-content .woocommerce-info::before,
body.woocommerce-account .tm-my-account-content .woocommerce-message::before,
body.woocommerce-account .tm-my-account-content .woocommerce-error::before {
    display: none;
}

/* Bottone nel messaggio nessun ordine */
body.woocommerce-account .tm-my-account-content .woocommerce-info .button,
body.woocommerce-account .tm-my-account-content .woocommerce-info a.button {
    margin-left: 16px;
}

/* Bottoni */
body.woocommerce-account .tm-my-account-content .button,
body.woocommerce-account .tm-my-account-content button.button,
body.woocommerce-account .tm-my-account-content input.button,
body.woocommerce-account .tm-my-account-content .woocommerce-button {
    min-height: 44px;
    padding: 0 20px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--tm-green-dark) !important;
    color: var(--tm-white) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 44px !important;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: none !important;
}

body.woocommerce-account .tm-my-account-content .button:hover,
body.woocommerce-account .tm-my-account-content button.button:hover,
body.woocommerce-account .tm-my-account-content input.button:hover,
body.woocommerce-account .tm-my-account-content .woocommerce-button:hover {
    background: var(--tm-green) !important;
    color: var(--tm-white) !important;
}

/* Tabelle */
body.woocommerce-account .tm-my-account-content table.shop_table,
body.woocommerce-account .tm-my-account-content .woocommerce-orders-table {
    width: 100%;
    margin: 0;
    border: 1px solid var(--tm-border);
    border-radius: 16px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: var(--tm-white);
}

body.woocommerce-account .tm-my-account-content table.shop_table th,
body.woocommerce-account .tm-my-account-content .woocommerce-orders-table th {
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid var(--tm-border);
    background: var(--tm-light);
    color: var(--tm-text-soft);
    font-size: 12px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
}

body.woocommerce-account .tm-my-account-content table.shop_table td,
body.woocommerce-account .tm-my-account-content .woocommerce-orders-table td {
    padding: 18px;
    border: 0;
    border-bottom: 1px solid var(--tm-border);
    color: var(--tm-text);
    font-size: 14px;
    font-weight: 700;
}

/* Form */
body.woocommerce-account .tm-my-account-content .form-row {
    margin: 0 0 18px;
    padding: 0;
}

body.woocommerce-account .tm-my-account-content label {
    margin-bottom: 7px;
    display: block;
    color: var(--tm-text);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

body.woocommerce-account .tm-my-account-content input.input-text,
body.woocommerce-account .tm-my-account-content input[type="text"],
body.woocommerce-account .tm-my-account-content input[type="email"],
body.woocommerce-account .tm-my-account-content input[type="password"],
body.woocommerce-account .tm-my-account-content input[type="tel"],
body.woocommerce-account .tm-my-account-content select,
body.woocommerce-account .tm-my-account-content textarea {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid var(--tm-border);
    border-radius: 999px;
    background: var(--tm-light);
    color: var(--tm-text);
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
    outline: none;
}

body.woocommerce-account .tm-my-account-content textarea {
    min-height: 120px;
    padding-top: 14px;
    padding-bottom: 14px;
    border-radius: 18px;
}

/* Mobile */
@media (max-width: 900px) {
    body.woocommerce-account .tm-my-account-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px;
        -webkit-overflow-scrolling: touch;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation li {
        flex: 0 0 auto;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation a {
        white-space: nowrap;
        min-height: 42px;
        padding: 0 14px;
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    body.woocommerce-account .tm-my-account-content {
        padding: 22px;
        border-radius: 16px;
    }

    body.woocommerce-account .tm-my-account-content .woocommerce-info .button,
    body.woocommerce-account .tm-my-account-content .woocommerce-info a.button {
        width: 100%;
        margin: 14px 0 0;
    }
}

/* =========================================================
   BANNER CAP 10040 - CARRELLO
========================================================= */

.tm-cart-cap-banner {
    position: relative;
    margin: 0 0 32px;
    padding: 26px 30px;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    overflow: hidden;
    border: 1px solid rgba(127, 186, 0, 0.28);
    border-left: 6px solid var(--tm-green-dark);
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            rgba(127, 186, 0, 0.10) 0%,
            rgba(127, 186, 0, 0.04) 55%,
            rgba(255, 255, 255, 1) 100%
        );
    box-shadow: var(--tm-shadow);
}

.tm-cart-cap-banner__icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--tm-green-dark);
    color: var(--tm-white);
}

.tm-cart-cap-banner__icon svg {
    width: 29px;
    height: 29px;
    display: block;
    fill: currentColor;
}

.tm-cart-cap-banner__content {
    min-width: 0;
    flex: 1;
}

.tm-cart-cap-banner__badge {
    min-height: 28px;
    margin-bottom: 10px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--tm-green-dark);
    color: var(--tm-white);
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tm-cart-cap-banner h2 {
    margin: 0 0 8px;
    color: var(--tm-text);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.tm-cart-cap-banner p {
    max-width: 820px;
    margin: 0;
    color: var(--tm-text-soft);
    font-size: 15px;
    line-height: 1.6;
}

.tm-cart-cap-banner p strong {
    color: var(--tm-green-dark);
    font-weight: 900;
}

.tm-cart-cap-banner__pickup {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tm-text);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.tm-cart-cap-banner__pickup strong {
    color: var(--tm-green-dark);
    font-weight: 900;
}

.tm-cart-cap-banner__pickup-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(127, 186, 0, 0.14);
    color: var(--tm-green-dark);
}

.tm-cart-cap-banner__pickup-icon svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: currentColor;
}


/* Tablet */

@media (max-width: 767px) {

    .tm-cart-cap-banner {
        margin-bottom: 24px;
        padding: 22px 20px;
        gap: 16px;
        border-left-width: 5px;
    }

    .tm-cart-cap-banner__icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .tm-cart-cap-banner__icon svg {
        width: 25px;
        height: 25px;
    }

    .tm-cart-cap-banner h2 {
        font-size: 19px;
    }

    .tm-cart-cap-banner p {
        font-size: 14px;
    }
}


/* Smartphone */

@media (max-width: 480px) {

    .tm-cart-cap-banner {
        padding: 18px 16px;
        flex-direction: column;
        gap: 13px;
    }

    .tm-cart-cap-banner__icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .tm-cart-cap-banner__icon svg {
        width: 22px;
        height: 22px;
    }

    .tm-cart-cap-banner__badge {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .tm-cart-cap-banner h2 {
        margin-bottom: 7px;
        font-size: 18px;
    }

    .tm-cart-cap-banner__pickup {
        align-items: flex-start;
        font-size: 13px;
    }
}

/* Bollino WhatsApp fisso */
.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;
    border-radius: 50%;

    background-color: #25d366;
    color: #fff;
    text-decoration: none;

    font-size: 34px;
    line-height: 1;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
    background-color: #1fbd5a;
    color: #fff;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.floating-whatsapp:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .floating-whatsapp {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
        font-size: 31px;
    }
}

.categories-megamenu__column,
.categories-megamenu__child {
    position: relative;
}

.categories-megamenu__submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;

    width: 54px;
    height: 52px;
    padding: 0;

    border: 0;
    background: transparent;
    cursor: pointer;
}

.categories-megamenu__child >
.categories-megamenu__submenu-toggle {
    height: 42px;
}

.categories-megamenu__submenu-toggle:focus-visible {
    outline: 2px solid var(--tm-green-dark);
    outline-offset: -3px;
}

/* =========================================================
   BANNER CONSEGNE
========================================================= */

.tm-delivery-banner {
    width: 100%;
    margin: 0;
    padding: 18px 0;
    background: var(--tm-green-dark);
    color: var(--tm-white);
}

.tm-delivery-banner__inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tm-delivery-banner__icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: var(--tm-white);
}

.tm-delivery-banner__icon svg {
    width: 25px;
    height: 25px;
    display: block;
    fill: currentColor;
}

.tm-delivery-banner__content {
    flex: 1;
    min-width: 0;
}

.tm-delivery-banner__title {
    display: block;
    margin: 0 0 3px;
    color: var(--tm-white);
    font-size: 17px;
    line-height: 1.25;
    font-weight: 900;
}

.tm-delivery-banner__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.tm-delivery-banner__status {
    min-height: 38px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--tm-white);
    color: var(--tm-green-dark);
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}


/* =========================================================
   BANNER HOME
========================================================= */

.tm-delivery-banner--home {
    position: relative;
    z-index: 20;
    width: min(1320px, calc(100% - 32px));
    margin: 36px auto 0;
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: var(--tm-shadow);
}

.tm-delivery-banner--home .tm-delivery-banner__inner {
    width: 100%;
}


/* =========================================================
   BANNER CARRELLO
========================================================= */

.tm-delivery-banner--cart {
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: 14px;
    box-shadow: var(--tm-shadow);
}

.tm-delivery-banner--cart .tm-delivery-banner__inner {
    width: 100%;
}


/* =========================================================
   DOMENICA / ORDINI CHIUSI
========================================================= */

.tm-delivery-banner.is-closed {
    background: var(--tm-sale-dark);
}

.tm-delivery-banner.is-closed .tm-delivery-banner__status {
    color: var(--tm-sale-dark);
}


/* =========================================================
   CARRELLO A BLOCCHI WOOCOMMERCE
========================================================= */

.wp-block-woocommerce-cart .tm-delivery-banner,
.wc-block-cart .tm-delivery-banner {
    width: 100%;
    max-width: none;
}


/* =========================================================
   RESPONSIVE BANNER CONSEGNE
========================================================= */

@media (max-width: 767px) {

    .tm-delivery-banner {
        padding: 15px 0;
    }

    .tm-delivery-banner--home {
        width: calc(100% - 24px);
        margin: 28px auto 0;
        padding: 16px;
        border-radius: 12px;
    }

    .tm-delivery-banner--cart {
        padding: 16px;
        border-radius: 12px;
    }

    .tm-delivery-banner__inner {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
    }

    .tm-delivery-banner__icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .tm-delivery-banner__icon svg {
        width: 22px;
        height: 22px;
    }

    .tm-delivery-banner__content {
        min-width: 0;
    }

    .tm-delivery-banner__title {
        margin-bottom: 4px;
        font-size: 15px;
        line-height: 1.25;
    }

    .tm-delivery-banner__text {
        font-size: 13px;
        line-height: 1.45;
    }

    .tm-delivery-banner__status {
        grid-column: 2;
        justify-self: start;
        width: auto;
        max-width: 100%;
        min-height: 34px;
        margin: 2px 0 0;
        padding: 8px 14px;
        font-size: 12px;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .tm-delivery-banner--home {
        margin-top: 24px;
        padding: 15px;
    }

    .tm-delivery-banner__inner {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
    }

    .tm-delivery-banner__icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .tm-delivery-banner__icon svg {
        width: 20px;
        height: 20px;
    }

    .tm-delivery-banner__status {
        grid-column: 2;
        padding: 7px 12px;
    }
}

/* =========================================================
   FOOTER - ORARI DI APERTURA
========================================================= */

.footer-opening-hours {
    max-width: 340px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(17, 24, 39, 0.14);
}

.footer-opening-hours__title {
    margin: 0 0 14px !important;
    color: var(--tm-text);
    font-size: 15px !important;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
}

.footer-opening-hours__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 9px;
    color: var(--tm-text);
    font-size: 13px;
    line-height: 1.4;
}

.footer-opening-hours__row span {
    flex: 0 0 auto;
    font-weight: 700;
}

.footer-opening-hours__row strong {
    text-align: right;
    font-weight: 900;
}

.footer-opening-hours__note {
    margin: 16px 0 0 !important;
    padding: 12px 14px;
    max-width: none !important;
    border-radius: 10px;
    background: rgba(127, 186, 0, 0.12);
    color: var(--tm-text) !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
}

.footer-opening-hours__note strong {
    color: var(--tm-green-dark);
    font-weight: 900;
}

.footer-opening-hours__closed {
    margin: 8px 0 0 !important;
    max-width: none !important;
    color: var(--tm-sale-dark) !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-weight: 900 !important;
}

@media (max-width: 767px) {
    .footer-opening-hours {
        max-width: 100%;
    }

    .footer-opening-hours__row {
        justify-content: flex-start;
    }

    .footer-opening-hours__row span {
        min-width: 125px;
    }

    .footer-opening-hours__row strong {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .footer-opening-hours__row {
        display: block;
    }

    .footer-opening-hours__row span,
    .footer-opening-hours__row strong {
        display: block;
    }

    .footer-opening-hours__row strong {
        margin-top: 2px;
    }
}

/* =========================================================
   WOOCOMMERCE MY ACCOUNT
   LOGIN + REGISTRAZIONE UTENTE NON AUTENTICATO
========================================================= */

body.woocommerce-account:not(.logged-in) .site-main {
    padding: 64px 0 80px;
    background: var(--tm-light);
}

body.woocommerce-account:not(.logged-in) .site-main > .container {
    width: min(1120px, calc(100% - 32px));
}

/* Pagina */

body.woocommerce-account:not(.logged-in) article.entry {
    margin: 0;
}

body.woocommerce-account:not(.logged-in) .entry-title {
    margin: 0 0 36px;
    color: var(--tm-text);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-align: center;
}

body.woocommerce-account:not(.logged-in) .entry-content {
    margin: 0;
}

/* Elimina float e larghezze WooCommerce */

body.woocommerce-account:not(.logged-in) #customer_login {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
    margin: 0;
}

body.woocommerce-account:not(.logged-in) #customer_login::before,
body.woocommerce-account:not(.logged-in) #customer_login::after {
    display: none;
}

body.woocommerce-account:not(.logged-in) #customer_login > .u-column1,
body.woocommerce-account:not(.logged-in) #customer_login > .u-column2 {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 34px;
    border: 1px solid var(--tm-border);
    border-radius: 20px;
    background: var(--tm-white);
    box-shadow: var(--tm-shadow);
}

/* Leggera differenza visiva per la registrazione */

body.woocommerce-account:not(.logged-in) #customer_login > .u-column2 {
    border-top: 5px solid var(--tm-green-dark);
}

/* Titoli delle card */

body.woocommerce-account:not(.logged-in) #customer_login h2 {
    position: relative;
    margin: 0 0 28px;
    padding-bottom: 18px;
    color: var(--tm-text);
    font-size: 27px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.025em;
}

body.woocommerce-account:not(.logged-in) #customer_login h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: var(--tm-green-dark);
}

/* Form */

body.woocommerce-account:not(.logged-in) #customer_login form {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

body.woocommerce-account:not(.logged-in) #customer_login .form-row {
    margin: 0 0 20px;
    padding: 0;
}

body.woocommerce-account:not(.logged-in) #customer_login label {
    display: block;
    margin: 0 0 8px;
    color: var(--tm-text);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.woocommerce-account:not(.logged-in) #customer_login .required {
    color: var(--tm-sale);
}

/* Campi */

body.woocommerce-account:not(.logged-in) #customer_login input.input-text,
body.woocommerce-account:not(.logged-in) #customer_login input[type="text"],
body.woocommerce-account:not(.logged-in) #customer_login input[type="email"],
body.woocommerce-account:not(.logged-in) #customer_login input[type="password"] {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid #E4E7EC;
    border-radius: 12px;
    background: var(--tm-light);
    color: var(--tm-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    outline: none;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

body.woocommerce-account:not(.logged-in) #customer_login input.input-text:focus,
body.woocommerce-account:not(.logged-in) #customer_login input[type="text"]:focus,
body.woocommerce-account:not(.logged-in) #customer_login input[type="email"]:focus,
body.woocommerce-account:not(.logged-in) #customer_login input[type="password"]:focus {
    border-color: var(--tm-green-dark);
    background: var(--tm-white);
    box-shadow: 0 0 0 4px rgba(127, 186, 0, 0.12);
}

/* Campo password con pulsante mostra/nascondi */

body.woocommerce-account:not(.logged-in) #customer_login .password-input {
    position: relative;
    display: block;
    width: 100%;
}

body.woocommerce-account:not(.logged-in) #customer_login .password-input input {
    padding-right: 54px;
}

body.woocommerce-account:not(.logged-in) #customer_login .show-password-input {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--tm-text-soft);
    transform: translateY(-50%);
}

body.woocommerce-account:not(.logged-in) #customer_login .show-password-input:hover {
    background: rgba(127, 186, 0, 0.10);
    color: var(--tm-green-dark);
}

/* Riga ricordami e bottone */

body.woocommerce-account:not(.logged-in) #customer_login .form-row:has(.woocommerce-form-login__rememberme) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login__rememberme {
    margin: 0 auto 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tm-text-soft);
    font-size: 13px;
    font-weight: 800;
    text-transform: none;
    cursor: pointer;
}

body.woocommerce-account:not(.logged-in) #customer_login input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    flex: 0 0 17px;
    accent-color: var(--tm-green-dark);
}

/* Bottoni */

body.woocommerce-account:not(.logged-in) #customer_login button.button,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-button {
    min-width: 142px;
    min-height: 48px;
    margin: 0;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--tm-green-dark) !important;
    color: var(--tm-white) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: none !important;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

body.woocommerce-account:not(.logged-in) #customer_login button.button:hover,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-button:hover {
    background: var(--tm-green) !important;
    color: var(--tm-white) !important;
    transform: translateY(-1px);
}

/* Bottone registrazione a tutta larghezza */

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-register__submit {
    width: 100%;
}

/* Password dimenticata */

body.woocommerce-account:not(.logged-in) #customer_login .lost_password {
    margin: 18px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--tm-border);
}

body.woocommerce-account:not(.logged-in) #customer_login .lost_password a {
    color: var(--tm-green-dark);
    font-size: 13px;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.woocommerce-account:not(.logged-in) #customer_login .lost_password a:hover {
    color: var(--tm-green);
}

/* Testo password automatica */

body.woocommerce-account:not(.logged-in) #customer_login form.register > p:not(.form-row):not(.woocommerce-form-row) {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(127, 186, 0, 0.09);
    color: var(--tm-text-soft);
    font-size: 13px;
    line-height: 1.6;
    font-weight: 700;
}

/* Privacy */

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-privacy-policy-text {
    margin: 0 0 22px;
    padding: 16px;
    border-radius: 12px;
    background: var(--tm-light);
    color: var(--tm-text-soft);
    font-size: 12px;
    line-height: 1.65;
}

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-privacy-policy-text p {
    margin: 0;
}

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-privacy-policy-link {
    color: var(--tm-green-dark);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Messaggi WooCommerce sopra i form */

body.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper:not(:empty) {
    margin-bottom: 24px;
}

body.woocommerce-account:not(.logged-in) .woocommerce-error,
body.woocommerce-account:not(.logged-in) .woocommerce-message,
body.woocommerce-account:not(.logged-in) .woocommerce-info {
    margin: 0 0 24px;
    padding: 18px 20px 18px 52px;
    border: 0;
    border-left: 5px solid var(--tm-green-dark);
    border-radius: 14px;
    background: var(--tm-white);
    color: var(--tm-text);
    box-shadow: var(--tm-shadow);
    font-size: 14px;
    font-weight: 700;
}

body.woocommerce-account:not(.logged-in) .woocommerce-error {
    border-left-color: var(--tm-sale);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
    body.woocommerce-account:not(.logged-in) .site-main {
        padding: 48px 0 64px;
    }

    body.woocommerce-account:not(.logged-in) #customer_login {
        gap: 20px;
    }

    body.woocommerce-account:not(.logged-in) #customer_login > .u-column1,
    body.woocommerce-account:not(.logged-in) #customer_login > .u-column2 {
        padding: 26px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    body.woocommerce-account:not(.logged-in) .site-main {
        padding: 36px 0 52px;
    }

    body.woocommerce-account:not(.logged-in) .site-main > .container {
        width: min(100% - 24px, 1120px);
    }

    body.woocommerce-account:not(.logged-in) .entry-title {
        margin-bottom: 26px;
        font-size: 34px;
        text-align: left;
    }

    body.woocommerce-account:not(.logged-in) #customer_login {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    body.woocommerce-account:not(.logged-in) #customer_login > .u-column1,
    body.woocommerce-account:not(.logged-in) #customer_login > .u-column2 {
        width: 100% !important;
        padding: 24px 20px;
        border-radius: 16px;
    }

    body.woocommerce-account:not(.logged-in) #customer_login h2 {
        margin-bottom: 24px;
        font-size: 24px;
    }

    body.woocommerce-account:not(.logged-in) #customer_login .form-row {
        margin-bottom: 17px;
    }

    body.woocommerce-account:not(.logged-in) #customer_login input.input-text,
    body.woocommerce-account:not(.logged-in) #customer_login input[type="text"],
    body.woocommerce-account:not(.logged-in) #customer_login input[type="email"],
    body.woocommerce-account:not(.logged-in) #customer_login input[type="password"] {
        min-height: 50px;
        border-radius: 10px;
    }

    body.woocommerce-account:not(.logged-in) #customer_login .form-row:has(.woocommerce-form-login__rememberme) {
        align-items: stretch;
    }

    body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login__rememberme {
        width: 100%;
        margin-bottom: 2px;
    }

    body.woocommerce-account:not(.logged-in) #customer_login button.button,
    body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-button {
        width: 100%;
        min-height: 48px;
    }

    body.woocommerce-account:not(.logged-in) #customer_login .lost_password {
        text-align: center;
    }
}

/* =========================================================
   MOBILE PICCOLO
========================================================= */

@media (max-width: 480px) {
    body.woocommerce-account:not(.logged-in) .entry-title {
        font-size: 30px;
    }

    body.woocommerce-account:not(.logged-in) #customer_login > .u-column1,
    body.woocommerce-account:not(.logged-in) #customer_login > .u-column2 {
        padding: 22px 16px;
    }

    body.woocommerce-account:not(.logged-in) #customer_login h2 {
        font-size: 22px;
    }

    body.woocommerce-account:not(.logged-in) #customer_login label {
        font-size: 12px;
    }

    body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-privacy-policy-text {
        padding: 14px;
        font-size: 11px;
    }
}

/* =========================================================
   WOOCOMMERCE PASSWORD DIMENTICATA
========================================================= */

body.woocommerce-lost-password .site-main {
    padding: 64px 0 80px;
    background: var(--tm-light);
}

body.woocommerce-lost-password .site-main > .container {
    width: min(720px, calc(100% - 32px));
}

body.woocommerce-lost-password article.entry {
    margin: 0;
}

body.woocommerce-lost-password .entry-title {
    margin: 0 0 36px;
    color: var(--tm-text);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-align: center;
}

body.woocommerce-lost-password .entry-content {
    margin: 0;
}

body.woocommerce-lost-password .woocommerce {
    width: 100%;
}

/* Card principale */

body.woocommerce-lost-password form.lost_reset_password {
    width: 100%;
    margin: 0;
    padding: 36px;
    border: 1px solid var(--tm-border);
    border-top: 5px solid var(--tm-green-dark);
    border-radius: 20px;
    background: var(--tm-white);
    box-shadow: var(--tm-shadow);
}

/* Testo introduttivo */

body.woocommerce-lost-password form.lost_reset_password > p:first-child {
    margin: 0 0 28px;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(127, 186, 0, 0.09);
    color: var(--tm-text-soft);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 700;
}

/* Righe form */

body.woocommerce-lost-password form.lost_reset_password .form-row {
    float: none !important;
    width: 100% !important;
    margin: 0 0 22px;
    padding: 0;
}

body.woocommerce-lost-password form.lost_reset_password .form-row-first,
body.woocommerce-lost-password form.lost_reset_password .form-row-last {
    float: none !important;
    width: 100% !important;
}

/* Label */

body.woocommerce-lost-password form.lost_reset_password label {
    display: block;
    margin: 0 0 8px;
    color: var(--tm-text);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.woocommerce-lost-password form.lost_reset_password .required {
    color: var(--tm-sale);
}

/* Campo username/email */

body.woocommerce-lost-password form.lost_reset_password input.input-text,
body.woocommerce-lost-password form.lost_reset_password input[type="text"],
body.woocommerce-lost-password form.lost_reset_password input[type="email"],
body.woocommerce-lost-password form.lost_reset_password input[type="password"] {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid #E4E7EC;
    border-radius: 12px;
    background: var(--tm-light);
    color: var(--tm-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    outline: none;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

body.woocommerce-lost-password form.lost_reset_password input.input-text:focus,
body.woocommerce-lost-password form.lost_reset_password input[type="text"]:focus,
body.woocommerce-lost-password form.lost_reset_password input[type="email"]:focus,
body.woocommerce-lost-password form.lost_reset_password input[type="password"]:focus {
    border-color: var(--tm-green-dark);
    background: var(--tm-white);
    box-shadow: 0 0 0 4px rgba(127, 186, 0, 0.12);
}

/* Clear generato da WooCommerce */

body.woocommerce-lost-password form.lost_reset_password .clear {
    display: none;
}

/* Riga pulsante */

body.woocommerce-lost-password form.lost_reset_password .form-row:last-of-type {
    margin-bottom: 0;
}

/* Pulsante */

body.woocommerce-lost-password form.lost_reset_password button.button,
body.woocommerce-lost-password form.lost_reset_password .woocommerce-Button {
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--tm-green-dark) !important;
    color: var(--tm-white) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: none !important;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

body.woocommerce-lost-password form.lost_reset_password button.button:hover,
body.woocommerce-lost-password form.lost_reset_password .woocommerce-Button:hover {
    background: var(--tm-green) !important;
    color: var(--tm-white) !important;
    transform: translateY(-1px);
}

/* Messaggi WooCommerce */

body.woocommerce-lost-password .woocommerce-notices-wrapper:not(:empty) {
    margin-bottom: 24px;
}

body.woocommerce-lost-password .woocommerce-error,
body.woocommerce-lost-password .woocommerce-message,
body.woocommerce-lost-password .woocommerce-info {
    margin: 0 0 24px;
    padding: 18px 20px 18px 52px;
    border: 0;
    border-left: 5px solid var(--tm-green-dark);
    border-radius: 14px;
    background: var(--tm-white);
    color: var(--tm-text);
    box-shadow: var(--tm-shadow);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 700;
}

body.woocommerce-lost-password .woocommerce-error {
    border-left-color: var(--tm-sale);
}

/* =========================================================
   FORM INSERIMENTO NUOVA PASSWORD
========================================================= */

body.woocommerce-lost-password form.woocommerce-ResetPassword {
    width: 100%;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword .password-input {
    position: relative;
    display: block;
    width: 100%;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword .password-input input {
    padding-right: 54px;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword .show-password-input {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--tm-text-soft);
    transform: translateY(-50%);
}

body.woocommerce-lost-password form.woocommerce-ResetPassword .show-password-input:hover {
    background: rgba(127, 186, 0, 0.10);
    color: var(--tm-green-dark);
}

/* Indicatore robustezza password */

body.woocommerce-lost-password .woocommerce-password-strength {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 900;
    text-align: left;
}

body.woocommerce-lost-password .woocommerce-password-strength.short,
body.woocommerce-lost-password .woocommerce-password-strength.bad {
    background: rgba(255, 77, 109, 0.12);
    color: var(--tm-sale-dark);
}

body.woocommerce-lost-password .woocommerce-password-strength.good {
    background: rgba(247, 181, 0, 0.16);
    color: #8A6500;
}

body.woocommerce-lost-password .woocommerce-password-strength.strong {
    background: rgba(127, 186, 0, 0.12);
    color: var(--tm-green-dark);
}

body.woocommerce-lost-password .woocommerce-password-hint {
    display: block;
    margin-top: 10px;
    color: var(--tm-text-soft);
    font-size: 12px;
    line-height: 1.55;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
    body.woocommerce-lost-password .site-main {
        padding: 48px 0 64px;
    }

    body.woocommerce-lost-password form.lost_reset_password {
        padding: 30px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    body.woocommerce-lost-password .site-main {
        padding: 36px 0 52px;
    }

    body.woocommerce-lost-password .site-main > .container {
        width: min(100% - 24px, 720px);
    }

    body.woocommerce-lost-password .entry-title {
        margin-bottom: 26px;
        font-size: 34px;
        text-align: left;
    }

    body.woocommerce-lost-password form.lost_reset_password {
        padding: 24px 20px;
        border-radius: 16px;
    }

    body.woocommerce-lost-password form.lost_reset_password > p:first-child {
        margin-bottom: 24px;
        padding: 14px 16px;
        font-size: 13px;
    }

    body.woocommerce-lost-password form.lost_reset_password .form-row {
        margin-bottom: 18px;
    }

    body.woocommerce-lost-password form.lost_reset_password input.input-text,
    body.woocommerce-lost-password form.lost_reset_password input[type="text"],
    body.woocommerce-lost-password form.lost_reset_password input[type="email"],
    body.woocommerce-lost-password form.lost_reset_password input[type="password"] {
        min-height: 50px;
        border-radius: 10px;
    }

    body.woocommerce-lost-password form.lost_reset_password button.button,
    body.woocommerce-lost-password form.lost_reset_password .woocommerce-Button {
        min-height: 48px;
    }
}

/* =========================================================
   MOBILE PICCOLO
========================================================= */

@media (max-width: 480px) {
    body.woocommerce-lost-password .entry-title {
        font-size: 30px;
    }

    body.woocommerce-lost-password form.lost_reset_password {
        padding: 22px 16px;
    }

    body.woocommerce-lost-password form.lost_reset_password label {
        font-size: 12px;
    }

    body.woocommerce-lost-password form.lost_reset_password > p:first-child {
        padding: 13px 14px;
        font-size: 12px;
    }
}

/* =========================================================
   PRODOTTO VARIABILE
   QUANTITÀ A SINISTRA + AGGIUNGI AL CARRELLO A DESTRA
========================================================= */

.single-product-cart-box .single_variation_wrap {
    width: 100%;
}

.single-product-cart-box .woocommerce-variation-add-to-cart {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-top: 18px;
}

/* Quantità */

.single-product-cart-box
.woocommerce-variation-add-to-cart
.quantity {
    flex: 0 0 88px;
    width: 88px;
    margin: 0 !important;
    float: none !important;
}

.single-product-cart-box
.woocommerce-variation-add-to-cart
.quantity .qty {
    width: 100% !important;
    height: 52px;
    min-height: 52px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #E4E7EC;
    border-radius: 12px;
    background: var(--tm-light);
    color: var(--tm-text);
    font-size: 16px;
    font-weight: 900;
    line-height: 52px;
    text-align: center;
    outline: none;
    box-shadow: none;
}

.single-product-cart-box
.woocommerce-variation-add-to-cart
.quantity .qty:focus {
    border-color: var(--tm-green-dark);
    background: var(--tm-white);
    box-shadow: 0 0 0 4px rgba(127, 186, 0, 0.12);
}

/* Bottone aggiungi al carrello */

.single-product-cart-box
.woocommerce-variation-add-to-cart
.single_add_to_cart_button {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: 52px;
    margin: 0 !important;
    padding: 0 26px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--tm-green-dark) !important;
    color: var(--tm-white) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: normal;
    box-shadow: none !important;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.single-product-cart-box
.woocommerce-variation-add-to-cart
.single_add_to_cart_button:hover {
    background: var(--tm-green) !important;
    color: var(--tm-white) !important;
    transform: translateY(-1px);
}

/* Stato disabilitato prima della scelta della variante */

.single-product-cart-box
.woocommerce-variation-add-to-cart
.single_add_to_cart_button.disabled,
.single-product-cart-box
.woocommerce-variation-add-to-cart
.single_add_to_cart_button:disabled {
    background: #AAB2A0 !important;
    color: var(--tm-white) !important;
    cursor: not-allowed;
    opacity: 0.75;
    transform: none;
}

/* Evita clearfix o float WooCommerce */

.single-product-cart-box
.woocommerce-variation-add-to-cart::before,
.single-product-cart-box
.woocommerce-variation-add-to-cart::after {
    display: none !important;
    content: none !important;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
    .single-product-cart-box .woocommerce-variation-add-to-cart {
        gap: 10px;
    }

    .single-product-cart-box
    .woocommerce-variation-add-to-cart
    .quantity {
        flex-basis: 74px;
        width: 74px;
    }

    .single-product-cart-box
    .woocommerce-variation-add-to-cart
    .quantity .qty {
        height: 50px;
        min-height: 50px;
        padding: 0 6px;
        font-size: 15px;
        line-height: 50px;
        border-radius: 10px;
    }

    .single-product-cart-box
    .woocommerce-variation-add-to-cart
    .single_add_to_cart_button {
        min-height: 50px;
        padding: 0 14px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
    }
}