/* ==========================================================================
   KURINJI TRADERS - QUICK ORDER PAGE STYLESHEET
   Supports multi-step flow (1: Order -> 2: Cart -> 3: Checkout) without popups.
   ========================================================================== */

.quick-order-body {
  background-color: #0c0907;
  color: #f5f0eb;
  padding-bottom: 80px;
  min-height: 100vh;
}

.quick-order-body.has-sticky-bar {
  padding-bottom: 130px; /* Space for fixed grand total footer on Step 1 */
}

.quick-order-main {
  padding-top: 1rem;
}

.quick-order-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==================== STEPPER ==================== */
.order-stepper-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6e6459;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #4a4137;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6e6459;
  transition: all var(--transition-fast);
}

/* Active Step */
.step-item.active {
  color: #dfb872;
  font-weight: 700;
}

.step-item.active .step-circle {
  border-color: #dfb872;
  color: #dfb872;
  box-shadow: 0 0 10px rgba(223, 184, 114, 0.25);
}

/* Completed Step */
.step-item.completed {
  color: #caa238;
  font-weight: 700;
}

.step-item.completed .step-circle {
  background: #caa238;
  border-color: #caa238;
  color: #120e0a;
  box-shadow: 0 0 10px rgba(202, 162, 56, 0.3);
}

.step-line {
  width: 26px;
  height: 1px;
  background: #383028;
  transition: background var(--transition-fast);
}

.step-line.completed {
  background: #caa238;
}

/* ==================== STEP SECTIONS DISPLAY ==================== */
.step-view-section {
  display: none;
}

.step-view-section.active {
  display: block;
  animation: fadeIn 0.28s ease-out;
}

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

/* ==================== STEP 1: HEADINGS ==================== */
.order-heading-wrap {
  text-align: center;
  margin-bottom: 2.8rem;
}

.order-eyebrow {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #dfb872;
  margin-bottom: 0.6rem;
}

.order-main-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 600;
  color: #fff9f0;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.order-subtitle {
  font-size: 1.05rem;
  color: #a89f91;
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== CATEGORY GROUP & ROWS ==================== */
.order-category-group {
  margin-bottom: 2.8rem;
}

.category-header-pill {
  background: #caa238;
  border-radius: 8px;
  padding: 0.85rem 1.4rem;
  margin-bottom: 0.4rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.category-pill-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #120e0a;
  margin: 0;
}

/* Product Row */
.order-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 1.5rem;
  transition: background var(--transition-fast);
}

.order-product-row:hover {
  background: rgba(223, 184, 114, 0.035);
}

.product-col-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 2.4;
  min-width: 0;
}

.product-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  padding: 2px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.product-meta {
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.product-pack-size {
  font-size: 0.85rem;
  color: #8c8275;
}

.product-col-price {
  flex: 0.9;
  text-align: right;
}

.price-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.product-col-qty {
  flex: 1.2;
  display: flex;
  justify-content: center;
}

.qty-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-qty-step {
  width: 26px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #c5bbae;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-qty-step:hover {
  background: var(--gold-primary);
  color: #120e0a;
  border-color: var(--gold-primary);
}

.qty-field {
  width: 74px;
  height: 42px;
  background: #171310;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  text-align: center;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  outline: none;
  font-family: inherit;
  transition: all var(--transition-fast);
  -moz-appearance: textfield;
}

.qty-field::-webkit-inner-spin-button,
.qty-field::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-field:focus {
  border-color: #dfb872;
  box-shadow: 0 0 12px rgba(223, 184, 114, 0.25);
  background: #1e1915;
}

.product-col-total {
  flex: 0.9;
  text-align: right;
}

.total-val {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  min-width: 65px;
  display: inline-block;
  letter-spacing: 0.01em;
}

/* ==================== STICKY GRAND TOTAL BAR (STEP 1) ==================== */
.sticky-order-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #120e0a;
  border-top: 1px solid rgba(223, 184, 114, 0.25);
  padding: 1.1rem 2rem;
  z-index: 1000;
  box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.sticky-order-bar.hidden {
  display: none !important;
}

.sticky-bar-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grand-total-col {
  display: flex;
  flex-direction: column;
}

.grand-total-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9c9284;
  margin-bottom: 2px;
}

.grand-total-val {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: #dfb872;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(223, 184, 114, 0.3);
}

.btn-order-submit {
  background: #caa238;
  color: #120e0a;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 3.4rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(202, 162, 56, 0.3);
  letter-spacing: 0.02em;
}

.btn-order-submit:hover {
  background: #dfb872;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(223, 184, 114, 0.45);
}

