.commande-rapide {
    color: #123f42;
    background: #faf7f2;
}

.commande-rapide * {
    box-sizing: border-box;
}

.commande-rapide__hero {
    padding: 58px 5vw 28px;
    background: #f5ede3;
    border-bottom: 1px solid rgba(18, 63, 66, .12);
}

.commande-rapide__hero-inner,
.commande-rapide__toolbar,
.commande-rapide__layout {
    width: min(1480px, 90vw);
    margin: 0 auto;
}

.commande-rapide__hero-inner {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: flex-end;
}

.commande-rapide__eyebrow {
    margin: 0 0 10px;
    font-family: WorkSans, Arial, sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #b26a39;
    font-weight: 700;
}

.commande-rapide h1 {
    max-width: 850px;
    margin: 0;
    font-family: Butler, Georgia, serif;
    font-size: clamp(36px, 5vw, 68px);
    line-height: .95;
    letter-spacing: 0;
    color: #123f42;
}

.commande-rapide__intro {
    max-width: 720px;
    margin: 18px 0 0;
    font-family: WorkSans, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: rgba(18, 63, 66, .78);
}

.commande-rapide__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 10px;
    min-width: 250px;
}

.commande-rapide__metrics span {
    display: block;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid rgba(18, 63, 66, .12);
    border-radius: 6px;
    font-family: WorkSans, Arial, sans-serif;
    font-size: 13px;
    color: rgba(18, 63, 66, .72);
}

.commande-rapide__metrics strong {
    display: block;
    font-size: 26px;
    line-height: 1;
    color: #b26a39;
}

.commande-rapide__toolbar {
    position: sticky;
    top: 0;
    z-index: 15;
    display: grid;
    grid-template-columns: minmax(240px, .85fr) minmax(390px, 1.05fr) minmax(220px, .55fr) auto;
    gap: 10px;
    align-items: end;
    padding: 14px 0;
    background: rgba(250, 247, 242, .96);
    backdrop-filter: blur(12px);
}

.commande-rapide__search label,
.commande-rapide__select label {
    display: block;
    margin-bottom: 8px;
    font-family: WorkSans, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(18, 63, 66, .64);
}

.commande-rapide__search input,
.commande-rapide__select select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(18, 63, 66, .18);
    border-radius: 6px;
    background: #fff;
    color: #123f42;
    font-family: WorkSans, Arial, sans-serif;
    font-size: 15px;
    outline: none;
}

.commande-rapide__select select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #123f42 50%), linear-gradient(135deg, #123f42 50%, transparent 50%);
    background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.commande-rapide__categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.commande-rapide__categories button {
    min-height: 48px;
    padding: 0 10px;
    border: 1px solid rgba(18, 63, 66, .16);
    border-radius: 6px;
    background: #fff;
    color: #123f42;
    cursor: pointer;
    font-family: WorkSans, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.commande-rapide__categories button.is-active {
    border-color: #123f42;
    background: #123f42;
    color: #fff;
}

.commande-rapide__search input:focus,
.commande-rapide__select select:focus {
    border-color: #b26a39;
    box-shadow: 0 0 0 3px rgba(178, 106, 57, .14);
}

.commande-rapide__reset,
.commande-rapide__add {
    min-height: 48px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-family: WorkSans, Arial, sans-serif;
    font-weight: 700;
}

.commande-rapide__reset {
    padding: 0 18px;
    background: #eadccc;
    color: #123f42;
}

.commande-rapide__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
    padding: 12px 0 70px;
}

.commande-rapide__list {
    display: grid;
    gap: 12px;
}

.commande-rapide__product {
    display: grid;
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(18, 63, 66, .11);
    border-radius: 8px;
}

.commande-rapide__product.is-hidden {
    display: none;
}

.commande-rapide__product-head {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.commande-rapide__image {
    width: 54px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    background: #f4f0eb;
}

.commande-rapide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.commande-rapide__name {
    display: block;
    color: #123f42;
    font-family: Butler, Georgia, serif;
    font-size: 18px;
    line-height: 1.12;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.commande-rapide__variants {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 148px));
    gap: 8px;
    justify-content: start;
    align-items: stretch;
}

.commande-rapide__variant {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
    min-height: 48px;
    padding: 6px;
    border: 1px solid rgba(18, 63, 66, .12);
    border-radius: 6px;
    background: #fffdf9;
}

.commande-rapide__variant label {
    min-width: 0;
}

.commande-rapide__variant.is-disabled {
    opacity: .55;
}

