@import '../../css/master.css';

/*
  Items module: extracted inline page/modal styles
  Keep this file module-only (linked where needed).
*/

/* =============================
   Quick Buy Modal (shared)
   ============================= */

.quick-buy-modal {
  border-radius: var(--radius-2xl);
  border: none;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--surface-default);
}

.quick-modal-close {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  z-index: 10;
  background: var(--surface-default);
  border-radius: var(--radius-full);
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  opacity: 1;
  border: 2px solid var(--color-danger);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.quick-modal-close:hover {
  background: var(--color-danger);
  transform: scale(1.05);
}

.quick-modal-close:hover svg {
  stroke: #fff;
}

.quick-modal-close:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
  outline: none;
}

.quick-buy-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
}

@media (max-width: 768px) {
  .quick-buy-layout {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 576px) {
  .quick-buy-layout {
    grid-template-columns: 1fr;
  }
}

.quick-buy-image {
  position: relative;
  background: var(--bg-secondary);
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-buy-image img {
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .quick-buy-image {
    padding: 20px;
  }

  .quick-buy-image img {
    max-width: 160px;
    max-height: 160px;
  }
}

@media (max-width: 576px) {
  .quick-buy-image {
    padding: 20px;
  }

  .quick-buy-image img {
    max-width: 180px;
    max-height: 180px;
  }
}

.quick-buy-details {
  padding: var(--spacing-lg);
}

.quick-buy-category {
  font-size: 0.75rem;
  color: var(--lux-muted, #495057);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.quick-buy-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lux-text, #0D0E11);
  margin-bottom: 8px;
  line-height: 1.3;
}

.quick-buy-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 16px;
}

.quick-buy-price .was-price {
  font-size: 0.875rem;
  color: var(--color-danger);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 8px;
}

.quick-options-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lux-muted, #495057);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.quick-variant-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  max-height: 200px;
  overflow-y: auto;
}

.quick-variant-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--surface-default);
}

.quick-variant-item:hover {
  border-color: var(--brand-primary);
  background: #f8faff;
}

.quick-variant-item.selected {
  border-color: var(--brand-primary);
  background: #f0f7ff;
}

.quick-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.quick-variant-item.selected .quick-radio-circle {
  border-color: var(--brand-primary);
}

.quick-radio-circle::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--brand-primary);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.quick-variant-item.selected .quick-radio-circle::after {
  transform: scale(1);
}

.quick-variant-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quick-variant-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--lux-text, #0D0E11);
}

.quick-variant-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-variant-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-primary);
}

.quick-variant-stock {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
}

.quick-purchase-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-default);
  flex-wrap: wrap;
}

.quick-qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-default);
}

.quick-qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lux-muted, #495057);
  transition: all 0.2s;
}

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

.quick-qty-input {
  width: 48px;
  height: 36px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--lux-text, #0D0E11);
}

.quick-qty-input:focus {
  outline: none;
}

.quick-stock-info {
  font-size: 0.75rem;
  color: var(--lux-muted, #495057);
  margin-left: 4px;
}

.quick-actions {
  display: flex;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.btn-quick-cart {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--brand-primary);
  background: transparent;
  color: var(--brand-primary);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-quick-cart:hover:not(:disabled) {
  background: #f0f7ff;
}

.btn-quick-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Proceed to Buy (keep orange as approved) */
.btn-quick-buy {
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  background: var(--brand-primary);
  color: #fff;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-md);
}

.btn-quick-buy:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.03);
}

.btn-quick-buy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 576px) {
  .quick-buy-details {
    padding: 16px;
  }

  .quick-purchase-row {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-actions {
    justify-content: stretch;
  }

  .btn-quick-cart,
  .btn-quick-buy {
    flex: 1;
    justify-content: center;
  }
}

/* =============================
   Cart page
   ============================= */

body.page-cart .cart-section {
  background: #f7f8fa;
  padding-top: 24px;
  padding-bottom: 40px;
}

@media (max-width: 991.98px) {
  body.page-cart .cart-section {
    padding-top: 16px;
  }
}

body.page-cart .order-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

body.page-cart .order-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.2s;
}

body.page-cart .order-step.active {
  border-color: #22c55e;
  background: #f0fdf4;
}

body.page-cart .order-step.current {
  border-color: #3b82f6;
  background: #eff6ff;
}

body.page-cart .order-step.pending {
  border-color: #e9ecef;
  background: #fff;
  opacity: 0.7;
}

body.page-cart a.order-step.pending:hover {
  opacity: 1;
  border-color: #f59e0b;
  background: #fffbeb;
  cursor: pointer;
}

