/* ==========================================================================
   STOREFRONT, SIDEBAR, PRODUCT CARDS & CUSTOMER PORTAL
   ========================================================================== */

/* Main App Wrapper */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ⚡ 120 FPS Hardware Accelerated Sidebar & Backdrop */
html.sidebar-open,
body.sidebar-open {
  overflow: hidden !important;
}

.sidebar {
  width: var(--sidebar-width);
  max-width: 85vw;
  background: #09090b;
  border-right: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transform: translate3d(-100%, 0, 0);
  will-change: transform;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  contain: layout style paint;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

@media (min-width: 1025px) {
  .sidebar {
    background: rgba(9, 9, 11, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

.sidebar.active {
  transform: translate3d(0, 0, 0);
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 2, 3, 0.78);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity, visibility;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1025px) {
  .sidebar-backdrop {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sidebar-header {
  height: var(--header-height);
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: 0 0 0 1px var(--bg-surface);
  flex-shrink: 0;
}

.brand-badge {
  font-size: 0.65rem;
  background: rgba(0, 136, 204, 0.2);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 136, 204, 0.4);
  margin-left: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nav-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 12px;
  margin-bottom: 8px;
  font-weight: 700;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 450;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-item-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item-btn.active {
  color: var(--primary);
  background: var(--primary-subtle);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  padding-left: 14px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(37, 99, 235, 0.25);
}

.nav-item-btn .nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.70;
  flex-shrink: 0;
}

.nav-item-btn.active .nav-icon {
  color: var(--primary);
  opacity: 1;
}

.nav-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--bg-surface);
}

/* Role Guarded Admin Section */
.admin-section {
  display: none; /* Controlled by auth.js */
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
}

.admin-section.visible {
  display: block;
}

.admin-badge-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--bg-surface);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-strong);
  background: var(--bg-surface);
}

.telegram-status-box {
  background: rgba(0, 136, 204, 0.1);
  border: 1px solid rgba(0, 136, 204, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.8rem;
}

.telegram-status-box .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.telegram-status-box .subtitle {
  color: var(--text-muted);
  font-size: 0.74rem;
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Header */
.top-header {
  height: var(--header-height);
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-bottom: 1px solid var(--border-strong);
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  max-width: 480px;
}

.search-box {
  position: relative;
  width: 240px;
  max-width: 100%;
}

.search-input {
  width: 100%;
  padding: 7px 12px 7px 34px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.84rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.search-input::placeholder { color: var(--text-muted); }

.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--bg-surface);
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 15px;
  height: 15px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.action-icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.badge-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary);
  color: var(--text-primary);
  font-size: 0.64rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: 0 0 0 2px var(--bg-primary);
}

/* User Auth Widget in Header */
.auth-widget {
  display: flex;
  align-items: center;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: background var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
}

.user-profile-btn:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.user-meta {
  text-align: left;
  line-height: 1.25;
}

.user-meta .name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.user-meta .role {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Page View Content Container */
.page-view {
  display: none;
  padding: 32px;
  max-width: 1336.02px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.page-view.active {
  display: block;
}

/* Hero Banner */
.store-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
}

/* Removed generic glow blob */

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 136, 204, 0.15);
  border: 1px solid rgba(0, 136, 204, 0.35);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-item .num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-item .label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Category Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.category-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.category-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.category-chip.active {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

/* Horizontal Category Pills Bar */
.category-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-pills-bar::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.cat-pill:hover {
  background: rgba(30, 41, 59, 0.9);
  color: var(--text-primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.cat-pill.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  font-weight: 700;
}

.sort-select {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.84rem;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.sort-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--bg-surface);
  outline: none;
}

/* Store Top Bar (Search & Sort) */
.store-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.store-controls-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

/* Store Filter Bar: Tabs, Sort & Search */
.store-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  width: 100%;
}

