@import url('vendor/inter.css');

:root, [data-theme="light"] {
    /* OfflyKart Global Typography System */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --brand-deep: #07552F;
    --brand-primary: #08783E;
    --brand-accent: #1877F2;
    --brand-highlight: #EAF7EE;
    --brand-foreground: #FFFFFF;
    --primary: #08783E;
    --secondary: #F8FAFC;
    --accent: #08783E;
    --accent-light: #EAF3FF;
    --text: #172B24;
    --text-light: #475569; /* AA on white and on light tinted cards */
    --card-bg: #FFFFFF;
    --card-hover: #EAF7EE;
    --border: #E2E8F0;
    --border-color: #E2E8F0;
    --success: #166534;
    --warning: #B45309;
    /* Text-safe status colours (WCAG AA 4.5:1 on white and light tints) */
    --warning-text: #B45309;
    --success-text: #166534;
    --danger-text: #B91C1C;
    --text-subtle: #475569;
    /* Aliases for variable names used by individual pages but never defined (an undefined
       var() makes backgrounds transparent and leaves white labels invisible). */
    --accent-primary: var(--accent);
    --bg-primary: var(--card-bg);
    --bg-secondary: var(--secondary);
    --bg-hover: var(--card-hover);
    --text-secondary: var(--text-light);
    --border-primary: var(--border);
    --card-bg-rgb: 255, 255, 255;
    --action: #c2410c;
    --danger: #B91C1C;
    --info: #1877F2;
    --info-contrast: #0B63CE;
    --link-color: #0B63CE;
    --input-bg: #FFFFFF;
    --input-text: #172B24;
    --input-placeholder: #64748B;
    --button-primary-bg: #08783E;
    --button-primary-text: #FFFFFF;
    --button-primary-hover-text: #FFFFFF;
    --button-danger-bg: #DC2626;
    --button-danger-text: #FFFFFF;
    --button-success-bg: #15803D;
    --button-success-text: #FFFFFF;
    --page-bg: #FFFFFF;
    --surface: var(--card-bg);
    --surface-secondary: var(--secondary);
    --text-primary: var(--text);
    --text-muted: var(--text-light);
    --control-border: var(--border);
    --focus-ring: #1877F2;
    --button-secondary-bg: var(--card-bg);
    --button-secondary-text: var(--text);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0px 4px 15px rgba(0,0,0,0.08);
    --shadow-sm: 0px 2px 8px rgba(0,0,0,0.05);
    --transition: 0.25s ease;
    --nav-bg: #0B63CE;
    --nav-text: #FFFFFF;
    --nav-border: rgba(255, 255, 255, 0.14);
    --nav-search-bg: #FFFFFF;
    --nav-search-border: #E2E8F0;
    --hero-start: #FFFFFF;
    --hero-end: #F8FAFC;
    --stat-bg: #FFFFFF;
    --sidebar-bg: #F8FAFC;
    --active-menu: var(--brand-primary);
    --hp-store-cta-bg: var(--brand-primary);
    --hp-store-cta-hover: #07552F;
    --hp-store-cta-color: #FFFFFF;
    --hp-store-cta-hover-color: #FFFFFF;
    --bg: var(--page-bg);
    --bg-dark: var(--brand-deep);
    --primary-color: var(--brand-primary);
    --accent-color: var(--brand-accent);
    --accent-hover: var(--brand-primary);
    --interactive: var(--brand-primary);
    --interactive-light: var(--brand-foreground);
    color-scheme: light;
}

/* Keep legacy inline-styled seller and admin views on the shared palette.
   Selectors match an exact colour only (followed by ";", a space or the end of the
   style attribute). Substring matching previously caught 8-digit tints such as
   #3b82f612 and forced them to the solid colour of their own text (invisible labels). */

[style*="background: #fff;" i],
[style*="background: #fff " i],
[style$="background: #fff" i],
[style*="background:#fff;" i],
[style*="background:#fff " i],
[style$="background:#fff" i],
[style*="background-color: #fff;" i],
[style*="background-color: #fff " i],
[style$="background-color: #fff" i],
[style*="background-color:#fff;" i],
[style*="background-color:#fff " i],
[style$="background-color:#fff" i],
[style*="background: #ffffff;" i],
[style*="background: #ffffff " i],
[style$="background: #ffffff" i],
[style*="background:#ffffff;" i],
[style*="background:#ffffff " i],
[style$="background:#ffffff" i],
[style*="background-color: #ffffff;" i],
[style*="background-color: #ffffff " i],
[style$="background-color: #ffffff" i],
[style*="background-color:#ffffff;" i],
[style*="background-color:#ffffff " i],
[style$="background-color:#ffffff" i] {
    background-color: var(--card-bg) !important;
}

[style*="background: #f8fafc;" i],
[style*="background: #f8fafc " i],
[style$="background: #f8fafc" i],
[style*="background:#f8fafc;" i],
[style*="background:#f8fafc " i],
[style$="background:#f8fafc" i],
[style*="background-color: #f8fafc;" i],
[style*="background-color: #f8fafc " i],
[style$="background-color: #f8fafc" i],
[style*="background-color:#f8fafc;" i],
[style*="background-color:#f8fafc " i],
[style$="background-color:#f8fafc" i],
[style*="background: #f9fafb;" i],
[style*="background: #f9fafb " i],
[style$="background: #f9fafb" i],
[style*="background:#f9fafb;" i],
[style*="background:#f9fafb " i],
[style$="background:#f9fafb" i],
[style*="background-color: #f9fafb;" i],
[style*="background-color: #f9fafb " i],
[style$="background-color: #f9fafb" i],
[style*="background-color:#f9fafb;" i],
[style*="background-color:#f9fafb " i],
[style$="background-color:#f9fafb" i],
[style*="background: #f1f5f9;" i],
[style*="background: #f1f5f9 " i],
[style$="background: #f1f5f9" i],
[style*="background:#f1f5f9;" i],
[style*="background:#f1f5f9 " i],
[style$="background:#f1f5f9" i],
[style*="background-color: #f1f5f9;" i],
[style*="background-color: #f1f5f9 " i],
[style$="background-color: #f1f5f9" i],
[style*="background-color:#f1f5f9;" i],
[style*="background-color:#f1f5f9 " i],
[style$="background-color:#f1f5f9" i] {
    background-color: var(--secondary) !important;
}

[style*="background: #10b981;" i],
[style*="background: #10b981 " i],
[style$="background: #10b981" i],
[style*="background:#10b981;" i],
[style*="background:#10b981 " i],
[style$="background:#10b981" i],
[style*="background-color: #10b981;" i],
[style*="background-color: #10b981 " i],
[style$="background-color: #10b981" i],
[style*="background-color:#10b981;" i],
[style*="background-color:#10b981 " i],
[style$="background-color:#10b981" i],
[style*="background: #16a34a;" i],
[style*="background: #16a34a " i],
[style$="background: #16a34a" i],
[style*="background:#16a34a;" i],
[style*="background:#16a34a " i],
[style$="background:#16a34a" i],
[style*="background-color: #16a34a;" i],
[style*="background-color: #16a34a " i],
[style$="background-color: #16a34a" i],
[style*="background-color:#16a34a;" i],
[style*="background-color:#16a34a " i],
[style$="background-color:#16a34a" i] {
    background-color: var(--success) !important;
}

[style*="background: rgba(16, 185, 129" i],
[style*="background:rgba(16, 185, 129" i],
[style*="background: rgba(34, 197, 94" i],
[style*="background:rgba(34, 197, 94" i] {
    background-color: var(--brand-highlight) !important;
}

[style*="background: #ecfdf5;" i],
[style*="background: #ecfdf5 " i],
[style$="background: #ecfdf5" i],
[style*="background:#ecfdf5;" i],
[style*="background:#ecfdf5 " i],
[style$="background:#ecfdf5" i],
[style*="background-color: #ecfdf5;" i],
[style*="background-color: #ecfdf5 " i],
[style$="background-color: #ecfdf5" i],
[style*="background-color:#ecfdf5;" i],
[style*="background-color:#ecfdf5 " i],
[style$="background-color:#ecfdf5" i],
[style*="background: #dcfce7;" i],
[style*="background: #dcfce7 " i],
[style$="background: #dcfce7" i],
[style*="background:#dcfce7;" i],
[style*="background:#dcfce7 " i],
[style$="background:#dcfce7" i],
[style*="background-color: #dcfce7;" i],
[style*="background-color: #dcfce7 " i],
[style$="background-color: #dcfce7" i],
[style*="background-color:#dcfce7;" i],
[style*="background-color:#dcfce7 " i],
[style$="background-color:#dcfce7" i] {
    background-color: var(--brand-highlight) !important;
}

[style*="background: #2563eb;" i],
[style*="background: #2563eb " i],
[style$="background: #2563eb" i],
[style*="background:#2563eb;" i],
[style*="background:#2563eb " i],
[style$="background:#2563eb" i],
[style*="background-color: #2563eb;" i],
[style*="background-color: #2563eb " i],
[style$="background-color: #2563eb" i],
[style*="background-color:#2563eb;" i],
[style*="background-color:#2563eb " i],
[style$="background-color:#2563eb" i],
[style*="background: #3b82f6;" i],
[style*="background: #3b82f6 " i],
[style$="background: #3b82f6" i],
[style*="background:#3b82f6;" i],
[style*="background:#3b82f6 " i],
[style$="background:#3b82f6" i],
[style*="background-color: #3b82f6;" i],
[style*="background-color: #3b82f6 " i],
[style$="background-color: #3b82f6" i],
[style*="background-color:#3b82f6;" i],
[style*="background-color:#3b82f6 " i],
[style$="background-color:#3b82f6" i] {
    background-color: var(--info-contrast) !important;
}

[style*="background: rgba(59, 130, 246" i],
[style*="background:rgba(59, 130, 246" i],
[style*="background: rgba(37, 99, 235" i],
[style*="background:rgba(37, 99, 235" i] {
    background-color: var(--accent-light) !important;
}

[style*="background: #eff6ff;" i],
[style*="background: #eff6ff " i],
[style$="background: #eff6ff" i],
[style*="background:#eff6ff;" i],
[style*="background:#eff6ff " i],
[style$="background:#eff6ff" i],
[style*="background-color: #eff6ff;" i],
[style*="background-color: #eff6ff " i],
[style$="background-color: #eff6ff" i],
[style*="background-color:#eff6ff;" i],
[style*="background-color:#eff6ff " i],
[style$="background-color:#eff6ff" i],
[style*="background: #dbeafe;" i],
[style*="background: #dbeafe " i],
[style$="background: #dbeafe" i],
[style*="background:#dbeafe;" i],
[style*="background:#dbeafe " i],
[style$="background:#dbeafe" i],
[style*="background-color: #dbeafe;" i],
[style*="background-color: #dbeafe " i],
[style$="background-color: #dbeafe" i],
[style*="background-color:#dbeafe;" i],
[style*="background-color:#dbeafe " i],
[style$="background-color:#dbeafe" i] {
    background-color: var(--accent-light) !important;
}

