/* cart logics */

.cart-link {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #e63946;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 50%;
  line-height: 1;
}

.cart-count {
  background: red;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  margin-left: 6px;
  display: none;
}

.cart-container {
  max-width: 700px;
  margin: 20px auto;
  padding: 10px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid #ddd;
}

.cart-item button {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}


.hk-cart {
  flex: 1;
  background: #0b4da2;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 22px;
  font-weight: 600;
}
.hk-cart.view-cart {
  background: #6fdc8c; /* light green */
  color: #083b1a;
}

.hk-cart.view-cart:hover {
  background: #5acb79;
}
/* =========================================
   DESIGN SYSTEM
========================================= */
:root {
  --primary: #00b894;
  --primary-dark: #019875;
  --secondary: #003b5c;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --transition: 0.3s ease;
}

body {
  background: var(--bg-light);
}

/* =========================================
   CONTAINER
========================================= */
.cart-container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  font-family: 'Poppins', sans-serif;
}

/* =========================================
   STEP INDICATOR (Modern Progress Style)
========================================= */
.cart-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 50px;
}

.cart-steps::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.cart-steps .step {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  flex: 1;
  transition: var(--transition);
}

.cart-steps .step::before {
  content: attr(data-step);
}

/* Number Circle */
.cart-steps .step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cart-steps .step br {
  display: none;
}

.cart-steps .step:first-child::before {
  content: "1";
}
.cart-steps .step:nth-child(2)::before {
  content: "2";
}
.cart-steps .step:nth-child(3)::before {
  content: "3";
}
.cart-steps .step:nth-child(4)::before {
  content: "4";
}

.cart-steps .step::before {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
}

/* Active */
.cart-steps .step.active {
  color: var(--primary);
  font-weight: 600;
}

.cart-steps .step.active::before {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* =========================================
   LAYOUT
========================================= */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}

/* =========================================
   CART ITEMS (LEFT)
========================================= */
.cart-left {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Individual Item */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 18px;
  transition: var(--transition);
  background: #fff;
}

.cart-item:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.cart-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.cart-item p {
  font-size: 13px;
  color: var(--text-light);
}

.cart-item-right {
  text-align: right;
}

.cart-item-right .price {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}

.remove-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #94a3b8;
  transition: var(--transition);
}

.remove-btn:hover {
  color: #ef4444;
}

/* =========================================
   ACTION BUTTONS
========================================= */
.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
}

.add-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.add-more:hover {
  color: var(--primary-dark);
}

.next-btn {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.next-btn:hover {
  background: #022c43;
  transform: translateY(-2px);
}

@media (max-width: 768px) {

  .cart-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
  }

  /* 🔥 ADD MORE (HIGHLY VISIBLE CHIP STYLE) */
  .add-more {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #007bff !important;
    background: rgba(0,123,255,0.12) !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    display: inline-block;
  }

  /* 🔥 NEXT BUTTON (COMPACT PRIMARY CTA) */
  .next-btn {
    background: linear-gradient(135deg, #022c43, #007bff) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    cursor: pointer;
    min-width: 100px;
  }

  .next-btn:active {
    transform: scale(0.95);
  }
}

/* SEARCH BOX */
.search-box {
  position: relative;
  margin-bottom: 15px;
}

.search-box input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: all 0.25s ease;
  background: #f8fafc;
}

/* Focus effect */
.search-box input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Icon */
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #94a3b8;
  pointer-events: none;
}

/* Placeholder */
.search-box input::placeholder {
  color: #94a3b8;
}



/* =========================================
   PAYMENT SUMMARY (RIGHT)
========================================= */
.cart-right {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 30px;
}

.cart-right h3 {
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--text-dark);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-light);
}

