/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BASE STYLES ===== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  color: #2d3748;
  line-height: 1.6;
  padding: 2rem;
}

.navbar-checkout {
    display: flex;
    justify-content: center; /* Horizontal centering */
    align-items: center;    /* Vertical centering (if needed) */
    padding: 1rem;          /* Optional: Add spacing */
    background: #fff;       /* Optional: Add background */
    border-bottom: 1px solid #eee; /* Optional: Subtle divider */
  }

  .logo {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 30px;        /* Adjust size */
    font-weight: 500;       /* Bold for emphasis */
    letter-spacing: 1px;    /* Luxury spacing */
    color: #333;            /* Dark gray (or use #000 for pure black) */
  }

 .btn-container {
    display: flex;
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering (optional) */
    width: 100%;
    padding: 20px 0; /* Optional spacing */
  }

  .elegant-line-btn {
    display: inline-block;
    padding: 8px 0;
    color: #333;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .elegant-line-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #333;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
  }

  .elegant-line-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  
/* ===== CHECKOUT CONTAINER ===== */
.checkout-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  overflow: hidden;
}

/* ===== BILLING SECTION ===== */
.billing-section {
  flex: 1;
  padding: 3rem;
  background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
  position: relative;
  z-index: 1;
}

.billing-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAwIiBoZWlnaHQ9IjYwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik02MDAgMEgwdjYwMGg2MDB6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTYwMCAwSDB2NjAwaDYwMHoiIGZpbGw9InVybCgjbikiLz48L2c+PC9zdmc+') center/cover no-repeat;
  opacity: 0.03;
  z-index: -1;
}

