/* Amazon Depo & Sniper Radar Pro - Dark Glassmorphism & Yaniyo Benchmark Styles */

:root {
  color-scheme: dark;
  --bg-primary: #0b0f19;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(30, 41, 59, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(16, 185, 129, 0.35);
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  --accent-purple: #8b5cf6;
  accent-color: #10b981;
}

html {
  scrollbar-color: rgba(16, 185, 129, 0.4) rgba(15, 23, 42, 0.7);
  scroll-padding-top: 5rem;
  scroll-padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3 {
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

::selection {
  background-color: #10b981;
  color: #022c22;
}

:where(a:any-link, button, input, select):focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

.modal-backdrop {
  overscroll-behavior: contain;
}

body {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 15% 65%, rgba(139, 92, 246, 0.04) 0%, transparent 45%),
              var(--bg-primary);
  background-attachment: fixed;
  color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}

:where(a:not(.cart-btn-primary), code) {
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 7.25rem;
    scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }

  body {
    background-attachment: scroll;
  }
}

/* Tabular figures for high-precision financial and price readouts */
.tabular-nums, .price-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Glassmorphism surfaces */
.glass-panel {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 0 rgba(16, 185, 129, 0.2), 0 16px 32px -10px rgba(0, 0, 0, 0.6), 0 0 18px -2px rgba(16, 185, 129, 0.18);
  }
}

/* Pulse animation for live radar */
@keyframes radar-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.live-radar-dot {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  animation: radar-pulse 2s infinite;
}

/* Live Glitch Flash */
@keyframes glitch-glow {
  0%, 100% { border-color: rgba(244, 63, 94, 0.4); box-shadow: 0 0 15px rgba(244, 63, 94, 0.2); }
  50% { border-color: rgba(244, 63, 94, 0.9); box-shadow: 0 0 25px rgba(244, 63, 94, 0.5); }
}