body.page-cart .order-step-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

body.page-cart .order-step.active .order-step-icon {
  background: #22c55e;
  color: #fff;
}

body.page-cart .order-step.current .order-step-icon {
  background: #3b82f6;
  color: #fff;
}

body.page-cart .order-step.pending .order-step-icon {
  background: #e9ecef;
  color: #6c757d;
}

body.page-cart .order-step-content {
  flex: 1;
}

body.page-cart .order-step-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0d0e11;
  margin-bottom: 2px;
}

body.page-cart .order-step-desc {
  font-size: 0.82rem;
  color: #6c757d;
  line-height: 1.3;
}

body.page-cart .order-step-arrow {
  display: flex;
  justify-content: center;
  color: #ced4da;
  font-size: 1.2rem;
  padding: 4px 0;
}

body.page-cart .btn-next-checkout {
  background: linear-gradient(180deg, #f59e0b 0%, #f97316 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.2s;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-cart .btn-next-checkout:hover {
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  color: #fff;
}

body.page-cart .cart-section .btn-outline-secondary {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
}

/* =============================
   Checkout page
   (scoped to avoid leaking to home)
   ============================= */

body.page-checkout {
  --ck-card-pad: 22px;
  --ck-card-gap: 20px;
  --ck-title-mb: 16px;
  --ck-title-pb: 12px;
}

body.page-checkout .mobile-bottom-nav {
  display: flex;
}

@media (min-width: 992px) {
  body.page-checkout .mobile-bottom-nav {
    display: none;
  }
}

body.page-checkout .checkout-container {
  padding-top: 0 !important;
}

body.page-checkout .checkout-header {
  text-align: center;
  margin-bottom: 28px;
}

body.page-checkout .checkout-header h1 {
  font-size: clamp(1.65rem, 2.2vw + 1rem, 2.2rem);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--lux-text);
}

body.page-checkout .checkout-header p {
  font-size: 0.95rem;
  color: var(--lux-muted);
  margin-bottom: 0;
}

body.page-checkout .checkout-form-section {
  background: var(--lux-card);
  border-radius: 12px;
  padding: var(--ck-card-pad);
  border: 1px solid var(--lux-border);
  margin-bottom: var(--ck-card-gap);
}

body.page-checkout .form-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--ck-title-mb);
  color: var(--lux-text);
  padding-bottom: var(--ck-title-pb);
  border-bottom: 1px solid #f3f4f6;
}

body.page-checkout .form-group-modern {
  margin-bottom: 16px;
}

body.page-checkout .form-group-modern label {
  font-weight: 600;
  color: var(--lux-text);
  margin-bottom: 8px;
  font-size: 0.95rem;
  display: block;
}

body.page-checkout .form-control,
body.page-checkout .form-select {
  border: 1px solid var(--lux-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

body.page-checkout .form-control:focus,
body.page-checkout .form-select:focus {
  border-color: var(--lux-accent);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
  outline: none;
}

body.page-checkout .form-control::placeholder {
  color: #9ca3af;
}

body.page-checkout .order-summary-section {
  background: var(--lux-bg);
  border-radius: 12px;
  padding: var(--ck-card-pad);
  border: 1px solid var(--lux-border);
  position: sticky;
  top: 92px;
}

body.page-checkout .order-summary-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--lux-text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lux-border);
}

body.page-checkout .order-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lux-border);
  align-items: flex-start;
}

body.page-checkout .order-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

body.page-checkout .order-item-image {
  width: 64px;
  height: 64px;
  min-width: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--lux-card);
}

body.page-checkout .order-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3px;
}

body.page-checkout .order-item-title {
  font-weight: 600;
  color: var(--lux-text);
  font-size: 0.9rem;
  line-height: 1.25;
  margin: 0;
}

body.page-checkout .order-item-variant {
  font-size: 0.8rem;
  color: var(--lux-muted);
  line-height: 1.2;
}

body.page-checkout .order-item-calc {
  font-size: 0.82rem;
  color: var(--lux-muted);
  line-height: 1.2;
}

body.page-checkout .order-item-line-total {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--lux-accent, #0052CC);
  line-height: 1.2;
}

body.page-checkout .order-item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 0 0 0;
  padding: 0;
  background: none;
  border-radius: 0;
}

body.page-checkout .order-item-unit-price {
  font-size: 0.8rem;
  color: var(--lux-muted);
}

