@import 'master.css';

/*
  Control the visibility of the mobile bottom navigation.
  - Show on screens up to 991.98px wide (mobile/tablet).
  - Hide on screens 992px and wider (desktop).
*/
.navbar-toolbar {
  display: flex;
  /* Show by default on mobile-first approach */
}

/* Global background fallback to avoid transparent first paint on mobile */
html,
body {
  background-color: var(--surface-default);
}

/* Inform UA to use light color scheme and avoid auto dark backgrounds */
:root {
  color-scheme: light;
}

/* Global page wrapper spacing - now 0 as header is sticky and occupies space */
.page-wrapper {
  padding-top: 0;
}

@media (min-width: 768px) {
  .page-wrapper {
    padding-top: 0;
  }
}

@media (min-width: 992px) {
  .page-wrapper {
    padding-top: 0;
  }
}

@media (min-width: 992px) {
  .navbar-toolbar {
    display: none;
    /* Hide on desktop */
  }
}

/* Mobile Bottom Navigation Section styling and background fix */
@media (max-width: 991.98px) {
  :root {
    --mobile-bottom-nav-height: var(--mobile-nav-height);
  }

  /* Reserve space so content doesn't sit under the fixed nav */
  body {
    padding-bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    /* Above page content, below modals */
    background: var(--surface-default);
    border-top: 1px solid var(--border-subtle);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* Let the section own the background to avoid double layers */
  .mobile-bottom-nav-section .navbar-toolbar {
    background: transparent;
    padding: 12px 0;
  }
}

/* Featured products refresh */
.featured-section {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.0) 40%), var(--bg-primary);
}

/* =================================================================
  23. Chat Widget Overrides (cross-device background consistency)
================================================================= */
/* Base container injected by chat/floating-chat.php */
.chat-widget,
#floating-chat-widget {
  /* Solid fallback background to prevent transparent first paint */
  background-color: var(--surface-default);
}

/* If chat UI renders panels within the widget, ensure solid backgrounds */
.chat-widget .chat-panel,
.chat-widget .chat-window,
.chat-widget .chat-card,
.chat-widget .chat-header,
.chat-widget .chat-body,
.chat-widget .chat-footer {
  background-color: var(--surface-default) !important;
}

/* Optional: ensure readable foreground */
.chat-widget,
.chat-widget .chat-panel,
.chat-widget .chat-window,
.chat-widget .chat-card {
  color: var(--text-primary);
}

@media (max-width: 575.98px) {

  .chat-widget,
  #floating-chat-widget {
    background-color: var(--surface-default);
  }
}

/* =================================================================
  24. Global Button Styles (Primary CTA)
================================================================= */
.btn-primary {
  background: var(--lux-accent, #0052cc);
  border-color: var(--lux-accent, #0052cc);
  color: #ffffff;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 82, 204, 0.15);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #003d99;
  border-color: #003d99;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 82, 204, 0.3);
  transform: translateY(-2px);
}

.btn-primary:active {
  background: #002966;
  border-color: #002966;
  color: #ffffff;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 82, 204, 0.2);
}

.btn-primary svg {
  stroke: currentColor;
  flex-shrink: 0;
}

.btn-primary.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-primary.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 8px;
}

/* Outline variant */
.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--lux-accent, #0052cc);
  color: var(--lux-accent, #0052cc);
  font-weight: 600;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--lux-accent, #0052cc);
  border-color: var(--lux-accent, #0052cc);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 82, 204, 0.25);
  transform: translateY(-2px);
}

.btn-outline-primary:active {
  background: #003d99;
  border-color: #003d99;
  color: #ffffff;
  transform: translateY(0);
}

.btn-outline-primary svg {
  stroke: currentColor;
  flex-shrink: 0;
}

.featured-header .eyebrow {
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--lux-muted);
  font-size: 0.75rem;
}

.featured-grid .featured-card {
  border: 1px solid var(--lux-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-grid .featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.featured-media {
  position: relative;
  overflow: hidden;
  background: #f5f7fb;
}

.featured-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.featured-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
}

.badge-soft {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 82, 204, 0.1);
  color: var(--lux-accent);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(2px);
}

.featured-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lux-text);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-icon:hover {
  color: var(--lux-accent);
  border-color: rgba(0, 82, 204, 0.25);
  transform: translateY(-1px);
}

