/* ==========================================================================
   EQuickCoom COMPONENT STYLES & LAYOUT SYSTEM
   ========================================================================== */

/* --- Container & Grids --- */
.eq-container {
  width: 100%;
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--eq-space-4);
  padding-right: var(--eq-space-4);
}

.eq-grid {
  display: grid;
  gap: var(--eq-space-4);
}

.eq-grid-2 { grid-template-columns: repeat(2, 1fr); }
.eq-grid-3 { grid-template-columns: repeat(3, 1fr); }
.eq-grid-4 { grid-template-columns: repeat(4, 1fr); }
.eq-grid-5 { grid-template-columns: repeat(5, 1fr); }
.eq-grid-6 { grid-template-columns: repeat(6, 1fr); }

.eq-flex { display: flex; }
.eq-flex-col,
.eq-col { display: flex !important; flex-direction: column !important; }
.eq-items-center { align-items: center; }
.eq-items-start { align-items: flex-start; }
.eq-justify-between { justify-content: space-between; }
.eq-justify-center { justify-content: center; }
.eq-justify-end { justify-content: flex-end; }
.eq-gap-1 { gap: var(--eq-space-1); }
.eq-gap-2 { gap: var(--eq-space-2); }
.eq-gap-3 { gap: var(--eq-space-3); }
.eq-gap-4 { gap: var(--eq-space-4); }
.eq-gap-6 { gap: var(--eq-space-6); }
.eq-flex-wrap { flex-wrap: wrap; }
.eq-flex-1 { flex: 1; }

/* --- Buttons --- */
.eq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--eq-space-2);
  font-family: var(--eq-font-family);
  font-weight: 600;
  letter-spacing: var(--eq-letter-spacing-normal);
  font-size: var(--eq-font-body);
  padding: 8px 18px;
  border-radius: var(--eq-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--eq-transition-fast);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.eq-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.eq-btn-primary {
  background-color: var(--eq-primary);
  color: #ffffff;
  border-color: var(--eq-primary);
}
.eq-btn-primary:hover {
  background-color: var(--eq-primary-hover);
  border-color: var(--eq-primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.eq-btn-secondary {
  background-color: var(--eq-secondary);
  color: #ffffff;
  border-color: var(--eq-secondary);
}
.eq-btn-secondary:hover {
  background-color: var(--eq-secondary-hover);
  color: #ffffff;
}

.eq-btn-outline {
  background-color: transparent;
  border-color: var(--eq-border-strong);
  color: var(--eq-text-primary);
}
.eq-btn-outline:hover {
  background-color: var(--eq-bg-subtle);
  border-color: var(--eq-primary);
  color: var(--eq-primary);
}

.eq-btn-ghost {
  background-color: transparent;
  color: var(--eq-text-secondary);
  border-color: transparent;
}
.eq-btn-ghost:hover {
  background-color: var(--eq-bg-subtle);
  color: var(--eq-text-primary);
}

.eq-btn-sm {
  padding: 5px 12px;
  font-size: var(--eq-font-small);
  border-radius: var(--eq-radius-sm);
}

.eq-btn-lg {
  padding: 12px 24px;
  font-size: 1.05rem;
  border-radius: var(--eq-radius-lg);
}

.eq-btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--eq-radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Cards --- */
.eq-card {
  background-color: var(--eq-surface);
  border: 1px solid var(--eq-border);
  border-radius: var(--eq-radius-lg);
  box-shadow: var(--eq-shadow-xs);
  transition: all var(--eq-transition-normal);
  overflow: hidden;
  position: relative;
}

.eq-card-hover:hover {
  border-color: var(--eq-primary-border);
  box-shadow: var(--eq-shadow-md);
  transform: translateY(-2px);
}

.eq-card-header {
  padding: var(--eq-space-4) var(--eq-space-5);
  border-bottom: 1px solid var(--eq-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eq-card-body {
  padding: var(--eq-space-5);
}

.eq-card-footer {
  padding: var(--eq-space-3) var(--eq-space-5);
  border-top: 1px solid var(--eq-border-subtle);
  background-color: var(--eq-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Badges --- */
.eq-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--eq-font-caption);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--eq-radius-full);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eq-badge-success { background: var(--eq-success-light); color: var(--eq-success-text); }
.eq-badge-warning { background: var(--eq-warning-light); color: var(--eq-warning-text); }
.eq-badge-danger  { background: var(--eq-danger-light);  color: var(--eq-danger-text); }
.eq-badge-info    { background: var(--eq-info-light);    color: var(--eq-info-text); }
.eq-badge-primary { background: var(--eq-primary-light); color: var(--eq-primary); }
.eq-badge-neutral { background: var(--eq-bg-subtle);     color: var(--eq-text-secondary); border: 1px solid var(--eq-border); }

/* --- Form Fields --- */
.eq-form-group {
  margin-bottom: var(--eq-space-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eq-label {
  font-size: var(--eq-font-small);
  font-weight: 600;
  color: var(--eq-text-secondary);
}

.eq-input, .eq-select, .eq-textarea {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--eq-border);
  border-radius: var(--eq-radius-md);
  background-color: var(--eq-surface);
  color: var(--eq-text-primary);
  outline: none;
  font-size: var(--eq-font-body);
  transition: border-color var(--eq-transition-fast), box-shadow var(--eq-transition-fast);
}

.eq-input:focus, .eq-select:focus, .eq-textarea:focus {
  border-color: var(--eq-primary);
  box-shadow: 0 0 0 3px var(--eq-primary-light);
}

.eq-input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.eq-input-with-icon .eq-input {
  padding-left: 38px;
}

.eq-input-icon {
  position: absolute;
  left: 12px;
  color: var(--eq-text-muted);
  pointer-events: none;
}

/* --- Search Box --- */
.eq-search-box {
  position: relative;
  width: 100%;
  max-width: 480px;
}

/* --- Tables --- */
.eq-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--eq-border);
  border-radius: var(--eq-radius-lg);
  background-color: var(--eq-surface);
}

.eq-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--eq-font-small);
}

.eq-table th {
  background-color: var(--eq-bg-subtle);
  color: var(--eq-text-secondary);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--eq-border);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: var(--eq-font-caption);
  white-space: nowrap;
}

.eq-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--eq-border-subtle);
  color: var(--eq-text-primary);
}

.eq-table tbody tr:hover {
  background-color: var(--eq-bg-subtle);
}

.eq-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- Dashboard Metric Cards --- */
.eq-metric-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--eq-space-5);
  border-radius: var(--eq-radius-lg);
  background: var(--eq-surface);
  border: 1px solid var(--eq-border);
  box-shadow: var(--eq-shadow-xs);
  transition: all var(--eq-transition-fast);
}