body.page-checkout .order-item-inline {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

body.page-checkout .order-item-inline .sep {
  color: #ccc;
  font-size: 0.7rem;
}

body.page-checkout .order-item-meta,
body.page-checkout .order-item-qty,
body.page-checkout .order-item-note {
  font-size: 0.75rem;
  color: var(--lux-muted);
  line-height: 1;
  white-space: nowrap;
}

body.page-checkout .order-item-note {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-checkout .order-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: none;
  background: #fff0f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  align-self: center;
}

body.page-checkout .order-item-remove:hover {
  background: #dc3545;
}

body.page-checkout .order-item-remove:hover svg {
  stroke: #fff;
}

body.page-checkout .order-item-remove svg {
  stroke: #dc3545;
  transition: stroke 0.2s;
}

body.page-checkout .order-summary-divider {
  height: 1px;
  background: var(--lux-border);
  margin: 14px 0;
}

body.page-checkout .order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

body.page-checkout .order-summary-row.total {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--lux-text);
  margin-top: 14px;
}

body.page-checkout .order-summary-row.total .price {
  color: var(--lux-accent);
}

body.page-checkout #checkout .place-order-btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #f59e0b 0%, #f97316 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  height: 48px;
  font-size: 1rem;
}

body.page-checkout #checkout .place-order-btn:hover {
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  color: #fff;
}

body.page-checkout .special-notes-btn {
  width: 100%;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-checkout .empty-cart-message {
  text-align: center;
  padding: 48px 24px;
  background: var(--lux-bg);
  border-radius: 12px;
  margin-top: 32px;
}

body.page-checkout .empty-cart-message h3 {
  color: var(--lux-muted);
  margin-bottom: 16px;
}

body.page-checkout .empty-cart-message a {
  color: var(--lux-accent);
  text-decoration: none;
  font-weight: 600;
}

body.page-checkout .alert-error {
  background: #fee;
  border: 1px solid #fcc;
  color: #c33;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.page-checkout .alert-error svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  body.page-checkout .checkout-container {
    padding-top: 160px !important;
  }

  body.page-checkout .checkout-header h1 {
    font-size: 1.75rem;
  }

  body.page-checkout .checkout-form-section {
    padding: 16px;
    margin-bottom: 16px;
  }

  body.page-checkout .order-summary-section {
    position: static;
    margin-top: 18px;
  }

  body.page-checkout .order-item-image {
    width: 56px;
    height: 56px;
  }
}

body.page-checkout .special-notes-btn {
  width: 100%;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
}

body.page-checkout #checkout .special-notes-btn,
body.page-checkout #checkout .special-notes-btn:hover,
body.page-checkout #checkout .special-notes-btn:focus {
  transform: none !important;
  box-shadow: none !important;
}

body.page-checkout #checkout .btn:hover,
body.page-checkout #checkout .btn:focus {
  transform: none !important;
}

body.page-checkout .swal2-popup .swal2-actions {
  flex-wrap: nowrap !important;
  gap: 10px !important;
}

body.page-checkout .swal2-popup .swal2-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}

body.page-checkout .swal2-popup .swal2-actions .btn:hover,
body.page-checkout .swal2-popup .swal2-actions .btn:focus {
  transform: none !important;
}

/* =============================
   E-Shop page (listing)
   ============================= */

body.page-eshop .shop-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--lux-border, #e5e7eb);
  background: #fff;
  color: var(--lux-text, #0D0E11);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  transition: all 0.2s ease;
  text-decoration: none;
}

body.page-eshop .shop-toolbar-btn:hover {
  background: #f8fafc;
  border-color: var(--lux-accent, #0052cc);
  color: var(--lux-accent, #0052cc);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

body.page-eshop .shop-toolbar-btn.dropdown-toggle::after {
  margin-left: 4px;
}

body.page-eshop .accordion-button:not(.collapsed) {
  background-color: rgba(0, 82, 204, 0.05);
  color: var(--lux-accent);
}

body.page-eshop .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.125);
}

body.page-eshop .list-group-item.active {
  background-color: var(--lux-accent);
  border-color: var(--lux-accent);
}

@media (max-width: 575.98px) {
  body.page-eshop .shop-toolbar-btn {
    height: 40px;
    padding: 0 12px;
    font-size: 0.85rem;
  }
}

body.page-checkout .swal-lux-popup {
  width: min(520px, 94vw) !important;
  border-radius: 18px !important;
  padding: 28px 28px 22px !important;
  background: var(--lux-card) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
}

body.page-checkout .swal-lux-popup .swal2-title {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: var(--lux-text) !important;
  margin-bottom: 6px !important;
}

body.page-checkout .swal-lux-popup .swal2-icon {
  display: none !important;
}

body.page-checkout .swal-lux-popup .swal2-actions {
  gap: 16px !important;
  margin-top: 24px !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
}

body.page-checkout .swal-lux-popup .swal2-actions .swal-confirm-btn {
  min-width: 160px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  background: #22c55e !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
  transition: background 0.2s, box-shadow 0.2s;
}

body.page-checkout .swal-lux-popup .swal2-actions .swal-confirm-btn:hover {
  background: #16a34a !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

body.page-checkout .swal-lux-popup .swal2-actions .swal-cancel-btn {
  min-width: 120px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  background: transparent !important;
  color: var(--lux-muted) !important;
  border: 2px solid var(--lux-border) !important;
  transition: border-color 0.2s, color 0.2s;
}

body.page-checkout .swal-lux-popup .swal2-actions .swal-cancel-btn:hover {
  border-color: var(--lux-muted) !important;
  color: var(--lux-text) !important;
}

body.page-checkout .swal-confirm-cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--lux-accent) 0%, #0066cc 100%);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 82, 204, 0.25);
}