[style*="background: #ef4444;" i],
[style*="background: #ef4444 " i],
[style$="background: #ef4444" i],
[style*="background:#ef4444;" i],
[style*="background:#ef4444 " i],
[style$="background:#ef4444" i],
[style*="background-color: #ef4444;" i],
[style*="background-color: #ef4444 " i],
[style$="background-color: #ef4444" i],
[style*="background-color:#ef4444;" i],
[style*="background-color:#ef4444 " i],
[style$="background-color:#ef4444" i],
[style*="background: #dc2626;" i],
[style*="background: #dc2626 " i],
[style$="background: #dc2626" i],
[style*="background:#dc2626;" i],
[style*="background:#dc2626 " i],
[style$="background:#dc2626" i],
[style*="background-color: #dc2626;" i],
[style*="background-color: #dc2626 " i],
[style$="background-color: #dc2626" i],
[style*="background-color:#dc2626;" i],
[style*="background-color:#dc2626 " i],
[style$="background-color:#dc2626" i] {
    background-color: var(--danger) !important;
}

[style*="background: rgba(239, 68, 68, 0.05" i],
[style*="background:rgba(239, 68, 68, 0.05" i],
[style*="background: rgba(239, 68, 68, 0.1" i],
[style*="background:rgba(239, 68, 68, 0.1" i],
[style*="background: rgba(239, 68, 68, 0.12" i],
[style*="background:rgba(239, 68, 68, 0.12" i],
[style*="background: rgba(239, 68, 68, 0.15" i],
[style*="background:rgba(239, 68, 68, 0.15" i],
[style*="background: rgba(220, 38, 38, 0.05" i],
[style*="background:rgba(220, 38, 38, 0.05" i],
[style*="background: rgba(220, 38, 38, 0.1" i],
[style*="background:rgba(220, 38, 38, 0.1" i],
[style*="background: rgba(220, 38, 38, 0.12" i],
[style*="background:rgba(220, 38, 38, 0.12" i],
[style*="background: rgba(220, 38, 38, 0.15" i],
[style*="background:rgba(220, 38, 38, 0.15" i] {
    background-color: #FEF2F2 !important;
}

[style*="background: #fee2e2;" i],
[style*="background: #fee2e2 " i],
[style$="background: #fee2e2" i],
[style*="background:#fee2e2;" i],
[style*="background:#fee2e2 " i],
[style$="background:#fee2e2" i],
[style*="background-color: #fee2e2;" i],
[style*="background-color: #fee2e2 " i],
[style$="background-color: #fee2e2" i],
[style*="background-color:#fee2e2;" i],
[style*="background-color:#fee2e2 " i],
[style$="background-color:#fee2e2" i],
[style*="background: #fef2f2;" i],
[style*="background: #fef2f2 " i],
[style$="background: #fef2f2" i],
[style*="background:#fef2f2;" i],
[style*="background:#fef2f2 " i],
[style$="background:#fef2f2" i],
[style*="background-color: #fef2f2;" i],
[style*="background-color: #fef2f2 " i],
[style$="background-color: #fef2f2" i],
[style*="background-color:#fef2f2;" i],
[style*="background-color:#fef2f2 " i],
[style$="background-color:#fef2f2" i] {
    background-color: #FEF2F2 !important;
}

[style*="background: #f59e0b;" i],
[style*="background: #f59e0b " i],
[style$="background: #f59e0b" i],
[style*="background:#f59e0b;" i],
[style*="background:#f59e0b " i],
[style$="background:#f59e0b" i],
[style*="background-color: #f59e0b;" i],
[style*="background-color: #f59e0b " i],
[style$="background-color: #f59e0b" i],
[style*="background-color:#f59e0b;" i],
[style*="background-color:#f59e0b " i],
[style$="background-color:#f59e0b" i],
[style*="background: #d97706;" i],
[style*="background: #d97706 " i],
[style$="background: #d97706" i],
[style*="background:#d97706;" i],
[style*="background:#d97706 " i],
[style$="background:#d97706" i],
[style*="background-color: #d97706;" i],
[style*="background-color: #d97706 " i],
[style$="background-color: #d97706" i],
[style*="background-color:#d97706;" i],
[style*="background-color:#d97706 " i],
[style$="background-color:#d97706" i] {
    background-color: var(--warning) !important;
    color: #FFFFFF !important;
}

[style*="background: #fef3c7;" i],
[style*="background: #fef3c7 " i],
[style$="background: #fef3c7" i],
[style*="background:#fef3c7;" i],
[style*="background:#fef3c7 " i],
[style$="background:#fef3c7" i],
[style*="background-color: #fef3c7;" i],
[style*="background-color: #fef3c7 " i],
[style$="background-color: #fef3c7" i],
[style*="background-color:#fef3c7;" i],
[style*="background-color:#fef3c7 " i],
[style$="background-color:#fef3c7" i],
[style*="background: #fffbeb;" i],
[style*="background: #fffbeb " i],
[style$="background: #fffbeb" i],
[style*="background:#fffbeb;" i],
[style*="background:#fffbeb " i],
[style$="background:#fffbeb" i],
[style*="background-color: #fffbeb;" i],
[style*="background-color: #fffbeb " i],
[style$="background-color: #fffbeb" i],
[style*="background-color:#fffbeb;" i],
[style*="background-color:#fffbeb " i],
[style$="background-color:#fffbeb" i] {
    background-color: #FFFBEB !important;
}

[style^="color: #0f172a;" i],
[style^="color: #0f172a " i],
[style="color: #0f172a" i],
[style*=";color: #0f172a;" i],
[style*=";color: #0f172a " i],
[style$=";color: #0f172a" i],
[style*="; color: #0f172a;" i],
[style*="; color: #0f172a " i],
[style$="; color: #0f172a" i],
[style^="color:#0f172a;" i],
[style^="color:#0f172a " i],
[style="color:#0f172a" i],
[style*=";color:#0f172a;" i],
[style*=";color:#0f172a " i],
[style$=";color:#0f172a" i],
[style*="; color:#0f172a;" i],
[style*="; color:#0f172a " i],
[style$="; color:#0f172a" i],
[style^="color: #1e293b;" i],
[style^="color: #1e293b " i],
[style="color: #1e293b" i],
[style*=";color: #1e293b;" i],
[style*=";color: #1e293b " i],
[style$=";color: #1e293b" i],
[style*="; color: #1e293b;" i],
[style*="; color: #1e293b " i],
[style$="; color: #1e293b" i],
[style^="color:#1e293b;" i],
[style^="color:#1e293b " i],
[style="color:#1e293b" i],
[style*=";color:#1e293b;" i],
[style*=";color:#1e293b " i],
[style$=";color:#1e293b" i],
[style*="; color:#1e293b;" i],
[style*="; color:#1e293b " i],
[style$="; color:#1e293b" i],
[style^="color: #334155;" i],
[style^="color: #334155 " i],
[style="color: #334155" i],
[style*=";color: #334155;" i],
[style*=";color: #334155 " i],
[style$=";color: #334155" i],
[style*="; color: #334155;" i],
[style*="; color: #334155 " i],
[style$="; color: #334155" i],
[style^="color:#334155;" i],
[style^="color:#334155 " i],
[style="color:#334155" i],
[style*=";color:#334155;" i],
[style*=";color:#334155 " i],
[style$=";color:#334155" i],
[style*="; color:#334155;" i],
[style*="; color:#334155 " i],
[style$="; color:#334155" i] {
    color: var(--text) !important;
}

[style^="color: #10b981;" i],
[style^="color: #10b981 " i],
[style="color: #10b981" i],
[style*=";color: #10b981;" i],
[style*=";color: #10b981 " i],
[style$=";color: #10b981" i],
[style*="; color: #10b981;" i],
[style*="; color: #10b981 " i],
[style$="; color: #10b981" i],
[style^="color:#10b981;" i],
[style^="color:#10b981 " i],
[style="color:#10b981" i],
[style*=";color:#10b981;" i],
[style*=";color:#10b981 " i],
[style$=";color:#10b981" i],
[style*="; color:#10b981;" i],
[style*="; color:#10b981 " i],
[style$="; color:#10b981" i],
[style^="color: #16a34a;" i],
[style^="color: #16a34a " i],
[style="color: #16a34a" i],
[style*=";color: #16a34a;" i],
[style*=";color: #16a34a " i],
[style$=";color: #16a34a" i],
[style*="; color: #16a34a;" i],
[style*="; color: #16a34a " i],
[style$="; color: #16a34a" i],
[style^="color:#16a34a;" i],
[style^="color:#16a34a " i],
[style="color:#16a34a" i],
[style*=";color:#16a34a;" i],
[style*=";color:#16a34a " i],
[style$=";color:#16a34a" i],
[style*="; color:#16a34a;" i],
[style*="; color:#16a34a " i],
[style$="; color:#16a34a" i],
[style^="color: #059669;" i],
[style^="color: #059669 " i],
[style="color: #059669" i],
[style*=";color: #059669;" i],
[style*=";color: #059669 " i],
[style$=";color: #059669" i],
[style*="; color: #059669;" i],
[style*="; color: #059669 " i],
[style$="; color: #059669" i],
[style^="color:#059669;" i],
[style^="color:#059669 " i],
[style="color:#059669" i],
[style*=";color:#059669;" i],
[style*=";color:#059669 " i],
[style$=";color:#059669" i],
[style*="; color:#059669;" i],
[style*="; color:#059669 " i],
[style$="; color:#059669" i] {
    color: var(--success-text) !important;
}

