/* ============================================================
   MOTOFLOW STORE — ADMIN VISUAL FUSION
   Reuses the admin's obsidian / glass / orange visual language
   without touching store business logic.
   ============================================================ */

#app-tienda {
  --mf-store-bg: rgba(8, 12, 17, .94);
  --mf-store-panel: linear-gradient(145deg, rgba(17,23,31,.985), rgba(6,10,15,.985));
  --mf-store-line: rgba(255,255,255,.09);
  --mf-store-orange: #ff5a00;
  --mf-store-cyan: #00d9ff;
  --mf-store-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 45px rgba(255,90,0,.055);
}

/* Store modals inherit the Admin modal language */
#app-tienda .modal-overlay {
  background: rgba(1,3,6,.78) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#app-tienda .modal-container {
  background: var(--mf-store-panel) !important;
  border: 1px solid var(--mf-store-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--mf-store-shadow) !important;
  overflow: hidden;
}
#app-tienda .modal-header {
  background: linear-gradient(90deg, rgba(255,90,0,.075), transparent 55%) !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
}
#app-tienda .modal-header h2,
#app-tienda .modal-header h3 {
  letter-spacing: .05em;
}
#app-tienda .modal-footer {
  background: rgba(255,255,255,.018);
  border-top: 1px solid rgba(255,255,255,.07);
}
#app-tienda .form-input,
#app-tienda input:not([type="checkbox"]):not([type="radio"]),
#app-tienda select,
#app-tienda textarea {
  background: rgba(4,8,13,.78) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: #f5f5f5 !important;
  border-radius: 10px !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
#app-tienda .form-input:focus,
#app-tienda input:not([type="checkbox"]):not([type="radio"]):focus,
#app-tienda select:focus,
#app-tienda textarea:focus {
  outline: none;
  border-color: rgba(255,90,0,.55) !important;
  box-shadow: 0 0 0 3px rgba(255,90,0,.08), 0 0 22px rgba(255,90,0,.06) !important;
  background: rgba(6,11,17,.96) !important;
}
#app-tienda .btn-primary {
  border-radius: 10px;
  min-height: 42px;
  font-weight: 800;
  letter-spacing: .025em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 22px rgba(0,0,0,.18);
}

/* Login / account modal gets a subtle futuristic top signal */
#auth-modal .modal-container::before,
#cart-modal .modal-container::before,
#guia-modal .modal-container::before,
#variant-selector-modal .modal-container::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,90,0,.75), rgba(0,217,255,.45), transparent);
  box-shadow: 0 0 18px rgba(255,90,0,.18);
}
#auth-modal .modal-header,
#cart-modal .modal-header,
#guia-modal .modal-header,
#variant-selector-modal .modal-header { padding-top: 17px; }

/* ============================================================
   FUTURISTIC STORE SEARCH
   ============================================================ */
.store-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 70;
}
.store-search-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.018));
  color: #e8edf3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s ease;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 8px 25px rgba(0,0,0,.18);
}
.store-search-toggle:hover,
.store-search-wrap.active .store-search-toggle {
  border-color: rgba(255,90,0,.42);
  color: #fff;
  box-shadow: 0 0 24px rgba(255,90,0,.10), inset 0 1px rgba(255,255,255,.07);
  transform: translateY(-1px);
}
.store-search-toggle svg { width: 20px; height: 20px; }

.store-search-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(430px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17,23,31,.985), rgba(6,10,15,.985));
  box-shadow: 0 30px 80px rgba(0,0,0,.52), 0 0 38px rgba(255,90,0,.055);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}