.pill-soft {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lux-text);
}

.pill-mini {
  padding: 3px 8px;
  font-size: 0.7rem;
}

.price-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.price-main {
  font-weight: 700;
  color: #3b82f6;
  font-size: 1rem;
}

.price-compare {
  color: #ef4444;
}

.price-base {
  color: #22c55e;
  font-size: 0.75rem;
}

/* Modern Remove from Cart Button */
.btn-remove-cart {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.btn-remove-cart:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.btn-remove-cart:active {
  transform: scale(0.98);
}

.btn-remove-cart svg {
  display: block;
}

@media (max-width: 768px) {
  .btn-remove-cart {
    width: 28px;
    height: 28px;
  }

  .btn-remove-cart svg {
    width: 16px;
    height: 16px;
  }
}

/* Mobile-Friendly Cart Items */
.cart-items-mobile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

.cart-item-mobile {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  align-items: flex-start;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
  line-height: 1.4;
  word-break: break-word;
}

.cart-item-code {
  font-size: 12px;
  color: #9ca3af;
}

.cart-item-variant {
  font-size: 12px;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: #f3f4f6;
  border-radius: 4px;
  width: fit-content;
}

.cart-item-pricing {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

.cart-price-original {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: line-through;
}

.cart-price-current {
  font-weight: 700;
  font-size: 14px;
  color: #059669;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.cart-qty-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  background: #f3f4f6;
  border-radius: 6px;
  min-width: 50px;
}

.cart-qty-label {
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-qty-value {
  font-weight: 700;
  font-size: 16px;
  color: #1f2937;
}

.cart-item-total {
  font-weight: 700;
  font-size: 14px;
  color: #1f2937;
  text-align: center;
}

.btn-remove-cart-mobile {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
  margin-top: 4px;
}

.btn-remove-cart-mobile:active {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.btn-remove-cart-mobile svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* Modern Quantity Selector */
.quantity-selector-modern {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quantity-label {
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
  display: block;
}

.quantity-input-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: fit-content;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #f9fafb;
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}

.qty-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.qty-btn:active {
  background: #e5e7eb;
}

.qty-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}

.quantity-input {
  width: 60px;
  height: 40px;
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  color: #1f2937;
  background: #ffffff;
  padding: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}

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

.quantity-input:focus {
  outline: none;
  background: #f9fafb;
}

.quantity-info {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

/* Mobile-optimized quantity selector */
@media (max-width: 576px) {
  .qty-btn {
    width: 44px;
    height: 44px;
  }

  .quantity-input {
    width: 70px;
    height: 44px;
    font-size: 18px;
  }

  .quantity-input-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  }
}

/* Quantity and Add to Cart in One Row */
.quantity-cart-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.quantity-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quantity-label {
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
  display: block;
  margin-bottom: 4px;
}

.quantity-selector-modern {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.quantity-selector-modern .quantity-label {
  margin-bottom: 0;
  position: absolute;
  top: -30px;
  left: 0;
}

.quantity-controls-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.quantity-input-group {
  align-self: center;
}

.btn-add-cart {
  width: 100%;
  white-space: nowrap;
  align-self: center;
}

/* Tablet and up: Side by side layout */
@media (min-width: 769px) {
  .quantity-cart-section {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .quantity-wrapper {
    flex: 0 0 auto;
    width: 220px;
  }

  .quantity-selector-modern {
    gap: 8px;
  }

  .quantity-label {
    margin-bottom: 0;
    position: relative;
    top: auto;
  }

  .btn-add-cart {
    width: auto;
    flex: 1;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .quantity-selector-modern .quantity-info {
    margin-top: -4px;
  }
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
  .quantity-cart-section {
    flex-direction: column;
    align-items: stretch;
  }

  .quantity-wrapper {
    width: 100%;
  }

  /* Default mobile full-width removed inside purchase-actions */
  .btn-add-cart {
    min-height: 44px;
    font-size: 16px;
  }

  /* Ensure Add to Cart doesn't force full width inside row */
  .purchase-actions .btn-add-cart {
    width: auto !important;
  }

  .quantity-selector-modern {
    gap: 8px;
  }
}

/* Modern Add to Cart Button */

/* Blue Add to Cart Button */
.btn-add-to-cart {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  border: none !important;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  padding: 12px 24px;
  text-decoration: none !important;
  outline: none !important;
}

.btn-add-to-cart:hover:not(:disabled) {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-add-to-cart:focus {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4), 0 0 0 4px rgba(37, 99, 235, 0.15) !important;
  outline: none !important;
  color: #ffffff !important;
}

.btn-add-to-cart:focus:not(:focus-visible) {
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4) !important;
}

.btn-add-to-cart:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
}

.btn-add-to-cart:disabled {
  background: #d1d5db !important;
  color: #9ca3af !important;
  cursor: not-allowed;
  box-shadow: none;
  border: none !important;
}

.btn-add-to-cart svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}

/* Yellow Buy Now Button */
.btn-buy-now {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  border: none !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  padding: 12px 24px;
  text-decoration: none !important;
  outline: none !important;
}

.btn-buy-now:hover:not(:disabled) {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-buy-now:focus {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4), 0 0 0 4px rgba(245, 158, 11, 0.15) !important;
  outline: none !important;
  color: #ffffff !important;
}

.btn-buy-now:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
  color: #ffffff !important;
}

.btn-buy-now:disabled {
  background: #e5e7eb !important;
  color: #9ca3af !important;
  cursor: not-allowed;
  box-shadow: none;
  border: none !important;
}

/* 2-Column Layout: Available Options + Quantity & Cart */
.product-options-cart-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.product-options-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.options-section-title {
  font-weight: 700;
  font-size: 14px;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.variants-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quantity-cart-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
}

/* Buttons row: keep both actions on the same line (desktop + mobile) */
.purchase-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
}

.purchase-actions .btn {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 768px) {
  .purchase-actions {
    gap: 8px;
    flex-wrap: nowrap;
    /* force same row on mobile */
  }

  .purchase-actions .btn {
    font-size: 15px;
    padding: 12px 16px;
  }
}

/* Mobile: Stack to single column */
@media (max-width: 992px) {
  .product-options-cart-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Tablet: Full width stacked */
@media (max-width: 768px) {
  .product-options-cart-section {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .options-section-title {
    font-size: 13px;
    margin-bottom: 4px;
  }
}

/* Outline Secondary Button Overrides - theme-consistent neutrals */
.btn.btn-outline-secondary {
  color: var(--lux-accent);
  background-color: transparent;
  border: 2px solid #000000 !important;
  /* force visible black border */
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn.btn-outline-secondary:hover {
  color: #000000 !important;
  /* black text on hover */
  background-color: rgba(0, 82, 204, 0.08) !important;
  /* very light blue tint */
  border-color: var(--lux-accent) !important;
  /* blue border on hover */
  box-shadow: none;
  /* no glow */
  transform: none;
  /* no movement */
  text-decoration: none;
}

.btn.btn-outline-secondary:focus {
  color: var(--lux-accent);
  background-color: #f8f9fa !important;
  /* off-white background on focus */
  border-color: #000000 !important;
  /* black border on focus */
  box-shadow: none !important;
  /* no glow per design */
  transform: none;
  text-decoration: none;
}

.btn.btn-outline-secondary:active {
  color: var(--lux-accent);
  background-color: #f8f9fa !important;
  /* off-white background on active */
  border-color: #000000 !important;
  /* black border on active */
  box-shadow: none !important;
  /* keep flat */
  transform: translateY(0);
}

.btn-outline-secondary:disabled,
.btn-outline-secondary.disabled {
  color: #9ca3af;
  background-color: transparent;
  border-color: var(--lux-border);
  box-shadow: none;
}

/* =================================================================
  21. Main Content Container
================================================================= */
.main-content-container {
  padding-top: var(--header-offset-mobile);
  /* Full header height offset */
}

@media (max-width: 991.98px) {
  .main-content-container {
    padding-top: var(--header-offset-tablet);
    /* Full header height offset for tablet */
  }
}

/* =================================================================
  22. Order Stepper - Customer Journey Progress
================================================================= */
.order-stepper-container {
  /* Explicit fallback + gradient to ensure cross-device consistency */
  background-color: #ffffff;
  background-image: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 24px 0;
  padding-top: var(--header-offset-desktop);
  /* Full header height offset */
  margin-bottom: 0;
  border-bottom: 1px solid var(--lux-border, #e5e7eb);
}

@media (max-width: 991.98px) {
  .order-stepper-container {
    padding-top: 0;
    /* Sticky header occupies space */
  }
}


.order-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

.order-stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  flex: 0 0 auto;
  min-width: 90px;
}

.order-stepper-step .stepper-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.order-stepper-step .stepper-icon svg {
  width: 22px;
  height: 22px;
}

/* Completed Step */
.order-stepper-step.completed .stepper-icon {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

/* Current Step */
.order-stepper-step.current .stepper-icon {
  background: linear-gradient(135deg, var(--lux-accent, #0052CC) 0%, #0066ff 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 82, 204, 0.4);
  animation: pulse-current 2s ease-in-out infinite;
}

@keyframes pulse-current {

  0%,
  100% {
    box-shadow: 0 4px 16px rgba(0, 82, 204, 0.4);
  }

  50% {
    box-shadow: 0 4px 24px rgba(0, 82, 204, 0.6);
  }
}

/* Pending Step */
.order-stepper-step.pending .stepper-icon {
  background: #f1f5f9;
  color: #94a3b8;
  border: 2px dashed #cbd5e1;
}

.order-stepper-step .stepper-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-stepper-step .stepper-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--lux-text, #1a1a1a);
}

.order-stepper-step.pending .stepper-title {
  color: #94a3b8;
}

.order-stepper-step .stepper-desc {
  font-size: 0.72rem;
  color: var(--lux-muted, #6b7280);
  display: none;
}

/* Connector Line */
.order-stepper-connector {
  flex: 1;
  height: 3px;
  background: #e2e8f0;
  margin: 0 8px;
  margin-bottom: 32px;
  border-radius: 2px;
  min-width: 40px;
  max-width: 80px;
  position: relative;
  overflow: hidden;
}

.order-stepper-connector.completed {
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.order-stepper-connector.current {
  background: linear-gradient(90deg, #22c55e 0%, var(--lux-accent, #0052CC) 100%);
}

/* Final step overrides: show current (step 4) in green */
.order-stepper-step.final.current .stepper-icon {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.4) !important;
}

/* Connector before final step: keep green when final is current */
.order-stepper-connector.final-connector.current {
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%) !important;
}

/* Final step title: green when current */
.order-stepper-step.final.current .stepper-title {
  color: #16a34a !important;
}

/* Final step description: green when current */
.order-stepper-step.final.current .stepper-desc {
  color: #16a34a !important;
}

/* Responsive: Mobile */
@media (max-width: 575.98px) {
  .order-stepper-container {
    padding: 16px 0;
    padding-top: 0;
    /* Sticky header occupies space */
    margin-bottom: 0;
  }

  .order-stepper {
    padding: 0 8px;
  }

  .order-stepper-step {
    min-width: 60px;
  }

  .order-stepper-step .stepper-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
  }

  .order-stepper-step .stepper-icon svg {
    width: 16px;
    height: 16px;
  }

  .order-stepper-step .stepper-title {
    font-size: 0.65rem;
  }

  .order-stepper-connector {
    min-width: 16px;
    max-width: 30px;
    margin: 0 2px;
    margin-bottom: 24px;
    height: 2px;
  }
}

/* Responsive: Tablet and up - show descriptions */
@media (min-width: 768px) {
  .order-stepper-step {
    min-width: 120px;
  }

  .order-stepper-step .stepper-icon {
    width: 56px;
    height: 56px;
  }

  .order-stepper-step .stepper-icon svg {
    width: 26px;
    height: 26px;
  }

  .order-stepper-step .stepper-title {
    font-size: 0.95rem;
  }

  .order-stepper-step .stepper-desc {
    display: block;
  }

  .order-stepper-connector {
    min-width: 60px;
    max-width: 100px;
    margin-bottom: 42px;
  }
}

/* =================================================================
  HORIZONTAL ACTIVITY STRIP (Compact & Premium)
================================================================= */
.activity-strip-wrapper {
  background: linear-gradient(135deg, #fafbff 0%, #f8fafc 100%);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, #e2e8f0 20%, #cbd5e1 50%, #e2e8f0 80%, transparent) 1;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
  position: relative;
}

.activity-scroll-area {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 6px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.activity-scroll-area::-webkit-scrollbar {
  display: none;
}

.activity-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e8edf5;
  padding: 5px 12px 5px 6px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 150px;
  max-width: 210px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.activity-chip:hover {
  background: #fff;
  border-color: #a5b4fc;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.12);
}

.act-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.act-content {
  flex-grow: 1;
  min-width: 0;
}

.act-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.act-status {
  font-size: 0.62rem;
  font-weight: 500;
  margin-top: 1px;
  letter-spacing: 0.02em;
}

.act-progress {
  height: 2px;
  background: #f1f5f9;
  border-radius: 10px;
  margin-top: 3px;
  overflow: hidden;
}

.act-progress-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop: center chips */
@media (min-width: 992px) {
  .activity-scroll-area {
    justify-content: center;
    padding: 7px 0;
  }
}

/* Mobile: tighter horizontal padding */
@media (max-width: 576px) {
  .activity-strip-wrapper .container {
    padding: 0 8px;
  }

  .activity-chip {
    min-width: 136px;
    max-width: 190px;
    padding: 4px 10px 4px 5px;
  }
}

/* =================================================================
   SHOPEE / LAZADA STYLE COMPACT PRODUCT CARD
   Key: image-first, price-prominent, no wasted space
================================================================= */

/* 1. CARD SHELL — minimal border, lift only on hover */
.product-card {
  border: 1px solid #f0f0f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
  background: #fff !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease !important;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
  transform: translateY(-3px) !important;
  border-color: #e0e0e0 !important;
}

/* 2. IMAGE: strict 1:1, clean bg, zoom on hover */
.product-card .product-image-container,
.product-card .standard-img-container {
  aspect-ratio: 1 / 1 !important;
  background: #f5f5f5 !important;
  overflow: hidden !important;
  border-bottom: 1px solid #f0f0f0 !important;
  position: relative;
}

.product-card .product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  opacity: 0;
}

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

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

/* 3. DISCOUNT RIBBON — sleek tag shape */
.product-card .discount-ribbon {
  position: absolute;
  top: 8px;
  left: 0;
  background: #ff4747;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px 4px 8px;
  border-radius: 0 4px 4px 0;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 50%, calc(100% - 5px) 100%, 0 100%);
  padding-right: 14px;
  z-index: 2;
  box-shadow: 1px 1px 4px rgba(255,71,71,0.3);
  letter-spacing: 0.02em;
}

/* Save Amount Badge — bottom-right of image */
.product-card .save-amount-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #16a34a;

  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(22,163,74,0.4);
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}

.product-card .save-amount-badge .save-label {
  font-size: 0.58rem;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-right: 3px;
}

.product-card .save-amount-badge .save-sym {
  font-size: 0.6rem;
  font-weight: 600;
  opacity: 0.9;
}

.product-card .save-amount-badge .save-num {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Pulsing border animation for discounted cards — strong */
@keyframes discountPulse {
  0%, 100% {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 0 0 0 rgba(255,71,71,0);
    border-color: rgba(255,71,71,0.3) !important;
  }
  50% {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 0 0 5px rgba(255,71,71,0.28);
    border-color: rgba(255,71,71,0.75) !important;
  }
}

.product-card.has-discount {
  animation: discountPulse 1.6s ease-in-out infinite !important;
}

.product-card.has-discount:hover {
  animation: none !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
  border-color: rgba(255,71,71,0.45) !important;
}

/* Hide card-body save % pill (now shown on image) */
.product-card .discount-pill {
  display: none !important;
}



/* 4. VARIANT BADGE — frosted glass top-right */
.product-card .variant-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #555;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.07);
  z-index: 2;
  text-transform: uppercase;
}

/* 5. CARD BODY — ultra compact, no wasted space */
.product-card .card-body.product-body-modern {
  padding: 8px 10px 10px !important;
  min-height: unset !important;
}

/* Fix items.css min-height: 160px */
.product-body-modern {
  min-height: unset !important;
}

/* 6. CATEGORY META — hidden (saves vertical space) */
.product-card .product-meta {
  display: none !important;
}

/* 7. ROW with discount pill — show but collapse if empty */
.product-card .d-flex.justify-content-between.align-items-center.mb-2 {
  display: flex !important;
  justify-content: flex-end !important;
  margin-bottom: 4px !important;
}


/* 8. PRODUCT TITLE — compact, 2 lines */
.product-card .product-title {
  font-size: 0.8rem !important;       /* readable even on 3-col mobile */
  font-weight: 500 !important;
  color: #222 !important;
  margin-bottom: 4px !important;
  margin-top: 0 !important;
  line-height: 1.45 !important;
}

.product-card .product-title a {
  color: #222 !important;
  text-decoration: none !important;
}

.product-card .product-title a:hover {
  color: #ff4747 !important;
}

/* 9. PRICE SECTION — tighter gap */
.product-card .d-flex.flex-column.gap-1.mb-3 {
  gap: 2px !important;
  margin-bottom: 8px !important;
}

/* "Was" price: tiny and muted */
.product-card .price.price-compare {
  font-size: 0.68rem !important;
  color: #aaa !important;
  text-decoration: line-through !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

/* Main price: bold orange-red like Shopee */
.product-card .price.price-main {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #f50 !important;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* Converted currency price */
.product-card .price.price-base {
  font-size: 0.65rem !important;
  color: #999 !important;
}

/* 10. ACTION BUTTONS — hide DETAILS, keep BUY small */
.product-card .product-actions {
  padding-top: 6px !important;
  gap: 0 !important;
  margin-top: auto !important;
}

.product-card .product-actions-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100%;
}


/* DETAILS button — compact ghost style */
.product-card .action-btn.action-details {
  height: 34px !important;
  border-radius: 7px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  border: 1.5px solid #e5e7eb !important;
  background: #f9fafb !important;
  color: #374151 !important;
  box-shadow: none !important;
  letter-spacing: 0.01em !important;
}

.product-card .action-btn.action-details:hover {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #111 !important;
  transform: translateY(-1px) !important;
}


/* BUY button: right half, compact, orange */
.product-card .action-btn.action-buy {
  display: flex !important;
  width: 100% !important;
  height: 34px !important;
  border-radius: 7px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  background: linear-gradient(90deg, #ff6b00, #ff4747) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(255,71,71,0.22) !important;
  transition: filter 0.15s ease, transform 0.15s ease !important;
  align-items: center;
  justify-content: center;
}

.product-card .action-btn.action-buy:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(255,71,71,0.35) !important;
}

.product-card .action-btn.action-buy:active {
  transform: translateY(0) !important;
  filter: brightness(0.96) !important;
}

/* 11. No image placeholder */
.product-card .no-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f3f4f6;
  color: #ccc;
  gap: 4px;
  font-size: 0.65rem;
}

.product-card .no-image-placeholder svg {
  width: 28px;
  height: 28px;
  opacity: 0.35;
}

/* 12. MOBILE: even tighter */
@media (max-width: 576px) {
  .product-card .card-body.product-body-modern {
    padding: 6px 8px 8px !important;
  }

  .product-card .product-title {
    font-size: 0.72rem !important;
  }

  .product-card .price.price-main {
    font-size: 0.88rem !important;
  }

  .product-card .action-btn.action-buy {
    height: 28px !important;
    font-size: 0.68rem !important;
  }
}

/* 13. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card .product-card-img,
  .product-card .action-btn {
    transition: none !important;
  }
  .product-card:hover {
    transform: none !important;
  }
}


/* --- Card Shell: soft shadow, clean border, smooth lift --- */
.product-card {
  border: 1px solid #eef0f3 !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease,
              border-color 0.28s ease !important;
  background: #fff !important;
}

.product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10) !important;
  border-color: #d4e3ff !important;
}

/* --- Image Container: square crop, clean bg --- */
.product-card .product-image-container,
.product-card .standard-img-container {
  aspect-ratio: 1 / 1 !important;
  background: #f6f7f9 !important;
  overflow: hidden;
  border-bottom: 1px solid #f0f2f5 !important;
}

.product-card .product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  opacity: 0;
}

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

.product-card:hover .product-card-img {
  transform: scale(1.04);
}

/* --- Discount Ribbon (50% OFF) --- */
.product-card .discount-ribbon {
  position: absolute;
  top: 12px;
  left: 0;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 10px 5px 10px;
  border-radius: 0 6px 6px 0;
  box-shadow: 2px 2px 8px rgba(225, 29, 72, 0.30);
  z-index: 2;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 50%, calc(100% - 5px) 100%, 0 100%);
  padding-right: 14px;
}

/* --- Variant Badge (3 Colors, 5 Sizes) --- */
.product-card .variant-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #374151;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 2;
  text-transform: uppercase;
}

