/* ==========================================================================
   MAUA STOREFRONT - Consolidated UI Styling & Foundational Design Tokens
   ========================================================================== */

:root {
  --primary-color: #E38D03;
  --primary-hover: #c97b02;
  --bg-color: #ffffff;
  --text-color: #2c3e50;
  --card-bg: #ffffff;
  --card-bg-raw: 255, 255, 255;
  --card-border: 1px solid rgba(0, 0, 0, 0.05);
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --nav-bg: #ffffff;
  --title-color: #0f172a;
  --card-shadow: none;
  /* P2P Chat Variables */
  --chat-body-bg: #f9fafb;
  --chat-bubble-bg: #e5e7eb;
  --chat-bubble-text: #1f2937;
  --chat-locked-bg: #f3f4f6;
}

[data-theme="dark"] {
  --bg-color: #0f172a;
  --text-color: #cbd5e1;
  --card-bg: #131c31;
  --card-bg-raw: 19, 28, 49;
  --card-border: 1px solid rgba(255, 255, 255, 0.05);
  --input-bg: #1e293b;
  --input-border: #334155;
  --nav-bg: #0f172a;
  --title-color: #f8fafc;
  --card-shadow: none;
  /* P2P Chat Variables */
  --chat-body-bg: #0f172a;
  --chat-bubble-bg: #1e293b;
  --chat-bubble-text: #cbd5e1;
  --chat-locked-bg: #1e293b;
}

/* Chat message markdown (rendered via marked + sanitize-html server-side) */
.chat-markdown p,
.chat-markdown ul,
.chat-markdown ol,
.chat-markdown blockquote,
.chat-markdown pre {
  margin: 0 0 0.4em;
}
.chat-markdown > *:last-child {
  margin-bottom: 0;
}
.chat-markdown ul,
.chat-markdown ol {
  padding-left: 1.2em;
}
.chat-markdown a {
  color: inherit;
  text-decoration: underline;
}
.chat-markdown code {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 0.1em 0.3em;
  font-size: 0.9em;
}
.chat-markdown pre code {
  display: block;
  padding: 0.5em;
  overflow-x: auto;
}

body {
  font-family: 'Mulish', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s, color 0.2s;
}

/* Push footer down automatically */
[x-cloak] {
  display: none !important;
}

main.section {
  flex: 1;
  padding: 1.5rem 0.75rem;
}

.navbar, .hero-brand {
  background-color: var(--nav-bg) !important;
  border-bottom: var(--card-border) !important;
  transition: background-color 0.2s, border-color 0.2s;
}

.navbar-item, .brand-title {
  color: var(--text-color) !important;
}

.brand-title {
  font-weight: 800;
  color: var(--primary-color) !important;
  letter-spacing: 1px;
}

/* Chromeless Panel Cards with Micro-interactions */
.glass-card {
  background-color: var(--card-bg) !important;
  border: var(--card-border) !important;
  box-shadow: none !important;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(227, 141, 3, 0.2) !important;
  transform: translateY(-1px);
}

.title, .subtitle {
  color: var(--title-color) !important;
}

.title + .subtitle {
  margin-top: 0.5rem !important;
}

.has-text-dark {
  color: var(--title-color) !important;
}

.has-text-grey {
  color: #64748b !important;
}

.text-muted {
  color: #94a3b8 !important;
}

/* Global button micro-interactions */
.button {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.button:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background-color: var(--primary-color) !important;
  color: #fff !important;
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-hover) !important;
  color: #fff !important;
}

.input, .select select {
  background-color: var(--input-bg) !important;
  border: var(--card-border) !important;
  color: var(--text-color) !important;
  border-radius: 6px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.input:focus, .select select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.125em rgba(227, 141, 3, 0.2) !important;
}

.input::placeholder {
  color: #94a3b8;
}

#map {
  height: 250px;
  width: 100%;
  border-radius: 8px;
  border: var(--card-border);
  margin-top: 15px;
}

.table {
  background-color: var(--card-bg) !important;
  color: var(--text-color) !important;
}

.table th {
  color: var(--title-color) !important;
  border-color: var(--card-border) !important;
}

.table td {
  color: var(--text-color) !important;
  border-color: var(--card-border) !important;
}

.table thead td,
.table thead th,
.table tfoot td,
.table tfoot th {
  color: var(--title-color) !important;
  border-color: var(--card-border) !important;
}