[style^="color: #2563eb;" i],
[style^="color: #2563eb " i],
[style="color: #2563eb" i],
[style*=";color: #2563eb;" i],
[style*=";color: #2563eb " i],
[style$=";color: #2563eb" i],
[style*="; color: #2563eb;" i],
[style*="; color: #2563eb " i],
[style$="; color: #2563eb" i],
[style^="color:#2563eb;" i],
[style^="color:#2563eb " i],
[style="color:#2563eb" i],
[style*=";color:#2563eb;" i],
[style*=";color:#2563eb " i],
[style$=";color:#2563eb" i],
[style*="; color:#2563eb;" i],
[style*="; color:#2563eb " i],
[style$="; color:#2563eb" i],
[style^="color: #3b82f6;" i],
[style^="color: #3b82f6 " i],
[style="color: #3b82f6" i],
[style*=";color: #3b82f6;" i],
[style*=";color: #3b82f6 " i],
[style$=";color: #3b82f6" i],
[style*="; color: #3b82f6;" i],
[style*="; color: #3b82f6 " i],
[style$="; color: #3b82f6" i],
[style^="color:#3b82f6;" i],
[style^="color:#3b82f6 " i],
[style="color:#3b82f6" i],
[style*=";color:#3b82f6;" i],
[style*=";color:#3b82f6 " i],
[style$=";color:#3b82f6" i],
[style*="; color:#3b82f6;" i],
[style*="; color:#3b82f6 " i],
[style$="; color:#3b82f6" i],
[style^="color: #6366f1;" i],
[style^="color: #6366f1 " i],
[style="color: #6366f1" i],
[style*=";color: #6366f1;" i],
[style*=";color: #6366f1 " i],
[style$=";color: #6366f1" i],
[style*="; color: #6366f1;" i],
[style*="; color: #6366f1 " i],
[style$="; color: #6366f1" i],
[style^="color:#6366f1;" i],
[style^="color:#6366f1 " i],
[style="color:#6366f1" i],
[style*=";color:#6366f1;" i],
[style*=";color:#6366f1 " i],
[style$=";color:#6366f1" i],
[style*="; color:#6366f1;" i],
[style*="; color:#6366f1 " i],
[style$="; color:#6366f1" i] {
    color: var(--link-color) !important;
}

[style^="color: #ef4444;" i],
[style^="color: #ef4444 " i],
[style="color: #ef4444" i],
[style*=";color: #ef4444;" i],
[style*=";color: #ef4444 " i],
[style$=";color: #ef4444" i],
[style*="; color: #ef4444;" i],
[style*="; color: #ef4444 " i],
[style$="; color: #ef4444" i],
[style^="color:#ef4444;" i],
[style^="color:#ef4444 " i],
[style="color:#ef4444" i],
[style*=";color:#ef4444;" i],
[style*=";color:#ef4444 " i],
[style$=";color:#ef4444" i],
[style*="; color:#ef4444;" i],
[style*="; color:#ef4444 " i],
[style$="; color:#ef4444" i],
[style^="color: #dc2626;" i],
[style^="color: #dc2626 " i],
[style="color: #dc2626" i],
[style*=";color: #dc2626;" i],
[style*=";color: #dc2626 " i],
[style$=";color: #dc2626" i],
[style*="; color: #dc2626;" i],
[style*="; color: #dc2626 " i],
[style$="; color: #dc2626" i],
[style^="color:#dc2626;" i],
[style^="color:#dc2626 " i],
[style="color:#dc2626" i],
[style*=";color:#dc2626;" i],
[style*=";color:#dc2626 " i],
[style$=";color:#dc2626" i],
[style*="; color:#dc2626;" i],
[style*="; color:#dc2626 " i],
[style$="; color:#dc2626" i],
[style^="color: #b91c1c;" i],
[style^="color: #b91c1c " i],
[style="color: #b91c1c" i],
[style*=";color: #b91c1c;" i],
[style*=";color: #b91c1c " i],
[style$=";color: #b91c1c" i],
[style*="; color: #b91c1c;" i],
[style*="; color: #b91c1c " i],
[style$="; color: #b91c1c" i],
[style^="color:#b91c1c;" i],
[style^="color:#b91c1c " i],
[style="color:#b91c1c" i],
[style*=";color:#b91c1c;" i],
[style*=";color:#b91c1c " i],
[style$=";color:#b91c1c" i],
[style*="; color:#b91c1c;" i],
[style*="; color:#b91c1c " i],
[style$="; color:#b91c1c" i],
[style^="color: #991b1b;" i],
[style^="color: #991b1b " i],
[style="color: #991b1b" i],
[style*=";color: #991b1b;" i],
[style*=";color: #991b1b " i],
[style$=";color: #991b1b" i],
[style*="; color: #991b1b;" i],
[style*="; color: #991b1b " i],
[style$="; color: #991b1b" i],
[style^="color:#991b1b;" i],
[style^="color:#991b1b " i],
[style="color:#991b1b" i],
[style*=";color:#991b1b;" i],
[style*=";color:#991b1b " i],
[style$=";color:#991b1b" i],
[style*="; color:#991b1b;" i],
[style*="; color:#991b1b " i],
[style$="; color:#991b1b" i] {
    color: var(--danger-text) !important;
}

[style^="color: #f59e0b;" i],
[style^="color: #f59e0b " i],
[style="color: #f59e0b" i],
[style*=";color: #f59e0b;" i],
[style*=";color: #f59e0b " i],
[style$=";color: #f59e0b" i],
[style*="; color: #f59e0b;" i],
[style*="; color: #f59e0b " i],
[style$="; color: #f59e0b" i],
[style^="color:#f59e0b;" i],
[style^="color:#f59e0b " i],
[style="color:#f59e0b" i],
[style*=";color:#f59e0b;" i],
[style*=";color:#f59e0b " i],
[style$=";color:#f59e0b" i],
[style*="; color:#f59e0b;" i],
[style*="; color:#f59e0b " i],
[style$="; color:#f59e0b" i],
[style^="color: #d97706;" i],
[style^="color: #d97706 " i],
[style="color: #d97706" i],
[style*=";color: #d97706;" i],
[style*=";color: #d97706 " i],
[style$=";color: #d97706" i],
[style*="; color: #d97706;" i],
[style*="; color: #d97706 " i],
[style$="; color: #d97706" i],
[style^="color:#d97706;" i],
[style^="color:#d97706 " i],
[style="color:#d97706" i],
[style*=";color:#d97706;" i],
[style*=";color:#d97706 " i],
[style$=";color:#d97706" i],
[style*="; color:#d97706;" i],
[style*="; color:#d97706 " i],
[style$="; color:#d97706" i] {
    color: var(--warning-text) !important;
}

[style^="color: #64748b;" i],
[style^="color: #64748b " i],
[style="color: #64748b" i],
[style*=";color: #64748b;" i],
[style*=";color: #64748b " i],
[style$=";color: #64748b" i],
[style*="; color: #64748b;" i],
[style*="; color: #64748b " i],
[style$="; color: #64748b" i],
[style^="color:#64748b;" i],
[style^="color:#64748b " i],
[style="color:#64748b" i],
[style*=";color:#64748b;" i],
[style*=";color:#64748b " i],
[style$=";color:#64748b" i],
[style*="; color:#64748b;" i],
[style*="; color:#64748b " i],
[style$="; color:#64748b" i],
[style^="color: #94a3b8;" i],
[style^="color: #94a3b8 " i],
[style="color: #94a3b8" i],
[style*=";color: #94a3b8;" i],
[style*=";color: #94a3b8 " i],
[style$=";color: #94a3b8" i],
[style*="; color: #94a3b8;" i],
[style*="; color: #94a3b8 " i],
[style$="; color: #94a3b8" i],
[style^="color:#94a3b8;" i],
[style^="color:#94a3b8 " i],
[style="color:#94a3b8" i],
[style*=";color:#94a3b8;" i],
[style*=";color:#94a3b8 " i],
[style$=";color:#94a3b8" i],
[style*="; color:#94a3b8;" i],
[style*="; color:#94a3b8 " i],
[style$="; color:#94a3b8" i],
[style^="color: #6b7280;" i],
[style^="color: #6b7280 " i],
[style="color: #6b7280" i],
[style*=";color: #6b7280;" i],
[style*=";color: #6b7280 " i],
[style$=";color: #6b7280" i],
[style*="; color: #6b7280;" i],
[style*="; color: #6b7280 " i],
[style$="; color: #6b7280" i],
[style^="color:#6b7280;" i],
[style^="color:#6b7280 " i],
[style="color:#6b7280" i],
[style*=";color:#6b7280;" i],
[style*=";color:#6b7280 " i],
[style$=";color:#6b7280" i],
[style*="; color:#6b7280;" i],
[style*="; color:#6b7280 " i],
[style$="; color:#6b7280" i] {
    color: var(--text-light) !important;
}

[style*="border: 1px solid #e2e8f0;" i],
[style*="border: 1px solid #e2e8f0 " i],
[style$="border: 1px solid #e2e8f0" i],
[style*="border:1px solid #e2e8f0;" i],
[style*="border:1px solid #e2e8f0 " i],
[style$="border:1px solid #e2e8f0" i],
[style*="border-color: #e2e8f0;" i],
[style*="border-color: #e2e8f0 " i],
[style$="border-color: #e2e8f0" i],
[style*="border-color:#e2e8f0;" i],
[style*="border-color:#e2e8f0 " i],
[style$="border-color:#e2e8f0" i],
[style*="border: 1px solid #cbd5e1;" i],
[style*="border: 1px solid #cbd5e1 " i],
[style$="border: 1px solid #cbd5e1" i],
[style*="border:1px solid #cbd5e1;" i],
[style*="border:1px solid #cbd5e1 " i],
[style$="border:1px solid #cbd5e1" i],
[style*="border-color: #cbd5e1;" i],
[style*="border-color: #cbd5e1 " i],
[style$="border-color: #cbd5e1" i],
[style*="border-color:#cbd5e1;" i],
[style*="border-color:#cbd5e1 " i],
[style$="border-color:#cbd5e1" i],
[style*="border: 1px solid #d1d5db;" i],
[style*="border: 1px solid #d1d5db " i],
[style$="border: 1px solid #d1d5db" i],
[style*="border:1px solid #d1d5db;" i],
[style*="border:1px solid #d1d5db " i],
[style$="border:1px solid #d1d5db" i],
[style*="border-color: #d1d5db;" i],
[style*="border-color: #d1d5db " i],
[style$="border-color: #d1d5db" i],
[style*="border-color:#d1d5db;" i],
[style*="border-color:#d1d5db " i],
[style$="border-color:#d1d5db" i],
[style*="border: 1px solid #f1f5f9;" i],
[style*="border: 1px solid #f1f5f9 " i],
[style$="border: 1px solid #f1f5f9" i],
[style*="border:1px solid #f1f5f9;" i],
[style*="border:1px solid #f1f5f9 " i],
[style$="border:1px solid #f1f5f9" i],
[style*="border-color: #f1f5f9;" i],
[style*="border-color: #f1f5f9 " i],
[style$="border-color: #f1f5f9" i],
[style*="border-color:#f1f5f9;" i],
[style*="border-color:#f1f5f9 " i],
[style$="border-color:#f1f5f9" i] {
    border-color: var(--border) !important;
}

