/* ═══════════════════════════════════════════════════════════
   Retail Intel — Portal CSS
   Premium B2C grocery price comparison
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────── */
:root {
    /* Colors — O Preco Certo Theme (Navy + Gold) */
    --primary: #101f3a;
    --primary-light: #e8ecf2;
    --primary-dark: #0a1528;
    --primary-50: #f0f2f6;
    --accent: #d0b277;
    --accent-light: #f5efe3;
    --bg: #FAFBFC;
    --white: #FFFFFF;
    --surface: #FFFFFF;
    --surface-hover: #f4f5f7;
    --text: #1A1A2E;
    --text-secondary: #4A5568;
    --text-muted: #8B95A5;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --danger: #dc2626;
    --danger-bg: #fde8e8;
    --warning: #E8A317;
    --warning-bg: #FEF3C7;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-bg-dark: rgba(16, 31, 58, 0.75);
    --glass-blur: 16px;
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Gradients — Navy + Gold */
    --gradient-primary: linear-gradient(135deg, #0a1528 0%, #101f3a 50%, #1a3058 100%);
    --gradient-hero: linear-gradient(135deg, #080f1e 0%, #0a1528 40%, #101f3a 100%);
    --gradient-accent: linear-gradient(135deg, #f0f2f6 0%, #e8ecf2 50%, #f5efe3 100%);
    --gradient-success: linear-gradient(90deg, #16a34a, #22c55e);

    /* Elevation */
    --elevation-1: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --elevation-2: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --elevation-3: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --elevation-4: 0 20px 40px rgba(0,0,0,0.12);

    /* Radius */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-med: 0.25s ease;
}

/* ── Animations ─────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.5s ease both;
}
.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

/* ── Reset & Base ─────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.85; }

/* ── Navbar ─────────────────────── */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--elevation-1);
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--text);
}
.navbar-brand .logo-icon {
    width: 36px; height: 36px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: 16px;
}
.navbar-center {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.navbar-center a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-fast);
}
.navbar-center a:hover, .navbar-center a.active {
    background: var(--primary-light);
    color: var(--primary);
    opacity: 1;
}
.navbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
}
.navbar-toggle-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
}

/* Mode Toggle */
.mode-toggle {
    display: flex;
    background: var(--border-light);
    border-radius: 20px;
    padding: 2px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.mode-toggle span {
    padding: 4px 12px;
    border-radius: 18px;
    transition: all var(--transition-fast);
    color: var(--text-muted);
    user-select: none;
}
.mode-toggle span.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--elevation-1);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    background: var(--border-light);
    border-radius: 20px;
    padding: 2px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.lang-toggle a {
    padding: 4px 10px;
    border-radius: 18px;
    transition: all var(--transition-fast);
    color: var(--text-muted);
}
.lang-toggle a.active {
    background: var(--white);
    color: var(--text);
    box-shadow: var(--elevation-1);
    opacity: 1;
}

/* Hamburger */
.hamburger {
    display: none;
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text);
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    z-index: 99;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--elevation-3);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: all var(--transition-fast);
}
.mobile-menu a:hover, .mobile-menu a.active {
    background: var(--primary-light);
    color: var(--primary);
    opacity: 1;
}
.mobile-menu .mobile-toggles {
    display: flex;
    gap: 12px;
    padding: 12px 16px 4px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

/* Basket Badge */
.basket-badge {
    position: relative;
}
.basket-badge .badge-count {
    position: absolute;
    top: -6px; right: -6px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.basket-badge .badge-count.show { display: flex; }

/* ── Buttons ─────────────────────── */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 14px;
}
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }
.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover { background: #059669; }

/* ── Container ─────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Hero ─────────────────────── */
.hero {
    background: var(--gradient-hero);
    padding: 72px 24px 88px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 50%);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--bg), transparent);
}
.hero h1 {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 16px;
    position: relative;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease both;
}
.hero p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
    position: relative;
    animation: fadeInUp 0.6s ease 0.1s both;
}
.hero-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    position: relative;
    animation: fadeInUp 0.6s ease 0.3s both;
}
.hero-tag {
    padding: 6px 16px;
    background: rgba(255,255,255,0.12);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
}
.hero-tag:hover { background: rgba(255,255,255,0.22); color: white; opacity: 1; }

/* ── Search ─────────────────────── */
.search-container {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.6s ease 0.2s both;
}
.search-input {
    width: 100%;
    padding: 18px 56px 18px 24px;
    border-radius: var(--radius-lg);
    border: none;
    font-size: 17px;
    font-family: inherit;
    box-shadow: var(--elevation-4);
    outline: none;
    color: var(--text);
    transition: box-shadow var(--transition-fast);
}
.search-input:focus { box-shadow: var(--elevation-4), 0 0 0 3px rgba(37,99,235,0.15); }
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: var(--radius);
    background: var(--primary);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}
.search-btn:hover { background: var(--primary-dark); }

/* Autocomplete dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin-top: 6px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--elevation-3);
    display: none;
    z-index: 50;
    max-height: 340px;
    overflow-y: auto;
}
.autocomplete-dropdown.open { display: block; }
.autocomplete-item {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-light);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--surface-hover); }
.autocomplete-item .ac-name { font-weight: 500; font-size: 14px; }
.autocomplete-item .ac-price { font-weight: 700; color: var(--success); font-size: 13px; margin-left: auto; }

/* ── Stats Bar ─────────────────────── */
.stats-bar {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: 20px 0;
    margin-top: -44px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
    box-shadow: var(--elevation-3);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.5s ease 0.3s both;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0 24px;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 12px 16px;
}
.stat-item:not(:last-child) {
    border-right: 1px solid var(--border);
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    animation: countUp 0.4s ease both;
}
.stat-value .trend {
    font-size: 14px;
    font-weight: 600;
    margin-left: 6px;
}
.stat-value .trend.up { color: var(--danger); }
.stat-value .trend.down { color: var(--success); }
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* ── Section ─────────────────────── */
.section {
    padding: 48px 0;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-title {
    font-size: 24px;
    font-weight: 700;
}
.section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ── Glass Card ─────────────────────── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--elevation-1);
}

