/* ==========================================================
   DRESSIVA – Pages Stylesheet (cart, checkout, success, terms)
   ========================================================== */

/* ---------- Shared Page Utilities ---------- */

/* Breadcrumb bar */
.page-breadcrumb {
  background: #f9f7f5;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}

.page-breadcrumb .breadcrumb {
  font-size: 0.78rem;
  gap: 0;
  margin: 0;
}

.page-breadcrumb .breadcrumb-item a {
  color: var(--text-mid);
  transition: var(--transition);
}

.page-breadcrumb .breadcrumb-item a:hover { color: var(--orange); }

.page-breadcrumb .breadcrumb-item.active { color: var(--orange); font-weight: 500; }

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.55rem;
  color: var(--text-light);
  vertical-align: middle;
  padding: 0 6px;
}

/* Page heading */
.page-title-wrap { border-left: 3px solid var(--orange); padding-left: 16px; }

.page-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 4px;
}

.page-subheading {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin: 0;
}

/* Shared buttons */
.btn-primary-orange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 12px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary-orange:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(240,123,43,0.35);
}

.btn-outline-dark-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--text-dark);
  color: var(--text-dark);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-outline-dark-sm:hover {
  background: var(--text-dark);
  color: var(--white);
}

.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 14px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-checkout:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(240,123,43,0.38);
}


/* ==========================================================
   CART PAGE
   ========================================================== */

.cart-section { background: #f9f7f5; min-height: 60vh; }

/* Cart Table Header (desktop) */
.cart-table-head {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-light);
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 0;
  background: var(--white);
  border-radius: 8px 8px 0 0;
}

.cth-product { flex: 1; }
.cth-price  { width: 110px; text-align: center; }
.cth-qty    { width: 130px; text-align: center; }
.cth-total  { width: 110px; text-align: center; }
.cth-remove { width: 40px; }

/* Cart items list */
.cart-items-list {
  background: var(--white);
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

/* Individual cart item */
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s ease;
  position: relative;
}

.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: #fefaf6; }

/* Item image */
.cart-item-img {
  flex-shrink: 0;
  width: 80px;
  height: 95px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Item info */
.cart-item-info { flex: 1; min-width: 0; }

.ci-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 4px;
  line-height: 1.3;
}

.ci-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  margin: 0 0 6px;
}

.ci-price-mobile {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange);
  margin: 0;
  display: none;
}

@media (max-width: 767px) {
  .ci-price-mobile { display: block; }
}

/* Item price column (desktop) */
.cart-item-price {
  width: 110px;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* Qty control */
.cart-item-qty {
  width: 130px;
  display: flex;
  justify-content: center;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: none;
  color: var(--text-mid);
  font-size: 0.65rem;
  cursor: pointer;
  transition: var(--transition);
}

.qty-btn:hover { background: var(--orange); color: var(--white); }

.qty-input {
  width: 40px;
  height: 32px;
  border: none;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Item total (desktop) */
.cart-item-total {
  width: 110px;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Remove button */
.cart-item-remove {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.cart-item-remove:hover {
  background: #fce8e8;
  color: #e53935;
}

/* Remove animation */
.cart-item.removing {
  animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
  to { opacity: 0; transform: translateX(40px); height: 0; padding: 0; }
}

/* Empty cart state */
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.cart-empty-icon {
  font-size: 3.5rem;
  color: var(--border-light);
  margin-bottom: 16px;
}

.cart-empty h5 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.cart-empty p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* Coupon area */
.cart-actions { align-items: flex-start; }

.coupon-input-group {
  display: flex;
  border: 1.5px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  height: 42px;
}

.coupon-input {
  flex: 1;
  border: none;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-dark);
  outline: none;
  min-width: 180px;
}

.coupon-input::placeholder { color: var(--text-light); }

.coupon-apply-btn {
  background: var(--text-dark);
  color: var(--white);
  border: none;
  padding: 0 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: var(--transition);
}

.coupon-apply-btn:hover { background: var(--orange); }

.coupon-msg {
  font-size: 0.75rem;
  margin: 6px 0 0;
  min-height: 18px;
}

.coupon-msg.success { color: #2e7d32; }
.coupon-msg.error   { color: #c62828; }


/* ---- Order Summary Card ---- */
.order-summary-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 80px;
}

.os-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.os-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.os-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0;
}

.os-divider {
  height: 1px;
  background: var(--border-light);
  margin: 14px 0;
}

.os-shipping-note {
  font-size: 0.75rem;
  color: #2e7d32;
  background: #f0faf0;
  border: 1px solid #c8e6c9;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 16px 0;
}

.os-secure {
  text-align: center;
  font-size: 0.73rem;
  color: var(--text-light);
  margin-top: 12px;
}

.os-payments {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.os-payments span {
  font-size: 0.72rem;
  color: var(--text-light);
  display: block;
  margin-bottom: 8px;
}

.payment-icons {
  display: flex;
  gap: 10px;
  font-size: 1.8rem;
  color: var(--text-mid);
}

.payment-icons .fa-mobile-alt { font-size: 1.4rem; }

/* You May Also Like */
.cart-also-like { padding-top: 20px; }

.cal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.cal-card { cursor: pointer; }

.cal-img-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.cal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.cal-card:hover .cal-img-wrap img { transform: scale(1.05); }

.cal-add-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
}

.cal-card:hover .cal-add-btn { opacity: 1; transform: scale(1); }

.cal-info { padding: 10px 2px 0; }

.cal-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0 4px;
  line-height: 1.3;
}

.cal-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--orange);
  margin: 0;
}