.eq-metric-card:hover {
  box-shadow: var(--eq-shadow-md);
  border-color: var(--eq-primary-border);
}

.eq-metric-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--eq-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* --- App Shells: Topbar & Sidebars --- */
.eq-topbar {
  height: var(--eq-topbar-height);
  background: var(--eq-surface);
  border-bottom: 1px solid var(--eq-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--eq-space-5);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}

.eq-sidebar {
  width: var(--eq-sidebar-width);
  background: var(--eq-surface);
  border-right: 1px solid var(--eq-border);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  transition: transform var(--eq-transition-normal);
}

.eq-sidebar-brand {
  height: var(--eq-topbar-height);
  display: flex;
  align-items: center;
  padding: 0 var(--eq-space-5);
  border-bottom: 1px solid var(--eq-border-subtle);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--eq-text-primary);
  gap: var(--eq-space-2);
}

.eq-sidebar-nav {
  padding: var(--eq-space-3) var(--eq-space-2);
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.eq-nav-item {
  display: flex;
  align-items: center;
  gap: var(--eq-space-3);
  padding: 10px 14px;
  border-radius: var(--eq-radius-md);
  color: var(--eq-text-secondary);
  font-weight: 600;
  font-size: var(--eq-font-small);
  transition: all var(--eq-transition-fast);
  text-decoration: none;
}

.eq-nav-item:hover {
  background: var(--eq-bg-subtle);
  color: var(--eq-primary);
}

.eq-nav-item.active {
  background: var(--eq-primary-light);
  color: var(--eq-primary);
}

.eq-nav-item * {
  pointer-events: none;
}

.eq-main-content {
  margin-left: var(--eq-sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.eq-page-body {
  padding: var(--eq-space-6);
  flex: 1;
}

/* --- Floating Demo Role Switcher --- */
.eq-demo-switcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: var(--eq-surface-elevated);
  border: 1px solid var(--eq-primary);
  border-radius: var(--eq-radius-full);
  box-shadow: var(--eq-shadow-xl), var(--eq-shadow-glow);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--eq-font-small);
}

/* --- Stepper Component --- */
.eq-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: var(--eq-space-6) 0;
}

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

.eq-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--eq-surface);
  border: 2px solid var(--eq-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--eq-font-small);
  color: var(--eq-text-secondary);
  transition: all var(--eq-transition-fast);
}

.eq-step-item.active .eq-step-circle {
  background: var(--eq-primary);
  border-color: var(--eq-primary);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.4);
}

.eq-step-item.completed .eq-step-circle {
  background: var(--eq-primary);
  border-color: var(--eq-primary);
  color: #ffffff;
}

.eq-step-label {
  font-size: var(--eq-font-caption);
  font-weight: 600;
  margin-top: 6px;
  color: var(--eq-text-secondary);
  text-align: center;
}

.eq-step-line {
  position: absolute;
  top: 19px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--eq-border);
  z-index: 1;
}

/* --- Order Timeline --- */
.eq-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 28px;
}

.eq-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--eq-border);
}

.eq-timeline-step {
  position: relative;
  margin-bottom: var(--eq-space-4);
}

.eq-timeline-dot {
  position: absolute;
  left: -28px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--eq-surface);
  border: 2px solid var(--eq-border-strong);
}

.eq-timeline-step.completed .eq-timeline-dot {
  background: var(--eq-primary);
  border-color: var(--eq-primary);
}

.eq-timeline-step.current .eq-timeline-dot {
  background: var(--eq-primary);
  border-color: var(--eq-primary);
  box-shadow: 0 0 0 4px var(--eq-primary-light);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* --- Warehouse Visual Rack & Bin --- */
.eq-rack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.eq-bin-box {
  border: 1px solid var(--eq-border);
  border-radius: var(--eq-radius-md);
  padding: 10px;
  background: var(--eq-surface);
  cursor: pointer;
  transition: all var(--eq-transition-fast);
}

.eq-bin-box:hover {
  border-color: var(--eq-primary);
  background: var(--eq-primary-light);
  transform: scale(1.02);
}

.eq-bin-box.occupied {
  border-left: 4px solid var(--eq-primary);
}

.eq-bin-box.low-stock {
  border-left: 4px solid var(--eq-warning);
}

/* --- Mock Map Container --- */
.eq-map-canvas {
  background: radial-gradient(circle at 50% 50%, var(--eq-bg-subtle) 0%, var(--eq-surface) 100%);
  border: 1px solid var(--eq-border);
  border-radius: var(--eq-radius-lg);
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.eq-map-grid-pattern {
  background-size: 30px 30px;
  background-image: 
    linear-gradient(to right, var(--eq-border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--eq-border-subtle) 1px, transparent 1px);
  position: absolute;
  inset: 0;
  opacity: 0.6;
}

.eq-map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: transform var(--eq-transition-fast);
}

.eq-map-marker:hover {
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 20;
}

.eq-map-pin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  border: 2px solid #ffffff;
}

/* --- Mobile / App-First Shell for Riders --- */
.eq-rider-phone-frame {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--eq-bg);
  box-shadow: var(--eq-shadow-xl);
  border-left: 1px solid var(--eq-border);
  border-right: 1px solid var(--eq-border);
  position: relative;
  display: flex;
  flex-direction: column;
}

.eq-rider-bottomnav {
  position: sticky;
  bottom: 0;
  background: var(--eq-surface);
  border-top: 1px solid var(--eq-border);
  height: var(--eq-bottomnav-height);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
}

.eq-rider-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--eq-text-muted);
  gap: 3px;
  text-decoration: none;
}

.eq-rider-nav-item.active {
  color: var(--eq-primary);
}

/* --- Modals & Drawers: Modern Professional Architecture --- */
.eq-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vh, 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: eqModalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.eq-modal-dialog {
  background: var(--eq-surface);
  border: 1px solid var(--eq-border);
  border-radius: 20px;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 580px;
  max-height: min(90vh, 880px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: auto;
  position: relative;
  animation: eqModalScaleUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal Sizes */
.eq-modal-dialog.modal-sm { max-width: 440px; }
.eq-modal-dialog.modal-md { max-width: 580px; }
.eq-modal-dialog.modal-lg { max-width: 740px; }
.eq-modal-dialog.modal-xl { max-width: 900px; }
.eq-modal-dialog.modal-2xl { max-width: 1060px; }
.eq-modal-dialog.modal-full { max-width: 96vw; max-height: 96vh; border-radius: 14px; }

/* Sticky Header */
.eq-modal-header,
.eq-modal-dialog > .eq-card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--eq-border-subtle);
  background: var(--eq-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.eq-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.eq-modal-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--eq-bg-subtle, #f3f4f6);
  border: 1px solid var(--eq-border-subtle, #e5e7eb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.eq-modal-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--eq-text-primary);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.eq-modal-subtitle {
  margin: 2px 0 0 0;
  font-size: 0.74rem;
  color: var(--eq-text-muted);
  line-height: 1.35;
}

.eq-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--eq-border-subtle);
  background: var(--eq-bg-subtle, transparent);
  color: var(--eq-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
  flex-shrink: 0;
  padding: 0;
}

.eq-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  transform: rotate(90deg);
}

