/* ==========================================================================
   MUNDO APPLE BUSCADOR — DESIGN SYSTEM PRO (APPLE GLASSMORPHISM)
   ========================================================================== */

:root {
  /* Dark Theme Palette (Deep OLED Glassmorphic) */
  --bg-base: #08090c;
  --bg-header: rgba(10, 12, 17, 0.82);
  --bg-card: rgba(18, 21, 29, 0.95);
  --bg-card-hover: rgba(24, 28, 39, 0.98);
  --bg-subtle: #12151e;
  --bg-pill: rgba(255, 255, 255, 0.05);
  --bg-pill-hover: rgba(255, 255, 255, 0.09);
  --bg-input: #11141c;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.045);
  --border-focus: #10b981;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-green: #10b981;
  --accent-green-hover: #059669;
  --accent-lime: #84cc16;
  --whatsapp-color: #25d366;
  --whatsapp-hover: #20ba5a;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.58);
  --shadow-glow: 0 0 24px rgba(16, 185, 129, 0.18);

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);

  /* Device Safe Areas (iPhone Notches, Dynamic Island & Home Bar) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* Light Theme Palette */
body.light-theme {
  --bg-base: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.85);
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-pill: rgba(0, 0, 0, 0.04);
  --bg-pill-hover: rgba(0, 0, 0, 0.08);
  --bg-input: #ffffff;

  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: #10b981;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-green: #059669;
  --accent-green-hover: #047857;
  --accent-lime: #65a30d;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(5, 150, 105, 0.12);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(ellipse 90% 45% at 50% -12%, rgba(16, 185, 129, 0.07), transparent 65%),
    radial-gradient(ellipse 60% 30% at 85% 25%, rgba(59, 130, 246, 0.035), transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body.light-theme {
  background-image: 
    radial-gradient(ellipse 90% 45% at 50% -12%, rgba(16, 185, 129, 0.04), transparent 65%),
    radial-gradient(ellipse 60% 30% at 85% 25%, rgba(59, 130, 246, 0.02), transparent 50%);
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
body.light-theme ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   TOP HEADER (FROSTED GLASS)
   ========================================================================== */

.top-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding-top: max(10px, var(--safe-top));
  padding-bottom: 10px;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  transition: var(--transition);
}

.header-inner {
  max-width: 1780px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(12px, 2vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand Section */
.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.logo-icon-wrap {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.brand-logo:hover .logo-icon-wrap {
  transform: scale(1.05);
  border-color: var(--accent-green);
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-green);
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Live Metrics */
.header-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent-green);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent-green);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 0.9; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}

.metric-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.metric-label {
  color: var(--text-muted);
  font-weight: 700;
}

.dollar-rate {
  font-weight: 800;
  color: var(--text-primary);
}

.dollar-var {
  color: var(--accent-green);
  font-size: 0.72rem;
  font-weight: 700;
}

.date-pill {
  display: none;
}
@media (min-width: 900px) {
  .date-pill { display: flex; }
}

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

.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

/* User Session Header Widgets */
.user-session-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-green);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: var(--transition);
}
.admin-link-btn:hover {
  background: var(--accent-green);
  color: #ffffff;
}

.calc-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(41, 151, 255, 0.12);
  border: 1px solid rgba(41, 151, 255, 0.35);
  border-radius: var(--radius-full);
  color: #2997ff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.calc-top-btn:hover {
  background: rgba(41, 151, 255, 0.22);
  border-color: #2997ff;
  transform: translateY(-1px);
  color: #ffffff;
}

body.light-theme .calc-top-btn {
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  border-color: rgba(0, 113, 227, 0.3);
}

body.light-theme .calc-top-btn:hover {
  background: #0071e3;
  color: #ffffff;
}

.admin-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  color: var(--accent-green);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.admin-top-btn:hover {
  background: var(--accent-green);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.logout-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-full);
  color: #fca5a5;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.logout-header-btn:hover {
  background: var(--accent-red);
  color: #ffffff;
}

/* ==========================================================================
   NAVIGATION SWITCH TABS
   ========================================================================== */
.view-switch-nav {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 4px;
}
body.light-theme .view-switch-nav {
  background: rgba(0, 0, 0, 0.04);
}

.view-tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.view-tab-btn:hover {
  color: var(--text-primary);
}

.view-tab-btn.active {
  background: var(--accent-green);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
  font-weight: 700;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

   ========================================================================== */

.category-nav-wrapper {
  max-width: 1440px;
  margin: 14px auto 8px;
  padding: 0 24px;
}

.category-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none; /* Firefox */
}
.category-nav::-webkit-scrollbar {
  display: none; /* Safari & Chrome */
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  user-select: none;
}

.cat-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-icon-svg svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.category-pill:hover .cat-icon-svg,
.pod-cat-pill:hover .cat-icon-svg {
  transform: scale(1.14);
}

.category-pill:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
body.light-theme .category-pill:hover {
  border-color: #cbd5e1;
}

.category-pill.active {
  background: linear-gradient(135deg, var(--accent-green) 0%, #059669 100%);
  border-color: var(--accent-green);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   SPOTLIGHT SEARCH & TOOLBAR CONTROLS
   ========================================================================== */

.filter-bar-wrapper {
  max-width: 1440px;
  margin: 0 auto 16px;
  padding: 0 24px;
}

.search-and-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
}

@media (min-width: 1100px) {
  .search-and-controls {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
}

/* Spotlight Search Box */
.search-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 0 16px;
  height: 52px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18), 0 8px 24px rgba(0, 0, 0, 0.12);
}

.search-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-right: 12px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.search-box:focus-within .search-icon-wrap {
  color: var(--accent-green);
}

.search-box input {
  flex: 1;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 500;
  height: 100%;
}

.search-box input::placeholder {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 400;
}

.search-keyboard-hint {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  user-select: none;
  margin-left: 8px;
}

.search-clear-btn {
  background: var(--bg-pill);
  color: var(--text-secondary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  margin-left: 8px;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  flex-shrink: 0;
}
.search-clear-btn:hover {
  background: var(--bg-pill-hover);
  color: var(--text-primary);
  border-color: var(--border-color);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 380px;
  overflow-y: auto;
  z-index: 500;
  display: none;
  backdrop-filter: blur(20px);
}

.autocomplete-dropdown.open {
  display: block;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-subtle);
}

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

.autocomplete-item:hover, .autocomplete-item.selected {
  background: var(--bg-card-hover);
}

.autocomplete-item-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.autocomplete-item-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  color: var(--text-muted);
}

/* Secondary Filters Toolbar */
.secondary-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.select-wrapper {
  position: relative;
  flex: 1 1 140px;
}

.filter-select {
  width: 100%;
  height: 42px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 28px 0 12px;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg2+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.filter-select:hover {
  border-color: var(--text-muted);
}

.filter-select:focus {
  border-color: var(--accent-green);
}

.filter-select option {
  background-color: var(--bg-card);
  color: var(--text-primary);
  padding: 8px;
}

/* Verified Toggle */
.toggle-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  height: 42px;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.toggle-filter:hover {
  border-color: var(--text-muted);
}

.toggle-filter input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-green);
  cursor: pointer;
}

.toggle-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Clear Filters Button */
.clear-filters-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  height: 42px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.clear-filters-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   ACTIVE MODEL BANNER (ISOLATED MODE)
   ========================================================================== */

.active-model-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(132, 204, 22, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
}

.active-model-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.active-model-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-green);
}

.active-model-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.active-model-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.active-model-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.remove-model-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.remove-model-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

/* ==========================================================================
   RESULTS INFO BAR
   ========================================================================== */

.results-info-bar {
  max-width: 1440px;
  margin: 0 auto 14px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.count-highlight {
  color: var(--text-primary);
  font-weight: 800;
}

/* ==========================================================================
   TÓPICO: MELHORES PREÇOS POR COR (APPLE SWATCHES MODULE)
   ========================================================================== */

.best-prices-color-container {
  max-width: 1440px;
  margin: 0 auto 20px;
  padding: 0 24px;
}

.color-prices-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
}

.color-prices-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.color-prices-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-prices-title .model-highlight {
  color: var(--accent-green);
  font-weight: 800;
}

.color-prices-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.color-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.color-box-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.color-box-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-green);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}

.color-box-card.active-color {
  border-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 0 1px var(--accent-green);
}