[style*="border: 1px solid #10b981;" i],
[style*="border: 1px solid #10b981 " i],
[style$="border: 1px solid #10b981" i],
[style*="border:1px solid #10b981;" i],
[style*="border:1px solid #10b981 " i],
[style$="border:1px solid #10b981" i],
[style*="border-color: #10b981;" i],
[style*="border-color: #10b981 " i],
[style$="border-color: #10b981" i],
[style*="border-color:#10b981;" i],
[style*="border-color:#10b981 " i],
[style$="border-color:#10b981" i],
[style*="border: 1px solid #16a34a;" i],
[style*="border: 1px solid #16a34a " i],
[style$="border: 1px solid #16a34a" i],
[style*="border:1px solid #16a34a;" i],
[style*="border:1px solid #16a34a " i],
[style$="border:1px solid #16a34a" i],
[style*="border-color: #16a34a;" i],
[style*="border-color: #16a34a " i],
[style$="border-color: #16a34a" i],
[style*="border-color:#16a34a;" i],
[style*="border-color:#16a34a " i],
[style$="border-color:#16a34a" i] {
    border-color: var(--success) !important;
}

[style*="border: 1px solid #2563eb;" i],
[style*="border: 1px solid #2563eb " i],
[style$="border: 1px solid #2563eb" i],
[style*="border:1px solid #2563eb;" i],
[style*="border:1px solid #2563eb " i],
[style$="border:1px solid #2563eb" i],
[style*="border-color: #2563eb;" i],
[style*="border-color: #2563eb " i],
[style$="border-color: #2563eb" i],
[style*="border-color:#2563eb;" i],
[style*="border-color:#2563eb " i],
[style$="border-color:#2563eb" i],
[style*="border: 1px solid #3b82f6;" i],
[style*="border: 1px solid #3b82f6 " i],
[style$="border: 1px solid #3b82f6" i],
[style*="border:1px solid #3b82f6;" i],
[style*="border:1px solid #3b82f6 " i],
[style$="border:1px solid #3b82f6" i],
[style*="border-color: #3b82f6;" i],
[style*="border-color: #3b82f6 " i],
[style$="border-color: #3b82f6" i],
[style*="border-color:#3b82f6;" i],
[style*="border-color:#3b82f6 " i],
[style$="border-color:#3b82f6" i] {
    border-color: var(--info) !important;
}

[style*="border: 1px solid #ef4444;" i],
[style*="border: 1px solid #ef4444 " i],
[style$="border: 1px solid #ef4444" i],
[style*="border:1px solid #ef4444;" i],
[style*="border:1px solid #ef4444 " i],
[style$="border:1px solid #ef4444" i],
[style*="border-color: #ef4444;" i],
[style*="border-color: #ef4444 " i],
[style$="border-color: #ef4444" i],
[style*="border-color:#ef4444;" i],
[style*="border-color:#ef4444 " i],
[style$="border-color:#ef4444" i],
[style*="border: 1px solid #dc2626;" i],
[style*="border: 1px solid #dc2626 " i],
[style$="border: 1px solid #dc2626" i],
[style*="border:1px solid #dc2626;" i],
[style*="border:1px solid #dc2626 " i],
[style$="border:1px solid #dc2626" i],
[style*="border-color: #dc2626;" i],
[style*="border-color: #dc2626 " i],
[style$="border-color: #dc2626" i],
[style*="border-color:#dc2626;" i],
[style*="border-color:#dc2626 " i],
[style$="border-color:#dc2626" i] {
    border-color: var(--danger) !important;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 16px;
    background: var(--page-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.015em;
    color: var(--text);
}

h1 { font-size: 3.25rem; font-weight: 800; line-height: 1.15; }
h2 { font-size: 2.25rem; font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.75rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.5rem;   font-weight: 600; line-height: 1.35; }

/* Marketing & Hero Typography (Playfair Display) */
.hero h1,
.hero-title,
.marketing-title,
.promo-title,
.brand-story h2,
.editorial-heading {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -0.01em;
}

a { color: var(--link-color); text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-primary); font-weight: 600; font-size: 1rem; }
input, textarea, select { font-family: var(--font-primary); font-size: 1rem; }

::-webkit-scrollbar { width: 8px; }
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

img, video, canvas, iframe, svg {
    max-width: 100%;
    height: auto;
}

.container { max-width: 1440px; width: 100%; margin: 0 auto; padding: 0 24px; }

/* Main page content. The storefront header is in normal flow (top bar + sticky header), so only a
   small breathing space is needed; the old 70px offset for a fixed navbar left a blank band. */
.main-content {
    padding-top: 16px;
    min-height: calc(100vh - 70px);
}

/* Table scroll wrapper — prevents body overflow on narrow screens */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-border, rgba(255, 255, 255, 0.14));
    transition: var(--transition);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--nav-text);
}

/* Navbar Location Indicator Pill */
.nav-location-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50px;
    color: var(--nav-text);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    max-width: 220px;
    cursor: pointer;
    user-select: none;
}

.nav-location-pill:hover {
    background: var(--brand-highlight);
    border-color: var(--brand-highlight);
    color: var(--brand-deep);
    transform: translateY(-1px);
    opacity: 1;
}

.nav-location-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .nav-location-pill {
        padding: 4px 10px;
        font-size: 0.75rem;
        max-width: 140px;
    }
}

.nav-logo img {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-logo .slide-text {
    display: inline-block;
    opacity: 0;
    white-space: nowrap;
    position: relative;
    z-index: -1;
    transform: translateX(-20px);
}

.footer-logo img {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 50%;
}

/* ── Homepage Search Bar (Bold Premium Pill Redesign) ── */
.home-search {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    cursor: pointer;
}
.home-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-primary);
    pointer-events: none;
    z-index: 2;
    transition: color .2s;
}
.home-search-input {
    width: 100%;
    height: 58px;
    padding: 0 24px 0 56px;
    background: var(--input-bg);
    border: 2px solid var(--border);
    border-radius: 50px;
    color: var(--input-text);
    font-size: 1.05rem;
    font-family: var(--font-primary);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
}
.home-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(105,117,101,0.18), 0 8px 30px rgba(0,0,0,0.12);
}
.home-search-input:focus ~ .home-search-icon,
.home-search-input:focus + .home-search-icon { color: var(--accent); }
.home-search-input::placeholder {
    color: var(--input-placeholder);
    font-family: var(--font-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 1;
}
.section-search { padding: 28px 0 20px; }

/* ── Homepage Local Search Dropdown ── */
.search-shop-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    bottom: auto;
    left: 0;
    right: 0;
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow, 0 8px 30px rgba(0,0,0,.2));
    max-height: min(60vh, 440px);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: none;
    z-index: 1000;
}
.search-shop-dropdown[data-placement="above"] {
    top: auto;
    bottom: calc(100% + 6px);
}
.search-shop-dropdown.active {
    display: block;
}
@keyframes searchSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.search-shop-dropdown .spin {
    animation: searchSpin 1s linear infinite;
}
.search-shop-location-note,
.search-location-message {
    padding: 9px 16px;
    color: var(--text-light);
    background: var(--card-hover);
    border-bottom: 1px solid var(--border);
    font-size: .8rem;
    line-height: 1.45;
}
.search-location-message {
    display: inline-block;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.search-location-message a {
    color: var(--link-color, var(--accent));
    font-weight: 700;
}
.section-search.has-search-suggestions {
    position: relative;
    z-index: 100;
}
.search-shop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
    border-bottom: 1px solid var(--border);
}
.search-shop-item:last-child {
    border-bottom: none;
}
.search-shop-item:hover,
.search-shop-item.highlighted {
    background: var(--card-hover);
}
.search-shop-section-title {
    padding: 9px 16px 6px;
    color: var(--text-light);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--card-bg);
}
.search-shop-empty-compact {
    padding: 9px 16px 12px;
    text-align: left;
}
.search-product-image {
    object-fit: contain;
    padding: 3px;
}
.search-shop-result:last-child,
.search-product-item:last-child {
    border-bottom: 1px solid var(--border);
}
.search-shop-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--secondary);
}
.search-shop-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
}
.search-shop-info {
    flex: 1;
    min-width: 0;
}
.search-shop-name {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.search-shop-verified {
    display: inline-flex;
    align-items: center;
    color: var(--info-contrast);
    font-size: .7rem;
}
.search-shop-meta {
    font-size: .75rem;
    color: var(--text-light);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.search-shop-meta .rating {
    color: var(--warning);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.search-shop-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-light);
    font-size: .85rem;
}
.search-shop-loading {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-light);
    font-size: .85rem;
}
.search-shop-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .6s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}
.search-shop-meta .sep {
    color: var(--text-light);
    font-weight: 700;
}

.nav-icons { display: flex; align-items: center; gap: 8px; }

.nav-icon-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}
.nav-icon-item:hover {
    background: rgba(255,255,255,0.14);
    color: var(--nav-text);
}
.nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-icon-item .nav-label {
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 600;
}

.nav-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--nav-text);
    transition: var(--transition);
    font-size: 1.2rem;
}

.nav-icon:hover { background: rgba(255,255,255,0.14); }

.nav-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.nav-user-dropdown {
    position: relative;
    width: auto;
    padding: 6px 14px;
    border-radius: 50px;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.nav-user-dropdown:hover { background: var(--card-hover); }

.nav-user-dropdown .user-name {
    font-size: 0.85rem;
    font-weight: 500;
    display: none;
}

@media (min-width: 768px) {
    .nav-user-dropdown .user-name { display: inline; }
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 200px;
    display: none;
    z-index: 100;
    margin-top: 8px;
    box-shadow: var(--shadow);
}

.nav-user-dropdown:hover .dropdown-menu,
.nav-user-dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-menu a:hover { background: var(--card-hover); }
.dropdown-menu hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

.dropdown-menu a.appearance-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.dropdown-menu a.appearance-trigger:hover {
    background: var(--card-hover);
}

.dropdown-section {
    padding: 8px 14px;
}

.dropdown-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

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

*, *::before, *::after {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.nav-btn, .nav-btn::before, .nav-btn::after {
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-width: 88px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    color: var(--brand-deep);
    background: #fff;
    border: 1px solid var(--border);
}

.nav-btn:hover {
    background: var(--brand-highlight);
    border-color: var(--brand-primary);
    color: var(--brand-deep);
    opacity: 1;
}

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

.nav-btn-secondary:hover {
    opacity: 0.9;
    color: var(--button-primary-hover-text);
    background: var(--brand-deep);
    border-color: var(--brand-highlight);
}

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; width: 44px; height: 44px; background: none; border: none; color: var(--ok-text-primary, #172B24); cursor: pointer; padding: 0; }
.nav-toggle svg, .nav-toggle i, .nav-toggle * { pointer-events: none !important; }

.mobile-menu {
    display: none;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 16px 20px;
}

.mobile-menu.active { display: block; }

.mobile-search { margin-bottom: 16px; }

.mobile-search form { display: flex; gap: 8px; }

.mobile-search input {
    flex: 1;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
}

.mobile-search button {
    background: var(--button-primary-bg);
    border: none;
    color: var(--button-primary-text);
    width: 44px;
    border-radius: var(--radius-sm);
}

.mobile-links { display: flex; flex-direction: column; gap: 4px; }

.mobile-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
}

.mobile-links a:hover { background: var(--card-hover); }
.mobile-links hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; }

.main-content { padding-top: 16px; min-height: calc(100vh - 70px); }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    border-radius: var(--radius);
    max-width: 1920px;
    margin: 0 auto;
}