.commande-rapide__format,
.commande-rapide__price {
    display: block;
    font-family: WorkSans, Arial, sans-serif;
    line-height: 1.2;
}

.commande-rapide__format {
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    color: #123f42;
    min-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.commande-rapide__price {
    font-size: 10px;
    color: #b26a39;
}

.commande-rapide__stock {
    font-family: WorkSans, Arial, sans-serif;
    font-size: 12px;
    color: #8a3b2d;
}

.commande-rapide__quantity {
    display: grid;
    grid-template-columns: 24px 32px 24px;
    height: 30px;
    border: 1px solid rgba(18, 63, 66, .14);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.commande-rapide__quantity button,
.commande-rapide__quantity input {
    width: 100%;
    border: 0;
    background: #fff;
    color: #123f42;
    font-family: WorkSans, Arial, sans-serif;
    text-align: center;
}

.commande-rapide__quantity button {
    cursor: pointer;
    font-size: 16px;
}

.commande-rapide__quantity input {
    border-left: 1px solid rgba(18, 63, 66, .1);
    border-right: 1px solid rgba(18, 63, 66, .1);
    font-size: 12px;
    font-weight: 700;
    appearance: textfield;
}

.commande-rapide__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    font-family: WorkSans, Arial, sans-serif;
}

.commande-rapide__pagination button {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(18, 63, 66, .16);
    border-radius: 6px;
    background: #fff;
    color: #123f42;
    cursor: pointer;
    font-weight: 700;
}

.commande-rapide__pagination button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.commande-rapide__pagination span {
    min-width: 110px;
    text-align: center;
    color: rgba(18, 63, 66, .7);
}

.commande-rapide.is-loading-products .commande-rapide__list {
    opacity: .52;
    pointer-events: none;
}

.commande-rapide__quantity input::-webkit-inner-spin-button,
.commande-rapide__quantity input::-webkit-outer-spin-button {
    appearance: none;
}

.commande-rapide__summary {
    position: sticky;
    top: 96px;
}

.commande-rapide__summary-inner {
    padding: 18px;
    background: #123f42;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 16px 34px rgba(18, 63, 66, .16);
}

.commande-rapide__summary-inner * {
    color: inherit;
}

.commande-rapide__summary-title {
    margin: 0 0 16px;
    font-family: Butler, Georgia, serif;
    font-size: 26px;
    color: #fff;
}

.commande-rapide__summary-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-family: WorkSans, Arial, sans-serif;
    color: rgba(255, 255, 255, .82);
}

.commande-rapide__summary-line strong {
    color: #fff;
}

.commande-rapide__add {
    width: 100%;
    margin-top: 16px;
    background: #d49c59;
    color: #123f42;
}

.commande-rapide__add,
.commande-rapide__add * {
    color: #123f42;
}

.commande-rapide__add:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.commande-rapide__notice {
    min-height: 20px;
    margin: 12px 0 0;
    font-family: WorkSans, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.35;
}

.commande-rapide__notice.is-error {
    color: #ffd6c7;
}

.commande-rapide__notice.is-success {
    color: #e5ffd9;
}

.commande-rapide__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.commande-rapide__links[hidden] {
    display: none !important;
}

.commande-rapide__links a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 6px;
    color: #fff;
    font-family: WorkSans, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.commande-rapide__links a:hover {
    border-color: rgba(255, 255, 255, .62);
    background: rgba(255, 255, 255, .08);
}

.commande-rapide__empty {
    display: none;
    padding: 42px;
    background: #fff;
    border: 1px solid rgba(18, 63, 66, .11);
    border-radius: 8px;
    text-align: center;
}

.commande-rapide__empty.is-visible {
    display: block;
}

.commande-rapide__empty h2 {
    margin: 0 0 8px;
    font-family: Butler, Georgia, serif;
    color: #123f42;
}

.commande-rapide__empty p {
    margin: 0;
    font-family: WorkSans, Arial, sans-serif;
}

@media (max-width: 1180px) {
    .commande-rapide__layout {
        grid-template-columns: 1fr;
    }

    .commande-rapide__summary {
        position: static;
    }
}

@media (max-width: 1120px) {
    .commande-rapide__toolbar {
        grid-template-columns: 1fr auto;
    }

    .commande-rapide__search,
    .commande-rapide__categories,
    .commande-rapide__select {
        grid-column: 1 / -1;
    }
}

