/****** PANIER ******/

.cart-body {
    background: #fbf8f5;
}

.cart-page {
    width: min(1180px, calc(100% - 40px));
    min-height: 55vh;
    margin: 54px auto 90px;
}

.cart-header {
    margin-bottom: 38px;
    text-align: center;
}

.cart-eyebrow,
.cart-summary-eyebrow {
    margin: 0 0 7px;
    color: #a96352;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.cart-header h1,
.cart-empty h1 {
    margin: 0;
    color: #332d2a;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.55rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1;
}

.cart-header > p:last-child {
    margin: 12px 0 0;
    color: #82736c;
    font-size: .94rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 30px;
    align-items: start;
}

.cart-products {
    min-width: 0;
}

.cart-items {
    display: grid;
    gap: 18px;
}

.cart-item {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 25px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(117, 87, 75, .13);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(67, 48, 40, .055);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cart-item:hover {
    border-color: rgba(181, 110, 90, .3);
    box-shadow: 0 16px 42px rgba(67, 48, 40, .09);
    transform: translateY(-2px);
}

.cart-item-image {
    display: grid;
    min-height: 180px;
    overflow: hidden;
    place-items: center;
    border-radius: 14px;
    background: #f4ece7;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-image-placeholder {
    color: #b56e5a;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
    letter-spacing: .08em;
}

.cart-item-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.cart-item-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
}

.cart-item-content h2 {
    margin: 0;
    color: #332d2a;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.15;
}

.cart-item-price {
    margin: 2px 0 0;
    color: #9f5f4f;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.cart-quantity {
    display: grid;
    width: max-content;
    gap: 7px;
    margin-top: 25px;
    color: #71635c;
    font-size: .78rem;
    font-weight: 500;
}

.cart-quantity input[type="number"] {
    width: 76px;
    min-height: 42px;
    padding: 7px 8px 7px 13px;
    color: #332d2a;
    border: 1px solid #ded2cc;
    border-radius: 10px;
    outline: none;
    background: #fffdfa;
    font: inherit;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.cart-quantity input[type="number"]:focus {
    border-color: #b56e5a;
    box-shadow: 0 0 0 3px rgba(181, 110, 90, .12);
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    padding-top: 18px;
    margin-top: auto;
    border-top: 1px solid #eee6e1;
}

.cart-item-total {
    display: grid;
    gap: 3px;
    margin: 0;
}

.cart-item-total span {
    color: #8b7d76;
    font-size: .72rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.cart-item-total strong {
    color: #332d2a;
    font-size: 1.08rem;
}

.cart-item-remove {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: #9c6a5d;
    cursor: pointer;
    font-size: .8rem;
}

.cart-item-remove input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #b56e5a;
}

.cart-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 17px;
}

.cart-update-button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 9px 2px;
    color: #8d5a4d;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: .86rem;
}

.cart-update-button:hover {
    border-bottom-color: currentColor;
}

.cart-summary {
    position: sticky;
    top: 105px;
    padding: 30px;
    border: 1px solid rgba(117, 87, 75, .13);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(67, 48, 40, .07);
}

.cart-summary h2 {
    margin: 0;
    color: #332d2a;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.75rem;
    font-weight: 600;
}

.cart-summary-details {
    display: grid;
    gap: 14px;
    padding: 24px 0;
    margin-top: 18px;
    border-top: 1px solid #eee6e1;
    border-bottom: 1px solid #eee6e1;
}

.cart-summary-line,
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: baseline;
}

.cart-summary-line {
    color: #746861;
    font-size: .87rem;
}

.cart-summary-line strong {
    color: #4b423e;
    font-size: .9rem;
    white-space: nowrap;
}

.cart-summary-total {
    padding: 22px 0 9px;
    color: #332d2a;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    font-weight: 600;
}

.cart-summary-total strong {
    color: #a96352;
    font-size: 1.7rem;
    white-space: nowrap;
}

.cart-shipping-note {
    margin: 0 0 21px;
    color: #8b7d76;
    font-size: .74rem;
    line-height: 1.5;
}

.cart-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 26px;
    color: #fff;
    border: 1px solid #b56e5a;
    border-radius: 999px;
    background: #b56e5a;
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cart-button:hover {
    border-color: #9f5f4f;
    background: #9f5f4f;
    box-shadow: 0 8px 20px rgba(159, 95, 79, .2);
    transform: translateY(-1px);
}