/* ── Banner Slider (Horizontal Scroll, no carousel) ──────────────────────── */
/* Banner carousel styles moved to assets/css/banner-engine.css */

.banner-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
    color: var(--text-light, #888);
    font-size: 0.95rem;
}

.banner-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.banner-empty a {
    color: var(--accent, #2563eb);
    text-decoration: underline;
    margin-top: 4px;
}

/* Section styles */
.section { padding: 60px 0; }

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i { color: var(--accent); }

.section-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Category Cards */


/* Featured Stores Search */


/* Product Cards */
.product-grid,
.hp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 20px;
    min-width: 0;
    max-width: 100%;
}

/* ── Isolated Responsive Product & Shop Shelves ── */
.home-product-shelf,
.product-shelf-row,
.home-shop-shelf {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 12px;
}

.home-product-shelf::-webkit-scrollbar,
.product-shelf-row::-webkit-scrollbar,
.home-shop-shelf::-webkit-scrollbar {
    display: none;
}

.home-product-shelf > *,
.product-shelf-row > *,
.home-shop-shelf > * {
    flex-shrink: 0 !important;
}

.hp-section, .section {
    min-width: 0;
    max-width: 100%;
}

/* Breakpoint 1: Mobile (< 768px) — 1 full card + ⅓ peeking (PRD Requirement) */
@media (max-width: 767px) {
    /* Product Shelf: 1 + ⅓ Cards Visible (Gap: 8px) */
    .home-product-shelf,
    .product-shelf-row {
        gap: 8px !important;
    }
    .home-product-shelf > *,
    .product-shelf-row > * {
        flex: 0 0 calc((100% - 8px) / 1.3333) !important;
        min-width: calc((100% - 8px) / 1.3333) !important;
        max-width: calc((100% - 8px) / 1.3333) !important;
    }

    /* Shop Shelf: 1 + ⅓ Cards Visible (Gap: 8px) */
    .home-shop-shelf {
        gap: 8px !important;
    }
    .home-shop-shelf > * {
        flex: 0 0 calc((100% - 8px) / 1.3333) !important;
        min-width: calc((100% - 8px) / 1.3333) !important;
        max-width: calc((100% - 8px) / 1.3333) !important;
    }
}

/* Breakpoint 2: Tablet (768px - 1023px) — 2 full cards + ⅓ peeking */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Product Shelf: 2 + ⅓ Cards Visible (Gap: 12px) */
    .home-product-shelf,
    .product-shelf-row {
        gap: 12px !important;
    }
    .home-product-shelf > *,
    .product-shelf-row > * {
        flex: 0 0 calc((100% - 16px) / 2.3333) !important;
        min-width: calc((100% - 16px) / 2.3333) !important;
        max-width: calc((100% - 16px) / 2.3333) !important;
    }

    /* Shop Shelf: 2 + ⅓ Cards Visible (Gap: 12px) */
    .home-shop-shelf {
        gap: 12px !important;
    }
    .home-shop-shelf > * {
        flex: 0 0 calc((100% - 16px) / 2.3333) !important;
        min-width: calc((100% - 16px) / 2.3333) !important;
        max-width: calc((100% - 16px) / 2.3333) !important;
    }
}

/* Breakpoint 3: Desktop (>= 1024px) — 4 full cards + ⅓ peeking */
@media (min-width: 1024px) {
    /* Product Shelf: 4 + ⅓ Cards Visible (Gap: 20px) */
    .home-product-shelf,
    .product-shelf-row {
        gap: 20px !important;
    }
    .home-product-shelf > *,
    .product-shelf-row > * {
        flex: 0 0 calc((100% - 80px) / 4.3333) !important;
        min-width: calc((100% - 80px) / 4.3333) !important;
        max-width: calc((100% - 80px) / 4.3333) !important;
    }

    /* Shop Shelf: 3 + ⅓ Cards Visible (Gap: 20px) */
    .home-shop-shelf {
        gap: 20px !important;
    }
    .home-shop-shelf > * {
        flex: 0 0 calc((100% - 60px) / 3.3333) !important;
        min-width: calc((100% - 60px) / 3.3333) !important;
        max-width: calc((100% - 60px) / 3.3333) !important;
    }
}

/* ── Restored Homepage Category Scroll CSS ── */
.hp-categories { padding: 24px 0; }
.hp-cat-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 16px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hp-cat-scroll::-webkit-scrollbar { display: none; }
.hp-cat-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text, #1e293b);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-width: 96px;
}
.hp-cat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: var(--accent, #6366f1);
}
.hp-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent, #6366f1);
    font-size: 1.2rem;
    overflow: hidden;
}
.hp-cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.hp-cat-label { font-size: 0.82rem; font-weight: 600; white-space: nowrap; text-align: center; }

/* ── Restored Homepage Flash Deals Grid CSS ── */
.home-flash-deals {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.hp-deal-card,
.home-flash-deal-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius, 12px);
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hp-deal-card:hover,
.home-flash-deal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.hp-deal-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--danger, #ef4444);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.hp-deal-img {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: var(--secondary, #f8fafc);
    border-radius: 8px;
}
.hp-deal-body h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}
.hp-stock-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0 6px 0;
}
.hp-stock-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    border-radius: 3px;
}
.hp-stock-label {
    font-size: 0.75rem;
    color: var(--text-light, #64748b);
}

/* ── Isolated Shop By Budget Section ── */
.hp-budget-grid,
.home-shop-by-budget {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.home-shop-by-budget .hp-budget-card,
.home-shop-by-budget .budget-card,
.hp-budget-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius, 16px);
    text-decoration: none;
    color: var(--text, #1e293b);
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    overflow: hidden;
}

.home-shop-by-budget .hp-budget-card:hover,
.home-shop-by-budget .budget-card:hover,
.hp-budget-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: var(--accent, #6366f1);
}

.home-shop-by-budget .hp-budget-icon,
.hp-budget-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 12px;
    transition: transform 0.22s ease, background 0.22s ease;
}

.home-shop-by-budget .hp-budget-card:hover .hp-budget-icon,
.hp-budget-card:hover .hp-budget-icon {
    transform: scale(1.1);
    background: var(--accent, #6366f1);
    color: #ffffff;
}

.home-shop-by-budget .hp-budget-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.home-shop-by-budget .hp-budget-label,
.hp-budget-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light, #64748b);
    margin-bottom: 4px;
}

.home-shop-by-budget .hp-budget-title,
.hp-budget-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text, #0f172a);
}

