/**
 * RAJESH FRAMING - SHOPPING CART & CHECKOUT STYLESHEET
 * Luxury Obsidian, Warm Gold, Cream and White aesthetic
 */

/* ==========================================================================
   1. NAVBAR CART BUTTON & BADGE
   ========================================================================== */
.navbar-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(201, 154, 61, 0.28);
  border-radius: 50%;
  color: var(--primary-black, #111111);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 0;
  margin-right: 6px;
  flex-shrink: 0;
}

.navbar-cart-btn:hover {
  background: #FFFFFF;
  color: var(--accent-gold, #C99A3D);
  border-color: var(--accent-gold, #C99A3D);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 154, 61, 0.25);
}

.navbar-cart-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.navbar-cart-btn:hover svg {
  transform: scale(1.08);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #C99A3D 0%, #A87A24 100%);
  color: #FFFFFF;
  font-family: var(--font-heading, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto);
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  padding: 0 5px;
  border-radius: 9999px;
  border: 2px solid #FFFFFF;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge.bump {
  animation: badgePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   CUSTOMER AUTHENTICATION (NAVBAR BUTTON & MINIMAL OTP MODAL)
   ========================================================================== */
.navbar-user-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(201, 154, 61, 0.28);
  border-radius: 50%;
  color: var(--primary-black, #111111);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 0;
  margin-right: 6px;
  flex-shrink: 0;
}

.navbar-user-btn:hover {
  background: #FFFFFF;
  color: var(--accent-gold, #C99A3D);
  border-color: var(--accent-gold, #C99A3D);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 154, 61, 0.25);
}

.navbar-user-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.navbar-user-btn:hover svg {
  transform: scale(1.08);
}

.user-active-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: #10B981;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(16, 185, 129, 0.5);
}

.user-avatar-initial {
  font-family: var(--font-heading, inherit);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-gold, #C99A3D);
  line-height: 1;
  text-transform: uppercase;
}

/* Minimal Customer Auth Modal Container */
#customerAuthModal .modal-container {
  max-width: 440px;
}

.auth-otp-input {
  text-align: center;
  font-size: 1.5rem !important;
  letter-spacing: 8px !important;
  font-weight: 800 !important;
  font-family: 'Courier New', Courier, monospace !important;
}

.auth-notice-box {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.auth-notice-info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}

.auth-notice-success {
  background: #ECFDF3;
  border: 1px solid #ABEFC6;
  color: #027A48;
}

.auth-notice-error {
  background: #FEF3F2;
  border: 1px solid #FECDCA;
  color: #B42318;
}

.auth-timer-text {
  font-size: 0.8125rem;
  color: #6B7280;
}

.auth-resend-btn {
  background: none;
  border: none;
  color: var(--accent-gold, #C99A3D);
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.auth-resend-btn:disabled {
  color: #9CA3AF;
  text-decoration: none;
  cursor: not-allowed;
}

/* Orders List in Account Modal */
.cust-order-card {
  background: #FAF9F6;
  border: 1px solid #EBE6DC;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.cust-order-card:hover {
  border-color: var(--accent-gold, #C99A3D);
  background: #FFFFFF;
}

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

.cust-order-id {
  font-weight: 700;
  font-size: 0.875rem;
  color: #111111;
  text-decoration: none;
}

.cust-order-id:hover {
  color: var(--accent-gold, #C99A3D);
}

.cust-order-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.cust-order-badge.confirmed { background: #ECFDF3; color: #027A48; }
.cust-order-badge.shipped { background: #EFF8FF; color: #175CD3; }
.cust-order-badge.completed { background: #ECFDF3; color: #027A48; }
.cust-order-badge.cancelled { background: #FEF3F2; color: #B42318; }

/* ==========================================================================
   2. CART DRAWER (SLIDE-OUT OVERLAY)
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 20, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100001 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: min(440px, 100vw);
  background: #FFFFFF;
  z-index: 100002 !important;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.open .cart-drawer {
  transform: translateX(0);
}

/* Drawer Header */
.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid #F0ECE4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAF8F5;
}

.cart-drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-drawer-title {
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.cart-count-pill {
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #6B7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.cart-drawer-close:hover {
  color: #111111;
  background: #E5E7EB;
}

/* Shipping Notice Strip */
.cart-shipping-notice {
  background: #FAF7F2;
  border-bottom: 1px solid #F0ECE4;
  padding: 10px 20px;
  font-size: 0.8125rem;
  color: #4B5563;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-shipping-notice strong {
  color: var(--accent-gold, #C99A3D);
}

/* Drawer Body (Items List) */
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Empty State */
.cart-empty-state {
  margin: auto;
  text-align: center;
  padding: 40px 20px;
}

.cart-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: #FAF7F2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  border: 1px solid #E5E0D5;
}

.cart-empty-title {
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: 1.25rem;
  color: #111111;
  margin-bottom: 8px;
}

.cart-empty-text {
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 24px;
}

/* Cart Item Card */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  padding: 14px;
  background: #FAF8F5;
  border-radius: 12px;
  border: 1px solid #EFEAE1;
  position: relative;
  transition: all 0.2s ease;
}

.cart-item:hover {
  background: #FFFFFF;
  border-color: #DFD7C9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: #EDE8DE;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111111;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.cart-item-meta {
  font-size: 0.75rem;
  color: #6B7280;
  margin-bottom: 6px;
}

.cart-item-price {
  font-weight: 700;
  color: var(--accent-gold, #C99A3D);
  font-size: 0.95rem;
}

/* Quantity Stepper */
.cart-qty-stepper {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #DFD7C9;
  border-radius: 6px;
  overflow: hidden;
  height: 30px;
  width: fit-content;
  margin-top: 6px;
}

.qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.qty-btn:hover {
  background: #FAF7F2;
  color: #111111;
}

.qty-display {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111111;
  min-width: 24px;
  text-align: center;
}

/* Remove button */
.cart-item-remove {
  background: none;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  align-self: flex-start;
  transition: color 0.2s ease;
}

.cart-item-remove:hover {
  color: #EF4444;
}

/* Drawer Footer */
.cart-drawer-footer {
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  border-top: 1px solid #F0ECE4;
  background: #FAF8F5;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: #6B7280;
}

.cart-summary-row.total {
  font-size: 1.125rem;
  font-weight: 800;
  color: #111111;
  padding-top: 8px;
  border-top: 1px dashed #E5E0D5;
  margin-top: 8px;
  margin-bottom: 16px;
}

.cart-summary-row.total span:last-child {
  color: var(--accent-gold, #C99A3D);
  font-size: 1.25rem;
}

.btn-cart-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #C99A3D 0%, #A87A24 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(201, 154, 61, 0.3);
  text-decoration: none;
}

.btn-cart-checkout:hover {
  background: linear-gradient(135deg, #D4A74B 0%, #B8882E 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 154, 61, 0.4);
}

.btn-cart-continue {
  display: block;
  text-align: center;
  margin-top: 12px;
  background: none;
  border: none;
  color: #6B7280;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: color 0.2s ease;
}

.btn-cart-continue:hover {
  color: #111111;
  text-decoration: underline;
}

/* ==========================================================================
   3. TOAST NOTIFICATION
   ========================================================================== */
.cart-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0F1014;
  color: #FFFFFF;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 11000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.cart-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.cart-toast-btn {
  background: var(--accent-gold, #C99A3D);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

/* ==========================================================================
   4. PRODUCT PAGE (QUANTITY STEPPER + DUAL BUTTONS)
   ========================================================================== */
.detail-purchase-section {
  background: #FAF8F5;
  border: 1px solid var(--border-light, #E5E0D5);
  border-radius: var(--radius-md, 12px);
  padding: 20px;
  margin-top: 24px;
}

.detail-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.detail-qty-label {
  font-weight: 700;
  color: var(--primary-black, #111111);
  font-size: 0.9375rem;
}

.detail-qty-stepper {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #D5CEBF;
  border-radius: 8px;
  overflow: hidden;
  height: 40px;
}

.detail-qty-stepper .qty-btn {
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
}

.detail-qty-stepper .qty-display {
  font-size: 1rem;
  min-width: 36px;
}

/* Dual Action Buttons on Product Page */
.detail-cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-add-to-cart {
  background: #FFFFFF;
  color: #111111;
  border: 2px solid var(--accent-gold, #C99A3D);
  border-radius: 8px;
  padding: 13px 20px;
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: 0.9375rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-add-to-cart:hover {
  background: var(--accent-gold, #C99A3D);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 154, 61, 0.25);
}

.btn-buy-now {
  background: linear-gradient(135deg, #C99A3D 0%, #A87A24 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 13px 20px;
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: 0.9375rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(201, 154, 61, 0.35);
}

.btn-buy-now:hover {
  background: linear-gradient(135deg, #D4A74B 0%, #B8882E 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 154, 61, 0.45);
}

@media (max-width: 540px) {
  .detail-cart-actions {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   5. CHECKOUT PAGE STYLES
   ========================================================================== */
.checkout-wrapper {
  padding: 40px 0 80px 0;
  background: #F8F6F2;
  min-height: 85vh;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light, #E5E0D5);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

@media (max-width: 600px) {
  .checkout-wrapper {
    padding: 20px 0 60px 0;
  }
  .checkout-card {
    padding: 18px 14px;
    border-radius: 14px;
  }
  .checkout-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
  }
  .cart-drawer-header {
    padding: 16px 18px;
  }
  .cart-drawer-body {
    padding: 14px 12px;
  }
  .cart-drawer-footer {
    padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

.checkout-title {
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F0ECE4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .checkout-form-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-group {
  margin-bottom: 16px;
}

.checkout-group.full {
  grid-column: 1 / -1;
}

.checkout-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.checkout-label .req {
  color: #EF4444;
}

.checkout-input,
.checkout-textarea,
.checkout-select {
  width: 100%;
  padding: 12px 14px;
  background: #FAF8F5;
  border: 1px solid #DFD7C9;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #111111;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.checkout-input:focus,
.checkout-textarea:focus,
.checkout-select:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--accent-gold, #C99A3D);
  box-shadow: 0 0 0 3px rgba(201, 154, 61, 0.15);
}

/* Order Summary (Right Column) */
.order-summary-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light, #E5E0D5);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.order-items-preview {
  margin-bottom: 16px;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F0ECE4;
}

.order-item-img-link {
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.order-item-img-link:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.order-item-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  background: #FAF7F2;
  flex-shrink: 0;
  display: block;
  transition: opacity 0.2s ease;
}

.order-item-img-link:hover .order-item-img {
  opacity: 0.92;
}

.order-item-details {
  flex: 1;
  min-width: 0;
}

.order-item-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111111;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 2px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.order-item-name:hover {
  color: var(--accent-gold, #C99A3D) !important;
  text-decoration: underline;
}

.cart-item-img-link {
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cart-item-img-link:hover {
  transform: scale(1.04);
}

.cart-item-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
  cursor: pointer;
}

.cart-item-title-link:hover {
  color: var(--accent-gold, #C99A3D) !important;
  text-decoration: underline;
}

.order-item-qty {
  font-size: 0.75rem;
  color: #6B7280;
}

.order-item-price {
  font-weight: 700;
  color: var(--accent-gold, #C99A3D);
  font-size: 0.9rem;
}

.order-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 8px;
}

.checkout-item-remove-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid transparent;
  color: #9CA3AF;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.18s ease;
  line-height: 1.2;
}

.checkout-item-remove-btn:hover,
.checkout-item-remove-btn:focus {
  color: #DC2626;
  background: #FEE2E2;
  border-color: #FECACA;
}

.checkout-item-remove-btn svg {
  flex-shrink: 0;
  pointer-events: none;
}

/* Order Total Breakdown */
.order-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #4B5563;
  margin-bottom: 8px;
}

.order-breakdown-row.grand-total {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111111;
  padding-top: 12px;
  border-top: 2px solid #F0ECE4;
  margin-top: 12px;
  margin-bottom: 20px;
}

.order-breakdown-row.grand-total span:last-child {
  color: var(--accent-gold, #C99A3D);
}

.btn-place-order {
  width: 100%;
  background: linear-gradient(135deg, #C99A3D 0%, #A87A24 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 16px 20px;
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(201, 154, 61, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-place-order:hover {
  background: linear-gradient(135deg, #D4A74B 0%, #B8882E 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 154, 61, 0.45);
}

.btn-place-order:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.order-guarantee-badges {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #F0ECE4;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
  color: #6B7280;
}

.order-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-badge-row svg {
  color: var(--accent-gold, #C99A3D);
  flex-shrink: 0;
}

/* ==========================================================================
   DYNAMIC UPI QR CODE & PAYMENT METHOD SELECTOR
   ========================================================================== */
.payment-section-title {
  font-family: var(--font-heading, "Plus Jakarta Sans", sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-black, #111111);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.payment-option-card {
  position: relative;
  background: #FFFFFF;
  border: 2px solid #E5E0D5;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.payment-option-card:hover {
  border-color: rgba(201, 154, 61, 0.6);
  background: #FAF8F5;
}

.payment-option-card.active {
  border-color: var(--accent-gold, #C99A3D);
  background: #FAF7F2;
  box-shadow: 0 4px 16px rgba(201, 154, 61, 0.12);
}

.payment-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-option-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.payment-option-card.active .payment-radio-circle {
  border-color: var(--accent-gold, #C99A3D);
  background: var(--accent-gold, #C99A3D);
}

.payment-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  display: none;
}

.payment-option-card.active .payment-radio-dot {
  display: block;
}

.payment-option-name {
  font-family: var(--font-heading, "Plus Jakarta Sans", sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #111111;
}

.payment-brand-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.upi-app-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid #E5E0D5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.upi-app-badge.gpay { color: #1A73E8; border-color: rgba(26,115,232,0.3); }
.upi-app-badge.phonepe { color: #5F259F; border-color: rgba(95,37,159,0.3); }
.upi-app-badge.paytm { color: #00B9F1; border-color: rgba(0,185,241,0.3); }
.upi-app-badge.bhim { color: #00796B; border-color: rgba(0,121,107,0.3); }

/* UPI Interactive QR Drawer Box */
.upi-qr-content-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(201, 154, 61, 0.4);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 600px) {
  .upi-qr-content-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .upi-qr-card img {
    width: 140px;
    height: 140px;
  }
  .payment-method-header {
    flex-wrap: wrap;
    gap: 8px;
  }
}

.upi-qr-card {
  background: #FFFFFF;
  border: 1px solid rgba(201, 154, 61, 0.35);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.upi-qr-card img {
  width: 160px;
  height: 160px;
  max-width: 100%;
  border-radius: 6px;
  display: block;
}

.upi-qr-amount-pill {
  margin-top: 8px;
  background: #FAF7F2;
  border: 1px solid var(--accent-gold);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #111111;
}

.upi-info-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upi-scan-steps {
  font-size: 0.82rem;
  color: #4B5563;
  line-height: 1.5;
}

.upi-scan-steps ol {
  padding-left: 18px;
  margin: 6px 0 0;
}

.upi-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #E5E0D5;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
}

.upi-id-text {
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #111111;
  flex: 1;
}

.btn-copy-upi {
  background: none;
  border: none;
  color: var(--accent-gold, #C99A3D);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-copy-upi:hover {
  background: rgba(201, 154, 61, 0.1);
}

.btn-upi-intent {
  background: linear-gradient(135deg, #1A73E8 0%, #0D47A1 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: var(--font-heading, "Plus Jakarta Sans", sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-upi-intent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.35);
}

.upi-utr-row {
  margin-top: 4px;
}

.upi-utr-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.82rem;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  background: #FFFFFF;
  transition: border-color 0.2s;
}

.upi-utr-input:focus {
  border-color: var(--accent-gold);
  outline: none;
}

/* ==========================================================================
   ORDER CONFIRMATION SUCCESS MODAL (CHECKOUT)
   Must strictly stay completely hidden until an order is placed!
   ========================================================================== */
#orderSuccessModal,
.order-success-modal-overlay {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.78) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 999999 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

#orderSuccessModal.open,
.order-success-modal-overlay.open {
  display: flex !important;
}

.order-success-dialog {
  background: #FFFFFF !important;
  border: 1px solid #E5E0D8 !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(200, 155, 60, 0.2) !important;
  max-width: 520px !important;
  width: 100% !important;
  text-align: center !important;
  padding: 36px 28px !important;
  position: relative !important;
  margin: auto !important;
  animation: orderModalPop 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes orderModalPop {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}



/* ==========================================================================
   MOBILE & TABLET RESPONSIVE CART & CHECKOUT POLISH
   ========================================================================== */
@media (max-width: 600px) {
  .upi-qr-content-box {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 16px;
  }
  .upi-qr-card {
    margin: 0 auto;
    padding: 10px;
  }
  .upi-qr-card img {
    width: 140px !important;
    height: 140px !important;
  }
  .upi-scan-steps ol {
    text-align: left;
    display: inline-block;
    margin: 6px auto 0;
  }
  .upi-copy-row {
    justify-content: center;
    margin: 0 auto;
    max-width: 280px;
  }
  .btn-upi-intent {
    width: 100%;
    justify-content: center;
  }
  .payment-brand-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
  }
  .payment-option-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .cart-drawer {
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .checkout-card {
    padding: 16px 12px !important;
  }
}


/* ==========================================================================
   ORDER SUMMARY CARD - RESPONSIVE & MOBILE-FRIENDLY SCROLLING
   ========================================================================== */
.order-summary-card {
  background: #FFFFFF !important;
  border: 1px solid var(--border-light, #E5E0D5) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  box-sizing: border-box !important;
}

.order-summary-card .checkout-title {
  font-family: var(--font-heading, "Playfair Display", serif) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #F0ECE4 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.order-item-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #F0ECE4 !important;
}

.order-item-img {
  width: 48px !important;
  height: 48px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  background: #FAF7F2 !important;
  flex-shrink: 0 !important;
}

.order-item-details {
  flex: 1 !important;
  min-width: 0 !important;
}

.order-item-name {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin-bottom: 3px !important;
  line-height: 1.3 !important;
}

.order-item-qty {
  font-size: 0.75rem !important;
  color: #6B7280 !important;
  line-height: 1.4 !important;
}

.order-item-price {
  font-weight: 700 !important;
  color: var(--accent-gold, #C99A3D) !important;
  font-size: 0.9rem !important;
  white-space: nowrap !important;
}

.order-item-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
  margin-left: 8px !important;
}

.checkout-item-remove-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #9CA3AF !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  transition: all 0.18s ease !important;
  line-height: 1.2 !important;
}

.checkout-item-remove-btn:hover,
.checkout-item-remove-btn:focus {
  color: #DC2626 !important;
  background: #FEE2E2 !important;
  border-color: #FECACA !important;
}

.checkout-item-remove-btn svg {
  flex-shrink: 0 !important;
  pointer-events: none !important;
}

.order-breakdown-row {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 0.85rem !important;
  color: #4B5563 !important;
  margin-bottom: 6px !important;
}

.order-breakdown-row.grand-total {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #111111 !important;
  padding-top: 10px !important;
  border-top: 2px solid #F0ECE4 !important;
  margin-top: 10px !important;
  margin-bottom: 14px !important;
}

.order-breakdown-row.grand-total span:last-child {
  color: var(--accent-gold, #C99A3D) !important;
}

.btn-place-order {
  width: 100% !important;
  padding: 13px 18px !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #C99A3D 0%, #A87A24 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(201, 154, 61, 0.3) !important;
  cursor: pointer !important;
  border: none !important;
}

.order-guarantee-badges {
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px dashed #E5E0D5 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.order-badge-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.75rem !important;
  color: #4B5563 !important;
}

.order-badge-row svg {
  width: 15px !important;
  height: 15px !important;
  color: var(--accent-gold, #C99A3D) !important;
  flex-shrink: 0 !important;
}

/* --- DESKTOP VIEW (STICKY SIDEBAR WITH NATURAL SCROLLING) --- */
@media (min-width: 993px) {
  .checkout-grid {
    display: grid !important;
    grid-template-columns: 1fr 400px !important;
    gap: 28px !important;
    align-items: start !important;
  }

  .order-summary-card {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 90px !important;
    max-height: calc(100vh - 110px) !important;
    overflow-y: auto !important;
    overscroll-behavior: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    z-index: 20 !important;
  }

  .order-items-preview {
    max-height: 260px !important;
    overflow-y: auto !important;
    overscroll-behavior: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    scrollbar-width: thin !important;
    margin-bottom: 12px !important;
    padding-right: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
}

/* --- MOBILE & TABLET VIEW (NATURAL FLOW, NO TRAPPED SCROLLING) --- */
@media (max-width: 992px) {
  .checkout-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
  }

  .order-summary-card {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    z-index: 1 !important;
    margin-top: 8px !important;
    margin-bottom: 30px !important;
  }

  .order-items-preview {
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    touch-action: pan-y !important;
    margin-bottom: 14px !important;
    padding-right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .checkout-wrapper {
    padding-bottom: 100px !important;
  }
}




/* Cart Drawer Phone Overlays */
.cart-drawer-overlay {
  z-index: 100001 !important;
}
.cart-drawer {
  z-index: 100002 !important;
}