.store-search-wrap.active .store-search-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.store-search-input-shell {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border-radius: 11px;
  background: rgba(4,8,13,.84);
  border: 1px solid rgba(255,255,255,.10);
  transition: .18s ease;
}
.store-search-input-shell:focus-within {
  border-color: rgba(255,90,0,.55);
  box-shadow: 0 0 0 3px rgba(255,90,0,.08), 0 0 24px rgba(255,90,0,.06);
}
.store-search-input-shell svg { color: #8c9bad; flex: 0 0 auto; }
#store-search-input {
  width: 100%;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f7fafc !important;
  font: 600 13px/1 Inter, sans-serif;
}
#store-search-input::placeholder { color: #68778b; }
.store-search-kbd {
  flex: 0 0 auto;
  color: #6e7b8d;
  font: 700 9px/1 Inter, sans-serif;
  letter-spacing: .1em;
  padding: 5px 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
}
.store-search-results {
  max-height: 430px;
  overflow-y: auto;
  margin-top: 8px;
  scrollbar-width: thin;
}
.store-search-results::-webkit-scrollbar { width: 5px; }
.store-search-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 8px; }
.store-search-empty {
  padding: 24px 14px;
  text-align: center;
  color: #718096;
  font-size: 12px;
}
.store-search-result {
  width: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px;
  margin-top: 3px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: .16s ease;
}
.store-search-result:hover,
.store-search-result:focus-visible {
  outline: none;
  border-color: rgba(255,90,0,.20);
  background: linear-gradient(90deg, rgba(255,90,0,.075), rgba(0,217,255,.018));
}
.store-search-result img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}
.store-search-result-main { min-width: 0; }
.store-search-result-brand {
  color: #ff7b38;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.store-search-result-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
  color: #eef3f8;
  font-size: 12px;
  font-weight: 700;
}
.store-search-result-meta { margin-top: 3px; color: #6f8198; font-size: 10px; }
.store-search-result-price {
  color: #f8fafc;
  font: 800 13px/1 Rajdhani, Inter, sans-serif;
  white-space: nowrap;
}
.store-search-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 4px 3px;
  color: #64748b;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.store-search-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,.6);
}

@media (max-width: 767px) {
  .store-search-panel {
    position: fixed;
    top: 78px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 92px);
  }
  .store-search-result { grid-template-columns: 46px minmax(0,1fr) auto; }
  .store-search-result img { width: 46px; height: 46px; }
  .store-search-kbd { display: none; }
}

/* ============================================================
   STORE — GLOBAL MODAL SYSTEM
   Same premium language for EVERY customer-facing overlay.
   ============================================================ */
#auth-modal,
#guia-modal,
#cart-modal,
#category-modal,
#variant-selector-modal,
#lightbox-modal {
  --store-modal-line: rgba(255,255,255,.075);
  --store-modal-orange: #ff5a00;
  --store-modal-cyan: #00d9ff;
}

#auth-modal.modal-overlay,
#guia-modal.modal-overlay,
#cart-modal.modal-overlay,
#category-modal.modal-overlay,
#variant-selector-modal.modal-overlay {
  background:
    radial-gradient(circle at 50% 8%, rgba(255,90,0,.10), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(0,217,255,.045), transparent 28%),
    rgba(1,3,6,.86) !important;
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
}

#auth-modal .modal-container,
#guia-modal .modal-container,
#cart-modal .modal-container,
#category-modal .modal-container,
#variant-selector-modal .modal-container {
  position: relative;
  background: linear-gradient(145deg, rgba(17,23,31,.985), rgba(6,10,15,.995)) !important;
  border: 1px solid rgba(255,255,255,.085) !important;
  box-shadow:
    0 35px 110px rgba(0,0,0,.68),
    0 0 70px rgba(255,90,0,.055),
    inset 0 1px rgba(255,255,255,.035) !important;
}

#auth-modal .modal-container::before,
#guia-modal .modal-container::before,
#cart-modal .modal-container::before,
#category-modal .modal-container::before,
#variant-selector-modal .modal-container::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--store-modal-orange), var(--store-modal-cyan), transparent);
  box-shadow: 0 0 22px rgba(255,90,0,.20);
  z-index: 20;
  pointer-events: none;
}

#auth-modal .modal-header,
#guia-modal .modal-header,
#cart-modal .modal-header,
#variant-selector-modal .modal-header {
  position: relative;
  background: linear-gradient(90deg, rgba(255,90,0,.075), rgba(0,217,255,.018) 55%, transparent) !important;
  border-bottom: 1px solid var(--store-modal-line) !important;
}

#auth-modal .modal-header h3,
#guia-modal .modal-header h3,
#cart-modal .modal-header h3,
#variant-selector-modal .modal-header h3 {
  color: #f8fafc !important;
  text-shadow: 0 0 20px rgba(255,255,255,.06);
}

#auth-modal .modal-header button,
#guia-modal .modal-header button,
#cart-modal .modal-header button,
#variant-selector-modal .modal-header button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  transition: .2s ease;
}

#auth-modal .modal-header button:hover,
#guia-modal .modal-header button:hover,
#cart-modal .modal-header button:hover,
#variant-selector-modal .modal-header button:hover {
  color: #fff !important;
  border-color: rgba(255,90,0,.42);
  background: rgba(255,90,0,.10);
  box-shadow: 0 0 18px rgba(255,90,0,.08);
  transform: rotate(4deg);
}