/* Striped rows — Bulma hardcodes background: #fafafa */
.table.is-striped tbody tr:not(.is-selected):nth-child(even) {
  background-color: rgba(0, 0, 0, 0.025) !important;
}
[data-theme="dark"] .table.is-striped tbody tr:not(.is-selected):nth-child(even) {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

/* Hoverable — all states use CSS vars */
.table.is-hoverable tbody tr:not(.is-selected):hover {
  background-color: rgba(227, 141, 3, 0.06) !important;
}
.table.is-hoverable.is-striped tbody tr:not(.is-selected):hover,
.table.is-hoverable.is-striped tbody tr:not(.is-selected):hover:nth-child(even) {
  background-color: rgba(227, 141, 3, 0.06) !important;
}

.tabs a {
  color: var(--text-color) !important;
  border-bottom-color: var(--card-border) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tabs li:not(.is-active) a:hover {
  color: var(--primary-color) !important;
  border-bottom-color: var(--primary-hover) !important;
  transform: translateY(-2px);
}

.tabs li.is-active a {
  color: var(--primary-color) !important;
  border-bottom-color: var(--primary-color) !important;
  font-weight: 700;
}

.message.is-warning {
  background-color: rgba(227, 141, 3, 0.05) !important;
  border-color: var(--primary-color) !important;
  transition: transform 0.2s ease;
}
.message.is-warning:hover {
  transform: scale(1.005);
}

.feedback-widget-shell {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 10040;
}

.feedback-capture-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.feedback-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: var(--card-border);
  border-radius: 999px;
  background: var(--card-bg);
  color: #94a3b8;
  padding: 0.5rem 0.75rem;
  font-family: 'Mulish', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.feedback-launcher:hover,
.feedback-launcher:focus-visible {
  opacity: 1;
}

.feedback-launcher .icon {
  color: #94a3b8;
  font-size: 0.8rem;
}

.feedback-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
  z-index: 10041;
}

.feedback-panel {
  position: fixed;
  right: 1rem;
  bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100vw - 1.5rem));
  max-height: min(82vh, 760px);
  overflow-y: auto;
  border-radius: 22px;
  background: var(--card-bg);
  border: var(--card-border);
  padding: 1rem;
  z-index: 10042;
}

.feedback-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.feedback-panel-kicker {
  margin-bottom: 0.25rem;
  color: var(--primary-color);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feedback-panel-head h3 {
  color: var(--title-color);
  font-size: 1.1rem;
  font-weight: 800;
}

.feedback-close {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 1rem;
  width: 2rem;
  height: 2rem;
}

.feedback-panel-copy {
  margin-bottom: 0.9rem;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.feedback-preview-wrap {
  margin-bottom: 0.85rem;
  border-radius: 16px;
  overflow: hidden;
  border: var(--card-border);
  background: rgba(15, 23, 42, 0.05);
}

.feedback-preview-image {
  display: block;
  width: 100%;
  height: auto;
}

.feedback-panel-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.feedback-context-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(227, 141, 3, 0.12);
  color: #8a5a00;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.feedback-submit-row {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .feedback-widget-shell {
    right: 0.6rem;
    bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  }

  .feedback-launcher {
    padding: 0.55rem;
  }

  .feedback-launcher .icon {
    font-size: 0.85rem;
  }

  .feedback-launcher-label {
    display: none;
  }

  .feedback-panel {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    max-height: 78vh;
  }
}

.message-body {
  color: var(--text-color) !important;
}

.box {
  background-color: var(--card-bg) !important;
  color: var(--text-color) !important;
  border: var(--card-border) !important;
  box-shadow: none !important;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.box:hover {
  border-color: rgba(227, 141, 3, 0.15) !important;
  transform: translateY(-1px);
}

.modal-card-head, .modal-card-foot {
  background-color: var(--bg-color) !important;
  border-color: var(--card-border) !important;
}

.modal-card-title {
  color: var(--title-color) !important;
}

.modal-card-body {
  background-color: var(--card-bg) !important;
  color: var(--text-color) !important;
}

/* ==========================================================================
   Premium Micro-interactions & Smooth Transitions
   ========================================================================== */

/* Fade-in and Slide-up Keyframes for content loading */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal Smooth Scale-in Animation */
.modal {
  transition: opacity 0.2s ease-in-out;
}
.modal-card {
  transform: scale(0.96) translateY(-15px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.is-active .modal-card {
  transform: scale(1) translateY(0);
}

/* Table Row Smooth Micro-interaction */
.table tbody tr {
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.table tbody tr:hover {
  background-color: rgba(227, 141, 3, 0.04) !important;
}

/* HTMX Swapping & Global Progress Indicator Transitions */
.htmx-swapping {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
.htmx-settling {
  opacity: 0;
}

/* Global top-loading progress indicator bar */
.htmx-indicator {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;
  pointer-events: none;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Dim content-area immediately when loading starts to show immediate activity */
body:has(#global-indicator.htmx-request) #content-area {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out;
}

/* Pulsating animation for active clicks on tab anchors */
.tabs a.htmx-request {
  animation: pulseTab 1s infinite ease-in-out;
  pointer-events: none;
  color: var(--primary-color) !important;
}

@keyframes pulseTab {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Moving slide animation for top border bar */
.htmx-indicator::after {
  content: '';
  display: block;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  animation: loadingSlide 1s infinite linear;
}

@keyframes loadingSlide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

/* ==========================================================================
   Storefront Specific Custom Layout Styles
   ========================================================================== */

/* Immersive Map custom Leaflet control overrides */
[x-show="activeView === 'map'"] .leaflet-top {
  top: 104px !important;
}
[x-show="activeView === 'map'"] .leaflet-left {
  left: 24px !important;
}
[x-show="activeView === 'map'"] .leaflet-right {
  right: 18px !important;
}
[x-show="activeView === 'map'"] .leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  border: 1px solid var(--card-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
  padding: 0 !important;
}
[x-show="activeView === 'map'"] .leaflet-popup-content {
  margin: 12px !important;
  line-height: 1.4 !important;
}
[x-show="activeView === 'map'"] .leaflet-popup-close-button {
  color: #a0a0a0 !important;
  padding: 6px 8px 0 0 !important;
}

/* Custom Tooltip Styling for Ala Numbers */
.ala-tooltip {
  background: rgba(33, 33, 33, 0.9) !important;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(227, 141, 3, 0.6) !important;
  color: #FFE082 !important;
  font-family: 'Mulish', sans-serif !important;
  font-weight: 800 !important;
  font-size: 9px !important;
  padding: 2px 5px !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}
.leaflet-tooltip-top.ala-tooltip::before {
  border-top-color: rgba(227, 141, 3, 0.6) !important;
}

/* Custom Leaflet Control Toggle Button */
.leaflet-control-ala-toggle {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 5px 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Mulish', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #212121;
  transition: all 0.2s ease-in-out;
}
.leaflet-control-ala-toggle:hover {
  background: #ffffff;
  border-color: #E38D03;
  color: #E38D03;
}
.leaflet-control-ala-toggle.active {
  background: linear-gradient(135deg, #FFE082 0%, #E38D03 100%);
  color: #212121;
  border-color: #E38D03;
}

/* Center zoom control on middle right */
.leaflet-middleright {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1000;
  pointer-events: none;
}
.leaflet-middleright .leaflet-control {
  pointer-events: auto;
  margin-right: 10px;
}

.checkout-location-composer {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(227, 141, 3, 0.14);
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at top right, rgba(255, 224, 130, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,250,251,0.99));
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.checkout-location-composer:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  border-color: rgba(227, 141, 3, 0.24);
}

.checkout-location-composer__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.checkout-location-composer__eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.checkout-location-composer__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--title-color);
  line-height: 1.1;
}

.checkout-location-composer__hint {
  margin-top: 4px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #64748b;
  max-width: 460px;
}

.checkout-location-composer__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255,255,255,0.7);
  color: #475569;
  transition: all 0.2s ease;
}

.checkout-location-composer__status.is-loading,
.checkout-search-shell__pill.is-loading {
  background: rgba(255, 243, 205, 0.9);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.25);
}

.checkout-location-composer__status.is-resolving {
  background: rgba(219, 234, 254, 0.92);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.24);
}

.checkout-location-composer__status.is-ready {
  background: rgba(220, 252, 231, 0.92);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.24);
}