.color-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.color-box-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
body.light-theme .color-circle {
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.color-circle-mini {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  display: inline-block;
  vertical-align: -1px;
  flex-shrink: 0;
  margin-right: 6px;
}
body.light-theme .color-circle-mini {
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.color-box-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.color-box-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.color-box-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-green);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.color-box-supplier {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.color-box-supplier strong {
  color: var(--text-primary);
  font-weight: 700;
}

.color-box-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.color-box-whatsapp-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--whatsapp-color);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.color-box-whatsapp-btn:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.color-box-filter-btn {
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.color-box-filter-btn:hover {
  border-color: var(--accent-green);
  background: var(--bg-card-hover);
}

/* ==========================================================================
   PRODUCT GRID & MODERN CARDS
   ========================================================================== */

.products-container {
  max-width: 1440px;
  margin: 0 auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
}
body.light-theme .product-card:hover {
  border-color: #cbd5e1;
}

/* Supplier Header */
.card-supplier {
  display: flex;
  align-items: center;
  gap: 10px;
}

.supplier-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  flex-shrink: 0;
}

.supplier-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.supplier-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verified-icon {
  color: #38bdf8;
  flex-shrink: 0;
}

.supplier-address {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Product Card Body */
.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.product-title:hover {
  color: var(--accent-green);
}

/* Tag Row */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
}

.tag.tag-storage {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.25);
}
.tag.tag-storage:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #60a5fa;
}

.tag.tag-color {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.25);
  display: inline-flex;
  align-items: center;
}
.tag.tag-color:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: #c084fc;
}

.tag.tag-region {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

/* Price Section */
.card-price-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.price-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--accent-green);
  letter-spacing: -0.5px;
  line-height: 1;
}

/* Card Action Buttons */
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--whatsapp-color);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.25);
  transition: var(--transition);
}

.whatsapp-btn:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.history-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.history-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* ==========================================================================
   MODAL DIALOG (PRICE HISTORY)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

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

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
  animation: modal-slide-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-slide-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close {
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg-pill-hover);
  color: var(--text-primary);
}

/* ==========================================================================
   RESPONSIVENESS / DUAL DESKTOP & MOBILE OPTIMIZATION
   ========================================================================== */

/* Tablets & Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .search-and-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .secondary-filters {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
  .select-wrapper {
    flex: 1 1 calc(50% - 6px);
  }
  .color-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets & Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }
  .category-nav-wrapper,
  .filter-bar-wrapper,
  .results-info-bar,
  .best-prices-color-container,
  .products-container {
    padding: 0 16px;
  }
  .search-keyboard-hint {
    display: none;
  }
}

/* Mobile Devices / Smartphones (max-width: 640px) */
@media (max-width: 640px) {
  /* Mobile Header */
  .top-header {
    padding: 8px 0;
  }
  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }
  .brand-section {
    gap: 8px;
  }
  .logo-icon-wrap {
    width: 32px;
    height: 32px;
  }
  .logo-icon-wrap svg {
    width: 18px;
    height: 18px;
  }
  .brand-title {
    font-size: 1rem;
    letter-spacing: 0.5px;
  }
  .brand-badge {
    display: none;
  }

  /* Compact Live Indicator & Currency on Mobile */
  .header-metrics {
    gap: 6px;
  }
  .live-indicator {
    padding: 4px 8px;
    font-size: 0.68rem;
    gap: 5px;
  }
  .pulse-dot {
    width: 6px;
    height: 6px;
  }
  .pulse-dot::after {
    width: 10px;
    height: 10px;
    top: -2px;
    left: -2px;
  }
  .metric-pill {
    padding: 4px 8px;
    font-size: 0.72rem;
    gap: 4px;
  }
  .metric-label {
    display: none;
  }
  .dollar-var {
    display: none;
  }
  .theme-toggle-btn {
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    justify-content: center;
  }
  #themeLabel {
    display: none;
  }

  /* Category Nav on Mobile (Smooth Touch) */
  .category-nav-wrapper {
    padding: 0 12px;
    margin: 10px auto 6px;
  }
  .category-nav {
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .category-pill {
    padding: 6px 13px;
    font-size: 0.76rem;
    scroll-snap-align: start;
  }

  /* Search & Secondary Filters on Mobile */
  .filter-bar-wrapper {
    padding: 0 12px;
    margin-bottom: 12px;
  }
  .search-and-controls {
    padding: 12px;
    border-radius: var(--radius-md);
    gap: 8px;
  }
  .search-box {
    height: 50px;
    padding: 0 14px;
    border-radius: 12px;
  }
  .search-box input,
  .pod-search-wrap input {
    font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
  }
  .autocomplete-dropdown {
    top: calc(100% + 6px);
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75);
    z-index: 10000;
  }
  
  /* 2x2 Grid for Filters on Mobile */
  .secondary-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }
  .select-wrapper {
    flex: none;
    width: 100%;
  }
  .filter-select {
    height: 38px;
    font-size: 0.76rem;
    padding: 0 22px 0 10px;
    border-radius: 8px;
  }
  .toggle-filter {
    height: 38px;
    padding: 0 10px;
    justify-content: center;
    border-radius: 8px;
  }
  .toggle-label {
    font-size: 0.76rem;
  }
  .clear-filters-btn {
    height: 38px;
    padding: 0 10px;
    justify-content: center;
    font-size: 0.76rem;
    border-radius: 8px;
  }

  /* Active Model Banner on Mobile */
  .active-model-banner {
    padding: 10px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .active-model-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .active-model-name {
    font-size: 0.95rem;
  }
  .remove-model-btn {
    width: 100%;
    justify-content: center;
    padding: 7px;
  }

  /* Results Info Bar on Mobile */
  .results-info-bar {
    padding: 0 12px;
    margin-bottom: 10px;
    font-size: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  /* Color Topic on Mobile */
  .best-prices-color-container {
    padding: 0 12px;
    margin-bottom: 14px;
  }
  .color-prices-card {
    padding: 12px 14px;
    border-radius: var(--radius-md);
  }
  .color-prices-title {
    font-size: 0.92rem;
  }
  .color-cards-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .color-box-card {
    padding: 12px 14px;
    gap: 8px;
  }
  .color-box-price {
    font-size: 1.2rem;
  }

  /* Product Cards on Mobile (Thumb Friendly & Spacious) */
  .products-container {
    padding: 0 12px;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 40px;
  }
  .product-card {
    padding: 14px 15px;
    border-radius: var(--radius-md);
    gap: 12px;
  }
  .product-title {
    font-size: 0.92rem;
  }
  .price-val {
    font-size: 1.45rem;
  }
  .card-actions {
    gap: 8px;
  }
  .whatsapp-btn {
    width: 100%;
    height: 46px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 12px;
    justify-content: center;
  }

  /* Modal on Mobile */
  .modal-content {
    margin: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    max-width: 100%;
  }
}

/* ==========================================================================
   VIEW 1: PREÇOS DO DIA (PAINEL OFICIAL AGRUPADO)
   ========================================================================== */

.view-container {
  width: 100%;
  animation: fadeInView 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Sub-header Toolbar */
.pod-toolbar-wrapper {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  margin-bottom: 20px;
}

.pod-toolbar {
  max-width: 1780px;
  width: 96%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pod-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pod-main-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
}

.pod-dollar-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-md);
}