.cart-checkout-button {
    width: 100%;
}

.cart-button-secondary {
    color: #b56e5a;
    border-color: rgba(181, 110, 90, .3);
    background: transparent;
}

.cart-button-secondary:hover {
    color: #9f5f4f;
    background: rgba(181, 110, 90, .08);
}

.cart-button-continue {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    padding: 11px 10px 0;
    color: #826f67;
    font-size: .82rem;
    text-decoration: none;
}

.cart-button-continue:hover {
    color: #9f5f4f;
}

.cart-empty {
    max-width: 650px;
    padding: 65px 35px;
    margin: 30px auto 0;
    border: 1px solid rgba(117, 87, 75, .13);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 14px 42px rgba(67, 48, 40, .06);
    text-align: center;
}

.cart-empty-icon {
    display: grid;
    width: 55px;
    height: 55px;
    place-items: center;
    margin: 0 auto 20px;
    color: #b56e5a;
    border-radius: 50%;
    background: #f7ede8;
    font-size: 1.4rem;
}

.cart-empty > p:not(.cart-eyebrow) {
    max-width: 430px;
    margin: 18px auto 28px;
    color: #786b65;
    line-height: 1.6;
}

/******** ORDER CONFIRMATION *********/

.order-confirmation-page {
    width: 90%;
    max-width: 980px;
    margin: 50px auto 90px;
}

.order-confirmation-hero {
    text-align: center;
    margin-bottom: 38px;
}

.order-confirmation-icon {
    display: inline-grid;
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: #B56E5A;
    box-shadow: 0 12px 28px rgba(181, 110, 90, .24);
    font-size: 1.65rem;
    font-weight: 600;
}

.order-confirmation-eyebrow {
    margin: 0;
    color: #8A6A5E;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 1.8rem;
}

.order-confirmation-hero h1 {
    color: #B56E5A;
    font-size: 2.2rem;
    font-weight: 500;
    margin: 12px 0;
}

.order-confirmation-hero p {
    color: #5F5651;
}

.order-confirmation-status {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}

.order-confirmation-status strong {
    padding: 5px 12px;
    color: #8d594c;
    border: 1px solid rgba(181, 110, 90, .2);
    border-radius: 999px;
    background: rgba(181, 110, 90, .08);
    font-size: .88rem;
}

.order-confirmation-status .order-status-paid,
.order-confirmation-status .order-status-preparing {
    color: #51753A;
    border-color: transparent;
    background: #EEF6EA;
}

.order-confirmation-card {
    padding: 36px;
    border: 1px solid rgba(181,110,90,.16);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,250,246,.96));
    box-shadow: 0 18px 48px rgba(71,50,42,.08);
}

.order-confirmation-card h2 {
    padding-bottom: 18px;
    margin-bottom: 20px;
    color: #9F5F4F;
    border-bottom: 1px solid rgba(181,110,90,.16);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.75rem;
    font-weight: 500;
}

.order-items-list {
    display: grid;
    gap: 16px;
}

.order-item-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid rgba(181,110,90,.16);
    border-left: 4px solid #B56E5A;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(71,50,42,.045);
}

.order-item-visual {
    display: grid;
    width: 76px;
    height: 76px;
    overflow: hidden;
    place-items: center;
    color: #B56E5A;
    border-radius: 14px;
    background: #F7EEE9;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
    font-weight: 600;
}

.order-item-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-row h3 {
    margin: 0 0 7px;
    color: #2F2F2F;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    font-weight: 600;
}

.order-item-row p {
    margin: 0;
    color: #5F5651;
}

.order-item-details p {
    display: flex;
    gap: 8px 18px;
    flex-wrap: wrap;
    font-size: .88rem;
}

.order-item-details p span + span::before {
    margin-right: 18px;
    color: #c9afa5;
    content: "•";
}

.order-item-subtotal {
    display: grid;
    gap: 2px;
    min-width: 105px;
    text-align: right;
}

.order-item-subtotal span {
    color: #8A7A72;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.order-item-row .order-item-subtotal strong {
    color: #B56E5A;
    font-size: 1.08rem;
    white-space: nowrap;
}