.checkout-location-composer__search {
  position: relative;
  z-index: 3;
  margin-bottom: 10px;
}

.checkout-search-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(255,255,255,0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.checkout-search-shell:focus-within {
  border-color: rgba(227, 141, 3, 0.7);
  box-shadow: 0 0 0 4px rgba(227, 141, 3, 0.12);
  transform: translateY(-1px);
}

.checkout-search-shell__icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 224, 130, 0.95), rgba(227, 141, 3, 0.95));
  color: #1f2937;
  flex-shrink: 0;
}

.checkout-search-shell__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 700;
}

.checkout-search-shell__input::placeholder {
  color: #94a3b8;
  font-weight: 600;
}

.checkout-search-shell__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.checkout-search-shell__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  background: rgba(241, 245, 249, 0.95);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.checkout-search-shell__pill.is-muted {
  background: rgba(248, 250, 252, 0.96);
  color: #64748b;
}

.checkout-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.checkout-search-results__item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.checkout-search-results__item:hover {
  background: rgba(255, 251, 235, 0.98);
  transform: translateY(-1px);
}

.checkout-search-results__pin {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 224, 130, 0.3);
  color: var(--primary-color);
}

.checkout-search-results__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.checkout-search-results__title {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--title-color);
  line-height: 1.25;
}

.checkout-search-results__subtitle {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1.3;
}

.checkout-search-results__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.checkout-search-results__meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #475569;
  background: rgba(241, 245, 249, 0.94);
  border: 1px solid rgba(203, 213, 225, 0.85);
}

.checkout-search-results__meta-pill.is-soft {
  color: #7c3aed;
  background: rgba(245, 243, 255, 0.95);
  border-color: rgba(196, 181, 253, 0.7);
}

.checkout-location-composer__selected {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.checkout-location-composer__selected-label {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.checkout-location-composer__selected-title {
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--title-color);
}

.checkout-location-composer__selected-meta {
  font-size: 0.66rem;
  line-height: 1.35;
  font-weight: 600;
  color: #64748b;
}

@keyframes pulseCard {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.08); }
  50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.02); }
}

@media (max-width: 768px) {
  .checkout-location-composer {
    padding: 12px;
    border-radius: 16px;
  }

  .checkout-location-composer__header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .checkout-location-composer__selected {
    padding: 9px 10px;
  }

  .checkout-search-shell {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 7px 9px;
  }

  .checkout-search-shell__meta {
    width: 100%;
    justify-content: flex-start;
  }
}