.pod-dollar-icon {
  width: 20px;
  height: 20px;
  background: var(--accent-green);
  color: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.pod-dollar-data {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.pod-dollar-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pod-dollar-val {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.pod-dollar-val small {
  font-size: 0.68rem;
  opacity: 0.9;
  font-weight: 700;
}

/* Search Container & Suggestion Pills */
.pod-search-container {
  flex: 1 1 380px;
  max-width: 620px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pod-search-container .pod-search-wrap {
  width: 100%;
  max-width: 100%;
  flex: none;
}

/* Controle visibilidade busca desktop vs mobile */
.sf-search-mobile-only { display: none; }
.sf-search-desktop-only { display: flex; }





.pod-search-wrap {
  flex: 1 1 360px;
  max-width: 580px;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0 18px;
  height: 52px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  cursor: text;
}

.pod-search-wrap:focus-within {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18), 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pod-search-icon {
  color: var(--text-muted);
  margin-right: 12px;
  flex-shrink: 0;
  transition: color 0.2s ease;
  pointer-events: none;
}

.pod-search-wrap:focus-within .pod-search-icon {
  color: var(--accent-green);
}

.pod-search-wrap input {
  width: 100%;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 500;
  background: transparent;
  border: none;
  outline: none;
}

.pod-search-wrap input::placeholder {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 400;
}

/* Right Controls (Date, Region, Verified, Export) */
.pod-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pod-control-pill.date-control {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.pod-region-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.pod-region-wrapper::after {
  content: '';
  position: absolute;
  right: 12px;
  pointer-events: none;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
}

.pod-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 7px 30px 7px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.pod-select:focus {
  border-color: var(--accent-green);
}

.pod-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 7px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.pod-checkbox-label:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.pod-checkbox-label input[type="checkbox"] {
  display: none;
}

.pod-custom-check {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1.5px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.pod-checkbox-label input[type="checkbox"]:checked + .pod-custom-check {
  background: var(--accent-green);
  border-color: var(--accent-green);
}

.pod-checkbox-label input[type="checkbox"]:checked + .pod-custom-check::after {
  content: '✓';
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.pod-btn-export {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.pod-btn-export:hover {
  background: var(--accent-green);
  color: #ffffff;
  border-color: var(--accent-green);
}

/* Category Filter Bar */
.pod-categories-wrapper {
  max-width: 1780px;
  width: 96%;
  margin: 18px auto 16px;
  padding: 0 16px;
}

.pod-categories-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pod-categories-list::-webkit-scrollbar {
  display: none;
}

.pod-cat-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.pod-cat-pill:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.pod-cat-pill.active {
  background: var(--text-primary);
  color: var(--bg-base);
  border-color: var(--text-primary);
  font-weight: 700;
}

body.light-theme .pod-cat-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.pod-cat-count {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}

.pod-cat-pill.active .pod-cat-count {
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
}

body.light-theme .pod-cat-pill.active .pod-cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Info Summary Bar */
.pod-info-summary {
  max-width: 1780px;
  width: 96%;
  margin: 0 auto 16px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pod-info-suppliers {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-green);
  font-weight: 600;
}

/* ==========================================================================
   MATRIX GRID (6 COLUMNS DESKTOP / EXACT PXT REPLICATION)
   ========================================================================== */

.pod-matrix-container,
.storefront-grid {
  max-width: 1780px;
  width: 96%;
  margin: 0 auto 60px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  align-items: start;
}

@media (max-width: 499px) {
  .pod-matrix-container,
  .storefront-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 10px;
  }
}

/* Model Section Header in Preços do Dia & Loja Física (Oculto tanto no Desktop quanto no Mobile com espaçamento preservado) */
.pod-model-section {
  display: none !important;
}

.storefront-family-divider {
  grid-column: 1 / -1;
  height: 28px;
  width: 100%;
}

.pod-model-section-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pod-model-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--accent-green);
  flex-shrink: 0;
}

.pod-model-section-svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.pod-model-section-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.pod-model-section-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.pod-badge-seminovo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

body.light-theme .pod-badge-seminovo {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.3);
}

/* Matrix Card */
.matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, box-shadow;
}

.matrix-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body.light-theme .matrix-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

/* Card Header */
.matrix-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border-subtle);
  gap: 6px;
}

body.light-theme .matrix-card-header {
  background: rgba(0, 0, 0, 0.02);
}

.matrix-card-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.matrix-card-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  white-space: normal;
  line-height: 1.25;
  word-break: break-word;
  letter-spacing: 0.2px;
}

.matrix-card-storage {
  font-size: 0.70rem;
  font-weight: 800;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  align-self: flex-start;
}

.matrix-card-all-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: var(--radius-full);
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.matrix-card-all-btn:hover {
  background: var(--text-primary);
  color: var(--bg-base);
  border-color: var(--text-primary);
}

body.light-theme .matrix-card-all-btn:hover {
  background: #0f172a;
  color: #ffffff;
}

/* Card Body & Color Rows */
.matrix-card-body {
  display: flex;
  flex-direction: column;
}

.matrix-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
  gap: 8px;
}

.matrix-color-row:last-child {
  border-bottom: none;
}

.matrix-color-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

body.light-theme .matrix-color-row:hover {
  background: rgba(0, 0, 0, 0.03);
}

.matrix-color-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.matrix-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.4);
}

body.light-theme .matrix-color-dot {
  border: 1.5px solid rgba(0, 0, 0, 0.15);
}

.matrix-color-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: normal;
  line-height: 1.2;
  word-break: break-word;
  text-transform: uppercase;
}

.matrix-color-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.matrix-cost-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  cursor: pointer;
}

.matrix-cost-label {
  font-size: 0.54rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.matrix-cost-val {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-primary);
}

.matrix-retail-val {
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--accent-green);
}

.matrix-wa-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}

.matrix-wa-btn svg {
  width: 13px;
  height: 13px;
}

.matrix-wa-btn:hover {
  background: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.45);
}

/* Modal Large for All Offers */
.modal-content.modal-large {
  max-width: 860px;
  width: 95%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.all-offers-header-info {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.all-offers-count-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.all-offers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
  max-height: 60vh;
}

.all-offer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  gap: 12px;
  transition: var(--transition);
}

.all-offer-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
}

body.light-theme .all-offer-item:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

.all-offer-supplier {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.all-offer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.all-offer-supp-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.all-offer-supp-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.all-offer-supp-addr {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.all-offer-color-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.all-offer-price-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.all-offer-price-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-green);
}

.all-offer-wa-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #25d366;
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
}

.all-offer-wa-btn:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}

/* ==========================================================================
   CARD MACHINE SIMULATOR MODAL (CLEAN CLIENT PROPOSAL)
   ========================================================================== */
.modal-content.modal-simulator {
  max-width: 680px;
  width: 95%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 20px 22px;
  overflow: hidden;
}

#cardSimulatorBody.modal-body-custom {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(88vh - 75px);
  padding-right: 4px;
}

.sim-header-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.sim-hero-product {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-hero-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  text-transform: uppercase;
}

.sim-hero-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Dual Highlight Price Banners */
.sim-dual-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .sim-dual-highlights {
    grid-template-columns: 1fr;
  }
}

.sim-highlight-card {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

.sim-highlight-card.pix {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.sim-highlight-card.card {
  background: rgba(41, 151, 255, 0.08);
  border-color: rgba(41, 151, 255, 0.3);
}

.sim-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}

.sim-highlight-card.pix .sim-highlight-badge {
  background: rgba(16, 185, 129, 0.18);
  color: var(--accent-green);
}

.sim-highlight-card.card .sim-highlight-badge {
  background: rgba(41, 151, 255, 0.18);
  color: #2997ff;
}

.sim-highlight-val {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.sim-highlight-card.pix .sim-highlight-val {
  color: var(--accent-green);
}

.sim-highlight-card.card .sim-highlight-val {
  color: #2997ff;
}

.sim-cash-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sim-cash-prefix {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-green);
}

.sim-cash-input {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-green);
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  letter-spacing: -0.5px;
}

.sim-cash-input::placeholder {
  color: rgba(16, 185, 129, 0.4);
}

.sim-highlight-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Entry Section */
.sim-entry-section {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-entry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sim-entry-text h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.sim-entry-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sim-entry-input-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.sim-entry-input-box:focus-within {
  border-color: var(--accent-green);
}

/* =========================================================================
   SIMULADOR DE PARCELAMENTO EXECUTIVO (CLEAN & PROFESSIONAL)
   ========================================================================= */
.sim-exec-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sim-exec-header {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.sim-exec-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
  text-transform: uppercase;
}

.sim-exec-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sim-exec-meta-item {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: 6px;
}

/* Control Bar (Inputs monetários) */
.sim-exec-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

@media (max-width: 640px) {
  .sim-exec-controls {
    grid-template-columns: 1fr;
  }
}

.sim-exec-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-start;
}

.sim-exec-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 18px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-exec-label svg {
  flex-shrink: 0;
}

.sim-exec-input-wrap {
  display: flex;
  align-items: center;
  height: 42px;
  box-sizing: border-box;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 12px;
  transition: border-color 0.2s;
}

.sim-exec-input-wrap:focus-within {
  border-color: var(--accent-green);
}

.sim-exec-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: inherit;
}

.sim-exec-badge-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-green);
  height: 42px;
  box-sizing: border-box;
  padding: 0 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
}

/* Card de Aparelho na Troca (Trade-in) */
.sim-tradein-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.sim-tradein-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.02);
}

.sim-tradein-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.sim-tradein-toggle-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--accent-green);
}

.sim-tradein-heading {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.2px;
}

.sim-tradein-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.sim-tradein-body {
  padding: 14px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

.sim-tradein-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr 1fr;
  gap: 12px;
  align-items: start;
}

@media (max-width: 640px) {
  .sim-tradein-grid {
    grid-template-columns: 1fr;
  }
}

