/* ================================
   Cart Page
================================ */

.cart-page-wrapper {
  background: #151414;
  min-height: 100vh;
}



.order-history-title {
  color: #fff !important;
  margin: 0 !important;
  padding: 0;
 
  font-size: 1.5rem;
  display: inline-block;
}

.cart-page-title {
  text-align: center;
  font-size: 2rem;
  letter-spacing: 0.3px;
  color: #fff;
  margin-bottom: 50px;
  margin-top: 20px;
}

/* ================================
   Cart Item
================================ */

.cart-item {
  background: rgba(3, 20, 31, 0.214);
  border: 1px solid rgba(208, 158, 7, 0.708);
  border-radius: 16px;
  padding: 26px 26px;
  margin-bottom: 20px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.cart-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #ff6b35;
  border-radius: 4px 0 0 3px;
}

.cart-item h6 {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.cart-item .text-danger {
  color: #f8d407 !important;
  font-size: 17px;
  font-weight: 700;
}

.cart-item .text-muted {
  color: rgb(255, 255, 255) !important;
  font-size: 12px;
}

.cart-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.cart-item-total {
  color: #ffd700 !important;   /* আপনার পছন্দের color বসান */
}

.cart-item-unit {
  color: #adb5bd !important;   /* আপনার পছন্দের color বসান */
}

.cart-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.cart-tag-deal {
  background: rgba(255, 107, 53, 0.12);
  border-color: rgba(255, 107, 53, 0.35);
  color: #e7ff35;
  font-weight: 700;
}

/* Quantity input */
.cart-item .form-control {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  text-align: center;
  border-radius: 8px !important;
  font-weight: 600;
}

.cart-item .btn-outline-secondary {
  border-color: rgb(255, 255, 255) !important;
  color: rgba(255, 255, 255, 0.838) !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  padding: 4px 12px !important;
}

.cart-item .btn-outline-secondary:hover {
  background: rgba(130, 218, 22, 0.845) !important;
  color: #000000 !important;
}

.cart-item .btn-outline-danger {
  border-color: rgb(255, 255, 255) !important;
  color: #f30a0a !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  padding: 4px 12px !important;
}

.cart-item .btn-outline-danger:hover {
  background: rgba(55, 5, 10, 0.912) !important;
}

/* ================================
   Cart Summary
================================ */

.cart-summary {
  background: linear-gradient(145deg, #0a1828, #0b233d86);
  border: 1px solid rgba(255, 107, 53, 0.481);
  border-radius: 20px;
  padding: 24px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 80px;
}

.cart-summary h5 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px !important;
}

.cart-summary .d-flex span:first-child {
  color: rgb(240, 231, 231);
  font-size: 14px;
}

.cart-summary .d-flex span:last-child {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.cart-summary hr {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 16px 0;
}

.cart-summary .fs-5 {
  font-size: 18px !important;
}

.cart-summary .fs-5 span:first-child {
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.cart-summary .fs-5 .text-danger {
  color: #cadf0d !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

.cart-summary .alert-info {
  background: rgba(13, 202, 240, 0.06);
  border: 1px solid rgba(13, 202, 240, 0.15);
  color: #eec028;
  border-radius: 10px;
  font-size: 14px;
}

.cart-summary .btn-primary {
  background: linear-gradient(135deg, #ed5f0e, #4d1a06) !important;
  border: none !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  padding: 13px !important;
  font-size: 15px !important;
  box-shadow: 0 4px 16px rgba(149, 49, 12, 0.226);
  transition: all 0.2s !important;
}

.cart-summary .btn-primary:hover {
  background: linear-gradient(135deg, #361305, #cc4a1a) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(98, 36, 13, 0.45) !important;
}

.cart-summary .btn-outline-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgb(255, 255, 255) !important;
  border-radius: 50px !important;
  padding: 10px !important;
  font-size: 13px !important;
  background: transparent !important;
}

.cart-summary .btn-outline-secondary:hover {
  background: rgba(58, 6, 6, 0.86) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.cart-summary .text-success {
  color: #09e447 !important;
  font-weight: 700 !important;
}

.cart-summary .text-muted {
  color: rgba(255, 255, 255, 0.892) !important;
  font-size: 11px;
}

/* ================================
   Empty Cart
================================ */

.text-center h4 {
  color: #fff;
  font-weight: 600;
}

.text-center .btn-primary {
  border: none !important;
  padding: 12px 36px !important;
  font-weight: 700 !important;
  
}


/* ===== Order Tracking Sections ===== */

.order-track-section {
  background: rgba(6, 32, 52, 0.019);
  border: 1px solid rgba(211, 22, 22, 0.274);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 2;
}

.order-track-section h6 {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-order-card {
  border-left: 4px solid #ff6b35;
  background: linear-gradient(145deg, rgba(255, 107, 53, 0.1), rgba(0, 0, 0, 0.25));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);

  position: relative;
  overflow: hidden;
 
}

/* subtle orange glow at the top-left corner */
.active-order-card::after {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.085), transparent 70%);
  pointer-events: none;
}




.last-order-card {
  border-left: 4px solid #6c757d;
  background: rgba(223, 28, 28, 0.04);
}

.order-track-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.order-track-id {
  color: #ffff08;
  font-weight: 600;
  font-size: 14px;
}

.order-track-date {
  color: rgba(255, 255, 255, 0.859);
  font-size: 12px;
}

.order-track-total {
  color: #fad60a;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.order-status-badge.status-pending,
.order-status-badge.status-confirmed {
  background: rgba(22, 17, 2, 0.73);
  color: #72e932;
}

.order-status-badge.status-preparing {
  background: rgb(2, 27, 31);
  color: #28ccec;
}

.order-status-badge.status-ready

{

  background: rgb(19, 6, 1);
  color: #f68b08;
}

.order-status-badge.status-out_for_delivery {
  background: rgb(10, 3, 1);
  color: #21cff6;
}

.order-status-badge.status-delivered,
.order-status-badge.status-collected {
  background: rgb(1, 12, 7);
  color: #25f37b;
}

.order-status-badge.status-cancelled {
  background: rgba(15, 2, 3, 0.932);
  color: #ff6b6b;
}

.order-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-preparing .order-status-dot,
.status-ready .order-status-dot,
.status-out_for_delivery .order-status-dot {
  animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.order-countdown {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgb(255, 255, 255);
}


.order-countdown .countdown-time {
  color: #ffffff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.order-track-items {
  color: rgba(255, 255, 255, 0.963);
  font-size: 12.5px;
  margin: 10px 0 4px;
  line-height: 1.5;
}

.order-track-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.order-track-header-row h6 {
  margin-bottom: 0 !important;
}

.btn-delete-order {
  background: transparent;
  border: none;
  color: rgb(255, 255, 255);
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}


.see-all-orders-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: #f68f12;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.see-all-orders-link:hover {
  color: #ff8a5c;
  gap: 10px;
}

.history-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px 12px;
  color: rgba(255, 255, 255, 0.8);
}

.history-toolbar .form-check-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13.5px;
  margin-left: 4px;
}

.order-history-section h5 {
  text-align: center;
}

.popular-items-section {
  border-top: 1px solid rgba(255, 255, 255, 0.708);
  padding-top: 32px;
}

/* ===== Empty Cart Centered Wrapper ===== */

.cart-empty-centered {
  max-width: 520px;
  margin: 0 auto;
}

.cart-empty-centered .active-order-card {
  text-align: left;
}

/* ===== Empty Cart Box ===== */

.empty-cart-block {
  background: linear-gradient(145deg, #09131d, #03070b);
  border: 1px solid rgba(255, 107, 53, 0.588);
  border-radius: 20px;
  padding: 40px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ===== Delivered / Cancelled countdown states ===== */

.order-countdown.delivered-countdown .countdown-time {
  color: #2ecc71;
}

.order-countdown.cancelled-countdown .countdown-time {
  color: #ff6b6b;
}


@media (max-width: 576px) {
  .order-track-top {
    flex-direction: column;
    gap: 4px;
  }
  .order-track-total {
    align-self: flex-end;
  }
}