.summary-row.total {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.discount {
  color: #16a34a;
  font-weight: 500;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 15px 0;
}

/* =========================================
   EMPTY CART IMAGE CONTROL
========================================= */
.empty-cart {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.empty-cart img {
  display: block !important;
  width: 220px !important;
  margin: 20px auto !important;
  
}

@media (max-width: 600px) {
  .empty-cart img {
    width: 70% !important;   /* scale nicely */
    max-width: 260px;        /* limit size */
  }
}

/* edit detect location buttons */

.editMember{
  background:#f5f7ff;
  border:1px solid #d0d7ff;
  color:#3f51b5;
  padding:6px 14px;
  border-radius:6px;
  font-size:13px;
  cursor:pointer;
  transition:all .2s ease;
  margin-left:auto;
}

.editMember:hover{
  background:#3f51b5;
  color:white;
  border-color:#3f51b5;
}

.member-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  border:1px solid #eee;
  border-radius:8px;
  margin-bottom:10px;
  background:white;
}


#detectLocation{
  margin-top:10px;
  padding:8px 12px;
  border:none;
  background:#e8f5e9;
  color:#2e7d32;
  font-size:13px;
  border-radius:6px;
  cursor:pointer;
  transition:all .2s ease;
}

#detectLocation:hover{
  background:#2e7d32;
  color:white;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-right {
    position: relative;
    top: 0;
  }

  .cart-actions {
    flex-direction: column;
    gap: 15px;
  }

  .next-btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cart-item-right {
    width: 100%;
    text-align: left;
  }
}



/* =========================================
   EMPTY CART DESIGN
========================================= */

.empty-cart {
  text-align: center;
  padding: 60px 20px;
}

.empty-cart img {
  width: 220px;
  max-width: 100%;
  margin-bottom: 20px;
  opacity: 0.9;
}

.empty-cart h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.empty-cart p {
  font-size: 14px;
  color: var(--text-light);
}

/* =========================================
   RIGHT SIDE – PAYMENT SUMMARY
========================================= */

.cart-right {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  height: fit-content;
  position: sticky;
  top: 30px;
  transition: 0.3s ease;
}

.cart-right h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 22px;
  color: #0f172a;
  letter-spacing: 0.3px;
}

/* Summary Rows */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: #475569;
}

.summary-row.total {
  font-weight: 600;
  font-size: 18px;
  color: #0f172a;
  padding-top: 16px;
}

.summary-row span:last-child {
  font-weight: 500;
}

/* Divider */
.cart-right hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 15px 0;
}

@media (max-width: 768px) {

  .cart-right {
    position: static;          /* ❌ remove sticky */
    top: auto;
    width: 100%;
    margin-top: 20px;

    padding: 18px;             /* reduce spacing */
    border-radius: 12px;

    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  }

  .cart-right h3 {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .summary-row {
    font-size: 13px;
    padding: 8px 0;
  }

  .summary-row.total {
    font-size: 16px;
    padding-top: 12px;
  }

  .cart-right hr {
    margin: 12px 0;
  }
}


/* =========================================
   MEMBER SELECTION SECTION
========================================= */

.member-container {
  max-width: 600px;
  margin: 40px auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
}

/* Member List */
.member-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 25px 0;
}

/* Individual Member Card */
.member-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #ffffff;
  position: relative;
}

/* Hover Effect */
.member-card:hover {
  border-color: #00b894;
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.08);
  transform: translateY(-2px);
}

/* Selected State (Add .active class via JS) */
.member-card.active {
  border-color: #00b894;
  background: #f0fdf9;
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.1);
}