#auth-modal .modal-body,
#guia-modal .modal-body,
#cart-modal .modal-body,
#variant-selector-modal .modal-body {
  background: linear-gradient(180deg, rgba(255,255,255,.012), transparent 35%);
}

#auth-modal .modal-footer,
#guia-modal .modal-footer,
#cart-modal .modal-footer {
  background: rgba(4,7,11,.82) !important;
  border-top: 1px solid rgba(255,255,255,.065) !important;
}

/* ---------- CATEGORY / COLLECTION MODAL ---------- */
#category-modal .category-modal-container {
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background: linear-gradient(145deg, #101720, #060a0f) !important;
  box-shadow:
    0 40px 120px rgba(0,0,0,.75),
    0 0 80px rgba(255,90,0,.055),
    inset 0 1px rgba(255,255,255,.035) !important;
  position: relative;
}

#category-modal .category-modal-container::after {
  content: "COLLECTION // LIVE CATALOG";
  position: absolute;
  top: 13px;
  right: 24px;
  z-index: 25;
  color: rgba(255,255,255,.25);
  font: 800 8px/1 Inter, sans-serif;
  letter-spacing: .18em;
  pointer-events: none;
}

#category-modal .filter-sidebar {
  position: relative;
  background:
    linear-gradient(180deg, rgba(16,23,31,.98), rgba(7,11,16,.99)),
    radial-gradient(circle at 20% 10%, rgba(255,90,0,.08), transparent 35%);
  border-right: 1px solid rgba(255,255,255,.075);
  box-shadow: inset -1px 0 rgba(255,255,255,.018);
}

#category-modal .filter-sidebar::before {
  content: "CONTROL DE CATÁLOGO";
  display: block;
  color: rgba(255,255,255,.28);
  font: 800 8px/1 Inter, sans-serif;
  letter-spacing: .18em;
  margin: -3px 0 16px;
}

#category-modal .filter-section {
  border-bottom-color: rgba(255,255,255,.065);
}

#category-modal .filter-title {
  color: #ff7a00;
  text-shadow: 0 0 14px rgba(255,90,0,.14);
}

#category-modal .filter-checkbox {
  border: 1px solid transparent;
}
#category-modal .filter-checkbox:hover {
  border-color: rgba(255,90,0,.14);
  background: linear-gradient(90deg, rgba(255,90,0,.075), rgba(0,217,255,.018));
}

#category-modal main.modal-body {
  background:
    radial-gradient(circle at 65% 0%, rgba(255,90,0,.045), transparent 30%),
    linear-gradient(180deg, rgba(10,15,21,.99), rgba(5,9,13,.99)) !important;
}

#category-modal main.modal-body > .p-\[0\.6rem\] {
  background: linear-gradient(90deg, rgba(13,19,26,.98), rgba(8,12,17,.94)) !important;
  border-bottom: 1px solid rgba(255,255,255,.075) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.20);
}

#category-modal #category-modal-title {
  color: #f8fafc;
  text-shadow: 0 0 22px rgba(255,255,255,.05);
}

#category-modal #product-count {
  color: #718096 !important;
  letter-spacing: .08em;
}

#category-modal #category-products-grid {
  padding-top: 4px;
}

#category-modal .category-product-card,
#category-modal .product-card {
  border-color: rgba(255,255,255,.075) !important;
  background: linear-gradient(145deg, rgba(17,23,31,.92), rgba(7,11,16,.96)) !important;
  box-shadow: 0 12px 35px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.025);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

#category-modal .category-product-card:hover,
#category-modal .product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,90,0,.25) !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.38), 0 0 28px rgba(255,90,0,.055);
}

#category-modal .modal-x-btn {
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.035) !important;
  color: #aab2c2 !important;
  box-shadow: none !important;
}

#category-modal .modal-x-btn:hover {
  border-color: rgba(255,90,0,.42) !important;
  color: #fff !important;
  background: rgba(255,90,0,.10) !important;
}

/* ---------- LIGHTBOX / PRODUCT DETAIL ---------- */
#lightbox-modal.lightbox-overlay {
  background:
    radial-gradient(circle at 50% 10%, rgba(255,90,0,.10), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(0,217,255,.045), transparent 30%),
    rgba(1,3,6,.90) !important;
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