/* Scrollable Body with Sleek Custom Scrollbar */
.eq-modal-body,
.eq-modal-dialog > .eq-card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
  -webkit-overflow-scrolling: touch;
}

/* Modern Minimalist Scrollbar for Modal Body */
.eq-modal-body::-webkit-scrollbar,
.eq-modal-dialog > .eq-card-body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.eq-modal-body::-webkit-scrollbar-track,
.eq-modal-dialog > .eq-card-body::-webkit-scrollbar-track {
  background: transparent;
}

.eq-modal-body::-webkit-scrollbar-thumb,
.eq-modal-dialog > .eq-card-body::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.28);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.eq-modal-body::-webkit-scrollbar-thumb:hover,
.eq-modal-dialog > .eq-card-body::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.48);
}

/* Sticky Footer */
.eq-modal-footer,
.eq-modal-dialog > .eq-card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--eq-border-subtle);
  background: var(--eq-surface);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 20;
}

/* Modal Animations */
@keyframes eqModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes eqModalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Mobile Responsiveness: Full Screen / Bottom Sheet feel */
@media (max-width: 640px) {
  .eq-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .eq-modal-dialog {
    max-width: 100% !important;
    max-height: 94vh !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    animation: eqModalSlideUpMobile 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes eqModalSlideUpMobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}

.eq-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1050;
}

.eq-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--eq-surface);
  border-left: 1px solid var(--eq-border);
  box-shadow: var(--eq-shadow-xl);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  animation: slideRight 0.25s ease-out;
}

/* --- Toasts --- */
.eq-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.eq-toast {
  background: var(--eq-surface-elevated);
  border: 1px solid var(--eq-border);
  border-radius: var(--eq-radius-md);
  padding: 12px 16px;
  box-shadow: var(--eq-shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideLeft 0.25s ease-out;
}

.eq-toast.success { border-left: 4px solid var(--eq-success); }
.eq-toast.danger  { border-left: 4px solid var(--eq-danger); }
.eq-toast.warning { border-left: 4px solid var(--eq-warning); }
.eq-toast.info    { border-left: 4px solid var(--eq-info); }

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideLeft {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.eq-animated-route {
  animation: dash 30s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

/* --- Responsive Media Queries --- */
.eq-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 45;
  backdrop-filter: blur(2px);
}

@media (max-width: 1024px) {
  .eq-main-content { margin-left: 0; }
  .eq-sidebar { transform: translateX(-100%); z-index: 50; }
  .eq-sidebar.open { transform: translateX(0); box-shadow: var(--eq-shadow-xl); }
  .eq-sidebar-toggle { display: inline-flex !important; }
  .eq-sidebar-close { display: inline-flex !important; }
  .eq-grid-4, .eq-grid-5, .eq-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .eq-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .eq-page-body { padding: var(--eq-space-4); }
  .eq-grid-2, .eq-grid-3, .eq-grid-4 { grid-template-columns: 1fr; }
  .eq-topbar { padding: 0 var(--eq-space-3); }
  .eq-demo-switcher { bottom: 12px; right: 12px; padding: 4px 10px; font-size: 0.75rem; }
}

/* ==========================================================================
   MOBILE QUICK COMMERCE APP SYSTEM (BLINKIT / ZEPTO / INSTAMART STYLE)
   ========================================================================== */

.eq-mobile-app-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--eq-bg-subtle);
  transition: all var(--eq-transition-normal);
}

.eq-mobile-app-container.framed {
  padding: 24px 16px;
}

