/* =========================================================
   FA LOGISTICS - MOBILE-FIRST DESIGN
   Style Guide Compliant
   ========================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  /* Brand Colors */
  --fa-green-900: #076237;
  --fa-green-800: #0D9152;
  --fa-green-600: #25B570;
  --fa-green-500: #05D471;
  
  --fa-lime-700: #CADB2E;
  --fa-lime-400: #EEFF4E;
  
  --fa-blue-950: #0F162F;
  --fa-blue-800: #2E3192;
  --fa-blue-500: #696DFA;
  --fa-blue-300: #AAADFF;
  
  /* Dark Theme Tokens */
  --bg: #07090C;
  --bg-elev-1: #0B0F12;
  --bg-elev-2: #0F141B;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --border-2: rgba(255, 255, 255, 0.14);
  
  --text: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.68);
  --text-dim: rgba(255, 255, 255, 0.55);
  
  /* FA Primary Tokens (green — gold retired) */
  --primary: #05D471;
  --primary-strong: #25B570;
  --link: var(--fa-blue-300);
  --focus: rgba(5, 212, 113, 0.25);
  
  --shadow-1: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 14px 40px rgba(0, 0, 0, 0.50);
  --glow-primary: 0 0 0 1px rgba(5, 212, 113, 0.20), 0 10px 40px rgba(5, 212, 113, 0.08);
  
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 22px;
  
  --font-head: "DM Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

img {
  max-width: 100%;
  height: auto;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, #07090C 0%, #050607 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */

/* Fixed site header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(7,9,12,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-brand img {
  height: 32px;
  width: auto;
}

.header-brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.08em;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1.5px solid var(--primary);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  /* hidden until hero button scrolls out */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.header-cta.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header-cta:hover {
  background: var(--primary);
  color: #07090C;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(5,212,113,0.3);
}

/* Legacy header (fallback) */
.header {
  position: relative;
  z-index: 200;
  background: linear-gradient(180deg, rgba(7,9,12,0.98), rgba(11,15,18,0.95));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}

.header-top {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand {
  text-align: center;
}

.logo-placeholder {
  width: 36px;
  margin: 0 auto 6px;
}

.logo-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-faq-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-faq-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* =========================================================
   STORE BRAND STRIP & HOW IT WORKS STRIP
   (scroll-away header rows above sticky search)
   ========================================================= */
.store-brand-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.store-brand-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.store-brand-identity img {
  height: 28px;
  width: auto;
}

.store-brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.06em;
}

.store-reach {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.4;
}

.store-reach strong {
  color: var(--primary);
  font-weight: 600;
}

.hiw-strip {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 0;
  background: var(--bg-elev-1);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.hiw-strip::-webkit-scrollbar { display: none; }

.hiw-step {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hiw-num {
  width: 20px;
  height: 20px;
  background: rgba(5, 212, 113, 0.12);
  border: 1px solid rgba(5, 212, 113, 0.3);
  color: var(--primary);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--font-head);
}

.hiw-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hiw-sep {
  color: var(--border-2);
  font-size: 0.85rem;
  margin: 0 10px;
  flex-shrink: 0;
  opacity: 0.6;
}

.hiw-learn {
  margin-left: auto;
  padding-left: 14px;
  font-size: 0.75rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.hiw-learn:hover { opacity: 1; text-decoration: underline; }

/* Search Bar - Sticky */
.sticky-search-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(7,9,12,0.98), rgba(11,15,18,0.95));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

/* Search Bar */
.search-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  transition: 180ms ease;
}

/* Hide browser-native search controls and use our custom clear button. */
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration,
.staff-input::-webkit-search-decoration,
.staff-input::-webkit-search-cancel-button,
.staff-input::-webkit-search-results-button,
.staff-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  background: rgba(255,255,255,0.08);
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.search-clear.visible {
  opacity: 1;
  pointer-events: auto;
}

.search-clear:hover {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 16px;
}

/* Cart Icon */
.cart-icon-wrapper {
  position: relative;
  cursor: pointer;
  padding: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cart-icon-wrapper:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--border-2);
  transform: translateY(-1px);
}

