@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@700&family=Manrope:wght@800&family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@500;700;800&display=swap');

:root {
  /* System Colors */
  --bg-light: #f8f9fa;
  --card-bg: #ffffff;
  --text-main: #212529;
  --text-muted: #6c757d;
  --primary-color: #1b5e20;
  --primary-hover: #144417;
  --success-color: #2e7d32;
  --border-color: #dee2e6;
  --danger-color: #dc3545;
  --danger-bg: #f8d7da;
  --danger-border: #f5c2c7;
  --divider: #e9ecef;
  --surface: #ffffff;
  
  /* Brand Theme Colors */
  --brand-green: #1b5e20;
  --brand-orange: #e64a19;
  --brand-yellow: #f9a825;
  --brand-dark-red: #7f0000;

  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --content-inset: clamp(16px, 5vw, 24px);
  
  /* Spacing Tokens */
  --space-1: calc(4px * var(--responsive-scale, 1));
  --space-2: calc(8px * var(--responsive-scale, 1));
  --space-3: calc(12px * var(--responsive-scale, 1));
  --space-4: calc(16px * var(--responsive-scale, 1));
  --space-5: calc(24px * var(--responsive-scale, 1));
  
  /* Typography Tokens */
  --text-xs: calc(0.7rem * var(--responsive-scale, 1));
  --text-sm: calc(0.85rem * var(--responsive-scale, 1));
  --text-md: calc(1rem * var(--responsive-scale, 1));
  --text-lg: calc(1.25rem * var(--responsive-scale, 1));
  --text-xl: calc(1.5rem * var(--responsive-scale, 1));
  
  /* Border Radii Tokens */
  --radius-sm: calc(4px * var(--responsive-scale, 1));
  --radius-md: calc(8px * var(--responsive-scale, 1));
  --radius-lg: calc(16px * var(--responsive-scale, 1));
  
  /* Shadow Tokens */
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 4px 14px rgba(0, 0, 0, 0.08);
  
  /* Animation Tokens */
  --duration-fast: 0.15s;
  --duration-normal: 0.25s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--bg-light);
  color: var(--text-main);
  font-family: var(--font-family);
  height: 100%;
  overflow: hidden;
  overscroll-behavior-y: contain; /* Prevent pull-to-refresh pull gestures */
}

/* App Shell centered on desktop screens */
/* [ACTIVE RULE ".app-shell" MOVED TO scanner.css] */

/* Unified Page Contract (Scanner Design System v1.2) */
.app-page {
  display: none !important;
  width: 100%;
  min-height: 100dvh;
  box-sizing: border-box;
}

.app-page.active-page {
  display: flex !important;
  flex-direction: column;
}

/* Scanner Page Content Layering (Version 1.2 Isolation) */
/* [ACTIVE RULE "#scanner-view" MOVED TO scanner.css] */

/* [ACTIVE RULE "#scanner-background" MOVED TO scanner.css] */

/* [ACTIVE RULE "#scanner-content" MOVED TO scanner.css] */



/* Welcome Page Layout */
.welcome-container {
  width: 100%;
  height: 100dvh;
  padding: 0;
  margin: 0;
  background: #ffffff;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  animation: welcome-fade-in 0.4s ease-out forwards;
}

.welcome-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1.6fr) minmax(0, 1.6fr) minmax(0, 1.3fr) minmax(0, 1.9fr);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

@keyframes welcome-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.welcome-row {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Individual Row Alignment Control */
#welcome-row-1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: env(safe-area-inset-top, 16px) 0 0 0;
  box-sizing: border-box;
}

#welcome-view .welcome-ribbon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border: none;
}

#welcome-row-2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;
}

#welcome-row-3 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#welcome-row-4 {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

#welcome-view .welcome-mascot {
  width: 98%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border: none;
  margin: 0;
}