/* Mobile responsive for cart item */
@media (max-width: 767px) {
  .cart-item-qty { width: auto; }
  .cart-table-head { display: none; }
  .cart-items-list { border-radius: 8px; }
  .cart-item { flex-wrap: wrap; gap: 12px; }
  .cart-item-info { flex: 1; }
  .cart-item-qty { order: 4; margin-left: 92px; }
  .cart-item-remove { position: absolute; top: 14px; right: 14px; }
}

@media (max-width: 480px) {
  .coupon-input { min-width: 140px; }
  .cart-actions { flex-direction: column; }
  .cart-actions .ms-auto { margin-left: 0 !important; }
}


/* ==========================================================
   CHECKOUT PAGE
   ========================================================== */

.checkout-section { background: #f9f7f5; min-height: 60vh; }

/* Steps bar */
.checkout-steps-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}

.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.cs-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cs-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--border-light);
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cs-step.completed .cs-dot {
  background: #2e7d32;
  color: var(--white);
  font-size: 0.75rem;
}

.cs-step.active .cs-dot {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(240,123,43,0.2);
}

.cs-step span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.cs-step.active span { color: var(--orange); }
.cs-step.completed span { color: #2e7d32; }

.cs-line {
  flex: 1;
  height: 2px;
  background: var(--border-light);
  margin: 0 8px;
  margin-bottom: 22px;
  max-width: 80px;
}

.cs-line.completed { background: #2e7d32; }

/* Form Card */
.form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: #fafafa;
}

.form-card-num {
  width: 28px;
  height: 28px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: 0.04em;
}

.optional-tag {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-light);
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
}

.form-card-body { padding: 20px; }

/* Custom Form Controls */
.form-label-custom {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.req { color: var(--orange); }

.form-control-custom {
  width: 100%;
  border: 1.5px solid var(--border-light);
  border-radius: 5px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-dark);
  outline: none;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

.form-control-custom::placeholder { color: var(--text-light); }

.form-control-custom:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240,123,43,0.12);
}

.form-control-custom.error {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}

.form-control-custom[readonly] {
  background: #f5f5f5;
  color: var(--text-mid);
  cursor: not-allowed;
}

.invalid-feedback-custom {
  font-size: 0.72rem;
  color: #e53935;
  margin-top: 4px;
}

/* Input with icon */
.input-with-icon {
  position: relative;
}

.input-with-icon > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  color: var(--text-light);
  pointer-events: none;
  z-index: 1;
}

.form-control-custom.has-icon { padding-left: 36px; }

/* Shipping options */
.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.shipping-option:hover { border-color: var(--orange); background: #fff8f3; }

.shipping-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  flex-shrink: 0;
  cursor: pointer;
}

.shipping-option:has(input:checked) {
  border-color: var(--orange);
  background: #fff8f3;
}

.so-content { flex: 1; }

.so-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.so-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.so-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--orange);
}

.so-desc {
  font-size: 0.72rem;
  color: var(--text-light);
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.payment-method:hover { border-color: var(--orange); background: #fff8f3; }

.payment-method:has(input:checked) {
  border-color: var(--orange);
  background: #fff8f3;
}

.payment-method input[type="radio"] { display: none; }

.pm-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.pm-icon {
  font-size: 1.3rem;
  color: var(--text-mid);
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.pm-icon-bkash {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  background: #e2136e;
  color: #fff;
  border-radius: 4px;
  padding: 4px 6px;
  width: auto;
  letter-spacing: 0.02em;
}

.pm-icon-nagad {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  background: #f26522;
  color: #fff;
  border-radius: 4px;
  padding: 4px 6px;
  width: auto;
  letter-spacing: 0.02em;
}

.pm-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pm-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-dark);
}

.pm-desc {
  font-size: 0.72rem;
  color: var(--text-light);
}

.pm-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: var(--transition);
  flex-shrink: 0;
}

