/* ChapResto cart responsive final */

.cr-cart-page {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 5.5rem 0 6rem;
}

.cr-cart-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.cr-cart-hero p {
    margin: 0 0 .4rem;
    color: #d94d16;
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: .8rem;
    font-weight: 1000;
}

.cr-cart-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4.5vw, 4.2rem);
    line-height: .95;
    letter-spacing: -.06em;
    color: #171313;
}

.cr-cart-hero span {
    display: block;
    margin-top: .75rem;
    color: #756b64;
    max-width: 680px;
    line-height: 1.55;
}

.cr-cart-back {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.1rem;
    border-radius: 999px;
    background: #fff;
    color: #171313;
    text-decoration: none;
    font-weight: 950;
    border: 1px solid rgba(118, 64, 24, .12);
    box-shadow: 0 16px 38px rgba(46, 35, 28, .08);
}

.cr-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(390px, .75fr);
    gap: 1.5rem;
    align-items: start;
}

.cr-cart-items-card,
.cr-order-summary-card,
.cr-cart-empty-card {
    background: #fff;
    border: 1px solid rgba(118, 64, 24, .13);
    border-radius: 28px;
    box-shadow: 0 22px 56px rgba(46, 35, 28, .08);
}

.cr-cart-items-card { padding: 1.25rem; }

.cr-cart-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: .25rem .25rem 1rem;
}

.cr-cart-card-head p {
    margin: 0 0 .25rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #d94d16;
    font-size: .72rem;
    font-weight: 1000;
}

.cr-cart-card-head h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.2vw, 2.2rem);
    line-height: 1;
}

.cr-cart-card-head > strong {
    white-space: nowrap;
    background: #fff4ec;
    color: #d94d16;
    border-radius: 999px;
    padding: .55rem .8rem;
    font-size: .85rem;
}

.cr-cart-items { display: grid; gap: .9rem; }

.cr-cart-item-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(118, 64, 24, .14);
    border-radius: 24px;
    padding: 1rem;
    background: linear-gradient(135deg, #fff, #fffaf6);
}

.cr-cart-item-main h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.cr-cart-item-main > span { color: #756b64; display: block; margin-bottom: .75rem; }

.cr-cart-note {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: .65rem;
    border: 1px solid rgba(118, 64, 24, .15);
    border-radius: 16px;
    background: #fff;
    padding: 0 .85rem;
    max-width: 620px;
}

.cr-cart-note i { color: #d94d16; }
.cr-cart-note input { width: 100%; border: 0; outline: none; background: transparent; font: inherit; min-width: 0; }

.cr-cart-item-side { display: flex; align-items: center; gap: 1.2rem; }

.cr-cart-qty {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(118, 64, 24, .13);
}

.cr-cart-qty button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 0;
    background: #fff8f1;
    color: #171313;
    font-weight: 1000;
    cursor: pointer;
}

.cr-cart-qty strong { min-width: 24px; text-align: center; }
.cr-cart-line-total { white-space: nowrap; font-size: 1rem; color: #171313; }

.cr-order-summary-card {
    position: sticky;
    top: 104px;
    padding: 1.15rem;
    overflow: hidden;
}

.cr-summary-head h2 { margin: 0 0 1.15rem; font-size: 1.5rem; }
.cr-summary-head > div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid rgba(118,64,24,.10); border-bottom: 1px solid rgba(118,64,24,.10); }
.cr-summary-head small { display: block; margin-top: .85rem; color: #756b64; line-height: 1.45; }

.cr-customer-form {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 24px;
    background: #fff8f1;
    border: 1px solid rgba(118, 64, 24, .12);
}

.cr-customer-form-head { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1rem; }
.cr-customer-form-head > i { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 999px; color: #d94d16; background: #fff; }
.cr-customer-form h3 { margin: 0; font-size: 1.15rem; }
.cr-customer-form p { margin: .25rem 0 0; color: #756b64; line-height: 1.45; font-size: .92rem; }

.cr-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.cr-form-grid label { display: grid; gap: .4rem; font-weight: 950; color: #171313; min-width: 0; }
.cr-form-grid label.wide { grid-column: 1 / -1; }
.cr-form-grid span { font-size: .86rem; }

.cr-form-grid input,
.cr-form-grid textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(118, 64, 24, .16);
    border-radius: 16px;
    background: #fff;
    padding: .85rem .9rem;
    font: inherit;
    outline: none;
}

.cr-form-grid textarea { min-height: 92px; resize: vertical; }
.cr-form-grid input:focus, .cr-form-grid textarea:focus { border-color: #de5b1d; box-shadow: 0 0 0 4px rgba(222,91,29,.11); }

.cr-order-warning { display: flex; gap: .65rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 16px; background: #fff2e8; color: #9d3b11; font-weight: 850; margin-bottom: .85rem; }
.cr-order-actions { display: grid; gap: .7rem; }
.cr-btn-whatsapp { background: #1fa855; color: #fff; border: 0; }
.cr-btn-whatsapp:disabled { opacity: .5; cursor: not-allowed; }

.cr-cart-empty-card { padding: 3rem 1.5rem; display: grid; justify-items: center; text-align: center; gap: .75rem; }
.cr-cart-empty-card i { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 999px; color: #d94d16; background: #fff4ec; font-size: 1.7rem; }
.cr-cart-empty-card h2, .cr-cart-empty-card p { margin: 0; }

@media (max-width: 1120px) {
    .cr-cart-layout { grid-template-columns: 1fr; }
    .cr-order-summary-card { position: static; }
}

@media (max-width: 760px) {
    .cr-cart-page { width: min(100% - 24px, 560px); padding: 2.1rem 0 6.2rem; }
    .cr-cart-hero { display: grid; gap: 1rem; align-items: start; margin-bottom: 1.25rem; }
    .cr-cart-hero h1 { font-size: 2.4rem; }
    .cr-cart-hero span { font-size: .95rem; }
    .cr-cart-back { justify-self: start; padding: .72rem .95rem; }
    .cr-cart-items-card, .cr-order-summary-card { border-radius: 24px; padding: 1rem; }
    .cr-cart-card-head { display: grid; gap: .65rem; }
    .cr-cart-item-card { grid-template-columns: 1fr; align-items: stretch; padding: .9rem; }
    .cr-cart-item-side { justify-content: space-between; gap: .75rem; padding-top: .65rem; border-top: 1px solid rgba(118,64,24,.10); }
    .cr-cart-note { max-width: none; }
    .cr-form-grid { grid-template-columns: 1fr; }
    .cr-customer-form { padding: .9rem; }
    .cr-customer-form-head { display: grid; gap: .55rem; }
}

@media (max-width: 420px) {
    .cr-cart-page { width: calc(100% - 18px); }
    .cr-cart-hero h1 { font-size: 2.05rem; }
    .cr-cart-item-side { display: grid; grid-template-columns: 1fr; justify-items: start; }
    .cr-cart-line-total { font-size: 1.1rem; }
}
