/* ══════════════════════════════════════════════════════
   GrocerySmart v1.0 — Design System
   ══════════════════════════════════════════════════════
   Dark premium theme with glassmorphism
   Voice-first, mobile-optimized
*/

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

/* ─── CSS Custom Properties ─── */
:root {
    /* Core palette — deep navy + vibrant greens */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --bg-glass-active: rgba(255, 255, 255, 0.12);
    
    /* Accent — vibrant green/teal for "fresh groceries" feel */
    --accent: #10b981;
    --accent-light: #34d399;
    --accent-dark: #059669;
    --accent-glow: rgba(16, 185, 129, 0.3);
    --accent-subtle: rgba(16, 185, 129, 0.1);
    
    /* Secondary accent — warm amber for deals/savings */
    --deal: #f59e0b;
    --deal-light: #fbbf24;
    --deal-glow: rgba(245, 158, 11, 0.3);
    
    /* Sale/on-sale red */
    --sale: #ef4444;
    --sale-light: #f87171;
    --sale-glow: rgba(239, 68, 68, 0.2);
    
    /* Text */
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-accent: #10b981;
    
    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(16, 185, 129, 0.3);
    
    /* Store colors */
    --walmart: #0071CE;
    --jewel: #E31837;
    --meijer: #8B5CF6;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);
    
    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animated background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ─── Layout ─── */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .app-container {
        max-width: 1200px;
        padding: 0 24px;
    }
}

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

.app-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.app-logo h1 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.app-logo .tagline {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-top: -2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* ─── Auth Screen ─── */
.auth-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
}

.auth-hero {
    text-align: center;
    margin-bottom: 40px;
}

.auth-hero-icon {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px var(--accent-glow));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-light), #6ee7b7, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-hero p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.auth-toggle {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-toggle a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--sale-light);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
    font-size: 16px;
}

/* ─── Voice Button ─── */
.voice-section {
    margin-bottom: 20px;
}

.voice-btn-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.voice-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--accent-glow);
    position: relative;
    flex-shrink: 0;
}

.voice-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.voice-btn.recording {
    background: linear-gradient(135deg, var(--sale), #dc2626);
    box-shadow: 0 4px 16px var(--sale-glow);
    animation: pulse-recording 1.5s ease-in-out infinite;
}

@keyframes pulse-recording {
    0%, 100% { box-shadow: 0 4px 16px var(--sale-glow); }
    50% { box-shadow: 0 4px 30px rgba(239, 68, 68, 0.5); }
}

.voice-btn.recording::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--sale-light);
    animation: ring-expand 1.5s ease-out infinite;
}

@keyframes ring-expand {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

.voice-input-area {
    flex: 1;
    position: relative;
}

.voice-input-area input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.voice-input-area input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.voice-input-area input::placeholder {
    color: var(--text-muted);
}

.voice-submit-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    transition: var(--transition);
}

.voice-submit-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.voice-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
    padding-left: 66px;
    min-height: 20px;
}

.voice-status.active {
    color: var(--sale-light);
}

/* ─── Navigation Tabs ─── */
.nav-tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    padding: 3px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-tab {
    flex: 1;
    padding: 10px 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    min-width: 70px;
}

.nav-tab:hover {
    color: var(--text-secondary);
    background: var(--bg-glass-hover);
}

.nav-tab.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
}

.nav-tab .tab-icon {
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
}

/* ─── Cards ─── */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
}

.card-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── Shopping List ─── */
.list-section {
    margin-bottom: 24px;
}

.aisle-group {
    margin-bottom: 16px;
}

.aisle-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.aisle-header .aisle-icon {
    font-size: 18px;
}

.aisle-header .aisle-count {
    margin-left: auto;
    background: var(--bg-glass);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    transition: var(--transition);
    cursor: default;
}

.list-item:hover {
    background: var(--bg-glass-hover);
}

.list-item.checked {
    opacity: 0.4;
}