.payment-method:has(input:checked) .pm-check {
  opacity: 1;
  transform: scale(1);
}

.payment-helper-text {
  font-size: 0.76rem;
  color: var(--text-mid);
  background: #f5f5f5;
  border-radius: 4px;
  padding: 10px 12px;
  margin: 0;
  line-height: 1.5;
}

/* Terms checkbox */
.terms-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.terms-check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--orange);
  cursor: pointer;
}

.terms-check-label a {
  color: var(--orange);
  text-decoration: underline;
}

/* Trust badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.trust-badge i {
  font-size: 1.1rem;
  color: var(--orange);
}

.trust-badge span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  text-align: center;
}

/* Checkout Summary */
.checkout-summary-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 24px;
  position: sticky;
  top: 80px;
}

.cos-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 4px;
}

.cos-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cos-img-wrap {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.cos-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.cos-qty-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--text-dark);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cos-info { flex: 1; min-width: 0; }

.cos-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cos-meta {
  font-size: 0.7rem;
  color: var(--text-light);
  margin: 0;
}

.cos-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  flex-shrink: 0;
}

.cos-divider {
  height: 1px;
  background: var(--border-light);
  margin: 14px 0;
}

/* Card field styling */
.card-payment-fields { border-top: 1px dashed var(--border-light); padding-top: 16px; }


/* ==========================================================
   ORDER SUCCESS PAGE
   ========================================================== */

.success-section { background: #f9f7f5; min-height: 60vh; }

/* Success card */
.success-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 48px 32px 36px;
}

/* Animated success circle */
.success-animation {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 28px;
}

.success-circle {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-check-icon {
  font-size: 2.2rem;
  color: var(--white);
}

.success-ripple {
  position: absolute;
  top: 0; left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  animation: rippleOut 1.5s ease-out infinite;
}

.success-ripple-1 { animation-delay: 0.2s; }
.success-ripple-2 { animation-delay: 0.7s; }

@keyframes rippleOut {
  from { transform: scale(1); opacity: 0.7; }
  to   { transform: scale(2.2); opacity: 0; }
}

.success-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.success-subtitle {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 20px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.success-order-id {
  display: inline-block;
  background: #fff3e8;
  border: 1px solid #ffd09e;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--orange-dark);
}

/* Order details box */
.order-details-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 24px;
}

.odb-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.odb-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.odb-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.odb-item img {
  width: 56px;
  height: 65px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.odb-item-info { flex: 1; min-width: 0; }

.odb-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 3px;
}

.odb-item-meta {
  font-size: 0.73rem;
  color: var(--text-light);
  margin: 0;
}

.odb-item-price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  flex-shrink: 0;
}

.odb-divider {
  height: 1px;
  background: var(--border-light);
  margin: 16px 0;
}

.odb-price-rows { display: flex; flex-direction: column; gap: 10px; }

.odb-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-mid);
}

.odb-total {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  border-top: 2px solid var(--text-dark);
  padding-top: 10px;
  margin-top: 4px;
}

/* Order info cards */
.order-info-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 20px;
  height: 100%;
}

.oic-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.oic-line {
  font-size: 0.83rem;
  color: var(--text-mid);
  margin: 0 0 5px;
}

.oic-highlight {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.oic-status { margin-top: 12px; }

.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}

.status-confirmed {
  background: #d4edda;
  color: #155724;
  border: 1px solid #28a745;
}

/* What's Next */
.whats-next-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 24px;
}

.wn-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.wn-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.wn-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  gap: 10px;
}

.wn-connector {
  flex: 1;
  height: 2px;
  background: var(--border-light);
  margin-top: 20px;
  max-width: 40px;
}

.wn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  flex-shrink: 0;
}

.wn-icon-orange { background: var(--orange); }
.wn-icon-blue   { background: #1976d2; }
.wn-icon-green  { background: #388e3c; }

.wn-step-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 4px;
}

.wn-step-desc {
  font-size: 0.72rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}

/* Success CTA */
.success-share { padding: 10px 0; }

.ss-label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.ss-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.ss-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--white);
  transition: var(--transition);
}