.eq-mobile-app-viewport {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background: var(--eq-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  box-shadow: var(--eq-shadow-xl);
}

.eq-mobile-app-container.framed .eq-mobile-app-viewport {
  border-radius: 36px;
  border: 8px solid #1e293b;
  min-height: 860px;
  height: 860px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
}

/* Notch / Island in Framed Mode */
.eq-mobile-notch {
  width: 120px;
  height: 20px;
  background: #1e293b;
  margin: 0 auto;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Mobile App Header */
.eq-mobile-header {
  padding: 12px 16px 10px 16px;
  background: var(--eq-surface);
  border-bottom: 1px solid var(--eq-border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.eq-mobile-search-pill {
  background: var(--eq-bg-subtle);
  border: 1px solid var(--eq-border);
  border-radius: var(--eq-radius-full);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--eq-text-muted);
  cursor: pointer;
}

/* Mobile Split Category Browser */
.eq-mobile-split-pane {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.eq-mobile-category-rail {
  width: 90px;
  background: var(--eq-bg-subtle);
  border-right: 1px solid var(--eq-border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.eq-mobile-rail-item {
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--eq-text-secondary);
  border-bottom: 1px solid var(--eq-border-subtle);
  cursor: pointer;
  transition: all var(--eq-transition-fast);
  text-decoration: none;
}

.eq-mobile-rail-item.active {
  background: var(--eq-surface);
  color: var(--eq-primary);
  border-left: 3px solid var(--eq-primary);
}

.eq-mobile-rail-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.eq-mobile-products-pane {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

/* Mobile Compact Product Card */
.eq-mobile-product-card {
  background: var(--eq-surface);
  border: 1px solid var(--eq-border);
  border-radius: var(--eq-radius-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--eq-transition-fast);
}

.eq-mobile-product-card:active {
  transform: scale(0.98);
}

/* Mobile Floating Cart Bar defined in mobile frame section */

/* Mobile Bottom Navigation */
.eq-mobile-bottomnav {
  position: sticky;
  bottom: 0;
  background: var(--eq-surface);
  border-top: 1px solid var(--eq-border);
  height: var(--eq-bottomnav-height);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 70;
}

.eq-mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--eq-text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  gap: 2px;
  position: relative;
  padding: 4px 10px;
}

.eq-mobile-nav-btn.active {
  color: var(--eq-primary);
}

.eq-mobile-badge-pill {
  position: absolute;
  top: 0px;
  right: 12px;
  background: var(--eq-primary);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--eq-radius-full);
}

/* Touch Bottom Sheet */
.eq-bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.eq-bottom-sheet {
  background: var(--eq-surface);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--eq-shadow-xl);
  animation: slideUpSheet 0.25s ease-out;
  padding-bottom: 24px;
}

.eq-bottom-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--eq-border-strong);
  margin: 10px auto;
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ==========================================================================
   CUSTOMER MOBILE APP STYLES (Quick Commerce / Blinkit / Zepto style)
   ========================================================================== */

.eq-mobile-outer {
  min-height: 100vh;
  background: var(--eq-bg-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  transition: padding 0.3s ease;
}

.eq-mobile-outer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--eq-bg-subtle);
  padding: 0;
  transition: background var(--eq-transition-normal);
}

.eq-mobile-outer.framed {
  padding: 12px 12px 16px 12px;
  background: radial-gradient(circle at top, #1e293b 0%, #0b0f19 100%);
  min-height: 100vh;
  box-sizing: border-box;
}

.eq-mobile-device-frame {
  width: 100%;
  max-width: 420px;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  background: var(--eq-bg);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--eq-shadow-md);
  overflow: hidden !important;
  box-sizing: border-box;
}

.eq-mobile-outer.framed .eq-mobile-device-frame {
  height: min(850px, calc(100vh - 56px));
  min-height: min(720px, calc(100vh - 56px));
  max-height: calc(100vh - 56px);
  border-radius: 42px;
  border: 10px solid #1e2430;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: var(--eq-bg);
}

/* On actual mobile screens (<= 768px), always collapse frame and fill entire screen */
@media (max-width: 768px) {
  .eq-mobile-outer,
  .eq-mobile-outer.framed {
    padding: 0 !important;
    background: var(--eq-bg) !important;
    min-height: 100dvh !important;
    height: 100dvh !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .eq-mobile-device-frame,
  .eq-mobile-outer.framed .eq-mobile-device-frame {
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .eq-mobile-notch {
    display: none !important;
  }

  .eq-mobile-preview-bar {
    display: none !important;
  }
}

/* Custom Sleek Scrollbar for Mobile Device Viewport */
.eq-mobile-device-frame main {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  overflow-x: hidden !important;
}

.eq-mobile-device-frame main::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Simulated Dynamic Island for framed mode */
.eq-mobile-notch {
  display: none;
}

.eq-mobile-outer.framed .eq-mobile-notch {
  display: flex !important;
  width: 100% !important;
  height: 38px;
  background: var(--eq-surface);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--eq-text-primary);
  border-bottom: 1px solid var(--eq-border-subtle);
  user-select: none;
  box-sizing: border-box;
  flex-shrink: 0;
}

.eq-mobile-notch-pill {
  width: 96px;
  height: 22px;
  background: #000000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.eq-notch-lens {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18181b;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.3);
}

.eq-notch-sensor {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #064e3b;
}

.eq-notch-time {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
}

.eq-notch-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
}

/* Top Sticky Header */
.eq-mobile-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--eq-surface);
  border-bottom: 1px solid var(--eq-border-subtle);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.eq-mobile-location-btn {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eq-mobile-search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--eq-bg-subtle);
  border: 1px solid var(--eq-border-subtle);
  border-radius: var(--eq-radius-full);
  padding: 8px 14px;
  font-size: 0.84rem;
  color: var(--eq-text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--eq-transition-fast);
}

.eq-mobile-search-trigger:hover {
  border-color: var(--eq-primary);
  color: var(--eq-text-secondary);
}

/* ==========================================================================
   EQuickCoom Store Area Department Selector & Header Navigation (Native UI)
   ========================================================================== */