#samoa-leaflet-map-element .leaflet-control-attribution,
#checkout-leaflet-map .leaflet-control-attribution,
#global-leaflet-map .leaflet-control-attribution {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  bottom: auto;
  margin: 0 !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.7) !important;
  border: 1px solid rgba(15,23,42,0.08) !important;
  box-shadow: 0 4px 14px rgba(15,23,42,0.08) !important;
  color: rgba(71,85,105,0.78) !important;
  font-size: 9px !important;
  line-height: 1.1 !important;
  backdrop-filter: blur(8px);
}

#checkout-leaflet-map {
  touch-action: none;
  -ms-touch-action: none;
  overscroll-behavior: contain;
  -webkit-user-select: none;
  user-select: none;
}

#checkout-leaflet-map .leaflet-marker-icon,
#checkout-leaflet-map .leaflet-marker-shadow {
  touch-action: none;
  -webkit-user-drag: none;
  user-select: none;
}

#samoa-leaflet-map-element .leaflet-control-attribution a,
#checkout-leaflet-map .leaflet-control-attribution a,
#global-leaflet-map .leaflet-control-attribution a {
  color: inherit !important;
}

#checkout-leaflet-map .leaflet-top,
#global-leaflet-map .leaflet-top {
  top: 10px !important;
}

#checkout-leaflet-map .leaflet-right,
#global-leaflet-map .leaflet-right {
  right: 10px !important;
}

#checkout-leaflet-map .leaflet-bottom,
#global-leaflet-map .leaflet-bottom,
#samoa-leaflet-map-element .leaflet-bottom {
  bottom: 10px !important;
}

@media (max-width: 767px) {
  [x-show="activeView === 'map'"] .leaflet-top {
    top: 152px !important;
  }

  #samoa-leaflet-map-element .leaflet-control-attribution,
  #checkout-leaflet-map .leaflet-control-attribution,
  #global-leaflet-map .leaflet-control-attribution {
    font-size: 8px !important;
    padding: 2px 7px !important;
  }
}


/* Premium nested proportionality styles */
.store-card {
  border-radius: 16px !important;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.store-card img {
  border-radius: 12px;
  transition: transform 0.5s ease;
}
.store-card:hover img {
  transform: scale(1.03);
}
.badge-pill {
  border-radius: 8px !important;
}
/* Horizontal keyword row */
.explore-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
  scrollbar-width: none;
}
.explore-scroll::-webkit-scrollbar {
  display: none;
}
/* Glassmorphic Favorite heart */
.fav-circle {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 5;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.fav-circle:hover {
  transform: scale(1.1);
}
/* Chat Drawer & Sidebar Overlays */
.chat-drawer {
  position: fixed;
  top: 0;
  right: calc(-1 * var(--chat-drawer-width, 380px));
  width: var(--chat-drawer-width, 380px);
  height: 100vh;
  background: var(--card-bg, #ffffff);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(0,0,0,0.08);
}
.chat-drawer button,
.chat-drawer button:hover,
.chat-drawer button:focus,
.chat-drawer button:active {
  text-decoration: none !important;
}
.chat-drawer.is-active {
  right: 0;
}
/* Redesigned Chat Drawer Header */
.chat-drawer-header {
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--card-border);
  background-color: var(--card-bg);
  color: var(--text-color);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.chat-drawer-header.ai-theme {
  background: linear-gradient(135deg, rgba(227, 141, 3, 0.08), rgba(241, 168, 41, 0.08));
  border-bottom: 1.5px solid rgba(227, 141, 3, 0.15);
}

[data-theme="dark"] .chat-drawer-header.ai-theme {
  background: linear-gradient(135deg, rgba(227, 141, 3, 0.15), rgba(241, 168, 41, 0.05));
  border-bottom: 1.5px solid rgba(227, 141, 3, 0.25);
}
.chat-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.chat-drawer-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}
.ai-resize-handle {
  background-color: transparent;
  transition: background-color 0.2s, width 0.2s;
}
.ai-resize-handle:hover {
  background-color: rgba(227, 141, 3, 0.3) !important;
}
.ai-resize-handle.is-active {
  background-color: rgba(227, 141, 3, 0.7) !important;
  width: 8px !important;
}
@media (max-width: 480px) {
  .chat-drawer {
    width: 100vw !important;
    right: -100vw !important;
  }
  .chat-drawer.is-active {
    right: 0 !important;
  }
  .ai-resize-handle {
    display: none !important;
  }
}
.hover-bg-light:hover {
  background-color: rgba(0,0,0,0.03) !important;
}
/* Consistent & Theme-Adaptive AI Assistant (Tim) Avatars */
.tim-avatar {
  border-radius: 50% !important;
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 6px rgba(227, 141, 3, 0.18) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

[data-theme="dark"] .tim-avatar {
  background-color: rgba(227, 141, 3, 0.15) !important;
  border: 1px solid rgba(227, 141, 3, 0.3) !important;
  box-shadow: 0 2px 8px rgba(227, 141, 3, 0.1) !important;
}

.tim-avatar img {
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
}

[data-theme="dark"] .tim-avatar img {
  filter: drop-shadow(0 0 2px rgba(227, 141, 3, 0.5)) !important;
}

/* Floating Launcher Button */
.ai-launcher-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50% !important;
  background-color: var(--card-bg) !important;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999;
  border: 1.5px solid var(--card-border) !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: auto;
}

.ai-launcher-btn:hover {
  background-color: var(--card-bg) !important;
  transform: scale(1.08) rotate(5deg) !important;
  box-shadow: 0px 12px 28px rgba(0, 0, 0, 0.18) !important;
  border-color: var(--primary-color) !important;
}

[data-theme="dark"] .ai-launcher-btn {
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.35) !important;
}
/* Premium skeleton shimmer loader effects matching Samoa warm sand theme */
@keyframes premium-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-bone {
  background: linear-gradient(90deg, #f5f3ef 25%, #e9e6df 50%, #f5f3ef 75%);
  background-size: 200% 100%;
  animation: premium-shimmer 1.6s infinite linear;
  border-radius: 8px;
}
[data-theme="dark"] .shimmer-bone {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
}
.shimmer-circle {
  border-radius: 50% !important;
}
.skeleton-card {
  background: #ffffff;
  border: 1px solid #f1ece1;
  border-radius: 16px;
  padding: 12px;
  height: 260px;
  box-sizing: border-box;
}
[data-theme="dark"] .skeleton-card {
  background: var(--card-bg) !important;
  border: var(--card-border) !important;
}



/* Step transitions with animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.login-step-enter {
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-step-exit {
  animation: slideOutLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   Storefront Premium Legacy Styling Match
   ========================================================================== */
/* Horizontal infinite scroll container */
.horizontal-scroll-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: visible !important; /* Avoid vertical clipping of hover elevations/shadows */
  
  /* Viewport-relative breakout rules */
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  
  /* Vertical padding acts as a safe buffer for translateY(-4px) + shadow */
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  margin-top: -0.5rem !important;
  margin-bottom: -0.5rem !important;
  
  /* Left/right padding aligns the start element with standard container gutters dynamically */
  padding-left: calc(50vw - 50% + 24px) !important; 
  padding-right: calc(50vw - 50% + 24px) !important;
  
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important; /* Firefox */
}
.horizontal-scroll-container::-webkit-scrollbar {
  display: none !important; /* Safari/Chrome */
}
.horizontal-scroll-container > * {
  flex: 0 0 auto !important;
  width: 290px !important;
  margin-right: 1.25rem !important;
}
@media (max-width: 768px) {
  .horizontal-scroll-container {
    padding-left: calc(50vw - 50% + 16px) !important;
    padding-right: calc(50vw - 50% + 16px) !important;
  }
  .horizontal-scroll-container > * {
    width: 230px !important;
    margin-right: 1rem !important;
  }
}