.cart-icon {
  font-size: 20px;
  line-height: 1;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #07090C;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  box-shadow: 0 2px 8px rgba(5,212,113,0.4);
}

/* Cart attention wiggle when items present */
.cart-icon-wrapper.has-items {
  animation: cartNudge 3s ease-in-out 2s infinite;
}

.cart-icon-wrapper.has-items .cart-count {
  animation: countPulse 3s ease-in-out 2s infinite;
}

@keyframes cartNudge {
  0%, 7%, 100% { transform: rotate(0deg); }
  1% { transform: rotate(-8deg); }
  2.5% { transform: rotate(8deg); }
  3.5% { transform: rotate(-5deg); }
  5% { transform: rotate(3deg); }
}

@keyframes countPulse {
  0%, 7%, 100% { transform: scale(1); }
  2% { transform: scale(1.25); }
  5% { transform: scale(1); }
}

/* Filter Pills */
.filter-scroll-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-scroll-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 72px;
  background: linear-gradient(to right, transparent, #07090C 88%);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.filter-scroll-wrap.at-end::after {
  opacity: 0;
}

.scroll-hint {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
  z-index: 3;
  animation: hint-pulse 1.6s ease-in-out infinite;
  opacity: 0.85;
}

.filter-scroll-wrap.at-end .scroll-hint {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@keyframes hint-pulse {
  0%, 100% { transform: translateY(-50%) translateX(0); opacity: 0.85; }
  50% { transform: translateY(-50%) translateX(4px); opacity: 0.4; }
}

.filter-scroll-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-scroll-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 72px;
  background: linear-gradient(to right, transparent, #07090C 88%);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.filter-scroll-wrap.at-end::after {
  opacity: 0;
}

.scroll-hint {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  pointer-events: none;
  z-index: 3;
  animation: hint-pulse 1.6s ease-in-out infinite;
}

.filter-scroll-wrap.at-end .scroll-hint {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@keyframes hint-pulse {
  0%, 100% { transform: translateY(-50%) translateX(0); opacity: 0.85; }
  50% { transform: translateY(-50%) translateX(5px); opacity: 0.3; }
}

.filter-section {
  margin-top: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-section.show {
  margin-top: 12px;
  margin-bottom: 12px;
}

.filter-section::-webkit-scrollbar {
  display: none;
}

.filter-pills {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
  min-width: min-content;
}

.filter-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: 180ms ease;
  white-space: nowrap;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filter-pill:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-2);
}

.filter-pill.active {
  background: linear-gradient(180deg, rgba(5,212,113,0.18), rgba(13,145,82,0.12));
  border-color: rgba(5,212,113,0.35);
  color: var(--primary);
  font-weight: 800;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 16px 100px;
}

/* Product Grid */
#products {
  scroll-margin-top: 8px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.product-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-1);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(0,0,0,0.3);
  display: grid;
  place-items: center;
  font-size: 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--accent);
  opacity: 0.75;
}

.icon-fallback svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.product-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  background: rgba(5,212,113,0.95);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #07090C;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-badge svg {
  vertical-align: middle;
  flex-shrink: 0;
}

.product-badge.delivery {
  top: auto;
  bottom: 8px;
  left: 8px;
  right: auto;
  background: rgba(105,109,250,0.9);
  color: #fff;
  font-size: 9px;
}

.product-info {
  padding: 12px;
}

.product-name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.product-variants {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.order-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1.5px solid #05D471;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: #05D471;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 160ms ease;
  position: relative;
  overflow: hidden;
}

.order-btn:hover {
  background: rgba(5,212,113,0.08);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 0 0 1px rgba(5,212,113,0.22), 0 14px 36px rgba(5,212,113,0.12);
}