.glitch-border {
  animation: glitch-glow 2.5s infinite;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0b0f19;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Horizontal scrolling categories bar hide native scrollbar */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Modal transitions */
.modal-backdrop {
  background: rgba(4, 7, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Deal percentage badge style */
.discount-badge {
  background: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.discount-badge-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Condition badges - Modern Neon Glass */
.condition-yeni-gibi {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px -2px rgba(16, 185, 129, 0.2);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.condition-cok-iyi {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: 0 0 10px -2px rgba(14, 165, 233, 0.2);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.condition-iyi {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 10px -2px rgba(245, 158, 11, 0.15);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.condition-sifir {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 10px -2px rgba(139, 92, 246, 0.2);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.condition-kabul {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-weight: 600;
}

/* Mobile bottom nav & safe areas */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-sheet-footer {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }
  .modal-sheet-body {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Scrollability edge fade affordance for horizontal scrollers (modern-web-guidance: scrollability-affordance-hints) */
@property --fade-start {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --fade-end {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@supports (animation-timeline: scroll()) {
  .scroll-fade-x {
    --fade-size: 1.5rem;
    scroll-padding-inline: 1.25rem;
    mask:
      linear-gradient(black, black) no-clip subtract,
      linear-gradient(to right, black, transparent) 0 0 / var(--fade-start) 100% no-repeat no-clip,
      linear-gradient(to right, transparent, black) 100% 0 / var(--fade-end) 100% no-repeat no-clip;
    animation: reveal-scroll-fade-start linear both, hide-scroll-fade-end linear both;
    animation-timeline: scroll(self inline);
    animation-range: 0 var(--fade-size), calc(100% - var(--fade-size)) 100%;
  }
}

@keyframes reveal-scroll-fade-start {
  to { --fade-start: var(--fade-size); }
}

@keyframes hide-scroll-fade-end {
  from { --fade-end: var(--fade-size); }
}

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

/* Mobile Bottom Nav Active State */
.mobile-bottom-nav {
  background: rgba(11, 15, 25, 0.96) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-nav-item {
  position: relative;
}

.mobile-nav-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 28px;
  transform: translateX(-50%);
  border-top: 2.5px solid transparent;
  border-radius: 0 0 9999px 9999px;
  transition: border-color 0.2s ease, width 0.2s ease;
}

.mobile-nav-item.active {
  color: #34d399 !important;
}

.mobile-nav-item.active::before {
  border-top-color: #10b981;
}

.mobile-nav-item.active .mobile-nav-icon-wrap {
  background: rgba(16, 185, 129, 0.16);
}

#mobile-nav-glitch.active {
  color: #fb7185 !important;
}
#mobile-nav-glitch.active::before {
  border-top-color: #f43f5e;
}
#mobile-nav-glitch.active .mobile-nav-icon-wrap {
  background: rgba(244, 63, 94, 0.16);
}

#mobile-nav-watchlist.active {
  color: #fbbf24 !important;
}
#mobile-nav-watchlist.active::before {
  border-top-color: #f59e0b;
}
#mobile-nav-watchlist.active .mobile-nav-icon-wrap {
  background: rgba(245, 158, 11, 0.16);
}

/* Mobile Filter Bottom Sheet */
@media (max-width: 767px) {
  #filters-panel-wrapper.mobile-filter-sheet-open {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 50;
    align-items: flex-end;
    justify-content: center;
    background: rgba(4, 7, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overscroll-behavior: contain;
  }

  .mobile-app-header .h-15 {
    height: auto;
  }
}

@media (max-width: 639px) {
  .mobile-sheet-panel,
  #filters-panel-wrapper.mobile-filter-sheet-open .mobile-filter-sheet-card {
    overscroll-behavior: contain;
  }

  @media (prefers-reduced-motion: no-preference) {
    .mobile-sheet-panel,
    #filters-panel-wrapper.mobile-filter-sheet-open .mobile-filter-sheet-card {
      animation: mobileSheetUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }
  }
}

/* Light theme overrides */
html.light {
  color-scheme: light;
  --bg-primary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-card-hover: #ffffff;
  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-hover: rgba(16, 185, 129, 0.5);
}

html.light body {
  background-color: #f1f5f9;
  color: #0f172a;
}

html.light header,
html.light .bg-\[\#090d16\]\/85,
html.light .bg-\[\#090d16\]\/60 {
  background-color: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html.light .glass-panel {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.09);
  color: #0f172a;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.06);
}

html.light .glass-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

html.light .glass-card:hover {
  background: #ffffff;
  border-color: var(--border-hover);
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.12), 0 0 15px -3px rgba(16, 185, 129, 0.2);
}

html.light #global-search-input,
html.light #mobile-search-input,
html.light select,
html.light input[type="number"],
html.light input[type="text"],
html.light input[type="search"],
html.light input[type="url"] {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html.light .text-white {
  color: #0f172a !important;
}

html.light .cart-btn-primary,
html.light .cart-btn-primary .text-white,
html.light .discount-badge,
html.light .discount-badge-emerald,
html.light .bg-emerald-600,
html.light .bg-cyan-600,
html.light .bg-rose-600,
html.light .from-emerald-600,
html.light .from-cyan-600,
html.light .from-rose-600,
html.light .from-rose-600 span {
  color: #ffffff !important;
}

html.light .toast-item {
  background-color: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.14) !important;
}

html.light .text-slate-100 {
  color: #0f172a !important;
}

html.light .text-slate-200 {
  color: #1e293b !important;
}

html.light .text-slate-300 {
  color: #334155 !important;
}

html.light .text-slate-400,
html.light .text-slate-500 {
  color: #475569 !important;
}

html.light .text-emerald-400,
html.light .text-emerald-300,
html.light .text-emerald-200 {
  color: #047857 !important;
}

html.light .text-amber-400,
html.light .text-amber-300,
html.light .text-amber-200 {
  color: #b45309 !important;
}

html.light .text-rose-400,
html.light .text-rose-300,
html.light .text-rose-200 {
  color: #be123c !important;
}

html.light .text-cyan-400,
html.light .text-cyan-300,
html.light .text-sky-400,
html.light .text-sky-300 {
  color: #0369a1 !important;
}

html.light .text-purple-400,
html.light .text-purple-300 {
  color: #6d28d9 !important;
}

html.light .bg-slate-900,
html.light .bg-slate-900\/95,
html.light .bg-slate-900\/90,
html.light .bg-slate-900\/80,
html.light .bg-slate-900\/70,
html.light .bg-slate-900\/60,
html.light .bg-slate-900\/40,
html.light .bg-slate-950,
html.light .bg-slate-950\/90,
html.light .bg-slate-950\/85,
html.light .bg-slate-950\/80,
html.light .bg-slate-950\/75,
html.light .bg-slate-950\/70,
html.light .bg-slate-950\/60,
html.light .bg-slate-950\/40,
html.light .bg-\[\#0f172a\],
html.light .bg-\[\#0b0f19\],
html.light .bg-\[\#0b0f19\]\/95 {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html.light .bg-slate-800,
html.light .bg-slate-800\/90,
html.light .bg-slate-800\/80,
html.light .bg-slate-800\/70,
html.light .bg-slate-800\/60,
html.light .bg-slate-800\/50,
html.light .bg-slate-800\/40,
html.light .bg-slate-700,
html.light .bg-slate-700\/80,
html.light .bg-slate-700\/50 {
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

html.light .hover\:bg-slate-800:hover,
html.light .hover\:bg-slate-800\/80:hover,
html.light .hover\:bg-slate-700:hover,
html.light .hover\:bg-slate-700\/80:hover,
html.light .hover\:bg-slate-600:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

html.light :where(button, a):not(.cart-btn-primary):not(.bg-emerald-600):not(.bg-cyan-600):not(.bg-rose-600):not(.from-emerald-600):not(.from-cyan-600).hover\:text-white:hover {
  color: #0f172a !important;
}

html.light .bg-rose-900\/40,
html.light .bg-rose-950\/90,
html.light .bg-rose-950\/50,
html.light .bg-rose-950\/40,
html.light .bg-rose-950\/30 {
  background-color: rgba(244, 63, 94, 0.12) !important;
  color: #be123c !important;
  border-color: rgba(244, 63, 94, 0.35) !important;
}

html.light .hover\:bg-rose-900\/60:hover,
html.light .hover\:bg-rose-500\/25:hover {
  background-color: rgba(244, 63, 94, 0.2) !important;
  color: #9f1239 !important;
}

html.light .bg-emerald-900\/40,
html.light .bg-emerald-950\/90,
html.light .bg-emerald-950\/60,
html.light .bg-emerald-950\/40,
html.light .bg-emerald-950\/30 {
  background-color: rgba(16, 185, 129, 0.12) !important;
  color: #047857 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

html.light .bg-amber-950\/90,
html.light .bg-amber-950\/40,
html.light .bg-amber-950\/30 {
  background-color: rgba(245, 158, 11, 0.14) !important;
  color: #b45309 !important;
  border-color: rgba(245, 158, 11, 0.38) !important;
}

html.light .bg-sky-950\/90,
html.light .bg-cyan-950\/40 {
  background-color: rgba(14, 165, 233, 0.12) !important;
  color: #0369a1 !important;
  border-color: rgba(14, 165, 233, 0.35) !important;
}

html.light .category-pill {
  background-color: #ffffff !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

html.light .category-pill:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

html.light .category-pill.active {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #047857 !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
}

html.light .category-pill span.rounded-full {
  background-color: #e2e8f0 !important;
  color: #334155 !important;
}

html.light .condition-yeni-gibi {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.4);
}

html.light .condition-cok-iyi {
  background: rgba(14, 165, 233, 0.14);
  color: #0369a1;
  border-color: rgba(14, 165, 233, 0.4);
}

html.light .condition-iyi {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.4);
}

html.light .condition-sifir {
  background: rgba(139, 92, 246, 0.14);
  color: #6d28d9;
  border-color: rgba(139, 92, 246, 0.4);
}

html.light .condition-kabul {
  background: rgba(100, 116, 139, 0.14);
  color: #334155;
  border-color: rgba(100, 116, 139, 0.35);
}

html.light .card-quick-actions {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

html.light .card-quick-actions button {
  color: #334155;
}

html.light .modal-backdrop {
  background: rgba(15, 23, 42, 0.45);
}

/* Toast notification styling */
.toast-item {
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

.toast-item.removing {
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Star button animation */
.star-btn {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.star-btn:hover {
  transform: scale(1.15);
}
.star-btn.active {
  color: #fbbf24;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

/* Share button animation */
.share-btn {
  transition: all 0.2s ease;
}
.share-btn:hover {
  transform: translateY(-1px);
}

/* Product card – elevated dark-glass hierarchy & tactile interaction */
.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92) 0%, rgba(11, 15, 25, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  overflow: clip;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 8px 24px -6px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: inset 0 1px 0 0 rgba(16, 185, 129, 0.25), 0 18px 36px -10px rgba(0, 0, 0, 0.65), 0 0 20px -4px rgba(16, 185, 129, 0.2);
  }
}

/* Mobile Compact List & 2-Column Grid Product Cards */
@media (max-width: 639px) {
  .product-card {
    border-radius: 1rem;
  }

  /* Default: Compact Horizontal List Card (image left 108x108, details right, clean CTA footer) */
  #products-grid[data-mobile-view="list"] .product-card-main,
  #products-grid:not([data-mobile-view]) .product-card-main {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    padding: 0.75rem 0.75rem 0.5rem;
    align-items: stretch;
  }

  #products-grid[data-mobile-view="list"] .product-img-well,
  #products-grid:not([data-mobile-view]) .product-img-well {
    width: 108px;
    min-width: 108px;
    height: 108px;
    max-height: 108px;
    aspect-ratio: 1 / 1;
    padding: 0.45rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  #products-grid[data-mobile-view="list"] .product-card-body,
  #products-grid:not([data-mobile-view]) .product-card-body {
    padding: 0;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
  }

  #products-grid[data-mobile-view="list"] .product-card-title,
  #products-grid:not([data-mobile-view]) .product-card-title {
    min-height: 0;
    font-size: 13px;
    line-height: 1.3;
  }

  #products-grid[data-mobile-view="list"] .product-card-price-row,
  #products-grid:not([data-mobile-view]) .product-card-price-row {
    padding-top: 0.35rem;
  }

  #products-grid[data-mobile-view="list"] .product-card-price-main,
  #products-grid:not([data-mobile-view]) .product-card-price-main {
    font-size: 1.125rem;
    line-height: 1.2;
  }

  #products-grid[data-mobile-view="list"] .product-card-footer,
  #products-grid:not([data-mobile-view]) .product-card-footer {
    padding: 0.5rem 0.75rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .product-img-badges {
    top: 0.35rem;
    left: 0.35rem;
  }

  .product-img-badges .discount-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 0.4rem;
  }

  #products-grid[data-mobile-view="list"] .product-secondary-img-tag,
  #products-grid:not([data-mobile-view]) .product-secondary-img-tag {
    display: none;
  }

  .product-last-unit-badge {
    bottom: 0.3rem;
    left: 0.3rem;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 0.375rem;
  }

  /* 2-Column Compact E-Commerce Grid Mode */
  #products-grid[data-mobile-view="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
  }

  #products-grid[data-mobile-view="grid"] .product-card-banner {
    padding: 0.25rem 0.45rem;
    font-size: 9.5px;
  }

  #products-grid[data-mobile-view="grid"] .grid-hide-prefix {
    display: none;
  }

  #products-grid[data-mobile-view="grid"] .product-card-main {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  #products-grid[data-mobile-view="grid"] .product-img-well {
    width: 100%;
    height: 118px;
    max-height: 118px;
    aspect-ratio: 4 / 3;
    padding: 0.5rem;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  #products-grid[data-mobile-view="grid"] .product-card-body {
    padding: 0.625rem;
    gap: 0.35rem;
  }

  #products-grid[data-mobile-view="grid"] .product-card-category-row,
  #products-grid[data-mobile-view="grid"] .product-card-seller,
  #products-grid[data-mobile-view="grid"] .product-card-score-pill,
  #products-grid[data-mobile-view="grid"] .product-card-compare-mobile,
  #products-grid[data-mobile-view="grid"] .product-card-chart-btn {
    display: none;
  }

  #products-grid[data-mobile-view="grid"] .product-card-meta-row span {
    font-size: 9px;
    padding: 1px 5px;
  }

  #products-grid[data-mobile-view="grid"] .product-card-title {
    font-size: 12px;
    min-height: 2rem;
    line-height: 1.3;
  }

  #products-grid[data-mobile-view="grid"] .product-card-price-main {
    font-size: 1rem;
    line-height: 1.2;
  }

  #products-grid[data-mobile-view="grid"] .product-card-price-ref {
    font-size: 10px;
  }

  #products-grid[data-mobile-view="grid"] .product-card-savings-badge {
    font-size: 10px;
    padding: 1px 6px;
  }

  #products-grid[data-mobile-view="grid"] .product-card-footer {
    padding: 0 0.625rem 0.625rem;
    gap: 0.35rem;
  }

  #products-grid[data-mobile-view="grid"] .cart-btn-primary {
    font-size: 11px;
    padding: 0.45rem 0.5rem;
    min-height: 36px;
  }

  #products-grid[data-mobile-view="grid"] .mobile-card-star-btn {
    width: 36px;
    height: 36px;
  }
}