.store-filter-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.store-filter-row-top .availability-tab {
  border-radius: 20px;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.82rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.store-sort-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.store-sort-box select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 6px 30px 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.store-sort-box select:hover {
  border-color: var(--bg-surface);
}

.store-sort-box .sort-dropdown-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

.store-search-box {
  width: 240px;
  max-width: 100%;
}

.store-sort-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.sort-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
  position: relative;
  box-shadow: var(--shadow-sm);
  animation: card-enter 0.4s var(--ease-out) both;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-thumb {
  height: 160px;
  background: var(--bg-elevated);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-strong);
}

.product-thumb-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: repeating-var(--bg-surface);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
}

.product-icon-display {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
  transition: transform var(--transition-fast);
}

.product-icon-display svg {
  width: 32px;
  height: 32px;
}

.product-card:hover .product-icon-display {
  transform: scale(1.06);
}

.product-top-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
}

.product-telegram-source {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 136, 204, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  min-height: 2.6em;
}

.product-duration-selector {
  display: flex;
  gap: 6px;
  margin: 6px 0 8px;
  width: 100%;
}

.duration-pill {
  flex: 1;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.duration-pill:hover:not(.active) {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.duration-pill.active {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
  border-color: var(--primary, #3b82f6) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   SIDE-BY-SIDE HORIZONTAL BADGES (DURATION & WARRANTY)
   ========================================================================== */

.badge-on-sale {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.70rem;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 4px 12px var(--bg-surface);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-specs-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 5px !important;
  margin-top: 6px !important;
  margin-bottom: 8px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.product-specs-row .spec-chip,
.product-specs-chips .spec-chip,
.spec-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 3.5px 6px !important;
  border-radius: 6px !important;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.015em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease;
  flex: 1 1 0px !important;
  min-width: 0 !important;
}

.spec-chip.spec-duration {
  background: rgba(56, 189, 248, 0.10) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
}

.spec-chip.spec-warranty {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--bg-surface) !important;
}

.spec-chip.spec-no-warranty {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--bg-surface) !important;
}

.spec-chip-icon {
  font-size: 0.70rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.spec-chip-text {
  line-height: 1.2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.product-sale-timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-surface);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fca5a5;
  white-space: nowrap;
}

.product-sale-timer .timer-icon {
  font-size: 0.72rem;
  line-height: 1;
}

.product-sale-timer .timer-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: #fca5a5;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.product-sale-timer .timer-clock {
  font-family: monospace;
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-price-section {
  margin-bottom: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
  text-align: right;
  white-space: nowrap;
}

.product-price-section .price-old {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-right: 4px;
  font-weight: 500;
}

.product-price-section .price-curr-symbol {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.product-price-section .price-curr-symbol.sale-symbol {
  color: var(--text-primary);
}

.product-price-section .price-curr-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.product-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.product-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.product-features-list li svg {
  color: var(--success);
  flex-shrink: 0;
}

.product-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.price-original {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Orders Page & Digital Keys */
.order-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color var(--transition-fast);
}

.order-card:hover {
  border-color: var(--border-strong);
}

.order-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.order-id {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.order-meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.order-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-subtle);
}

.order-digital-access-box {
  margin-top: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.key-code {
  font-family: 'Consolas', 'Courier New', monospace;
  background: rgba(255, 255, 255, 0.35);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.86rem;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.product-card {
  transition: transform 0.25s var(--ease-expo), box-shadow 0.25s var(--ease-expo), border-color 0.25s var(--ease-expo);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Product Card Actions Bar (One Single Horizontal Line) */
.product-actions-bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* View Details (i) button - Crisp interactive contrast */
.product-actions-bar .btn-product-info {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.product-actions-bar .btn-product-info:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

/* Add to Cart button - Clickable Electric Blue Tint */
.product-actions-bar .btn-product-cart {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  border: 1px solid rgba(37, 99, 235, 0.45) !important;
  background: rgba(37, 99, 235, 0.12) !important;
  color: #60a5fa !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.product-actions-bar .btn-product-cart:hover {
  background: rgba(37, 99, 235, 0.25) !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.4) !important;
  transform: translateY(-2px) !important;
}

/* Custom styling for the BUY NOW button - Vibrant High-Impact Electric Blue */
.product-actions-bar .btn-product-buy, .btn-product-buy {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: 34px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  border-radius: 8px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  font-size: 0.78rem !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

.product-actions-bar .btn-product-buy:hover, .btn-product-buy:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.65), 0 0 14px rgba(59, 130, 246, 0.4) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

.product-actions-bar .btn-product-buy:active, .btn-product-buy:active {
  transform: translateY(1px) scale(0.98) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4) !important;
}

.app-footer {
  /* Styling applied directly in HTML or here */
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}

.mobile-label {
  display: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN (IPAD & MOBILE)
   ========================================================================== */

.header-actions-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Tablet & iPad (641px to 1024px) - 3 products per horizontal line */
@media (min-width: 641px) and (max-width: 1024px) {
  .page-view {
    padding: 20px 16px;
  }
  
  .store-hero {
    padding: 30px 20px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }

  .product-thumb {
    height: 120px !important;
  }

  .product-body {
    padding: 12px 14px !important;
    gap: 7px !important;
  }

  .product-title {
    font-size: 0.85rem !important;
    min-height: 2.5em !important;
    max-height: 2.5em !important;
    line-height: 1.25 !important;
  }

  .product-specs-row .spec-chip,
  .spec-chip {
    font-size: 0.63rem !important;
    padding: 3px 5px !important;
  }
  
  .top-header {
    padding: 0 20px;
  }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
  .top-header {
    padding: 0 12px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .top-header .header-left {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .top-header .header-brand-title {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
  }

  .top-header .header-right {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* Storefront Header Actions: ALWAYS VISIBLE, FLEX HORIZONTAL */
  .top-header:not(.admin-header) .header-actions-wrapper {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: auto !important;
  }

  /* Hide Track Order & FAQ buttons in header on mobile (accessible via sidebar) */
  .top-header:not(.admin-header) .track-order-btn,
  .top-header:not(.admin-header) .faq-btn {
    display: none !important;
  }

  .top-header:not(.admin-header) .header-notif-container,
  .top-header:not(.admin-header) .header-cart-container,
  .top-header:not(.admin-header) .auth-widget {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
  }

  .top-header:not(.admin-header) .header-profile-login-btn {
    padding: 5px 8px !important;
    gap: 4px !important;
  }

  .header-center.mobile-only {
    display: flex !important;
  }

  /* Admin-only Mobile 3-Dots Menu */
  .admin-header .mobile-menu-dots-btn {
    display: flex !important;
  }

  .admin-header .header-actions-wrapper {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(5, 5, 8, 0.96);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 240px;
    padding: 12px;
    gap: 8px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 16px 60px rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  }

  .admin-header .header-actions-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-label {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 500;
  }

  .admin-header .header-actions-wrapper > .action-icon-btn,
  .admin-header .header-actions-wrapper > div:not(.auth-widget) {
    order: 2;
  }

  .admin-header .header-actions-wrapper .action-icon-btn,
  .admin-header .header-actions-wrapper .btn-outline,
  .admin-header .header-actions-wrapper #login-trigger-btn {
    width: 100%;
    justify-content: flex-start !important;
    padding: 12px 16px !important;
    gap: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
  }

  .admin-header .header-actions-wrapper .btn-outline {
    margin-top: 4px;
    order: 3;
  }

  .admin-header .header-actions-wrapper .action-icon-btn svg,
  .admin-header .header-actions-wrapper .btn-outline svg,
  .admin-header .header-actions-wrapper #login-trigger-btn svg {
    width: 18px !important;
    height: 18px !important;
    color: var(--text-secondary);
    margin: 0 !important;
  }

  .admin-header .header-actions-wrapper > .auth-widget {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .user-profile-btn {
    width: 100%;
    justify-content: flex-start;
    background: transparent !important;
    border: none !important;
    padding: 0;
    flex-wrap: wrap;
    border-radius: 0 !important;
  }
  
  .user-profile-btn:hover {
    background: transparent !important;
    border-color: transparent !important;
  }

  #logout-btn {
    position: relative !important;
    width: 100% !important;
    justify-content: flex-start !important;
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--bg-surface) !important;
    padding: 12px 16px !important;
    border-radius: var(--radius-md) !important;
    margin-left: 0 !important;
    margin-top: 16px !important;
  }

  .header-left .search-box {
    width: 180px; /* Compress search bar */
  }

  .page-view {
    padding: 16px;
  }
  
  .store-hero {
    padding: 24px;
    border-radius: var(--radius-lg);
  }
  
  .hero-title {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .store-top-bar {
    margin-bottom: 16px;
    justify-content: flex-start;
  }
  
  /* Store Filter Bar Mobile Layout */
  .store-filter-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
    width: 100% !important;
  }

  .store-filter-row-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
  }
  .store-filter-row-top::-webkit-scrollbar {
    display: none !important;
  }

  .store-filter-row-top .availability-tab {
    padding: 6px 12px !important;
    font-size: 0.74rem !important;
    flex-shrink: 0 !important;
    border-radius: 18px !important;
  }

  .store-sort-box {
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }

  .store-sort-box select {
    padding: 6px 26px 6px 10px !important;
    font-size: 0.74rem !important;
    border-radius: 18px !important;
  }

  .store-search-box {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .store-search-box .search-input {
    width: 100% !important;
    flex: 1 1 100% !important;
    box-sizing: border-box !important;
  }

  @media (max-width: 640px) {
    .products-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 10px !important;
    }
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .sort-select {
    width: 100%;
  }
  
  .app-footer {
    padding: 24px 16px;
  }
  
  .order-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .order-meta-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Make footer horizontal and smaller */
  .app-footer {
    padding: 14px 16px !important;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1; /* Brand info full width */
    margin-bottom: 2px;
  }
  /* Reduce inline margins forcibly on mobile */
  .footer-grid [style*="margin-bottom"] {
    margin-bottom: 6px !important;
  }
  /* Slightly reduce text size in footer links for compact view */
  .footer-grid a {
    font-size: 0.75rem !important;
  }

  /* Make sure the backdrop works */
  .sidebar-backdrop {
    z-index: 999;
  }
  
  .sidebar {
    width: 260px; /* slightly smaller on mobile */
  }
}

/* Mobile Phones (max 640px) */
@media (max-width: 640px) {
  .header-left .search-box {
    width: 140px;
  }
  
  .action-icon-btn {
    width: 36px;
    height: 36px;
  }
  
  .btn-sm {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
  
  /* Make mobile view ultra compact for 2 columns */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .product-thumb {
    height: 90px !important;
  }
  .product-icon-display {
    width: 40px !important;
    height: 40px !important;
  }
  .product-icon-display svg {
    width: 20px !important;
    height: 20px !important;
  }
  .product-body {
    padding: 10px !important;
    gap: 5px !important;
  }
  .product-title {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
    line-height: 1.25 !important;
    min-height: 2.5em !important;
    max-height: 2.5em !important;
    letter-spacing: 0.01em !important;
    color: #f8fafc !important;
  }
  .product-category-tag {
    font-size: 0.55rem !important;
    margin-bottom: 3px !important;
  }
  .product-specs-row {
    gap: 3px !important;
    margin-top: 4px !important;
    margin-bottom: 6px !important;
    flex-wrap: nowrap !important;
  }
  .product-specs-row .spec-chip,
  .spec-chip {
    font-size: 0.58rem !important;
    padding: 2.5px 3.5px !important;
    gap: 2.5px !important;
  }
  .spec-chip-icon {
    font-size: 0.60rem !important;
  }
  .spec-chip-text {
    font-size: 0.58rem !important;
  }
  .badge-on-sale {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
  }
  .product-price-section {
    margin-bottom: 6px !important;
    padding-top: 4px !important;
    gap: 3px !important;
    white-space: nowrap !important;
  }
  .product-price-section .price-curr-val {
    font-size: 1.08rem !important;
  }
  .product-price-section .price-curr-symbol {
    font-size: 0.82rem !important;
  }
  .product-price-section .price-old {
    font-size: 0.65rem !important;
    margin-right: 2px !important;
  }
  .product-actions-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .product-actions-bar .btn-product-info,
  .product-actions-bar .btn-product-cart {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }
  .product-actions-bar .btn-product-buy { 
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 28px !important;
    padding: 0 6px !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    border-radius: 6px !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   UI / UX ENHANCEMENTS (Progress Bar, Back to Top, Floating Support, FAQ, Cookie Consent)
   ========================================================================== */

/* 1. Skip to Content (Accessibility) */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--primary);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  z-index: 99999;
  font-weight: 700;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-to-content:focus {
  top: 15px;
}


/* 3. Scroll Back to Top Button */
#scroll-top-btn {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 998;
}
#scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#scroll-top-btn:hover {
  background: var(--primary);
  border-color: var(--primary-glow);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px var(--primary-glow);
}

/* 4. Floating Contact / Support FAB - Hidden as per user request */
#floating-support-fab {
  display: none !important;
}

/* 5. Apps Hub & Ecosystem */
.apps-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.app-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
}
.app-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(37, 99, 235, 0.5) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(37, 99, 235, 0.2) !important;
}
#floating-support-fab .fab-pulse {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--text-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse-ring 2s infinite;
}

/* 5. Expandable FAQ Accordion Section */
.store-faq-section {
  margin-top: 48px;
  padding: 36px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
}
.faq-header {
  text-align: center;
  margin-bottom: 28px;
}
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}
.faq-item:hover {
  border-color: var(--bg-surface);
  background: rgba(255, 255, 255, 0.04);
}
.faq-question {
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  background: transparent;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border: none;
}
.faq-arrow {
  transition: transform 0.25s ease;
  opacity: 0.7;
}
.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 20px 18px 20px;
  transition: max-height 0.35s ease-in, padding 0.3s ease;
}