body.page-checkout .swal-confirm-cart-icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
  stroke-width: 2.2;
}

body.page-checkout .swal-summary {
  text-align: left;
  font-size: 0.98rem;
  color: var(--lux-text);
}

body.page-checkout .swal-summary .swal-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 10px;
}

body.page-checkout .swal-summary .swal-name .ico {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(0, 82, 204, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lux-accent);
  flex: 0 0 auto;
}

body.page-checkout .swal-summary .swal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--lux-border);
}

body.page-checkout .swal-summary .swal-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

body.page-checkout .swal-summary .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--lux-muted);
  min-width: 120px;
}

body.page-checkout .swal-summary .label svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--lux-accent);
}

body.page-checkout .swal-summary .value {
  font-weight: 900;
  color: var(--lux-text);
  text-align: right;
}

body.page-checkout .swal-summary .value.total {
  color: var(--lux-accent);
  font-size: 1.08rem;
}

body.page-checkout .special-notes-help {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--lux-muted);
  line-height: 1.35;
}

body.page-checkout .special-notes-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lux-text);
  background: var(--lux-bg);
  border: 1px solid var(--lux-border);
  border-radius: 999px;
  padding: 6px 10px;
  line-height: 1;
  margin-top: 10px;
  user-select: none;
}

body.page-checkout .compact-fields-row .form-control,
body.page-checkout .compact-fields-row .form-select,
body.page-checkout .compact-fields-row .special-notes-btn {
  height: 48px;
}

body.page-checkout .compact-fields-row .special-notes-indicator {
  margin-top: 6px;
}

body.page-checkout .compact-fields-row .input-group-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lux-muted);
  background: var(--lux-bg);
  border: 1px solid var(--lux-border);
  border-right: 0;
}

body.page-checkout .compact-fields-row .input-group .form-control,
body.page-checkout .compact-fields-row .input-group .form-select {
  border-left: 0;
}

body.page-checkout .compact-fields-row .input-group:focus-within .input-group-text {
  border-color: var(--lux-accent);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
}

body.page-checkout .special-notes-row {
  display: grid;
  grid-template-columns: 48px 1fr minmax(220px, 340px);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--lux-border);
  align-items: start;
}

body.page-checkout .special-notes-row:last-child {
  border-bottom: none;
}

body.page-checkout .special-notes-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--lux-card);
  border: 1px solid var(--lux-border);
  flex-shrink: 0;
}

body.page-checkout .special-notes-title {
  font-weight: 700;
  color: var(--lux-text);
  font-size: 0.95rem;
  margin: 0;
}