.order-btn:active {
  background: #05D471;
  color: #07090C;
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 0 0 1px rgba(5,212,113,0.3), 0 2px 8px rgba(5,212,113,0.2);
  transition-duration: 80ms;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-text {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.empty-hint {
  font-size: 14px;
  color: var(--text-dim);
}

/* Loading State */
/* ── Energy-ring Loader ──────────────────────────────── */
.fa-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 80px 20px;
  grid-column: 1 / -1;
}

.fa-loader__orbit {
  position: relative;
  width: 88px;
  height: 88px;
}

.fa-loader__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.9;
}

.fa-loader__svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.fa-loader__text {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.025em;
}

@keyframes fa-energy {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -326.73; }
}

.fa-ring-tail {
  animation: fa-energy 1.5s linear infinite;
  animation-delay: -1.248s; /* places tail 55 units behind head */
}

.fa-ring-head {
  animation: fa-energy 1.5s linear infinite;
}
/* ── / Energy-ring Loader ────────────────────────────── */

/* Error State */
.error-state {
  text-align: center;
  padding: 60px 20px;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.error-text {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.retry-btn {
  padding: 12px 28px;
  background: transparent;
  border: 1.5px solid #05D471;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: #05D471;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.retry-btn:hover {
  background: rgba(5,212,113,0.08);
  transform: translateY(-2px);
}

.retry-btn:active {
  background: #05D471;
  color: #07090C;
  transform: translateY(1px);
  transition-duration: 80ms;
}

/* Modal for Variant Selection */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-1));
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2);
}

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

.modal-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
  padding-right: 12px;
}

.modal-close {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-muted);
  transition: 180ms ease;
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(255,80,80,0.15);
  border-color: rgba(255,80,80,0.3);
  color: #FF5050;
}

.variant-list {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.variant-option {
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: 180ms ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.variant-option:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-2);
}

.variant-option.selected {
  background: linear-gradient(180deg, rgba(5,212,113,0.15), rgba(13,145,82,0.10));
  border-color: rgba(5,212,113,0.35);
}

.variant-name {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

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

.modal-actions {
  display: grid;
  gap: 10px;
}

.btn-modal {
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 160ms ease;
  border: 1px solid;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-order {
  background: #05D471;
  border-color: rgba(5,212,113,0.40);
  color: #07090C;
  box-shadow: var(--glow-primary);
}

.btn-order:hover {
  background: #07f07e;
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 0 0 1px rgba(5,212,113,0.28), 0 14px 36px rgba(5,212,113,0.20);
}

.btn-order:active {
  background: #03b85e;
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 0 0 1px rgba(5,212,113,0.14), 0 2px 8px rgba(5,212,113,0.10);
  transition-duration: 80ms;
}

.btn-cancel {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-cancel:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-2);
  transform: translateY(-1px);
}

.btn-cancel:active {
  transform: translateY(1px);
  transition-duration: 80ms;
}

/* Cart Modal */
.cart-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1001;
  padding: 20px;
  overflow-y: auto;
}

.cart-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-modal-content {
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-1));
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 24px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-2);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 10px;
  transition: 180ms ease;
  align-items: center;
}

.cart-item:hover {
  background: rgba(255,255,255,0.06);
}

.cart-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 22px;
  position: relative;
}

.cart-item-thumb .icon-fallback {
  font-size: 24px;
}

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

.cart-item-details {
  min-width: 0;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cart-item-variant {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  overflow-wrap: anywhere;
}

/* Cart Controls */
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  justify-self: end;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  transition: background 140ms ease, transform 140ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 140ms ease;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.qty-btn:hover {
  background: rgba(255,255,255,0.16);
  border-color: var(--border-2);
  color: var(--text);
  transform: scale(1.12);
}

.qty-btn:active {
  transform: scale(0.88);
  transition-duration: 70ms;
}

.qty-btn.qty-minus:hover {
  background: rgba(255,80,80,0.15);
  border-color: rgba(255,80,80,0.3);
  color: #FF5050;
  transform: scale(1.12);
}

.qty-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: rgba(255,80,80,0.10);
  border: 1px solid rgba(255,80,80,0.2);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  color: #FF5050;
  transition: 180ms ease;
}