.sim-exec-select {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0 28px 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.sim-exec-select:focus {
  border-color: var(--accent-green);
}

/* Tabela Executiva Limpa */
.sim-table-wrap {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

.sim-exec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.sim-exec-table th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.sim-exec-table th.text-right,
.sim-exec-table td.text-right {
  text-align: right;
}

.sim-exec-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
}

.sim-exec-table tr:last-child td {
  border-bottom: none;
}

.sim-exec-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

.sim-exec-table tr:hover {
  background: rgba(16, 185, 129, 0.05);
}

@media (max-width: 520px) {
  .sim-exec-table th,
  .sim-exec-table td {
    padding: 7px 8px;
    font-size: 0.76rem;
  }
  .sim-exec-header {
    padding: 10px 12px;
  }
  .sim-exec-title {
    font-size: 1.05rem;
  }
  .sim-exec-controls {
    padding: 10px;
    gap: 8px;
  }
}

.sim-entry-prefix {
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--text-muted);
}

.sim-entry-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  width: 130px;
}

/* Full Installments List (1x to 18x) — single column, clean layout */
.sim-installments-section-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.sim-installments-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 42vh;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 16px;
}

.sim-row {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  min-height: 56px;
}

.sim-row:hover {
  border-color: var(--accent-green);
  background: var(--bg-card-hover);
}

.sim-row-highlight {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.04);
}

body.light-theme .sim-row-highlight {
  background: rgba(16, 185, 129, 0.06);
}

.sim-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.sim-row-badge {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--bg-pill);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  min-width: 38px;
  text-align: center;
  flex-shrink: 0;
}

.sim-row-highlight .sim-row-badge {
  background: rgba(16, 185, 129, 0.18);
  color: var(--accent-green);
}

.sim-row-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sim-row-monthly {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

.sim-row:hover .sim-row-monthly,
.sim-row-highlight .sim-row-monthly {
  color: var(--accent-green);
}

.sim-row-per-month {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 3px;
}

.sim-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  flex-shrink: 0;
  margin-left: 12px;
}

.sim-row-total-label {
  font-size: 0.60rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.sim-row-total-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.sim-row-total-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Footer Actions */
.sim-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}