/* Gradient accents for budget cards */
.home-shop-by-budget .budget-199 .hp-budget-icon { background: var(--brand-highlight); color: var(--success); }
.home-shop-by-budget .budget-199:hover .hp-budget-icon { background: var(--brand-primary); color: #fff; }

.home-shop-by-budget .budget-499 .hp-budget-icon { background: var(--accent-light); color: var(--info-contrast); }
.home-shop-by-budget .budget-499:hover .hp-budget-icon { background: var(--info); color: #fff; }

.home-shop-by-budget .budget-999 .hp-budget-icon { background: var(--accent-light); color: var(--info-contrast); }
.home-shop-by-budget .budget-999:hover .hp-budget-icon { background: var(--info); color: #fff; }

.home-shop-by-budget .budget-lux .hp-budget-icon { background: #FFFBEB; color: var(--warning); }
.home-shop-by-budget .budget-lux:hover .hp-budget-icon { background: var(--warning); color: #fff; }

/* ── Sponsored Product Badge & Card Controls ── */
.sponsored-tag-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-contact-seller {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--accent, #6366f1);
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-sm, 6px);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}
.btn-contact-seller:hover {
    background: var(--accent-hover, #4f46e5);
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* ── Universal Homepage Shelf Navigation Arrows ── */
.hp-shelf-nav-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
}

.hp-shelf-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    color: var(--text, #0f172a);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    user-select: none;
    -webkit-user-select: none;
}

.hp-shelf-nav:hover:not(:disabled) {
    background: var(--accent, #6366f1);
    color: #ffffff;
    border-color: var(--accent, #6366f1);
    transform: translateY(-1px);
}

.hp-shelf-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

/* ── Card Link Wrapper ── */
.product-card-link {
    display: block;
    color: inherit;
    border-radius: var(--radius);
    min-width: 0;
    max-width: 100%;
}
.product-card-link:focus-visible .product-card {
    box-shadow: 0 0 0 3px rgba(99,102,241,.4);
    border-color: var(--accent);
}

/* ── Card ── */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    cursor: pointer;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Product card hover lift and border glow */
.product-card-link:hover .product-card,
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,.12), 0 0 0 1px rgba(99,102,241,.2);
    border-color: rgba(99,102,241,.35);
}

/* Click press animation */
.product-card-link:active .product-card,
.product-card:active {
    transform: translateY(0);
    transition-duration: 0.08s;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.product-card-image {
    height: 220px;
    min-width: 0;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.product-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-card-image .placeholder-icon { font-size: 4rem; color: var(--accent); opacity: 0.4; }

.product-card-badge,
.hp-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: var(--danger, #ef4444);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
}

/* Wishlist button: sits above the link, stops propagation in JS */
.product-card-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,0,0,.06);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 1px 6px rgba(0,0,0,.12);
}

.product-card-wishlist:hover { background: var(--danger); color: #fff; transform: scale(1.12); }
.product-card-wishlist.active { color: var(--danger); background: rgba(255,255,255,.95); }
.product-card-wishlist.active:hover { background: var(--danger); color: #fff; }

/* ── Local Store Spotlight Grid & Responsive Cards ── */
.hp-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.hp-store-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius, 14px);
    overflow: hidden;
    text-decoration: none !important;
    color: var(--text) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
    position: relative;
}

.hp-store-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.hp-store-card:visited,
.hp-store-card:active,
.hp-store-card:focus {
    text-decoration: none !important;
    color: var(--text) !important;
}

/* Banner: visible by default on Tablet, Laptop, Desktop, PC */
.hp-store-banner {
    position: relative;
    height: 120px;
    width: 100%;
    background: linear-gradient(135deg, var(--card-hover) 0%, var(--secondary) 100%);
    overflow: hidden;
    display: block;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.hp-store-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hp-store-banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--card-hover) 0%, var(--secondary) 100%);
}

/* Logo: floats over bottom of banner on Tablet, Laptop, Desktop */
.hp-store-logo-wrap,
.hp-store-logo {
    width: 68px;
    height: 68px;
    margin: -34px auto 10px;
    border-radius: 50%;
    background: var(--card-bg, #ffffff);
    border: 3px solid var(--card-bg, #ffffff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 4px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.hp-store-logo-wrap img,
.hp-store-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 50%;
}

.hp-store-logo-wrap i,
.hp-store-logo i {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.hp-store-body {
    padding: 0 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.hp-store-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
    line-height: 1.3;
    width: 100%;
}

.hp-store-name span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

.hp-store-name .hp-verified {
    width: 15px;
    height: 15px;
    color: var(--success, #16a34a);
    flex-shrink: 0;
}

.hp-store-desc {
    font-size: 0.84rem;
    color: var(--text-light);
    line-height: 1.45;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 92%;
    flex: 1;
}

.hp-store-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hp-store-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: var(--radius-sm, 8px);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    background: var(--hp-store-cta-bg);
    color: var(--hp-store-cta-color) !important;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    min-height: 38px;
}

.hp-store-cta i {
    width: 15px;
    height: 15px;
    color: var(--hp-store-cta-color) !important;
    stroke: var(--hp-store-cta-color) !important;
    transition: transform 0.2s ease;
}

.hp-store-card:hover .hp-store-cta {
    background: var(--hp-store-cta-hover);
    color: var(--hp-store-cta-hover-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.hp-store-card:hover .hp-store-cta i {
    color: var(--hp-store-cta-hover-color) !important;
    stroke: var(--hp-store-cta-hover-color) !important;
    transform: translateX(3px);
}

.product-card-body { padding: 16px; min-width: 0; }

.product-card-body .product-store {
    font-size: 0.75rem;
    color: var(--link-color);
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}
.product-store-link {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}
.product-store-link:hover .product-store {
    text-decoration: underline;
}
.product-name-link {
    text-decoration: none;
    display: block;
    color: inherit;
}
.product-name-link:hover h3 {
    color: var(--accent);
}

.product-card-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.6em;
    color: var(--text);
    overflow-wrap: anywhere;
}

.product-card-body .product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.product-card-body .product-rating .stars { color: var(--warning); }
.product-card-body .product-rating span { color: var(--text-light); }
/* Neutral state for products without approved reviews (never show a placeholder rating) */
.ok-rating-new { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; line-height: 1.5; color: var(--text-light, #64748b); background: var(--secondary, #f1f5f9); }
.product-card-body .product-rating span.ok-rating-new { color: var(--text-light, #64748b); }

.product-card-body .product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.product-card-body .product-price .current { font-size: 1.2rem; font-weight: 700; color: var(--link-color); }
.product-card-body .product-price .original { font-size: 0.9rem; color: var(--text-light); text-decoration: line-through; }

/* ── .product-card-btn removed — card is now fully clickable ── */


/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: none; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; transition: var(--transition); cursor: pointer; }
.btn-primary { background: var(--button-primary-bg) !important; color: var(--button-primary-text) !important; border: 1px solid var(--brand-highlight) !important; }
.btn-primary:hover { background: var(--brand-deep) !important; color: var(--button-primary-hover-text) !important; opacity: 1; }
.btn-secondary { background: var(--card-bg) !important; color: var(--text) !important; border: 1px solid var(--border) !important; }
.btn-secondary:hover { background: var(--card-hover) !important; }
.btn-outline { background: transparent !important; color: var(--text) !important; border: 1px solid var(--border) !important; }
.btn-outline:hover { background: var(--card-hover) !important; color: var(--text) !important; }
.btn-danger { background: var(--button-danger-bg) !important; color: var(--button-danger-text) !important; }
.btn-danger:hover { opacity: 0.9; color: var(--button-danger-text) !important; }
.btn-success { background: var(--button-success-bg) !important; color: var(--button-success-text) !important; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Offer Cards */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.offer-card {
    background: linear-gradient(135deg, var(--card-bg), var(--card-hover));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.offer-card .offer-icon { font-size: 2rem; color: var(--accent); margin-bottom: 12px; }
.offer-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.offer-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 16px; }
.offer-card .offer-discount { font-size: 2rem; font-weight: 800; color: var(--accent); }
.offer-card .offer-code { display: inline-block; padding: 4px 12px; background: var(--accent); color: #fff; border-radius: 4px; font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; }

/* Footer */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

.footer-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ── Footer Trust & Benefits ── */
.footer-trust-wrap {
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.footer-trust-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    align-items: stretch;
}

.footer-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm, 8px);
    background: var(--secondary);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

.footer-trust-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.footer-trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-trust-icon i {
    width: 18px;
    height: 18px;
}

.footer-trust-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.footer-trust-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-trust-sub {
    font-size: 0.74rem;
    color: var(--text-light);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Footer Newsletter ── */
.footer-newsletter-wrap {
    padding-bottom: 36px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

.footer-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 24px 28px;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius, 12px);
}

.footer-newsletter-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.footer-newsletter-text p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin: 0;
}

.footer-newsletter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 440px;
    width: 100%;
    flex-shrink: 0;
}

.footer-newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border-radius: var(--radius-sm, 8px);
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-newsletter-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(8, 120, 62, 0.18);
}

.footer-newsletter-btn {
    padding: 12px 22px;
    border-radius: var(--radius-sm, 8px);
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.footer-newsletter-btn:hover {
    background: var(--brand-deep);
    transform: translateY(-1px);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.footer-col .footer-logo i { color: var(--accent); }

.footer-col p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 16px; }

.footer-social { display: flex; gap: 12px; }

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--text);
    transition: var(--transition);
}

.footer-social a:hover { background: var(--accent); color: #fff; }

.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }

.footer-col a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-col a:hover { color: var(--link-color); }

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Page Header */
.page-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
}

.page-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 8px; }
.page-header p { color: var(--text-light); font-size: 1.05rem; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a { color: var(--link-color); }
.breadcrumb span { color: var(--text); }

/* Auth Pages */
.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.auth-box .auth-header { text-align: center; margin-bottom: 32px; }

.auth-box .auth-header .auth-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: #fff;
}

.auth-box .auth-header h1 { font-size: 1.8rem; font-weight: 800; }
.auth-box .auth-header p { color: var(--text-light); margin-top: 4px; }

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

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

.form-input:focus, .form-group .form-input:focus { border-color: var(--accent); }
.form-input::placeholder, .form-group .form-input::placeholder { color: var(--text-light); }
.form-input.error, .form-group .form-input.error { border-color: var(--danger); }

.form-group .form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group .form-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; display: none; }
.form-group .form-error.visible { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-options label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-options input[type="checkbox"] { accent-color: var(--accent); }

.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-divider::before, .form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
}

.auth-btn:hover { opacity: 0.8; }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: var(--transition);
}

.password-toggle:hover { color: var(--text); }

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

.auth-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-light); }
.auth-footer a { color: var(--link-color); font-weight: 600; }

.google-btn,
.ok-google-btn {
    width: 100%;
    height: 48px;
    padding: 0 20px;
    background: #ffffff;
    color: #374151;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    user-select: none;
}

.google-btn:hover,
.ok-google-btn:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
    color: #111827;
}

.google-btn:active,
.ok-google-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.google-btn svg,
.ok-google-btn svg,
.google-btn img,
.ok-google-btn img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
}


.google-btn-disabled,
.ok-google-disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Alert */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: rgba(34,197,94,0.1); color: var(--success); border: 1px solid rgba(34,197,94,0.2); }
.alert-error { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.alert-info { background: rgba(59,130,246,0.1); color: var(--info-contrast); border: 1px solid rgba(59,130,246,0.2); }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }

/* Store Page */
.store-header {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--accent);
}

.store-header img { width: 100%; height: 100%; object-fit: cover; }

.store-header .store-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24,28,20,0.9), transparent);
}

.store-info-section {
    position: relative;
    padding: 0 20px;
    margin-top: -80px;
    z-index: 2;
}

.store-info-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: flex-end;
}

.store-info-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent);
    overflow: hidden;
    flex-shrink: 0;
}

.store-info-logo img { width: 100%; height: 100%; object-fit: contain; background: var(--card-bg, #ffffff); }

.store-info-details { flex: 1; padding-bottom: 20px; }

.store-info-details h1 { font-size: 2rem; font-weight: 800; }
.store-info-details .tagline { color: var(--text-light); font-size: 1rem; margin-top: 4px; }
.store-info-details .store-meta { display: flex; gap: 20px; margin-top: 12px; font-size: 0.9rem; color: var(--text-light); }
.store-info-details .store-meta span { display: flex; align-items: center; gap: 6px; }

.store-info-action { padding-bottom: 20px; }

.store-info-action .btn { display: flex; align-items: center; gap: 8px; }

.store-body { padding: 40px 0; }

.store-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
    overflow-x: auto;
}

.store-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.store-tab:hover { color: var(--text); }
.store-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.store-announcement {
    background: linear-gradient(135deg, var(--accent), rgba(105,117,101,0.3));
    padding: 16px 24px;
    border-radius: var(--radius);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.store-announcement i { font-size: 1.2rem; }

/* Store Themes */
.store-theme-minimal .store-header { height: 200px; }
.store-theme-minimal .store-info-logo { width: 100px; height: 100px; }

.store-theme-luxury { --accent: #D4AF37; }
.store-theme-tech { --accent: #00d4ff; }
.store-theme-dark-premium { --accent: #8B0000; }
.store-theme-colorful { --accent: #FF6B6B; }

/* Product Page */
.product-page { padding: 40px 0; }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.product-gallery {
    position: relative;
}

.product-gallery .main-image {
    width: 100%;
    height: 450px;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.product-gallery .main-image img { width: 100%; height: 100%; object-fit: cover; }

.product-gallery .main-image .placeholder-icon { font-size: 6rem; color: var(--accent); opacity: 0.4; }

.product-thumbnails {
    display: flex;
    gap: 12px;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumbnail.active { border-color: var(--accent); }
.product-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }

.product-info .product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.product-info .product-meta a { color: var(--link-color); }

.product-info .product-pricing { margin-bottom: 20px; }

.product-info .product-pricing .price-current { font-size: 2rem; font-weight: 800; }
.product-info .product-pricing .price-original { font-size: 1.2rem; color: var(--text-light); text-decoration: line-through; margin-left: 10px; }
.product-info .product-pricing .price-save { display: inline-block; padding: 4px 10px; background: rgba(239,68,68,0.1); color: var(--danger); border-radius: 4px; font-size: 0.85rem; font-weight: 600; margin-left: 10px; }

.product-info .product-description { margin-bottom: 24px; }
.product-info .product-description h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.product-info .product-description p { color: var(--text-light); line-height: 1.7; }

.product-info .product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.product-info .product-actions .btn { flex: 1; min-width: 140px; justify-content: center; }

.product-info .product-specs { margin-bottom: 24px; }
.product-info .product-specs h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }

.product-info .specs-table { width: 100%; }
.product-info .specs-table tr { border-bottom: 1px solid var(--border); }
.product-info .specs-table td { padding: 8px 12px; font-size: 0.9rem; }
.product-info .specs-table td:first-child { font-weight: 600; color: var(--text-light); }

/* Cart Page */
.cart-section { padding: 40px 0; }

.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }

.cart-items { display: flex; flex-direction: column; gap: 16px; }

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    align-items: center;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-image .placeholder-icon { font-size: 2rem; color: var(--accent); opacity: 0.4; }

.cart-item-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.cart-item-info .cart-item-store { font-size: 0.8rem; color: var(--link-color); }
.cart-item-info .cart-item-price { font-size: 1.1rem; font-weight: 700; margin-top: 8px; }

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cart-item-actions .qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cart-item-actions .qty-controls button {
    width: 36px;
    height: 36px;
    background: var(--secondary);
    border: none;
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

.cart-item-actions .qty-controls button:hover { background: var(--accent); color: #fff; }
.cart-item-actions .qty-controls span { width: 44px; text-align: center; font-weight: 600; }

.cart-item-actions .remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 0.8rem;
    cursor: pointer;
}

.cart-summary {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: 90px;
}

.cart-summary h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
}

.cart-summary .summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 16px; font-size: 1.2rem; font-weight: 700; }

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    margin-top: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-btn:hover { opacity: 0.8; }

/* Orders */
.orders-section { padding: 40px 0; }

.order-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--secondary);
    flex-wrap: wrap;
    gap: 8px;
}

.order-card-header .order-number { font-weight: 700; font-size: 0.95rem; }
.order-card-header .order-date { font-size: 0.85rem; color: var(--text-light); }

.order-status {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.order-status.pending { background: rgba(234,179,8,0.1); color: var(--warning); }
.order-status.processing { background: rgba(59,130,246,0.1); color: var(--info-contrast); }
.order-status.shipped { background: rgba(105,117,101,0.1); color: var(--link-color); }
.order-status.delivered { background: rgba(34,197,94,0.1); color: var(--success); }
.order-status.cancelled { background: rgba(239,68,68,0.1); color: var(--danger); }

.order-card-body { padding: 20px; }

.order-item-detail {
    display: flex;
    gap: 12px;
    padding: 8px 0;
}

.order-item-detail img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--secondary); }
.order-item-detail .item-info h4 { font-size: 0.9rem; font-weight: 600; }
.order-item-detail .item-info p { font-size: 0.8rem; color: var(--text-light); }

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}