/* 7. Print Stylesheet */
@media print {
  .sidebar, .sidebar-backdrop, .top-header, #toast-container,
  #scroll-top-btn, #floating-support-fab, #scroll-progress-bar,
  .cookie-banner, .btn, .modal-close-btn, .store-faq-section {
    display: none !important;
  }
  body, .main-wrapper, .app-container {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .modal-backdrop.active {
    background: transparent !important;
    position: static !important;
  }
  .modal-container {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}


/* Skeleton Loaders */
.skeleton-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: pulse 1.5s infinite ease-in-out;
  border: 1px solid var(--border-subtle);
}
.skeleton-img {
  width: 100%;
  height: 180px;
  background: var(--border-subtle);
  border-radius: 12px;
}
.skeleton-text {
  height: 16px;
  background: var(--border-subtle);
  border-radius: 4px;
}
.skeleton-btn {
  height: 40px;
  background: var(--border-subtle);
  border-radius: 8px;
  margin-top: 10px;
}
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

/* ==========================================================================
   DEDICATED PRODUCT DETAILS PAGE STYLES
   ========================================================================== */
#product-details-view {
  animation: fadeIn 0.25s ease-out;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 32px;
}

@media (max-width: 960px) {
  .product-detail-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.product-detail-media {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.product-detail-media-inner {
  width: 100%;
  aspect-ratio: 16 / 11;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: transform 0.4s ease;
}

.product-detail-media:hover .product-detail-media-inner {
  transform: scale(1.02);
}

.product-detail-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-reviews-slider-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.product-reviews-slider-card:hover {
  transform: translateY(-2px);
  border-color: var(--bg-surface);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 20px var(--bg-surface);
}

.review-slide-card {
  animation: reviewSlideIn 0.3s ease-out;
}

@keyframes reviewSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash-sale-title-badge {
  animation: flashSaleBadgeGlow 3s infinite ease-in-out;
}

@keyframes flashSaleBadgeGlow {
  0%, 100% {
    box-shadow: 0 0 14px var(--bg-surface);
    border-color: var(--bg-surface);
  }
  50% {
    box-shadow: 0 0 24px var(--bg-surface);
    border-color: var(--bg-surface);
  }
}

.product-detail-info-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .product-specs-grid {
    grid-template-columns: 1fr;
  }
}

.spec-box-card {
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.spec-box-card:hover {
  transform: translateY(-2px);
}

.spec-box-warranty {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.spec-box-warranty:hover {
  border-color: rgba(168, 85, 247, 0.5);
}

.spec-box-duration {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.spec-box-duration:hover {
  border-color: rgba(56, 189, 248, 0.5);
}

.product-pricing-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-qty-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
}

.product-qty-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.product-qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.product-qty-val {
  min-width: 36px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.product-trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-pill span.icon {
  font-size: 1rem;
}

.product-card {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.15) !important;
}

/* ==========================================================================
   MODERN SHIMMER SKELETON LOADERS
   ========================================================================== */

/* ==========================================================================
   OPTION 3: CLEAN GLASS PULSE GRID SKELETON LOADERS
   ========================================================================== */

@keyframes glass-pulse-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes glass-card-pulse {
  0% {
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  100% {
    border-color: var(--bg-surface);
    box-shadow: 0 8px 30px var(--bg-surface);
  }
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInCard 0.35s ease-out forwards;
}

.skeleton-shimmer {
  background: var(--bg-surface) !important;
  background-size: 200% 100% !important;
  animation: glass-pulse-shimmer 2.2s infinite cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 8px;
}

/* 1. Glass Product Skeleton Card */
.skeleton-product-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  pointer-events: none;
  animation: glass-card-pulse 2.4s ease-in-out infinite alternate;
}

.skeleton-thumb {
  width: 100%;
  height: 140px;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skeleton-thumb::after {
  content: '';
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--bg-surface);
}

.skeleton-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.skeleton-tag {
  width: 65px;
  height: 14px;
  border-radius: 12px;
}

.skeleton-title-1 {
  width: 82%;
  height: 16px;
  border-radius: 6px;
}

.skeleton-title-2 {
  width: 50%;
  height: 12px;
  border-radius: 6px;
}

.skeleton-spec-box {
  width: 100%;
  height: 24px;
  border-radius: 8px;
}

.skeleton-price-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.skeleton-price {
  width: 70px;
  height: 20px;
  border-radius: 6px;
}

.skeleton-btn {
  width: 84px;
  height: 32px;
  border-radius: 20px;
}

/* 2. Glass Review Skeleton Card */
.skeleton-review-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: glass-card-pulse 2.4s ease-in-out infinite alternate;
}

.skeleton-review-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-user-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.skeleton-line-long {
  width: 100%;
  height: 12px;
  border-radius: 6px;
}

.skeleton-line-med {
  width: 60%;
  height: 12px;
  border-radius: 6px;
}

/* 3. Glass Giveaway Skeleton Card */
.skeleton-giveaway-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: glass-card-pulse 2.4s ease-in-out infinite alternate;
}

.skeleton-giveaway-banner {
  width: 100%;
  height: 160px;
  border-radius: 14px;
}

@media (max-width: 640px) {
  .skeleton-product-card {
    border-radius: 14px;
  }
  .skeleton-thumb {
    height: 95px !important;
  }
  .skeleton-body {
    padding: 10px !important;
    gap: 8px !important;
  }
  .skeleton-tag {
    width: 48px !important;
    height: 10px !important;
  }
  .skeleton-title-1 {
    width: 88% !important;
    height: 14px !important;
  }
  .skeleton-title-2 {
    width: 55% !important;
    height: 10px !important;
  }
  .skeleton-spec-box {
    height: 20px !important;
  }
  .skeleton-price {
    width: 55px !important;
    height: 16px !important;
  }
  .skeleton-btn {
    width: 65px !important;
    height: 28px !important;
  }
}

/* ==========================================================================
   GUIDES & TUTORIALS (SEO BLOG) STYLES
   ========================================================================== */
.guides-category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.guide-filter-pill {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-filter-pill:hover {
  color: var(--text-primary);
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}

.guide-filter-pill.active {
  background: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.2);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.guide-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.15);
}

