/* Unified CSS - SmartPriceWatch.com */
:root {
    --accent-color: #e74c3c;
    --bg: #0b1020;
    --border: rgba(255, 255, 255, 0.12);
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --dark-color: #2c3e50;
    --gray-color: #95a5a6;
    --light-color: #ecf0f1;
    --link: #7aa7ff;
    --max: 1100px;
    --muted: #a7b0c3;
    --panel: #0f1a3a;
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --text: #e6e9f2;
}

/* === Styles from site.css === */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
}

body.splash-page {
  background: radial-gradient(1200px 600px at 20% 10%, #182a5b 0%, var(--bg) 45%) no-repeat,
              radial-gradient(900px 400px at 85% 25%, #203b86 0%, var(--bg) 55%) no-repeat,
              var(--bg);
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px;
}

header {
  background: rgba(11, 18, 40, 0.85);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
  margin: 18px 0;
  position: sticky;
  top: 10px;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-color), #9bb8ff);
  color: #050910;
  font-size: 20px;
}

.logo-text {
  font-size: 24px;
}

.logo-text span {
  color: var(--primary-color);
}

.logo-img {
  height: 40px;
}

.search-bar {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 50px 12px 18px;
  border-radius: 40px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #1f2937;
}

.search-bar input::placeholder {
  color: #6b7280;
}

.search-bar button {
  position: absolute;
  right: 6px;
  top: 6px;
  border: none;
  border-radius: 40px;
  padding: 8px 18px;
  background: var(--primary-color);
  color: #050910;
  font-weight: 600;
  cursor: pointer;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.user-actions a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.user-actions a:hover {
  color: var(--primary-color);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 18px 20px;
  margin: 0;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.4px;
  position: relative;
  padding-bottom: 6px;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary-color);
  border-radius: 999px;
}

.site-header, .site-footer {
  border: 1px solid var(--border);
  background: rgba(10, 18, 40, 0.55);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 14px 18px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}

.main {
  margin: 18px 0;
  border: 1px solid var(--border);
  background: rgba(10, 18, 40, 0.45);
  border-radius: 14px;
  padding: 18px;
}

.h1 {
  font-size: clamp(28px, 3vw, 40px);
  margin: 4px 0 10px 0;
}

.muted { color: var(--muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 14px;
}

.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  font-size: 14px;
}

.kv .k { color: var(--muted); }

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  overflow: auto;
}

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

/* Account Page */
.account-page {
  margin: 40px auto;
}


.account-card {
  padding: 30px;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.account-intro {
  margin-top: 8px;
  color: var(--gray-color);
}

.account-actions {
  display: flex;
  gap: 12px;
}

.user-actions-account .user-action-active {
  color: var(--primary-color);
}

.account-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.account-panel {
  min-width: 300px;
}

.account-panel-details {
  flex: 0 0 360px;
  max-width: 400px;
}

.account-panel-overview {
  flex: 1 1 0;
  min-width: 360px;
}

.card.account-panel-details {
  background-color: #f0f7ff;
}

.account-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.account-panel-title i {
  color: var(--primary-color);
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.account-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
}

.account-meta p {
  margin-top: 4px;
}

.account-meta-note {
  font-size: 14px;
  color: var(--gray-color);
}

.account-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background-color: white;
  padding: 15px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
}

.account-type-note {
  font-size: 14px;
  color: var(--gray-color);
}

.account-section-title {
  margin-top: 25px;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.account-settings {
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-settings li {
  border-bottom: 1px solid #eee;
}

.account-settings li:last-child {
  border-bottom: none;
}

.account-settings-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  text-decoration: none;
  color: var(--dark-color);
}

.account-settings-link i {
  color: var(--primary-color);
}

.account-settings-link span i {
  margin-right: 10px;
}

.account-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0 10px;
}

.account-metric {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.account-metric-value {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 6px;
}

.account-metric-value--primary {
  color: var(--primary-color);
}

.account-metric-value--secondary {
  color: var(--secondary-color);
}

.account-metric-value--accent {
  color: var(--accent-color);
}

.account-metric-link {
  font-size: 14px;
  color: var(--primary-color);
  text-decoration: none;
}

.account-products {
  margin-top: 10px;
}

.account-product-icon {
  font-size: 40px;
  color: #3498db;
}

.account-product-meta {
  font-size: 12px;
  color: var(--gray-color);
  margin-top: 10px;
}

.account-table-card {
  margin-top: 10px;
}

.account-table-wrapper {
  overflow-x: auto;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
}

.account-table thead tr {
  background-color: #f8f9fa;
}

.account-table th,
.account-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.account-table-product {
  font-weight: 600;
}

.account-table-drop {
  color: var(--secondary-color);
  font-weight: 600;
}

.account-status {
  font-size: 14px;
}

.account-status--alert {
  color: var(--accent-color);
  font-weight: 600;
}

.account-status--muted {
  color: var(--gray-color);
}

.account-ad {
  margin: 30px 0 10px;
}

.account-ad i {
  font-size: 24px;
  margin-bottom: 10px;
}

.account-ad-meta {
  font-size: 12px;
}

/* Manage Alerts */
.alerts-page {
  margin: 40px auto;
}

.alerts-card {
  padding: 30px;
}

.alerts-title h1 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alerts-title i {
  color: var(--primary-color);
}

.alerts-title p {
  margin-top: 10px;
  color: var(--gray-color);
}

.alerts-toolbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin: 25px 0;
}

