.site-brand-short,
.site-nav-icon,
.category-filter-button,
.category-filter-close,
.category-filter-backdrop {
    display: none;
}

.site-header-inner {
    gap: 2rem;
    justify-content: space-between;
}

.site-brand {
    color: #1d4d29;
    flex: 0 1 18rem;
    line-height: 1.1;
}

.site-nav,
.site-header-actions,
.site-account-link,
.site-cart-link {
    align-items: center;
    display: flex;
}

.site-nav {
    gap: clamp(1rem, 2.3vw, 2.25rem);
    justify-content: center;
}

.site-nav a {
    color: #4b5563;
    font-size: .82rem;
    font-weight: 700;
    padding: .65rem 0;
    position: relative;
    transition: color .2s ease;
}

.site-nav a::after {
    background: #c98d12;
    bottom: .35rem;
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
    width: 100%;
}

.site-nav a:hover {
    color: #1f5b2c;
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.site-header-actions {
    flex: 0 1 18rem;
    gap: .7rem;
    justify-content: flex-end;
}

.site-account-link {
    border: 1px solid #d4d4d8;
    border-radius: 9999px;
    color: #374151;
    font-size: .78rem;
    font-weight: 700;
    gap: .4rem;
    min-height: 2.45rem;
    padding: 0 .9rem;
    transition: border-color .2s ease, color .2s ease;
}

.site-account-link:hover {
    border-color: #1f5b2c;
    color: #1f5b2c;
}

.site-cart-link {
    background: #1f5b2c;
    border-radius: 9999px;
    color: #fff;
    gap: .45rem;
    min-height: 2.45rem;
    padding: 0 .75rem;
}

.home-carousel {
    background: transparent;
    position: relative;
}

.home-carousel-track,
.home-carousel-slide,
.home-carousel-image {
    width: 100%;
}

.home-carousel-slide {
    display: none;
}

.home-carousel-image {
    display: block;
    height: auto;
    opacity: 1;
    object-fit: contain;
}

.home-carousel-slide.is-active {
    display: block;
}

.home-carousel-control {
    align-items: center;
    background: rgba(9, 9, 11, .76);
    border-radius: 9999px;
    color: #fff;
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
}

.home-carousel-prev {
    left: .75rem;
}

.home-carousel-next {
    right: .75rem;
}

.home-carousel-dots {
    bottom: .75rem;
    display: flex;
    gap: .4rem;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

.home-carousel-dots button {
    background: rgba(255, 255, 255, .7);
    border-radius: 9999px;
    height: .55rem;
    width: .55rem;
}

.home-carousel-dots button.is-active {
    background: #f59e0b;
    width: 1.35rem;
}

.home-carousel-content {
    color: #1f2933;
    left: clamp(1rem, 4vw, 3rem);
    max-width: 21rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.home-carousel:not(.is-first-slide) .home-carousel-content {
    display: none;
}

.home-carousel-content p {
    color: #166534;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.home-carousel-content h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
    line-height: 1.05;
    margin-top: .65rem;
}

.home-carousel-content a {
    align-items: center;
    background: #166534;
    border-radius: .4rem;
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    margin-top: 1.25rem;
    min-height: 2.8rem;
    padding: 0 1.25rem;
}

.home-hero-modern {
    background: #f5f1e8;
    min-height: clamp(300px, 25vw, 420px);
    overflow: hidden;
    position: relative;
}

.home-hero-modern picture,
.home-hero-modern-image {
    display: block;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.home-hero-modern-image {
    object-fit: cover;
    object-position: center;
    transform: scale(1);
}

.home-hero-modern[data-carousel] .home-carousel-slide {
    display: block;
    opacity: 0;
    transition: opacity .7s ease-in-out;
}

.home-hero-modern[data-carousel] .home-carousel-slide.is-active {
    opacity: 1;
}

.home-hero-modern-content {
    color: #173b1d;
    left: clamp(1.5rem, 7vw, 9rem);
    max-width: min(32rem, 38vw);
    position: relative;
    padding: clamp(3rem, 6vw, 6.5rem) 0 clamp(2rem, 4vw, 4.5rem);
    z-index: 1;
}

.home-hero-modern-eyebrow {
    align-items: center;
    color: #5b7f28;
    display: flex;
    font-size: .74rem;
    font-weight: 900;
    gap: .65rem;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.home-hero-modern-eyebrow::before {
    background: #d7a91e;
    content: '';
    height: 2px;
    width: 2rem;
}

.home-hero-modern h1 {
    font-size: clamp(2.2rem, 4vw, 4.6rem);
    font-weight: 950;
    letter-spacing: -.055em;
    line-height: .98;
    margin-top: 1rem;
}

.home-hero-modern-text {
    color: #4b5d4d;
    font-size: clamp(.92rem, 1.15vw, 1.1rem);
    line-height: 1.6;
    margin-top: 1.2rem;
    max-width: 28rem;
}

.home-hero-modern-actions,
.home-hero-modern-benefits {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.home-hero-modern-actions {
    margin-top: 1.7rem;
}

.home-hero-modern-primary,
.home-hero-modern-secondary {
    align-items: center;
    border-radius: .5rem;
    display: inline-flex;
    font-size: .9rem;
    font-weight: 800;
    gap: .55rem;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.15rem;
    transition: transform .2s ease, background-color .2s ease;
}

.home-hero-modern-primary {
    background: #1f5b2c;
    color: #fff;
}

.home-hero-modern-primary:hover {
    background: #164522;
    transform: translateY(-2px);
}

.home-hero-modern-secondary {
    border: 1px solid rgba(31, 91, 44, .35);
    color: #1f5b2c;
}

.home-hero-modern-secondary:hover {
    background: rgba(255, 255, 255, .65);
}

.home-hero-modern-benefits {
    border-top: 1px solid rgba(31, 91, 44, .18);
    color: #315438;
    font-size: .75rem;
    font-weight: 700;
    gap: .8rem 1.1rem;
    margin-top: clamp(1.7rem, 3vw, 3rem);
    padding-top: 1rem;
}

.home-hero-modern-benefits span {
    align-items: center;
    display: inline-flex;
    gap: .35rem;
}

.home-hero-modern-benefits svg {
    color: #b78708;
}

.category-section-heading > div > p {
    color: #b78708;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.category-section-heading h2 {
    color: #173b1d;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin-top: .35rem;
}

.category-section-heading > a {
    align-items: center;
    color: #1f5b2c;
    display: inline-flex;
    font-size: .83rem;
    font-weight: 800;
    gap: .4rem;
    padding-bottom: .2rem;
}

.category-showcase-card {
    background: #fff;
    border: 1px solid #e8e5de;
    border-radius: .9rem;
    box-shadow: 0 7px 20px rgba(34, 53, 32, .04);
    color: #173b1d;
    display: block;
    overflow: hidden;
    position: relative;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.category-showcase-card::before {
    background: #d3a11a;
    content: '';
    height: 2.5rem;
    left: 0;
    opacity: .9;
    position: absolute;
    top: 0;
    width: .25rem;
}

.category-showcase-card:hover {
    border-color: #b6c79b;
    box-shadow: 0 15px 30px rgba(34, 53, 32, .11);
    transform: translateY(-4px);
}

.category-showcase-body {
    align-items: flex-start;
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    column-gap: .9rem;
    padding: 1.35rem 1.2rem;
}

.category-showcase-image {
    background: #f4f1e8;
    border: 1px solid #e8e5de;
    border-radius: .65rem;
    height: 4rem;
    object-fit: cover;
    width: 4rem;
}

.category-showcase-title {
    align-items: start;
    display: flex;
    gap: .5rem;
    justify-content: space-between;
}

.category-showcase-title h3 {
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.25;
}

.category-showcase-title svg {
    color: #b78708;
    flex: 0 0 auto;
}

.category-showcase-count {
    color: #667066;
    font-size: .78rem;
    font-weight: 600;
    margin-top: .35rem;
}

.category-showcase-children {
    border-top: 1px solid #ece9e1;
    color: #607059;
    font-size: .72rem;
    line-height: 1.45;
    margin-top: .85rem;
    padding-top: .75rem;
}

/* Catalogue : le contenu utilise toute la largeur, avec un filtre autonome. */
.products-page {
    margin-left: auto;
    margin-right: auto;
    max-width: none;
    width: 100%;
}

@media (min-width: 1024px) {
    .products-layout {
        align-items: start;
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .products-layout .category-sidebar {
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 6rem);
        overflow: hidden;
        position: sticky;
        top: 5rem;
    }

    .products-layout .category-sidebar nav {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: .25rem;
    }

    .catalog-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.category-showcase-body > .category-showcase-count,
.category-showcase-body > .category-showcase-children {
    grid-column: 2;
}

@media (max-width: 767px) {
    * {
        min-width: 0;
    }

    body {
        overflow-x: hidden;
        padding-bottom: 4.5rem;
    }

    .site-header {
        position: sticky;
        top: 0;
    }

    .site-header-inner {
        align-items: center;
        flex-direction: row;
        gap: .75rem;
        padding: .65rem .85rem;
    }

    .site-brand {
        flex: 1 1 auto;
        font-size: 1rem;
        line-height: 1.15rem;
        overflow: hidden;
        white-space: nowrap;
    }

    .site-brand-full {
        display: none;
    }

    .site-brand-short {
        display: inline;
    }

    .site-nav {
        display: none;
    }

    .site-header-actions {
        flex: 0 0 auto;
        gap: .4rem;
    }

    .site-account-link,
    .site-cart-link {
        align-items: center;
        border-radius: 9999px;
        display: inline-flex;
        height: 2.35rem;
        justify-content: center;
        min-width: 2.35rem;
        padding: 0 .65rem;
        white-space: nowrap;
    }

    .site-account-link span:not(.site-nav-label) {
        display: none;
    }

    .site-nav-products {
        border: 1px solid #d4d4d8;
    }

    .site-nav-icon {
        display: block;
    }

    .site-nav-products span,
    .site-nav-label {
        display: none;
    }

    main > section {
        padding-left: .85rem !important;
        padding-right: .85rem !important;
    }

    .home-hero {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0;
    }

    .home-hero-grid {
        padding: 0;
    }

    .home-hero-modern {
        min-height: 475px;
    }

    .home-hero-modern-image {
        object-position: 67% center;
    }

    .home-hero-modern::after {
        background: linear-gradient(90deg, rgba(248, 245, 236, .97) 0%, rgba(248, 245, 236, .84) 56%, rgba(248, 245, 236, .1) 100%);
        content: '';
        inset: 0;
        position: absolute;
    }

    .home-hero-modern-content {
        left: 0;
        max-width: 84%;
        padding: 3.4rem 1.2rem 2rem;
    }

    .home-hero-modern h1 {
        font-size: clamp(2.35rem, 11vw, 3.35rem);
    }

    .home-hero-modern-text {
        font-size: .92rem;
    }

    .home-hero-modern-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 13.5rem;
    }

    .home-hero-modern-primary,
    .home-hero-modern-secondary {
        width: 100%;
    }

    .home-hero-modern-benefits {
        align-items: flex-start;
        flex-direction: column;
        font-size: .72rem;
        gap: .55rem;
        margin-top: 1.45rem;
    }

    .home-hero h1,
    .page-title {
        font-size: 1.55rem;
        line-height: 1.9rem;
    }

    .home-hero p {
        line-height: 1.55rem;
    }

    .home-carousel {
        aspect-ratio: auto;
        height: clamp(205px, 58vw, 245px);
    }

    .home-carousel-track {
        height: 100%;
    }

    .home-carousel-slide,
    .home-carousel-image {
        height: 100%;
    }

    .home-carousel-image {
        object-fit: fill;
        object-position: center center;
        width: 100%;
    }

    .home-carousel-content {
        left: .95rem;
        max-width: min(70%, 17rem);
        top: 50%;
        transform: translateY(-50%);
    }

    .home-carousel-content p {
        font-size: .68rem;
    }

    .home-carousel-content h1 {
        font-size: clamp(1.15rem, 6vw, 1.55rem);
        line-height: 1.12;
    }

    .home-carousel-content a {
        font-size: .82rem;
        margin-top: .75rem;
        min-height: 2.35rem;
        padding: 0 .9rem;
        width: auto;
    }

    .home-carousel-control {
        height: 2rem;
        width: 2rem;
    }

    .home-actions a {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        min-height: 2.75rem;
        width: 100%;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-showcase {
        gap: .8rem;
    }

    .category-showcase-body {
        padding: 1.15rem;
    }

    .category-sidebar,
    .account-sidebar {
        border-radius: .5rem;
        max-height: none;
        overflow: visible;
    }

    .category-sidebar {
        border-radius: 0;
        bottom: 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, .18);
        left: 0;
        max-width: 88vw;
        overflow-y: auto;
        padding: 1rem;
        position: fixed;
        top: 0;
        transform: translateX(-105%);
        transition: transform .2s ease;
        width: 320px;
        z-index: 70;
    }

    .category-sidebar.is-open {
        transform: translateX(0);
    }

    .category-filter-button {
        align-items: center;
        display: inline-flex;
        gap: .5rem;
        justify-content: center;
        min-height: 2.75rem;
        width: 100%;
    }

    .category-filter-close {
        display: inline-flex;
    }

    .category-filter-backdrop {
        background: rgba(0, 0, 0, .35);
        bottom: 0;
        left: 0;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        right: 0;
        top: 0;
        transition: opacity .2s ease;
        z-index: 60;
    }

    .category-filter-backdrop.is-open {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .category-sidebar nav {
        display: grid;
        gap: .35rem;
        max-height: none;
        overflow-y: visible;
        padding-right: .15rem;
    }

    .category-sidebar nav > div {
        padding-top: .25rem;
    }

    .category-sidebar nav a {
        line-height: 1.25rem;
        padding-bottom: .55rem;
        padding-top: .55rem;
        white-space: normal;
    }

    .category-sidebar nav .ml-3 {
        margin-left: .4rem;
        padding-left: .55rem;
    }

    .product-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .product-card {
        border: 1px solid #d4d4d8 !important;
        border-radius: .5rem;
        box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
        display: flex;
        flex-direction: column;
    }

    .product-card > a {
        background: #fafafa;
        border-bottom: 1px solid #e4e4e7;
    }

    .product-card img {
        aspect-ratio: 4 / 3;
        height: auto;
        max-height: 190px;
        object-fit: contain;
        padding: .65rem;
        width: 100%;
    }

    .product-card > div {
        padding: 1rem;
    }

    .product-card .min-h-20 {
        min-height: 4.25rem;
    }

    .product-card .flex.items-center.justify-between {
        align-items: center;
        flex-direction: row;
        gap: .75rem;
    }

    .product-card button {
        min-height: 2.65rem;
    }

    .product-detail {
        gap: 1rem;
        padding-top: 1rem;
    }

    .product-detail-image img {
        max-height: 280px;
        object-fit: contain;
    }

    .product-detail-info h1 {
        font-size: 1.55rem;
        line-height: 1.9rem;
    }

    .product-detail-form {
        display: grid;
        grid-template-columns: 5rem 1fr;
    }

    .cart-row {
        grid-template-columns: 78px 1fr;
    }

    .cart-row img {
        height: 78px;
        width: 78px;
    }

    .cart-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .cart-actions form:first-child {
        flex: 1;
    }

    .cart-actions input {
        flex: 1;
        width: auto;
    }

    .checkout-grid,
    .account-dashboard {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-top: 1rem;
    }

    .checkout-grid form,
    .checkout-grid aside,
    .account-dashboard form,
    .account-dashboard aside {
        border-radius: .5rem;
        padding: 1rem;
    }

    .account-sidebar {
        order: -1;
    }

    .account-sidebar nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .account-sidebar nav a:nth-child(3) {
        grid-column: 1 / -1;
    }

    .floating-whatsapp {
        bottom: .85rem !important;
        padding: .8rem !important;
        right: .85rem !important;
    }

    .floating-whatsapp span {
        display: none;
    }

    footer {
        margin-top: 2.5rem !important;
    }
}

@media (max-width: 420px) {
    .site-header-inner {
        gap: .45rem;
    }

    .site-nav {
        gap: .3rem;
    }

    .site-nav a {
        min-width: 2.2rem;
        padding: 0 .55rem;
    }

    .product-card img {
        max-height: 170px;
    }
}