/* Wireframe Placeholder Colors */
.row-red {
  background-color: #ffeaea;
  border: 3px dashed #f44336;
  color: #d32f2f;
  font-weight: 700;
}

.row-blue {
  background-color: #e8f4fd;
  border: 3px dashed #2196f3;
  color: #0b7dda;
}

.row-green {
  background-color: #e8f8f5;
  border: 3px dashed #2ec4b6;
}

.row-yellow {
  background-color: #fef9e7;
  border: 3px dashed #f1c40f;
  color: #d4ac0d;
  font-weight: 700;
}

.wireframe-label {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.9rem, 2.5vh, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Row 2: Brand Identity inside wireframe */
#welcome-view .welcome-brand-img {
  width: 99%;
  height: auto;
  max-height: 98%;
  object-fit: contain;
  display: block;
  border: none;
  margin: 0 auto;
}

/* Row 3: Scan button size requirements */
/* Row 3: Interactive image scan button */
#welcome-view .welcome-scan-btn {
  width: 91%;
  height: 95%;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  cursor: pointer;
  box-shadow: none;
  overflow: visible;
}

.welcome-scan-btn:focus-visible {
  outline: 3px solid #54b419;
  outline-offset: 4px;
  border-radius: 36px;
}

.scan-button-face-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  transition: filter 180ms ease-out, transform 180ms ease-out;
  animation: button-breath 3s ease-in-out infinite;
}

@keyframes button-breath {
  0% {
    transform: scale(1);
    filter: brightness(1) drop-shadow(0 2px 4px rgba(27, 85, 9, 0.1));
  }
  50% {
    transform: scale(1.02);
    filter: brightness(1.04) drop-shadow(0 6px 12px rgba(27, 85, 9, 0.2));
  }
  100% {
    transform: scale(1);
    filter: brightness(1) drop-shadow(0 2px 4px rgba(27, 85, 9, 0.1));
  }
}

.welcome-scan-btn:hover .scan-button-face-img {
  animation-play-state: paused;
  transform: scale(1.03);
  filter: brightness(1.05) drop-shadow(0 6px 14px rgba(27, 85, 9, 0.25));
}

.welcome-scan-btn:active .scan-button-face-img {
  animation: none;
  transform: scale(0.97) translateY(1px);
  filter: brightness(0.96) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.12));
}

/* Ripple effect container styles */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.4s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Camera Opening Loading State Card */
/* [ACTIVE RULE ".opening-camera-text" MOVED TO scanner.css] */

/* [ACTIVE RULE ".bouncing-dots" MOVED TO scanner.css] */

/* [ACTIVE RULE ".bouncing-dots .dot" MOVED TO scanner.css] */

/* [ACTIVE RULE ".bouncing-dots .dot:nth-child(1)" MOVED TO scanner.css] */

/* [ACTIVE RULE ".bouncing-dots .dot:nth-child(2)" MOVED TO scanner.css] */

@keyframes dot-bounce {
  0%, 80%, 100% { 
    transform: scale(0.3);
    opacity: 0.3;
  }
  40% { 
    transform: scale(1.0);
    opacity: 1;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-primary:active {
  background-color: var(--primary-hover);
  transform: scale(0.98);
}

.btn-large {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1rem;
}

/* [ACTIVE RULE ".btn-outline" MOVED TO scanner.css] */

/* [ACTIVE RULE ".btn-outline:active" MOVED TO scanner.css] */

.btn-text {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 5px 10px;
}

.btn-text:active {
  color: var(--primary-color);
}

/* Premium Supermarket Header */
/* [ACTIVE RULE ".top-header" MOVED TO scanner.css] */

.header-back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px;
  margin-left: -10px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: color 0.2s ease;
}

.header-back-btn:active {
  color: var(--primary-color);
}

.header-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Header Section Transparent Floating System (v1.1 Polish) */
/* [ACTIVE SCANNER HEADER RULE MOVED TO scanner.css] */
/* ==========================================================================
/* [ACTIVE SCANNERVIEW RULE MOVED TO scanner.css] */
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.brand-line-1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-line-2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.1;
  margin-top: 2px;
}