body.storefront-body {
  background-color: #fdfcf9 !important; /* Legacy warm sand background */
  font-family: 'Mulish', 'Helvetica', sans-serif !important;
  color: #2F2E2E !important; /* Legacy primary dark charcoal text */
}

[data-theme="dark"] body.storefront-body {
  background-color: #0f172a !important;
  color: #cbd5e1 !important;
}

/* Floating pill navbar */
.storefront-navbar-floating {
  position: fixed !important;
  top: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 40px) !important;
  max-width: 1200px !important;
  height: 68px !important;
  border-radius: 34px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0px 10px 30px rgba(130, 126, 90, 0.08) !important;
  z-index: 1000 !important;
  padding: 0 20px 0 0 !important; /* Align logo on absolute left border */
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: all 0.3s ease;
}

[data-theme="dark"] .storefront-navbar-floating {
  background: rgba(15, 23, 42, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0px 10px 35px rgba(0, 0, 0, 0.4) !important;
}

.storefront-navbar-floating .button.is-text {
  color: var(--text-color) !important;
  opacity: 0.8;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.storefront-navbar-floating .button.is-text:hover {
  color: var(--primary-color) !important;
  opacity: 1;
  transform: translateY(-1px);
  background-color: transparent !important;
}

/* Circular Logo Pill on the left of header */
.storefront-logo-pill {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #E38D03 !important;
  width: 68px !important;
  height: 68px !important;
  border-radius: 50% !important;
  margin-right: 20px !important;
  transition: all 0.25s ease !important;
  flex-shrink: 0 !important;
}

.storefront-logo-pill:hover {
  background: #C77B02 !important;
}

.storefront-logo-pill img {
  filter: brightness(0) invert(1) !important;
  width: 40px !important;
  height: 40px !important;
  object-fit: contain !important;
}

/* Category menu & other nav components */
.storefront-nav-item {
  font-family: 'Mulish', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #565554 !important;
  padding: 0 18px !important;
  height: 40px !important;
  border-radius: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.02) !important;
  transition: all 0.25s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer;
}

[data-theme="dark"] .storefront-nav-item {
  color: #cbd5e1 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.01) !important;
}

.storefront-nav-item:hover, .storefront-nav-item.active {
  background: rgba(227, 141, 3, 0.08) !important;
  color: #E38D03 !important;
  border-color: rgba(227, 141, 3, 0.15) !important;
  transform: translateY(-1px);
}

/* Round control icons in header */
.storefront-control-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.02) !important;
  color: #565554 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

[data-theme="dark"] .storefront-control-icon {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #cbd5e1 !important;
}

.storefront-control-icon:hover {
  background: rgba(227, 141, 3, 0.08) !important;
  color: #E38D03 !important;
  border-color: rgba(227, 141, 3, 0.15) !important;
  transform: translateY(-1px);
}