/* ── Categories ─────────────────────── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}
.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-med);
    border: 1.5px solid var(--border);
    color: var(--text);
}
.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--elevation-2);
    transform: translateY(-3px);
    opacity: 1;
}
.category-icon-wrap {
    width: 64px; height: 64px;
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    transition: transform var(--transition-med);
}
.category-card:hover .category-icon-wrap { transform: scale(1.08); }
.category-name { font-size: 14px; font-weight: 600; color: var(--text); }
.category-count { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Category Colors */
.category-frescos { background: #D1FAE5; color: #059669; }
.category-mercearia { background: #FEF3C7; color: #D97706; }
.category-bebidas { background: #DBEAFE; color: #2563EB; }
.category-lacticinios { background: #EDE9FE; color: #7C3AED; }
.category-congelados { background: #E0F2FE; color: #0284C7; }
.category-limpeza { background: #FCE7F3; color: #DB2777; }
.category-higiene { background: #D1FAE5; color: #059669; }
.category-bebes { background: #FFF7ED; color: #EA580C; }
.category-animais { background: #FEF3C7; color: #92400E; }
.category-bio { background: #ECFDF5; color: #047857; }
.category-suplementos { background: #FEF3C7; color: #B45309; }

/* ── Trend Rows ─────────────────────── */
.chart-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.trend-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    cursor: pointer;
}
.trend-row:hover { background: var(--surface-hover); }
.trend-rank {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.trend-rank.up { background: var(--danger-bg); color: var(--danger); }
.trend-rank.down { background: var(--success-bg); color: var(--success); }
.trend-avatar {
    width: 40px; height: 40px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.trend-avatar-1 { background: #FEF3C7; color: #D97706; }
.trend-avatar-2 { background: #FEE2E2; color: #92400E; }
.trend-avatar-3 { background: #EDE9FE; color: #7C3AED; }
.trend-avatar-4 { background: #DBEAFE; color: #2563EB; }
.trend-avatar-5 { background: #FEF9C3; color: #A16207; }
.trend-avatar-6 { background: #FCE7F3; color: #DB2777; }
.trend-sparkline {
    width: 64px; height: 28px;
    flex-shrink: 0;
}
.trend-badge-sm {
    font-size: 12px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
    display: inline-block; margin-top: 2px;
}
.trend-badge-sm.up { background: var(--danger-bg); color: var(--danger); }
.trend-badge-sm.down { background: var(--success-bg); color: var(--success); }

/* ── Deal Cards ─────────────────────── */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.deal-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition-med);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.deal-card:hover {
    border-color: var(--primary);
    box-shadow: var(--elevation-2);
    transform: translateY(-3px);
    opacity: 1;
}
.deal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.deal-img {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    object-fit: contain;
    background: #f8f9fa;
    flex-shrink: 0;
}
.deal-avatar {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800;
}
.deal-savings-circle { position: relative; width: 48px; height: 48px; }
.savings-ring { width: 48px; height: 48px; }
.savings-ring-bg { fill: none; stroke: var(--border-light); stroke-width: 3; }
.savings-ring-fill { fill: none; stroke: var(--success); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }
.savings-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    font-size: 11px; font-weight: 800; color: var(--success);
}
.deal-name { font-weight: 600; font-size: 15px; margin-bottom: 12px; line-height: 1.3; }
.deal-prices { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.deal-best { display: flex; align-items: center; gap: 8px; }
.deal-best-price { font-size: 22px; font-weight: 800; color: var(--success); }
.deal-store-tag { padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.deal-avg { text-align: right; }
.deal-bar-wrap { height: 6px; background: var(--border-light); border-radius: 3px; position: relative; overflow: hidden; }
.deal-bar-best { height: 100%; background: var(--gradient-success); border-radius: 3px; position: absolute; left: 0; top: 0; }

/* Add to basket button on cards */
.add-to-basket-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.add-to-basket-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.add-to-basket-btn.added {
    border-color: var(--success);
    background: var(--success-bg);
    color: var(--success);
}

/* ── Retailers ─────────────────────── */
.retailers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}
.retailer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    cursor: pointer;
    background: var(--white);
}
.retailer-card:hover { border-color: var(--primary); box-shadow: var(--elevation-1); }
.retailer-avatar {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 16px;
}
.retailer-name { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

/* ── CTA ─────────────────────── */
.cta-card {
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    border: 1px solid #BFDBFE;
}
.cta-icon {
    width: 80px; height: 80px;
    background: white;
    border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--elevation-2);
    color: var(--primary);
}

/* ── Search Results ─────────────────────── */
.search-result-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.search-result-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    transition: all var(--transition-med);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.search-result-card:hover {
    border-color: #d0b277;
    box-shadow: 0 4px 16px rgba(208,178,119,0.18);
    transform: translateY(-2px);
    opacity: 1;
}
.sr-header { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 8px; }
.sr-img {
    width: 100%; max-width: 140px; height: 120px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    flex-shrink: 0;
    padding: 8px;
    border: 1px solid var(--border-light);
}
.sr-avatar {
    width: 100%; max-width: 140px; height: 120px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 800; flex-shrink: 0;
    border: 1px solid var(--border-light);
}
.sr-name {
    font-weight: 600; font-size: 12px;
    text-align: center;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.3;
}
.sr-category { font-size: 10px; color: var(--text-muted); margin-top: 1px; text-align: center; }
.sr-savings {
    display: flex; align-items: center; gap: 3px;
    padding: 3px 8px; border-radius: 20px;
    background: var(--success-bg); color: var(--success);
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.sr-prices { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; margin-top: auto; }
.sr-best-price { font-size: 15px; font-weight: 800; color: var(--success); margin-bottom: 2px; }
.sr-freshness {
    display: flex; align-items: center; gap: 4px;
    font-size: 11px; margin-top: 4px; padding: 2px 0;
}
.sr-freshness svg { flex-shrink: 0; }
.sr-freshness-fresh { color: var(--text-muted); }
.sr-freshness-stale { color: #D97706; font-weight: 500; }
.sr-freshness-outdated { color: var(--danger); font-weight: 600; }
.sr-bar { height: 5px; background: var(--border-light); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.sr-bar-fill { height: 100%; background: var(--gradient-success); border-radius: 3px; }
.sr-retailers {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text-muted); font-weight: 500;
}
.popular-tag {
    padding: 8px 16px; border-radius: 20px;
    border: 1.5px solid var(--border); background: var(--white);
    font-size: 14px; color: var(--text);
    display: flex; align-items: center; gap: 6px;
    transition: all var(--transition-fast);
}
.popular-tag:hover { border-color: var(--primary); color: var(--primary); opacity: 1; }

/* Sort bar */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.sort-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.sort-btn:hover, .sort-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

/* ── Product type color-coded borders ── */
.search-result-card { border-left: 4px solid var(--border); }
.ptype-fresco      { border-left-color: #22C55E; } /* Green — fresh produce */
.ptype-bebida      { border-left-color: #3B82F6; } /* Blue — drinks/dairy */
.ptype-congelado   { border-left-color: #06B6D4; } /* Cyan — frozen */
.ptype-fiambre     { border-left-color: #F59E0B; } /* Amber — deli meats */
.ptype-snack       { border-left-color: #F97316; } /* Orange — snacks */
.ptype-conserva    { border-left-color: #64748B; } /* Slate — canned */
.ptype-tempero     { border-left-color: #EF4444; } /* Red — seasoning */
.ptype-processado  { border-left-color: #8B5CF6; } /* Purple — processed */
.ptype-pet         { border-left-color: #A16207; } /* Brown — pet food */
.ptype-bebe        { border-left-color: #EC4899; } /* Pink — baby */
.ptype-outro       { border-left-color: #94A3B8; } /* Gray — other */

/* ── Product type group headers ── */
.type-group { margin-bottom: 28px; }
.type-group:first-child { margin-top: 0; }
.type-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 0;
}
.type-group-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.type-group-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
.type-group-count {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}
.type-group-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    min-width: 40px;
}

/* ── Search grid responsive ── */
@media (max-width: 1400px) {
    .search-results-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1100px) {
    .search-results-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .search-results-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .search-results-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .search-result-card { padding: 10px; }
    .sr-img { height: 90px; padding: 6px; }
    .sr-avatar { height: 90px; }
    .sr-name { font-size: 12px; }
    .sr-best-price { font-size: 14px; }
}

/* ── Categories Detail ─────────────────────── */
.cat-detail-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cat-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.cat-card-large {
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: 28px 24px;
    text-align: center; cursor: pointer; transition: all var(--transition-med);
    position: relative; color: var(--text);
}
.cat-card-large:hover {
    border-color: var(--primary);
    box-shadow: var(--elevation-2);
    transform: translateY(-3px);
    opacity: 1;
}
.cat-card-icon {
    width: 72px; height: 72px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.cat-card-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.cat-card-count { font-size: 13px; color: var(--text-muted); }
.cat-card-arrow {
    position: absolute; top: 16px; right: 16px;
    color: var(--text-muted); opacity: 0; transition: opacity var(--transition-fast);
}
.cat-card-large:hover .cat-card-arrow { opacity: 1; }
.cat-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
}
.cat-product-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px;
    transition: all var(--transition-fast); cursor: pointer;
    text-decoration: none; color: inherit; display: block;
}
.cat-product-card:hover { border-color: var(--primary); box-shadow: var(--elevation-1); opacity: 1; }
.cat-product-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cat-product-img {
    width: 40px; height: 40px; border-radius: 10px;
    object-fit: contain; background: #f8f9fa; flex-shrink: 0;
}
.cat-product-avatar {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800; flex-shrink: 0;
}
.cat-product-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-savings-badge {
    padding: 3px 8px; border-radius: 4px;
    background: var(--success-bg); color: var(--success);
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.cat-product-prices { display: flex; align-items: center; gap: 8px; }
.cat-best-price { font-size: 18px; font-weight: 800; color: var(--success); }

/* ── Basket ─────────────────────── */
.basket-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--elevation-1);
}
.basket-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 2px solid var(--border);
    margin-top: 16px;
}
.basket-store {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: all var(--transition-fast);
}
.basket-store.best { background: var(--success-bg); }
.basket-store-name { font-weight: 600; }
.basket-store-price { font-weight: 700; font-size: 18px; }
.bs-avatar {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.basket-tag {
    padding: 8px 14px; border-radius: 20px;
    border: 1.5px solid var(--border); background: var(--white);
    font-size: 13px; font-family: inherit; cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    transition: all var(--transition-fast); color: var(--text);
}
.basket-tag:hover { border-color: var(--primary); color: var(--primary); }

/* Basket item card */
.basket-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.basket-item:last-child { border-bottom: none; }
.basket-item-info { flex: 1; min-width: 0; }
.basket-item-name { font-weight: 600; font-size: 14px; }
.basket-item-price { font-size: 13px; color: var(--text-muted); }
.basket-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}
.basket-item-qty button {
    width: 28px; height: 28px;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    background: var(--white);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.basket-item-qty button:hover { border-color: var(--primary); color: var(--primary); }
.basket-item-qty span { font-weight: 700; font-size: 14px; min-width: 24px; text-align: center; }

/* ── Trends Page ─────────────────────── */
.trends-stats-bar {
    display: flex; gap: 20px;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 24px;
}
.ts-item { display: flex; align-items: center; gap: 12px; }
.ts-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.ts-value { font-size: 22px; font-weight: 800; }
.ts-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.trend-item-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--white);
    margin-bottom: 8px; transition: all var(--transition-fast); cursor: pointer;
}
.trend-item-card:hover { border-color: var(--primary); box-shadow: var(--elevation-1); }
.ti-avatar {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ti-avatar.up { background: var(--danger-bg); color: var(--danger); }
.ti-avatar.down { background: var(--success-bg); color: var(--success); }
.ti-badge {
    font-size: 12px; font-weight: 700; padding: 2px 8px;
    border-radius: 4px; display: inline-block; margin-top: 2px;
}
.ti-badge.up { background: var(--danger-bg); color: var(--danger); }
.ti-badge.down { background: var(--success-bg); color: var(--success); }
.deals-grid-trends {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.deal-trend-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    transition: all var(--transition-med); cursor: pointer;
}
.deal-trend-card:hover { border-color: var(--primary); box-shadow: var(--elevation-2); transform: translateY(-2px); }
.dt-avatar {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800;
}
.dt-savings {
    padding: 3px 8px; border-radius: 4px;
    background: var(--success-bg); color: var(--success);
    font-size: 12px; font-weight: 700;
}

/* ── Product Detail ─────────────────────── */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 32px 0;
}
.product-image-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex; align-items: center; justify-content: center;
    min-height: 300px;
}
.product-image-wrap img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}
.product-price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.product-price-table th {
    background: var(--bg);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
.product-price-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.product-price-table tr:last-child td { border-bottom: none; }
.product-price-table tr:hover td { background: var(--surface-hover); }

/* ── Retailer Price Grid Squares (Product Page) ─────────────────────── */
.rpc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.rpc-square {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 12px;
    position: relative;
    text-align: center;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.rpc-square:hover {
    border-color: var(--primary);
    box-shadow: var(--elevation-1);
    transform: translateY(-2px);
}
.rpc-square.rpc-sq-cheapest {
    border-color: var(--success);
    background: linear-gradient(180deg, #F0FDF4 0%, var(--white) 60%);
}
.rpc-square.rpc-sq-expensive {
    border-color: #FCA5A5;
    background: linear-gradient(180deg, #FFF1F2 0%, var(--white) 60%);
}

/* Rank number */
.rpc-sq-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    background: var(--bg);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rpc-sq-cheapest .rpc-sq-rank {
    background: var(--success);
    color: white;
}
.rpc-sq-expensive .rpc-sq-rank {
    background: var(--danger);
    color: white;
}

/* Logo */
.rpc-sq-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}
.rpc-sq-logo img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
}
.rpc-sq-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
}

/* Store name */
.rpc-sq-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Price */
.rpc-sq-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
}
.rpc-sq-price-best {
    color: var(--success);
    font-size: 22px;
}
.rpc-sq-old-price {
    font-size: 11px;
    text-decoration: line-through;
    color: var(--text-muted);
    margin-top: -4px;
}

/* Promo tag */
.rpc-sq-promo {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--warning-bg);
    color: var(--warning);
    font-weight: 700;
}

/* Badge (cheapest / most expensive) */
.rpc-sq-badge {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 2px;
}
.rpc-sq-badge-cheap {
    background: var(--success);
    color: white;
}
.rpc-sq-badge-expensive {
    background: var(--danger);
    color: white;
}

/* Responsive: 2 columns on tablet, 2 on mobile */
@media (max-width: 768px) {
    .rpc-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .rpc-square { padding: 12px 8px; }
    .rpc-sq-logo, .rpc-sq-logo img, .rpc-sq-avatar { width: 40px; height: 40px; }
    .rpc-sq-price { font-size: 18px; }
    .rpc-sq-price-best { font-size: 20px; }
}
@media (max-width: 480px) {
    .rpc-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .rpc-square { padding: 10px 6px; }
    .rpc-sq-name { font-size: 11px; }
}

/* Retailer logo image (homepage grid) */
.retailer-logo-img {
    width: 52px; height: 52px;
    border-radius: 14px;
    object-fit: contain;
}

/* ── Pro Mode ─────────────────────── */
.pro-only { display: none; }
body.mode-pro .pro-only { display: block; }
body.mode-pro .pro-only-flex { display: flex; }
body.mode-pro .pro-only-grid { display: grid; }
body.mode-pro .pro-only-inline { display: inline; }
body.mode-pro .pro-only-inline-flex { display: inline-flex; }
.simple-only { display: block; }
body.mode-pro .simple-only { display: none; }

/* ── Comparison Table ─────────────────────── */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.comparison-table th {
    background: var(--bg);
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--surface-hover); }
.price-best { color: var(--success); font-weight: 700; }
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* ── Footer ─────────────────────── */
.footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 48px 0 24px;
    margin-top: 48px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer h4 { color: white; font-size: 15px; margin-bottom: 16px; }
.footer p, .footer a { color: #94A3B8; font-size: 14px; line-height: 1.6; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid #1E293B;
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

/* ── 404 ─────────────────────── */
.page-404 {
    text-align: center;
    padding: 80px 24px;
}
.page-404 h1 { font-size: 72px; font-weight: 900; color: var(--primary); }
.page-404 p { color: var(--text-muted); margin-top: 12px; }

/* ── Info Ticker ─────────────────────── */
.info-ticker {
    background: var(--gradient-primary);
    color: white;
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 0;
}
.ticker-inner {
    display: inline-block;
    animation: ticker-scroll 30s linear infinite;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Daily Highlights — Versus Cards ─────────────────────── */
.highlights-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    padding: 4px 0;
}
.highlight-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition-med);
    position: relative;
}
.highlight-card:hover { transform: translateY(-3px); }

/* ── Versus card (cheapest vs priciest) ── */
.hl-versus {
    background: var(--white);
    border: 1px solid var(--border);
}
.hl-versus-label {
    text-align: center;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 10px 12px 0;
}
.hl-versus-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    padding: 8px 10px 12px;
    gap: 0;
}
.hl-side {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: inherit;
    padding: 6px 4px;
    border-radius: 8px;
    transition: background var(--transition-fast);
}
.hl-side:hover { background: var(--bg); }
.hl-side-img {
    width: 40px; height: 40px;
    object-fit: contain;
    margin-bottom: 6px;
    border-radius: 6px;
}
.hl-side-price {
    font-size: 20px; font-weight: 900; line-height: 1;
    margin-bottom: 4px;
}
.hl-cheap .hl-side-price { color: #16A34A; }
.hl-expensive .hl-side-price { color: #DC2626; }
.hl-side-name {
    font-size: 10px; color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
    max-height: 2.4em; overflow: hidden;
    margin-bottom: 6px;
}
.hl-side-store {
    font-size: 10px; font-weight: 600; color: white;
    padding: 2px 8px; border-radius: 20px;
    white-space: nowrap;
}
.hl-versus-divider {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 0 6px;
    gap: 2px;
}
.hl-versus-diff {
    font-size: 11px; font-weight: 800;
    color: #DC2626;
    background: #FEE2E2;
    padding: 2px 6px; border-radius: 6px;
}
.hl-versus-arrow {
    color: var(--text-muted);
}

/* ── Price drop card ── */
.hl-drop-card {
    background: linear-gradient(135deg, #059669, #34D399);
    padding: 16px;
    text-decoration: none; color: white;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
}
.hl-drop-card:hover { color: white; }
.hl-drop-badge {
    font-size: 28px; font-weight: 900; line-height: 1;
    margin-bottom: 6px;
}
.hl-drop-img {
    width: 44px; height: 44px;
    object-fit: contain; border-radius: 8px;
    background: rgba(255,255,255,0.2);
    margin-bottom: 6px;
}
.hl-drop-label {
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    opacity: 0.85; margin-bottom: 4px;
}
.hl-drop-prices {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 700;
    margin-bottom: 4px;
}
.hl-drop-old { text-decoration: line-through; opacity: 0.7; }
.hl-drop-new { font-size: 16px; }
.hl-drop-name {
    font-size: 11px; opacity: 0.8;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 100%;
}

/* ── Simulated Cart Banner ─────────────────────── */
.sim-cart-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary-50) 0%, #EDE9FE 100%);
    border: 1.5px solid #BFDBFE;
    margin-bottom: 28px;
}
.sim-cart-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: var(--elevation-1);
}
.sim-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 20px;
    background: var(--white); color: var(--primary);
    font-size: 12px; font-weight: 600;
    border: 1px solid #BFDBFE;
}
.sim-tag-soon {
    background: var(--warning-bg); color: var(--warning);
    border-color: #FDE68A;
}

/* ── Similar Products ─────────────────────── */
.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.similar-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all var(--transition-med);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
}
.similar-card:hover {
    border-color: var(--primary);
    box-shadow: var(--elevation-2);
    transform: translateY(-3px);
    opacity: 1;
}
.similar-img-wrap {
    width: 100%; height: 100px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.similar-img-wrap img {
    max-width: 100%; max-height: 100px; object-fit: contain;
}
.similar-avatar {
    width: 48px; height: 48px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800;
}
.similar-name {
    font-weight: 600; font-size: 13px; line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.similar-brand {
    font-size: 11px; color: var(--text-muted); margin-bottom: 8px;
}
.similar-price-row {
    display: flex; align-items: center; gap: 6px; margin-top: auto;
}
.similar-price {
    font-size: 18px; font-weight: 800; color: var(--success);
}
.similar-savings {
    font-size: 11px; font-weight: 600; color: var(--success);
    margin-top: 4px;
}
.similar-basket-btn {
    position: absolute; top: 12px; right: 12px;
    width: 28px; height: 28px;
}

/* ── Design Polish ─────────────────────── */

/* Pulsing Buy button on product page */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}
.btn-success {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Gradient top border on deal cards */
.deal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-success);
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0;
    transition: opacity var(--transition-med);
}
.deal-card {
    position: relative;
}
.deal-card:hover::before {
    opacity: 1;
}

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.scroll-animate.animate-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* NEW badge for recently added products */
.new-badge {
    position: absolute;
    top: 10px; left: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 1.5s ease-in-out infinite;
    z-index: 2;
}

/* ── Responsive ─────────────────────── */
@media (max-width: 768px) {
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .hero { padding: 48px 24px 64px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .deals-grid { grid-template-columns: 1fr; }
    .deals-grid-trends { grid-template-columns: 1fr; }
    .retailers-grid { grid-template-columns: repeat(2, 1fr); }
    .search-results-grid { grid-template-columns: 1fr; }
    .cat-grid-large { grid-template-columns: repeat(2, 1fr); }
    .cat-products-grid { grid-template-columns: 1fr; }
    .trends-stats-bar { flex-direction: column; gap: 12px; }
    .product-hero { grid-template-columns: 1fr; }
    .highlights-strip { grid-template-columns: 1fr; }
    .similar-products-grid { grid-template-columns: repeat(2, 1fr); }
    .chart-card { display: none; }
    .trend-sparkline { display: none; }

    .navbar-center { display: none; }
    .navbar-right .btn { display: none; }
    .hamburger { display: flex; }

    .two-col-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-value { font-size: 22px; }
    .stat-icon { width: 40px; height: 40px; }
}

/* ── V3: Basket Tabs ─────────────────────── */
.basket-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 20px;
}
.basket-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.basket-tab:hover { color: var(--text); }
.basket-tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--elevation-1);
}

/* ── V3: Rank Badges ─────────────────────── */
.rank-badge {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
    background: var(--bg);
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    flex-shrink: 0;
}
.rank-badge.rank-best {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--success);
}

/* ── V3: Store logo in basket ─────────────────────── */
.bs-logo {
    width: 36px; height: 36px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ── V3: Basket store detail rows ─────────────────────── */
.basket-store-details {
    padding: 0 16px 8px;
}
.basket-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 0;
    border-bottom: 1px solid var(--border-light);
}
.basket-detail-row:last-child { border-bottom: none; }
.basket-detail-row.item-missing {
    color: var(--danger);
    opacity: 0.7;
}

.basket-store-price.price-best {
    color: var(--success);
}

/* ── V3: Combo Summary ─────────────────────── */
.combo-summary {
    background: linear-gradient(135deg, #F0FDF4 0%, var(--white) 60%);
    border: 1.5px solid var(--success);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}
.combo-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.combo-savings-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--success-bg);
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}
.combo-stores-needed {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── V3: Combo Store Groups ─────────────────────── */
.combo-store-group {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
}
.combo-store-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
}
.combo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
}
.combo-item:last-child { border-bottom: none; }

/* ── V3: Search retailer badge ─────────────────────── */
.sr-retailer-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

/* ── V3: Shop icons row in search results ─────────────────────── */
.sr-shop-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}
.sr-shop-icon {
    width: 22px; height: 22px;
    border-radius: 5px;
    object-fit: contain;
    border: 1px solid var(--border-light);
}
.sr-shop-dot {
    width: 22px; height: 22px;
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 8px; font-weight: 800; color: white;
    flex-shrink: 0;
}

/* ── V3: Autocomplete meta ─────────────────────── */
.ac-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ac-stores {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* ── V3: Responsive additions ─────────────────────── */
@media (max-width: 768px) {
    .combo-total-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .combo-total-row > div:last-child {
        text-align: left;
    }
    .basket-tab {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ═══════════════════════════════════════════════════════════
   Product Detail Page — Dark Glassmorphism + Bento Grid
   ═══════════════════════════════════════════════════════════ */

/* ── PDP Hero (Dark Glass) ─────────────────────── */
.pdp-hero {
    background: var(--gradient-hero);
    padding: 24px 0 48px;
    position: relative;
    overflow: hidden;
}
.pdp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.pdp-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    font-size: 13px;
    position: relative;
    z-index: 1;
}
.pdp-hero-breadcrumb a,
.pdp-hero-breadcrumb span { color: rgba(255,255,255,0.5); text-decoration: none; }
.pdp-hero-breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.pdp-hero-breadcrumb span:last-child { color: rgba(255,255,255,0.85); }
.pdp-hero-breadcrumb svg { opacity: 0.4; }

.pdp-hero-inner {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Image glass card */
.pdp-image-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
}
.pdp-image-glass img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}
.pdp-image-fallback {
    font-size: 72px;
    font-weight: 900;
    color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product info */
.pdp-info {
    color: white;
}
.pdp-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 8px;
    color: white;
}
.pdp-brand {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    margin-bottom: 20px;
}

/* Best price card (glass) */
.pdp-best-price-card {
    background: rgba(16, 185, 129, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 20px;
}
.pdp-best-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6EE7B7;
    margin-bottom: 8px;
}
.pdp-best-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}
.pdp-best-amount {
    font-size: 40px;
    font-weight: 900;
    color: #34D399;
    line-height: 1;
}
.pdp-best-store {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 700;
}
.pdp-savings-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.pdp-savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
    font-size: 12px;
    font-weight: 700;
}
.pdp-savings-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}
.pdp-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 10px;
    background: var(--success);
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    animation: pulse-glow 2s ease-in-out infinite;
    margin-top: 4px;
}
.pdp-buy-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    color: white;
}

/* Meta chips */
.pdp-meta-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.pdp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 600;
}

/* Basket button */
.pdp-basket-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.pdp-basket-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.3);
}
.pdp-basket-btn.pdp-basket-added {
    background: var(--success) !important;
    border-color: var(--success) !important;
}

/* ── Description Card ─────────────────────── */
.pdp-description-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 16px;
}
.pdp-description-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}
.pdp-description-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ── Weight Note ─────────────────────── */
.pdp-weight-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #B45309;
    background: var(--warning-bg);
    border: 1px solid #FDE68A;
    border-radius: var(--radius);
    padding: 10px 16px;
    margin-bottom: 16px;
}
.pdp-weight-note svg {
    flex-shrink: 0;
    stroke: #B45309;
}