/* Studio image showcase well so dark & white Amazon product images both pop crisply */
.product-img-well {
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f1f5f9 100%);
  aspect-ratio: 16 / 10;
  max-height: 188px;
}

.product-modal-img-well {
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f1f5f9 100%);
  min-height: 220px;
  max-height: 320px;
}

/* Balanced wrapped filter rows */
.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
}

/* Scrollable modal body stability */
.modal-scroll-body {
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

/* KPI Overview Cards */
.kpi-metric-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.55) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.25);
  border-radius: 0.875rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .kpi-metric-card:hover {
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), 0 8px 24px -4px rgba(0, 0, 0, 0.45), 0 0 16px -2px rgba(16, 185, 129, 0.15);
  }
}

/* Category pill hover and active transitions */
.category-pill {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 600;
  border-radius: 0.75rem;
}

@media (hover: hover) and (pointer: fine) {
  .category-pill:hover {
    transform: translateY(-1px);
  }
}

.category-pill.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.2) 100%) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 4px 16px -2px rgba(16, 185, 129, 0.25) !important;
}

/* Brand chips */
.brand-chip {
  transition: all 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .brand-chip:hover {
    transform: translateY(-1px);
  }
}

/* Filter pills */
.filter-pill-cond,
.filter-pill-src,
.filter-pill-disc,
.filter-pill-score {
  transition: all 0.18s ease;
  font-weight: 600;
  border-radius: 0.625rem;
}