.ss-facebook  { background: #1877f2; }
.ss-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ss-whatsapp  { background: #25d366; }

.ss-icon:hover { transform: scale(1.15); opacity: 0.9; }

/* Mobile responsive - success page */
@media (max-width: 575px) {
  .success-card { padding: 32px 16px 24px; }
  .wn-steps { flex-direction: column; align-items: flex-start; }
  .wn-step { flex-direction: row; text-align: left; }
  .wn-connector { display: none; }
  .wn-info { flex: 1; }
}


/* ==========================================================
   TERMS & CONDITIONS PAGE
   ========================================================== */

/* Terms hero */
.terms-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 60px 0;
  color: var(--white);
}

.terms-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.terms-hero-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.terms-hero-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* TOC sidebar */
.terms-toc {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 20px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.toc-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
}

.toc-list { display: flex; flex-direction: column; gap: 2px; }

.toc-link {
  display: block;
  font-size: 0.78rem;
  color: var(--text-mid);
  padding: 7px 10px;
  border-radius: 4px;
  transition: var(--transition);
  line-height: 1.4;
}

.toc-link:hover,
.toc-link.active {
  color: var(--orange);
  background: rgba(240,123,43,0.08);
}

/* Terms content */
.terms-content { display: flex; flex-direction: column; gap: 0; }

.terms-notice {
  background: #e8f4fd;
  border: 1px solid #bee3f8;
  border-left: 4px solid #2196f3;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.84rem;
  color: #1a5276;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Terms block */
.terms-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: 80px;
}

.terms-block:last-of-type { border-bottom: none; }

.tb-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.tb-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  background: #fff3e8;
  border: 1px solid #ffd09e;
  border-radius: 4px;
  padding: 4px 10px;
  flex-shrink: 0;
}

.tb-title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.tb-body p {
  font-size: 0.87rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin: 0 0 14px;
}

.tb-body p:last-child { margin-bottom: 0; }

/* Terms list */
.terms-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terms-list li {
  font-size: 0.87rem;
  color: var(--text-mid);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.terms-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.terms-link {
  color: var(--orange);
  text-decoration: underline;
}

/* Highlight box */
.terms-highlight-box {
  display: flex;
  gap: 12px;
  background: #fff8f2;
  border: 1px solid #ffd09e;
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 14px 0;
}

.terms-highlight-box i {
  color: var(--orange);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.terms-highlight-box p {
  font-size: 0.83rem !important;
  margin: 0 !important;
}

.terms-highlight-box.success-box {
  background: #f0faf0;
  border-color: #a5d6a7;
  border-left-color: #388e3c;
}

.terms-highlight-box.success-box i { color: #388e3c; }

/* Table */
.terms-table-wrap {
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.terms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.terms-table th {
  background: var(--text-dark);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

.terms-table td {
  padding: 12px 16px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border-light);
}

.terms-table tr:last-child td { border-bottom: none; }

.terms-table tr:nth-child(even) td { background: #fafafa; }

/* Payment grid */
.terms-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tpg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fafafa;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 0.83rem;
  color: var(--text-mid);
  font-weight: 500;
}

.tpg-item i {
  font-size: 1.1rem;
  color: var(--orange);
  flex-shrink: 0;
}

/* Contact grid */
.terms-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tcg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fafafa;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px;
  transition: var(--transition);
  color: inherit;
}

.tcg-item:hover {
  border-color: var(--orange);
  background: #fff8f3;
}

.tcg-item > i {
  font-size: 1.2rem;
  color: var(--orange);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.tcg-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tcg-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-light);
  text-transform: uppercase;
}

.tcg-value {
  font-size: 0.82rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* Terms footer note */
.terms-footer-note {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 16px 20px;
  margin-top: 24px;
}

.terms-footer-note p {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* Mobile responsive - terms */
@media (max-width: 767px) {
  .terms-payment-grid,
  .terms-contact-grid { grid-template-columns: 1fr; }

  .terms-hero { padding: 40px 0; }
}

@media (max-width: 991px) {
  .terms-toc { display: none; }
}


/* ==========================================================
   MOBILE RESPONSIVE – Shared
   ========================================================== */

@media (max-width: 991px) {
  .order-summary-card,
  .checkout-summary-card { position: static; top: auto; }
}

@media (max-width: 575px) {
  .page-heading { font-size: 1.5rem; }
  .checkout-steps-bar { padding: 10px 0; }
  .cs-dot { width: 28px; height: 28px; font-size: 0.7rem; }
  .cs-step span { font-size: 0.6rem; }
  .cs-line { max-width: 50px; }
  .form-card-body { padding: 14px; }
  .order-details-box,
  .order-info-card,
  .whats-next-card { padding: 16px; }
  .trust-badges { gap: 10px; }
  .trust-badge span { font-size: 0.58rem; }
  .success-cta { flex-direction: column; align-items: center; }
  .wn-step { gap: 12px; }
}