/* ── Section titles ─────────────────────── */
.pdp-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pdp-section-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 3px 10px;
    background: var(--bg);
    border-radius: 6px;
}

/* ── Bento Price Grid ─────────────────────── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bento-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px 16px;
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.bento-card:hover {
    border-color: var(--primary);
    box-shadow: var(--elevation-2);
    transform: translateY(-3px);
    color: inherit;
}

/* Featured card (cheapest) — spans 2 cols */
.bento-featured {
    grid-column: span 2;
    grid-row: span 1;
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 40%, var(--white) 100%);
    border-color: var(--success);
    border-width: 2px;
}
.bento-featured:hover {
    border-color: #059669;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

/* Worst card */
.bento-worst {
    border-color: #FCA5A5;
    background: linear-gradient(180deg, #FFF1F2 0%, var(--white) 50%);
}
.bento-worst:hover {
    border-color: var(--danger);
}

/* Rank circle */
.bento-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    background: var(--bg);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bento-rank-best {
    background: var(--success);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.bento-rank-worst {
    background: var(--danger);
    color: white;
}

/* Store area */
.bento-store {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.bento-featured .bento-store {
    flex-direction: row;
    gap: 12px;
    flex-shrink: 0;
}
.bento-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: contain;
}
.bento-featured .bento-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
}
.bento-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}
.bento-featured .bento-avatar {
    width: 64px;
    height: 64px;
    font-size: 22px;
}
.bento-store-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}
.bento-featured .bento-store-name {
    font-size: 15px;
    max-width: none;
}