.guide-card-header {
  padding: 22px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guide-category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.guide-read-time {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.guide-card-body {
  padding: 0 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.guide-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.guide-card:hover .guide-card-title {
  color: var(--primary);
}

.guide-card-excerpt {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

/* Single Guide Article Reader */
.guide-reader-container {
  max-width: 860px;
  margin: 0 auto;
}

.guide-hero {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.guide-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.guide-hero-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.guide-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 0.85rem;
}

.guide-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.4);
  object-fit: cover;
}

.guide-content-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.guide-content-body h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 36px 0 16px;
  letter-spacing: -0.01em;
  border-left: 4px solid var(--primary);
  padding-left: 14px;
}

.guide-content-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 24px 0 12px;
}

.guide-content-body p {
  margin-bottom: 18px;
}

.guide-content-body strong {
  color: var(--text-primary);
  font-weight: 700;
}

.guide-content-body ul,
.guide-content-body ol {
  margin: 0 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-content-body li {
  line-height: 1.65;
}

/* High-Converting Embedded Product CTA Box */
.guide-product-cta-banner {
  background: var(--bg-surface);
  border: 1px solid var(--bg-surface);
  border-radius: 18px;
  padding: 24px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 12px 30px var(--bg-surface);
}

.guide-product-cta-info {
  flex: 1;
  min-width: 240px;
}

.guide-product-cta-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-product-cta-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
}