.cart-item-remove:hover {
  background: rgba(255,80,80,0.20);
  border-color: rgba(255,80,80,0.4);
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
}

.cart-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.3;
  color: var(--text);
  display: flex;
  justify-content: center;
}

.cart-empty-text {
  font-size: 16px;
}

.cart-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 700;
}

.cart-total-label {
  color: var(--text-muted);
}

.cart-total-amount {
  color: var(--primary);
  font-size: 20px;
}

.cart-actions {
  display: grid;
  gap: 10px;
}

.btn-checkout {
  background: #05D471;
  border: 1px solid rgba(5,212,113,0.40);
  color: #07090C;
  box-shadow: var(--glow-primary);
}

.btn-checkout:hover {
  background: #07f07e;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(5,212,113,0.28), 0 10px 28px rgba(5,212,113,0.18);
}

.btn-checkout:active {
  background: #03b85e;
  transform: translateY(1px);
  transition-duration: 80ms;
}

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

.btn-checkout:disabled:hover {
  transform: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

/* Hero Section */
.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px 48px;
  text-align: center;
}

/* Electric lines background */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-canvas svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.el {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawLine 3s ease forwards;
  opacity: 0.18;
}
.el:nth-child(1) { animation-delay: 0.2s; }
.el:nth-child(2) { animation-delay: 0.5s; }
.el:nth-child(3) { animation-delay: 0.8s; }
.el:nth-child(4) { animation-delay: 1.1s; }
.el:nth-child(5) { animation-delay: 1.4s; }
.el:nth-child(6) { animation-delay: 1.7s; }
.el:nth-child(7) { animation-delay: 2.0s; }
.el:nth-child(8) { animation-delay: 2.3s; }

@keyframes drawLine {
  0% { stroke-dashoffset: 300; opacity: 0; }
  20% { opacity: 0.18; }
  60% { stroke-dashoffset: 0; opacity: 0.18; }
  85% { stroke-dashoffset: 0; opacity: 0.18; }
  100% { stroke-dashoffset: -300; opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}

.hero-logo img.mark {
  height: 52px;
  width: auto;
  max-width: 100%;
  animation: logoBreathe 3s ease-in-out infinite;
}

.hero-logo img.wordmark {
  height: 26px;
  width: auto;
  max-width: 100%;
}

@keyframes logoBreathe {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary-dim, rgba(5,212,113,0.08));
  border: 1px solid rgba(5,212,113,0.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: dotBlink 1.8s ease-in-out infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease 0.35s both;
}

.hero h1 .accent { color: var(--primary); }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 16px;
  line-height: 1.7;
  animation: fadeUp 0.8s ease 0.5s both;
}

.hero-trust {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: fadeUp 0.8s ease 0.65s both;
}

.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.8s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  border: 1.5px solid var(--primary);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--btn-angle, 0deg), transparent 40%, var(--primary) 50%, transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderTrace 3s linear infinite;
  pointer-events: none;
}

@property --btn-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes borderTrace {
  to { --btn-angle: 360deg; }
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-primary:hover {
  color: #07090C;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(5,212,113,0.25), 0 0 60px rgba(5,212,113,0.1);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 80ms;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive hero */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 72px 20px 32px;
  }
  .hero-logo img.mark { height: 40px; }
  .hero-logo img.wordmark { height: 20px; }
  .hero-logo { margin-bottom: 28px; gap: 10px; }
  .hero-eyebrow { font-size: 0.72rem; padding: 4px 12px; margin-bottom: 18px; }
  .hero-sub { font-size: 0.95rem; }
  .hero-trust { font-size: 0.8rem; margin-bottom: 28px; }
  .hero-btns { gap: 10px; }
  .btn-primary, .btn-ghost { padding: 12px 22px; font-size: 0.92rem; }
}

/* Category Pills */
.category-pills-section {
  margin-top: 6px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 16px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.3s ease;
  margin-top: 0;
}

.category-pills-section.show {
  max-height: 60px;
  opacity: 1;
  overflow-x: auto;
  margin-top: 6px;
}