/* ==================== STEP 2: CART VIEW (EXACT MATCH TO ATTACHED SCREENSHOT) ==================== */
.cart-nav-back-row {
  max-width: 880px;
  margin: 0 auto 1.4rem;
  display: flex;
  align-items: center;
}

.btn-edit-items {
  background: none;
  border: none;
  color: #caa238;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  padding: 0.3rem 0;
  transition: all var(--transition-fast);
}

.btn-edit-items:hover {
  color: #f2ca6b;
  transform: translateX(-3px);
}

.cart-order-card {
  max-width: 880px;
  margin: 0 auto;
  background: #14100d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.cart-card-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: #fff8e7;
  margin-bottom: 2.2rem;
}

/* Cart List */
.cart-items-review-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-bottom: 1.6rem;
}

.cart-review-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cart-review-left {
  display: flex;
  flex-direction: column;
}

.cart-review-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
  line-height: 1.25;
}

.cart-review-pack {
  font-size: 0.9rem;
  color: #a89f91;
  margin-bottom: 0.3rem;
}

.cart-review-calc {
  font-size: 0.95rem;
  color: #a89f91;
}

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

.cart-review-price {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #caa238;
  letter-spacing: 0.01em;
}

/* Subtotal */
.cart-subtotal-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
}

.cart-subtotal-label {
  font-size: 1.15rem;
  color: #b5aba0;
}

.cart-subtotal-amount {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #caa238;
}

.cart-divider-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1.4rem 0 1.6rem;
}

/* Grand Total */
.cart-grand-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-grand-total-label {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.cart-grand-total-amount {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: #caa238;
  line-height: 1;
}

/* Action button under card */
.cart-action-wrap {
  max-width: 880px;
  margin: 2rem auto 2.5rem;
}

.btn-proceed-checkout {
  width: 100%;
  background: #caa238;
  color: #120e0a;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 1.05rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 18px rgba(202, 162, 56, 0.3);
  letter-spacing: 0.02em;
}

.btn-proceed-checkout:hover {
  background: #dfb872;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(223, 184, 114, 0.45);
}

.btn-proceed-checkout:active {
  transform: scale(0.98);
}

/* Quick Footer Info Contact Line */
.quick-footer-contact {
  text-align: center;
  font-size: 0.95rem;
  color: #caa238;
  margin-top: 1rem;
  margin-bottom: 3.5rem;
  letter-spacing: 0.02em;
}

.quick-footer-contact a {
  color: #caa238;
  text-decoration: none;
  font-weight: 600;
}

.quick-footer-contact a:hover {
  text-decoration: underline;
  color: #f7de98;
}

/* ==================== STEP 3: INLINE CHECKOUT CARD ==================== */
.checkout-form-card {
  padding: 2.5rem 3rem;
}

.checkout-card-header {
  margin-bottom: 1.8rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c5bbae;
}

.form-group input {
  background: #110d0a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-group input:focus {
  border-color: #dfb872;
  box-shadow: 0 0 10px rgba(223, 184, 114, 0.2);
}

.payment-method-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.payment-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c5bbae;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.payment-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #110d0a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.payment-pill input {
  accent-color: #dfb872;
}

.payment-pill:has(input:checked) {
  border-color: #dfb872;
  background: rgba(223, 184, 114, 0.08);
  color: #ffffff;
}

.checkout-summary-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #110d0a;
  border: 1px solid rgba(223, 184, 114, 0.2);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

.checkout-strip-amount {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #dfb872;
}

/* Back to store button in nav */
.back-to-store-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold-primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.back-to-store-btn:hover {
  background: rgba(223, 184, 114, 0.1);
  color: var(--gold-light);
  border-color: var(--gold-primary);
}

/* ==================== RESPONSIVE QUICK ORDER ==================== */
@media (max-width: 768px) {
  .order-main-title {
    font-size: 2.4rem;
  }

  .cart-order-card {
    padding: 1.8rem 1.4rem;
  }

  .order-product-row {
    flex-wrap: wrap;
    gap: 0.9rem;
    padding: 1rem 0.2rem;
  }

  .product-col-main {
    flex: 1 1 100%;
  }

  .product-col-price {
    flex: 1;
    text-align: left;
  }

  .product-col-qty {
    flex: 1;
    justify-content: center;
  }

  .product-col-total {
    flex: 1;
    text-align: right;
  }

  .sticky-order-bar {
    padding: 0.9rem 1.25rem;
  }

  .grand-total-val {
    font-size: 1.85rem;
  }

  .btn-order-submit {
    padding: 0.75rem 2.2rem;
    font-size: 0.95rem;
  }

  .form-row-2,
  .payment-options {
    grid-template-columns: 1fr;
  }
}