.guide-product-cta-action {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.guide-product-cta-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-primary);
  white-space: nowrap;
}

.guide-product-buy-btn {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--bg-surface);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.guide-product-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--bg-surface);
  filter: brightness(1.1);
}

/* FAQs Accordion within Guide */
.guide-faq-section {
  margin: 40px 0;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.guide-faq-item {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.guide-faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.guide-faq-answer {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .guide-hero-title {
    font-size: 1.6rem;
  }
  .guide-product-cta-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .guide-product-cta-action {
    justify-content: space-between;
  }
}

/* ==========================================================================
   SENIOR DEVELOPER REDESIGN ENHANCEMENTS — SIDEBAR, HEADER & MOBILE NAV
   ========================================================================== */

/* Brand Logo */
.brand-icon-wrapper {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Sidebar Nav Pills */
.nav-badge-pill {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 2px 7px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Admin Section Pushed to Bottom of Nav List */
.admin-section {
  display: none;
  margin-top: auto !important;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.admin-section.visible {
  display: block;
}

.admin-nav-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}
.admin-icon {
  color: #818cf8;
}

/* Sidebar Support Section Grid */
.sidebar-support-container {
  padding: 16px 14px;
  background: rgba(15, 23, 42, 0.5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.support-title-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
}
.support-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}
.support-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  font-size: 0.76rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.support-wa:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
}
.support-ig:hover {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.4);
  color: #ec4899;
}
.support-fb:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #3b82f6;
}
.support-tg:hover {
  background: rgba(0, 136, 204, 0.15);
  border-color: rgba(0, 136, 204, 0.4);
  color: #0088cc;
}

/* Header Refinements */
.header-brand-title {
  display: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-actions-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-notif-container, .header-cart-container {
  position: relative;
}
.notif-title {
  font-weight: 700;
  font-size: 0.90rem;
  color: var(--text-primary);
}
.notif-actions {
  display: flex;
  gap: 6px;
}

/* Product Card Aspect Ratio & CLS Fixes */
.product-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.product-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.product-thumb {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 140px;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-strong);
  z-index: 1000;
  padding: 0 8px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.70rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: 6px 0;
  background: transparent;
  border: none;
}
.mobile-nav-btn:hover, .mobile-nav-btn.active {
  color: var(--primary);
  font-weight: 700;
}
.mobile-nav-btn svg {
  transition: transform var(--transition-fast);
}
.mobile-nav-btn.active svg {
  transform: translateY(-1px);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .sidebar {
    width: 260px;
  }
  .page-view {
    padding: 16px 14px 80px 14px;
  }
  .top-header {
    padding: 0 16px;
    position: relative;
  }
  .header-brand-title {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    text-align: center;
  }
  .track-order-btn span, .faq-btn span {
    display: none;
  }
  .track-order-btn, .faq-btn {
    padding: 7px;
  }
  .mobile-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .product-body {
    padding: 14px;
  }
  .product-title {
    font-size: 0.88rem;
  }
  .store-filter-bar {
    gap: 10px;
  }
  .store-search-box {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .store-filter-row-top {
    width: 100%;
    justify-content: space-between;
  }
}

/* Desktop Floating WhatsApp Support Button */
.desktop-floating-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.desktop-floating-wa-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   DESKTOP (PC) LAYOUT DOCKING & HERO BANNER ENHANCEMENTS
   ========================================================================== */

/* Store Hero Banner */
.store-hero-banner {
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.9) 0%, rgba(9, 9, 11, 0.95) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #60a5fa;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.store-hero-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.store-hero-subhead {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 820px;
  margin-bottom: 20px;
}

/* Trust Strip Badges */
.store-trust-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-md);
}