.brand-seventy {
  color: #e64a19; /* Reddish Orange */
}

.brand-eight {
  color: #f9a825; /* Yellow */
}

.brand-supermaart {
  color: #2e7d32; /* Green */
}

.header-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* [ACTIVE RULE "#scan-row-1" MOVED TO scanner.css] */



/* [ACTIVE .scanner-area RULE MOVED TO scanner.css] */

/* [LEGACY BARE #reader RULES PURGED] */

/* Scanner Bracket Br */

/* Remove squarish frames generated by the scanner library */
#reader div[style*="border"], 
#reader__scan_region {
  border: none !important;
}

/* [LEGACY SCANNER STATUS RULES PURGED] */2px;
  text-transform: uppercase;
  font-family: var(--font-family);
  white-space: nowrap;
}

/* [ACTIVE .product-info-area RULE MOVED TO scanner.css] */

/* ==========================================================================
   Scanner Design System Tokens & ProductCard.Single Component Architecture
   ========================================================================== */

/* [ACTIVE RULE "#scanner-view" MOVED TO scanner.css] */
  100% {
    background-position: -200% 0;
  }
}

/* Horizontal Swiping Multi List Layout */
/* [ACTIVE RULE ".multi-products-list" MOVED TO scanner.css] */

/* [ACTIVE RULE ".multi-products-list::-webkit-scrollbar" MOVED TO scanner.css] */
/* [ACTIVE RULE ".multi-products-list::-webkit-scrollbar-track" MOVED TO scanner.css] */
/* [ACTIVE RULE ".multi-products-list::-webkit-scrollbar-thumb" MOVED TO scanner.css] */

.multi-item-card {
  flex: 0 0 82%;
  scroll-snap-align: center;
  background-color: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: var(--space-3);
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.multi-item-card:active {
  transform: scale(0.98);
}

/* [ACTIVE .promotions-area RULE MOVED TO scanner.css] */

/* [ACTIVE RULE ".promo-title-row" MOVED TO scanner.css] */

/* [ACTIVE RULE ".promo-hot-badge" MOVED TO scanner.css] */

/* [ACTIVE RULE ".promo-section-title" MOVED TO scanner.css] */

/* [ACTIVE RULE ".promo-carousel-container" MOVED TO scanner.css] */

/* [ACTIVE RULE ".promo-carousel-track" MOVED TO scanner.css] */

.promo-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  align-items: center;
}

.promo-slide.active {
  opacity: 1;
  visibility: visible;
}

/* [ACTIVE RULE ".promo-details" MOVED TO scanner.css] */

/* [ACTIVE RULE ".promo-name" MOVED TO scanner.css] */

.promo-price-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.promo-mrp {
  font-size: 11px;
  color: var(--text-muted);
}
.mrp-strike {
  text-decoration: line-through;
}

.promo-sale {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-color);
}

.promo-save {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  background-color: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
  padding: 2px 6px;
  border-radius: 6px;
}

/* [ACTIVE .recently-scanned-handle-area RULE MOVED TO scanner.css] */

/* [ACTIVE RULE ".sheet-handle-btn" MOVED TO scanner.css] */

/* [ACTIVE RULE ".handle-line" MOVED TO scanner.css] */

/* [ACTIVE RULE ".handle-text" MOVED TO scanner.css] */

/* [ACTIVE .details-state BLOCK 1 MOVED TO scanner.css] */

