:root {
    --bg: #f3f7f5;
    --surface: #ffffff;
    --ink: #10231c;
    --muted: #5b6f66;
    --line: #d7e4dd;
    --brand: #0f766e;
    --brand-dark: #0b5a54;
    --navy: #123047;
    --accent: #c45c26;
    --sale: #b42318;
    --shadow: 0 12px 40px rgba(16, 35, 28, 0.08);
    --radius: 14px;
    --font: "DM Sans", system-ui, sans-serif;
    --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(15, 118, 110, 0.12), transparent 60%),
        radial-gradient(900px 400px at 100% 0%, rgba(196, 92, 38, 0.08), transparent 50%),
        var(--bg);
    line-height: 1.5;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.container {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.topbar {
    background: var(--navy);
    color: #e8f0ec;
    font-size: 0.85rem;
}
.topbar__inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    flex-wrap: wrap;
}
.topbar__note { opacity: 0.75; margin: 0; }
.topbar p { margin: 0; }
.topbar__link { color: #fff; font-weight: 600; text-decoration: none; }
.topbar__link:hover { text-decoration: underline; }

.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 40;
}
.header__row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand search actions";
    gap: 1.25rem;
    align-items: center;
    padding: 1rem 0;
}
.brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.header-search { grid-area: search; }
.header-actions { grid-area: actions; }
.brand__mark {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--brand), #134e4a);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
    font-family: var(--display);
    font-size: 1.35rem;
}
.brand__text small { color: var(--muted); font-size: 0.75rem; }

.header-search {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}
.header-search select,
.header-search input {
    border: 0;
    padding: 0.7rem 1rem;
    background: transparent;
    outline: none;
}
.header-search select { border-right: 1px solid var(--line); color: var(--muted); }
.header-search button {
    border: 0;
    background: var(--brand);
    color: #fff;
    padding: 0 1.15rem;
    cursor: pointer;
    font-weight: 600;
}
.header-search button:hover { background: var(--brand-dark); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-link { color: var(--muted); font-weight: 500; }
.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--ink);
    color: #fff;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-weight: 600;
}
.cart-btn__count {
    background: var(--accent);
    min-width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
}

.category-nav {
    border-top: 1px solid var(--line);
    background: #fbfffd;
}
.category-nav__inner {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    padding: 0.55rem 0;
}
.category-nav a {
    white-space: nowrap;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}
.category-nav a:hover,
.category-nav a.is-active {
    background: rgba(15, 118, 110, 0.1);
    color: var(--brand-dark);
}

.flash {
    padding: 0.75rem 0;
    font-weight: 500;
}
.flash--success {
    background: #dff7ee;
    color: #0f5132;
    border-bottom: 1px solid #b7ebd6;
}

.hero {
    padding: 2.5rem 0 1rem;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: stretch;
    min-height: min(70vh, 560px);
}
.hero__copy {
    background:
        linear-gradient(160deg, rgba(18, 48, 71, 0.94), rgba(15, 118, 110, 0.88)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: #f4faf8;
    border-radius: calc(var(--radius) + 4px);
    padding: clamp(1.5rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow);
}
.hero__copy h1 {
    font-family: var(--display);
    font-size: clamp(2.8rem, 7vw, 4.6rem);
    line-height: 0.95;
    margin: 0.35rem 0 0.75rem;
}
.hero__lead {
    max-width: 34ch;
    font-size: 1.1rem;
    opacity: 0.92;
}
.hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.8;
    margin: 0;
}