.trust-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Header Global Search */
.header-center-search {
  display: none;
  flex: 1;
  max-width: 420px;
  margin: 0 16px;
}
.header-global-search {
  width: 100%;
}

/* Desktop Docked Sidebar (Width >= 1024px) */
@media (min-width: 1024px) {
  .sidebar {
    transform: translateX(0) !important;
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--sidebar-width) !important;
    border-right: 1px solid var(--border-strong) !important;
    z-index: 100;
  }
  .main-wrapper {
    margin-left: var(--sidebar-width) !important;
    width: calc(100% - var(--sidebar-width)) !important;
  }
  .top-header {
    left: var(--sidebar-width);
  }
  #sidebar-toggle-btn {
    display: none !important;
  }
  .sidebar-backdrop {
    display: none !important;
  }
  .header-center-search {
    display: block;
  }
  .header-brand-title {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .store-hero-title {
    font-size: 1.35rem;
  }
  .store-hero-banner {
    padding: 20px 18px;
  }
}

/* Micro-Animation for Cart Icon Pulse */
@keyframes cartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.8)); }
  100% { transform: scale(1); }
}

.cart-pulse {
  animation: cartPulse 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* User Profile & Auth Widget Styling */
.auth-widget {
  display: flex;
  align-items: center;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.user-profile-btn:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.15);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.user-avatar-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-meta .name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .user-meta {
    display: none;
  }
  .track-order-btn, .faq-btn {
    display: none !important;
  }
  .header-profile-login-btn .login-text {
    display: none;
  }
  .header-profile-login-btn {
    padding: 6px !important;
    gap: 0;
  }
  .header-right {
    min-width: 0;
  }
}

.header-profile-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  background: rgba(15, 23, 42, 0.7);
  transition: all 0.2s ease;
}

.header-profile-login-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.profile-header-icon {
  color: var(--primary);
}

.header-profile-login-btn:hover .profile-header-icon {
  color: #ffffff;
}