/* =========================================
   ADD MEMBER BUTTON
========================================= */
.add-member-btn {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 2px dashed #10b981;
  font-size: 15px;
  font-weight: 600;
  color: #047857;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-member-btn:hover {
  background: linear-gradient(135deg, #d1fae5, #ecfeff);
  border-color: #059669;
  color: #065f46;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16,185,129,0.25);
}

.member-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.member-modal-box {
  background: #ffffff;
  width: 92%;
  max-width: 420px;
  padding: 28px;
  border-radius: 22px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.member-modal-box h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 18px;
}

.member-modal-box input,
.member-modal-box select {
  width: 100%;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  transition: all 0.2s ease;
}

.member-modal-box input:focus,
.member-modal-box select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
  outline: none;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.cancel-btn {
  flex: 1;
  background: #f1f5f9;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}

.cancel-btn:hover {
  background: #e2e8f0;
}

.save-btn {
  flex: 1;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.save-btn:hover {
  box-shadow: 0 12px 28px rgba(37,99,235,0.35);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .member-container {
    padding: 20px;
  }

  .member-card {
    padding: 14px;
  }
}



/* =========================================
   DATE INPUT (Modern Clean Style)
========================================= */

.date-input {
  width: 100%;
  padding: 14px 16px;
  margin: 12px 0 24px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  transition: all 0.25s ease;
  outline: none;
}

/* Focus State */
.date-input:focus {
  border-color: #00b894;
  box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.08);
}

/* =========================================
   TIME SLOT CONTAINER
========================================= */

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

/* =========================================
   INDIVIDUAL TIME SLOT
========================================= */

.time-slot {
  padding: 12px 18px;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 90px;
  text-align: center;
}

/* Hover Effect */
.time-slot:hover {
  border-color: #00b894;
  color: #00b894;
  background: #f0fdf9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 184, 148, 0.08);
}

/* Active Selected Slot */
.time-slot.active {
  background: #00b894;
  color: #ffffff;
  border-color: #00b894;
  box-shadow: 0 8px 18px rgba(0, 184, 148, 0.25);
}

/* Optional Disabled State */
.time-slot.disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 576px) {
  .time-slots {
    gap: 10px;
  }

  .time-slot {
    flex: 1 1 45%;
    padding: 10px;
    font-size: 13px;
  }
}

/* =========================================
   PAYMENT PAGE LAYOUT
========================================= */

.cart-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Poppins', sans-serif;
}

.cart-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* =========================================
   LEFT SECTION – MODERN & PREMIUM
========================================= */

.cart-left {
  flex: 2;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  padding: 36px;
  border-radius: 20px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
}

/* SECTION TITLE */
.cart-left h2 {
  font-size: 22px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 22px;
  position: relative;
}

/* subtle underline */
.cart-left h2::after {
  content: "";
  width: 46px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 3px;
  display: block;
  margin-top: 8px;
}

/* SUB HEADINGS */
.cart-left h3 {
  margin-top: 28px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* subtle dot before h3 */
.cart-left h3::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #2563eb;
  border-radius: 50%;
  display: inline-block;
}

/* PARAGRAPH TEXT */
.cart-left p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

/* CART ITEM CARD INSIDE LEFT */
.cart-left .cart-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s ease;
}

.cart-left .cart-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

/* ITEM TITLE */
.cart-left .cart-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #0f172a;
}

/* ITEM META */
.cart-left .cart-item p {
  font-size: 13px;
  color: #64748b;
}

/* PRICE */
.cart-left .price {
  font-size: 15px;
  font-weight: 600;
  color: #2563eb;
}

/* ACTIONS BAR */
.cart-actions {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* CONFIRM BUTTON */
.confirm-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37,99,235,0.35);
  transition: all 0.3s ease;
}

.confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(37,99,235,0.45);
}

/* =========================================
   MOBILE OPTIMIZATION – ADVANCED
========================================= */