body.page-checkout .special-notes-meta {
  color: var(--lux-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

body.page-checkout .special-notes-info {
  min-width: 0;
}

body.page-checkout .special-notes-info-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

body.page-checkout .special-notes-info-line .sep {
  color: #9ca3af;
}

body.page-checkout .special-notes-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

body.page-checkout .special-notes-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

body.page-checkout .special-notes-textarea {
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--lux-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.page-checkout .special-note-input {
  font-size: 0.92rem;
  padding: 10px 12px;
  line-height: 1.25;
}

body.page-checkout .special-notes-textarea::placeholder {
  color: #9ca3af;
}

body.page-checkout .special-notes-textarea:focus {
  border-color: var(--lux-accent);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
  outline: none;
}

body.page-checkout .special-notes-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
}

body.page-checkout .special-notes-modal-btn {
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  min-height: 44px;
  line-height: 1;
  min-width: 140px;
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  body.page-checkout .special-notes-modal-footer {
    flex-direction: row;
    align-items: center;
  }

  body.page-checkout .special-notes-modal-btn {
    width: 50%;
  }
}

@media (max-width: 767.98px) {
  body.page-checkout .special-notes-row {
    grid-template-columns: 48px 1fr;
  }

  body.page-checkout .special-notes-row .special-notes-textarea-wrap {
    grid-column: 1 / -1;
  }

  body.page-checkout .special-notes-meta {
    max-width: 100%;
  }
}

/* =============================
   My Orders page
   ============================= */

body.page-myorders .orders-container {
  padding-top: var(--header-offset-mobile);
  padding-bottom: 60px;
  min-height: 100vh;
  background: var(--lux-bg);
}

body.page-myorders .page-header {
  margin-bottom: 32px;
}

body.page-myorders .page-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--lux-text);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

body.page-myorders .page-header p {
  color: var(--lux-muted);
  font-size: 0.9rem;
}

/* (rest of My Orders styles were inline; keep same selectors but scoped) */
body.page-myorders .order-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  background: var(--lux-card);
  border-radius: 14px;
  border: 1px solid var(--lux-border);
  margin-bottom: 14px;
  transition: all 0.2s;
}

body.page-myorders .order-row:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

body.page-myorders .order-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--lux-accent) 0%, #0066cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.page-myorders .order-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
  stroke-width: 2;
}

body.page-myorders .order-primary {
  min-width: 140px;
  flex-shrink: 0;
}

body.page-myorders .order-id {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lux-text);
}

body.page-myorders .order-date {
  font-size: 0.78rem;
  color: var(--lux-muted);
}

body.page-myorders .order-status {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
}

body.page-myorders .order-status.status-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

body.page-myorders .order-status.status-confirmed,
body.page-myorders .order-status.status-processing {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

body.page-myorders .order-status.status-shipped {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
}

body.page-myorders .order-status.status-delivered {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

body.page-myorders .order-status.status-cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

body.page-myorders .order-info-cols {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

body.page-myorders .order-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 80px;
}

body.page-myorders .order-info-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lux-muted);
  font-weight: 600;
}

body.page-myorders .order-info-value {
  font-size: 0.9rem;
  color: var(--lux-text);
  font-weight: 600;
  white-space: nowrap;
}

body.page-myorders .order-info-value.accent {
  color: var(--lux-accent);
  font-weight: 700;
}

body.page-myorders .order-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--lux-text);
  min-width: 100px;
  text-align: right;
  flex-shrink: 0;
}

body.page-myorders .btn-view {
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

body.page-myorders .btn-view svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

body.page-myorders .btn-view:hover svg {
  transform: translateX(2px);
}

body.page-myorders .btn-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--lux-border);
  background: var(--lux-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

body.page-myorders .btn-toggle:hover {
  background: var(--lux-card);
  border-color: var(--lux-muted);
}

body.page-myorders .btn-toggle svg {
  width: 16px;
  height: 16px;
  color: var(--lux-muted);
  transition: transform 0.3s ease;
}

body.page-myorders .btn-toggle.collapsed svg {
  transform: rotate(-180deg);
}

body.page-myorders .order-items-panel {
  background: var(--lux-bg);
  border-top: 1px solid var(--lux-border);
  padding: 16px 20px;
  display: block;
}

body.page-myorders .order-items-panel.collapsed {
  display: none;
}

body.page-myorders .order-items-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.page-myorders .order-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--lux-card);
  border-radius: 10px;
  border: 1px solid var(--lux-border);
}

body.page-myorders .order-item-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--lux-bg);
  flex-shrink: 0;
}

body.page-myorders .order-item-info {
  flex: 1;
  min-width: 0;
}

body.page-myorders .order-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lux-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-myorders .order-item-meta {
  font-size: 0.78rem;
  color: var(--lux-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

body.page-myorders .order-item-meta .sep {
  color: #ccc;
}

body.page-myorders .order-item-qty {
  font-size: 0.85rem;
  color: var(--lux-muted);
  font-weight: 600;
  min-width: 50px;
  text-align: center;
  flex-shrink: 0;
}

body.page-myorders .order-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lux-accent);
  min-width: 80px;
  text-align: right;
  flex-shrink: 0;
}

body.page-myorders .order-item-note {
  font-size: 0.75rem;
  color: var(--lux-muted);
  font-style: italic;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed var(--lux-border);
}

body.page-myorders .no-orders {
  text-align: center;
  padding: 60px 40px;
  background: var(--lux-card);
  border-radius: 16px;
  border: 1px solid var(--lux-border);
}

body.page-myorders .no-orders-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--lux-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-myorders .no-orders-icon svg {
  width: 36px;
  height: 36px;
  color: var(--lux-muted);
}