/* Price */
.bento-price {
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
}
.bento-price-best {
    font-size: 28px;
    color: var(--success);
}
.bento-old-price {
    font-size: 12px;
    text-decoration: line-through;
    color: var(--text-muted);
    margin-top: -4px;
}

/* Unit price */
.bento-unit-price {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: -2px;
}
.bento-featured .bento-unit-price {
    font-size: 12px;
}

/* Promo tag */
.bento-promo {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 5px;
    background: var(--warning-bg);
    color: #B45309;
    font-weight: 700;
}

/* Diff vs cheapest */
.bento-diff {
    font-size: 11px;
    font-weight: 700;
    color: var(--danger);
    padding: 2px 8px;
    border-radius: 5px;
    background: var(--danger-bg);
}

/* Badges */
.bento-badge-best {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--success);
    color: white;
}
.bento-badge-worst {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--danger);
    color: white;
}

/* Featured card internal layout override */
.bento-featured .bento-price {
    margin-left: auto;
}
.bento-featured .bento-badge-best {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* ── PDP Chart Card ─────────────────────── */
.pdp-chart-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.pdp-chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}
.pdp-chart-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.pdp-chart-sub {
    font-size: 13px;
    color: var(--text-muted);
}

/* Chart date range buttons */
.pdp-chart-range {
    display: flex; gap: 4px; align-items: center;
}
.pdp-range-btn {
    padding: 5px 12px; border: 1px solid var(--border); border-radius: 6px;
    background: var(--white); font-size: 12px; font-weight: 600; color: var(--text-muted);
    cursor: pointer; transition: all .15s;
}
.pdp-range-btn:hover { border-color: var(--primary); color: var(--primary); }
.pdp-range-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Price changes summary card */
.pdp-changes-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px;
}
.pdp-changes-title {
    font-size: 16px; font-weight: 700; margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.pdp-changes-table table {
    width: 100%; border-collapse: collapse;
}
.pdp-changes-table th {
    text-align: left; font-size: 11px; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
    padding: 8px 12px; border-bottom: 2px solid var(--border);
}
.pdp-changes-table td {
    padding: 10px 12px; border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.pdp-changes-table tr:last-child td { border-bottom: none; }
.pdp-changes-store { font-weight: 600; display: flex; align-items: center; }
.pdp-changes-prev { color: var(--text-muted); text-decoration: line-through; }
.pdp-changes-now { font-weight: 700; }
.pdp-changes-delta { font-weight: 700; display: flex; align-items: center; gap: 4px; }
.pdp-change-up { color: #DC2626; }
.pdp-change-down { color: #16A34A; }

/* Export bar */
.pdp-export-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
    flex-wrap: wrap; gap: 10px;
}
.pdp-export-label {
    font-size: 13px; color: var(--text-muted); font-weight: 500;
    display: flex; align-items: center; gap: 6px;
}
.pdp-export-actions { display: flex; gap: 8px; }
.pdp-export-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; border-radius: 6px; font-size: 12px; font-weight: 600;
    border: 1px solid var(--border); color: var(--text); background: var(--white);
    text-decoration: none; transition: all .15s; cursor: pointer;
}
.pdp-export-btn:hover { border-color: var(--primary); color: var(--primary); }
.pdp-export-btn-primary {
    background: var(--primary); color: white !important; border-color: var(--primary);
}
.pdp-export-btn-primary:hover { background: #005530; }

/* ── PDP Responsive ─────────────────────── */
@media (max-width: 900px) {
    .pdp-hero-inner {
        grid-template-columns: 260px 1fr;
        gap: 32px;
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-featured {
        grid-column: span 2;
    }
}
@media (max-width: 768px) {
    .pdp-hero { padding: 20px 0 36px; }
    .pdp-hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .pdp-image-glass {
        padding: 24px;
        min-height: 200px;
    }
    .pdp-image-glass img { max-height: 200px; }
    .pdp-title { font-size: 24px; }
    .pdp-best-amount { font-size: 32px; }
    .bento-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .bento-featured {
        grid-column: span 2;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .bento-featured .bento-store { flex-direction: column; }
    .bento-featured .bento-price { margin-left: 0; }
    .bento-featured .bento-logo,
    .bento-featured .bento-avatar { width: 52px; height: 52px; }
    .bento-card { padding: 14px 10px 12px; }
    .bento-logo, .bento-avatar { width: 44px; height: 44px; }
    .bento-price { font-size: 18px; }
    .bento-price-best { font-size: 22px; }
    .pdp-chart-card { display: none; }
}
@media (max-width: 480px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .bento-store-name { font-size: 11px; max-width: 90px; }
    .bento-price { font-size: 16px; }
    .bento-price-best { font-size: 20px; }
}


/* ═══════════════════════════════════════════════════════════
   Scanner Page
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   Radial Price Comparison — Product in center, prices radiate out
   ═══════════════════════════════════════════════════════════ */

/* Breadcrumb */
.radial-breadcrumb {
    display: flex; align-items: center; gap: 6px; font-size: 13px;
    color: var(--text-muted); flex-wrap: wrap;
}
.radial-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.radial-breadcrumb a:hover { color: var(--primary); }
.radial-breadcrumb span { color: var(--text); font-weight: 500; }

.radial-wrap {
    display: flex; align-items: center; justify-content: center;
    gap: 0; max-width: 1100px; margin: 0 auto; position: relative;
    min-height: 420px;
}

/* Side columns */
.radial-side {
    flex: 1; display: flex; flex-direction: column; gap: 14px;
    max-width: 320px; justify-content: center;
}
.radial-left { align-items: flex-end; }
.radial-right { align-items: flex-start; }

/* Center product — big circle */
.radial-center {
    flex: 0 0 300px; display: flex; flex-direction: column;
    align-items: center; padding: 0 4px; position: relative; z-index: 2;
}
.radial-product-circle {
    width: 280px; height: 280px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    position: relative; background: var(--white);
    border: 3px solid var(--border);
    box-shadow:
        0 0 0 12px var(--primary-50),
        0 0 60px rgba(37, 99, 235, 0.12),
        0 0 120px rgba(37, 99, 235, 0.06);
    overflow: hidden;
}
.radial-product-circle img {
    width: 75%; height: 75%; object-fit: contain; display: block;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.1));
}
.radial-img-fallback {
    width: 100%; height: 100%; background: var(--primary-light);
    color: var(--primary); display: flex; align-items: center; justify-content: center;
    font-size: 72px; font-weight: 800;
}
.radial-product-title {
    margin-top: 16px; font-size: 20px; font-weight: 700; color: var(--text);
    text-align: center; max-width: 280px; line-height: 1.3;
}
.radial-product-brand {
    font-size: 13px; color: var(--text-muted); margin-top: 2px; text-align: center;
}
.radial-product-meta {
    display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 10px;
}
.radial-meta-chip {
    font-size: 11px; font-weight: 500; color: var(--text-secondary);
    background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
    padding: 3px 8px;
}
.radial-basket-btn {
    margin-top: 14px; display: flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 10px; border: 2px solid var(--primary);
    background: var(--white); color: var(--primary);
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.radial-basket-btn:hover { background: var(--primary); color: white; }

/* Price tags */
.radial-tag {
    display: flex; align-items: center; gap: 0; position: relative;
    text-decoration: none; color: inherit; transition: transform 0.2s;
}
.radial-tag:hover { transform: scale(1.03); }
.radial-tag-content {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: 12px; padding: 10px 14px;
    box-shadow: var(--elevation-1); transition: all 0.2s;
    min-width: 160px;
}
.radial-tag:hover .radial-tag-content {
    border-color: var(--primary); box-shadow: var(--elevation-2);
}
.radial-tag-best .radial-tag-content {
    border-color: var(--success); background: var(--success-bg);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}
.radial-tag-logo {
    width: 32px; height: 32px; object-fit: contain; border-radius: 6px; flex-shrink: 0;
}
.radial-tag-avatar {
    width: 32px; height: 32px; border-radius: 6px; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.radial-tag-info { min-width: 0; }
.radial-tag-store {
    font-size: 12px; font-weight: 600; color: var(--text-secondary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px;
}
.radial-tag-price {
    font-size: 18px; font-weight: 800; color: var(--text); line-height: 1.2;
}
.radial-price-best { color: var(--success); font-size: 20px; }
.radial-tag-unit {
    font-size: 10px; color: var(--text-muted); font-weight: 500;
}
.radial-tag-promo {
    font-size: 9px; font-weight: 700; color: var(--danger); background: var(--danger-bg);
    padding: 1px 5px; border-radius: 4px; display: inline-block; margin-top: 2px;
}

/* Price change indicator on radial tags */
.radial-tag-change {
    font-size: 9px; font-weight: 600; margin-top: 3px;
    display: inline-flex; align-items: center; gap: 3px;
    padding: 1px 6px; border-radius: 4px;
}
.radial-change-up {
    color: #DC2626; background: #FEF2F2;
}
.radial-change-down {
    color: #16A34A; background: #F0FDF4;
}

/* Connector lines + arrows */
.radial-connector {
    display: flex; align-items: center; width: 100px; flex-shrink: 0;
}
.radial-connector-left { order: 1; }
.radial-connector-right { order: -1; }
.radial-arrow {
    flex: 1; height: 4px; stroke: var(--text-muted); stroke-width: 2.5;
    opacity: 0.6;
}
.radial-tag-best .radial-arrow { stroke: var(--success); stroke-width: 3; opacity: 1; }
.radial-tag:hover .radial-arrow { opacity: 1; stroke: var(--primary); }
.radial-arrowhead, .radial-arrowhead-right {
    width: 12px; height: 16px; color: var(--text-muted); flex-shrink: 0;
    opacity: 0.6;
}
.radial-tag-best .radial-arrowhead,
.radial-tag-best .radial-arrowhead-right { color: var(--success); opacity: 1; }
.radial-tag:hover .radial-arrowhead,
.radial-tag:hover .radial-arrowhead-right { color: var(--primary); opacity: 1; }

/* Badges */
.radial-badge-best {
    position: absolute; top: -8px;
    font-size: 9px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.5px; background: var(--success); color: white;
    padding: 2px 8px; border-radius: 6px; white-space: nowrap;
}
.radial-tag-left .radial-badge-best { right: 56px; }
.radial-tag-right .radial-badge-best { left: 56px; }
.radial-diff {
    position: absolute; bottom: -6px;
    font-size: 10px; font-weight: 700; color: var(--danger);
    background: var(--danger-bg); padding: 1px 6px; border-radius: 4px;
}
.radial-tag-left .radial-diff { right: 56px; }
.radial-tag-right .radial-diff { left: 56px; }

/* ── Radial Responsive ── */
@media (max-width: 768px) {
    .radial-wrap {
        flex-direction: column; align-items: center; gap: 0;
    }
    .radial-center { order: -1; margin-bottom: 24px; flex: 0 0 auto; }
    .radial-product-circle { width: 220px; height: 220px; }
    .radial-product-title { font-size: 18px; max-width: 260px; }
    .radial-side {
        max-width: 100%; width: 100%; flex-direction: column;
        align-items: stretch !important; gap: 8px;
    }
    .radial-tag { flex-direction: row !important; }
    .radial-tag-content { flex: 1; min-width: 0; }

    /* Hide SVG connectors on mobile, show a simpler left-border */
    .radial-connector { display: none; }
    .radial-tag-left, .radial-tag-right {
        border-left: 3px solid var(--text-muted); padding-left: 12px;
        margin-left: 16px;
    }
    .radial-tag-best.radial-tag-left,
    .radial-tag-best.radial-tag-right {
        border-left-color: var(--success);
    }
    .radial-badge-best { top: -8px; left: 20px !important; right: auto !important; }
    .radial-diff { bottom: -6px; left: 20px !important; right: auto !important; }
}
@media (max-width: 480px) {
    .radial-product-circle { width: 180px; height: 180px; box-shadow: 0 4px 20px rgba(37,99,235,0.08), 0 0 0 8px var(--primary-50); }
    .radial-img-fallback { font-size: 52px; }
    .radial-product-title { font-size: 16px; }
}


/* ═══════════════════════════════════════════════════════════
   Scanner Page
   ═══════════════════════════════════════════════════════════ */

.scanner-page { padding: 100px 0 60px; min-height: 100vh; }
.scanner-header { text-align: center; margin-bottom: 24px; }
.scanner-title {
    font-size: 24px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.scanner-subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 6px; }

/* Mode Toggle */
.scanner-mode-toggle {
    display: flex; justify-content: center; gap: 8px; margin-bottom: 20px;
}
.scanner-mode-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 12px; border: 2px solid var(--border);
    background: var(--white); color: var(--text-secondary);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.2s;
}
.scanner-mode-btn:hover { border-color: var(--primary); color: var(--primary); }
.scanner-mode-btn.active {
    background: var(--primary); color: white; border-color: var(--primary);
}
.scanner-pro-badge {
    font-size: 9px; font-weight: 800; letter-spacing: 0.5px;
    background: var(--accent); color: var(--text);
    padding: 2px 6px; border-radius: 4px;
}
.scanner-mode-btn.active .scanner-pro-badge { background: rgba(255,255,255,0.3); color: white; }

/* Camera Area */
.scanner-camera-wrap {
    max-width: 500px; margin: 0 auto 20px; position: relative;
}
.scanner-viewfinder {
    position: relative; border-radius: 16px; overflow: hidden;
    background: #0F172A; min-height: 300px;
}
.scanner-viewfinder video {
    width: 100%; height: 100%; object-fit: cover; display: block;
    border-radius: 16px;
}

/* Corner Overlay Guides */
.scanner-overlay {
    position: absolute; inset: 0; pointer-events: none; z-index: 2;
}
.scanner-corner {
    position: absolute; width: 32px; height: 32px;
    border-color: var(--primary); border-style: solid; border-width: 0;
}
.scanner-corner-tl { top: 24px; left: 24px; border-top-width: 3px; border-left-width: 3px; border-radius: 6px 0 0 0; }
.scanner-corner-tr { top: 24px; right: 24px; border-top-width: 3px; border-right-width: 3px; border-radius: 0 6px 0 0; }
.scanner-corner-bl { bottom: 24px; left: 24px; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 6px; }
.scanner-corner-br { bottom: 24px; right: 24px; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 6px 0; }

/* Capture Button */
.scanner-capture-btn {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 3; width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,0.9); border: 3px solid var(--primary);
    color: var(--primary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; backdrop-filter: blur(8px);
}
.scanner-capture-btn:hover { background: white; transform: translateX(-50%) scale(1.08); }
.scanner-capture-btn:active { transform: translateX(-50%) scale(0.95); }

/* Fallback */
.scanner-fallback {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 280px; background: var(--surface); border-radius: 16px;
    border: 2px dashed var(--border); color: var(--text-secondary); text-align: center;
    padding: 40px 20px;
}
.scanner-fallback p { margin-top: 12px; font-weight: 600; font-size: 16px; }
.scanner-fallback-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px !important; font-weight: 400 !important; }

/* Loading */
.scanner-loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 200px; text-align: center; color: var(--text-secondary);
}
.scanner-spinner {
    width: 40px; height: 40px; border: 3px solid var(--border);
    border-top-color: var(--primary); border-radius: 50%;
    animation: scannerSpin 0.8s linear infinite; margin-bottom: 12px;
}
@keyframes scannerSpin { to { transform: rotate(360deg); } }

/* Manual EAN Input */
.scanner-manual { max-width: 500px; margin: 0 auto 24px; }
.scanner-manual-form {
    display: flex; gap: 8px; background: var(--surface);
    border: 2px solid var(--border); border-radius: 12px;
    padding: 4px 4px 4px 14px; align-items: center;
}
.scanner-manual-form input {
    flex: 1; border: none; background: transparent; font-size: 14px;
    color: var(--text); outline: none; font-family: 'Inter', sans-serif;
}
.scanner-manual-form input::placeholder { color: var(--text-muted); }
.scanner-manual-form button { flex-shrink: 0; }

/* Results Area */
.scanner-results {
    max-width: 500px; margin: 0 auto;
    animation: scannerSlideUp 0.3s ease-out;
}
@keyframes scannerSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.scanner-results-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.scanner-results-header h3 { font-size: 18px; font-weight: 700; color: var(--text); }

/* Product Card */
.scanner-product-card {
    display: block;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 16px; margin-bottom: 12px;
    box-shadow: var(--elevation-1);
    text-decoration: none; color: inherit;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
a.scanner-product-card:hover {
    border-color: var(--primary); box-shadow: var(--elevation-2, 0 4px 12px rgba(0,0,0,0.15));
}
.scanner-card-top { display: flex; gap: 14px; align-items: flex-start; }
.scanner-card-image { width: 72px; height: 72px; flex-shrink: 0; border-radius: 10px; overflow: hidden; }
.scanner-card-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    background: var(--bg); border-radius: 10px;
}
.scanner-card-img-fallback {
    width: 72px; height: 72px; background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700; border-radius: 10px;
}
.scanner-card-info { flex: 1; min-width: 0; }
.scanner-card-name {
    font-size: 15px; font-weight: 600; color: var(--text);
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.scanner-card-brand { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.scanner-card-best { margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.scanner-card-price { font-size: 20px; font-weight: 800; color: var(--success); }
.scanner-card-store {
    font-size: 11px; font-weight: 600; background: var(--success-bg); color: var(--success);
    padding: 2px 8px; border-radius: 6px;
}
.scanner-card-nomatch {
    font-size: 12px; color: var(--text-muted); margin-top: 8px; font-style: italic;
}

/* Price List */
.scanner-prices { margin-top: 12px; border-top: 1px solid var(--border-light); padding-top: 10px; }
.scanner-price-row {
    display: flex; align-items: center; gap: 8px; padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none; color: inherit;
    transition: background 0.15s;
}
a.scanner-price-row { cursor: pointer; border-radius: 6px; margin: 0 -4px; padding: 6px 4px; }
a.scanner-price-row:hover { background: var(--primary-50, rgba(245,158,11,0.08)); }
.scanner-price-row:last-child { border-bottom: none; }
.scanner-price-best { background: var(--success-bg); margin: 0 -8px; padding: 6px 8px; border-radius: 8px; border-bottom: none; }
a.scanner-price-best:hover { background: var(--success-bg); }
.scanner-price-link-icon { color: var(--text-muted); flex-shrink: 0; opacity: 0.5; }
a.scanner-price-row:hover .scanner-price-link-icon { opacity: 1; color: var(--primary); }
.scanner-price-store { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); font-weight: 500; }
.scanner-price-logo { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.scanner-price-avatar {
    width: 20px; height: 20px; border-radius: 4px; font-size: 8px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.scanner-price-amount { font-size: 14px; font-weight: 700; color: var(--text); }
.scanner-best-tag {
    font-size: 10px; font-weight: 700; background: var(--success); color: white;
    padding: 2px 6px; border-radius: 4px;
}

/* Card Link (legacy, kept for compat) */
.scanner-card-link {
    display: block; text-align: center; margin-top: 12px;
    font-size: 13px; font-weight: 600; color: var(--primary);
    text-decoration: none; padding: 8px; border-radius: 8px;
    background: var(--primary-50); transition: background 0.2s;
}
.scanner-card-link:hover { background: var(--primary-light); }

/* Not Found */
.scanner-not-found {
    max-width: 500px; margin: 0 auto; text-align: center;
    padding: 40px 20px; color: var(--text-secondary);
    animation: scannerSlideUp 0.3s ease-out;
}
.scanner-not-found p { margin-top: 12px; font-size: 15px; font-weight: 600; }
.scanner-not-found-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; font-weight: 400; }

/* Pro Upgrade Prompt */
.scanner-pro-prompt {
    max-width: 500px; margin: 0 auto; text-align: center;
    padding: 40px 20px; background: var(--surface); border-radius: 16px;
    border: 2px solid var(--accent); animation: scannerSlideUp 0.3s ease-out;
}
.scanner-pro-prompt h3 { margin-top: 12px; font-size: 18px; font-weight: 700; color: var(--text); }
.scanner-pro-prompt p { margin-top: 6px; font-size: 14px; color: var(--text-secondary); }
.scanner-pro-prompt button { margin-top: 16px; }

/* No match card */
.scanner-no-match { opacity: 0.65; border-style: dashed; }

/* Cart Comparison */
.scanner-cart-comparison {
    max-width: 500px; margin: 24px auto 0;
    background: var(--surface); border: 2px solid var(--primary);
    border-radius: 16px; padding: 20px; box-shadow: var(--elevation-2);
    animation: scannerSlideUp 0.3s ease-out;
}
.scanner-cart-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.scanner-cart-header h3 {
    font-size: 16px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 8px; margin: 0;
}
.scanner-cart-count {
    font-size: 12px; font-weight: 600; background: var(--primary-light);
    color: var(--primary); padding: 3px 10px; border-radius: 8px;
}
.scanner-cart-best-inner {
    background: var(--success-bg); border-radius: 12px; padding: 16px;
    text-align: center; margin-bottom: 16px;
}
.scanner-cart-best-label {
    font-size: 11px; font-weight: 600; color: var(--success);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.scanner-cart-best-store {
    font-size: 16px; color: var(--text); display: flex;
    align-items: center; justify-content: center; gap: 6px;
}
.scanner-cart-best-total {
    font-size: 28px; font-weight: 800; color: var(--success); margin: 4px 0;
}
.scanner-cart-best-avail {
    font-size: 12px; color: var(--text-secondary);
}
.scanner-cart-missing { color: var(--danger); font-weight: 600; }

/* Store ranking rows */
.scanner-cart-store-row {
    display: flex; align-items: center; gap: 8px; padding: 8px 0;
    border-bottom: 1px solid var(--border-light); font-size: 13px;
}
.scanner-cart-store-row:last-child { border-bottom: none; }
.scanner-cart-store-best {
    background: var(--success-bg); margin: 0 -8px; padding: 8px;
    border-radius: 8px; border-bottom: none;
}
.scanner-cart-store-rank {
    width: 24px; font-size: 11px; font-weight: 700; color: var(--text-muted);
}
.scanner-cart-store-name {
    flex: 1; display: flex; align-items: center; gap: 6px;
    font-weight: 600; color: var(--text);
}
.scanner-cart-store-total {
    font-size: 15px; font-weight: 700; color: var(--text);
}
.scanner-cart-store-count {
    font-size: 11px; color: var(--text-muted); min-width: 36px; text-align: right;
}

/* Cheapest combo */
.scanner-cart-combo-inner {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    margin-top: 12px; padding: 10px; background: var(--primary-50);
    border-radius: 10px;
}
.scanner-cart-combo-label { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.scanner-cart-combo-total { font-size: 15px; font-weight: 800; color: var(--primary); }
.scanner-cart-combo-stores { font-size: 11px; color: var(--text-muted); }

/* Add all to basket */
.scanner-add-all-btn {
    width: 100%; margin-top: 16px; padding: 12px; border-radius: 12px;
    background: var(--gradient-primary); color: white; border: none;
    font-size: 15px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.scanner-add-all-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.scanner-add-all-done { background: var(--success) !important; }

/* ── Scanner Responsive ── */
@media (max-width: 768px) {
    .scanner-page { padding: 80px 12px 80px; }
    .scanner-title { font-size: 20px; }
    .scanner-viewfinder { min-height: 260px; }
    .scanner-mode-btn { padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 480px) {
    .scanner-page { padding: 70px 8px 80px; }
    .scanner-camera-wrap { max-width: 100%; }
    .scanner-results, .scanner-not-found, .scanner-pro-prompt, .scanner-manual, .scanner-cart-comparison { max-width: 100%; }
    .scanner-card-image { width: 60px; height: 60px; }
    .scanner-card-img-fallback { width: 60px; height: 60px; font-size: 20px; }
}

/* ═══════════════════════════════════════════════════════════
   V2 Consumer Portal — Portugal Theme Additions
   ═══════════════════════════════════════════════════════════ */

/* ── Retailer Logo Bar ─────────────────────── */
.retailer-logo-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.retailer-logo-bar::-webkit-scrollbar { display: none; }
.retailer-logo-bar img {
    height: 40px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
}
.retailer-logo-bar img:hover { opacity: 1; }

/* ── Retailer Logo Bar ─────────────────────── */
.retailer-logo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--elevation-1);
    flex-wrap: wrap;
}
.retailer-logo-bar img {
    height: 38px;
    flex-shrink: 0;
    opacity: 0.9;
    transition: all var(--transition-fast);
    border-radius: 6px;
}
.retailer-logo-bar img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ── Stats Bar ─────────────────────── */
.stats-bar {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--elevation-1);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}
@media (max-width: 768px) {
    .retailer-logo-bar {
        gap: 16px;
        padding: 12px 16px;
    }
    .retailer-logo-bar img {
        height: 40px;
    }
    .stats-grid {
        gap: 20px;
    }
    .stat-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    .stat-value {
        font-size: 20px;
    }
}

/* ── Product Cards v2 (with real images) ─────────────────────── */
.products-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.products-scroll::-webkit-scrollbar { display: none; }

.product-card-v2 {
    flex: 0 0 200px;
    scroll-snap-align: start;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition-med);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.product-card-v2:hover {
    box-shadow: var(--elevation-3);
    transform: translateY(-4px);
    border-color: var(--primary);
}
.product-card-v2 .pc-img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: #F8F9FA;
    padding: 12px;
}
.product-card-v2 .pc-body {
    padding: 12px;
}
.product-card-v2 .pc-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    color: var(--text);
}
.product-card-v2 .pc-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}
.product-card-v2 .pc-store {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    color: white;
    margin-top: 4px;
}
.product-card-v2 .pc-savings {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
}
.product-card-v2 .pc-add {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}
.product-card-v2 .pc-add:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ── Popular Searches Grid ─────────────────────── */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.popular-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition-fast);
    text-decoration: none;
}
.popular-item:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}
.popular-item img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
}

