@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --primary: #10b981;          /* Organic Emerald Green */
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.1);
  --secondary: #6366f1;
  --border-color: #e2e8f0;
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  padding-bottom: 120px; /* Space for floating bar */
}

/* Header */
.order-header {
  background: var(--bg-card);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  background: var(--primary-glow);
  color: var(--primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.order-header h1 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #111827;
}

.order-header .subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn-config {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-config:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Container Grid */
.order-container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .order-container {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.section-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  color: var(--primary);
  width: 20px;
  height: 20px;
}

/* Products List */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  background: var(--primary-glow);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.product-name {
  font-weight: 600;
  font-size: 16px;
  color: #1e293b;
}

.product-price {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
}

.product-price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Qty Counter controls */
.qty-counter {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  overflow: hidden;
  height: 38px;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.qty-input {
  width: 44px;
  height: 38px;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  background: var(--bg-card);
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}

/* Customer Details Form Card */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.required {
  color: #ef4444;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Custom Radio button options */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-label {
  cursor: pointer;
  position: relative;
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-custom-box {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.radio-custom-box i {
  color: var(--text-muted);
  width: 24px;
  height: 24px;
}

.radio-label input[type="radio"]:checked + .radio-custom-box {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.radio-label input[type="radio"]:checked + .radio-custom-box i {
  color: var(--primary);
}

.radio-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.radio-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Floating Footer summary bar */
.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-summary {
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.summary-details {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.summary-details #summary-packs {
  font-weight: 700;
  color: var(--text-primary);
}

.summary-details #summary-total {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.summary-details .currency {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-backdrop.active .modal {
  transform: scale(1);
}

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

.modal-header h3 {
  font-family: var(--font-title);
  font-size: 18px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 20px;
}

.modal-body {
  margin-bottom: 24px;
}

.modal-intro {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.demo-tip {
  margin-top: 14px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #b45309;
  font-size: 12px;
  padding: 10px;
  border-radius: 6px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn {
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-secondary {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-primary {
  background: var(--primary);
  border: none;
  color: white;
}

/* Success Overlay card receipt layout */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
}

.success-card {
  max-width: 440px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 2px solid rgba(16, 185, 129, 0.2);
}

.success-icon i {
  width: 44px;
  height: 44px;
}

.success-card h2 {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.success-message {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Receipt Styles */
.receipt {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.receipt-header {
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
  margin-bottom: 12px;
}

.receipt-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
}

.receipt-row .item-quantity {
  color: var(--text-muted);
}

.receipt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
}

.receipt-footer .total-amount {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--primary);
  font-size: 18px;
}

/* Success customer info card */
.success-details {
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.success-detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
}

.detail-lbl {
  color: var(--text-secondary);
}

.detail-v {
  font-weight: 600;
  color: var(--text-primary);
}

.close-success-btn {
  background: var(--text-primary);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.close-success-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* Loading Overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-overlay p {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Product Card Images */
.product-image-wrapper {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background: var(--bg-primary);
}

.product-image-fallback {
  display: none; /* Shown dynamically via JS onerror */
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 40px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Adjust card gap to accommodate image */
.product-card {
  gap: 16px;
}

.product-info {
  flex: 1;
}

@media (max-width: 480px) {
  .product-card {
    gap: 12px;
    padding: 12px;
  }
  .product-image-wrapper {
    width: 90px;
    height: 90px;
  }
  .product-name {
    font-size: 14px;
  }
}

/* Intro Card Styling */
.intro-card {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(at 0% 0%, var(--primary-glow) 0px, transparent 40%);
}

.intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.intro-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.3;
}

.intro-text {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.feature-badge {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

.feature-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.step-guide {
  margin-top: 8px;
  font-size: 13px;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #166534;
  padding: 12px;
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

.step-guide strong {
  display: block;
  margin-bottom: 4px;
}

/* Info Alert Box (Right Panel) */
.info-alert-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.info-header {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid #dbeafe;
  padding-bottom: 8px;
}

.info-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row {
  font-size: 13px;
  color: #1e3a8a;
  line-height: 1.6;
}

.info-row strong {
  color: #1e293b;
  display: block;
  margin-bottom: 4px;
}

.info-row ul {
  padding-left: 18px;
}

.info-row code {
  font-family: monospace;
  background: #dbeafe;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  color: #1d4ed8;
  font-size: 14px;
}

/* Summary breakdown styling */
.summary-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

/* Shipping and Payment Info Panel Card Styles */
.info-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-card-header {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.panel-card-header i {
  color: var(--primary);
  width: 20px;
  height: 20px;
}

.shipping-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 576px) {
  .shipping-info-grid {
    grid-template-columns: 1fr;
  }
}

.shipping-card-label {
  cursor: pointer;
  display: block;
}

.shipping-card-item {
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  transition: var(--transition);
  height: 100%;
}

.shipping-card-item:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.shipping-card-item .select-check {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: auto;
}

/* Checked states */
.shipping-card-label input[type="radio"]:checked + .shipping-card-item.success-theme {
  border-color: #10b981;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.shipping-card-label input[type="radio"]:checked + .shipping-card-item.primary-theme {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.shipping-card-label input[type="radio"]:checked + .shipping-card-item .select-check {
  display: block;
}

.shipping-card-label input[type="radio"]:checked + .shipping-card-item.success-theme .select-check {
  color: #10b981;
}

.shipping-card-label input[type="radio"]:checked + .shipping-card-item.primary-theme .select-check {
  color: #3b82f6;
}

.shipping-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1e293b;
}

.shipping-card-header .emoji {
  font-size: 18px;
}

.shipping-card-item p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.shipping-fee-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.success-theme .shipping-fee-tag {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.primary-theme .shipping-fee-tag {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Payment & Contact Card Styling */
.payment-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .payment-details {
    grid-template-columns: 1fr 1fr;
  }
}

.pay-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.pay-row:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.pay-lbl {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 6px;
}

.pay-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
}

.pay-val code {
  display: inline-block;
  font-family: monospace;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
  color: #0f172a;
  font-size: 15px;
  margin-top: 4px;
}

/* Image Zoom Modal Lightbox */
.image-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.image-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.image-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: var(--transition);
}

.image-modal-backdrop.active .image-modal-content {
  transform: scale(1);
}

.image-modal-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
  object-fit: contain;
}

.image-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--primary);
  transform: rotate(90deg);
}

.image-modal-caption {
  color: #ffffff;
  margin-top: 14px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(15, 23, 42, 0.7);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Zoom cursor and label indicators on hover */
.product-image-wrapper {
  cursor: zoom-in;
}

.product-image-wrapper::after {
  content: '🔍 點擊放大';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 4px 0;
  opacity: 0;
  transform: translateY(100%);
  transition: var(--transition);
}

.product-image-wrapper:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Success remittance card styles */
.success-remittance-card {
  width: 100%;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.success-remittance-card h3 {
  color: #b45309;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.success-remittance-card p {
  font-size: 13px;
  color: #d97706;
  margin-bottom: 12px;
  line-height: 1.5;
}

.remittance-form-group {
  display: flex;
  gap: 10px;
}

.remittance-form-group input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 13.5px;
  transition: var(--transition);
}

.remittance-form-group input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.btn-submit-remittance {
  background: #d97706;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit-remittance:hover {
  background: #b45309;
}

.remittance-success-msg {
  display: none;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #166534;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 20px;
  width: 100%;
  text-align: center;
}

/* Title Badge Spec Note */
.title-badge {
  font-size: 12px;
  font-weight: 700;
  background: var(--primary-glow);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 10px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: inline-block;
  vertical-align: middle;
}