@media (hover: hover) and (pointer: fine) {
  .filter-pill-cond:hover,
  .filter-pill-src:hover,
  .filter-pill-disc:hover,
  .filter-pill-score:hover {
    transform: translateY(-1px);
  }
}

/* Cart Button Tactile Interaction */
.cart-btn-primary {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-btn-primary:active {
  transform: scale(0.97);
}

/* Score badge bg for older Tailwind CDN compatibility */
.bg-rose-500\/15   { background-color: rgba(244, 63, 94, 0.15); }
.bg-amber-500\/15  { background-color: rgba(245, 158, 11, 0.15); }
.bg-cyan-500\/15   { background-color: rgba(6, 182, 212, 0.15); }
.bg-slate-500\/15  { background-color: rgba(100, 116, 139, 0.15); }

/* Defer rendering strictly for below-the-fold product cards (modern-web-guidance: defer-rendering-heavy-content) */
.product-card:nth-child(n + 9) {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 440px;
  contain-intrinsic-size: auto 420px;
}

/* Signature Glitch Highlight (Amazon TR 414,01 ₺ & 300,75 ₺) */
@keyframes signature-glitch-pulse {
  0%, 100% {
    border-color: rgba(245, 158, 11, 0.65);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.28), 0 0 32px rgba(244, 63, 94, 0.18);
  }
  50% {
    border-color: rgba(244, 63, 94, 0.95);
    box-shadow: 0 0 28px rgba(244, 63, 94, 0.45), 0 0 42px rgba(245, 158, 11, 0.35);
  }
}

