/* ============================================================
AQUA CARE RO — CART SYSTEM (cart.css)
assets/css/cart.css — included globally via header.php
============================================================ */

/* ── NAV ACTIONS GROUP (Call Now + Cart side by side) ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ── CART ICON IN NAV ── */
.nav-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(0,184,217,0.4);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}

.nav-cart-btn:hover {
  background: rgba(0,184,217,0.2);
  border-color: var(--cyan);
}

.nav-cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  background: #e53935;
  color: white;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}

.nav-cart-count.bump {
  transform: scale(1.5);
}

/* ── ADD TO CART BUTTON (service cards) ── */
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  width: 100%;
  padding: 11px 18px;
  border-radius: 9px;
  background: linear-gradient(135deg, #00b8d9, #1565c0);
  color: white;
  border: none;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 4px 14px rgba(0,184,217,0.25);
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,184,217,0.35);
}

.btn-add-cart.added {
  background: linear-gradient(135deg, #00c853, #00897b);
  box-shadow: 0 4px 14px rgba(0,200,83,0.3);
}

.btn-add-cart .cart-btn-icon {
  font-size: 16px;
}

/* ── ADD TO CART LARGE BUTTON ── */
.btn-add-cart-lg {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00b8d9, #1565c0);
  color: white;
  border: none;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 20px rgba(0,184,217,0.3);
  margin-top: 12px;
}

.btn-add-cart-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,184,217,0.4);
}

.btn-add-cart-lg.added {
  background: linear-gradient(135deg, #00c853, #00897b);
}

/* ── FLOATING CART BUTTON ── */
.cart-float {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0a1f44, #1565c0);
  color: white;
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(10,31,68,0.35);
  cursor: pointer;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s, box-shadow .2s;
  border: none;
}

.cart-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(10,31,68,0.45);
}

.cart-float .cf-icon {
  font-size: 22px;
}

.cart-float .cf-label {
  white-space: nowrap;
}

.cart-float .cf-count {
  background: #e53935;
  color: white;
  font-size: 12px;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-float.hidden {
  display: none;
}

/* ── MINI TOAST ── */
.cart-toast {
  position: fixed;
  bottom: 180px;
  right: 28px;
  z-index: 9999;
  background: var(--navy);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-left: 4px solid var(--cyan);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
  display: none;
  transform: translateX(120%);
  transition: transform .3s ease;
  max-width: 260px;
}

.cart-toast.show {
  display: block;
  transform: translateX(0);
}

/* ══════════════════════════════════════
CART PAGE (cart.php)
══════════════════════════════════════ */
.cart-page {
  padding: 110px 5% 60px;
  background: var(--off);
  min-height: 60vh;
}

.cart-page-inner {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

/* Cart items column */
.cart-items-col h2 {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.cart-empty span {
  font-size: 56px;
  display: block;
  margin-bottom: 16px;
}

.cart-empty h3 {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.cart-empty p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
}

.cart-item-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: box-shadow .2s;
}

.cart-item-card:hover {
  box-shadow: 0 6px 24px rgba(0,100,200,0.08);
}

.ci-emoji {
  font-size: 32px;
  min-width: 44px;
  text-align: center;
}

.ci-info {
  flex: 1;
}

.ci-info h4 {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.ci-info span {
  font-size: 13px;
  color: var(--muted);
}

.ci-price {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
}

.ci-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #ccc;
  transition: color .2s;
  padding: 4px;
}

.ci-remove:hover {
  color: #e53935;
}

/* Order summary column */
.cart-summary-col {
  position: sticky;
  top: 88px;
}

.cart-summary-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 40px rgba(0,100,200,0.07);
}

.cart-summary-box h3 {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--muted);
}

.summary-row.total {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  padding-top: 14px;
  border-top: 2px solid var(--border);
  margin-top: 6px;
}

.summary-row.total span:last-child {
  color: var(--blue);
}

/* Customer details form */
.customer-form {
  margin-top: 24px;
}

.customer-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  margin-top: 14px;
}

.customer-form input,
.customer-form textarea,
.customer-form select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--off);
  outline: none;
  transition: border-color .2s, background .2s;
}

.customer-form input:focus,
.customer-form textarea:focus,
.customer-form select:focus {
  border-color: var(--cyan);
  background: white;
}

.customer-form textarea {
  min-height: 80px;
  resize: vertical;
}

/* Payment options */
.payment-options {
  margin-top: 22px;
}

.payment-options h4 {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.pay-choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.pay-option:hover,
.pay-option.selected {
  border-color: var(--cyan);
  background: rgba(0,184,217,0.05);
}

.pay-option input[type="radio"] {
  margin-top: 2px;
  accent-color: var(--cyan);
}

.pay-option-info strong {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-bottom: 2px;
}

.pay-option-info span {
  font-size: 12px;
  color: var(--muted);
}

/* UPI / QR section */
.upi-box {
  margin-top: 16px;
  padding: 20px;
  text-align: center;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: none;
}

.upi-box.show {
  display: block;
}

.upi-qr {
  width: 160px;
  height: 160px;
  margin: 12px auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 10px;
  overflow: hidden;
}

.upi-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.upi-id {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 8px;
}

.upi-id small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

.payment-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* Book button */
.btn-book-now {
  width: 100%;
  margin-top: 22px;
  padding: 16px;
  background: linear-gradient(135deg, #00b8d9, #1565c0);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 8px 28px rgba(0,184,217,0.3);
}

.btn-book-now:hover {
  opacity: .92;
  transform: translateY(-1px);
}

.btn-book-now:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* ── SUCCESS MODAL ── */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10,31,68,0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s;
}

.booking-modal-overlay.show {
  display: flex;
  opacity: 1;
}

.booking-modal {
  background: white;
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(.9);
  transition: transform .3s;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}

.booking-modal-overlay.show .booking-modal {
  transform: scale(1);
}

.modal-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 20px;
}

.booking-modal h2 {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.booking-modal p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.modal-ref {
  display: inline-block;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 20px;
  margin: 12px 0 20px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.modal-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: white;
  padding: 14px 32px;
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: opacity .2s;
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

.modal-call-btn:hover {
  opacity: .88;
}

.modal-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  justify-content: center;
  width: 100%;
}

.modal-home-btn:hover {
  color: var(--blue);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .cart-page-inner {
    grid-template-columns: 1fr;
  }

  .cart-summary-col {
    position: static;
  }
}

@media (max-width: 600px) {
  .cart-page {
    padding: 100px 4% 40px;
  }

  .cart-item-card {
    padding: 18px;
    gap: 14px;
  }

  .ci-price {
    font-size: 18px;
  }

  .cart-summary-box {
    padding: 22px 18px;
  }

  .booking-modal {
    padding: 34px 22px;
    border-radius: 18px;
  }

  .cart-float .cf-label {
    display: none;
  }

  .cart-float {
    padding: 14px 16px;
    border-radius: 50%;
  }
}