#lightbox-modal .lightbox-content-new {
  position: relative;
  border: 1px solid rgba(255,255,255,.09) !important;
  background: linear-gradient(145deg, rgba(17,23,31,.985), rgba(6,10,15,.995)) !important;
  box-shadow: 0 40px 120px rgba(0,0,0,.76), 0 0 70px rgba(255,90,0,.055), inset 0 1px rgba(255,255,255,.035) !important;
}

#lightbox-modal .lightbox-content-new::before {
  content: "PRODUCT // DETAIL VIEW";
  position: absolute;
  top: 12px;
  left: 18px;
  z-index: 30;
  color: rgba(255,255,255,.25);
  font: 800 8px/1 Inter, sans-serif;
  letter-spacing: .18em;
  pointer-events: none;
}

#lightbox-modal .lightbox-img-col {
  background: radial-gradient(circle at 50% 50%, rgba(255,90,0,.045), transparent 55%), #05080c !important;
}

#lightbox-modal .lightbox-info-col {
  background: linear-gradient(180deg, rgba(14,20,27,.96), rgba(7,11,16,.98));
  border-left-color: rgba(255,255,255,.07) !important;
}

#lightbox-modal .lightbox-close-new {
  background: rgba(255,255,255,.035) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: #9aa5b5 !important;
}
#lightbox-modal .lightbox-close-new:hover {
  background: rgba(255,90,0,.10) !important;
  border-color: rgba(255,90,0,.38) !important;
  color: #fff !important;
}

#lightbox-modal .lb-badge {
  background: rgba(255,90,0,.08) !important;
  border-color: rgba(255,90,0,.22) !important;
  color: #ff7a38 !important;
}

#lightbox-modal .lb-price-current,
#lightbox-modal .feature-icon {
  color: #ff7a00 !important;
  text-shadow: 0 0 16px rgba(255,90,0,.12);
}

/* ---------- SWEETALERT2: ALSO PART OF THE STORE UI ---------- */
.swal2-container {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.swal2-popup {
  background: linear-gradient(145deg, rgba(17,23,31,.99), rgba(6,10,15,.995)) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255,255,255,.085) !important;
  border-radius: 18px !important;
  box-shadow: 0 35px 100px rgba(0,0,0,.68), 0 0 55px rgba(255,90,0,.055) !important;
  position: relative;
}
.swal2-popup::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff5a00, #00d9ff, transparent);
}
.swal2-title { color: #fff !important; font-family: Inter, sans-serif !important; }
.swal2-html-container { color: #8d9bad !important; }
.swal2-confirm {
  background: linear-gradient(135deg, #ff6a00, #e54f00) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 25px rgba(255,90,0,.16) !important;
}
.swal2-cancel {
  background: rgba(255,255,255,.045) !important;
  color: #c7d0dc !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 10px !important;
}

@media (max-width: 767px) {
  #category-modal .category-modal-container {
    border-radius: 18px 18px 0 0 !important;
  }
  #category-modal .category-modal-container::after {
    display: none;
  }
  #category-modal .filter-sidebar::before {
    display: none;
  }
  #lightbox-modal .lightbox-content-new::before {
    display: none;
  }
}



/* ================================================================
   MOTOFLOW // AMBIENT FUTURISTIC BACKGROUND
   A restrained sci-fi atmosphere: moving grid + energy fields + scan.
   It stays behind the whole storefront and does not affect layout.
   ================================================================ */