@media (max-width: 768px) {

  /* PAGE SPACING */
  .cart-container {
    padding: 12px;
  }

  /* LEFT SECTION */
  .cart-left {
    width: 100% !important;        /* full width */
    max-width: 100% !important;    /* remove limits */
    margin: 0 !important;          /* remove side gaps */

    padding: 16px;                 /* slight reduce for mobile */
    border-radius: 12px;

    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  }

  /* TITLE */
  .cart-left h2 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  /* SUB HEADINGS */
  .cart-left h3 {
    font-size: 14px;
    margin-top: 20px;
  }

  /* CART ITEMS – STACKED CARD */
  .cart-left .cart-item {
    display: block;
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 12px;
  }

  .cart-left .cart-item h4 {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .cart-left .cart-item p {
    font-size: 13px;
  }

  /* PRICE ALIGNMENT */
  .cart-left .cart-item-right {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .cart-left .price {
    font-size: 15px;
  }

  /* ACTION BAR – STICKY */
  .cart-actions {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding: 14px;
    margin-top: 24px;
    border-top: 1px solid #e5e7eb;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
    display: block;
  }

  /* BUTTON */
  .confirm-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    border-radius: 999px;
  }

  /* REMOVE HOVER LIFT ON MOBILE */
  .confirm-btn:hover {
    transform: none;
    box-shadow: 0 10px 25px rgba(37,99,235,0.35);
  }

}


/* =========================================
   CART ITEM INSIDE PAYMENT
========================================= */

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.cart-item p {
  font-size: 13px;
  color: #64748b;
  margin: 4px 0 0 0;
}

.cart-item-right {
  font-weight: 600;
  font-size: 15px;
  color: #111827;
}

/* =========================================
   CONFIRM BUTTON
========================================= */

.confirm-btn {
  width: 100%;
  padding: 14px;
  margin-top: 25px;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s ease;
}

.confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}

/* =========================================
   RIGHT PAYMENT SUMMARY
========================================= */

.cart-right {
  flex: 1;
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: sticky;
  top: 30px;
}

.cart-right h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.summary-row.total {
  font-size: 16px;
  font-weight: 600;
  margin-top: 10px;
}

.discount {
  color: #16a34a;
  font-weight: 500;
}

/* =========================================
   COUPON SECTION
========================================= */

.coupon-box {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}

.coupon-box input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

.coupon-box input:focus {
  outline: none;
  border-color: #2563eb;
}

.coupon-box button {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s ease;
}

.coupon-box button:hover {
  background: #1d4ed8;
}

/* =========================================
   COUPON SECTION
========================================= */

.coupon-section {
  margin: 20px 0;
}

.coupon-section h4 {
  font-size: 15px;
  margin-bottom: 10px;
}

.coupon-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px dashed #c7d2fe;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #f8fafc;
}

.coupon-card p {
  font-size: 12px;
  color: #64748b;
  margin: 4px 0 0;
}

.coupon-card button {
  background: #2563eb;
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.coupon-card.applied {
  border-color: #16a34a;
  background: #ecfdf5;
}

.coupon-card.applied button {
  background: #16a34a;
  cursor: default;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 992px) {
  .cart-layout {
    flex-direction: column;
  }

  .cart-right {
    position: relative;
    top: 0;
  }
}

@media (max-width: 600px) {

  .cart-left,
  .cart-right {
    padding: 20px;
  }

  /* ✅ KEEP IN ONE ROW */
  .cart-steps {
    display: flex;
    flex-direction: row; /* important */
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    overflow-x: auto; /* scroll if needed */
    white-space: nowrap;
  }

  .step {
    font-size: 12px;
    flex: 0 0 auto; /* prevent wrapping */
  }
}




.confirm-btn {
  background-color: #0b5ed7; /* trusted blue */
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(11, 94, 215, 0.25);
}

/* Hover */
.confirm-btn:hover {
  background-color: #0a58ca;
  box-shadow: 0 6px 14px rgba(11, 94, 215, 0.35);
  transform: translateY(-1px);
}

/* Active click */
.confirm-btn:active {
  transform: scale(0.98);
}

/* Disabled (future use) */
.confirm-btn:disabled {
  background-color: #cfd8dc;
  cursor: not-allowed;
  box-shadow: none;
}



/* ===============================
   MODAL STYLING
================================= */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 800px;
  margin: 60px auto;
  border-radius: 16px;
  padding: 25px;
  animation: fadeIn 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 {
  font-size: 18px;
}

.close-modal {
  font-size: 22px;
  cursor: pointer;
}

.modal-body {
  max-height: 400px;
  overflow-y: auto;
  display: grid;
  gap: 15px;
}

/* Product Card Inside Modal */
.modal-product {
  border: 1px solid #e2e8f0;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-product button {
  background: #00b894;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