.order-confirmation-total {
    display: grid;
    gap: 10px;
    margin-top: 26px;
    padding: 22px 24px;
    border-radius: 18px;
    background: rgba(181,110,90,.07);
}

.order-confirmation-total p {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
}

.order-confirmation-total span {
    color: #5F5651;
    font-size: .92rem;
}

.order-confirmation-total strong {
    color: #5F5651;
    white-space: nowrap;
}

.order-confirmation-total p:last-child {
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid rgba(181,110,90,.24);
}

.order-confirmation-total p:last-child span,
.order-confirmation-total p:last-child strong {
    color: #9F5F4F;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.order-confirmation-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.payment-page {
    padding: 60px 20px;
}

.payment-container {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.payment-header {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.payment-eyebrow {
    margin-bottom: 8px;
    color: #b56e5a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.payment-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(360px, 1.1fr);
    gap: 30px;
    align-items: start;
}

.payment-summary,
.payment-widget-card {
    padding: 30px;
    border: 1px solid rgba(181, 110, 90, 0.16);
    border-radius: 24px;
    background: #fffdf9;
    box-shadow: 0 18px 45px rgba(47, 47, 47, 0.07);
}

.payment-product,
.payment-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.payment-product {
    padding: 15px 0;
    border-bottom: 1px solid #eadfd9;
}

.payment-product span {
    display: block;
    margin-top: 4px;
    color: #746a64;
    font-size: 0.9rem;
}

.payment-totals {
    margin-top: 24px;
}

.payment-totals > div {
    padding: 8px 0;
}

.payment-grand-total {
    margin-top: 12px;
    padding-top: 18px !important;
    border-top: 1px solid #d9c8bf;
    font-size: 1.15rem;
}

.payment-grand-total strong {
    color: #a96358;
    font-size: 1.35rem;
}

.payment-security-text {
    margin-bottom: 22px;
    color: #655b55;
}

.payment-message {
    min-height: 24px;
    margin-top: 18px;
    color: #655b55;
    font-size: 0.95rem;
}

.payment-message-error {
    color: #a23434;
}

@media screen and (max-width: 768px)
{
    .order-confirmation-page {
        width: 94%;
        margin-top: 32px;
    }

    .order-confirmation-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .order-item-row {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 14px;
        padding: 15px;
    }

    .order-item-visual {
        width: 60px;
        height: 60px;
    }

    .order-item-subtotal {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px dashed rgba(181,110,90,.18);
        text-align: left;
    }

    .order-item-details p {
        display: grid;
        gap: 2px;
    }

    .order-item-details p span + span::before {
        display: none;
    }

    .order-confirmation-total {
        padding: 18px;
    }

    .order-confirmation-actions {
        flex-direction: column;
    }

    .order-confirmation-actions .cart-button {
        width: 100%;
        text-align: center;
    }

    .cart-page {
        width: min(100% - 28px, 1180px);
        margin: 34px auto 60px;
    }

    .cart-header {
        margin-bottom: 25px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cart-item {
        grid-template-columns: 115px minmax(0, 1fr);
        gap: 16px;
        padding: 14px;
        border-radius: 16px;
    }

    .cart-item-image {
        min-height: 145px;
    }

    .cart-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .cart-item-heading {
        display: block;
    }

    .cart-item-content h2 {
        font-size: 1.3rem;
    }

    .cart-item-price {
        margin-top: 5px;
    }

    .cart-quantity {
        margin-top: 15px;
    }

    .cart-item-footer {
        display: grid;
        gap: 10px;
        align-items: start;
        padding-top: 13px;
    }

    .cart-summary {
        position: static;
        padding: 25px;
    }

    .cart-empty {
        padding: 45px 22px;
    }

    .payment-page {
        padding: 35px 15px;
    }

    .payment-layout {
        grid-template-columns: 1fr;
    }

    .payment-summary,
    .payment-widget-card {
        padding: 22px;
        border-radius: 18px;
    }
}

@media screen and (max-width: 480px) {
    .cart-item {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 13px;
    }

    .cart-item-image {
        min-height: 125px;
    }

    .cart-item-footer {
        grid-column: 1 / -1;
    }

    .cart-item-remove {
        margin-top: 2px;
    }
}