/* ── Category Cards v2 (with product images) ─────────────────────── */
.cat-card-v2 {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: white;
    transition: all var(--transition-med);
}
.cat-card-v2:hover { transform: scale(1.03); }
.cat-card-v2 .cat-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.cat-card-v2 .cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
}
.cat-card-v2 .cat-label {
    position: relative;
    z-index: 1;
    padding: 16px;
    width: 100%;
}
.cat-card-v2 .cat-label h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}
.cat-card-v2 .cat-label span {
    font-size: 12px;
    opacity: 0.8;
}

/* ── Supermarket Layout Infographic ─────────────────────── */
.store-layout-section {
    background: var(--primary-50);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-top: 16px;
}
.store-layout-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
}
.store-map {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--elevation-1);
}
.store-tips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.store-tip {
    background: white;
    border-radius: var(--radius-sm);
    padding: 14px;
    border-left: 3px solid var(--primary);
    transition: all var(--transition-fast);
}
.store-tip:hover {
    box-shadow: var(--elevation-2);
}
.store-tip h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.store-tip p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ── Customer Opinions ─────────────────────── */
.opinions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.opinion-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    transition: all var(--transition-fast);
}
.opinion-card:hover {
    box-shadow: var(--elevation-2);
}
.opinion-stars {
    color: #E8A317;
    font-size: 14px;
    margin-bottom: 8px;
}
.opinion-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    font-style: italic;
}
.opinion-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.opinion-date {
    font-size: 11px;
    color: var(--text-muted);
}
.opinion-form {
    background: var(--primary-50);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 16px;
}
.opinion-form textarea {
    width: 100%;
    padding: 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: border-color var(--transition-fast);
}
.opinion-form textarea:focus {
    border-color: var(--primary);
}
.star-rating {
    display: inline-flex;
    gap: 4px;
    font-size: 24px;
    cursor: pointer;
}
.star-rating span {
    color: var(--border);
    transition: color var(--transition-fast);
}
.star-rating span.active,
.star-rating span:hover,
.star-rating span:hover ~ span { color: var(--border); }
.star-rating:hover span { color: var(--border); }
.star-rating span:hover,
.star-rating span:hover ~ span { color: var(--border); }
.star-rating:hover span:hover,
.star-rating:hover span:hover ~ span,
.star-rating:hover span.hovered { color: #E8A317; }

/* ── Social Sharing ─────────────────────── */
.share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: opacity var(--transition-fast);
}
.share-btn:hover { opacity: 0.85; }
.share-btn.fb { background: #1877F2; }
.share-btn.tw { background: #1DA1F2; }
.share-btn.wa { background: #25D366; }
.share-btn.tg { background: #0088CC; }
.share-btn.copy-link {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

/* ── Retailer Logo Bar ─────────────────────── */
.retailer-logo-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    padding: 8px 0;
    overflow-x: auto;
}
.retailer-logo-bar img {
    height: 30px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
}
.retailer-logo-bar img:hover {
    opacity: 1;
}

/* ── Product Card v2 ─────────────────────── */
.product-card-v2 {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition-med);
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card-v2:hover {
    border-color: #d0b277;
    box-shadow: 0 4px 16px rgba(208,178,119,0.2);
    transform: translateY(-3px);
    opacity: 1;
}
.pc-img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 12px;
}
.pc-body {
    padding: 12px 14px 14px;
    flex: 1;
}
.pc-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
}
.pc-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--success);
}
.pc-store {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}
.pc-savings {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d0b277;
    color: #101f3a;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}
.pc-add {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* ── Products Scroll (horizontal strip) ─────────────────────── */
.products-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.products-scroll::-webkit-scrollbar { height: 4px; }
.products-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.products-scroll .product-card-v2 {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

/* ── Deals Grid v2 ─────────────────────── */
.deals-grid-v2 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

/* ── Category Group Headers ─────────────────── */
.category-group {
    margin-bottom: 28px;
}
.category-group:last-child {
    margin-bottom: 0;
}
.category-group-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    padding: 6px 0 6px 12px;
    border-left: 3px solid var(--accent);
    letter-spacing: 0.3px;
}

/* ── Flag accent strip ─────────────────────── */
.pt-flag-strip {
    height: 4px;
    background: linear-gradient(90deg, #101f3a 60%, #d0b277 60%);
}

/* ── V2 Responsive ─────────────────────── */
@media (max-width: 768px) {
    .store-layout-grid {
        grid-template-columns: 1fr;
    }
    .store-tips {
        grid-template-columns: 1fr;
    }
    .opinions-grid {
        grid-template-columns: 1fr;
    }
    .product-card-v2 {
        flex: 0 0 170px;
    }
    .deals-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .pc-img {
        height: 120px;
    }
}
@media (max-width: 480px) {
    .deals-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .pc-img {
        height: 100px;
    }
    .store-layout-section {
        padding: 16px;
    }
}

/* ── Price Freshness Badges ─────────────────────── */
.radial-tag-freshness {
    font-size: 10px;
    line-height: 1.2;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 3px;
}
.radial-tag-freshness svg { flex-shrink: 0; }
.freshness-fresh { color: var(--text-muted); }
.freshness-stale { color: #D97706; font-weight: 500; }
.freshness-outdated { color: var(--danger); font-weight: 600; }

/* ── Pack Badge ─────────────────────── */
.radial-meta-pack {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #3B82F620;
    color: #2563EB;
    border: 1px solid #3B82F640;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.radial-meta-pack svg { flex-shrink: 0; }

/* ── Variant Group Cards ─────────────────── */
.variant-group-card {
    display: flex;
    flex-direction: column;
}
.variant-group-card .variant-main-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.variant-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.variant-toggle:hover { background: var(--primary-50); }
.variant-chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
}
.variant-group-card.expanded .variant-chevron {
    transform: rotate(180deg);
}
.variant-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.variant-group-card.expanded .variant-list {
    max-height: 600px;
}
.variant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-top: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    transition: background 0.1s;
}
.variant-item:hover { background: var(--surface-hover); }
.variant-item-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.variant-item-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.variant-item-price {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}
.variant-item-shops {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}
.variant-see-all {
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
}

/* ── Trend Cards Grid (homepage) ─────────────────────── */
.trend-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.trend-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: all var(--transition-med);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.trend-card:hover {
    border-color: #d0b277;
    box-shadow: 0 4px 16px rgba(208,178,119,0.18);
    transform: translateY(-3px);
    opacity: 1;
}
.trend-card-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #f8f9fa;
    margin-bottom: 10px;
}
.trend-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.trend-card-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}
.trend-card-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}
.trend-card-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}
.trend-card-change.down {
    background: var(--success-bg);
    color: var(--success);
}
.trend-card-change.up {
    background: var(--danger-bg);
    color: var(--danger);
}
.trend-card-change.stable {
    background: var(--warning-bg);
    color: var(--warning);
}
.trend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* ── Tip Photo Cards (supermarket tips) ─────────────────────── */
.tip-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.tip-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/2;
    display: flex;
    align-items: flex-end;
    transition: all var(--transition-med);
}
.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--elevation-3);
}
.tip-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tip-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
}
.tip-card-content {
    position: relative;
    z-index: 1;
    padding: 16px;
    color: white;
}
.tip-card-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}
.tip-card-content p {
    font-size: 12px;
    opacity: 0.85;
    line-height: 1.3;
}