@media (max-width: 780px) {
    .commande-rapide {
        padding-bottom: 0;
    }

    .commande-rapide.has-selection,
    .commande-rapide.has-cart-feedback {
        padding-bottom: 156px;
    }

    .commande-rapide__hero {
        padding: 26px 18px 18px;
    }

    .commande-rapide__hero-inner,
    .commande-rapide__toolbar,
    .commande-rapide__layout {
        width: min(100% - 28px, 560px);
    }

    .commande-rapide__hero-inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        align-items: start;
    }

    .commande-rapide h1 {
        font-size: 36px;
        line-height: 1;
    }

    .commande-rapide__intro {
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.45;
    }

    .commande-rapide__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
    }

    .commande-rapide__metrics span {
        padding: 12px;
    }

    .commande-rapide__toolbar {
        position: sticky;
        top: 0;
        z-index: 20;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 12px 0;
    }

    .commande-rapide__search {
        grid-column: 1 / -1;
    }

    .commande-rapide__categories {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-column: 1 / -1;
        gap: 5px;
    }

    .commande-rapide__select {
        grid-column: 1 / -1;
    }

    .commande-rapide__categories button {
        min-height: 42px;
        padding: 0 6px;
        font-size: 11px;
    }

    .commande-rapide__search label {
        margin-bottom: 6px;
        font-size: 11px;
    }

    .commande-rapide__search input,
    .commande-rapide__select select,
    .commande-rapide__reset {
        height: 46px;
        font-size: 15px;
    }

    .commande-rapide__reset {
        align-self: end;
        padding: 0 14px;
        white-space: nowrap;
    }

    .commande-rapide__layout {
        display: block;
        padding: 8px 0 20px;
    }

    .commande-rapide__list {
        gap: 10px;
    }

    .commande-rapide__product {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
        border-radius: 8px;
    }

    .commande-rapide__product-head {
        grid-template-columns: 50px minmax(0, 1fr);
        align-items: center;
    }

    .commande-rapide__image {
        width: 50px;
    }

    .commande-rapide__name {
        font-size: 18px;
        line-height: 1.1;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .commande-rapide__variants {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
        gap: 8px;
        justify-content: stretch;
    }

    .commande-rapide__variant {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 54px;
        padding: 8px;
    }

    .commande-rapide__format {
        font-size: 13px;
    }

    .commande-rapide__price {
        font-size: 12px;
    }

    .commande-rapide__quantity {
        grid-template-columns: 32px 40px 32px;
        height: 38px;
        border-radius: 8px;
    }

    .commande-rapide__quantity button {
        font-size: 22px;
        font-weight: 700;
    }

    .commande-rapide__quantity input {
        font-size: 16px;
    }

    .commande-rapide__summary {
        display: none;
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        top: auto;
        z-index: 30;
        padding: 10px 14px max(10px, env(safe-area-inset-bottom));
        background: rgba(250, 247, 242, .92);
        border-top: 1px solid rgba(18, 63, 66, .12);
        backdrop-filter: blur(14px);
    }

    .commande-rapide.has-selection .commande-rapide__summary,
    .commande-rapide.has-cart-feedback .commande-rapide__summary {
        display: block;
    }

    .commande-rapide__summary-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
        align-items: center;
        width: min(100%, 560px);
        margin: 0 auto;
        padding: 12px;
        border-radius: 8px;
        box-shadow: 0 -8px 28px rgba(18, 63, 66, .18);
    }

    .commande-rapide__summary-title {
        display: none;
    }

    .commande-rapide__summary-line {
        padding: 0;
        border-top: 0;
        font-size: 12px;
    }

    .commande-rapide__summary-line:nth-of-type(3) {
        grid-column: 1 / -1;
        padding-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, .16);
        font-size: 13px;
    }

    .commande-rapide__summary-line:nth-of-type(3) strong {
        font-size: 18px;
    }

    .commande-rapide__add {
        grid-column: 1 / -1;
        min-height: 48px;
        margin-top: 2px;
        font-size: 16px;
    }

    .commande-rapide__notice {
        grid-column: 1 / -1;
        min-height: 0;
        margin: 0;
        font-size: 12px;
    }

    .commande-rapide__links {
        grid-column: 1 / -1;
        margin-top: 0;
    }

    .commande-rapide__links a {
        min-height: 42px;
    }
}

@media (max-width: 420px) {
    .commande-rapide h1 {
        font-size: 32px;
    }

    .commande-rapide__toolbar {
        grid-template-columns: 1fr;
    }

    .commande-rapide__reset {
        width: 100%;
    }

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

    .commande-rapide__product-head {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .commande-rapide__image {
        width: 50px;
    }

    .commande-rapide__variant {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .commande-rapide__quantity {
        width: 100%;
        grid-template-columns: 36px minmax(42px, 1fr) 36px;
    }
}
