/* ═══════════════════════════════════════════════════════
   CHECKOUT MODAL — 4 pasos
═══════════════════════════════════════════════════════ */
.co-overlay {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0,0,0,.7);
    opacity: 0; pointer-events: none;
    transition: opacity .35s;
}
.co-overlay.open { opacity: 1; pointer-events: all; }

.co-modal {
    position: fixed; inset: 0; z-index: 3001;
    display: flex; flex-direction: column;
    background: #f4f1ec;
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
}
.co-modal.open { transform: translateY(0); }

/* Progress bar */
.co-progress {
    background: #111;
    padding: 1.2rem 2rem;
    display: flex; align-items: center;
    position: sticky; top: 0; z-index: 10;
}
.co-step {
    display: flex; flex-direction: column; align-items: center;
    gap: .4rem; flex-shrink: 0;
    opacity: .45; transition: opacity .3s;
}
.co-step--active, .co-step--done { opacity: 1; }
.co-step-icon {
    width: 48px; height: 48px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    transition: background .3s, border-color .3s;
}
.co-step-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.5; }
.co-step--active .co-step-icon { background: #C09A46; border-color: #C09A46; }
.co-step--done .co-step-icon { background: #22c55e; border-color: #22c55e; }
.co-step span {
    font-size: .62rem; letter-spacing: .12em;
    text-transform: uppercase; color: rgba(255,255,255,.75);
    white-space: nowrap;
}
.co-line {
    flex: 1; height: 1px;
    background: rgba(255,255,255,.2);
    margin: 0 .8rem; margin-bottom: 1.4rem;
    min-width: 20px;
}
.co-close {
    margin-left: auto; background: none; border: none;
    color: rgba(255,255,255,.6); font-size: 1.2rem;
    cursor: pointer; padding: .5rem; line-height: 1; flex-shrink: 0;
}
.co-close:hover { color: #fff; }

/* Body */
.co-body {
    flex: 1; display: flex;
    max-width: 1200px; width: 100%;
    margin: 0 auto; padding: 2.5rem 2rem;
    gap: 2rem; align-items: flex-start;
}
.co-main { flex: 1; min-width: 0; }

/* Panes */
.co-pane { display: flex; flex-direction: column; gap: 1.5rem; }
.co-pane--hidden { display: none !important; }
.co-pane-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 300; color: #1a1a1a;
}

/* Cart list */
.co-cart-list { display: flex; flex-direction: column; gap: 1rem; }
.co-empty { color: #888; font-style: italic; padding: 2rem 0; }
.co-cart-row {
    background: #fff; border-radius: 10px;
    padding: 1rem 1.2rem;
    display: flex; align-items: center; gap: 1rem;
    border: 1px solid #e8e0d4;
}
.co-cart-row-img {
    width: 72px; height: 72px; object-fit: contain;
    background: #f8f5f0; border-radius: 6px; flex-shrink: 0;
}
.co-cart-row-info { flex: 1; min-width: 0; }
.co-cart-row-name { font-weight: 500; font-size: .92rem; color: #1a1a1a; margin-bottom: .25rem; }
.co-cart-row-price { font-size: .85rem; color: #8B6940; }
.co-qty {
    display: flex; align-items: center;
    border: 1px solid #d4ccc0; border-radius: 6px;
    overflow: hidden; flex-shrink: 0;
}
.co-qty-btn {
    width: 36px; height: 36px; background: #f4f1ec;
    border: none; cursor: pointer; font-size: 1.1rem;
    color: #555; display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.co-qty-btn:hover { background: #e8e0d4; }
.co-qty-val {
    width: 40px; text-align: center; font-size: .9rem;
    font-weight: 500; color: #1a1a1a;
    background: #fff; border: none; pointer-events: none;
}
.co-cart-row-del {
    background: none; border: none; cursor: pointer;
    color: #c09a46; padding: .4rem; flex-shrink: 0;
    transition: color .2s;
}
.co-cart-row-del:hover { color: #e74c3c; }
.co-cart-row-del svg { width: 18px; height: 18px; display: block; }

/* Forms */
.co-form { display: flex; flex-direction: column; gap: 1.2rem; }
.co-field { display: flex; flex-direction: column; gap: .4rem; }
.co-field label {
    font-size: .75rem; letter-spacing: .12em;
    text-transform: uppercase; color: #6b5a3e; font-weight: 500;
}
.co-field input, .co-field select {
    padding: .85rem 1rem; border: 1px solid #d4ccc0;
    border-radius: 8px; font-size: .95rem; color: #1a1a1a;
    background: #fff; outline: none; transition: border-color .2s;
    font-family: 'Inter', sans-serif;
    -webkit-appearance: none; appearance: none;
    width: 100%;
}
.co-field input:focus, .co-field select:focus { border-color: #C09A46; }

/* Step foot */
.co-pane-foot {
    display: flex; justify-content: space-between;
    align-items: center; gap: 1rem; padding-top: .5rem;
}
.co-btn-primary {
    background: #111; color: #fff; border: none;
    border-radius: 8px; padding: .9rem 2rem;
    font-size: .85rem; letter-spacing: .1em;
    text-transform: uppercase; cursor: pointer; transition: background .2s;
}
.co-btn-primary:hover { background: #C09A46; }
.co-btn-sec {
    background: none; border: 1px solid #d4ccc0;
    border-radius: 8px; color: #555;
    padding: .9rem 1.5rem; font-size: .82rem;
    cursor: pointer; transition: border-color .2s, color .2s;
}
.co-btn-sec:hover { border-color: #999; color: #222; }
.co-btn-whatsapp {
    display: flex; align-items: center; gap: .6rem;
    background: #25D366; color: #fff; border: none;
    border-radius: 8px; padding: .9rem 1.8rem;
    font-size: .85rem; letter-spacing: .08em;
    text-transform: uppercase; cursor: pointer; transition: background .2s;
}
.co-btn-whatsapp:hover { background: #1da851; }
.co-btn-whatsapp svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }

/* Payment */
.co-pay-intro { font-size: .9rem; color: #555; line-height: 1.7; max-width: 560px; }
.co-pay-methods { display: flex; flex-wrap: wrap; gap: 1rem; }
.co-pay-card {
    background: #fff; border: 1px solid #e8e0d4;
    border-radius: 10px; padding: 1.2rem 1.5rem; flex: 1; min-width: 200px;
}
.co-pay-card--yape { border-color: #7B2FBE; }
.co-pay-bank {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem; font-weight: 600; color: #1a1a1a; margin-bottom: .8rem;
}
.co-pay-row {
    display: flex; justify-content: space-between; gap: 1rem;
    font-size: .82rem; color: #555; padding: .3rem 0;
    border-bottom: 1px solid #f0ebe3;
}
.co-pay-row:last-child { border-bottom: none; }
.co-pay-row strong { color: #1a1a1a; }
.co-pay-name { font-size: .85rem; color: #555; margin-top: .5rem; }

/* Aside */
.co-aside {
    width: 300px; flex-shrink: 0;
    background: #fff; border-radius: 12px;
    padding: 1.5rem; border: 1px solid #e8e0d4;
    position: sticky; top: 100px;
}
.co-aside-title {
    font-size: .82rem; font-weight: 600; color: #1a1a1a;
    text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem;
}
.co-aside-items { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1.2rem; }
.co-aside-item {
    display: flex; align-items: center; gap: .8rem;
    padding-bottom: .8rem; border-bottom: 1px solid #f0ebe3;
}
.co-aside-item:last-child { border-bottom: none; padding-bottom: 0; }
.co-aside-img {
    width: 48px; height: 48px; object-fit: contain;
    background: #f8f5f0; border-radius: 5px; flex-shrink: 0;
}
.co-aside-item-name { font-size: .82rem; color: #1a1a1a; flex: 1; line-height: 1.3; }
.co-aside-item-price { font-size: .82rem; color: #8B6940; font-weight: 600; white-space: nowrap; }
.co-aside-total {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: .8rem; border-top: 2px solid #e8e0d4; font-size: .9rem;
}
.co-aside-total strong { font-size: 1.1rem; color: #C09A46; }

/* Responsive */
@media (max-width: 768px) {
    .co-progress { padding: 1rem; }
    .co-step span { display: none; }
    .co-step-icon { width: 38px; height: 38px; }
    .co-step-icon svg { width: 17px; height: 17px; }
    .co-line { min-width: 8px; margin: 0 .3rem .8rem; }
    .co-body { flex-direction: column; padding: 1.2rem 1rem; }
    .co-aside { width: 100%; position: static; }
    .co-pane-foot { flex-direction: column-reverse; }
    .co-btn-primary, .co-btn-sec, .co-btn-whatsapp { width: 100%; justify-content: center; text-align: center; }
    .co-pay-methods { flex-direction: column; }
}

/* ── CUOTAS EN CARRITO ──────────────────────────────── */
.co-cuotas {
    margin: 24px 0 8px;
    padding: 20px;
    background: #f7f4ef;
    border-radius: 10px;
    border: 1px solid rgba(26,22,18,0.08);
}
.co-cuotas-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1A1612;
    letter-spacing: 0.03em;
    margin-bottom: 14px;
}
.co-cuotas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.co-cuota-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(26,22,18,0.09);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.co-cuota-bank {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 5px;
    display: inline-block;
    width: fit-content;
}
.co-cuota-bank.bcp        { background: #003087; color: #fff; }
.co-cuota-bank.bbva       { background: #004481; color: #fff; }
.co-cuota-bank.interbank  { background: #00b14f; color: #fff; }
.co-cuota-bank.scotiabank { background: #ec111a; color: #fff; }
.co-cuota-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.co-cuota-options span {
    font-size: 0.72rem;
    font-weight: 500;
    background: #f0ece4;
    color: #1A1612;
    border-radius: 4px;
    padding: 2px 8px;
    white-space: nowrap;
}
.co-cuota-note {
    font-size: 0.68rem;
    color: #9b9490;
    margin: 0;
}
.co-cuotas-sub {
    font-size: 0.74rem;
    color: #9b9490;
    margin-top: 12px;
    text-align: center;
}
@media (max-width: 500px) {
    .co-cuotas-grid { grid-template-columns: 1fr; }
}