.alerts-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.alerts-table-card {
  padding: 0;
  overflow: hidden;
}

.alerts-table-wrapper {
  overflow-x: auto;
}

.alerts-table {
  width: 100%;
  border-collapse: collapse;
}

.alerts-table thead tr {
  background-color: #f8f9fa;
}

.alerts-table th,
.alerts-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.alerts-row--triggered {
  background-color: #f0fff0;
}

.alerts-product {
  display: flex;
  align-items: center;
  gap: 15px;
}

.alerts-product-icon {
  width: 50px;
  height: 50px;
  background-color: #f5f5f5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alerts-product-icon i {
  color: var(--primary-color);
}

.alerts-product-name {
  font-weight: 600;
}

.alerts-product-retailers {
  font-size: 14px;
  color: var(--gray-color);
}

.alerts-price {
  font-weight: 700;
}

.alerts-current {
  font-weight: 700;
  color: var(--accent-color);
}

.alerts-current-note {
  font-size: 12px;
  color: var(--gray-color);
}

.alerts-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.alerts-status--triggered {
  background-color: #2ecc71;
}

.alerts-status--active {
  background-color: var(--primary-color);
}

.alerts-status-note {
  font-size: 12px;
  color: var(--gray-color);
  margin-top: 5px;
}

.alerts-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.alerts-action-btn {
  padding: 8px 15px;
  font-size: 12px;
}

.alerts-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.alerts-summary-card {
  flex: 1;
  min-width: 200px;
}

.alerts-summary-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.alerts-summary-card i {
  color: var(--primary-color);
}

.alerts-stats-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.alerts-stats-value {
  font-weight: 600;
}

.alerts-stats-value--secondary {
  color: var(--secondary-color);
}

.alerts-stats-value--accent {
  color: var(--accent-color);
}

.alerts-settings {
  flex: 2;
  min-width: 300px;
}

.alerts-settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.alerts-settings-item p {
  font-size: 14px;
  color: var(--gray-color);
}

.alerts-select {
  width: auto;
}

.alerts-ad {
  margin: 30px 0 10px;
}

.alerts-ad i {
  font-size: 24px;
  margin-bottom: 10px;
}

.alerts-ad-meta {
  font-size: 12px;
}

/* Contact */
.contact-page {
  margin: 40px auto;
}

.contact-card {
  padding: 30px;
}

.contact-title p {
  margin-top: 10px;
  color: var(--gray-color);
}

.contact-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-form,
.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info-card {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
}

.contact-info-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--dark-color);
}

.contact-info-card i {
  color: var(--primary-color);
}

.contact-info-title {
  margin-top: 20px;
}

.faq-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--dark-color);
}

.contact-ad {
  margin: 30px 0 10px;
}

.contact-ad i {
  font-size: 24px;
  margin-bottom: 10px;
}

.contact-ad-meta {
  font-size: 12px;
}

/* Search Results */
.search-results-header {
  background-color: #f8f9fa;
  padding: 25px 0;
}

.search-query {
  margin-bottom: 8px;
  color: var(--dark-color);
}

.search-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--gray-color);
}

.search-results-page {
  margin: 30px auto 60px;
}

.search-ad-meta {
  font-size: 12px;
}

/* Promo Placeholders */
.promo-placeholder {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
  border: 2px dashed #6c757d !important;
  border-radius: 8px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 90px !important;
  padding: 20px;
  box-sizing: border-box;
}