/* Cart nav total and badge */
.storefront-cart-nav {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  padding: 0px 16px !important;
  height: 40px !important;
  border-radius: 20px !important;
  background: rgba(227, 141, 3, 0.08) !important;
  border: 1px solid rgba(227, 141, 3, 0.15) !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
  color: #E38D03 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}

.storefront-cart-nav:hover {
  background: rgba(227, 141, 3, 0.12) !important;
  transform: translateY(-1px);
}

/* Stepper progress layout */
.stepper-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
  background: #ffffff;
  padding: 16px 24px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .stepper-container {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.05);
}

.stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  z-index: 2;
}

.stepper-item::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  z-index: -1;
}

[data-theme="dark"] .stepper-item::after {
  background: #334155;
}

.stepper-item:last-child::after {
  content: none;
}

.stepper-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #64748b;
  transition: all 0.3s ease;
}

[data-theme="dark"] .stepper-circle {
  background: #1e293b;
  border-color: #475569;
  color: #94a3b8;
}

.stepper-item.active .stepper-circle {
  background: #E38D03;
  border-color: #E38D03;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(227, 141, 3, 0.15);
}

.stepper-item.completed .stepper-circle {
  background: #27AE60;
  border-color: #27AE60;
  color: #ffffff;
}

.stepper-label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  transition: color 0.3s ease;
}

.stepper-item.active .stepper-label {
  color: #E38D03;
}

.stepper-item.completed .stepper-label {
  color: #27AE60;
}

.premium-card {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 12px !important;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .premium-card {
  background-color: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.premium-card:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 141, 3, 0.2) !important;
  box-shadow: 0px 10px 30px rgba(130, 126, 90, 0.06) !important;
}

[data-theme="dark"] .premium-card:hover {
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.4) !important;
}

/* ==========================================================================
   High-Fidelity Desktop Visual Match Styles
   ========================================================================== */