.eq-store-header {
  background: var(--eq-surface);
  border-bottom: 1px solid var(--eq-border-subtle);
  padding: 6px 14px 4px 14px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 5px;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

/* Mobile Store Header - Scrollable Top (Quick/Freight Switch & Location Strip) */
.eq-store-scrollable-top {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 14px 4px 14px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Mobile Store Header - Sticky Bar (Search Bar & Department Rail ONLY) */
.eq-store-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 14px 4px 14px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Row 1: Location & Fast ETA Strip */
.eq-store-location-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.eq-store-eta-badge {
  background: linear-gradient(135deg, #0c831f 0%, #065f46 100%);
  color: #ffffff;
  border-radius: var(--eq-radius-md);
  padding: 4px 8px;
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(12, 131, 31, 0.3);
}

.eq-store-address-box {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-left: 8px;
  overflow: hidden;
}

.eq-store-address-title {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--eq-text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.eq-store-address-sub {
  font-size: 0.68rem;
  color: var(--eq-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Row 2: Blinkit Clean Search Bar & Vertical Ticker */
.blinkit-search-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  height: 38px;
  padding: 0 12px;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.blinkit-search-bar:hover {
  border-color: #0c831f;
  box-shadow: 0 2px 8px rgba(12, 131, 31, 0.12);
}

.blinkit-search-icon {
  flex-shrink: 0;
  color: #64748b;
}

.blinkit-ticker-container {
  flex: 1;
  height: 20px;
  overflow: hidden;
  position: relative;
}

.blinkit-ticker-track {
  display: flex;
  flex-direction: column;
  animation: blinkitVerticalTicker 10s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.blinkit-ticker-item {
  height: 20px;
  line-height: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blinkit-ticker-item strong {
  color: #1e293b;
  font-weight: 700;
}

.blinkit-search-mic {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes blinkitVerticalTicker {
  0%, 20% {
    transform: translateY(0);
  }
  25%, 45% {
    transform: translateY(-20px);
  }
  50%, 70% {
    transform: translateY(-40px);
  }
  75%, 95% {
    transform: translateY(-60px);
  }
  100% {
    transform: translateY(-80px);
  }
}

.eq-store-search-bar {
  display: flex;
  align-items: center;
  background: var(--eq-bg-subtle);
  border: 1px solid var(--eq-border-subtle);
  border-radius: var(--eq-radius-full);
  padding: 8px 14px;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--eq-transition-fast);
}

.eq-store-search-placeholder {
  flex: 1;
  font-size: 0.84rem;
  color: var(--eq-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eq-store-search-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--eq-primary);
  font-size: 0.95rem;
}

/* Blinkit Style Department & Category Story Rail */
.blinkit-dept-rail {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 4px 2px;
  margin: 0 -14px;
  padding-left: 14px;
  padding-right: 14px;
}

.blinkit-dept-rail::-webkit-scrollbar {
  display: none;
}

.blinkit-dept-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48px;
  flex-shrink: 0;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}

.blinkit-dept-tile:hover {
  transform: translateY(-2px);
}

.blinkit-dept-icon-card {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1.5px solid transparent;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blinkit-dept-emoji {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.blinkit-dept-title {
  font-size: 0.62rem;
  font-weight: 700;
  color: #475569;
  text-align: center;
  margin-top: 3px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48px;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.blinkit-dept-indicator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: transparent;
  margin-top: 2px;
  transition: all 0.2s ease;
}

/* Active State */
.blinkit-dept-tile.active .blinkit-dept-icon-card {
  transform: scale(1.05);
  border-color: var(--eq-primary);
  box-shadow: 0 2px 8px rgba(12, 131, 31, 0.25);
}

.blinkit-dept-tile.active .blinkit-dept-title {
  color: var(--eq-primary);
  font-weight: 900;
}

.blinkit-dept-tile.active .blinkit-dept-indicator {
  background: var(--eq-primary);
  transform: scale(1.4);
}

/* Freight Theme Sensitivity */
.eq-mobile-container[data-service="Freight"] .blinkit-dept-tile.active .blinkit-dept-icon-card {
  border-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.28);
}

.eq-mobile-container[data-service="Freight"] .blinkit-dept-tile.active .blinkit-dept-eta-tag {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.eq-mobile-container[data-service="Freight"] .blinkit-dept-tile.active .blinkit-dept-title {
  color: #1d4ed8;
}

.eq-mobile-container[data-service="Freight"] .blinkit-dept-tile.active .blinkit-dept-indicator {
  background: #1d4ed8;
}

/* Row 3: STORE AREA / DEPARTMENT SELECTOR (The marked store area) */
.eq-store-area-rail {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: 6px;
  padding: 4px 2px 6px 2px;
  margin: 0 -14px;
  padding-left: 14px;
  padding-right: 14px;
}
.eq-store-area-rail::-webkit-scrollbar {
  display: none;
}

.eq-store-area-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--eq-radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid var(--eq-border-subtle);
  background: var(--eq-surface);
  color: var(--eq-text-primary);
  transition: all var(--eq-transition-fast);
  flex-shrink: 0;
}

.eq-store-area-pill:hover {
  border-color: var(--eq-primary);
  transform: translateY(-1px);
}

.eq-store-area-pill.active {
  background: var(--eq-primary);
  color: #ffffff;
  border-color: var(--eq-primary);
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.3);
}

.eq-store-area-pill.active .pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.eq-store-area-pill .pill-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--eq-radius-full);
  background: var(--eq-bg-subtle);
  color: var(--eq-text-muted);
}

/* Bottom Navigation Bar */
.eq-mobile-bottomnav {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--eq-surface);
  border-top: 1px solid var(--eq-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 4px calc(env(safe-area-inset-bottom, 6px) + 4px) 4px;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.05);
}

.eq-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--eq-text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--eq-radius-md);
  position: relative;
  transition: all var(--eq-transition-fast);
  min-width: 58px;
}

.eq-mobile-nav-item.active {
  color: #0c831f;
  font-weight: 800;
}

.eq-mobile-nav-item .nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

/* Floating Cart Bar (Blinkit Style Pill above Bottom Nav) */
.eq-mobile-floating-cart-bar {
  position: absolute;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 250px;
  max-width: calc(100% - 24px);
  z-index: 990;
  color: #ffffff;
  border-radius: 9999px;
  height: 52px;
  padding: 5px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  transition: bottom 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2), transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.eq-mobile-floating-cart-bar:active {
  transform: translateX(-50%) scale(0.97);
}

/* When dock hides on downscroll, cart bar smoothly slides down to bottom: 18px and ALWAYS STICKS */
.eq-mobile-floating-cart-bar.dock-at-bottom {
  bottom: 18px;
}

/* ==========================================================================
   Blinkit Style Floating Footer Dock + Promoted Brand Action (Upscroll Sticky)
   ========================================================================== */
.eq-mobile-dock-wrapper {
  position: absolute;
  bottom: 14px;
  left: 8px;
  right: 8px;
  z-index: 950;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.eq-mobile-dock-group {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 395px;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.25s ease;
  user-select: none;
}

.eq-mobile-dock-group.dock-hidden,
.eq-mobile-floating-dock.dock-hidden {
  transform: translateY(85px);
  opacity: 0;
  pointer-events: none;
}

.eq-mobile-dock-group.dock-visible,
.eq-mobile-floating-dock.dock-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.eq-mobile-floating-dock {
  pointer-events: auto;
  flex: 1;
  min-width: 0;
  height: 56px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 6px;
  box-sizing: border-box;
}

/* Standalone Promoted Brand Action Button (e.g. Apple Brand Logo) */
.eq-mobile-brand-dock-btn {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  color: #000000;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.eq-mobile-brand-dock-btn:active {
  transform: scale(0.92);
}

.eq-mobile-brand-dock-btn:hover {
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18), 0 3px 8px rgba(0, 0, 0, 0.06);
}

.eq-mobile-brand-dock-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.14), 0 12px 30px rgba(0, 0, 0, 0.22);
}

.eq-mobile-brand-dock-btn .brand-dock-logo {
  transition: transform 0.2s ease;
}

.eq-mobile-brand-dock-btn:hover .brand-dock-logo {
  transform: scale(1.06);
}

.eq-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #475569;
  padding: 6px 10px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  gap: 1px;
}

.eq-dock-item:active {
  transform: scale(0.95);
}

.eq-dock-item.active {
  background: #f1f5f9;
  color: #0f172a;
}

.eq-dock-item.active .icon-home {
  color: #e11d48;
}

.eq-dock-label {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.eq-dock-item.active .eq-dock-label {
  font-weight: 800;
}

.eq-mobile-device-frame {
  position: relative;
}

@keyframes popIn {
  from { transform: translate(-50%, 20px) scale(0.95); opacity: 0; }
  to { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

/* Mobile Product Card */
.eq-mobile-product-card {
  background: var(--eq-surface);
  border: 1px solid var(--eq-border-subtle);
  border-radius: var(--eq-radius-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform var(--eq-transition-fast), box-shadow var(--eq-transition-fast);
}

.eq-mobile-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--eq-shadow-md);
}

/* Mobile Split-Pane Category Layout */
.eq-mobile-split-pane {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 120px);
  overflow: hidden;
}

.eq-mobile-split-rail {
  width: 84px;
  background: var(--eq-bg-subtle);
  border-right: 1px solid var(--eq-border-subtle);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.eq-mobile-split-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 6px;
  gap: 6px;
  cursor: pointer;
  border-left: 3px solid transparent;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--eq-text-secondary);
  transition: all var(--eq-transition-fast);
}