.category-pills-section::-webkit-scrollbar {
  display: none;
}

.category-pills {
  display: flex;
  gap: 6px;
  padding-bottom: 4px;
  min-width: min-content;
  flex-wrap: nowrap;
}

.category-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: 180ms ease;
  white-space: nowrap;
  user-select: none;
}

.category-pill:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-2);
  color: var(--text);
}

.category-pill.active {
  background: linear-gradient(180deg, rgba(105,109,250,0.18), rgba(105,109,250,0.10));
  border-color: rgba(105,109,250,0.4);
  color: #a5a8fc;
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-pills-section {
    padding: 0 8px;
  }
  
  .category-pill {
    font-size: 11px;
    padding: 5px 10px;
  }

  .header-brand-text { display: none; }
  .site-header { padding: 10px 16px; }
  .sticky-search-wrapper { top: 0; }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 20px;
  margin-top: 80px;
}

/* Floating WhatsApp Button */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 250;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
}
.wa-float:active {
  transform: scale(0.95);
}
@media (max-width: 768px) {
  .wa-float { bottom: 16px; right: 16px; width: 48px; height: 48px; }
  .wa-float svg { width: 22px; height: 22px; }
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-credit {
  color: var(--text-dim);
  font-size: 12px;
}

.footer-credit a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Product Results Info */
.results-info {
  padding: 16px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.results-info.show {
  opacity: 1;
  transform: translateY(0);
}

.results-count {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.results-subtext {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 90;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Cart Toast */
.cart-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.85);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  z-index: 100;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Product Detail Modal */
.detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1002;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.detail-modal.active {
  display: flex;
}

.detail-modal-content {
  background: var(--surface);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  position: relative;
}

.detail-modal-content .modal-close {
  z-index: 2;
  background: rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.detail-modal-content .modal-close:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.detail-image {
  width: 100%;
  aspect-ratio: 1;
  background: #1a1a2e;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 80px;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-body {
  padding: 24px;
}

.detail-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}

.detail-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.detail-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.detail-description {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

.detail-variants-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-variants-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.detail-variant {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.detail-variant:hover,
.detail-variant.selected {
  border-color: var(--primary);
  background: rgba(255, 107, 53, 0.08);
}

.detail-variant-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.detail-variant-price {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
}

.detail-actions {
  display: flex;
  gap: 10px;
}

.detail-actions .btn-modal {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.detail-add-btn {
  background: var(--primary);
  color: #fff;
}

.detail-add-btn:hover {
  opacity: 0.9;
}

.detail-close-btn {
  background: var(--bg);
  color: var(--text-dim);
  border: 1px solid var(--border) !important;
}

.detail-close-btn:hover {
  color: var(--text);
}

/* Load More Sentinel */
.load-more-sentinel {
  text-align: center;
  padding: 32px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
}

.detail-modal-content::-webkit-scrollbar {
  width: 6px;
}

.detail-modal-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

@media (max-width: 768px) {
  .detail-modal {
    padding: 0;
    align-items: flex-end;
  }

  .detail-modal-content {
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
  }

  .detail-image {
    aspect-ratio: 3/4;
  }

  .back-to-top {
    bottom: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
  }
}

/* Checkout Location Form Overlay */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1003;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.checkout-overlay.active {
  display: flex;
}

.checkout-form-content {
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-1));
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2);
}

.checkout-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.checkout-form-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.checkout-form-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.checkout-field {
  margin-bottom: 16px;
}

.checkout-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.checkout-select,
.checkout-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  transition: 180ms ease;
  appearance: none;
  -webkit-appearance: none;
}

.checkout-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.checkout-select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.checkout-select:focus,
.checkout-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,255,255,0.08);
}

.checkout-input::placeholder {
  color: var(--text-dim);
}

.checkout-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.checkout-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkout-disclaimer {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin: 14px 0 0 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .checkout-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .checkout-form-content {
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
  }
}