body {
  background:
    radial-gradient(circle at 50% -10%, rgba(255,90,0,.055), transparent 34%),
    radial-gradient(circle at 100% 55%, rgba(0,217,255,.035), transparent 30%),
    #05070a !important;
}
.store-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255,90,0,.045), transparent 38%),
    radial-gradient(ellipse at 15% 78%, rgba(0,217,255,.025), transparent 32%);
}
.store-ambient-grid {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -18vh;
  height: 72vh;
  opacity: .24;
  transform: perspective(520px) rotateX(61deg) scale(1.25);
  transform-origin: center bottom;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,.78) 48%, transparent 100%);
  animation: mf-grid-drift 18s linear infinite;
}
.store-ambient-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,90,0,.055), transparent 42%);
  animation: mf-grid-breathe 7s ease-in-out infinite;
}
.store-ambient-orb {
  position: absolute;
  width: 42vw;
  height: 42vw;
  max-width: 620px;
  max-height: 620px;
  min-width: 280px;
  min-height: 280px;
  border-radius: 50%;
  filter: blur(55px);
  opacity: .12;
  mix-blend-mode: screen;
}
.store-ambient-orb-a {
  left: -16vw;
  top: 16vh;
  background: radial-gradient(circle, rgba(255,90,0,.65), rgba(255,90,0,.12) 38%, transparent 70%);
  animation: mf-orb-a 20s ease-in-out infinite alternate;
}
.store-ambient-orb-b {
  right: -18vw;
  top: 46vh;
  background: radial-gradient(circle, rgba(0,217,255,.52), rgba(0,217,255,.08) 38%, transparent 70%);
  animation: mf-orb-b 24s ease-in-out infinite alternate;
}
.store-ambient-scan {
  position: absolute;
  inset: 0;
  opacity: .12;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 5px,
    rgba(255,255,255,.018) 6px,
    transparent 7px
  );
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  animation: mf-scan-drift 12s linear infinite;
}
.store-ambient-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 38%, rgba(0,0,0,.34) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.18), transparent 18%, transparent 82%, rgba(0,0,0,.42));
}
@keyframes mf-grid-drift {
  from { background-position: 0 0; }
  to { background-position: 0 112px; }
}
@keyframes mf-grid-breathe {
  0%,100% { opacity: .35; }
  50% { opacity: .75; }
}
@keyframes mf-orb-a {
  0% { transform: translate3d(0,0,0) scale(.92); }
  50% { transform: translate3d(8vw,5vh,0) scale(1.08); }
  100% { transform: translate3d(2vw,12vh,0) scale(.98); }
}
@keyframes mf-orb-b {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-8vw,-6vh,0) scale(.88); }
  100% { transform: translate3d(-2vw,5vh,0) scale(1.08); }
}
@keyframes mf-scan-drift {
  from { transform: translateY(-18px); }
  to { transform: translateY(18px); }
}
@media (prefers-reduced-motion: reduce) {
  .store-ambient-grid,
  .store-ambient-grid::after,
  .store-ambient-orb-a,
  .store-ambient-orb-b,
  .store-ambient-scan { animation: none !important; }
}
@media (max-width: 640px) {
  .store-ambient-grid { opacity: .14; background-size: 42px 42px; }
  .store-ambient-orb { opacity: .08; filter: blur(45px); }
  .store-ambient-scan { opacity: .07; }
}

/* ================================================================
   MOTOFLOW // FUTURISTIC STORE SECTIONS + FOOTER
   ================================================================ */
.store-section-heading {
  position: relative;
  isolation: isolate;
  padding: 0 30px;
}
.store-section-heading::before,
.store-section-heading::after {
  content: "";
  position: absolute;
  top: 58%;
  width: min(25vw, 360px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,90,0,.72), rgba(255,255,255,.12));
  box-shadow: 0 0 12px rgba(255,90,0,.16);
  pointer-events: none;
}
.store-section-heading::before { right: calc(100% - 18px); transform: translateY(-50%); }
.store-section-heading::after { left: calc(100% - 18px); transform: translateY(-50%) rotate(180deg); }
.store-section-heading > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ff6a00 !important;
  font-family: Inter, sans-serif;
  font-size: 10px !important;
  letter-spacing: .34em !important;
  text-transform: uppercase;
  padding: 6px 13px;
  border: 1px solid rgba(255,90,0,.22);
  background: linear-gradient(90deg, rgba(255,90,0,.08), rgba(0,217,255,.025));
  clip-path: polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);
}
.store-section-heading > span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00d9ff;
  box-shadow: 0 0 10px rgba(0,217,255,.85);
}
.store-section-heading h2 {
  position: relative;
  letter-spacing: .035em;
  text-shadow: 0 0 24px rgba(255,255,255,.055);
}
.store-section-heading h2::after {
  content: "";
  display: block;
  width: 68px;
  height: 2px;
  margin: 15px auto 0;
  background: linear-gradient(90deg, #ff5a00, #00d9ff);
  box-shadow: 0 0 16px rgba(255,90,0,.28);
}

/* Footer becomes a proper command-center style panel */
.store-futuristic-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(255,90,0,.075), transparent 25%),
    radial-gradient(circle at 88% 25%, rgba(0,217,255,.045), transparent 24%),
    linear-gradient(180deg, rgba(8,10,14,.96), rgba(2,4,7,1)) !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
}
.store-futuristic-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 7%;
  right: 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff5a00 28%, #00d9ff 72%, transparent);
  box-shadow: 0 0 18px rgba(255,90,0,.24);
}
.store-futuristic-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
.store-futuristic-footer > div { position: relative; z-index: 1; }
.footer-command-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: -7px 0 34px;
  color: #667386;
  font: 600 9px/1 Inter, sans-serif;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.footer-command-strip span:last-child { color: #8cffc7; }
.footer-command-strip i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff5a00;
  box-shadow: 0 0 9px rgba(255,90,0,.8);
}
.store-futuristic-footer h4 {
  font-size: 12px !important;
  letter-spacing: .18em !important;
  color: #e7edf5 !important;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 16px !important;
}
.store-futuristic-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, #ff5a00, transparent);
}
.store-futuristic-footer h4 span {
  width: 5px !important;
  height: 5px !important;
  box-shadow: 0 0 9px rgba(255,90,0,.75);
}
.store-futuristic-footer a {
  transition: color .22s ease, transform .22s ease, border-color .22s ease, background .22s ease;
}
.store-futuristic-footer a:hover { transform: translateX(3px); }
.store-futuristic-footer .grid > div:first-child {
  padding-right: 18px;
}
.store-futuristic-footer .grid > div:first-child img {
  filter: drop-shadow(0 0 18px rgba(255,90,0,.14));
}
.store-futuristic-footer .grid > div:first-child > p {
  color: #748094 !important;
}
.store-futuristic-footer .border-t {
  border-color: rgba(255,255,255,.07) !important;
  position: relative;
}
.store-futuristic-footer .border-t::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 110px;
  height: 1px;
  background: linear-gradient(90deg, #ff5a00, transparent);
}
.store-futuristic-footer iframe {
  opacity: .78;
  transition: opacity .25s ease, filter .25s ease;
}
.store-futuristic-footer a:hover iframe { opacity: .95; }