.details-checkout {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a202c;
  margin: 2rem 0 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.details-checkout:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 0.2rem;
  background: linear-gradient(90deg, #4a6bff, #8a63ff);
  border-radius: 1rem;
}

/* ===== FORM STYLES ===== */
.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  flex: 1;
  position: relative;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

input, textarea, select {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: #2d3748;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(74, 107, 255, 0.4);
  box-shadow: 0 4px 16px rgba(74, 107, 255, 0.12);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

input:hover, textarea:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input[readonly] {
  background: rgba(245, 245, 245, 0.8);
  color: #718096;
  cursor: not-allowed;
}

/* ===== PHONE INPUT STYLE ===== */
.phone-input {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.phone-input span {
  padding: 0 1rem;
  font-size: 0.9375rem;
  color: #4a5568;
  background: rgba(245, 245, 245, 0.8);
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.phone-input input {
  border: none;
  box-shadow: none;
  background: transparent;
  padding-left: 1rem;
}

.phone-input input:focus {
  box-shadow: none;
  transform: none;
}

/* ===== MICRO-INTERACTIONS ===== */
.form-group:focus-within label {
  color: #4a6bff;
  transform: translateX(4px);
}

input::placeholder, textarea::placeholder {
  color: #a0aec0;
  transition: all 0.3s ease;
}

input:focus::placeholder, textarea:focus::placeholder {
  opacity: 0.5;
  transform: translateY(-6px);
  font-size: 0.75rem;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .checkout-container {
    flex-direction: column;
  }
  
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .billing-section {
    padding: 2rem;
  }
}
/* Right Section (Sticky Sidebar) */
.right-section {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 30px;
  height: fit-content;
  font-family: 'Caviar Dreams', 'Montserrat', 'Helvetica Neue', 'Helvetica', sans-serif;
}

/* Order Summary */
.order-summary {
  background: #fff;
  padding: 25px 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.order-summary h2 {
  margin-bottom: 20px;
  font-size: 22px;
  font-family: 'Caviar Dreams', 'Montserrat', 'Helvetica Neue', 'Helvetica', sans-serif;
}

#items-list {
  margin-bottom: 20px;
}

#items-list div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
}

.summary-row, .summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin-bottom: 10px;
}

.summary-total {
  font-size: 18px;
  font-weight: 600;
}

/* Pay Button */
.place-order-btn {
  width: 100%;
  background: linear-gradient(45deg, #f94f6d, #ff0055);
  color: white;
  padding: 15px 0;
  border: none;
  border-radius: 40px;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  margin: 20px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Caviar Dreams', 'Montserrat', 'Helvetica Neue', 'Helvetica', sans-serif;
}

.place-order-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.secured {
  font-size: 14px;
  text-align: center;
  color: #555;
}

/* Recommended Section */
.mini-recommended {
  background: #fff;
  padding: 20px 30px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.mini-recommended h3 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Caviar Dreams', 'Montserrat', 'Helvetica Neue', 'Helvetica', sans-serif;
}

.mini-rec-card {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.mini-rec-card:hover {
  background-color: #f9f9f9;
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.mini-rec-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}

.mini-rec-card .price {
  color: #f94f6d;
  font-weight: 600;
  font-size: 14px;
}
.payment-card {
    position: relative;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.payment-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.card-content {
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(4px);
}

.payment-card:hover .card-content {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 
                inset 0 1px 1px rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.payment-card input[type="radio"]:checked + .card-content {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f5 100%);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08), 
                inset 0 0 0 2px #4a6bff,
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.title {
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: 0.2px;
}

.icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icons img {
    width: 24px;
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.more {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
}

.subtitle {
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    color: #718096;
    font-weight: 400;
    letter-spacing: 0.1px;
}

/* Add a subtle glow effect when selected */
@keyframes subtleGlow {
    0% { box-shadow: 0 0 0 0 rgba(74, 107, 255, 0.1); }
    100% { box-shadow: 0 0 0 6px rgba(74, 107, 255, 0); }
}

.payment-card input[type="radio"]:checked + .card-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    animation: subtleGlow 0.6s ease-out;
    pointer-events: none;
}

.place-order-btn {
  background-color: #000; /* Active state (your current one) */
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
}

.place-order-btn:hover:enabled {
  background-color: #222;
}

/* Disabled look */
.place-order-btn:disabled {
  background-color: #aaa; /* greyed out */
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---- Elite Premium Quantity Controls ---- */
.qty-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #f3f3f3);
  color: #111;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  margin: 0 4px;
}

.qty-btn:hover {
  background: linear-gradient(145deg, #fafafa, #ededed);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.qty-btn:active {
  transform: scale(0.92);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#items-list span[id^="qty-"] {
  min-width: 34px;
  display: inline-block;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  font-family: 'Poppins', sans-serif;
}

/* Responsive */
@media (max-width: 769px) {
  .checkout-container {
    flex-direction: column;
  }
  .right-section {
    position: static;
  }

  .billing-section{
    width: 100%;

  }
  .details-checkout{
    font-size:1.3rem;
    font-weight: 500;
    margin-top: 30px;
    margin-bottom: 10px;
  }

    .billing-section, .right-section {
    padding: 20px;
  }
  .form-row {
    flex-direction: column;
  }
}



/* Pincode Loading Overlay */
#loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: none;
  font-family: 'Caviar Dreams', 'Montserrat', 'Helvetica Neue', 'Helvetica', sans-serif;
}

.loader {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.loader .dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #f94f6d;
  animation: bounce 1s infinite ease-in-out;
}

.loader .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.loader .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

#loading-overlay p {
  font-size: 18px;
  color: #111;
}
/* Desktop look remains same */
.order-summary {
  background: #fff;
  padding: 25px 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-width: 100%;
}
/* ---------- 7. Rewards slider ------------------------------- */
.rewards-slider {
  position: relative;             /* FIX: keeps shadows contained */
  z-index: 1;                     /* FIX: sits under header/footer */
  padding: 14px;
  background: linear-gradient(180deg,#fff 0%, #fff9fa 100%);
  border-radius: 10px;
  margin: 12px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  font-family: inherit;
}

.rs-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 8px; margin-bottom: 10px;
}
#rewards-title { font-size: 14px; color: #8a2b6b; }
#rewards-submsg { font-size: 12px; color: #666; opacity: 0.9; }

.rs-track-wrap { position: relative; height: 46px; display: flex; align-items: center; }
.rs-track { flex: 1; height: 6px; background: #eee; border-radius: 6px; position: relative; }

.rs-progress {
  height: 100%;
  background: linear-gradient(90deg,#ff5aa8,#ff7bbf);
  border-radius: 6px;
  width: 0%;
  transition: width 400ms ease;
}

.rs-nodes {
  position: absolute; left: 0; right: 0;
  top: 50%; transform: translateY(-50%);
  pointer-events: none;
}
.rs-node {
  position: absolute;
  top: 50%; transform: translate(-50%,-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: white;
  border: 3px solid #fde5ef;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 8px rgba(250,40,150,0.06);
  transition: all 240ms ease;
  font-size: 12px;
}
.rs-label {
  position: absolute;
  top: 42px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  white-space: nowrap; text-align: center; color: #333;
  pointer-events: none;
}
.rs-node.locked { opacity: .55; border-color: #f0cddf; }
.rs-node.completed {
  background: linear-gradient(90deg,#ff5aa8,#ff7bbf);
  color: white; border-color: transparent;
}
.rs-node.current {
  transform: translate(-50%,-50%) scale(1.04);
  box-shadow: 0 6px 14px rgba(255,90,168,0.18);
}
.rs-node .icon { font-size: 14px; line-height: 1; }

.rs-footer {
  display: flex; justify-content: space-between;
  margin-top: 10px; font-size: 13px; color: #333;
}
.rs-next-target { color: #c5307a; font-weight: 600; }
/* ---------- 7. Rewards progress bar ------------------------- */
.cart-rewards {
  padding: 16px 18px;
  background: linear-gradient(180deg,#fff 0%, #fff9fa 100%);
  border-radius: 12px;
  margin: 14px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  text-align: center;
}

.cart-rewards .reward-msg {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #222;
}
.cart-rewards .reward-submsg {
  font-size: 12px;
  margin-bottom: 16px;
  color: #555;
}

.reward-progress {
  position: relative;
  height: 60px;
}

.reward-line {
  position: absolute;
  top: 22px; left: 0; right: 0;
  height: 6px;
  background: #eee;
  border-radius: 6px;
}
.reward-line-fill {
  position: absolute;
  top: 22px; left: 0;
  height: 6px;
  background: linear-gradient(90deg,#ff5aa8,#ff7bbf);
  border-radius: 6px;
  transition: width .4s ease;
}

/* Each milestone */
.reward-step {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #fde5ef;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}
.reward-step .reward-icon {
  font-size: 16px;
  line-height: 1;
}
.reward-step .reward-label {
  position: absolute;
  top: 46px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
  color: #333;
}

/* Step states */
.reward-step.completed {
  background: linear-gradient(90deg,#ff5aa8,#ff7bbf);
  color: #fff;
  border: none;
}
.reward-step.completed .reward-icon {
  content: "✔";
}

.reward-step.active {
  border-color: #ff7bbf;
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 6px 14px rgba(255,90,168,0.18);
}
.reward-step:not(.completed):not(.active) {
  opacity: 0.65;
}

/* Positioning steps across the line */
.reward-step:nth-of-type(3) { left: 50%; }
.reward-step:nth-of-type(4) { right: 0; transform: translateX(50%); }
.reward-step:nth-of-type(2) { left: 0%; } /* First step */
.reward-step .reward-label {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  width: 100%;            /* fixed width for text */
  white-space: normal;    /* allow wrapping */
  text-align: center;
  color: #333;
}
/* Fullscreen overlay */
#cod-flash-screen {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  display: none; /* default hidden */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: sans-serif;
  pointer-events: all; /* overlay catches everything */
}

#cod-flash-screen .loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

#cod-flash-screen h2 {
  font-size: 20px;
  color: #333;
}

#cod-flash-screen p {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}


/* Mobile full-width adjustment */
@media (max-width: 769px) {
  .order-summary {
    width: 100%;
    max-width: 100%;
    margin: 0;             /* remove side margin */
    border-radius: 0;      /* edge-to-edge look */
    padding: 20px;         /* reduce padding */
    box-shadow: none;      /* optional: remove card shadow */
    border-top: 1px solid #eee; /* subtle separation */
    border-bottom: 1px solid #eee;
  }

  .checkout-container {
    padding: 0 !important; /* remove outer padding */
  }

  body {
    padding: 0; /* body padding was causing side whitespace */
  }
}

/* Enhanced Checkout Styles */
.toast {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success { background: #4CAF50; }
.toast-error { background: #f44336; }
.toast-info { background: #2196F3; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s ease;
}

.cart-item:hover {
  background-color: #f9f9f9;
}

.item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  font-size: 24px;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-details {
  flex: 1;
}

.item-name {
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.remove-btn {
  background: #ff4757;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}

.gift-badge {
  background: linear-gradient(45deg, #ff6b6b, #ffa726);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.empty-cart {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.continue-shopping-btn {
  display: inline-block;
  background: #000;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 15px;
}

.cart-counter {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Enhanced form validation */
input.invalid, textarea.invalid {
  border-color: #ff4757 !important;
  background-color: #fff5f5 !important;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.fa-spin {
  animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .item-controls {
    justify-content: center;
  }
  
  .toast {
    left: 20px;
    right: 20px;
    top: 20px;
  }
}

/* Reward/Discount Flash Notifications */
.reward-flash-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #ff5aa8;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 320px;
  font-family: 'Caviar Dreams', 'Montserrat', 'Helvetica Neue', sans-serif;
}

.reward-flash-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.reward-flash-notification.fade-out {
  transform: translateX(400px);
  opacity: 0;
}

.flash-content {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 12px;
}

.flash-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff5aa8, #ff7bbf);
  border-radius: 50%;
  flex-shrink: 0;
}

.reward-flash-notification[style*="discount"] .flash-icon {
  background: linear-gradient(135deg, #4CAF50, #45a049);
}

.flash-text {
  flex: 1;
  min-width: 0;
}

.flash-title {
  font-weight: 600;
  font-size: 15px;
  color: #2d3748;
  margin-bottom: 2px;
  line-height: 1.3;
}

.flash-subtitle {
  font-size: 13px;
  color: #718096;
  line-height: 1.3;
}

.flash-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f7fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #a0aec0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.flash-close:hover {
  background: #edf2f7;
  color: #718096;
}

/* Mobile responsive for flash notifications */
@media (max-width: 768px) {
  .reward-flash-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100px);
  }
  
  .reward-flash-notification.show {
    transform: translateY(0);
  }
  
  .reward-flash-notification.fade-out {
    transform: translateY(-100px);
  }
}

/* Animation for progress bar changes */
.reward-line-fill {
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Pulse animation for completed rewards */
.reward-step.completed {
  animation: pulseReward 0.6s ease-in-out;
}

@keyframes pulseReward {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.1); }
  100% { transform: translateX(-50%) scale(1); }
}

/* Enhanced progress bar animations */
.reward-line-fill {
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: linear-gradient(90deg, #ff5aa8, #ff7bbf, #ff9cd4);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Pulse animation for milestone unlocks */
.reward-step.completed {
  animation: pulseUnlock 0.8s ease-in-out;
}

@keyframes pulseUnlock {
  0% { transform: translateX(-50%) scale(1); box-shadow: 0 3px 6px rgba(0,0,0,0.05); }
  50% { transform: translateX(-50%) scale(1.15); box-shadow: 0 8px 20px rgba(255, 90, 168, 0.3); }
  100% { transform: translateX(-50%) scale(1); box-shadow: 0 3px 6px rgba(0,0,0,0.05); }
}

/* Progress Notification Style */
.reward-flash-notification[style*="progress"] {
  border-left-color: #ffa726;
}

.reward-flash-notification[style*="progress"] .flash-icon {
  background: linear-gradient(135deg, #ffa726, #ffb74d);
}

/* Different colors for different notification types */
.reward-flash-notification[style*="reward"] {
  border-left-color: #ff5aa8;
}

.reward-flash-notification[style*="reward"] .flash-icon {
  background: linear-gradient(135deg, #ff5aa8, #ff7bbf);
}

.reward-flash-notification[style*="discount"] {
  border-left-color: #4CAF50;
}

.reward-flash-notification[style*="discount"] .flash-icon {
  background: linear-gradient(135deg, #4CAF50, #66bb6a);
}

/* Animation for progress notifications */
@keyframes progressPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.reward-flash-notification[style*="progress"] {
  animation: progressPulse 2s ease-in-out;
}
/* Quick Summary Section Styles */
.quick-summary {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 24px;
  margin: 0 auto 30px;
  max-width: 1200px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-container h2 {
  font-family: 'Caviar Dreams', 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 24px;
  margin-bottom: 20px;
  color: #2d3748;
  text-align: center;
  position: relative;
  padding-bottom: 12px;
}

.summary-container h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #4a6bff, #8a63ff);
  border-radius: 2px;
}

.summary-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.highlight-item i {
  font-size: 20px;
  color: #ff5aa8;
  margin-top: 2px;
  flex-shrink: 0;
}

.highlight-item span {
  font-size: 15px;
  line-height: 1.4;
  color: #4a5568;
}

.summary-note {
  text-align: center;
  font-size: 14px;
  color: #718096;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.scroll-link {
  color: #4a6bff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.scroll-link:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #4a6bff;
  transition: width 0.3s ease;
}

.scroll-link:hover {
  color: #8a63ff;
}

.scroll-link:hover:after {
  width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .quick-summary {
    margin: 0 10px 20px;
    padding: 20px 16px;
    border-radius: 12px;
  }
  
  .summary-highlights {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .highlight-item {
    padding: 14px;
  }
  
  .summary-container h2 {
    font-size: 20px;
  }
}

/* Enhanced Form Validation Styles */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group.error-highlight label {
  color: #e53e3e;
}

input.invalid, textarea.invalid {
  border-color: #e53e3e !important;
  background-color: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}

input.valid, textarea.valid {
  border-color: #38a169 !important;
  background-color: #f0fff4 !important;
}

/* Enhanced Button States */
.place-order-btn.btn-enabled {
  background: linear-gradient(45deg, #f94f6d, #ff0055);
  color: white;
  cursor: pointer;
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.place-order-btn.btn-enabled:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.place-order-btn.btn-disabled {
  background: #a0aec0 !important;
  color: #718096 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.place-order-btn.btn-disabled:hover {
  transform: none !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

/* Shake animation for invalid form submission */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.place-order-btn.shake {
  animation: shake 0.6s ease-in-out;
}

/* Enhanced Form Warning */
.form-warning {
  background: #fed7d7;
  color: #c53030;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 4px solid #e53e3e;
  margin: 15px 0;
  font-size: 14px;
  display: none;
}

.form-warning:before {
  content: "⚠️ ";
  margin-right: 8px;
}

/* Field focus states for better UX */
.form-group:focus-within label {
  color: #4a6bff;
  transform: translateX(4px);
}

.form-group.error-highlight:focus-within label {
  color: #e53e3e;
}

/* Real-time validation feedback */
.validation-message {
  position: absolute;
  bottom: -20px;
  left: 0;
  font-size: 12px;
  color: #e53e3e;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
}

.form-group.error-highlight .validation-message {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments for validation */
@media (max-width: 768px) {
  .form-warning {
    margin: 10px 0;
    font-size: 13px;
  }
  
  input.invalid, textarea.invalid {
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.1) !important;
  }
}

/* Progress indicator for form completion */
.form-progress {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}

.form-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a6bff, #8a63ff);
  border-radius: 2px;
  transition: width 0.5s ease;
}
/* Enhanced Button States */
.place-order-btn.btn-enabled {
  background: linear-gradient(45deg, #f94f6d, #ff0055);
  color: white;
  cursor: pointer;
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.place-order-btn.btn-enabled:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.place-order-btn.btn-disabled {
  background: #a0aec0 !important;
  color: #718096 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.place-order-btn.btn-disabled:hover {
  transform: none !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

/* Shake animation for invalid form submission */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.place-order-btn.shake {
  animation: shake 0.6s ease-in-out;
}

/* Enhanced Form Warning */
.form-warning {
  background: #fed7d7;
  color: #c53030;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 4px solid #e53e3e;
  margin: 15px 0;
  font-size: 14px;
  display: none;
}

.form-warning:before {
  content: "⚠️ ";
  margin-right: 8px;
}

.reward-flash-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4CAF50;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10000;
  max-width: 350px;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.reward-flash-notification.show {
  transform: translateX(0);
}

.reward-flash-notification.fade-out {
  transform: translateX(400px);
}

.flash-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flash-icon {
  font-size: 24px;
}

.flash-text {
  flex: 1;
}

.flash-title {
  font-weight: bold;
  font-size: 16px;
}

.flash-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 2px;
}

.flash-close {
  cursor: pointer;
  font-size: 18px;
  opacity: 0.8;
}

.reward-flash-notification[data-type="success"] {
  background: #4CAF50;
}

.reward-flash-notification[data-type="error"] {
  background: #f44336;
}

.reward-flash-notification[data-type="progress"] {
  background: #FF9800;
}