body.page-myorders .no-orders h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--lux-text);
  margin-bottom: 6px;
}

body.page-myorders .no-orders p {
  color: var(--lux-muted);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

body.page-myorders .filter-tabs {
  background: var(--lux-card);
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 16px;
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--lux-border);
}

body.page-myorders .filter-tab {
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lux-muted);
  cursor: pointer;
  transition: all 0.2s;
}

body.page-myorders .filter-tab:hover {
  color: var(--lux-text);
}

body.page-myorders .filter-tab.active {
  background: var(--lux-accent);
  color: white;
}

@media (max-width: 991px) {
  body.page-myorders .order-row {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }

  body.page-myorders .order-icon {
    display: none;
  }

  body.page-myorders .order-primary {
    min-width: auto;
    flex: 1;
  }

  body.page-myorders .order-info-cols {
    width: 100%;
    order: 3;
    gap: 16px;
    flex-wrap: wrap;
  }

  body.page-myorders .order-info-col {
    min-width: 70px;
  }

  body.page-myorders .order-total {
    order: 2;
  }

  body.page-myorders .btn-view {
    width: 100%;
    justify-content: center;
    order: 4;
  }
}

@media (max-width: 576px) {
  body.page-myorders .orders-container {
    padding-top: var(--header-offset-mobile);
  }

  body.page-myorders .filter-tabs {
    width: 100%;
    display: flex;
  }

  body.page-myorders .filter-tab {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
  }
}

/* =============================
   Order Details page
   ============================= */

body.page-order-details .order-details-container {
  padding-top: var(--header-offset-mobile);
  padding-bottom: 60px;
  min-height: 100vh;
  background: #f7f8fa;
}

body.page-order-details .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #666;
  text-decoration: none;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

body.page-order-details .back-link:hover {
  color: #1a1a1a;
}

body.page-order-details .order-header-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
}

body.page-order-details .order-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}

body.page-order-details .order-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

body.page-order-details .meta-item label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #999;
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
}

body.page-order-details .meta-item value {
  font-size: 1rem;
  color: #1a1a1a;
  font-weight: 500;
  display: block;
}

body.page-order-details .status-timeline {
  background: white;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
}

body.page-order-details .timeline {
  position: relative;
  padding-left: 40px;
}

body.page-order-details .timeline-item {
  position: relative;
  padding-bottom: 32px;
}

body.page-order-details .timeline-item:last-child {
  padding-bottom: 0;
}

body.page-order-details .timeline-icon {
  position: absolute;
  left: -40px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 2;
}

body.page-order-details .timeline-icon.active {
  background: var(--primary-color);
  color: white;
}

body.page-order-details .timeline-icon.inactive {
  background: #e5e7eb;
  color: #999;
}

body.page-order-details .timeline-line {
  position: absolute;
  left: -24px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

body.page-order-details .timeline-item:last-child .timeline-line {
  display: none;
}

body.page-order-details .items-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #e5e7eb;
}

body.page-order-details .section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
}

body.page-order-details .order-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

body.page-order-details .order-item:last-child {
  border-bottom: none;
}

body.page-order-details .item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

body.page-order-details .item-details {
  flex-grow: 1;
}

body.page-order-details .item-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

body.page-order-details .item-variant {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 4px;
}