/* ── Tool Cards Primary (scanner/basket) ─────────────────────── */
.tool-card-primary {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    transition: all var(--transition-med);
}
.tool-card-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--elevation-3);
    opacity: 1;
    color: white;
}
.tool-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tool-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,50,30,0.9) 0%, rgba(0,50,30,0.4) 50%, rgba(0,50,30,0.2) 100%);
}
.tool-card-body {
    position: relative;
    z-index: 1;
    padding: 24px;
    width: 100%;
}

/* ── Responsive: new sections ─────────────────────── */
@media (max-width: 768px) {
    .trend-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .tip-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .tool-card-primary { min-height: 180px; }
}
@media (max-width: 480px) {
    .trend-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .tip-cards-grid { grid-template-columns: 1fr; }
}

/* Pagination */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
}
.pagination-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}
.pagination-active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    cursor: default;
}
.pagination-active:hover {
    background: var(--primary);
    color: white;
}

/* Product type filter chips */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}
.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.filter-chip-active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.filter-chip-active:hover {
    background: var(--primary);
    color: white;
}
.filter-chip-count {
    font-size: 11px;
    opacity: 0.7;
}

/* Filter chip type color dots */
.fchip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.fchip-fresco .fchip-dot      { background: #22C55E; }
.fchip-bebida .fchip-dot      { background: #3B82F6; }
.fchip-congelado .fchip-dot   { background: #06B6D4; }
.fchip-fiambre .fchip-dot     { background: #F59E0B; }
.fchip-snack .fchip-dot       { background: #F97316; }
.fchip-conserva .fchip-dot    { background: #64748B; }
.fchip-tempero .fchip-dot     { background: #EF4444; }
.fchip-processado .fchip-dot  { background: #8B5CF6; }
.fchip-pet .fchip-dot         { background: #A16207; }
.fchip-bebe .fchip-dot        { background: #EC4899; }
.fchip-outro .fchip-dot       { background: #94A3B8; }

/* Brand filter chips */
.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}
.brand-chip:hover {
    border-color: #6D28D9;
    color: #6D28D9;
    background: #F3E8FF;
}
.brand-chip-active {
    background: #6D28D9;
    border-color: #6D28D9;
    color: white;
}
.brand-chip-active:hover {
    background: #5B21B6;
    color: white;
}

/* ── Category Groups ─────────────────────── */
.category-group { margin-bottom: 28px; }
.category-group:last-child { margin-bottom: 0; }
.category-group-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px 0;
    padding: 6px 0 6px 12px;
    border-left: 3px solid var(--accent);
    letter-spacing: 0.3px;
}

/* ── Nav Highlight ─────────────────────── */
.nav-highlight {
    position: relative;
    font-weight: 700 !important;
}
.navbar-center .nav-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ── Feature Hero Card (Scanner) ─────────────────────── */
.feature-hero-card {
    display: block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 280px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-hero-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--elevation-4);
}
.feature-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feature-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,21,40,0.92) 0%, rgba(16,31,58,0.78) 50%, rgba(16,31,58,0.55) 100%);
}
.feature-hero-body {
    position: relative;
    z-index: 1;
    padding: 36px 40px;
}
.feature-hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.feature-hero-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}
.feature-hero-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 8px;
    color: white;
}
.feature-hero-desc {
    font-size: 15px;
    opacity: 0.9;
    max-width: 500px;
    line-height: 1.5;
    margin-bottom: 16px;
    color: white;
}
.feature-hero-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.feature-hero-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}
.feature-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 12px;
    transition: background 0.2s, transform 0.2s;
}
.feature-hero-card:hover .feature-hero-cta {
    background: #c5a566;
    transform: translateX(3px);
}

/* ── Feature Card Secondary (Cabaz, Barcode) ─────────────────────── */
.feature-card-secondary {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 240px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--elevation-4);
}
.feature-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feature-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,21,40,0.92) 0%, rgba(16,31,58,0.65) 50%, rgba(16,31,58,0.35) 100%);
}
.feature-card-body {
    position: relative;
    z-index: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 240px;
}
.feature-card-cta {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
    font-size: 14px;
    color: var(--accent);
    transition: transform 0.2s;
}
.feature-card-secondary:hover .feature-card-cta {
    transform: translateX(5px);
}

/* ── Responsive: Feature Cards ─────────────────────── */
@media (max-width: 768px) {
    .feature-hero-card {
        min-height: 220px;
        border-radius: 16px;
    }
    .feature-hero-body {
        padding: 24px;
    }
    .feature-hero-title {
        font-size: 22px;
    }
    .feature-hero-desc {
        font-size: 13px;
    }
    .feature-hero-features {
        gap: 8px;
    }
    .feature-hero-features span {
        font-size: 11px;
        padding: 4px 8px;
    }
    .feature-hero-cta {
        font-size: 14px;
        padding: 10px 22px;
    }
    .feature-card-secondary {
        min-height: 180px;
    }
    .feature-card-body {
        padding: 18px;
        min-height: 180px;
    }
}