/* Focus styles for accessibility */
.filter-pill:focus-visible,
.category-pill:focus-visible,
.order-btn:focus-visible,
.btn-modal:focus-visible,
.modal-close:focus-visible,
.cart-icon-wrapper:focus-visible,
.qty-btn:focus-visible,
.retry-btn:focus-visible,
.back-to-top:focus-visible,
.hero-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.search-input:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

/* =========================================================
   STAFF LOOKUP
   ========================================================= */

body.staff-page {
  background: linear-gradient(180deg, #07090C 0%, #050607 100%);
}

.staff-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(7,9,12,0.98), rgba(11,15,18,0.95));
  backdrop-filter: blur(16px);
}

.staff-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-logo {
  width: 32px;
  display: block;
}

.staff-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.staff-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.staff-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.staff-home-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.staff-home-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.staff-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: grid;
  gap: 24px;
}

.staff-search {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}

.staff-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.staff-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.staff-input {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  transition: 180ms ease;
}

.staff-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  background: rgba(255,255,255,0.08);
}

.staff-clear {
  padding: 10px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.staff-clear:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.staff-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

.staff-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-results-count {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

.staff-status {
  font-size: 12px;
  color: var(--text-dim);
  min-height: 16px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.staff-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.staff-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-elev-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.staff-image-fallback {
  font-size: 12px;
  color: var(--text-dim);
}

.staff-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(5, 212, 113, 0.12);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.staff-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.staff-name {
  font-size: 14px;
  font-weight: 700;
}

.staff-id {
  font-size: 12px;
  color: var(--text-dim);
}

.staff-price {
  font-size: 13px;
  font-weight: 600;
}

.staff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-btn {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.staff-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.staff-variants {
  margin-top: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px;
}

.staff-variants summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-dim);
}

.staff-variant {
  font-size: 12px;
  color: var(--text);
  padding-top: 6px;
}

.staff-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 40px 0;
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  margin-top: 16px;
}

@media (max-width: 640px) {
  .staff-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   SMALL-SCREEN HARDENING
   ========================================================= */

@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas:
      "thumb details"
      "thumb controls";
    align-items: start;
    gap: 8px 10px;
  }

  .cart-item-thumb {
    grid-area: thumb;
    width: 56px;
    height: 56px;
  }

  .cart-item-details {
    grid-area: details;
  }

  .cart-item-controls {
    grid-area: controls;
    width: 100%;
    justify-self: end;
    justify-content: flex-end;
  }

  .cart-item-name {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .cart-modal {
    padding: 10px;
  }

  .cart-modal.active {
    align-items: flex-end;
  }

  .cart-modal-content {
    max-width: 100%;
    max-height: calc(100vh - 10px);
    padding: 16px;
    border-radius: 18px 18px 0 0;
  }

  .cart-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .cart-title {
    font-size: 18px;
  }

  .cart-items-container {
    margin-bottom: 14px;
  }

  .cart-item {
    padding: 10px;
  }

  .cart-item-name {
    font-size: 14px;
    line-height: 1.3;
  }

  .cart-item-variant {
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .cart-item-price {
    font-size: 14px;
    line-height: 1.35;
  }

  .cart-item-controls {
    gap: 8px;
  }

  .qty-btn {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .qty-value {
    min-width: 24px;
    font-size: 15px;
  }

  .cart-item-remove {
    width: 34px;
    height: 34px;
  }

  .cart-total {
    margin-bottom: 12px;
  }

  .cart-total-amount {
    font-size: 18px;
  }

  .btn-modal {
    padding: 13px 16px;
    font-size: 14px;
  }

  .cart-toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }

  .detail-body {
    padding: 18px;
  }

  .detail-name {
    font-size: 20px;
  }

  .staff-search-row {
    align-items: stretch;
  }

  .staff-input {
    min-width: 100%;
  }

  .staff-clear {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .search-container {
    gap: 8px;
  }

  .cart-item {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .cart-item-thumb {
    width: 50px;
    height: 50px;
  }

  .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .cart-item-remove {
    width: 32px;
    height: 32px;
  }
}