@media (max-width: 900px) {
  .store-section-heading::before,
  .store-section-heading::after { width: 15vw; }
}
@media (max-width: 640px) {
  .store-section-heading { padding: 0 8px; }
  .store-section-heading::before,
  .store-section-heading::after { display: none; }
  .store-section-heading > span { font-size: 8px !important; letter-spacing: .22em !important; }
  .store-section-heading h2 { font-size: 2.5rem !important; }
  .footer-command-strip { flex-wrap: wrap; gap: 9px; margin-bottom: 28px; text-align: center; }
}

/* ============================================================
   V5 — DIGITAL CONSTELLATION ATMOSPHERE
   ============================================================ */
.store-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(18,28,42,.28), transparent 38%),
    linear-gradient(180deg, #020407 0%, #03060a 48%, #010204 100%);
}
.constellation-canvas { position:absolute; inset:0; width:100%; height:100%; display:block; opacity:.95; }
.constellation-depth {
  position:absolute; inset:-20%;
  background:
    radial-gradient(ellipse at 20% 35%, rgba(255,78,0,.045), transparent 25%),
    radial-gradient(ellipse at 80% 60%, rgba(0,190,255,.035), transparent 24%),
    radial-gradient(ellipse at 50% 100%, rgba(255,255,255,.018), transparent 38%);
  filter: blur(18px);
  animation: constellationDrift 22s ease-in-out infinite alternate;
}
.constellation-vignette {
  position:absolute; inset:0;
  background: radial-gradient(ellipse at center, transparent 32%, rgba(0,0,0,.24) 72%, rgba(0,0,0,.58) 100%);
}
.constellation-horizon {
  position:absolute; left:-10%; right:-10%; bottom:-1px; height:28vh;
  background: linear-gradient(180deg, transparent, rgba(2,5,8,.55) 55%, rgba(1,2,4,.94));
  box-shadow: 0 -30px 90px rgba(255,80,0,.018);
}
@keyframes constellationDrift { from { transform:translate3d(-1.2%,0,0) scale(1.02); } to { transform:translate3d(1.2%,-1%,0) scale(1.06); } }
@media (max-width:700px) {
  .constellation-canvas { opacity:.78; }
  .constellation-depth { filter: blur(28px); animation-duration:30s; }
  .constellation-horizon { height:22vh; }
}
@media (prefers-reduced-motion: reduce) {
  .constellation-depth { animation:none !important; }
}
.store-ambient-grid,.store-ambient-orb,.store-ambient-scan,.store-ambient-vignette { display:none !important; }
