/* ═══════════════════════════════════════════════════════════
   CALESAN — COTIZAR / CARRITO CSS
   <link rel="stylesheet" href="/css/calesan.cotizar.css">
═══════════════════════════════════════════════════════════ */

/* ── LAYOUT ── */
.checkout-page { padding: 48px 0 80px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }

/* ── CART PANEL ── */
.cart-panel { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.cart-panel-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-title { font-size: 16px; font-weight: 700; color: var(--text); }
.panel-count { font-size: 13px; color: var(--text3); }
.cart-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
.cart-item:hover { background: var(--bg); }
.cart-item:last-child { border-bottom: none; }
.ci-img {
  width: 64px; height: 64px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  overflow: hidden;
}
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-img svg { width: 32px; height: 32px; color: var(--border2); }
.ci-info   { flex: 1; }
.ci-cat    { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 3px; }
.ci-name   { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.ci-detail { font-size: 12px; color: var(--text3); }
.ci-qty    { display: flex; align-items: center; gap: 6px; }
.ci-qty-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--bg); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text2); font-family: var(--f-body);
  transition: border-color var(--ease);
}
.ci-qty-btn:hover { border-color: var(--red); color: var(--red); }
.ci-qty-num { width: 36px; text-align: center; font-size: 14px; font-weight: 600; color: var(--text); }
.ci-remove {
  width: 28px; height: 28px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--bg); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text3); transition: all var(--ease);
}
.ci-remove:hover { border-color: #E24B4A; color: #E24B4A; background: #FDF1F0; }
.ci-remove svg { width: 13px; height: 13px; }

/* ── FORM PANEL ── */
.form-panel { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; margin-top: 20px; }
.form-panel-header { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.form-panel-body { padding: 24px; }

/* ── SUMMARY PANEL ── */
.summary-panel {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-xl);
  position: sticky; top: 100px;
}
.summary-header { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.summary-title { font-size: 16px; font-weight: 700; color: var(--text); }
.summary-body  { padding: 20px 24px; }
.summary-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; font-size: 14px; color: var(--text2);
}
.summary-row.total {
  font-size: 16px; font-weight: 700; color: var(--text);
  padding-top: 14px; border-top: 2px solid var(--border);
}
.summary-note { font-size: 12px; color: var(--text3); margin-top: 8px; line-height: 1.5; }

/* ── WEBPAY CHECKOUT ── */
.webpay-checkout {
  background: var(--webpay); border-radius: var(--r-lg);
  padding: 20px; margin: 16px 24px; color: #fff;
}
.wc-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.wc-title svg { width: 16px; height: 16px; }
.wc-cards { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.wc-card {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px; padding: 4px 9px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.9);
}
.btn-webpay {
  width: 100%; background: #fff; color: var(--red);
  font-family: var(--f-body); font-weight: 800; font-size: 15px;
  padding: 14px 20px; border-radius: var(--r); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform var(--ease), box-shadow var(--ease);
}
.btn-webpay:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.btn-webpay svg { width: 18px; height: 18px; }
.wc-security { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 10px; justify-content: center; }
.wc-security svg { width: 12px; height: 12px; color: #7DC887; }

/* ── ALTERNATIVAS ── */
.alt-pay { margin: 0 24px 20px; padding: 16px; background: var(--bg3); border-radius: var(--r-lg); border: 1px solid var(--border); }
.alt-pay-title { font-size: 13px; font-weight: 700; color: var(--text2); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.alt-pay-title svg { width: 14px; height: 14px; color: var(--text3); }
.alt-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: var(--bg2); border: 1.5px solid var(--border2); border-radius: var(--r);
  padding: 10px 14px; font-family: var(--f-body); font-size: 13px; font-weight: 600; color: var(--text2);
  cursor: pointer; margin-bottom: 8px; transition: all var(--ease);
}
.alt-btn:last-child { margin-bottom: 0; }
.alt-btn:hover { border-color: var(--red); color: var(--red); }
.alt-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── EMPTY STATE ── */
.empty-cart { padding: 64px 24px; text-align: center; }
.empty-cart-icon {
  width: 80px; height: 80px; background: var(--bg3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: var(--text3);
}
.empty-cart-icon svg { width: 40px; height: 40px; }
.empty-title { font-family: var(--f-display); font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.empty-desc  { font-size: 15px; color: var(--text2); margin-bottom: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-panel { position: static; }
}
@media (max-width: 768px) {
  .checkout-page { padding: 32px 0 64px; }
  .cart-item { flex-wrap: wrap; }
}