.eq-mobile-split-rail-item.active {
  background: var(--eq-surface);
  border-left-color: var(--eq-primary);
  color: var(--eq-primary);
  font-weight: 800;
}

.eq-mobile-split-rail-item .rail-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--eq-radius-full);
  background: var(--eq-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.eq-mobile-split-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: var(--eq-bg-page);
}

/* Mobile Scroll Row (Horizontal) */
.eq-mobile-scroll-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.eq-mobile-scroll-row::-webkit-scrollbar {
  display: none;
}

/* Mobile Category Circle */
.eq-mobile-category-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 68px;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
}

.eq-mobile-category-bubble-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--eq-radius-full);
  background: var(--eq-surface);
  border: 1px solid var(--eq-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.eq-mobile-category-bubble-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--eq-text-primary);
  text-align: center;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Dual-Pane Filter Bottom Sheet Modal (Blinkit Style) --- */
.eq-filter-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  backdrop-filter: blur(2px);
  animation: eqFadeIn 0.2s ease-out;
}

.eq-filter-floating-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1f2937;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}
.eq-filter-floating-close:hover {
  transform: scale(1.08);
}

.eq-filter-sheet-container {
  width: 100%;
  max-width: 500px;
  height: 82vh;
  max-height: 640px;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.25);
  animation: eqSlideUpSheet 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

@keyframes eqSlideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes eqFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.eq-filter-header {
  padding: 16px 18px 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.eq-filter-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.3px;
}
.eq-filter-applied-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.eq-filter-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #374151;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.eq-filter-chip.active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #0284c7;
}
.eq-filter-chip-remove {
  cursor: pointer;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.eq-filter-chip.active .eq-filter-chip-remove {
  color: #0284c7;
}

.eq-filter-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.eq-filter-tabs-rail {
  width: 125px;
  background: #ffffff;
  border-right: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
}
.eq-filter-tab-btn {
  padding: 13px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}
.eq-filter-tab-btn.active {
  color: #0284c7;
  font-weight: 800;
  background: #f0f9ff;
}
.eq-filter-tab-strip {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3.5px;
  background: #0284c7;
}

.eq-filter-options-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  overflow-y: auto;
  min-height: 0;
}
.eq-filter-search-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.8rem;
}
.eq-filter-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.8rem;
  color: #1f2937;
  width: 100%;
}
.eq-filter-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.84rem;
  color: #1f2937;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.1s ease;
}
.eq-filter-option-item:hover {
  color: #0284c7;
}
.eq-filter-option-count {
  color: #64748b;
  font-weight: 500;
  margin-left: 4px;
}
.eq-filter-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.eq-filter-checkbox.checked {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.eq-filter-footer {
  padding: 12px 18px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  flex-shrink: 0;
}
.eq-filter-btn-clear {
  flex: 1;
  height: 44px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #0284c7;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.eq-filter-btn-clear:hover {
  background: #eff6ff;
}
.eq-filter-btn-apply {
  flex: 1.8;
  height: 44px;
  border: none;
  background: #0078ad;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 120, 173, 0.35);
  transition: all 0.15s ease;
}
.eq-filter-btn-apply:hover {
  background: #026b9a;
}

/* ==========================================================================
   Desktop Promoted Brand Store Action (Apple Official Store Promotion)
   ========================================================================== */
.eq-desktop-brand-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #000000;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.76rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  user-select: none;
}

.eq-desktop-brand-promo-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  color: #ffffff !important;
}

.eq-desktop-brand-promo-btn.active {
  background: #0284c7;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.35), 0 4px 12px rgba(2, 132, 199, 0.4);
}

.eq-brand-promo-logo {
  fill: currentColor;
  transition: transform 0.2s ease;
}

.eq-desktop-brand-promo-btn:hover .eq-brand-promo-logo {
  transform: scale(1.1);
}

.eq-brand-promo-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* Desktop Floating Promoted Brand Dock (Bottom-Right Floating Widget) */
.eq-desktop-floating-brand-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
}

.eq-desktop-floating-brand-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: #0f172a;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  cursor: pointer;
}

.eq-desktop-floating-brand-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  border-color: rgba(0, 0, 0, 0.15);
}

.eq-desktop-floating-brand-card.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15), 0 14px 36px rgba(0, 0, 0, 0.3);
}

.eq-desktop-floating-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.eq-desktop-floating-brand-card.active .eq-desktop-floating-brand-icon {
  background: #ffffff;
  color: #000000;
}

.eq-desktop-floating-brand-text {
  display: flex;
  flex-direction: column;
}

.eq-desktop-floating-brand-title {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.eq-desktop-floating-brand-sub {
  font-size: 0.65rem;
  color: #0284c7;
  font-weight: 700;
}

.eq-desktop-floating-brand-card.active .eq-desktop-floating-brand-sub {
  color: #38bdf8;
}

@media (max-width: 1024px) {
  .eq-desktop-floating-brand-dock {
    display: none;
  }
}

/* =========================================================================
   MULTI-BRAND ROTATING DOCK ANIMATIONS (Mobile & Desktop)
   ========================================================================= */

.eq-mobile-brand-dock-btn,
.eq-desktop-brand-promo-btn,
.eq-desktop-floating-brand-card,
.admin-preview-brand-btn,
.admin-preview-brand-pill {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 0.35s ease, 
              background-color 0.35s ease, 
              color 0.35s ease, 
              box-shadow 0.35s ease;
  will-change: transform, opacity;
}

/* 1. 3D Axis Flip Transition */
.brand-anim-flip3d {
  transform: perspective(600px) rotateY(180deg) scale(0.9) !important;
  opacity: 0.2 !important;
}

.eq-desktop-brand-promo-btn.brand-anim-flip3d,
.admin-preview-brand-pill.brand-anim-flip3d {
  transform: perspective(600px) rotateX(90deg) scale(0.92) !important;
  opacity: 0.1 !important;
}

/* 2. Vertical Slide & Fade Transition */
.brand-anim-slideFade {
  transform: translateY(-18px) scale(0.92) !important;
  opacity: 0.15 !important;
}

/* 3. Pop & Morph Scale Transition */
.brand-anim-popScale {
  transform: scale(0.75) !important;
  opacity: 0.2 !important;
  filter: blur(1.5px);
}

/* 4. Horizontal Swipe & Glide Transition */
.brand-anim-horizontalSlide {
  transform: translateX(-24px) scale(0.9) !important;
  opacity: 0.15 !important;
}

/* 5. 360° Vortex Spin & Zoom Transition */
.brand-anim-spinRotate {
  transform: rotate(360deg) scale(0.6) !important;
  opacity: 0.15 !important;
}

/* 6. 3D Isometric Cube Tumble Transition */
.brand-anim-cubeRotate {
  transform: perspective(600px) rotate3d(1, 1, 0, 90deg) scale(0.85) !important;
  opacity: 0.15 !important;
}

/* 7. Neon Radiant Pulse Transition */
.brand-anim-glowPulse {
  transform: scale(1.18) !important;
  opacity: 0.35 !important;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.9), 0 0 50px rgba(129, 140, 248, 0.7) !important;
}