body.page-order-details .item-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.page-order-details .price-current {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

body.page-order-details .price-original {
  font-size: 0.875rem;
  color: #999;
  text-decoration: line-through;
}

body.page-order-details .item-quantity {
  font-size: 0.875rem;
  color: #666;
}

body.page-order-details .order-summary {
  background: #f9fafb;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

body.page-order-details .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

body.page-order-details .summary-row:last-child {
  border-bottom: none;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid #e5e7eb;
}

body.page-order-details .summary-label {
  font-size: 1rem;
  color: #666;
}

body.page-order-details .summary-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

body.page-order-details .summary-row:last-child .summary-label,
body.page-order-details .summary-row:last-child .summary-value {
  font-size: 1.25rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  body.page-order-details .order-details-container {
    padding-top: var(--header-offset-tablet);
  }

  body.page-order-details .order-header-card {
    padding: 20px;
  }

  body.page-order-details .order-meta {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.page-order-details .order-item {
    flex-direction: column;
  }

  body.page-order-details .item-image {
    width: 100%;
    height: 200px;
  }
}

/* =============================
   Order Success page
   ============================= */

body.page-order-success {
  background-color: #ffffff;
}

body.page-order-success main.order-success-page {
  background-color: #ffffff;
  background-image: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

body.page-order-success main.order-success-page .success-card {
  background: var(--lux-card, #fff);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  max-width: 600px;
  width: 100%;
  border: 1px solid var(--lux-border, #e5e7eb);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  margin: 0 auto;
}

body.page-order-success main.order-success-page .success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
}

body.page-order-success main.order-success-page .success-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 3;
}

body.page-order-success main.order-success-page .success-title {
  font-size: clamp(1.5rem, 5vw, 1.8rem);
  font-weight: 700;
  color: var(--lux-text, #1a1a1a);
  margin-bottom: 12px;
}

body.page-order-success main.order-success-page .success-subtitle {
  font-size: 1rem;
  color: var(--lux-muted, #6b7280);
  margin-bottom: 28px;
  line-height: 1.6;
}

body.page-order-success main.order-success-page .order-details-box {
  background: var(--lux-bg, #f9fafb);
  border-radius: 12px;
  padding: 20px;
  margin: 28px 0;
  text-align: left;
  border: 1px solid var(--lux-border, #e5e7eb);
}

body.page-order-success main.order-success-page .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--lux-border, #e5e7eb);
  font-size: 0.95rem;
}

body.page-order-success main.order-success-page .detail-row:last-child {
  border-bottom: none;
}

body.page-order-success main.order-success-page .detail-label {
  font-weight: 600;
  color: var(--lux-muted, #6b7280);
}

body.page-order-success main.order-success-page .detail-value {
  font-weight: 600;
  color: var(--lux-text, #1a1a1a);
}

body.page-order-success main.order-success-page .detail-value.total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--lux-accent, #0052CC);
}

body.page-order-success main.order-success-page .order-items-box {
  text-align: left;
  margin-top: 28px;
  background: var(--lux-bg, #f9fafb);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--lux-border, #e5e7eb);
}

body.page-order-success main.order-success-page .order-items-title {
  font-weight: 700;
  color: var(--lux-text);
  margin-bottom: 16px;
  font-size: 1rem;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--lux-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.page-order-success main.order-success-page .order-items-title svg {
  width: 20px;
  height: 20px;
  color: var(--lux-accent);
}

body.page-order-success main.order-success-page .order-item-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--lux-border);
}

body.page-order-success main.order-success-page .order-item-card:last-child {
  border-bottom: none;
}

body.page-order-success main.order-success-page .order-item-image {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--lux-border);
}

body.page-order-success main.order-success-page .order-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-order-success main.order-success-page .order-item-details {
  flex: 1;
  min-width: 0;
}

body.page-order-success main.order-success-page .order-item-name {
  color: var(--lux-text);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  line-height: 1.3;
}

body.page-order-success main.order-success-page .order-item-code {
  color: var(--lux-muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

body.page-order-success main.order-success-page .order-item-variant {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--lux-border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.75rem;
  color: var(--lux-muted);
  margin-bottom: 6px;
}

body.page-order-success main.order-success-page .order-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

body.page-order-success main.order-success-page .order-item-qty {
  color: var(--lux-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

body.page-order-success main.order-success-page .order-item-unit-price {
  color: var(--lux-muted);
  font-size: 0.85rem;
}

body.page-order-success main.order-success-page .order-item-price-col {
  text-align: right;
  min-width: 80px;
}

body.page-order-success main.order-success-page .order-item-line-total {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--lux-accent, #0052CC);
}

body.page-order-success main.order-success-page .action-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

body.page-order-success main.order-success-page .action-buttons .btn {
  height: 50px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  min-width: 180px;
}

@media (max-width: 575.98px) {
  body.page-order-success main.order-success-page .action-buttons {
    flex-direction: column;
  }

  body.page-order-success main.order-success-page .action-buttons .btn {
    width: 100%;
  }

  body.page-order-success main.order-success-page .success-card {
    padding: 24px;
  }
}

/* =============================
   View item SweetAlert guidance
   ============================= */

body.page-view-item .swal2-actions-fixed-width .swal2-btn-fixed {
  min-width: 140px !important;
  height: 50px !important;
  flex: 0 0 140px !important;
  margin: 0 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
}

body.page-view-item .swal2-actions-fixed-width {
  gap: 8px !important;
  justify-content: center !important;
}

body.page-view-item .order-flow-guidance-modal {
  text-align: center;
  padding: 8px 0;
}

body.page-view-item .flow-steps-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

body.page-view-item .flow-step-modal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  width: 100%;
  max-width: 260px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.page-view-item .flow-step-modal.completed {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: #16a34a;
  box-shadow: 0 2px 4px rgba(34, 197, 94, 0.15);
}

body.page-view-item .flow-step-modal.next {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: #2563eb;
  animation: pulse-step 2s infinite;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
}

body.page-view-item .step-icon-modal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.page-view-item .step-cart-modal {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #16a34a;
  border: 1px solid #16a34a;
}

body.page-view-item .step-review-modal {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #2563eb;
  border: 1px solid #2563eb;
}

body.page-view-item .step-checkout-modal {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #16a34a;
  border: 1px solid #16a34a;
}

body.page-view-item .step-content-modal {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  flex: 1;
}

body.page-view-item .step-title-modal {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
}

body.page-view-item .step-desc-modal {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.3;
}

body.page-view-item .step-divider-modal {
  color: #cbd5e1;
  font-size: 1rem;
  font-weight: bold;
  margin: -2px 0;
  opacity: 0.7;
}

@keyframes pulse-step {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
    border-color: #2563eb;
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
    border-color: #1d4ed8;
  }
}

@media (max-width: 576px) {
  body.page-view-item .swal2-actions-fixed-width .swal2-btn-fixed {
    min-width: 110px !important;
    height: 40px !important;
    flex: 0 0 110px !important;
    margin: 0 2px !important;
    font-size: 0.8rem !important;
  }

  body.page-view-item .swal2-actions-fixed-width {
    gap: 4px !important;
  }

  body.page-view-item .order-flow-guidance-modal {
    padding: 2px 0;
  }

  body.page-view-item .flow-steps-modal {
    gap: 4px;
    margin-top: 8px;
  }

  body.page-view-item .flow-step-modal {
    padding: 8px 12px;
    max-width: 220px;
    gap: 8px;
  }

  body.page-view-item .step-icon-modal {
    width: 24px;
    height: 24px;
  }

  body.page-view-item .step-title-modal {
    font-size: 0.8rem;
    line-height: 1.1;
  }

  body.page-view-item .step-desc-modal {
    font-size: 0.7rem;
    line-height: 1.2;
  }

  body.page-view-item .step-divider-modal {
    font-size: 0.9rem;
    margin: -1px 0;
  }

  body.page-view-item .swal2-popup {
    padding: 0.8rem !important;
  }

  body.page-view-item .swal2-title {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
  }

  body.page-view-item .swal2-html-container {
    margin: 0.5rem 0 !important;
  }

  body.page-view-item .swal2-actions {
    margin-top: 0.8rem !important;
  }
}

/* =============================
   Standard Image Loading Classes
   (Only for view_item.php)
   ============================= */
.standard-img-container {
  position: relative;
  background-color: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
}

.standard-img-container::before {
  content: "";
  width: 30px;
  height: 30px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--brand-primary, #0052CC);
  border-radius: 50%;
  animation: spin-img 0.8s linear infinite;
  position: absolute;
  z-index: 1;
}

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

.standard-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 2;
}

.standard-img-container img.loaded {
  opacity: 1;
}

/* Hide spinner when image or placeholder is shown */
.standard-img-container img.loaded ~ ::before,
.standard-img-container .no-image-placeholder:not([style*="display: none"]) ~ ::before {
  display: none !important;
}

.no-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  color: #94a3b8;
  z-index: 2;
}

.no-image-placeholder svg {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.no-image-placeholder span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================
   Centralized Product Card Styles
   Used in items/product_card.php
   ============================= */
.product-card {
  border: 1px solid var(--border-default, #e9ecef);
  border-radius: var(--radius-lg, 12px);
  transition: all 0.3s ease;
  overflow: hidden;
  background: #fff;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.product-image-container {
  aspect-ratio: 1/1;
  background-color: #f8fafc;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.product-card-img.loaded {
  opacity: 1;
}

.discount-ribbon {
  position: absolute;
  top: 10px;
  left: 0;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  padding: 8px 14px;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 0 100%);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
  z-index: 5;
}

.variant-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--brand-primary, #0052CC);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 5;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border: 1px solid rgba(0, 82, 204, 0.1);
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-body-modern {
  display: flex;
  flex-direction: column;
}

.product-meta {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  text-decoration: none;
}

.discount-pill {
  font-size: 0.65rem;
  font-weight: 700;
  background: #fef2f2;
  color: #dc3545;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #fee2e2;
}

.product-title {
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
}

.product-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.product-title a:hover {
  color: var(--brand-primary);
}

.price-compare {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.price-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
}

.price-base {
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
}

.product-actions {
  margin-top: auto;
}

.product-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-details {
  background: #f1f5f9;
  color: #475569;
}

.action-details:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.action-buy {
  background: var(--brand-primary);
  color: #fff;
}

.action-buy:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}