.order-card-footer .order-total { font-weight: 700; font-size: 1.1rem; }

.order-card-footer .order-actions {
    display: flex;
    gap: 8px;
}

/* Dashboard Layout */
.dashboard,
.dashboard-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 70px);
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

/* Settings Grid & Cards */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    align-items: start;
    width: 100%;
}

.settings-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    width: 100%;
}

.dashboard-sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    width: 260px;
    box-sizing: border-box;
}

.dashboard-sidebar .sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.dashboard-sidebar .sidebar-header h3 { font-size: 1rem; font-weight: 700; }
.dashboard-sidebar .sidebar-header p { font-size: 0.8rem; color: var(--text-light); }

.dashboard-sidebar .sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 8px; }

.dashboard-sidebar .sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.dashboard-sidebar .sidebar-nav a i,
.dashboard-sidebar .sidebar-nav a svg {
    width: 20px;
    height: 20px;
    text-align: center;
    color: var(--text-light);
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}
.dashboard-sidebar .sidebar-nav a:hover { background: var(--card-hover); }
.dashboard-sidebar .sidebar-nav a.active { background: var(--active-menu); color: #fff; }

/* Sidebar collapse control (admin + seller dashboards). The button and the .sidebar-collapsed
   state toggled by footer.php previously had no styles, so the button looked unstyled and did nothing. */
.sidebar-collapse-btn {
    display: flex; align-items: center; gap: 8px; width: calc(100% - 32px); min-height: 40px; margin: 0 16px 12px;
    padding: 8px 12px; background: var(--card-bg); color: var(--text-light); border: 1px solid var(--border);
    border-radius: var(--radius-sm); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.sidebar-collapse-btn:hover { background: var(--card-hover); color: var(--text); }
.sidebar-collapse-btn:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.sidebar-collapse-btn .collapse-icon { display: inline-flex; }
@media (min-width: 1025px) {
    .dashboard.sidebar-collapsed, .dashboard-container.sidebar-collapsed { grid-template-columns: 72px 1fr; }
    .sidebar-collapsed .dashboard-sidebar { width: 72px; overflow-x: hidden; }
    .sidebar-collapsed .dashboard-sidebar .sidebar-header,
    .sidebar-collapsed .dashboard-sidebar .nav-section-label { display: none; }
    .sidebar-collapsed .sidebar-collapse-btn { width: 44px; margin: 0 auto 12px; justify-content: center; padding: 8px; }
    .sidebar-collapsed .dashboard-sidebar .sidebar-nav a { justify-content: center; padding-left: 0; padding-right: 0; }
    /* Labels stay available to screen readers while hidden visually */
    .sidebar-collapsed .dashboard-sidebar .nav-label,
    .sidebar-collapsed .sidebar-collapse-btn .collapse-label {
        position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
    }
}
.dashboard-sidebar .sidebar-nav a.active i,
.dashboard-sidebar .sidebar-nav a.active svg { color: #fff; }

.dashboard-main,
.dashboard-content {
    padding: 32px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-main .page-title,
.dashboard-content .page-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 24px; }

.sidebar-toggle {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    width: fit-content;
}

.sidebar-toggle:hover { background: var(--card-hover); }
.sidebar-toggle:active { transform: scale(0.98); }

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.dash-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.dash-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.dash-card .dash-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(105,117,101,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--link-color);
    margin-bottom: 16px;
}

.dash-card .dash-value { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.dash-card .dash-label { font-size: 0.85rem; color: var(--text-light); }

/* Dashboard Recent Activity Grid (Responsive 2-Col -> 1-Col) */
.dashboard-recent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.dash-card-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    min-width: 0;
    box-sizing: border-box;
}

.dash-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.dash-list-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--secondary);
    border-radius: var(--radius-sm);
    min-width: 0;
}

.dash-order-info {
    flex: 1;
    min-width: 0;
}

.dash-order-id {
    font-weight: 600;
    font-size: 0.9rem;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.dash-order-customer {
    font-size: 0.8rem;
    color: var(--text-light);
    word-break: break-word;
    overflow-wrap: anywhere;
    margin-top: 2px;
}

.dash-order-meta {
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
}

.dash-order-amount {
    font-weight: 700;
    font-size: 0.92rem;
}

.dash-order-meta .order-status {
    display: inline-block;
    margin-top: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.dash-product-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--secondary);
    border-radius: var(--radius-sm);
    min-width: 0;
}

.dash-product-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.dash-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-product-info {
    flex: 1;
    min-width: 0;
}

.dash-product-name {
    font-weight: 600;
    font-size: 0.9rem;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.dash-product-price {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 2px;
}

.dash-product-stock {
    font-size: 0.8rem;
    color: var(--text-light);
    flex-shrink: 0;
    white-space: nowrap;
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .dashboard-recent-grid {
        gap: 18px;
    }
    .dash-card-section {
        padding: 18px;
    }
}

/* Mobile (<= 767px): Single-column full-width layout */
@media (max-width: 767px) {
    .dashboard-recent-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .dash-card-section {
        padding: 16px 14px;
    }
    .dash-order-row {
        padding: 10px;
        gap: 10px;
    }
    .dash-product-row {
        padding: 10px;
        gap: 10px;
    }
}

/* Tables */
.table-container { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--secondary);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table tr:hover td { background: rgba(105,117,101,0.03); }

.table .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--button-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--button-primary-text);
    font-weight: 600;
    flex-shrink: 0;
}

.table .user-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.table .table-actions {
    display: flex;
    gap: 6px;
}

.table .table-actions button,
.table .table-actions a {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.table .table-actions .btn-edit { background: rgba(59,130,246,0.1); color: var(--info-contrast); }
.table .table-actions .btn-delete { background: rgba(239,68,68,0.1); color: var(--danger); }
.table .table-actions .btn-view { background: rgba(105,117,101,0.1); color: var(--link-color); }

.table .product-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--secondary); }

/* Filters */
.filters-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filters-bar select, .filters-bar input {
    padding: 10px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
}

.filters-bar select:focus, .filters-bar input:focus { border-color: var(--accent); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a, .pagination span {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination a:hover { background: var(--card-hover); }
.pagination .active { background: var(--button-primary-bg); color: var(--button-primary-text); border-color: var(--button-primary-bg); }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}
.modal.modal-lg { max-width: 720px; }

@keyframes modalIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-size: 1.2rem; font-weight: 700; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.3rem;
    transition: var(--transition);
}

.modal-close:hover { color: var(--text); }

.modal-body { padding: 24px; }

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Theme-aware shared controls. This overrides legacy inline colors without changing layout. */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="color"]),
select,
textarea {
    background-color: var(--input-bg) !important;
    color: var(--input-text) !important;
    border-color: var(--border) !important;
    caret-color: var(--accent) !important;
}

input::placeholder,
textarea::placeholder,
.form-input::placeholder,
.form-control::placeholder {
    color: var(--input-placeholder) !important;
    opacity: 1;
}

select option,
select optgroup {
    background-color: var(--card-bg);
    color: var(--text);
}

input[type="checkbox"],
input[type="radio"],
input[type="range"] {
    accent-color: var(--brand-accent);
}