.signature-glitch-card {
  animation: signature-glitch-pulse 1.9s infinite;
  border-width: 1.5px;
}

.signature-glitch-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 55%, #dc2626 100%);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

/* Light theme complete overrides for cards, KPIs & badges */
html.light {
  color-scheme: light;
  scrollbar-color: rgba(16, 185, 129, 0.5) #e2e8f0;
}

html.light .product-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.08) !important;
}

html.light .product-card:hover {
  border-color: rgba(16, 185, 129, 0.55) !important;
  box-shadow: 0 14px 28px -8px rgba(15, 23, 42, 0.14), 0 0 16px -4px rgba(16, 185, 129, 0.2) !important;
}

html.light .kpi-metric-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.06) !important;
}

html.light .product-img-well,
html.light .product-modal-img-well {
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f8fafc 100%) !important;
  border-bottom-color: rgba(15, 23, 42, 0.06) !important;
}

html.light .category-pill.active {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #047857 !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
}

html.light .condition-yeni-gibi { color: #047857; background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.4); }
html.light .condition-cok-iyi   { color: #0369a1; background: rgba(14, 165, 233, 0.14); border-color: rgba(14, 165, 233, 0.4); }
html.light .condition-iyi       { color: #b45309; background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.45); }
html.light .condition-sifir     { color: #6d28d9; background: rgba(139, 92, 246, 0.14); border-color: rgba(139, 92, 246, 0.4); }
html.light .condition-kabul     { color: #475569; background: rgba(148, 163, 184, 0.18); border-color: rgba(100, 116, 139, 0.35); }

html.light .text-emerald-300,
html.light .text-emerald-400 { color: #047857 !important; }
html.light .text-amber-200,
html.light .text-amber-300,
html.light .text-amber-400   { color: #b45309 !important; }
html.light .text-cyan-300,
html.light .text-cyan-400    { color: #0e7490 !important; }
html.light .text-rose-300,
html.light .text-rose-400    { color: #be123c !important; }
html.light .signature-glitch-badge .text-white,
html.light .discount-badge,
html.light .cart-btn-primary,
html.light #mobile-filter-apply-btn { color: #ffffff !important; }

/* Mobile Light Theme Parity */
html.light .toast-item {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.2) !important;
}

html.light .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  border-top-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08) !important;
}

html.light .mobile-nav-item {
  color: #475569 !important;
}

html.light .mobile-nav-item.active {
  color: #047857 !important;
}

html.light .mobile-nav-item.active .mobile-nav-icon-wrap {
  background: rgba(16, 185, 129, 0.14);
}

html.light #mobile-nav-glitch.active {
  color: #be123c !important;
}

html.light #mobile-nav-glitch.active .mobile-nav-icon-wrap {
  background: rgba(244, 63, 94, 0.14);
}

html.light #mobile-nav-watchlist.active {
  color: #b45309 !important;
}

html.light #mobile-nav-watchlist.active .mobile-nav-icon-wrap {
  background: rgba(245, 158, 11, 0.14);
}

html.light .mobile-util-btn {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

html.light #filters-panel-wrapper.mobile-filter-sheet-open {
  background: rgba(15, 23, 42, 0.45);
}

html.light .mobile-sheet-footer {
  background: #ffffff !important;
  border-top-color: rgba(15, 23, 42, 0.1) !important;
}

html.light #products-grid .product-card-footer {
  border-top-color: rgba(15, 23, 42, 0.08) !important;
}

html.light #products-grid .product-img-well {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html.light .mobile-active-chip {
  background-color: rgba(16, 185, 129, 0.12) !important;
  color: #047857 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}