/* 8. Cinematic Lens Blur & Dissolve Transition */
.brand-anim-blurFade {
  transform: scale(0.94) !important;
  opacity: 0.1 !important;
  filter: blur(8px) contrast(1.2) !important;
}

/* 9. Elastic Jelly Squash & Stretch Transition */
.brand-anim-elasticBounce {
  transform: scale(1.28, 0.72) !important;
  opacity: 0.3 !important;
}

/* --- Freight Mobile Mode: Amazon-Style Subcategory Pill Rail & Product Rows --- */
.eq-freight-filter-strip {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.eq-freight-filter-strip::-webkit-scrollbar {
  display: none;
}
.eq-freight-product-row {
  transition: background-color 0.15s ease;
}
.eq-freight-product-row:active {
  background-color: #f8fafc !important;
}
.eq-filter-pill {
  user-select: none;
  transition: all 0.15s ease;
}
.eq-filter-pill:active {
  transform: scale(0.96);
}

/* --- Modern SaaS Toggle Switch --- */
.eq-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.eq-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.eq-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}
.eq-switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.eq-switch input:checked + .eq-switch-slider {
  background-color: var(--eq-primary, #059669);
}
.eq-switch input:checked + .eq-switch-slider:before {
  transform: translateX(18px);
}
.eq-switch input:focus + .eq-switch-slider {
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

/* Responsive Visibility & Dynamic Section Ordering */
.eq-homepage-sections-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.eq-homepage-section-block {
  order: var(--desk-order, 1);
}

@media (max-width: 768px) {
  .eq-homepage-section-block {
    order: var(--mob-order, 1);
  }
  .eq-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .eq-hide-desktop {
    display: none !important;
  }
}

/* Curated Product Shelf Horizontal Carousel */
.eq-shelf-carousel-wrapper {
  position: relative;
  width: 100%;
}
.eq-shelf-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 12px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE/Edge */
}
.eq-shelf-carousel-track::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari, Opera */
  width: 0 !important;
  height: 0 !important;
}
.eq-shelf-carousel-item {
  flex: 0 0 calc((100% - (var(--shelf-desktop-cols, 4) - 1) * 16px) / var(--shelf-desktop-cols, 4));
  min-width: 210px;
  max-width: 320px;
  scroll-snap-align: start;
}
@media (max-width: 768px) {
  .eq-shelf-carousel-item {
    flex: 0 0 calc((100% - (var(--shelf-mobile-cols, 2) - 1) * 12px) / var(--shelf-mobile-cols, 2));
    min-width: 145px;
    max-width: none;
  }
}

.eq-shelf-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
  outline: none;
}
.eq-shelf-carousel-btn:hover {
  background: var(--eq-primary, #2563eb);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  transform: translateY(-50%) scale(1.1);
}
.eq-shelf-carousel-btn.prev {
  left: -16px;
}
.eq-shelf-carousel-btn.next {
  right: -16px;
}
@media (max-width: 768px) {
  .eq-shelf-carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  }
  .eq-shelf-carousel-btn.prev {
    left: 4px;
  }
  .eq-shelf-carousel-btn.next {
    right: 4px;
  }
}