/* State idle & loaders */
.idle-graphic {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* [ACTIVE RULE ".state-instruction" MOVED TO scanner.css] */

/* [ACTIVE RULE ".spinner" MOVED TO scanner.css] */
/* [ACTIVE RULE "@keyframes spin" MOVED TO scanner.css] */

/* Premium Floating Product Card */
/* [ACTIVE RULE ".product-card" MOVED TO scanner.css] */

/* Interactive Name Row */
.product-title-row {
  display: flex;
  align-items: center;
  width: 100%;
  padding-top: 10px; /* Breathe room */
  padding-bottom: 6px;
}

.product-title {
  font-size: 1.25rem; /* Slightly larger */
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 0;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
  flex: 1;
}

/* Barcode Toggle Row */
.barcode-toggle-container {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  margin-top: 4px;
  margin-bottom: 2px;
  align-self: flex-start;
  transition: opacity 0.2s ease;
}

.barcode-toggle-container:hover {
  opacity: 0.85;
}

.barcode-toggle-label {
  font-size: 0.7rem; /* Smaller font */
  font-weight: 500;
  color: #868e96; /* Muted gray */
}

.barcode-toggle-chevron {
  font-size: 0.6rem; /* Smaller chevron */
  color: #868e96; /* Muted gray */
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.barcode-toggle-chevron.expanded {
  transform: rotate(180deg);
}

/* Collapsible Barcode Area */
.barcode-collapsible {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.25s ease, opacity 0.2s ease;
  width: 100%;
  background-color: var(--bg-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.barcode-collapsible.expanded {
  height: 28px;
  opacity: 1;
  margin-top: 4px;
  margin-bottom: 6px;
  padding: 4px 8px;
}

.barcode-val {
  font-size: 0.75rem;
  color: var(--text-main);
  font-weight: 600;
}

/* Price Section */
.price-section {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align left */
  margin-top: 12px;
  width: 100%;
}

.price-container {
  display: flex;
  align-items: baseline; /* Align relative to baseline of characters */
  gap: 10px; /* Space between MRP and Sale Price */
  flex-wrap: wrap;
}

.mrp-wrapper {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mrp-strikethrough {
  font-weight: 500;
  color: #a0aec0;
  text-decoration: line-through;
  margin-left: 2px;
}

/* Premium pricing formatting */
.price-val {
  display: inline-flex;
  align-items: flex-start;
  color: var(--primary-color);
  line-height: 1.0;
}

.price-currency {
  font-size: 1.15rem;
  font-weight: 700;
  margin-right: 1px;
  margin-top: 2px;
}

.price-whole {
  font-size: 2.3rem;
  font-weight: 900;
}

.price-decimal {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2px;
}

/* Premium Bulk Offer Panel (Two Column) */
.bulk-offer-panel {
  background-color: #f1f8f5;
  border: 1px solid #c8e6c9;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 12px;
  gap: 8px;
}

.bulk-left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.bulk-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.bulk-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}

.bulk-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.bulk-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: monospace;
}

.bulk-savings-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2e7d32;
  margin-top: 1px;
}


/* State Multiple Matches */
/* [ACTIVE RULE ".multi-header" MOVED TO scanner.css] */

/* [ACTIVE RULE ".multi-icon" MOVED TO scanner.css] */

/* [ACTIVE RULE ".multi-title" MOVED TO scanner.css] */

/* [ACTIVE RULE ".multi-subtitle" MOVED TO scanner.css] */

/* [ACTIVE RULE ".multi-products-list" MOVED TO scanner.css] */

/* Custom Scrollbar for list container */
/* [ACTIVE RULE ".multi-products-list::-webkit-scrollbar" MOVED TO scanner.css] */

/* [ACTIVE RULE ".multi-products-list::-webkit-scrollbar-thumb" MOVED TO scanner.css] */

.multi-item-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.multi-item-card:active {
  background-color: #f8f9fa;
}

.multi-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.multi-barcode-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  background-color: var(--bg-light);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.multi-pricing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.multi-mrp-row {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.multi-mrp-label-inline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.multi-mrp-val {
  font-size: 0.95rem;
  color: #adb5bd;
  text-decoration: line-through;
  font-family: monospace;
}

.multi-price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.multi-price-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.multi-price-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
  font-family: monospace;
}

/* Errors & Recovery Graphics */
/* [ACTIVE RULE ".error-graphic" MOVED TO scanner.css] */

/* [ACTIVE RULE ".error-title" MOVED TO scanner.css] */

/* [ACTIVE RULE ".error-desc" MOVED TO scanner.css] */

/* Feedback bubble popup */
/* [ACTIVE RULE ".scan-feedback-popup" MOVED TO scanner.css] */

.scan-feedback-popup.visible {
  opacity: 1;
  visibility: visible;
}

/* Recently Scanned Trigger */
.recently-scanned-trigger-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.recently-scanned-link {
  background: none;
  border: none;
  color: var(--primary-color);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-bottom: 1.5px dashed var(--primary-color);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.recently-scanned-link:active {
  opacity: 0.7;
}

/* Bottom Sheet Overlay & Sheet */
/* [ACTIVE RULE ".sheet-overlay" MOVED TO scanner.css] */

/* [ACTIVE RULE ".bottom-sheet" MOVED TO scanner.css] */

/* [ACTIVE RULE ".sheet-grab-handle" MOVED TO scanner.css] */

/* [ACTIVE RULE ".sheet-header" MOVED TO scanner.css] */

/* [ACTIVE RULE ".sheet-title" MOVED TO scanner.css] */

/* [ACTIVE RULE ".sheet-close-btn" MOVED TO scanner.css] */

/* Accessibility screen-reader hidden helper */
/* [ACTIVE RULE ".sr-only" MOVED TO scanner.css] */

/* [ACTIVE RULE ".sheet-close-btn:active" MOVED TO scanner.css] */

/* [ACTIVE RULE ".sheet-divider" MOVED TO scanner.css] */

/* [ACTIVE RULE ".sheet-list" MOVED TO scanner.css] */

.sheet-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 8px 4px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.sheet-item:active {
  background-color: var(--bg-light);
}

.sheet-thumb-placeholder {
  width: 44px;
  height: 44px;
  background-color: #e8f5e9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.sheet-item-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  overflow: hidden;
}

.sheet-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-item-price-time {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-item-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: monospace;
}

.sheet-item-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sheet-item-chevron {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sheet-item-divider {
  width: 100%;
  border-top: 1px solid #f1f3f5;
  margin: 0;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* [ACTIVE .details-state BLOCK 2 & 3 MOVED TO scanner.css] */

/* Today's Price number micro-fade transition (Milestone 6.2) */
.price-val {
  transition: opacity 150ms ease;
  will-change: opacity;
}

.price-val.faded {
  opacity: 0.15;
}

/* Troubleshooting list style details */
.bulleted-guide {
  text-align: left;
  margin-top: 8px;
}
.bulleted-guide ul {
  margin: 6px 0;
  padding-left: 20px;
}
.bulleted-guide li {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Development performance metrics overlay */
.debug-overlay {
  position: absolute;
  top: 40px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #00ff66;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  padding: 6px 10px;
  border-radius: 6px;
  z-index: 100;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.4;
  text-shadow: 0 0 2px #00ff66;
}

/* Low Ambient light suggestions */
.low-light-tip {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(180, 83, 9, 0.95); /* Deep warning amber */
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 15;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: pulse-amber 2s infinite ease-in-out;
}

@keyframes pulse-amber {
  0% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, 0) scale(1.02); background-color: rgba(217, 119, 6, 0.95); }
  100% { transform: translate(-50%, 0) scale(1); }
}

/* PWA Update Banner Styling */
/* [ACTIVE RULE ".pwa-banner-container" MOVED TO scanner.css] */

/* [ACTIVE RULE ".pwa-banner-text" MOVED TO scanner.css] */

/* [ACTIVE RULE ".pwa-banner-btn" MOVED TO scanner.css] */

/* [ACTIVE RULE ".pwa-banner-btn:active" MOVED TO scanner.css] */