.sim-btn-save-img {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.sim-btn-save-img:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

body.light-theme .sim-btn-save-img {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.light-theme .sim-btn-save-img:hover {
  background: #e2e8f0;
}

.sim-btn-copy-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: #25d366;
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.sim-btn-copy-wa:hover {
  background: #20ba5a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.sim-btn-copy-wa svg {
  width: 18px;
  height: 18px;
}

.sim-info-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   MASTER MOBILE OVERHAUL (PERFECT ALIGNMENT, NO CROOKED LAYOUTS, APPLE POLISH)
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Top Header on Mobile */
  .top-header {
    padding: 6px 0 8px;
  }

  .header-inner {
    padding: 0 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }

  .brand-section {
    order: 1;
    gap: 6px;
    margin-right: auto;
  }

  .logo-icon-wrap {
    width: 32px;
    height: 32px;
  }

  .header-right-group {
    order: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .calc-top-btn {
    padding: 5px 9px;
    font-size: 0.72rem;
    gap: 4px;
    white-space: nowrap;
  }

  .calc-top-btn svg {
    width: 13px;
    height: 13px;
  }

  .admin-top-btn {
    padding: 5px 9px;
    font-size: 0.72rem;
    gap: 4px;
    white-space: nowrap;
  }

  .admin-top-btn svg {
    width: 13px;
    height: 13px;
  }

  .live-indicator {
    padding: 4px 7px;
    font-size: 0.65rem;
    gap: 4px;
    white-space: nowrap;
  }

  .metric-pill {
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .theme-toggle-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  /* Segmented Navigation Switch Tabs (Full Width iOS Style) */
  .view-switch-nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    display: flex;
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 3px;
    box-sizing: border-box;
    gap: 4px;
  }

  body.light-theme .view-switch-nav {
    background: rgba(0, 0, 0, 0.05);
  }

  .view-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    gap: 6px;
    text-align: center;
  }

  /* 2. Sub-header Toolbar in Preços do Dia */
  .pod-toolbar-wrapper {
    padding: 10px 0 14px;
    margin-bottom: 12px;
  }

  .pod-toolbar {
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .pod-title-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .pod-main-title {
    font-size: 1.3rem;
    font-weight: 800;
  }

  .pod-dollar-card {
    padding: 4px 10px;
  }

  .pod-search-wrap {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    box-sizing: border-box !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
  }

  .pod-search-wrap input {
    font-size: 0.96rem;
  }

  .pod-controls-right {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .pod-control-pill.date-control {
    grid-column: 1 / -1;
    justify-content: center;
    height: 38px;
    font-size: 0.78rem;
  }

  .pod-region-wrapper {
    width: 100% !important;
    margin: 0 !important;
  }

  .pod-select {
    width: 100% !important;
    height: 38px !important;
    font-size: 0.76rem !important;
    box-sizing: border-box !important;
  }

  .pod-checkbox-label {
    width: 100%;
    height: 38px;
    justify-content: center;
    font-size: 0.76rem;
    box-sizing: border-box;
    padding: 0 10px;
  }

  .pod-btn-export {
    grid-column: auto !important;
    width: 100% !important;
    height: 38px !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
  }

  /* 3. Category Navigation (Both Views) */
  .pod-categories-wrapper, .category-nav-wrapper {
    padding: 0 14px;
    margin-bottom: 10px;
  }

  .pod-categories-list, .category-nav {
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .pod-cat-pill, .category-pill {
    padding: 7px 13px;
    font-size: 0.78rem;
    border-radius: var(--radius-full);
  }

  .pod-info-summary, .results-info-bar {
    padding: 0 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    font-size: 0.75rem;
  }

  /* 4. Model Sections & Matrix Grid (Preços do Dia) */
  .pod-matrix-container {
    padding: 0 14px;
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin-bottom: 40px;
  }

  .pod-model-section {
    margin-top: 18px;
    margin-bottom: 4px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .pod-model-section-left {
    gap: 8px;
  }

  .pod-model-section-title {
    font-size: 0.88rem;
    font-weight: 800;
  }

  .pod-model-section-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
  }

  .matrix-card {
    border-radius: var(--radius-md);
    width: 100%;
    box-sizing: border-box;
  }

  .matrix-card-header {
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .matrix-card-title {
    font-size: 0.85rem;
  }

  .matrix-card-storage {
    font-size: 0.72rem;
    padding: 2px 6px;
  }

  .matrix-color-row {
    padding: 11px 14px;
    gap: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .matrix-color-left {
    gap: 8px;
  }

  .matrix-color-dot {
    width: 15px;
    height: 15px;
  }

  .matrix-color-name {
    font-size: 0.82rem;
  }

  .matrix-cost-val {
    font-size: 0.98rem;
    font-weight: 800;
  }

  .matrix-wa-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .matrix-wa-btn svg {
    width: 18px;
    height: 18px;
  }

  /* 5. Products Screen on Mobile */
  .filter-bar-wrapper {
    padding: 0 14px;
    margin-bottom: 12px;
  }

  .search-and-controls {
    padding: 12px;
    border-radius: var(--radius-md);
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .search-box {
    height: 50px;
    padding: 0 14px;
    border-radius: 12px;
  }

  .search-box input {
    font-size: 0.96rem;
  }

  .secondary-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .filter-select, .toggle-filter, .clear-filters-btn {
    height: 40px;
    font-size: 0.78rem;
    box-sizing: border-box;
    border-radius: 8px;
  }

  .clear-filters-btn {
    grid-column: 1 / -1;
  }

  .products-container {
    padding: 0 14px;
    grid-template-columns: 1fr !important;
    gap: 14px;
    margin-bottom: 40px;
  }

  .product-card {
    padding: 16px;
    border-radius: var(--radius-md);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .card-supplier {
    gap: 10px;
  }

  .supplier-avatar {
    width: 36px;
    height: 36px;
  }

  .supplier-name {
    font-size: 0.88rem;
  }

  .product-title {
    font-size: 0.94rem;
  }

  .price-val {
    font-size: 1.5rem;
  }

  .card-actions {
    width: 100%;
    display: flex;
  }

  .whatsapp-btn {
    width: 100%;
    height: 48px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 12px;
    justify-content: center;
    background: var(--whatsapp-color);
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.3);
  }

  .whatsapp-btn svg {
    width: 20px;
    height: 20px;
  }

  /* 6. All Offers Modal on Mobile */
  .modal-content.modal-large {
    width: 95% !important;
    max-width: 95% !important;
    max-height: 88vh;
    margin: 12px auto;
    padding: 16px 14px;
    border-radius: var(--radius-lg);
    box-sizing: border-box;
  }

  .all-offers-header-info {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .all-offer-item {
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .all-offer-supplier {
    width: 100%;
    display: flex;
    align-items: center;
  }

  .all-offer-color-tag {
    align-self: flex-start;
  }

  .all-offer-price-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .all-offer-price-val {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   EXECUTIVE APPLE UI ENHANCEMENTS (DESKTOP & MOBILE APP-LIKE POLISH)
   ========================================================================== */

/* 1. Refined Glassmorphism & Header Depth */
.top-header {
  background: rgba(10, 12, 17, 0.82) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25) !important;
}

body.light-theme .top-header {
  background: rgba(255, 255, 255, 0.85) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

.logo-icon-wrap {
  width: 38px !important;
  height: 38px !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--accent-green, #10b981) !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.logo-icon-wrap svg {
  width: 22px !important;
  height: 22px !important;
  fill: var(--accent-green, #10b981) !important;
  color: var(--accent-green, #10b981) !important;
  display: block !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.55)) !important;
  transition: filter 0.22s ease, transform 0.22s ease !important;
}

.brand-logo:hover .logo-icon-wrap {
  transform: scale(1.08) !important;
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.brand-logo:hover .logo-icon-wrap svg {
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.85)) !important;
}

body.light-theme .logo-icon-wrap {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #059669 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.18) !important;
}

body.light-theme .logo-icon-wrap svg {
  fill: #059669 !important;
  color: #059669 !important;
  filter: drop-shadow(0 0 5px rgba(5, 150, 105, 0.45)) !important;
}

/* 2. Apple Segmented Tab Switcher (iOS/macOS style) */
.view-switch-nav {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  padding: 4px !important;
  gap: 4px !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

body.light-theme .view-switch-nav {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.view-tab-btn {
  padding: 7px 18px !important;
  border-radius: 9px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.1px !important;
  color: var(--text-secondary) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.view-tab-btn:hover {
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.view-tab-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4), 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

/* Action buttons in header */
.calc-top-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  color: var(--text-primary) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
}

.calc-top-btn:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.live-indicator {
  background: rgba(16, 185, 129, 0.09) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  border-radius: var(--radius-full) !important;
  padding: 5px 11px !important;
  color: var(--accent-green) !important;
  font-weight: 800 !important;
  font-size: 0.70rem !important;
  letter-spacing: 0.4px !important;
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  color: var(--text-primary) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px) !important;
}

/* 3. Search Bar Glass & Spotlight Glow */
.pod-search-wrap {
  background: rgba(18, 22, 31, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pod-search-wrap:focus-within {
  background: rgba(23, 28, 40, 0.96) !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), 0 12px 36px rgba(0, 0, 0, 0.35) !important;
}

body.light-theme .pod-search-wrap {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .pod-search-wrap:focus-within {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18), 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

/* 4. Category Navigation Pills - Apple Micro-Interactions */
.pod-cat-pill {
  padding: 8px 18px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pod-cat-pill:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #f8fafc !important;
  transform: translateY(-1.5px) !important;
}

.pod-cat-pill.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.38), 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

body.light-theme .pod-cat-pill {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

body.light-theme .pod-cat-pill:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

body.light-theme .pod-cat-pill.active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3) !important;
}

.pod-cat-count {
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  font-variant-numeric: tabular-nums !important;
}

.pod-cat-pill.active .pod-cat-count {
  background: rgba(0, 0, 0, 0.22) !important;
  color: #ffffff !important;
}

body.light-theme .pod-cat-pill.active .pod-cat-count {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* 5. Model Section Headers */
.pod-model-section {
  border-radius: 14px !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 4px solid #10b981 !important;
  backdrop-filter: blur(12px) !important;
}

body.light-theme .pod-model-section {
  background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #059669 !important;
}

/* 6. Model Variant Cards & Price Hierarchy (Modern Apple Glass Slate) */
.matrix-card {
  border-radius: 16px !important;
  background: rgba(18, 21, 29, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.matrix-card:hover {
  border-color: rgba(16, 185, 129, 0.45) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(16, 185, 129, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

body.light-theme .matrix-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .matrix-card:hover {
  border-color: rgba(16, 185, 129, 0.45) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08), 0 0 18px rgba(16, 185, 129, 0.12) !important;
}

.matrix-card-header {
  padding: 11px 14px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

body.light-theme .matrix-card-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.matrix-card-title {
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.15px !important;
  color: var(--text-primary) !important;
  text-transform: uppercase !important;
}

.matrix-card-storage {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  border-radius: 6px !important;
  padding: 2px 7px !important;
  letter-spacing: 0.2px !important;
}

.matrix-card-ram-badge {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  background: rgba(0, 113, 227, 0.14) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
}

.matrix-card-all-btn {
  padding: 4px 10px !important;
  font-size: 0.70rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.matrix-card-all-btn:hover {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35) !important;
  transform: scale(1.04) !important;
}

.matrix-color-row {
  padding: 8px 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  transition: background 0.18s ease !important;
}

.matrix-color-row:hover {
  background: rgba(255, 255, 255, 0.045) !important;
}

body.light-theme .matrix-color-row {
  border-bottom: 1px solid #f1f5f9 !important;
}

body.light-theme .matrix-color-row:hover {
  background: #f8fafc !important;
}

.matrix-color-dot {
  width: 13px !important;
  height: 13px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
}

body.light-theme .matrix-color-dot {
  border: 1.5px solid rgba(0, 0, 0, 0.2) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

.matrix-color-name {
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
}

body.light-theme .matrix-color-name {
  color: #475569 !important;
}

.matrix-cost-label {
  font-size: 0.56rem !important;
  font-weight: 800 !important;
  color: #64748b !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
}

.matrix-retail-val {
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  color: #10b981 !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", var(--font-family) !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.2px !important;
}

.matrix-cost-val {
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", var(--font-family) !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.2px !important;
}

body.light-theme .matrix-cost-val {
  color: #0f172a !important;
}

.matrix-wa-btn {
  width: 27px !important;
  height: 27px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
}

.matrix-wa-btn:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.55) !important;
}

/* Modals High-End Styling */
.modal-overlay {
  background: rgba(0, 0, 0, 0.72) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.modal-content {
  border-radius: 20px !important;
  background: rgba(17, 20, 28, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

body.light-theme .modal-content {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================================================
   MOBILE NATIVE APP EXPERIENCE (SMARTPHONE FOCUS)
   ========================================================================== */

@media (max-width: 768px) {
  body {
    padding-bottom: 24px !important;
  }

  /* Clean & Focused Top Header on Mobile */
  .top-header {
    padding: 8px 0 10px !important;
  }

  .header-inner {
    padding: 0 14px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Clean Top Bar: Left = Logo Apple, Right = Status + Quick Calculator */
  .brand-section {
    order: 1;
  }

  .header-right-group {
    order: 2;
    gap: 6px !important;
  }

  .calc-top-btn {
    padding: 5px 9px !important;
    border-radius: 8px !important;
    font-size: 0.72rem !important;
    height: 30px !important;
    gap: 4px !important;
  }
  .calc-top-btn span {
    display: inline !important;
  }

  .admin-top-btn {
    display: inline-flex !important;
    padding: 5px 9px !important;
    border-radius: 8px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    height: 30px !important;
    gap: 4px !important;
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: var(--accent-green) !important;
  }
  .admin-top-btn span {
    display: inline !important;
  }

  .theme-toggle-btn {
    padding: 5px 8px !important;
    height: 30px !important;
    border-radius: 8px !important;
    font-size: 0.72rem !important;
  }
  .theme-toggle-btn #themeLabel {
    display: none !important;
  }

  .user-session-info {
    gap: 6px !important;
  }

  .user-store-badge {
    padding: 4px 8px !important;
    font-size: 0.70rem !important;
    max-width: 110px !important;
  }

  .admin-link-btn {
    padding: 5px 8px !important;
    font-size: 0.70rem !important;
    height: 30px !important;
  }

  .logout-header-btn {
    padding: 5px 8px !important;
    font-size: 0.70rem !important;
    height: 30px !important;
  }

  .live-indicator {
    padding: 4px 7px !important;
    font-size: 0.65rem !important;
    gap: 5px !important;
  }

  /* Elegant iOS-Style Segmented Pill Switcher on Mobile */
  .view-switch-nav {
    display: flex !important;
    order: 3;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 3px !important;
    gap: 3px !important;
    margin-top: 2px !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  }

  body.light-theme .view-switch-nav {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
  }

  .view-tab-btn {
    flex: 1 !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border-radius: 9px !important;
  }

  /* Elastic horizontal scroll for categories */
  .pod-categories-wrapper {
    width: 100% !important;
    padding: 0 14px !important;
    margin-bottom: 12px !important;
  }

  .pod-categories-list {
    gap: 8px !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x proximity !important;
  }

  .pod-cat-pill {
    padding: 8px 16px !important;
    font-size: 0.82rem !important;
    scroll-snap-align: start !important;
    border-radius: 12px !important;
  }

  /* Toolbar search & export on mobile */
  .pod-toolbar-wrapper {
    padding: 0 !important;
    margin: 0 !important;
  }

  .pod-toolbar {
    padding: 0 14px !important;
    gap: 10px !important;
  }

  .pod-title-group {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .pod-main-title {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
  }

  .pod-search-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: 46px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
  }

  .pod-controls-right {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
  }

  .pod-region-wrapper {
    flex: 1 !important;
  }

  .pod-select {
    width: 100% !important;
    height: 40px !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
  }

  .pod-btn-export {
    height: 40px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }

  /* Model Section Banner on Mobile & Family Spacer */
  .pod-model-section {
    margin: 18px 0 10px !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    width: 100% !important;
  }

  .storefront-family-divider {
    grid-column: 1 / -1;
    height: 14px !important;
    width: 100% !important;
  }

  .pod-model-section-title {
    font-size: 0.95rem !important;
  }

  /* Matrix Cards: 1 coluna em smartphones (< 560px), 2 colunas fluidas em tablets/telas médias (561px-768px) */
  .pod-matrix-container,
  .storefront-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 12px !important;
    padding: 0 clamp(10px, 2.5vw, 16px) !important;
    width: 100% !important;
  }

  @media (max-width: 560px) {
    .pod-matrix-container,
    .storefront-grid {
      grid-template-columns: 1fr !important;
      gap: 10px !important;
      padding: 0 clamp(8px, 2vw, 12px) !important;
    }
  }

  .matrix-card {
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(18, 21, 29, 0.95) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  }

  .matrix-card-header {
    padding: 12px 14px !important;
    gap: 8px !important;
  }

  .matrix-card-title {
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.25 !important;
  }

  .matrix-card-storage {
    font-size: 0.78rem !important;
    padding: 2px 8px !important;
  }

  .matrix-card-all-btn {
    padding: 6px 12px !important;
    font-size: 0.74rem !important;
  }

  .matrix-color-row {
    padding: 10px 14px !important;
    gap: 10px !important;
  }

  .matrix-color-left {
    gap: 10px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .matrix-color-dot {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
  }

  .matrix-color-name {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .matrix-color-right {
    gap: 10px !important;
    flex-shrink: 0 !important;
  }

  .matrix-cost-group {
    align-items: flex-end !important;
  }

  .matrix-cost-label {
    font-size: 0.58rem !important;
    letter-spacing: 0.4px !important;
  }

  .matrix-cost-val,
  .matrix-retail-val {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
  }

  .matrix-wa-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .matrix-wa-btn svg {
    width: 17px !important;
    height: 17px !important;
  }

  /* Native Bottom Sheet modal for mobile phones (<= 600px) */
  @media (max-width: 600px) {
    .modal-overlay {
      align-items: flex-end !important;
      padding: 0 !important;
    }

    .modal-content.modal-large,
    .modal-content.modal-simulator,
    #pdfSelectionModal .modal-content {
      width: 100% !important;
      max-width: 100% !important;
      max-height: 88dvh !important;
      max-height: 88vh !important;
      height: auto !important;
      display: flex !important;
      flex-direction: column !important;
      border-radius: 20px 20px 0 0 !important;
      margin: 0 !important;
      animation: slideUpModal 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
  }

  /* Vitrine Cliente (Olho): centralizado no meio da tela no celular */
  #clientShowcaseModal {
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
  }

  #clientShowcaseModal .modal-content {
    width: 94% !important;
    max-width: 440px !important;
    max-height: 85vh !important;
    border-radius: 18px !important;
    margin: auto !important;
    animation: modal-slide-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  #pdfSelectionListBody {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .export-modal-footer {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    background: var(--bg-card-header) !important;
    border-top: 1px solid var(--border-color) !important;
  }

  #btnCopySelectedWhatsApp {
    order: 1 !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 14px !important;
    font-size: 0.92rem !important;
    border-radius: 10px !important;
  }

  .export-modal-footer button[onclick="closePdfSelectionModal()"] {
    order: 2 !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 9px !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
  }

  @keyframes slideUpModal {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}

/* ==========================================================================
   MOBILE HAMBURGER BUTTON & SLIDE-OVER DRAWER
   ========================================================================== */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.light-theme .mobile-menu-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.mobile-menu-btn:active {
  transform: scale(0.92);
}

/* Drawer Backdrop Overlay */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Slide-in Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: #11141b;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
  z-index: 99999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.light-theme .mobile-drawer {
  background: #ffffff;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .mobile-drawer-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

body.light-theme .mobile-drawer-close {
  background: rgba(0, 0, 0, 0.05);
}

.mobile-drawer-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mobile-drawer-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.mobile-drawer-user {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

body.light-theme .mobile-drawer-user {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.mobile-drawer-user-badge {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--accent-green);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  text-align: left;
}

body.light-theme .mobile-drawer-item {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

.mobile-drawer-item:hover,
.mobile-drawer-item:active {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(-2px);
}

body.light-theme .mobile-drawer-item:hover,
body.light-theme .mobile-drawer-item:active {
  background: #f1f5f9;
}

#mobileDrawerAdminBtn {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-weight: 700;
}

.mobile-drawer-item.logout {
  margin-top: auto;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

/* ==========================================================================
   MOBILE MEDIA QUERY: HEADER SIMPLIFICATION & SEARCH QUADRANTE CARD
   ========================================================================== */
@media (max-width: 768px) {
  /* Show hamburger button and hide cluttered header pills */
  .mobile-menu-btn {
    display: inline-flex !important;
  }

  /* Alternador Preços do dia & Loja Física visível na tela inicial no mobile quando logado */
  .view-switch-nav {
    display: flex !important;
    order: 3;
    width: 100% !important;
    flex-basis: 100% !important;
    margin-top: 6px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-full) !important;
    padding: 3px !important;
    gap: 4px !important;
    box-sizing: border-box !important;
  }
  body.light-theme .view-switch-nav {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
  }
  .view-switch-nav.single-tab {
    display: none !important;
  }
  .view-tab-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .header-right-group .calc-top-btn,
  .header-right-group .theme-toggle-btn,
  .header-right-group .admin-top-btn,
  .header-right-group .user-session-info,
  .header-right-group .live-indicator {
    display: none !important;
  }

  .top-header .header-inner {
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 16px !important;
    height: auto !important;
    min-height: 56px !important;
  }


  /* Busca desktop: visível no desktop, escondida no mobile */
  .sf-search-desktop-only {
    display: flex !important;
  }
  /* Busca mobile: escondida no desktop, visível no mobile */
  .sf-search-mobile-only {
    display: none !important;
  }

  /* Esconde a section do toolbar apenas no storefront no mobile (pois usa o card unificado) */
  #viewStoreFront .pod-toolbar-wrapper {
    display: none !important;
  }

  /* Card unificado no mobile: categorias + busca juntos, sem gap */
  .pod-categories-wrapper {
    margin: 16px 12px 14px 12px !important;
    padding: 12px 14px 14px 14px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  }

  body:not(.light-theme) .pod-categories-wrapper {
    background: rgba(18, 22, 31, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }

  /* Busca mobile DENTRO do card de categorias */
  .sf-search-mobile-only {
    display: block !important;
    margin-bottom: 10px !important;
  }

  .sf-search-mobile-only .pod-search-wrap {
    margin: 0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 14px !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
  }

  body:not(.light-theme) .sf-search-mobile-only .pod-search-wrap {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
  }

  .sf-search-mobile-only .pod-search-wrap input {
    height: 40px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 36px 0 28px !important;
    font-size: 16px !important;
    color: #0f172a !important;
    width: 100% !important;
    box-sizing: border-box !important;
    outline: none !important;
  }

  body:not(.light-theme) .sf-search-mobile-only .pod-search-wrap input {
    color: #f8fafc !important;
  }

  .sf-search-mobile-only .pod-search-wrap input::placeholder {
    color: #94a3b8 !important;
  }

  .sf-search-mobile-only .pod-search-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    pointer-events: none !important;
    margin: 0 !important;
  }

  .sf-search-mobile-only .search-clear-btn {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2 !important;
  }


  /* Grid/Flex envolvente para as pílulas dentro do quadrante */
  .pod-categories-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    overflow-x: visible !important;
    padding: 0 !important;
  }

  .pod-cat-pill {
    flex: 0 0 auto !important;
    padding: 7px 14px !important;
    border-radius: 9999px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    gap: 6px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  body:not(.light-theme) .pod-cat-pill {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
  }

  .pod-cat-pill.active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    box-shadow: 0 3px 12px rgba(5, 150, 105, 0.3) !important;
  }

  body:not(.light-theme) .pod-cat-pill.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important;
  }

  .pod-cat-count {
    display: none !important; /* Esconde contador no mobile para visual limpo de pílulas */
  }
}

/* ==========================================================================
   EXTRA-SMALL MOBILE SCREENS (<= 380px: iPhone SE, Galaxy Fold cover, etc.)
   ========================================================================== */
@media (max-width: 380px) {
  .top-header .header-inner {
    padding: 6px 10px !important;
  }
  .brand-logo-text {
    font-size: 0.84rem !important;
  }
  .view-tab-btn {
    font-size: 0.74rem !important;
    padding: 6px 6px !important;
    gap: 4px !important;
  }
  .view-tab-btn svg {
    width: 13px !important;
    height: 13px !important;
  }
  .pod-categories-wrapper {
    margin: 14px 8px 12px 8px !important;
    padding: 8px 10px 12px 10px !important;
  }
  .pod-cat-pill {
    padding: 5px 10px !important;
    font-size: 0.72rem !important;
  }
  .matrix-color-row {
    padding: 8px 10px !important;
    gap: 6px !important;
  }
  .matrix-cost-val,
  .matrix-retail-val {
    font-size: 0.88rem !important;
  }
  .matrix-wa-btn {
    width: 28px !important;
    height: 28px !important;
  }
}







/* Hide mobile menu elements strictly on desktop */
@media (min-width: 769px) {
  .mobile-drawer,
  .mobile-drawer-overlay,
  .mobile-menu-btn {
    display: none !important;
  }
}

/* Global App Initial Loader */
.app-catalog-loader {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  text-align: center;
}
.app-spinner {
  width: 42px;
  height: 42px;
  border: 3.5px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent-green, #10b981);
  border-radius: 50%;
  animation: appSpin 0.75s linear infinite;
  margin-bottom: 16px;
}
@keyframes appSpin {
  to { transform: rotate(360deg); }
}

/* =========================================================================
   STOREFRONT MOCKUP LAYOUT (100% FAITHFUL TO DESIGN MOCKUP)
   ========================================================================= */

body.light-theme {
  background-color: #f8fafc !important;
}

body.light-theme .top-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.top-header .header-inner {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #0f172a;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.brand-logo-btn:hover {
  background: #f1f5f9;
}

body:not(.light-theme) .brand-logo-btn {
  color: #f8fafc;
}

/* Segmented View Switcher: Preços de venda / Custo fornecedor */
.view-switch-segmented {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  gap: 2px;
}

body:not(.light-theme) .view-switch-segmented {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

.segmented-tab-btn {
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.segmented-tab-btn:hover:not(.active) {
  color: #0f172a;
}

body:not(.light-theme) .segmented-tab-btn:hover:not(.active) {
  color: #f8fafc;
}

.segmented-tab-btn.active {
  background: #059669 !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.35);
}

/* Header Action Buttons (Calculadora, Exportar, Settings) */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  font-family: inherit;
}

.header-action-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.header-action-btn.icon-only {
  padding: 8px 10px;
}

body:not(.light-theme) .header-action-btn {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

body:not(.light-theme) .header-action-btn:hover {
  background: #1e293b;
  color: #ffffff;
}

/* Storefront Main View */
#viewStoreFront {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px 60px 24px;
}

/* Status Line (Top Right: • Catálogo atualizado) */
.catalog-status-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 12px;
}

.catalog-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.catalog-status-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
}

/* Main Search Bar */
.main-search-wrapper {
  margin-bottom: 16px;
  width: 100%;
}

.main-search-input-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 16px;
  height: 48px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.main-search-input-box:focus-within {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.main-search-input-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.92rem;
  font-family: inherit;
  color: #0f172a;
  margin-left: 10px;
}

.main-search-input-box input::placeholder {
  color: #94a3b8;
}

body:not(.light-theme) .main-search-input-box {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.1);
}

body:not(.light-theme) .main-search-input-box input {
  color: #f8fafc;
}

/* Category Filter Pills (No icons, clean rounded pills) */
.category-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  margin-bottom: 18px;
}

.category-pills-row::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  padding: 7px 18px;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cat-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cat-pill.active {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.3);
}

body:not(.light-theme) .cat-pill {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

body:not(.light-theme) .cat-pill:hover {
  background: #334155;
  color: #ffffff;
}

/* Filters & Sort Row (Capacidade, Cor, Menor preço) */
.filters-sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.filters-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filters-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-filter-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.84rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dropdown-filter-wrap label {
  font-weight: 600;
  color: #64748b;
  margin-right: 4px;
  pointer-events: none;
}

.dropdown-filter-select {
  border: none;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 18px;
  font-family: inherit;
}

.dropdown-arrow {
  position: absolute;
  right: 8px;
  pointer-events: none;
  color: #94a3b8;
}

body:not(.light-theme) .dropdown-filter-wrap {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.1);
}

body:not(.light-theme) .dropdown-filter-wrap label {
  color: #94a3b8;
}

body:not(.light-theme) .dropdown-filter-select {
  color: #f8fafc;
}

/* Storefront 4-Column Grid */
.storefront-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  row-gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 1200px) {
  .storefront-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .storefront-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .storefront-grid {
    grid-template-columns: 1fr;
  }
}

/* Mock Card Styling */
.mock-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mock-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.mock-card-header {
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-height: 2.5em;
}

.mock-card-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.mock-card-ver-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 6px;
  flex-shrink: 0;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  font-family: inherit;
}

.mock-card-ver-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.mock-card-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 22px;
}

.mock-storage-badge,
.mock-seminovo-badge,
.mock-ram-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  box-sizing: border-box;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

.mock-card-body {
  display: flex;
  flex-direction: column;
}

.mock-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid #f1f5f9;
  gap: 8px;
  transition: background 0.15s;
  cursor: pointer;
}

.mock-color-row:last-child {
  border-bottom: none;
}

.mock-color-row:hover {
  background: #f8fafc;
}

.mock-color-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.mock-color-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.2);
}

.mock-color-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-color-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mock-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.mock-price-label {
  font-size: 0.56rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.4px;
}

.mock-price-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #059669;
}

.mock-card-sim-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.mock-card-sim-btn:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

body:not(.light-theme) .mock-card {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
}

body:not(.light-theme) .mock-card-header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

body:not(.light-theme) .mock-card-title {
  color: #f8fafc;
}

body:not(.light-theme) .mock-color-row {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

body:not(.light-theme) .mock-color-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

body:not(.light-theme) .mock-color-name {
  color: #cbd5e1;
}

body:not(.light-theme) .mock-card-sim-btn {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #10b981;
}

/* Footer Preview Caption */
.mock-layout-footer {
  text-align: center;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 30px 0 16px 0;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .top-header .header-inner {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px 14px !important;
    padding: 10px 16px 12px !important;
    align-items: center !important;
  }

  .header-left-group {
    display: contents;
  }

  .brand-logo-btn {
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    height: 42px;
  }

  .view-switch-segmented {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    width: 100%;
    min-width: 0;
    padding: 3px;
    border-radius: 14px;
  }

  .view-switch-segmented.single-tab {
    width: fit-content;
    justify-content: flex-start;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .view-switch-segmented.single-tab .segmented-tab-btn {
    flex: 0 0 auto;
  }

  .segmented-tab-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .segmented-tab-btn[style*="display: none"] {
    display: none !important;
  }

  .header-right-group {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    width: auto;
    justify-content: flex-end;
    gap: 8px;
  }

  #viewSwitchNav,
  #btnOpenCalculator,
  #btnExportTopHeader,
  .user-session-info {
    display: none !important;
  }

  .header-action-btn {
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 11px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .header-action-btn.icon-only,
  .mobile-menu-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 11px;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
  }

  body:not(.light-theme) .mobile-menu-btn {
    border-color: rgba(255, 255, 255, 0.12);
    background: #0f172a;
    color: #e2e8f0;
  }

  #viewStoreFront {
    padding: 14px 14px 48px;
  }

  .catalog-status-line {
    margin: 0 2px 14px;
    font-size: 0.82rem;
  }

  .catalog-status-text {
    font-size: 0.78rem;
  }

  .category-pills-row {
    margin: 0 -14px 16px;
    padding: 2px 14px 10px;
    gap: 8px;
    scroll-padding-inline: 14px;
    scroll-snap-type: x proximity;
  }

  .cat-pill {
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.84rem;
    scroll-snap-align: start;
  }

  .filters-sort-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
    margin-bottom: 16px;
  }

  .filters-left,
  .filters-right {
    display: contents;
  }

  .dropdown-filter-wrap {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 8px 28px 8px 11px;
    border-radius: 12px;
    gap: 3px;
    font-size: 0.78rem;
  }

  .dropdown-filter-wrap label {
    flex: 0 0 auto;
    font-size: 0.76rem;
  }

  .dropdown-filter-select {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding-right: 2px;
    font-size: 0.78rem;
  }

  .dropdown-filter-wrap .dropdown-arrow {
    right: 9px;
  }

  .sort-wrap {
    grid-column: 1 / -1;
  }

  .storefront-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    row-gap: 24px;
    margin-bottom: 24px;
  }

  .mock-card {
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.055);
  }

  .mock-card-header {
    padding: 15px 16px 12px;
  }

  .mock-card-title {
    font-size: 1rem;
    line-height: 1.3;
  }

  .mock-color-row {
    min-height: 60px;
    padding: 10px 14px;
    gap: 8px;
  }

  .mock-color-left {
    gap: 9px;
  }

  .mock-color-name {
    font-size: 0.88rem;
  }

  .mock-color-right {
    gap: 8px;
  }

  .mock-price-val {
    font-size: clamp(0.92rem, 4.2vw, 1.08rem);
    white-space: nowrap;
  }

  .mock-card-sim-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .mock-layout-footer {
    padding: 20px 8px 12px;
    font-size: 0.68rem;
    letter-spacing: 0.7px;
  }
}

@media (max-width: 380px) {
  .top-header .header-inner {
    padding-inline: 10px !important;
    gap: 8px 10px !important;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  #viewStoreFront {
    padding-inline: 11px;
  }

  .header-action-btn {
    padding-inline: 8px;
    gap: 4px;
    font-size: 0.74rem;
  }

  .header-action-btn svg {
    width: 14px;
    height: 14px;
  }

  .category-pills-row {
    margin-inline: -11px;
    padding-inline: 11px;
  }
}

@media (min-width: 769px) {
  .top-header .header-inner {
    min-height: 58px;
    gap: 24px;
    padding: 8px clamp(16px, 2.4vw, 32px);
  }

  .header-left-group {
    gap: 20px;
  }

  .brand-logo-btn {
    width: 42px;
    height: 42px;
  }

  .segmented-tab-btn {
    min-height: 42px;
    padding: 8px 20px;
  }

  .header-right-group {
    gap: 12px;
  }

  .header-action-btn {
    min-height: 42px;
    padding: 9px 16px;
  }
}

.pod-matrix-container,
.storefront-grid {
  width: 100% !important;
  max-width: 1780px !important;
  box-sizing: border-box !important;
  margin: 0 auto 60px !important;
  padding: 0 24px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px 16px !important;
  align-items: stretch !important;
}

#viewStoreFront {
  width: 100%;
  max-width: 1780px;
  padding: 16px 0 60px;
}

.matrix-card,
.mock-card {
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

.matrix-card:hover,
.mock-card:hover {
  border-color: rgba(5, 150, 105, 0.35) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09) !important;
}

body:not(.light-theme) .matrix-card,
body:not(.light-theme) .mock-card {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3) !important;
}

.matrix-card-header,
.mock-card-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  min-height: 90px !important;
  box-sizing: border-box !important;
  padding: 10px 12px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body:not(.light-theme) .matrix-card-header,
body:not(.light-theme) .mock-card-header {
  background: #111c2e !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.matrix-card-title-row,
.mock-card-title-row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-height: 42px !important;
}

.matrix-card-title,
.mock-card-title {
  min-width: 0;
  max-height: 2.5em;
  margin: 0 !important;
  overflow: hidden !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.15px !important;
  color: #0f172a !important;
  text-transform: uppercase !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

body:not(.light-theme) .matrix-card-title,
body:not(.light-theme) .mock-card-title {
  color: #f8fafc !important;
}

.matrix-card-actions,
.mock-card-badges-row,
.matrix-card-badges-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0;
}

.matrix-card-actions {
  flex-shrink: 0;
}

.mock-card-badges-row,
.matrix-card-badges-row {
  min-height: 22px;
  flex-wrap: wrap;
}

.matrix-card-storage,
.matrix-card-semi-badge,
.matrix-card-ram-badge,
.mock-storage-badge,
.mock-seminovo-badge,
.mock-ram-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px;
  min-height: 20px;
  box-sizing: border-box;
  padding: 2px 8px !important;
  border: 1px solid rgba(5, 150, 105, 0.22) !important;
  border-radius: 6px !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.15px !important;
}

.matrix-card-all-btn,
.mock-card-ver-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-height: 28px;
  box-sizing: border-box;
  padding: 4px 8px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #64748b !important;
  font-family: inherit;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

.matrix-card-all-btn:hover,
.mock-card-ver-btn:hover {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
}

.matrix-card-body,
.mock-card-body {
  display: flex;
  flex-direction: column;
}

.matrix-color-row,
.mock-color-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  padding: 8px 12px !important;
  gap: 8px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: transparent !important;
}