/* Responsive Product Display Limit & Grid Columns */
@media (max-width: 768px) {
  .eq-shelf-item-hide-mobile {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .eq-shelf-item-hide-desktop {
    display: none !important;
  }
}

.eq-shelf-grid-responsive {
  display: grid;
  grid-template-columns: repeat(var(--shelf-grid-desktop-cols, 4), 1fr);
}
@media (max-width: 768px) {
  .eq-shelf-grid-responsive {
    grid-template-columns: repeat(var(--shelf-grid-mobile-cols, 2), 1fr) !important;
  }
}

/* Curated Shelf Pill Dots Pagination (Matching Snapshot) */
.eq-shelf-dots-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 4px;
}
.eq-shelf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}
.eq-shelf-dot:hover {
  background: #94a3b8;
}
.eq-shelf-dot.active {
  width: 26px;
  height: 8px;
  border-radius: 999px;
  background: var(--eq-primary, #2563eb);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* Blinkit & JioMart End-of-Carousel 'View All' Card */
.eq-shelf-viewall-card {
  flex: 0 0 140px;
  min-width: 140px;
  max-width: 160px;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--eq-text-primary, #0f172a) !important;
  text-decoration: none;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid var(--eq-border-subtle, #e2e8f0);
  box-sizing: border-box;
}
.eq-shelf-viewall-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--eq-primary, #2563eb);
  color: var(--eq-text-primary, #0f172a) !important;
}
.eq-shelf-viewall-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 6px;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.eq-shelf-viewall-card:hover .eq-shelf-viewall-arrow {
  transform: translateX(3px);
  background: var(--eq-primary, #2563eb);
  color: #ffffff;
  border-color: var(--eq-primary, #2563eb);
}
.eq-shelf-viewall-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.eq-shelf-viewall-count {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eq-shelf-viewall-badge {
  font-size: 8.5px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 5px;
  font-weight: 800;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .eq-shelf-viewall-card {
    flex: 0 0 135px;
    min-width: 135px;
    padding: 10px 8px;
  }
}

/* JioMart Style Desktop Action Strip */
.eq-shelf-desktop-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 20px;
  margin-top: 16px;
}
.eq-shelf-desktop-strip-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #475569;
}
.eq-shelf-desktop-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 800;
  color: #0f172a;
  font-size: 12px;
}
.eq-shelf-desktop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--eq-primary, #2563eb);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}
.eq-shelf-desktop-btn:hover {
  background: #1d4ed8;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Blinkit Style Mobile Action CTA */
.eq-shelf-mobile-cta {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #0c831f;
  color: #ffffff !important;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  margin-top: 14px;
  box-shadow: 0 4px 14px rgba(12, 131, 31, 0.25);
  transition: all 0.2s ease;
}
.eq-shelf-mobile-cta:hover {
  background: #096818;
  color: #ffffff !important;
}
.eq-shelf-mobile-badge {
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
}
@media (max-width: 768px) {
  .eq-shelf-desktop-strip {
    display: none !important;
  }
  .eq-shelf-mobile-cta {
    display: flex !important;
  }
}

/* ==========================================================================
   OCCASION & FESTIVE THEME ENGINE (Blinkit, Zepto, JioMart Style)
   ========================================================================== */

/* Festive Occasion Root Attributes */
[data-occasion="diwali"] {
  --eq-occasion-header-bg: linear-gradient(90deg, #2d114d 0%, #1e0938 50%, #4a044e 100%);
  --eq-occasion-primary: #f59e0b;
  --eq-occasion-primary-hover: #d97706;
  --eq-occasion-accent-bg: #fef3c7;
  --eq-occasion-accent-text: #92400e;
  --eq-occasion-badge-bg: #ea580c;
  --eq-occasion-badge-text: #ffffff;
  --eq-occasion-glow: 0 0 15px rgba(245, 158, 11, 0.4);
}

[data-occasion="holi"] {
  --eq-occasion-header-bg: linear-gradient(90deg, #701a75 0%, #4a044e 50%, #1e1b4b 100%);
  --eq-occasion-primary: #ec4899;
  --eq-occasion-primary-hover: #db2777;
  --eq-occasion-accent-bg: #fce7f3;
  --eq-occasion-accent-text: #9d174d;
  --eq-occasion-badge-bg: #d946ef;
  --eq-occasion-badge-text: #ffffff;
  --eq-occasion-glow: 0 0 15px rgba(236, 72, 153, 0.4);
}

[data-occasion="ipl"] {
  --eq-occasion-header-bg: linear-gradient(90deg, #0c1f4a 0%, #081226 50%, #020617 100%);
  --eq-occasion-primary: #3b82f6;
  --eq-occasion-primary-hover: #2563eb;
  --eq-occasion-accent-bg: #e0f2fe;
  --eq-occasion-accent-text: #075985;
  --eq-occasion-badge-bg: #2563eb;
  --eq-occasion-badge-text: #ffffff;
  --eq-occasion-glow: 0 0 15px rgba(59, 130, 246, 0.4);
}

[data-occasion="default"] {
  --eq-occasion-header-bg: linear-gradient(90deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  --eq-occasion-primary: #059669;
  --eq-occasion-primary-hover: #047857;
  --eq-occasion-accent-bg: #fee2e2;
  --eq-occasion-accent-text: #991b1b;
  --eq-occasion-badge-bg: #ef4444;
  --eq-occasion-badge-text: #ffffff;
  --eq-occasion-glow: none;
}

/* Header background dynamic adaptation when festive theme is active */
[data-occasion="diwali"] .eq-header-nav,
[data-occasion="diwali"] .eq-customer-header,
[data-occasion="diwali"] .mobile-header,
[data-occasion="diwali"] .mobile-home-header {
  background: linear-gradient(90deg, #2d114d 0%, #1e0938 50%, #4a044e 100%) !important;
  transition: background 0.4s ease;
}

[data-occasion="holi"] .eq-header-nav,
[data-occasion="holi"] .eq-customer-header,
[data-occasion="holi"] .mobile-header,
[data-occasion="holi"] .mobile-home-header {
  background: linear-gradient(90deg, #701a75 0%, #4a044e 50%, #1e1b4b 100%) !important;
  transition: background 0.4s ease;
}

[data-occasion="ipl"] .eq-header-nav,
[data-occasion="ipl"] .eq-customer-header,
[data-occasion="ipl"] .mobile-header,
[data-occasion="ipl"] .mobile-home-header {
  background: linear-gradient(90deg, #0c1f4a 0%, #081226 50%, #020617 100%) !important;
  transition: background 0.4s ease;
}

/* Festive Announcement Strip */
.eq-festive-announcement-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}
[data-occasion="diwali"] .eq-festive-announcement-strip {
  background: linear-gradient(90deg, #451a03 0%, #78350f 100%);
  color: #fef3c7;
  border: 1px solid #f59e0b;
}
[data-occasion="holi"] .eq-festive-announcement-strip {
  background: linear-gradient(90deg, #500724 0%, #831843 100%);
  color: #fce7f3;
  border: 1px solid #ec4899;
}
[data-occasion="ipl"] .eq-festive-announcement-strip {
  background: linear-gradient(90deg, #082f49 0%, #0369a1 100%);
  color: #e0f2fe;
  border: 1px solid #38bdf8;
}

/* Festive Footer Banner */
.eq-festive-footer-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.35s ease;
}
.eq-festive-footer-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.eq-festive-footer-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.eq-festive-footer-title {
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--eq-text-primary);
}
.eq-festive-footer-sub {
  font-size: 0.78rem;
  opacity: 0.88;
}

[data-occasion="diwali"] .eq-festive-footer-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(220, 38, 38, 0.12) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
}
[data-occasion="holi"] .eq-festive-footer-banner {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
  border: 1.5px solid rgba(236, 72, 153, 0.35);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.08);
}
[data-occasion="ipl"] .eq-festive-footer-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(14, 165, 233, 0.12) 100%);
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
}

/* Occasion Search Box Ambient Highlight */
[data-occasion="diwali"] .eq-search-box:focus-within,
[data-occasion="diwali"] .eq-nav-search:focus-within {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25) !important;
}
[data-occasion="holi"] .eq-search-box:focus-within,
[data-occasion="holi"] .eq-nav-search:focus-within {
  border-color: #ec4899 !important;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.25) !important;
}
[data-occasion="ipl"] .eq-search-box:focus-within,
[data-occasion="ipl"] .eq-nav-search:focus-within {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

/* Occasion Product Card Accents */
[data-occasion="diwali"] .eq-product-card:hover,
[data-occasion="diwali"] .eq-product-card-modern:hover {
  border-color: rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.14) !important;
}
[data-occasion="holi"] .eq-product-card:hover,
[data-occasion="holi"] .eq-product-card-modern:hover {
  border-color: rgba(236, 72, 153, 0.6) !important;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.14) !important;
}
[data-occasion="ipl"] .eq-product-card:hover,
[data-occasion="ipl"] .eq-product-card-modern:hover {
  border-color: rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.14) !important;
}

/* Occasion Active Department Pills */
[data-occasion="diwali"] .eq-dept-chip.is-active {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35) !important;
}
[data-occasion="holi"] .eq-dept-chip.is-active {
  background: linear-gradient(135deg, #be185d 0%, #db2777 100%) !important;
  box-shadow: 0 2px 8px rgba(219, 39, 119, 0.35) !important;
}
[data-occasion="ipl"] .eq-dept-chip.is-active {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}