.hero__showcase {
    display: grid;
    gap: 0.85rem;
}
.hero-slide {
    border-radius: var(--radius);
    padding: 1.25rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
    background: #123047;
}
.hero-slide:hover { transform: translateY(-3px); }
.hero-slide__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-slide__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem;
    margin: -0.35rem;
    border-radius: 12px;
    background: linear-gradient(180deg, transparent, rgba(10, 24, 36, 0.82));
}
.hero-slide strong { font-size: 1.15rem; max-width: 22ch; }
.hero-slide--1 { background: linear-gradient(135deg, #0f766e, #134e4a); }
.hero-slide--2 { background: linear-gradient(135deg, #c45c26, #9a3412); }
.hero-slide--3 { background: linear-gradient(135deg, #123047, #1e3a5f); }

.section { padding: 2.75rem 0; }
.section--muted { background: rgba(255, 255, 255, 0.55); border-block: 1px solid var(--line); }
.section__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.35rem;
}
.section__head h2 {
    font-family: var(--display);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0;
}
.section__head a { color: var(--brand); font-weight: 600; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.category-tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem;
    display: grid;
    gap: 0.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.category-tile__icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--tile) 18%, white);
    color: var(--tile);
    font-weight: 700;
}
.category-tile strong { font-size: 1.02rem; }
.category-tile small { color: var(--muted); }

.promo-band {
    padding: 0 0 0.5rem;
}
.promo-band__inner {
    background: linear-gradient(90deg, #123047, #0f766e);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.promo-band h2 { font-family: var(--display); margin: 0 0 0.25rem; font-size: 1.6rem; }
.promo-band p { margin: 0; opacity: 0.9; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.product-card__media { position: relative; display: block; background: #f7faf9; }
.product-card__img {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.product-card:hover .product-card__img { transform: scale(1.04); }
.product-card__placeholder {
    aspect-ratio: 1 / 1;
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, white), #fff),
        radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 55%);
    display: grid;
    place-items: center;
}
.product-card__placeholder span {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 85%, black);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 1.6rem;
}
.product-card__body { padding: 1rem; display: grid; gap: 0.45rem; flex: 1; }
.product-card__meta { margin: 0; color: var(--muted); font-size: 0.8rem; }
.product-card__title { margin: 0; font-size: 1rem; line-height: 1.3; }
.product-card__price { display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; }
.product-card__price strong { color: var(--brand-dark); }
.product-card__price s { color: var(--muted); font-size: 0.9rem; }
.product-card__price--lg strong { font-size: 1.6rem; }
.product-card__actions { margin-top: auto; }

.badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--navy);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    z-index: 1;
}
.badge--sale { background: var(--sale); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
}
.hero__copy .btn--ghost { color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--sm { padding: 0.55rem 0.95rem; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.offer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.offer-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    align-items: center;
}
.offer-card__visual {
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 40%, white));
}
.offer-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.offer-card h3 { margin: 0.25rem 0 0.5rem; font-size: 1.15rem; }
.text-link { color: var(--brand); font-weight: 600; }

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.trust-row > div {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.trust-row strong { display: block; margin-bottom: 0.25rem; }
.trust-row p { margin: 0; color: var(--muted); }

.page-hero {
    padding: 2rem 0 0.5rem;
}
.page-hero h1 {
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0.2rem 0;
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}
.shop-filters {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem;
    position: sticky;
    top: 6.5rem;
}
.shop-filters__summary {
    list-style: none;
    display: none;
    cursor: pointer;
    font-weight: 700;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    user-select: none;
}
.shop-filters__summary::-webkit-details-marker { display: none; }
.shop-filters__chevron {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-bottom: 0.2rem;
}
.shop-filters[open] .shop-filters__chevron {
    transform: rotate(-135deg);
    margin-bottom: 0;
}
.shop-filters__title { margin: 0 0 1rem; font-size: 1.1rem; }
.shop-filters h2 { margin: 0 0 1rem; font-size: 1.1rem; }
.field { display: grid; gap: 0.35rem; margin-bottom: 0.85rem; }
.field span { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.field input,
.field select,
.qty-input,
.buy-form input,
.newsletter input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    background: #fff;
}
.check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
    font-size: 0.95rem;
}

.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.product-page__media {
    position: relative;
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}
.product-page__img {
    aspect-ratio: 1;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    background: #f7faf9;
}
.product-page__placeholder {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 25%, white), #fff);
}
.product-page__placeholder span {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    font-family: var(--display);
    font-size: 2.4rem;
}
.product-page__info h1 {
    font-family: var(--display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0.35rem 0 0.75rem;
}
.product-page__lead { font-size: 1.05rem; color: var(--muted); }
.stock { font-weight: 600; }
.stock.in { color: var(--brand); }
.stock.out { color: var(--sale); }
.buy-form {
    display: flex;
    gap: 0.75rem;
    align-items: end;
    flex-wrap: wrap;
    margin: 1.25rem 0;
}
.buy-form label { display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.buy-form input { width: 5rem; }
.product-page__desc {
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
}
.muted { color: var(--muted); }

.cart-table-wrap { overflow-x: auto; }
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.cart-table th,
.cart-table td {
    text-align: left;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--line);
}
.cart-table th { background: #f0f7f4; font-size: 0.85rem; color: var(--muted); }
.cart-product {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.cart-product__img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #f7faf9;
    flex-shrink: 0;
}
.qty-input { width: 4.5rem; }
.cart-summary {
    margin-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: start;
}
.cart-summary__box {
    width: min(320px, 100%);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem;
    display: grid;
    gap: 0.5rem;
}
.cart-summary__box strong { font-size: 1.5rem; }
.cart-remove-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}
.link-danger {
    background: none;
    border: 0;
    color: var(--sale);
    cursor: pointer;
    padding: 0;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.pagination-wrap { margin-top: 1.5rem; }
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.55rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 0.9rem;
}
.pagination .is-current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 700;
}

.site-footer {
    margin-top: 2rem;
    background: var(--navy);
    color: #d7e4dd;
    padding: 3rem 0 1.5rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 1.5rem;
}
.footer__copy { color: #a8bdb3; max-width: 36ch; }
.footer__copy a { color: #fff; text-decoration: underline; }
.site-footer h3 {
    margin: 0 0 0.75rem;
    color: #fff;
    font-size: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-footer a:hover { color: #fff; }
.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; }
.newsletter button {
    border: 0;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    padding: 0 1rem;
    font-weight: 600;
    cursor: pointer;
}
.footer__bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9db3a9;
    font-size: 0.9rem;
}

.mobile-dock { display: none; }

/* ——— Tablette ——— */
@media (max-width: 980px) {
    .header__row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand actions"
            "search search";
        gap: 0.85rem;
        padding: 0.85rem 0;
    }
    .hero__grid,
    .shop-layout,
    .product-page,
    .footer__grid,
    .offer-grid,
    .trust-row { grid-template-columns: 1fr; }
    .category-grid,
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-filters { position: static; }
    .hero__grid { min-height: auto; }
    .hero-slide { min-height: 150px; }
    .offer-card { grid-template-columns: 100px 1fr; }
}

/* ——— Mobile ——— */
@media (max-width: 720px) {
    .container {
        width: min(1180px, calc(100% - 1.25rem));
    }

    .topbar { font-size: 0.78rem; }
    .topbar__inner {
        justify-content: center;
        text-align: center;
        padding: 0.45rem 0;
        gap: 0.2rem;
    }
    .topbar__note { display: none; }

    .site-header { z-index: 50; }
    .brand__mark {
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 10px;
        font-size: 0.9rem;
    }
    .brand__text strong { font-size: 1.2rem; }
    .brand__text small { display: none; }
    .header-link { display: none; }
    .cart-btn {
        padding: 0.55rem 0.85rem;
        gap: 0.4rem;
        min-height: 44px;
    }
    .cart-btn__label { font-size: 0.9rem; }

    .header-search {
        grid-template-columns: 1fr auto;
        border-radius: 14px;
    }
    .header-search__category { display: none; }
    .header-search input {
        min-width: 0;
        padding: 0.75rem 0.9rem;
        font-size: 1rem;
    }
    .header-search button {
        padding: 0 1rem;
        min-height: 44px;
    }

    .category-nav__inner {
        gap: 0.15rem;
        padding: 0.45rem 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        mask-image: linear-gradient(90deg, #000 92%, transparent);
    }
    .category-nav__inner::-webkit-scrollbar { display: none; }
    .category-nav a {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    .hero { padding: 1.15rem 0 0.5rem; }
    .hero__grid { gap: 0.85rem; }
    .hero__copy {
        padding: 1.35rem 1.25rem;
        border-radius: 16px;
        min-height: 240px;
    }
    .hero__copy h1 {
        font-size: clamp(2.35rem, 12vw, 3.2rem);
        margin: 0.25rem 0 0.55rem;
    }
    .hero__lead {
        font-size: 0.98rem;
        max-width: none;
    }
    .hero__cta {
        margin-top: 1rem;
        gap: 0.55rem;
    }
    .hero__cta .btn {
        flex: 1 1 auto;
        min-height: 44px;
        padding: 0.7rem 1rem;
    }
    .hero__showcase {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
    .hero-slide {
        min-height: 120px;
        padding: 1rem;
    }
    .hero-slide strong { font-size: 1rem; }

    .section { padding: 1.75rem 0; }
    .section__head {
        align-items: center;
        margin-bottom: 1rem;
    }
    .section__head h2 { font-size: 1.45rem; }
    .section__head a { font-size: 0.9rem; white-space: nowrap; }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    .category-tile {
        padding: 0.9rem;
        border-radius: 12px;
    }
    .category-tile strong { font-size: 0.92rem; }
    .category-tile small { font-size: 0.75rem; }

    .promo-band__inner {
        padding: 1.15rem 1.2rem;
        border-radius: 14px;
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    .promo-band h2 { font-size: 1.3rem; }
    .promo-band .btn { width: 100%; min-height: 44px; }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    .product-card { border-radius: 12px; }
    .product-card__body {
        padding: 0.7rem 0.75rem 0.85rem;
        gap: 0.3rem;
    }
    .product-card__meta {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .product-card__title {
        font-size: 0.86rem;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.15em;
    }
    .product-card__price strong { font-size: 0.92rem; }
    .product-card__price s { font-size: 0.75rem; }
    .product-card__actions .btn {
        width: 100%;
        min-height: 40px;
        padding: 0.5rem 0.65rem;
        font-size: 0.85rem;
    }
    .badge {
        top: 0.5rem;
        left: 0.5rem;
        font-size: 0.65rem;
        padding: 0.25rem 0.45rem;
    }

    .offer-grid { gap: 0.75rem; }
    .offer-card {
        grid-template-columns: 88px 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    .offer-card__visual { height: 88px; }
    .offer-card h3 { font-size: 1rem; }

    .trust-row { gap: 0.65rem; }
    .trust-row > div { padding: 1rem; }

    .page-hero { padding: 1.25rem 0 0.25rem; }
    .page-hero h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }

    .shop-filters {
        padding: 0;
        overflow: hidden;
    }
    .shop-filters__summary {
        display: flex;
        padding: 0.95rem 1rem;
        min-height: 48px;
    }
    .shop-filters__title { display: none; }
    .shop-filters__form { padding: 0 1rem 1rem; }
    .shop-filters .btn { min-height: 44px; }

    .product-page { gap: 1.15rem; }
    .product-page__media { border-radius: 14px; }
    .product-page__info h1 { font-size: clamp(1.55rem, 7vw, 2rem); }
    .buy-form {
        display: grid;
        grid-template-columns: 5.5rem 1fr;
        align-items: end;
    }
    .buy-form .btn { min-height: 48px; width: 100%; }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td { display: block; width: 100%; }
    .cart-table thead { display: none; }
    .cart-table {
        border: 0;
        background: transparent;
        overflow: visible;
    }
    .cart-table tr {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 0.85rem;
        margin-bottom: 0.75rem;
    }
    .cart-table td {
        border: 0;
        padding: 0.45rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    .cart-table td:first-child {
        display: block;
        padding-bottom: 0.75rem;
        margin-bottom: 0.35rem;
        border-bottom: 1px solid var(--line);
    }
    .cart-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.8rem;
        font-weight: 600;
    }
    .cart-table td:first-child::before { display: none; }
    .cart-product__img {
        width: 72px;
        height: 72px;
    }
    .qty-input {
        width: 4.25rem;
        min-height: 44px;
        text-align: center;
    }
    .cart-summary {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .cart-summary__box { width: 100%; }
    .cart-summary .btn { width: 100%; min-height: 44px; }

    .newsletter { grid-template-columns: 1fr; }
    .newsletter button { min-height: 44px; padding: 0.75rem 1rem; }
    .footer__grid { gap: 1.75rem; }
    .site-footer { padding: 2.25rem 0 calc(5.5rem + env(safe-area-inset-bottom, 0)); }

    .pagination a,
    .pagination span {
        min-width: 2.5rem;
        height: 2.5rem;
    }

    /* Dock bas style app */
    .mobile-dock {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--line);
        padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0));
        box-shadow: 0 -8px 30px rgba(16, 35, 28, 0.08);
    }
    .mobile-dock a {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        min-height: 52px;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--muted);
        border-radius: 12px;
    }
    .mobile-dock a.is-active { color: var(--brand-dark); background: rgba(15, 118, 110, 0.08); }
    .mobile-dock__icon { display: grid; place-items: center; }
    .mobile-dock__badge {
        position: absolute;
        top: 0.2rem;
        right: calc(50% - 1.6rem);
        min-width: 1.15rem;
        height: 1.15rem;
        padding: 0 0.3rem;
        border-radius: 999px;
        background: var(--accent);
        color: #fff;
        font-size: 0.65rem;
        display: grid;
        place-items: center;
        line-height: 1;
    }

    main { padding-bottom: 0.5rem; }
}

@media (max-width: 380px) {
    .product-card__meta { display: none; }
    .hero__cta { flex-direction: column; }
    .hero__cta .btn { width: 100%; }
    .offer-card { grid-template-columns: 1fr; }
    .offer-card__visual { height: 140px; width: 100%; }
}

@media (hover: none) {
    .product-card:hover,
    .category-tile:hover,
    .hero-slide:hover,
    .btn:hover { transform: none; }
    .product-card:hover .product-card__img { transform: none; }
}

/* ——— Logo M&M ParaHealth ——— */
.brand__logo {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

/* ——— Accueil : carrousel produits (gauche) + cartes verticales (droite) ——— */
.hero__grid {
    --hero-h: clamp(560px, calc(100vh - var(--hero-top, 220px) - 1.75rem), 820px);
    --stack-gap: 0.85rem;
    min-height: 0;
    height: var(--hero-h);
    grid-template-rows: var(--hero-h);
}
.hero-carousel {
    position: relative;
    height: 100%;
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: linear-gradient(160deg, #123047, #0f766e);
    color: #f4faf8;
}
.hero-carousel__slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 1rem;
    padding: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.5rem, 3.5vw, 2.75rem) 3.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(6%);
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s linear 0.7s;
}
.hero-carousel__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-carousel__slide.is-leaving { transform: translateX(-6%); }
.hero-carousel__logo {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.hero-carousel__title {
    font-family: var(--display);
    font-size: clamp(1.4rem, 2.3vw, 2rem);
    line-height: 1.12;
    margin: 0.4rem 0 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-carousel__price { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-size: 1.15rem; }
.hero-carousel__price strong { font-size: 1.6rem; }
.hero-carousel__price s { opacity: 0.7; }
.hero-carousel__price .badge,
.hero-card__price .badge { position: static; }
.hero-carousel .btn--ghost { color: #fff; }
.hero-carousel__media {
    align-self: stretch;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
}
.hero-carousel__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}
.hero-carousel__slide.is-active .hero-carousel__media img { animation: hero-zoom 6s ease-out both; }
@keyframes hero-zoom {
    from { transform: scale(0.92); }
    to { transform: scale(1.04); }
}
.hero-carousel__nav {
    position: absolute;
    bottom: 0.9rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    backdrop-filter: blur(4px);
}
.hero-carousel__nav:hover { background: rgba(255, 255, 255, 0.32); }
.hero-carousel__nav--prev { right: 3.6rem; }
.hero-carousel__nav--next { right: 0.9rem; }
.hero-carousel__dots {
    position: absolute;
    left: clamp(1.5rem, 3.5vw, 2.75rem);
    bottom: 1.1rem;
    display: flex;
    gap: 0.4rem;
    z-index: 3;
}
.hero-carousel__dots button {
    width: 1.6rem;
    height: 0.3rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
    cursor: pointer;
}
.hero-carousel__dots button span { display: block; width: 0; height: 100%; background: #fff; }
.hero-carousel__dots button.is-active { width: 2.6rem; }
.hero-carousel__dots button.is-active span { animation: hero-progress var(--hero-interval, 5s) linear forwards; }
.hero-carousel.is-paused .hero-carousel__dots button.is-active span { animation-play-state: paused; }
@keyframes hero-progress { to { width: 100%; } }

.hero-stack {
    height: 100%;
    display: flex;
    gap: 0.75rem;
    min-width: 0;
    min-height: 0;
}
.hero-stack__viewport {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
}
.hero-stack__nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
}
.hero-stack__btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 0;
    background: rgba(15, 118, 110, 0.55);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transform: rotate(90deg);
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
}
.hero-stack__btn:hover { background: rgba(15, 118, 110, 0.8); }
.hero-stack__track {
    display: flex;
    flex-direction: column;
    gap: var(--stack-gap);
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.hero-card {
    height: calc((var(--hero-h) - 2 * var(--stack-gap)) / 3);
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    color: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}
.hero-card:hover { transform: translateX(-4px); }
.hero-card--1 { background: linear-gradient(135deg, #0f766e, #134e4a); }
.hero-card--2 { background: linear-gradient(135deg, #c45c26, #9a3412); }
.hero-card--3 { background: linear-gradient(135deg, #123047, #1e3a5f); }
.hero-card__content { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.hero-card__content strong {
    font-size: 1.02rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-card__price { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.hero-card__img {
    width: clamp(84px, 9vw, 120px);
    height: clamp(84px, 9vw, 120px);
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 0.35rem;
}

@media (max-width: 980px) {
    .hero__grid { --hero-h: 380px; height: auto; grid-template-rows: var(--hero-h) var(--hero-h); }
}
@media (max-width: 720px) {
    .hero__grid { --hero-h: 340px; }
    .hero-carousel__slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 1.15rem 1.15rem 2.4rem; }
    .hero-carousel__logo { display: none; }
    .hero-carousel__title { font-size: 1.35rem; -webkit-line-clamp: 2; margin-bottom: 0.5rem; }
    .hero-carousel__price strong { font-size: 1.25rem; }
    .hero-carousel .hero__cta { display: none; }
    .hero-carousel__media img { max-height: 170px; }
    .hero-carousel__nav { display: none; }
    .brand__logo { width: 2.5rem; height: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-carousel__slide,
    .hero-stack__track { transition: none; }
    .hero-carousel__slide.is-active .hero-carousel__media img { animation: none; }
}

/* ——— Commande (paiement à la livraison) ——— */
.checkout { padding: 2.5rem 0 4rem; }
.checkout__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 2rem;
    align-items: start;
}
.checkout__form-wrap,
.checkout__summary,
.checkout__thanks {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow);
    padding: clamp(1.25rem, 3vw, 2.25rem);
}
.checkout__title { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; margin: 0.3rem 0 0.6rem; }
.checkout__lead { color: var(--muted); margin: 0 0 1.25rem; }
.checkout__steps { display: flex; gap: 0.5rem; padding: 0; margin: 0 0 1.5rem; list-style: none; flex-wrap: wrap; counter-reset: step; }
.checkout__steps li {
    counter-increment: step;
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--bg);
    color: var(--muted);
}
.checkout__steps li::before { content: counter(step) ". "; font-weight: 700; }
.checkout__steps li.is-done { background: #e3f4ee; color: var(--brand); }
.checkout__steps li.is-active { background: var(--brand); color: #fff; }
.checkout__form { display: grid; gap: 1rem; }
.checkout__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input,
.field textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdfc;
    font: inherit;
    font-size: 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15); background: #fff; }
.field [aria-invalid="true"] { border-color: var(--sale); }
.field__error { color: var(--sale); font-size: 0.85rem; margin: 0; }
.field__hint { color: var(--muted); font-size: 0.82rem; margin: 0; }
.checkout__submit { padding: 1rem; font-size: 1.05rem; margin-top: 0.25rem; }
.checkout__reassure { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: center; color: var(--muted); font-size: 0.85rem; margin: 0; }
.checkout__summary { position: sticky; top: 6rem; }
.checkout__summary h2 { font-size: 1.1rem; margin: 0 0 1rem; }
.checkout__items { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.75rem; }
.checkout__items li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: center; font-size: 0.92rem; }
.checkout__items--plain li { grid-template-columns: 1fr auto; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.checkout__thumb {
    position: relative;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.checkout__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.checkout__thumb b {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 0.75rem;
    display: grid;
    place-items: center;
}
.checkout__name { line-height: 1.3; }
.checkout__totals { margin: 0 0 1rem; border-top: 1px solid var(--line); padding-top: 0.75rem; display: grid; gap: 0.4rem; }
.checkout__totals div { display: flex; justify-content: space-between; }
.checkout__totals dt { color: var(--muted); }
.checkout__totals dd { margin: 0; font-weight: 600; }
.checkout__total { font-size: 1.1rem; padding-top: 0.4rem; }
.checkout__total dt { color: var(--ink); font-weight: 700; }
.checkout__total dd { color: var(--brand); font-weight: 800; }
.checkout__thanks { max-width: 680px; text-align: center; }
.checkout__thanks .checkout__items { text-align: left; }
.checkout__thanks-cta { justify-content: center; }
.checkout__check {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 2rem;
    display: grid;
    place-items: center;
}
@media (max-width: 860px) {
    .checkout__grid { grid-template-columns: 1fr; }
    .checkout__summary { position: static; order: -1; }
}
@media (max-width: 520px) {
    .field-row { grid-template-columns: 1fr; }
}

/* ——— Sélecteur de langue ——— */
.lang-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}
.lang-switch a {
    min-width: 2.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch a:hover { color: var(--brand); }
.lang-switch a.is-active { background: var(--brand); color: #fff; }
@media (max-width: 720px) {
    .lang-switch a { min-width: 2rem; padding: 0.25rem 0.45rem; font-size: 0.72rem; }
}

/* ——— Arabe (droite à gauche) ——— */
[dir="rtl"] {
    --font: "Tajawal", "DM Sans", system-ui, sans-serif;
    --display: "Tajawal", "DM Sans", system-ui, sans-serif;
}
[dir="rtl"] body { line-height: 1.65; }
[dir="rtl"] .eyebrow,
[dir="rtl"] .lang-switch a { letter-spacing: 0; }
[dir="rtl"] .header-search select { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .badge { left: auto; right: 0.75rem; }
[dir="rtl"] .cart-table th,
[dir="rtl"] .cart-table td,
[dir="rtl"] .checkout__thanks .checkout__items { text-align: right; }
[dir="rtl"] .checkout__thumb b { right: auto; left: -8px; }
[dir="rtl"] .hero-carousel__nav { transform: scaleX(-1); }
[dir="rtl"] .hero-carousel__nav--prev { right: auto; left: 3.6rem; }
[dir="rtl"] .hero-carousel__nav--next { right: auto; left: 0.9rem; }
[dir="rtl"] .hero-carousel__dots { left: auto; right: clamp(1.5rem, 3.5vw, 2.75rem); }
[dir="rtl"] .hero-card:hover { transform: translateX(4px); }
@media (max-width: 720px) {
    [dir="rtl"] .promo-band__inner { text-align: right; }
    [dir="rtl"] .badge { left: auto; right: 0.5rem; }
    [dir="rtl"] .mobile-dock__badge { right: auto; left: calc(50% - 1.6rem); }
}