body:not(.light-theme) .matrix-color-row,
body:not(.light-theme) .mock-color-row {
  border-bottom-color: rgba(255, 255, 255, 0.07) !important;
}

.matrix-color-row:last-child,
.mock-color-row:last-child {
  border-bottom: 0 !important;
}

.matrix-color-row:hover,
.mock-color-row:hover {
  background: #f8fafc !important;
}

body:not(.light-theme) .matrix-color-row:hover,
body:not(.light-theme) .mock-color-row:hover {
  background: rgba(255, 255, 255, 0.045) !important;
}

.matrix-color-dot,
.mock-color-dot {
  width: 13px !important;
  height: 13px !important;
  flex: 0 0 13px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(15, 23, 42, 0.2) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14) !important;
}

.matrix-color-name,
.mock-color-name {
  min-width: 0;
  overflow: hidden;
  color: #475569 !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis;
  white-space: nowrap !important;
  text-transform: uppercase;
}

body:not(.light-theme) .matrix-color-name,
body:not(.light-theme) .mock-color-name {
  color: #cbd5e1 !important;
}

.matrix-color-right,
.mock-color-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.matrix-cost-group,
.mock-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.matrix-cost-label,
.mock-price-label {
  color: #64748b !important;
  font-size: 0.56rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.35px !important;
  text-transform: uppercase !important;
}