.list-item.checked .item-name {
    text-decoration: line-through;
}

.item-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border-hover);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-checkbox:hover {
    border-color: var(--accent);
}

.item-checkbox.checked {
    background: var(--accent);
    border-color: var(--accent);
}

.item-checkbox.checked::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.item-quantity {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-glass);
    padding: 2px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.item-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    opacity: 0;
    transition: var(--transition);
}

.list-item:hover .item-delete {
    opacity: 1;
}

.item-delete:hover {
    color: var(--sale);
}

/* ─── Price Comparison ─── */
.price-section {
    margin-bottom: 20px;
}

.store-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.store-card.walmart { border-left-color: var(--walmart); }
.store-card.jewel-osco { border-left-color: var(--jewel); }
.store-card.meijer { border-left-color: var(--meijer); }

.store-card.cheapest {
    background: var(--accent-subtle);
    border-left-color: var(--accent);
}

.store-logo {
    font-size: 24px;
    width: 36px;
    text-align: center;
}

.store-info {
    flex: 1;
}

.store-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.store-items-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.store-total {
    font-size: 1.2rem;
    font-weight: 700;
}

.store-card.cheapest .store-total {
    color: var(--accent-light);
}

.savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent-subtle);
    color: var(--accent-light);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sale-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--sale-glow);
    color: var(--sale-light);
    padding: 2px 7px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Weekly Deals Grid ─── */
.deals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

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

.deal-store-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.deal-store-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.deal-store-logo {
    font-size: 20px;
}

.deal-store-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.deal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.deal-item:last-child {
    border-bottom: none;
}

.deal-item-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.deal-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.deal-item.on-sale .deal-item-price {
    color: var(--deal-light);
}

/* ─── Recipe Section ─── */
.recipe-input-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.recipe-input-row {
    display: flex;
    gap: 8px;
}

.recipe-input-row input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.recipe-input-row input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-zone:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.upload-zone-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.upload-zone p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.upload-zone .upload-hint {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 4px;
}

/* ─── Toast Notifications ─── */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    animation: slide-in 0.3s ease-out;
    max-width: 340px;
}

.toast.success { border-left: 3px solid var(--accent); }
.toast.error { border-left: 3px solid var(--sale); }
.toast.info { border-left: 3px solid var(--deal); }

@keyframes slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ─── Loading Spinner ─── */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    backdrop-filter: blur(4px);
}

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

.loading-content {
    text-align: center;
}

.loading-content .spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
    margin-bottom: 12px;
}

.loading-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ─── Empty States ─── */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 280px;
    margin: 0 auto;
}

/* ─── Section Headers ─── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.section-action {
    font-size: 0.8rem;
    color: var(--accent);
    cursor: pointer;
    text-decoration: none;
}

.section-action:hover {
    text-decoration: underline;
}

/* ─── Tab Panels ─── */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fade-in 0.2s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── List Selector ─── */
.list-selector {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.list-selector select {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.list-selector select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
    .app-container {
        padding: 0 12px;
    }
    
    .auth-card {
        padding: 24px;
    }
    
    .nav-tab {
        font-size: 0.7rem;
        padding: 8px 4px;
    }
    
    .card {
        padding: 14px;
    }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* ─── Selection ─── */
::selection {
    background: var(--accent);
    color: #fff;
}

/* ─── Cart compare section ─── */
.cart-compare-section {
    margin-top: 16px;
}

.compare-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.compare-summary-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.compare-summary-savings {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-light);
}

/* ─── Item price peek ─── */
.item-prices-peek {
    display: flex;
    gap: 4px;
    margin-top: 3px;
}

.price-dot {
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 500;
}

.price-dot.walmart { background: rgba(0, 113, 206, 0.15); color: #60a5fa; }
.price-dot.jewel { background: rgba(227, 24, 55, 0.15); color: #f87171; }
.price-dot.meijer { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.price-dot.cheapest { outline: 1px solid var(--accent); }