/* Background Tropical Leaves Decorations */
.tropical-leaf-left {
  position: fixed;
  top: 180px;
  left: 0;
  width: 140px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.tropical-leaf-right {
  position: fixed;
  top: 480px;
  right: 0;
  width: 140px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.tropical-leaf-topright {
  position: fixed;
  top: 0;
  right: 0;
  width: 180px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* Asymmetrical Section Headers */
.storefront-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 45px;
  margin-bottom: 25px;
  width: 100%;
}

.asym-see-all {
  font-family: 'Mulish', sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #E38D03 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1.5px solid #E38D03;
  padding-bottom: 2px;
  transition: all 0.25s ease;
  line-height: 1;
}

.asym-see-all:hover {
  color: #C77B02 !important;
  border-bottom-color: #C77B02 !important;
}

.asym-title-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.asym-title {
  font-family: 'Mulish', sans-serif !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #E38D03 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px !important;
  line-height: 1;
}

.orange-underline-bar {
  width: 75px;
  height: 4px;
  background-color: #E38D03;
  border-radius: 2px;
}

/* Rounded Categories grey dropdown in navigation */
.nav-browse-categories-pill {
  background-color: #F2F2F2 !important;
  color: #2F2E2E !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  height: 38px !important;
  border-radius: 19px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(0,0,0,0.01) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .nav-browse-categories-pill {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

.nav-browse-categories-pill:hover {
  background-color: #E6E6E6 !important;
}

[data-theme="dark"] .nav-browse-categories-pill:hover {
  background-color: #334155 !important;
}

@media (max-width: 768px) {
  .nav-browse-categories-pill {
    padding: 0 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    justify-content: center !important;
  }
  .nav-browse-categories-pill .category-emoji {
    margin-right: 0 !important;
    font-size: 15px !important;
  }
  .nav-browse-categories-pill .category-text {
    display: none !important;
  }
  .nav-browse-categories-pill .fa-caret-down {
    display: none !important;
  }
  .storefront-navbar-floating .dropdown-menu-content {
    left: -88px !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
  }
  .dropdown-menu-content-right {
    width: calc(100vw - 32px) !important;
    max-width: 300px !important;
  }
}

/* Details / Summary Reset */
details summary::-webkit-details-marker {
  display: none !important;
}
details summary {
  list-style: none !important;
}
details summary::marker {
  display: none !important;
}


.compact-hub-launcher {
  padding-left: 0.55rem !important;
  padding-right: 0.55rem !important;
}

.compact-hub-menu {
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  border: var(--card-border);
  background-color: var(--card-bg);
  padding: 0.7rem;
}

.compact-hub-overview {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  text-decoration: none;
  padding: 0.55rem 0.65rem 0.7rem;
  border-bottom: var(--card-border);
  margin-bottom: 0.55rem;
}

.compact-hub-overview-title {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--title-color);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compact-hub-overview-subtitle {
  font-size: 0.68rem;
  color: #64748b;
}

.compact-hub-group + .compact-hub-group {
  margin-top: 0.5rem;
}

.compact-hub-group-label {
  font-size: 0.62rem;
  font-weight: 900;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 0.65rem 0.35rem;
}

.compact-hub-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.compact-hub-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.48rem 0.65rem;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.compact-hub-link:hover {
  background: rgba(227, 141, 3, 0.08);
  transform: translateY(-1px);
}

.compact-hub-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.compact-hub-link span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--title-color);
}

/* Centered tag cloud keywords */
.centered-keyword-pill {
  background-color: transparent !important;
  border: none !important;
  color: #2F2E2E !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  box-shadow: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px;
  user-select: none;
  cursor: pointer;
}

[data-theme="dark"] .centered-keyword-pill {
  background-color: transparent !important;
  color: #cbd5e1 !important;
}

.centered-keyword-pill:hover {
  background-color: #f3f4f6 !important;
  transform: scale(1.04);
  color: #E38D03 !important;
}

[data-theme="dark"] .centered-keyword-pill:hover {
  background-color: #334155 !important;
}

/* Floating status tags on store card images */
.store-card-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.store-card-status {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 9px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  z-index: 5;
}

.store-card-status.is-open {
  background-color: #27AE60 !important;
  color: #ffffff !important;
}

.store-card-status.is-closed {
  background-color: #626262 !important;
  color: #ffffff !important;
}

/* White favorite button overlays */
.store-card-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s ease, opacity 0.2s ease;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.store-card-fav i {
  font-size: 20px;
  color: var(--text-color);
  opacity: 0.65;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.store-card-fav i.is-favorite {
  color: #ff4757 !important;
  opacity: 1 !important;
  animation: heart-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.store-card-fav:hover i {
  transform: scale(1.2);
  opacity: 1;
}

@keyframes heart-pop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Premium PWA Install Banner Glowing & Borders */
.premium-pwa-banner {
  border: 1.5px solid rgba(227, 141, 3, 0.45) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s ease-in-out !important;
}

[data-theme="dark"] .premium-pwa-banner {
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important; /* Elegant light border */
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 
              0 0 25px rgba(255, 255, 255, 0.25), 
              0 0 15px rgba(227, 141, 3, 0.4) !important; /* Dual gold/white intense glow */
}

/* Merchant specific green variant */
.premium-pwa-banner.is-merchant {
  border: 1.5px solid rgba(72, 199, 142, 0.45) !important;
}

[data-theme="dark"] .premium-pwa-banner.is-merchant {
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important; /* Elegant light border */
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 
              0 0 25px rgba(255, 255, 255, 0.25), 
              0 0 15px rgba(72, 199, 142, 0.4) !important; /* Dual green/white intense glow */
}

/* ==========================================================================
   Internal Hub Portal Landing Specific Styles
   ========================================================================== */
.portal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.85rem 0.5rem;
  text-decoration: none;
  gap: 0.4rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.portal-card:hover {
  transform: translateY(-3px);
}
.portal-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.portal-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.portal-card:hover .portal-icon-img {
  transform: scale(1.06);
}
.portal-label {
  font-family: 'Mulish', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--title-color);
}
.portal-desc {
  font-family: 'Mulish', sans-serif;
  font-size: 0.75rem;
  color: var(--text-color);
  opacity: 0.75;
  line-height: 1.4;
  max-width: 240px;
  margin: 0 auto;
}
.portal-arrow {
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Mulish', sans-serif;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.portal-card:hover .portal-arrow {
  opacity: 1;
}
.hub-group-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hub-portal-group {
  background: rgba(var(--card-bg-raw), 0.76);
  border: var(--card-border);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(130, 126, 90, 0.06);
}

[data-theme="dark"] .hub-portal-group {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.hub-portal-group-head {
  padding: 0 0.35rem 0.65rem;
}

.hub-portal-group-title {
  font-size: 0.86rem;
  font-weight: 900;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hub-portal-group-subtitle {
  margin-top: 0.18rem;
  font-size: 0.78rem;
  color: #64748b;
}

/* ==========================================================================
   Shop Categories Sidebar Menu Premium Layout
   ========================================================================== */
.itemOfCategory {
  display: block !important;
  padding: 10px 16px !important;
  font-weight: 700 !important;
  color: #565554 !important;
  border-left: 3px solid transparent !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
}

[data-theme="dark"] .itemOfCategory {
  color: #cbd5e1 !important;
}

.itemOfCategory:hover {
  background: rgba(0, 0, 0, 0.02) !important;
  color: var(--primary-color) !important;
}

[data-theme="dark"] .itemOfCategory:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

.itemOfCategory.is-active {
  border-left-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  background: rgba(227, 141, 3, 0.05) !important;
}

[data-theme="dark"] .itemOfCategory.is-active {
  background: rgba(227, 141, 3, 0.1) !important;
}

/* ==========================================================================
   Logged-in Avatar Style System
   ========================================================================== */
@keyframes avatar-glow-pulse {
  0% { box-shadow: 0 0 4px rgba(227, 141, 3, 0.4); }
  50% { box-shadow: 0 0 14px rgba(227, 141, 3, 0.9); }
  100% { box-shadow: 0 0 4px rgba(227, 141, 3, 0.4); }
}
@keyframes avatar-green-pulse {
  0% { box-shadow: 0 0 4px rgba(64, 145, 108, 0.4); }
  50% { box-shadow: 0 0 14px rgba(64, 145, 108, 0.9); }
  100% { box-shadow: 0 0 4px rgba(64, 145, 108, 0.4); }
}
@keyframes border-shine {
  0% { border-color: rgba(255, 255, 255, 0.2); }
  50% { border-color: rgba(255, 255, 255, 0.9); }
  100% { border-color: rgba(255, 255, 255, 0.2); }
}
.avatar-base {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 18px;
  margin-left: 6px;
  user-select: none;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  box-sizing: border-box;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar-guest {
  background-color: #B3B3B3;
  color: #ffffff;
}
.avatar-premium {
  animation: avatar-glow-pulse 2s infinite alternate, border-shine 2s infinite;
  border: 1.5px solid rgba(255,255,255,0.5) !important;
}
.avatar-standard, .avatar-whatsapp {
  background: linear-gradient(135deg, #1B4332, #40916C);
  color: #ffffff;
  animation: avatar-green-pulse 2s infinite alternate, border-shine 2s infinite;
  border: 1.5px solid rgba(255,255,255,0.5) !important;
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ==========================================================================
   Chromeless Input & Select Styling
   ========================================================================== */
.input-chromeless {
  background-color: transparent !important;
  border: none !important;
  border-bottom: 2px solid var(--input-border, #cbd5e1) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  color: var(--text-color) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: 2.5em !important;
}

.input-chromeless:focus {
  border-bottom-color: var(--primary-color, #E38D03) !important;
  box-shadow: none !important;
}

.input-chromeless:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.input-chromeless::placeholder {
  color: #94a3b8;
}

.control.has-icons-left .input-chromeless {
  padding-left: 32px !important;
}

/* Chromeless Select tag */
.select-chromeless {
  height: auto !important;
}

.select-chromeless, .select-chromeless select {
  background-color: transparent !important;
  border: none !important;
  border-bottom: 2px solid var(--input-border, #cbd5e1) !important;
  border-radius: 0 !important;
  width: 100%;
  color: var(--text-color) !important;
  padding-left: 0 !important;
  transition: border-color 0.2s ease;
  font-weight: 600;
  box-shadow: none !important;
}

.select-chromeless select {
  padding-right: 2em !important;
  height: 2.5em !important;
}

.select-chromeless select:focus, .select-chromeless:focus-within {
  border-bottom-color: var(--primary-color, #E38D03) !important;
}

/* ==========================================================================
/* ==========================================================================
   Premium Custom Toggle Switch & Big Toggle UI
   ========================================================================== */
.switch-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.switch-input {
  display: none;
}

.switch-slider {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background-color: #cbd5e1;
  border-radius: 9999px;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .switch-slider {
  background-color: #334155;
}

.switch-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch-input:checked + .switch-slider {
  background-color: var(--primary-color, #E38D03);
}

.switch-input:checked + .switch-slider::before {
  transform: translateX(20px);
}

.switch-input:disabled + .switch-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Big Toggle UI without Checkbox */
.custom-toggle-switch {
  position: relative;
  width: 56px;
  height: 30px;
  background-color: #cbd5e1;
  border-radius: 15px;
  transition: background-color 0.25s ease;
  display: inline-block;
}

[data-theme="dark"] .custom-toggle-switch {
  background-color: #334155;
}

.custom-toggle-switch.is-active {
  background-color: var(--primary-color, #E38D03);
}

.custom-toggle-handle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

.custom-toggle-switch.is-active .custom-toggle-handle {
  transform: translateX(26px);
}

/* Toast HUD Countdown progress bar */
@keyframes hudProgress {
  from { width: 100%; }
  to { width: 0%; }
}

.hud-countdown {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.7);
  animation: hudProgress 3s linear forwards;
}

/* Premium Sidebar Menu Redesign */
.menu-list a {
  padding: 10px 14px !important;
  color: #1e293b !important; /* Higher contrast in light theme */
  font-weight: 700 !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-bottom: 4px;
  display: flex !important;
  align-items: center;
  gap: 10px;
}

[data-theme="dark"] .menu-list a {
  color: #cbd5e1 !important; /* Higher contrast in dark theme */
}

.menu-label {
  color: #475569 !important; /* Higher contrast label in light theme */
}

[data-theme="dark"] .menu-label {
  color: #94a3b8 !important; /* Higher contrast label in dark theme */
}

.menu-list a:hover {
  background-color: rgba(227, 141, 3, 0.08) !important;
  border-color: rgba(227, 141, 3, 0.15) !important;
  color: var(--primary-color) !important;
  transform: translateX(4px);
}

.menu-list a.is-active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(227, 141, 3, 0.2) !important;
}

.menu-list a.is-active i {
  color: #ffffff !important;
}

/* Danger items styling */
.menu-list a.menu-list-danger-item {
  color: #f14668 !important;
}

.menu-list a.menu-list-danger-item:hover {
  background-color: rgba(241, 70, 104, 0.08) !important;
  border-color: rgba(241, 70, 104, 0.15) !important;
  color: #f14668 !important;
  transform: translateX(4px);
}

.menu-list a.menu-list-danger-item.is-active {
  background-color: #f14668 !important;
  border-color: #f14668 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(241, 70, 104, 0.2) !important;
}