.matrix-cost-val,
.matrix-retail-val,
.mock-price-val {
  color: #059669 !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.matrix-wa-btn,
.mock-card-sim-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 50% !important;
  background: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2) !important;
}

@media (max-width: 1200px) {
  .pod-matrix-container,
  .storefront-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .pod-matrix-container,
  .storefront-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  #viewStoreFront {
    padding: 14px 0 48px;
  }

  .pod-matrix-container,
  .storefront-grid {
    width: 100% !important;
    padding: 0 14px !important;
    gap: 16px !important;
  }

  .matrix-card-header,
  .mock-card-header {
    min-height: 90px !important;
    padding: 10px 12px !important;
  }

  .matrix-color-row,
  .mock-color-row {
    min-height: 58px !important;
    padding: 10px 12px !important;
  }

  .matrix-wa-btn,
  .mock-card-sim-btn {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
  }
}

@media (max-width: 580px) {
  .pod-matrix-container,
  .storefront-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

.pod-cat-pill,
.cat-pill {
  min-height: 36px;
  box-sizing: border-box;
  padding: 7px 14px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}

.pod-cat-pill.active,
.cat-pill.active,
body.light-theme .pod-cat-pill.active {
  border-color: #059669 !important;
  background: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2) !important;
}

.model-family-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 16px;
  min-width: 0;
}

@media (max-width: 1200px) {
  .model-family-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .model-family-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .model-family-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

.pod-matrix-container,
.storefront-grid {
  row-gap: 40px !important;
}

@media (max-width: 768px) {
  .pod-matrix-container,
  .storefront-grid {
    row-gap: 32px !important;
  }

  .pod-categories-wrapper {
    box-sizing: border-box !important;
    width: auto !important;
  }

  .category-pills-row {
    box-sizing: border-box !important;
    width: auto !important;
    margin: 0 14px 16px !important;
    padding: 2px 0 10px !important;
  }
}