.promo-placeholder .promo-label {
  font-size: 11px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.promo-placeholder.promo-horizontal {
  min-height: 90px;
  max-width: 728px;
  width: 100%;
  margin: 0 auto 20px;
  flex-direction: column;
  gap: 8px;
}

.promo-placeholder.promo-horizontal i {
  font-size: 24px;
  color: #adb5bd;
}

.promo-placeholder.promo-horizontal p {
  margin: 0;
  color: #6c757d;
  font-size: 13px;
}

.promo-placeholder.promo-sidebar {
  min-height: 250px;
  width: 100%;
  max-width: 300px;
  margin-top: 20px;
}

.promo-placeholder.promo-inline {
  min-height: 90px;
  margin: 16px 0;
}

.filter-toggle-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.filter-toggle-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-toggle-header h3 {
  margin: 0;
  font-size: 18px;
}

.filter-toggle-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.filter-toggle-btn.active {
  color: var(--accent-color);
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-reset-btn {
  background: none;
  border: none;
  color: var(--gray-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mobile-filter-btn {
  position: relative;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.badge {
  background-color: var(--accent-color);
  color: white;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.quick-filter {
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background-color: white;
  font-size: 14px;
}

.quick-filter.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.active-filter-tag {
  background-color: #f5f5f5;
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.remove-filter {
  cursor: pointer;
  font-weight: 700;
}

.clear-all-filters {
  color: var(--primary-color);
  font-size: 14px;
}

.advanced-filters-container {
  display: none;
}

.advanced-filters-container.visible {
  display: block;
}

.search-results-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 25px;
}

.sidebar-filters {
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 20px;
}

.sidebar-filters.hidden {
  display: none;
}

.search-results-grid.no-sidebar {
  grid-template-columns: 1fr;
}

.filter-section {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.filter-section.collapsed .filter-options {
  display: none;
}

.filter-options {
  margin-top: 12px;
}

.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-range-inputs input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.filter-button-row {
  margin-top: 10px;
}

.price-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #ddd;
  color: var(--dark-color);
}

.filter-options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-count {
  margin-left: auto;
  color: var(--gray-color);
  font-size: 12px;
}

.show-more-filters {
  margin-top: 10px;
  font-size: 14px;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.filter-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.results-area {
  position: relative;
}

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

.view-and-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-options {
  display: flex;
  gap: 8px;
}

.view-btn {
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

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

.filter-group {
  margin-left: 15px;
}

.filter-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-result-list {
  display: flex;
  gap: 20px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 20px;
}

.product-result-list .product-image {
  width: 170px;
  height: 170px;
  --product-image-max-size: 150px;
  background-color: #f5f5f5;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px;
  flex-shrink: 0;
}

.product-result-list .product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.product-result-list .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-result-list .product-image i {
  font-size: 80px;
  color: var(--primary-color);
}

.product-result-list .product-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 12px 0 8px;
  line-height: 1.35;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Grid view styles */
.results-list.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.results-list.grid-view .product-result-list {
  flex-direction: column;
  padding: 16px;
}

.results-list.grid-view .product-result-list .product-image {
  --product-image-max-size: 150px;
  width: 100%;
  height: 170px;
  margin-bottom: 12px;
  padding: 10px;
}

.results-list.grid-view .product-result-list .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.results-list.grid-view .product-result-list .product-info {
  width: 100%;
}

.results-list.grid-view .product-result-list .product-title {
  font-size: 14px;
  -webkit-line-clamp: 2;
  margin: 8px 0;
}

.results-list.grid-view .product-result-list .product-meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.results-list.grid-view .product-result-list .product-actions {
  width: 100%;
  flex-direction: column;
}

.results-list.grid-view .product-result-list .product-actions .btn {
  width: 100%;
  text-align: center;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--secondary-color);
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
}

.product-category {
  font-size: 14px;
  color: var(--gray-color);
  margin-bottom: 6px;
}

.product-description {
  color: var(--gray-color);
  margin: 10px 0;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.product-price-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-retailers {
  font-size: 14px;
  color: var(--gray-color);
}

.product-actions {
  display: flex;
  gap: 10px;
}

.filter-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 2000;
}

.filter-modal-content {
  background-color: white;
  max-width: 420px;
  margin: 60px auto;
  border-radius: 12px;
  padding: 20px;
}

.filter-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.close-modal {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.filter-modal-footer {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.loading-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  gap: 10px;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #eee;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.pagination-btn {
  border: 1px solid #ddd;
  background-color: white;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  min-width: 40px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  cursor: default;
  font-weight: 600;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

a.pagination-btn {
  text-decoration: none;
  color: inherit;
}

a.pagination-btn:hover {
  background-color: #f3f4f6;
  border-color: #bbb;
}

span.pagination-btn.active {
  cursor: default;
}

.pagination-info {
  padding: 8px 14px;
  color: #6b7280;
}

.pagination-dots {
  display: inline-flex;
  align-items: center;
  color: var(--gray-color);
}

.search-recent {
  margin-top: 50px;
}

.search-recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.search-recent-header h2 {
  color: #1f2937;
  margin-bottom: 0;
}

.see-all-link {
  color: #3498db;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.see-all-link:hover {
  color: #2980b9;
}

.see-all-link i {
  font-size: 12px;
}

.search-recent h2 {
  color: #1f2937;
  margin-bottom: 16px;
}

.search-tips {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  padding: 24px !important;
}

.search-tips-subtitle {
  color: #4b5563;
  margin-bottom: 20px;
  font-size: 15px;
}

.search-tips-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-tips-list li {
  margin-bottom: 14px;
  color: #374151;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.search-tips-list li:last-child {
  margin-bottom: 0;
}

.search-tips-list strong {
  color: #1f2937;
  min-width: 140px;
  font-weight: 600;
}

.search-tips-list code {
  background: #f3f4f6;
  color: #1f2937;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  border: 1px solid #e5e7eb;
}

.search-recent .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin: 0;
}

.search-recent .product-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

.search-recent .product-card:hover {
  transform: translateY(-5px);
}

.search-recent .product-image {
  --product-image-max-size: 150px;
  height: 170px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.search-recent .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-recent .product-image i {
  font-size: 60px;
  color: #3498db;
}

.search-recent .product-info {
  padding: 16px;
}

.search-recent .product-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-recent .product-price {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.search-recent .product-price-change {
  font-size: 13px;
  margin-top: 4px;
}

.search-recent .product-price-change.negative {
  color: #10b981;
}

.search-recent .btn {
  width: 100%;
  margin-top: 15px;
}

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

@media (max-width: 1100px) {
  .search-results-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-filters {
    order: 2;
  }
}

@media (max-width: 900px) {
  .product-result-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-result-list .product-image {
    width: 100%;
  }

  .filter-modal-content {
    margin: 30px 16px;
  }
}

@media (max-width: 600px) {
  .filter-toggle-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .view-and-sort {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .alerts-table th,
  .alerts-table td {
    padding: 15px;
  }

  .alerts-settings-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .account-header {
    align-items: flex-start;
  }

  .account-type {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-panel-details,
  .account-panel-overview {
    flex: 1 1 320px;
    max-width: none;
  }
}

/* Retailers */
.retailers-page {
  margin: 40px auto 60px;
}

.retailers-hero {
  margin-bottom: 40px;
  padding: 60px 0;
}

.retailers-hero h1 {
  margin-bottom: 10px;
}

.retailers-section {
  margin-bottom: 30px;
}

.retailers-section-intro {
  margin-bottom: 30px;
  color: var(--gray-color);
}

.retailers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.retailer-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 25px;
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.retailer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.retailer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
}

.retailer-logo i {
  font-size: 48px;
}

.retailer-logo .fa-amazon {
  color: #ff9900;
}

.retailer-logo .fa-store,
.retailer-logo-text {
  color: #0046be;
}

.retailer-logo .fa-walmart {
  color: #0071ce;
}

.retailer-logo .fa-egg,
.retailer-logo-text-orange {
  color: #ff6600;
}

.retailer-logo-text {
  font-weight: 700;
  margin-top: 5px;
}

.retailer-info h3 {
  margin-bottom: 10px;
  color: var(--dark-color);
}

.retailer-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 14px;
  color: var(--gray-color);
}

.retailer-link {
  width: 100%;
  margin-top: 15px;
}

.retailer-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.category-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.category-section h3 i {
  color: var(--primary-color);
}

.retailer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.retailer-list a {
  color: var(--dark-color);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  transition: color 0.3s ease, padding-left 0.3s ease, background-color 0.3s ease;
}

.retailer-list a:hover {
  background-color: #f0f7ff;
  color: var(--primary-color);
  padding-left: 20px;
}

.retailer-stats-card {
  background-color: #f0f7ff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  color: var(--gray-color);
}

.retailer-steps {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.retailer-step {
  flex: 1;
  min-width: 250px;
}

.retailer-step-number {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Retailer Detail */
.retailer-detail-page {
  margin: 30px auto 60px;
}

.retailer-hero {
  background: linear-gradient(135deg, #ff9900, #ffd700);
  color: white;
}

.retailer-hero-content {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.retailer-hero-icon {
  flex-shrink: 0;
  font-size: 80px;
}

.retailer-hero-info h1 {
  color: white;
  margin-bottom: 10px;
}

.retailer-hero-info p {
  opacity: 0.9;
  margin-bottom: 15px;
}

.retailer-hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.retailer-hero-stat {
  font-size: 24px;
  font-weight: 700;
}

.retailer-hero-label {
  font-size: 14px;
  opacity: 0.9;
}

.retailer-detail-grid {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.retailer-detail-main {
  flex: 2;
  min-width: 300px;
}

.retailer-detail-sidebar {
  flex: 1;
  min-width: 250px;
}

.retailer-tracking {
  margin-top: 25px;
}

.retailer-tracking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.retailer-tracking-card {
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
}

.retailer-tracking-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.retailer-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.retailer-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--dark-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.retailer-category:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.retailer-category-icon i {
  color: var(--primary-color);
}

.retailer-category-title {
  font-weight: 600;
}

.retailer-category-meta {
  font-size: 12px;
  color: var(--gray-color);
}

.retailer-product-grid {
  margin-top: 20px;
}

.retailer-product-grid .product-image i {
  font-size: 60px;
  color: #3498db;
}

.retailer-product-btn {
  width: 100%;
  margin-top: 15px;
}

.retailer-actions {
  background-color: #f0f7ff;
}

.retailer-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.retailer-links {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.retailer-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.retailer-links-list a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
}

.retailer-ad i {
  font-size: 24px;
  margin-bottom: 10px;
}

.retailer-ad-meta {
  font-size: 12px;
}

.retailer-tips {
  margin-top: 15px;
  padding-left: 20px;
}

.retailer-tips li {
  margin-bottom: 10px;
}

.retailer-related {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.retailer-related a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--dark-color);
  transition: background-color 0.3s ease;
}

.retailer-related a:hover {
  background-color: #f0f7ff;
}

.retailer-related i {
  color: var(--primary-color);
}

.retailer-related-name {
  font-weight: 600;
}

.retailer-related-meta {
  font-size: 12px;
  color: var(--gray-color);
}

@media (max-width: 900px) {
  .retailer-hero-content {
    align-items: flex-start;
  }

  .retailer-detail-grid {
    flex-direction: column;
  }
}

/* Browser Extension */
.extension-page {
  margin: 30px auto 60px;
}

.extension-hero {
  margin-bottom: 40px;
}

.extension-hero-actions {
  margin-top: 30px;
}

.extension-hero-btn {
  font-size: 18px;
  padding: 15px 30px;
}

.extension-section {
  margin-bottom: 30px;
}

.extension-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.extension-feature {
  padding: 25px;
  background-color: #f0f7ff;
  border-radius: var(--border-radius);
}

.extension-feature-icon {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.extension-steps {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.extension-step {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.extension-step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
}

.extension-browsers {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.extension-browser {
  text-align: center;
}

.extension-browser i {
  font-size: 60px;
}

.extension-browser .fa-chrome { color: #4285f4; }
.extension-browser .fa-firefox { color: #ff7139; }
.extension-browser .fa-edge { color: #0078d7; }
.extension-browser .fa-safari { color: #000000; }

.extension-demo {
  background-color: #2c3e50;
  color: white;
}

.extension-demo h2,
.extension-demo h3 {
  color: white;
}

.extension-demo-grid {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.extension-demo-grid p,
.extension-demo-grid ul {
  opacity: 0.9;
}

.extension-demo-preview {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.extension-demo-mock {
  background-color: #1a2530;
  padding: 30px;
  border-radius: var(--border-radius);
  display: inline-block;
}

.extension-demo-mock i {
  font-size: 60px;
  color: #7f8c8d;
}

.extension-demo-mock .extension-demo-placeholder {
  width: 300px;
  height: 200px;
  background-color: #34495e;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.extension-demo-preview p {
  margin-top: 15px;
  opacity: 0.7;
}

.extension-faq {
  margin-top: 30px;
}

.extension-cta {
  text-align: center;
  background-color: #f0f7ff;
}

.extension-cta p {
  margin: 20px auto 30px;
  max-width: 600px;
}

.extension-cta-btn {
  font-size: 20px;
  padding: 15px 40px;
}

.extension-cta-note {
  margin-top: 20px;
  color: var(--gray-color);
  font-size: 14px;
}

@media (max-width: 900px) {
  .extension-demo-preview {
    width: 100%;
  }
}

/* Privacy & Terms Pages */
.privacy-page,
.terms-page {
  margin: 40px auto;
}

.policy-content,
.terms-content {
  margin-top: 30px;
}

.policy-section,
.terms-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.policy-section:last-child,
.terms-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.policy-section h2,
.terms-section h2 {
  margin-bottom: 15px;
  color: var(--dark-color);
}

.policy-section h3,
.terms-section h3 {
  margin: 20px 0 10px;
  color: var(--dark-color);
  font-size: 18px;
}

.policy-section p,
.terms-section p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.policy-section ul,
.terms-section ul {
  margin: 15px 0 15px 20px;
}

.policy-section li,
.terms-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.policy-section address,
.terms-section address {
  font-style: normal;
  margin-top: 10px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
}

.legal-updated {
  margin-bottom: 30px;
  color: var(--gray-color);
}

@media (max-width: 768px) {
  .policy-section,
  .terms-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }
}

/* ============================================== */
/* RESULTS BAR (Simplified) */
/* ============================================== */

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-bar-count {
  font-size: 14px;
  color: #555;
}

.results-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-bar-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  color: #555;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.results-bar-btn:hover {
  background: #eee;
  border-color: #ccc;
}

.results-bar-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.results-bar-separator {
  width: 1px;
  height: 24px;
  background: #ddd;
}

.results-bar-view {
  display: flex;
  gap: 4px;
}

.results-bar-view .view-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  color: #666;
  transition: all 0.15s ease;
}

.results-bar-view .view-btn:hover {
  background: #eee;
}

.results-bar-view .view-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.results-bar-sort {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  background: white;
  min-width: 150px;
}

.results-bar-sort:focus {
  outline: none;
  border-color: var(--primary-color);
}

.results-bar-pagesize {
  padding: 8px 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  background: white;
}

.results-bar-pagesize:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Responsive for results bar */
@media (max-width: 768px) {
  .results-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .results-bar-left {
    justify-content: center;
  }
  
  .results-bar-right {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .results-bar-btn span {
    display: none;
  }
  
  .results-bar-btn {
    padding: 8px 12px;
  }
  
  .results-bar-separator {
    display: none;
  }
  
  .results-bar-sort {
    flex: 1;
    min-width: unset;
  }
}

/* ============================================== */
/* FILTER TOOLBAR (Legacy - keeping for advanced filters) */
/* ============================================== */

.filter-toolbar-container {
  margin-bottom: 20px;
}

.filter-toolbar {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 16px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-toolbar-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-toolbar-group label {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-toolbar-group select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  min-width: 120px;
  cursor: pointer;
  background: white;
}

.filter-toolbar-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.filter-toolbar-buttons {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.filter-toolbar-apply {
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s ease;
}

.filter-toolbar-apply:hover {
  opacity: 0.9;
}

.filter-toolbar-reset {
  background: #f5f5f5;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  color: #666;
  transition: background 0.15s ease;
}

.filter-toolbar-reset:hover {
  background: #eee;
}

.filter-toolbar-advanced {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  color: #555;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.filter-toolbar-advanced:hover {
  background: #eee;
  border-color: #ccc;
}

.filter-toolbar-advanced.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.filter-toolbar-separator {
  width: 1px;
  height: 24px;
  background: #ddd;
  margin: 0 4px;
}

.filter-toolbar-view {
  display: flex;
  gap: 4px;
}

.filter-toolbar-view .view-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  color: #666;
  transition: all 0.15s ease;
}

.filter-toolbar-view .view-btn:hover {
  background: #eee;
}

.filter-toolbar-view .view-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.filter-toolbar-sort {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  background: white;
  min-width: 150px;
}

.filter-toolbar-sort:focus {
  outline: none;
  border-color: var(--primary-color);
}

.filter-toolbar-active {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-toolbar-badge {
  background: var(--primary-color);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.filter-toolbar-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-toolbar-tags span {
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-toolbar-tags span:hover {
  background: #eee;
  text-decoration: line-through;
  color: #999;
}

/* Responsive for filter toolbar */
@media (max-width: 768px) {
  .filter-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .filter-toolbar-group {
    width: 100%;
  }
  
  .filter-toolbar-group select {
    width: 100%;
    min-width: unset;
  }
  
  .filter-toolbar-buttons {
    margin-left: 0;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
  
  .filter-toolbar-apply {
    flex: 1;
    justify-content: center;
  }
  
  .filter-toolbar-advanced span {
    display: none;
  }
  
  .filter-toolbar-advanced {
    padding: 8px 12px;
  }
  
  .filter-toolbar-separator {
    display: none;
  }
  
  .filter-toolbar-sort {
    flex: 1;
    min-width: unset;
  }
}

/* === Styles from style.css (overrides) === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark-color);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
}

.logo-text span {
    color: var(--primary-color);
}

.search-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #2980b9;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-actions a {
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.user-actions a:hover {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    padding: 15px 0;
}

nav li {
    margin-right: 25px;
}

nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-search {
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #27ae60;
}

.btn-accent {
    background-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: #c0392b;
}

/* Cards */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.card h2 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: var(--dark-color);
}

/* Pricing History Chart */
.chart-container {
    height: 300px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    margin: 20px 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    position: relative;
}

.chart-bar {
    flex: 1;
    background-color: var(--primary-color);
    margin: 0 2px;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 0.5s;
}

.chart-bar:hover {
    background-color: #2980b9;
}

.chart-label {
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: var(--gray-color);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
  --product-image-max-size: 200px;
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image img {
  width: auto;
  height: auto;
  max-width: min(100%, var(--product-image-max-size));
  max-height: min(100%, var(--product-image-max-size));
  object-fit: contain;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.product-price-change {
    font-size: 14px;
    color: var(--gray-color);
}

.product-price-change.positive {
    color: var(--secondary-color);
}

.product-price-change.negative {
    color: var(--accent-color);
}

/* Ad Placeholders */
.ad-placeholder {
    background-color: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    color: #999;
}

.ad-horizontal {
    width: 100%;
    height: 100px;
}

.ad-vertical {
    width: 300px;
    height: 250px;
    float: right;
    margin-left: 20px;
}

.ad-square {
    width: 300px;
    height: 300px;
    margin: 20px auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Login / Account */
.login-page {
    margin: 40px auto;
}

.auth-card {
    max-width: 900px;
    margin: 0 auto 40px;
}

.auth-columns {
    display: flex;
    flex-wrap: wrap;
    min-height: 500px;
}

.auth-section {
    flex: 1;
    min-width: 280px;
    padding: 40px;
}

.auth-section-secondary {
    border-left: 1px solid #eee;
}

.auth-subtitle {
    margin-bottom: 30px;
    color: var(--gray-color);
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-submit {
    width: 100%;
    margin-top: 10px;
}

.auth-social {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-color);
}

.auth-social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.auth-social-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.form-hint {
    color: var(--gray-color);
}

.auth-premium {
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: var(--border-radius);
}

.auth-premium h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.auth-premium i {
    color: #FFD700;
}

.auth-benefits {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.auth-benefits-grid {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
}

.auth-benefit {
    text-align: center;
    flex: 1;
    min-width: 200px;
    padding: 20px;
}

.auth-benefit i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .auth-section-secondary {
        border-left: none;
        border-top: 1px solid #eee;
    }

    .auth-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

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

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        max-width: 100%;
        margin: 10px 0;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav li {
        margin: 0 10px 10px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .ad-vertical {
        float: none;
        width: 100%;
        margin: 20px 0;
    }
}

/* SVG icon styling */
.logo-img {
    height: 40px;
    width: auto;
}

.icon-small {
    width: 24px;
    height: 24px;
}

.icon-medium {
    width: 48px;
    height: 48px;
}

.icon-large {
    width: 64px;
    height: 64px;
}

/* Make SVGs adopt text color */
.icon-fill {
    fill: currentColor;
}

/* Alert messages */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-warning {
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Promo Placeholders */
.promo-placeholder {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border: 2px dashed #6c757d;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 90px;
    padding: 20px;
    box-sizing: border-box;
}

.promo-placeholder .promo-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.promo-placeholder.promo-horizontal {
    min-height: 90px;
    max-width: 728px;
    width: 100%;
    margin: 0 auto 20px;
    flex-direction: column;
    gap: 8px;
}

.promo-placeholder.promo-sidebar {
    min-height: 250px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
}

.promo-placeholder.promo-inline {
    min-height: 90px;
    margin: 16px 0;
}

/* === Product Identifiers & Brand/Model (Product Page) === */
.product-detail-main-image {
  width: min(100%, 320px);
  max-width: 320px;
  aspect-ratio: 1 / 1;
  max-height: 320px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}

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

.product-detail-thumbnail-strip {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
}

.product-detail-thumbnail {
  width: 60px;
  height: 60px;
  border: 2px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

.product-detail-thumbnail.active {
  border-color: var(--primary-color);
}

.product-detail-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-identifiers {
    color: var(--gray-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.product-id {
    display: inline;
}

.product-id-type {
    font-weight: 600;
    color: var(--text-dark);
}

.product-id-sep {
    color: #ccc;
    margin: 0 6px;
}

.product-brand-model {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.product-brand,
.product-model-name {
    display: inline;
}

/* === Where to Buy Section (Product Page) === */
.where-to-buy-section {
    position: relative;
}

.where-to-buy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.where-to-buy-header h2 {
    margin-bottom: 5px;
}

.where-to-buy-header p {
    color: var(--gray-color);
    margin: 0;
}

.where-to-buy-expand {
    padding: 8px 12px;
}

/* Tab Navigation */
.wtb-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 0;
}

.wtb-tab {
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-color);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wtb-tab:hover {
    color: var(--primary-color);
    background-color: #f8f9fa;
}

.wtb-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.wtb-tab i {
    font-size: 14px;
}

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

.wtb-panel.active {
    display: block;
}

/* Table Styles */
.wtb-table-wrapper {
    overflow-x: auto;
}

.wtb-table {
    width: 100%;
    border-collapse: collapse;
}

.wtb-table th {
    padding: 12px 15px;
    text-align: left;
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wtb-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.wtb-table tr:hover {
    background-color: #fafafa;
}

/* Retailer Cell */
.wtb-retailer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wtb-retailer-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #ff9900;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.wtb-retailer-logo.wtb-logo-bestbuy {
    background-color: #0046be;
}

.wtb-retailer-logo.wtb-logo-walmart {
    background-color: #0071ce;
}

.wtb-retailer-logo.wtb-logo-target {
    background-color: #cc0000;
}

.wtb-retailer-info {
    flex: 1;
}

.wtb-retailer-name {
    font-weight: 600;
    color: #333;
}

.wtb-retailer-detail {
    font-size: 12px;
    color: var(--gray-color);
}

/* Price Cell */
.wtb-price {
    font-weight: 700;
    font-size: 18px;
    color: var(--accent-color);
}

.wtb-total {
    font-weight: 600;
    color: #333;
}

/* Arrival Cell */
.wtb-arrival {
    white-space: nowrap;
}

.wtb-arrival-date {
    display: block;
    font-weight: 500;
}

.wtb-arrival-date.wtb-arrival-fast {
    color: var(--secondary-color);
}

.wtb-arrival-note {
    display: block;
    font-size: 12px;
    color: var(--secondary-color);
}

/* Icons Cell */
.wtb-icons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.wtb-icons i {
    font-size: 16px;
    cursor: help;
}

.wtb-icon-prime {
    color: #ff9900;
}

.wtb-icon-returns {
    color: var(--secondary-color);
}

.wtb-icon-sale {
    color: var(--accent-color);
}

.wtb-icon-plus {
    color: #0071ce;
}

/* Action Cell */
.wtb-action {
    text-align: right;
}

.wtb-action .btn {
    height: 40px;
    min-width: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
}

/* Best Price/Fastest Row Highlight */
.wtb-best-price,
.wtb-fastest {
    background-color: #f0fff4;
}

/* Badges */
.wtb-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.wtb-badge-best {
    background-color: #d4edda;
    color: #155724;
}

.wtb-badge-fast {
    background-color: #cce5ff;
    color: #004085;
}

/* Speed Badges */
.wtb-speed-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.wtb-speed-fast {
    background-color: #d4edda;
    color: #155724;
}

.wtb-speed-medium {
    background-color: #fff3cd;
    color: #856404;
}

.wtb-speed-slow {
    background-color: #f8d7da;
    color: #721c24;
}

/* Sort Note */
.wtb-sort-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.wtb-sort-note i {
    color: var(--primary-color);
}

/* Local Tab Styles */
.wtb-local-header {
    margin-bottom: 20px;
}

.wtb-location-search label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.wtb-location-input-group {
    display: flex;
    gap: 10px;
}

.wtb-location-input-group .form-control {
    flex: 1;
    max-width: 300px;
}

.wtb-detect-btn {
    padding: 10px 15px;
}

.wtb-local-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wtb-local-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wtb-local-store {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.wtb-local-store:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wtb-local-store .wtb-retailer {
    flex: 1;
}

.wtb-store-address {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.wtb-store-distance {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 2px;
}

.wtb-local-details {
    text-align: right;
}

.wtb-store-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    margin-top: 5px;
}

.wtb-stock {
    font-weight: 500;
}

.wtb-in-stock {
    color: var(--secondary-color);
}

.wtb-low-stock {
    color: #f39c12;
}

.wtb-out-of-stock {
    color: var(--accent-color);
}

.wtb-hours {
    color: #666;
}

/* Store Phone */
.wtb-store-phone {
    font-size: 12px;
    color: var(--primary-color);
    margin-top: 2px;
}

.wtb-store-phone i {
    margin-right: 4px;
}

/* Compact Location Search */
.wtb-location-search-compact {
    display: flex;
    align-items: center;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    background: #fff;
}

.wtb-location-search-compact i.fa-map-marker-alt {
    padding: 0 12px;
    color: var(--primary-color);
    font-size: 16px;
}

.wtb-location-search-compact .form-control {
    flex: 1;
    border: none;
    height: 100%;
    padding: 0;
    font-size: 14px;
    outline: none;
    box-shadow: none;
}

.wtb-location-search-compact .form-control:focus {
    box-shadow: none;
    outline: none;
}

.wtb-locate-btn {
    height: 40px;
    width: 44px;
    border: none;
    border-left: 1px solid #ddd;
    border-radius: 0;
    background: #f8f9fa;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.wtb-locate-btn:hover {
    background: #e9ecef;
}

.wtb-location-btn {
    height: 40px;
    width: 44px;
    border: none;
    border-left: 1px solid #ddd;
    border-radius: 0;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wtb-location-btn:hover {
    background: var(--primary-hover);
}

/* Map Placeholder */
.wtb-local-map {
    min-height: 400px;
}

.wtb-map-placeholder {
    height: 100%;
    min-height: 400px;
    background-color: #f0f4f8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.wtb-map-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

/* Custom Tab Message */
.wtb-custom-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.wtb-custom-message i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.wtb-custom-message h3 {
    margin-bottom: 10px;
    color: #333;
}

.wtb-custom-message p {
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Modal Styles */
.wtb-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.wtb-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.wtb-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.wtb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.wtb-modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.wtb-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 5px;
    transition: color 0.2s ease;
}

.wtb-modal-close:hover {
    color: #333;
}

.wtb-modal-body {
    padding: 25px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Modal overrides for larger view */
.wtb-modal-body .wtb-local-content {
    grid-template-columns: 1fr 1.5fr;
}

.wtb-modal-body .wtb-map-placeholder {
    min-height: 400px;
}

/* Responsive */
@media (max-width: 768px) {
    .wtb-tabs {
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .wtb-tab {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .wtb-tab span {
        display: none;
    }
    
    .wtb-local-content {
        grid-template-columns: 1fr;
    }
    
    .wtb-local-store {
        flex-wrap: wrap;
    }
    
    .wtb-local-store .wtb-retailer {
        width: 100%;
    }
    
    .wtb-local-details {
        text-align: left;
    }
    
    .wtb-location-input-group {
        flex-wrap: wrap;
    }
    
    .wtb-location-input-group .form-control {
        max-width: none;
    }
    
    .wtb-modal-content {
        margin: 10px;
    }
    
    .wtb-modal-body .wtb-local-content {
        grid-template-columns: 1fr;
    }
}