.cart-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  padding-top: 70px;
}

.cart-page-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-page-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 22px;
  background: #FFD100;
  border-radius: 3px;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
  align-items: start;
}

.cart-items-section {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  padding: 1.25rem;
}

.cart-restaurant-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cart-restaurant-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 209, 0, 0.2);
  flex-shrink: 0;
}

.cart-restaurant-info h5 {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
  color: #1f2937;
}

.cart-restaurant-info small {
  color: #6b7280;
  font-size: 0.78rem;
}

.cart-product-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s;
  margin-bottom: 0.6rem;
  background: #fafbfc;
  align-items: flex-start;
}

.cart-product-card:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border-color: rgba(255, 209, 0, 0.1);
}

.cart-product-image {
  width: 72px;
  min-width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-product-body {
  flex: 1;
  min-width: 0;
}

.cart-product-name {
  font-weight: 700;
  font-size: 0.88rem;
  margin: 0 0 0.2rem;
  color: #1f2937;
}

.cart-product-price {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0 0 0.4rem;
}

.cart-complementos {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin-bottom: 0.4rem;
}

.cart-complemento {
  font-size: 0.72rem;
  color: #6b7280;
  background: rgba(0,0,0,0.03);
  padding: 1px 8px;
  border-radius: 12px;
}

.cart-comentario {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.4rem;
  padding: 4px 10px;
  background: rgba(255, 209, 0, 0.06);
  border-radius: 8px;
  display: inline-block;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.5rem;
}

.cart-qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
  line-height: 1;
  color: #374151;
}

.cart-qty-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.cart-qty-input {
  width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  background: transparent;
  color: #1f2937;
}

.cart-delete-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
  margin-left: 4px;
}

.cart-delete-btn:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.cart-product-total {
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  color: #059669;
}

.cart-bottom-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cart-bottom-actions .btn-act {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
  text-decoration: none;
  cursor: pointer;
}

.cart-bottom-actions .btn-act.btn-outline {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.cart-bottom-actions .btn-act.btn-outline:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.cart-bottom-actions .btn-act.btn-danger {
  background: #fff;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.cart-bottom-actions .btn-act.btn-danger:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.cart-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
}

.cart-empty-state i { font-size: 2.5rem; color: #d1d5db; margin-bottom: 0.75rem; }
.cart-empty-state h5 { font-weight: 700; margin-bottom: 0.4rem; }
.cart-empty-state p { color: #6b7280; font-size: 0.85rem; margin-bottom: 1.25rem; }

.cart-summary-section {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  padding: 1.25rem;
  position: sticky;
  top: 80px;
}

.cart-summary-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #1f2937;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.84rem;
  color: #6b7280;
}

.cart-summary-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin: 0.6rem 0;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0 0;
}

.cart-summary-total h5 {
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0;
  color: #1f2937;
}

.cart-summary-total span {
  font-weight: 800;
  font-size: 1.05rem;
  color: #059669;
}

.cart-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 1rem;
}

.btn-cart-primary {
  background: #1f2937;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.75rem;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.15s;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-cart-primary:hover {
  background: #374151;
  color: #fff;
}

.btn-cart-secondary {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.65rem;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.15s;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #374151;
}

.btn-cart-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #1f2937;
}

.btn-cart-danger {
  background: #fff;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 0.65rem;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.15s;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-cart-danger:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.checkout-modal .modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

.checkout-modal .modal-header { border-bottom: 1px solid rgba(0,0,0,0.05); padding: 1rem 1.5rem; }
.checkout-modal .modal-body { padding: 1.5rem; max-height: 70vh; overflow-y: auto; }
.checkout-modal .modal-footer { border-top: 1px solid rgba(0,0,0,0.05); padding: 1rem 1.5rem; }

.checkout-modal .form-section { margin-bottom: 1.25rem; }
.checkout-modal .form-section:last-child { margin-bottom: 0; }
.checkout-modal .form-section-title {
  font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 8px;
}
.checkout-modal .form-section-title i { color: #FFD100; }

.checkout-modal .form-label { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.3rem; }
.checkout-modal .form-control,
.checkout-modal .form-select {
  font-size: 0.85rem; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08); padding: 0.5rem 0.75rem;
}
.checkout-modal .form-control:focus,
.checkout-modal .form-select:focus {
  border-color: #FFD100;
  box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.12);
}

.checkout-modal .btn-submit {
  background: #1f2937;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 2rem;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.15s;
  width: 100%;
}
.checkout-modal .btn-submit:hover { background: #374151; }
.checkout-modal .btn-submit:disabled { opacity: 0.5; }

.checkout-modal .total-row {
  display: flex; justify-content: space-between;
  padding: 0.35rem 0; font-size: 0.84rem;
}
.checkout-modal .total-row.final {
  border-top: 2px solid #FFD100;
  margin-top: 0.5rem; padding-top: 0.75rem;
  font-weight: 800; font-size: 1rem;
}

.direccion-card {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px; padding: 0.65rem 0.85rem;
  margin-bottom: 0.5rem; cursor: pointer;
  transition: all 0.15s;
}
.direccion-card:hover,
.direccion-card.active { border-color: #FFD100; background: rgba(255,209,0,0.04); }

.add-location-btn {
  font-size: 0.78rem; padding: 0.4rem 0.75rem;
  border: 1px dashed #FFD100;
  color: #1f2937; background: transparent;
  border-radius: 10px; cursor: pointer;
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.add-location-btn:hover { background: rgba(255,209,0,0.06); border-style: solid; }

.quick-location-form { display: none; margin-top: 0.5rem; padding: 0.75rem; background: #f8f9fc; border-radius: 10px; }
.quick-location-form.show { display: block; }

@media (max-width: 991.98px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-summary-section { position: static; }
}

@media (max-width: 576px) {
  .cart-page { padding: 0.5rem 0.75rem; padding-top: 65px; }
  .cart-page-title { font-size: 1.1rem; }
  .cart-items-section { padding: 0.85rem; }
  .cart-product-card { padding: 0.65rem; gap: 0.65rem; }
  .cart-product-image { width: 56px; min-width: 56px; height: 56px; }
  .cart-product-name { font-size: 0.82rem; }
  .cart-product-total { font-size: 0.8rem; }
  .cart-summary-section { padding: 1rem; }
  .cart-bottom-actions { flex-direction: column; }
  .checkout-modal .modal-body { padding: 1rem; max-height: 65vh; }
}