input[type="file"]::file-selector-button {
    background: var(--button-primary-bg);
    color: var(--button-primary-text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    margin-right: 10px;
    cursor: pointer;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: var(--input-text) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
    caret-color: var(--input-text) !important;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.alert-info {
    background: color-mix(in srgb, var(--brand-highlight) 14%, transparent);
    color: var(--info-contrast);
    border-color: var(--brand-highlight);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-light); margin-bottom: 20px; }

/* Loading */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Reviews */
.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.review-card .review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-card .review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.review-card .review-user h4 { font-size: 0.95rem; font-weight: 600; }
.review-card .review-user span { font-size: 0.8rem; color: var(--text-light); }

.review-card .review-rating { margin-bottom: 8px; color: var(--warning); font-size: 0.9rem; }
.review-card .review-comment { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.review-card .verified-badge { display: inline-block; padding: 2px 8px; background: rgba(34,197,94,0.1); color: var(--success); border-radius: 4px; font-size: 0.7rem; font-weight: 600; }

/* Review Media Grid in Cards */
.review-media-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.review-media-item { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; position: relative; flex-shrink: 0; border: 1px solid var(--border); }
.review-media-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.review-media-item img:hover { transform: scale(1.08); }
.review-video-thumb { width: 100%; height: 100%; position: relative; overflow: hidden; }
.review-video-thumb video { width: 100%; height: 100%; object-fit: cover; }

/* Gallery Section */
.review-gallery { margin-bottom: 40px; padding: 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; position: relative; aspect-ratio: 1; border: 1px solid var(--border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item img:hover { transform: scale(1.05); }
.gallery-video-thumb { width: 100%; height: 100%; position: relative; overflow: hidden; }
.gallery-video-thumb video { width: 100%; height: 100%; object-fit: cover; }
.gallery-play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); font-size: 1.5rem; color: #fff; transition: var(--transition); }
.gallery-item:hover .gallery-play-btn { background: rgba(0,0,0,0.5); }
.gallery-filter.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Review Upload Area */
.review-upload-area { border: 2px dashed var(--border); border-radius: var(--radius); padding: 20px; background: var(--card-bg); }
.review-upload-actions { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.upload-label { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.upload-label input[type="file"] { display: none; }
.review-upload-drag { border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 30px 20px; text-align: center; cursor: pointer; transition: var(--transition); margin-bottom: 12px; }
.review-upload-drag i { font-size: 2rem; color: var(--text-light); margin-bottom: 8px; }
.review-upload-drag p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 4px; }
.review-upload-drag:hover { border-color: var(--accent); background: var(--card-hover); }

/* Preview Grid */
.preview-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-item { width: 100px; height: 100px; border-radius: var(--radius-sm); overflow: hidden; position: relative; border: 1px solid var(--border); }
.preview-item img, .preview-item video { width: 100%; height: 100%; object-fit: cover; }
.preview-vid-badge { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.6); color: #fff; border-radius: 4px; padding: 2px 6px; font-size: 0.65rem; }
.preview-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transition: var(--transition); }
.preview-item:hover .preview-overlay { opacity: 1; }
.preview-overlay button { background: none; border: none; color: #fff; cursor: pointer; font-size: 0.9rem; padding: 4px 8px; border-radius: 4px; }
.preview-overlay button:hover { background: rgba(255,255,255,0.2); }
.preview-info { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.65rem; padding: 2px 6px; text-align: center; }

/* Lightbox */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox-overlay.active { display: flex; }
.lightbox-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; z-index: 3001; }
.lightbox-content { display: flex; align-items: center; justify-content: center; max-width: 90vw; max-height: 90vh; }
.lightbox-content img, .lightbox-content video { max-width: 100%; max-height: 90vh; border-radius: var(--radius); }

/* Notification Bell */
.notif-bell { position: relative; }

.notif-dropdown {
    position: absolute;
    top: 100%;
    right: -80px;
    width: 340px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: none;
    z-index: 100;
    margin-top: 8px;
    box-shadow: var(--shadow);
}

.notif-bell:hover .notif-dropdown { display: block; }

.notif-dropdown .notif-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.95rem;
}

.notif-dropdown .notif-item {
    display: flex;
    gap: 10px;
    padding: 12px 18px;
    transition: var(--transition);
}

.notif-dropdown .notif-item:hover { background: var(--card-hover); }
.notif-dropdown .notif-item.unread { background: rgba(105,117,101,0.05); }

.notif-dropdown .notif-item .notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-dropdown .notif-item .notif-content h4 { font-size: 0.85rem; font-weight: 600; }
.notif-dropdown .notif-item .notif-content p { font-size: 0.8rem; color: var(--text-light); }
.notif-dropdown .notif-item .notif-content span { font-size: 0.75rem; color: var(--text-light); }

/* Star Rating Input */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating input { display: none; }

.star-rating label {
    font-size: 1.5rem;
    color: var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.star-rating label:hover, .star-rating label:hover ~ label { color: var(--warning); }
.star-rating input:checked ~ label { color: var(--warning); }

.lucide-spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Banner CMS */
.banner-table .thumb-cell { width: 200px; min-width: 200px; padding: 8px; }
.banner-table .thumb-img { width: 200px; height: 100px; object-fit: cover; border-radius: 8px; background: var(--card-hover); display: block; }
.banner-table td { vertical-align: middle; }
.banner-row { cursor: grab; }
.banner-row:active { cursor: grabbing; }
.banner-row.dragging { opacity: 0.4; }
.drag-handle { cursor: grab; color: var(--text-light); display: flex; align-items: center; padding: 0 6px; }
.drag-handle:active { cursor: grabbing; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.status-active { background: rgba(34,197,94,0.12); color: #22c55e; }
.status-scheduled { background: rgba(59,130,246,0.12); color: #3b82f6; }
.status-expired { background: rgba(239,68,68,0.12); color: #ef4444; }
.status-draft { background: rgba(156,163,175,0.12); color: #9ca3af; }
.status-disabled { background: rgba(107,114,128,0.12); color: #6b7280; }
.status-inactive { background: rgba(234,179,8,0.12); color: #eab308; }
/* Preview modal */
.preview-frame { width: 100%; border: none; border-radius: 12px; background: #fff; }
.preview-desktop { height: 420px; }
.preview-tablet { height: 360px; max-width: 600px; margin: 0 auto; }
.preview-mobile { height: 520px; max-width: 320px; margin: 0 auto; }
.device-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.device-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 8px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: var(--transition); }
.device-tab:hover { background: var(--card-hover); }
.device-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.preview-device-frame { background: var(--primary); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
/* Sort order inline */
.sort-order-input { width: 50px; text-align: center; padding: 4px; border: 1px solid var(--border); border-radius: 4px; background: var(--input-bg); color: var(--text); font-size: 0.85rem; }

/* ── Floating Store Chat Button ── */
.store-chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, box-shadow .2s;
}
.store-chat-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(0,0,0,.35);
}

/* ── Chat Overlay ── */
.store-chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.store-chat-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ── Chat Sidebar ── */
.store-chat-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--card-bg);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 40px rgba(0,0,0,.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .25s ease-in-out;
    overflow: hidden;
}
.store-chat-sidebar.active {
    transform: translateX(0);
}

/* Sidebar Header */
.store-chat-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--accent);
    color: #fff;
    flex-shrink: 0;
}
.store-chat-sidebar-store {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.store-chat-sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.store-chat-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.store-chat-sidebar-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.store-chat-sidebar-name {
    font-weight: 700;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.store-chat-sidebar-status {
    font-size: .75rem;
    opacity: .8;
}
.store-chat-sidebar-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: .8;
    padding: 4px;
    display: flex;
    transition: opacity .15s;
}
.store-chat-sidebar-close:hover { opacity: 1; }

/* Messages */
.store-chat-sidebar-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--secondary);
}
.store-chat-msg {
    display: flex;
    max-width: 85%;
    gap: 8px;
    align-items: flex-end;
}
.store-chat-msg.customer {
    align-self: flex-end;
}
.store-chat-msg.ai {
    align-self: flex-start;
}
.chat-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}
.store-chat-msg.seller .chat-msg-avatar { order: 0; }
.store-chat-msg .msg-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: .88rem;
    line-height: 1.45;
    word-wrap: break-word;
    max-width: 100%;
}
.store-chat-msg.customer .msg-bubble {
    background: var(--accent);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.store-chat-msg.seller .msg-bubble {
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

/* Input Area */
.store-chat-sidebar-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--card-bg);
    flex-shrink: 0;
}
.store-chat-input {
    flex: 1;
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 21px;
    outline: none;
    font-size: .88rem;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text);
}
.store-chat-input:focus {
    border-color: var(--accent);
}
.store-chat-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .15s;
}
.store-chat-send:hover { transform: scale(1.08); }
.store-chat-send:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.chat-sending-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .5s linear infinite;
}

/* Typing Indicator */
.store-chat-typing {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 4px;
    background: var(--secondary);
    flex-shrink: 0;
}
.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}
.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-6px); opacity: 1; }
}
.typing-label {
    font-size: .78rem;
    color: var(--text-light);
}

/* Unread Badge */
.store-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 50px;
    background: var(--danger, #ef4444);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(239,68,68,.4);
    pointer-events: none;
}

/* Waiting state */
.store-chat-sidebar-waiting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    background: var(--secondary);
    color: var(--text-light);
    font-size: .85rem;
    flex-shrink: 0;
}
.waiting-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

/* ── Store Orders Tab ── */
.store-orders-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: .9rem;
}
.store-orders-loading::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    margin: 12px auto 0;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .6s linear infinite;
}
.store-order-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.store-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--secondary);
    font-size: .85rem;
}
.store-order-header .order-no {
    font-weight: 600;
}
.store-order-header .order-status {
    font-weight: 600;
    text-transform: capitalize;
}
.store-order-body {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: .85rem;
    color: var(--text-light);
}
.store-order-footer {
    padding: 8px 16px;
    border-top: 1px solid var(--border);
    text-align: right;
}

/* ── Responsive Chat Sidebar ── */
@media (max-width: 768px) {
    .store-chat-sidebar { width: 340px; }
}
@media (max-width: 480px) {
    .store-chat-sidebar { width: 100%; }
    .store-chat-btn { bottom: 16px; right: 16px; width: 56px; height: 56px; }
    .store-chat-sidebar-messages { padding: 12px 14px; }
}

/* ── Page Load Recovery & Error Modal ── */
.recovery-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.recovery-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.recovery-modal-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius, 16px);
    box-shadow: var(--shadow, 0 10px 40px rgba(0, 0, 0, 0.2));
    max-width: 440px;
    width: 100%;
    padding: 32px 24px;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.recovery-modal-overlay.active .recovery-modal-card {
    transform: scale(1);
}

.recovery-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(234, 179, 8, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recovery-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text, #111827);
    margin: 0 0 10px 0;
}

.recovery-modal-text {
    font-size: 0.9rem;
    color: var(--text-light, #6b7280);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.recovery-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.recovery-modal-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════════════
   HOMEPAGE REDESIGN & NEARBY STORES STYLES (PRD v1)
   ══════════════════════════════════════════════════════════════════════════ */
.home-search-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.home-search-hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.home-search-hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 18px;
}

.home-search-hero-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 6px 12px 6px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.home-search-hero-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 12px 36px rgba(47,128,237,0.18);
}

.home-search-hero-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.home-search-hero-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 1.05rem;
    color: var(--text);
    outline: none;
    font-family: inherit;
}

.home-search-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--button-primary-bg);
    color: var(--button-primary-text);
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.home-search-hero-btn:hover {
    background: var(--brand-accent);
    color: var(--button-primary-hover-text);
}

/* Store Card Grid */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.store-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius, 16px);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.store-card-banner {
    height: 100px;
    background: linear-gradient(135deg, var(--accent) 0%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
}

.store-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-card-logo-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    background: var(--card-bg);
    position: absolute;
    bottom: -30px;
    left: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.store-card-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-card-body {
    padding: 38px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.store-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-card-meta {
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.store-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.store-card-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.45;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--accent);
}