/* --- Card Body --- */
.product-card .card-body.product-body-modern {
  padding: 14px 14px 12px !important;
}

/* --- Category / Subcategory Meta --- */
.product-card .product-meta {
  font-size: 0.7rem !important;
  color: #9ca3af !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  line-height: 1.2;
}

.product-card .product-meta:hover {
  color: #6366f1 !important;
}

/* --- Discount Pill ("Save 15%") next to category --- */
.product-card .discount-pill {
  background: #fef3f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  letter-spacing: 0.01em;
}

/* --- Product Title --- */
.product-card .product-title {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #111827 !important;
  margin-bottom: 8px !important;
  line-height: 1.45 !important;
}

.product-card .product-title a {
  color: #111827 !important;
  text-decoration: none !important;
}

.product-card .product-title a:hover {
  color: #4f46e5 !important;
}

/* --- Price: "Was" strikethrough --- */
.product-card .price.price-compare {
  font-size: 0.75rem !important;
  color: #9ca3af !important;
  text-decoration: line-through !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

/* --- Price: Main sale price --- */
.product-card .price.price-main {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #111827 !important;
  letter-spacing: -0.01em;
}

/* --- Price: Base currency (conversion) --- */
.product-card .price.price-base {
  font-size: 0.72rem !important;
  color: #6b7280 !important;
}

/* --- Action Buttons Row --- */
.product-card .product-actions {
  padding-top: 10px !important;
  gap: 8px !important;
}

.product-card .product-actions-row {
  gap: 8px !important;
}

/* --- DETAILS Button: clean ghost style --- */
.product-card .action-btn.action-details {
  height: 38px !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  border: 1.5px solid #e5e7eb !important;
  background: #f9fafb !important;
  color: #374151 !important;
  box-shadow: none !important;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease !important;
}

.product-card .action-btn.action-details:hover {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #111827 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.07) !important;
}

/* --- BUY Button: solid indigo gradient --- */
.product-card .action-btn.action-buy {
  height: 38px !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.30) !important;
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}

.product-card .action-btn.action-buy:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.38) !important;
}

.product-card .action-btn.action-buy:active {
  transform: translateY(0) !important;
  filter: brightness(0.98) !important;
}

/* --- No image placeholder refinement --- */
.product-card .no-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f3f4f6;
  color: #d1d5db;
  gap: 6px;
  font-size: 0.7rem;
}

.product-card .no-image-placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.4;
}

/* --- Mobile: tighter card body --- */
@media (max-width: 576px) {
  .product-card .card-body.product-body-modern {
    padding: 10px 10px 10px !important;
  }

  .product-card .product-title {
    font-size: 0.82rem !important;
  }

  .product-card .price.price-main {
    font-size: 0.98rem !important;
  }

  .product-card .action-btn.action-details,
  .product-card .action-btn.action-buy {
    height: 36px !important;
    font-size: 0.72rem !important;
  }
}

/* Reduced motion: disable hover lift */
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card .product-card-img,
  .product-card .action-btn {
    transition: none !important;
  }
  .product-card:hover {
    transform: none !important;
  }
}