/* view.css - Flattened and Scoped */

.market-analysis-dashboard .hero {
  padding: 0;
  background: #ffffff;
}

.market-analysis-dashboard .hero h1 {
  font-size: 2.75rem;
  font-weight: 400;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.market-analysis-dashboard .price-legend span {
  padding: 5px 10px !important;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .market-analysis-dashboard .hero h1 {
    font-size: 1.85rem;
  }

  .market-analysis-dashboard .hero p {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
}

.market-analysis-dashboard .category-pills .pill.disabled {
  pointer-events: none;
  opacity: 1;
  cursor: not-allowed;
  background: #eeeff0;
  cursor: crosshair;
}

.market-analysis-dashboard .filter-select.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.market-analysis-dashboard .hero h1 span {
  color: var(--dashboard-primary);
  font-weight: 700;
}

.market-analysis-dashboard .hero p {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* SEARCH */
.market-analysis-dashboard .search-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.market-analysis-dashboard .search-wrap input {
  width: 100%;
  padding: 16px 56px 16px 52px;
  border-radius: 9999px;
  border: 1px solid var(--gray-200);
  background: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  color: var(--gray-900);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.market-analysis-dashboard .search-wrap input:focus {
  outline: none;
  border-color: var(--dashboard-primary);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.market-analysis-dashboard .search-wrap input::placeholder {
  color: var(--gray-400);
}

.market-analysis-dashboard .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1.1rem;
}

.market-analysis-dashboard .search-actions {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-analysis-dashboard .filter-icon {
  color: var(--gray-400);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.market-analysis-dashboard .filter-icon:hover {
  color: var(--gray-600);
}

.market-analysis-dashboard .clear-btn {
  color: var(--gray-400);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: none;
}

.market-analysis-dashboard .clear-btn.visible {
  display: block;
}

/* PILLS */
.market-analysis-dashboard .category-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 20px 0;
  position: relative;
}

.market-analysis-dashboard .category-pills {
  display: flex;
  flex-wrap: nowrap !important;
  gap: 10px;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 5px;
  justify-content: center !important;
}

.market-analysis-dashboard .all-pill-wrapper {
  flex-shrink: 0;
  position: relative;
}

html[dir="ltr"] .market-analysis-dashboard .category-pills {
  direction: ltr;
  justify-content: center;
}

html[dir="rtl"] .market-analysis-dashboard .category-pills {
  direction: rtl;
  justify-content: center;
}

.market-analysis-dashboard .category-pills::-webkit-scrollbar {
  display: none !important;
}

.market-analysis-dashboard .category-pills.dropdown-active {
  z-index: 1001;
}

.market-analysis-dashboard .category-pills::after {
  content: '';
  flex: 0 0 1px;
}

html[dir="ltr"] .market-analysis-dashboard .category-pills::after {
  padding-right: 1px;
}

html[dir="rtl"] .market-analysis-dashboard .category-pills::after {
  padding-left: 1px;
}

.market-analysis-dashboard .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid var(--gray-200);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.market-analysis-dashboard .pill:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.market-analysis-dashboard .pill.active {
  background: #fffcf0;
  border-color: #fce788;
  color: #854d0e;
}

.market-analysis-dashboard .pill.all-pill {
  padding-inline-end: 14px;
}

/* ALL DROPDOWN */
.market-analysis-dashboard .all-pill-wrap {
  position: relative;
  display: inline-flex;
}

.market-analysis-dashboard .all-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-end: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  min-width: 180px;
  max-width: 250px;
  z-index: 5000;
  overflow-y: auto;
  max-height: 350px;
  padding: 6px;
  margin-top: 8px;
}

@media (max-width: 767px) {
  .market-analysis-dashboard .all-dropdown {
    min-width: 160px;
    max-width: calc(100vw - 30px);
  }
}

html[dir="rtl"] .market-analysis-dashboard .all-dropdown {
  text-align: right;
}

html[dir="ltr"] .market-analysis-dashboard .all-dropdown {
  text-align: left;
}

.market-analysis-dashboard .dropdown-item-pill .emoji-svg {
  width: 1.1em;
  height: 1.1em;
  margin-inline-end: 8px;
  flex-shrink: 0;
}

.market-analysis-dashboard .all-dropdown.open {
  display: block;
}

.market-analysis-dashboard .dropdown-item-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
  white-space: nowrap;
}

.market-analysis-dashboard .dropdown-item-pill:hover {
  background: var(--green-light);
  color: var(--green-text);
}

.market-analysis-dashboard .dropdown-item-pill.active {
  background: var(--green-light);
  color: var(--green-text);
  font-weight: 600;
}

/* MAIN */
.market-analysis-dashboard .main-section {
  padding: 32px 0 60px;
}

.market-analysis-dashboard .last-updated {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.market-analysis-dashboard .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 10px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.market-analysis-dashboard .section-title {
  font-family: 'Cairo', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

@media (max-width: 480px) {
  .portlet-content {
    margin: 0px !important;
    padding: 0px !important;
  }

  #browseSection .card-icon-wrap {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
  }


  #browseSection .emoji-svg {
    height: 30px !important;
    width: 30px !important;
  }

  #browseSection .card-category-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-900);
    margin-bottom: 0px;
  }

  #browseSection .card-top {
    background: #f1f5f9;
    padding: 14px 10px 10px;
  }

  #browseSection .card-bottom {
    background: #fff;
    padding: 14px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  #browseSection .best-price-store {
    font-size: 0.688rem;
    color: var(--gray-600);
    margin-bottom: 5px;
    font-weight: 500;
  }

  #browseSection .vs-highest {
    font-size: 0.625rem;
    color: #90a1b9;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  #browseSection .brand-tag {
    font-size: 0.5rem;
  }

  #browseSection .store-left {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    padding: 10px 10px;
  }

  .market-analysis-dashboard .price-legend span {
    font-weight: 800 !important;
    font-size: 0.625rem !important;
    padding: 3px 6px !important;
    border-radius: 10px;
  }

  #browseSection .rank-badge {
    background: rgba(200, 165, 78, 0.2) !important;
    color: #c8a54e !important;
    height: 24px !important;
    width: 24px !important;
    font-size: 0.625rem;
    font-weight: normal !important;
  }

  #browseSection .store-main {
    padding: 0px !important;
  }

  #browseSection .price-amount {
    font-weight: 800 !important;
    font-size: 0.625rem !important;
    padding: 6px !important;
    border-radius: 25px;
  }

  #browseSection .store-icon {
    height: 36px !important;
    width: 36px !important;
  }

  #browseSection .emoji-svg {
    height: 36px !important;
    width: 36px !important;
  }

  #browseSection .category-store-details {
    width: 90px;
  }

  #browseSection .category-store-details h5 {
    font-size: 0.75rem !important;
    margin-bottom: 0px !important;
  }

  #browseSection .store-meta {
    color: #90a1b9 !important;
    font-size: 0.563rem !important;
    margin-top: 0px !important;
  }

  #browseSection .price-meta {
    background: #D0FAE5;
    font-weight: 800 !important;
    font-size: 0.625rem !important;
    padding: 6px !important;
    border-radius: 10px;
    color: #006045 !important;
    margin-left: 80px;
    white-space: nowrap;
  }

  #browseSection .store-left>div:last-child {
    flex: 1;
  }


  #browseSection small {
    font-size: 0.5rem;
    color: #90a1b9;
    letter-spacing: 0.21px;
    display: flex;
    flex-direction: column;
  }


  #browseSection .product-details {
    background: #ffffff !important;
    margin-top: 5px;
    width: 100%;
  }


  #browseSection .detail-info {
    font-size: 0.688rem;
    color: #1d293d;
  }


  #browseSection .detail-info p {
    margin: 0 auto;
    font-size: 0.688rem;
    color: #90A1B9;
  }

  .market-analysis-dashboard .price-comparison-page .badge-down {
    background: #D0FAE5 !important;
    color: #006045 !important;
  }
}

/* VIEW TOGGLE */
.market-analysis-dashboard .view-toggle {
  display: flex;
  gap: 4px;
}

.market-analysis-dashboard .view-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.15s;
}

.market-analysis-dashboard .view-btn.active {
  background: #8B6E2E;
  border-color: #8B6E2E;
  color: #fff;
}

/* ===================== SEARCH RESULTS LIST ===================== */
.market-analysis-dashboard #searchSectionMerged {
  display: none;
}

.market-analysis-dashboard #searchSectionMerged.visible {
  display: block;
}

.market-analysis-dashboard .search-count {
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 14px;
}

.market-analysis-dashboard .search-count strong {
  color: var(--text-dark);
  font-weight: 600;
}

.market-analysis-dashboard .search-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  border: 1px solid var(--border);
}

.market-analysis-dashboard .search-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}

.market-analysis-dashboard .search-row:last-child {
  border-bottom: none;
}

.market-analysis-dashboard .search-row:hover {
  background: var(--gray-50);
}

/* Checkbox */
.market-analysis-dashboard .row-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--gray-200);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.market-analysis-dashboard .search-row:hover .row-check {
  border-color: var(--gray-300);
}

.market-analysis-dashboard .search-row.checked .row-check {
  background: var(--dashboard-primary);
  border-color: var(--dashboard-primary);
}

.market-analysis-dashboard .check-tick {
  display: none;
}

.market-analysis-dashboard .search-row.checked .check-tick {
  display: block;
  color: #fff;
}

/* Thumbnail */
.market-analysis-dashboard .row-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

/* Info */
.market-analysis-dashboard .row-info {
  flex: 1;
  min-width: 0;
}

.market-analysis-dashboard .row-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.market-analysis-dashboard .row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.market-analysis-dashboard .row-unit {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.market-analysis-dashboard .row-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-300);
}

.market-analysis-dashboard .row-cat {
  font-size: 0.8rem;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 2px 10px;
  border-radius: 9999px;
  font-weight: 500;
  white-space: nowrap;
}

/* Price */
.market-analysis-dashboard .row-price {
  text-align: right;
}

.market-analysis-dashboard .row-price-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: #059669;
}

.market-analysis-dashboard .row-price-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* No results */
.market-analysis-dashboard .no-results {
  text-align: center;
  padding: 48px 20px;
}

.market-analysis-dashboard .no-results-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.market-analysis-dashboard .no-results-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.market-analysis-dashboard .no-results-sub {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===================== GRID ===================== */
.market-analysis-dashboard .cards-grid {
  display: none;
}

.market-analysis-dashboard .cards-grid.active {
  display: flex;
  flex-wrap: wrap;
  margin: -8px;
}

.market-analysis-dashboard .cards-grid.active .col-item {
  padding: 6px;
  width: 25%;
}

@media (max-width: 1199px) {
  .market-analysis-dashboard .cards-grid.active .col-item {
    width: 25%;
  }
}

@media (max-width: 992px) {
  .market-analysis-dashboard .cards-grid.active .col-item {
    width: 33.33%;
  }
}

@media (max-width: 768px) {
  .market-analysis-dashboard .cards-grid.active .col-item {
    width: 50%;
  }
}

@media (max-width: 480px) {
  .market-analysis-dashboard .cards-grid.active .col-item {
    width: 100%;
  }

  .card-icon-wrap {
    float: left;
    margin-right: 10px;
  }

}

.market-analysis-dashboard .category-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.market-analysis-dashboard .category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.market-analysis-dashboard .card-top {
  background: #f1f5f9;
  padding: 14px 20px 10px;
}

.market-analysis-dashboard .card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.market-analysis-dashboard .card-category-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.market-analysis-dashboard .card-items-count {
  font-size: 0.85rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
}

.market-analysis-dashboard .card-bottom {
  background: #fff;
  padding: 14px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Bleed effect for category pills on mobile */
@media (max-width: 767px) {
  .market-analysis-dashboard .category-nav-wrapper {
    margin-left: -15px !important;
    margin-right: -15px !important;
    width: calc(100% + 30px) !important;
    padding: 0 15px;
  }

  .market-analysis-dashboard .category-pills {
    padding-bottom: 10px;
  }
}

.market-analysis-dashboard .best-price-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
}

.market-analysis-dashboard .best-price-value {
  font-weight: 700;
  color: #059669;
  margin-bottom: 2px;
}

.market-analysis-dashboard .best-price-store {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 10px;
}

.market-analysis-dashboard .card-divider {
  border: none;
  border-top: 1px dashed var(--gray-200);
  margin: 0 0 10px;
}

.market-analysis-dashboard .vs-highest {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.market-analysis-dashboard .vs-highest span {
  color: #dc2626;
  font-weight: 700;
}

.market-analysis-dashboard .brand-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  flex-wrap: wrap;
  width: 100%;
}

.market-analysis-dashboard .brand-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid var(--gray-200);
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.market-analysis-dashboard .brand-tag:hover {
  background: var(--gray-200);
  color: var(--gray-700);
}

.market-analysis-dashboard .arrow-btn {
  margin-left: auto;
  color: var(--gray-300);
  font-size: 0.85rem;
  transition: color 0.2s, transform 0.2s;
}

.market-analysis-dashboard .category-card:hover .arrow-btn {
  color: var(--dashboard-primary);
  transform: translateX(3px);
}

html[dir="rtl"] .market-analysis-dashboard .category-card:hover .arrow-btn {
  transform: translateX(-3px);
}

/* ===================== TABLE LIST VIEW ===================== */
.market-analysis-dashboard .cards-list {
  display: none;
}

.market-analysis-dashboard .cards-list.active {
  display: block;
}

.market-analysis-dashboard .price-comparison-page .product-tag.border-active {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
}

.market-analysis-dashboard .price-table-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.market-analysis-dashboard .price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.85rem;
  min-width: 900px;
}

.market-analysis-dashboard .price-table thead tr {
  background: #1e3a5f;
  color: #ffffff;
  border-bottom: none;
}

.market-analysis-dashboard .price-table thead th {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: normal;
  border: none;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 4;
}

.market-analysis-dashboard .price-table th:nth-child(1),
.market-analysis-dashboard .price-table td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 3;
}

.market-analysis-dashboard .price-table th:nth-child(2),
.market-analysis-dashboard .price-table td:nth-child(2) {
  position: sticky;
  left: 60px;
  z-index: 2;
}

.market-analysis-dashboard .price-table th:nth-child(3),
.market-analysis-dashboard .price-table td:nth-child(3) {
  position: sticky;
  left: 290px;
  /* 60 + 260 */
  z-index: 1;
}

.market-analysis-dashboard .price-table thead th:nth-child(1),
.market-analysis-dashboard .price-table thead th:nth-child(2),
.market-analysis-dashboard .price-table thead th:nth-child(3) {
  background: #1e3a5f;
  color: #ffffff;
  z-index: 5;
}

.market-analysis-dashboard .price-table tbody td:nth-child(1),
.market-analysis-dashboard .price-table tbody td:nth-child(2),
.market-analysis-dashboard .price-table tbody td:nth-child(3) {
  background: #ffffff;
}

.market-analysis-dashboard .price-table th:nth-child(2),
.market-analysis-dashboard .price-table td:nth-child(2) {
  min-width: 230px;
  max-width: 260px;
}

.market-analysis-dashboard .number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #fffaf0;
  color: #dd6b20;
  font-weight: 600;
  font-size: 0.9rem;
  margin: auto;
}

.market-analysis-dashboard .price-table td:nth-child(1),
.market-analysis-dashboard .price-table th:nth-child(1) {
  text-align: center;
}

.market-analysis-dashboard .price-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  font-size: 0.85rem;
}

@media (max-width: 768px) {

  .market-analysis-dashboard .price-table th:nth-child(1),
  .market-analysis-dashboard .price-table td:nth-child(1) {
    display: none;
  }

  .market-analysis-dashboard .price-table th:nth-child(2),
  .market-analysis-dashboard .price-table td:nth-child(2) {
    position: sticky;
    left: 0;
    min-width: 220px;
    max-width: 220px;
    z-index: 3;
    background: #fff;
  }

  .market-analysis-dashboard .price-table th:nth-child(3),
  .market-analysis-dashboard .price-table td:nth-child(3) {
    position: sticky;
    left: 120px;
    z-index: 2;
    background: #fff;
  }

  .market-analysis-dashboard .price-table thead th:nth-child(2),
  .market-analysis-dashboard .price-table thead th:nth-child(3) {
    background: #1e3a5f;
    color: #ffffff;
    z-index: 5;
  }
}

.market-analysis-dashboard .pagination-info {
  color: #9ca3af;
}

.market-analysis-dashboard .custom-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.market-analysis-dashboard .custom-pagination span {
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  color: #374151;
  transition: 0.2s;
}

.market-analysis-dashboard .custom-pagination .active {
  background: #c9a44c;
  color: #fff;
  font-weight: 600;
}

.market-analysis-dashboard .custom-pagination .arrow {
  font-weight: 600;
  color: #6b7280;
}

.market-analysis-dashboard .custom-pagination span:hover {
  background: #f3f4f6;
}

.market-analysis-dashboard .truncate-th {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  position: relative;
}

.market-analysis-dashboard .commodity-brands {
  display: block;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  position: relative;
}

.market-analysis-dashboard .price-table thead th:first-child {
  padding-left: 24px;
}

.market-analysis-dashboard .price-table tbody tr {
  border-bottom: 1px solid #f0f2f5;
  transition: background 0.15s;
}

.market-analysis-dashboard .price-table tbody tr:last-child {
  border-bottom: none;
}

.market-analysis-dashboard .price-table tbody tr:hover {
  background: #f8fafb;
}

.market-analysis-dashboard .price-table tbody td {
  padding: 10px 10px;
  vertical-align: middle;
  color: var(--text-dark);
}

.market-analysis-dashboard .price-table tbody td:first-child {
  padding-left: 20px;
  color: #f6ad55;
  font-weight: 600;
  font-size: 0.85rem;
  width: 40px;
}

.market-analysis-dashboard .commodity-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.market-analysis-dashboard .commodity-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.market-analysis-dashboard .commodity-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: #1e3a5f;
}

.market-analysis-dashboard .commodity-brands {
  font-size: 0.75rem;
  color: #a0aec0;
  margin-top: 2px;
}

.market-analysis-dashboard .unit-cell {
  color: #a0aec0;
  font-size: 0.85rem;
  white-space: nowrap;
}

.market-analysis-dashboard .custom-js-tooltip {
  position: absolute;
  background: #1e293b;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 9999;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.market-analysis-dashboard .custom-js-tooltip.custom-visible {
  display: block;
  opacity: 1;
}

.market-analysis-dashboard .custom-js-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
}

.market-analysis-dashboard .custom-js-tooltip.bottom-arrow::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #1e293b;
}

.market-analysis-dashboard .price-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  min-width: 85px;
  justify-content: center;
}

.market-analysis-dashboard .price-badge .badge-num {
  font-size: 0.9rem;
}

.market-analysis-dashboard .price-badge .badge-unit {
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 1px;
}

.market-analysis-dashboard .badge-down {
  background: #f0fff4;
  color: #38a169;
  border-color: #9ae6b4;
}

.market-analysis-dashboard .badge-up {
  background: #fff5f5;
  color: #e53e3e;
  border-color: #feb2b2;
}

.market-analysis-dashboard .badge-flat {
  background: #fffaf0;
  color: #dd6b20;
  border-color: #fbd38d;
}

@media (max-width: 1024px) {
  .market-analysis-dashboard .price-table {
    font-size: 0.8rem;
    min-width: 800px;
  }

  .market-analysis-dashboard .price-table th,
  .market-analysis-dashboard .price-table td {
    padding: 12px 10px;
  }

  .market-analysis-dashboard .price-table th:nth-child(2),
  .market-analysis-dashboard .price-table td:nth-child(2) {
    min-width: 200px;
  }

  .market-analysis-dashboard .number-badge {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .market-analysis-dashboard .price-table-wrap {
    overflow-x: auto;
  }

  .market-analysis-dashboard .price-table {
    min-width: 700px;
    font-size: 0.75rem;
  }

  .market-analysis-dashboard .price-table th,
  .market-analysis-dashboard .price-table td {
    padding: 10px 8px;
  }

  .market-analysis-dashboard .price-table th:nth-child(2),
  .market-analysis-dashboard .price-table td:nth-child(2) {
    left: 50px;
    min-width: 180px;
  }

  .market-analysis-dashboard .price-table th:nth-child(1),
  .market-analysis-dashboard .price-table td:nth-child(1) {
    min-width: 50px;
  }

  .market-analysis-dashboard .number-badge {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .market-analysis-dashboard .commodity-icon {
    width: 24px;
    height: 24px;
  }

  .market-analysis-dashboard .commodity-name {
    font-size: 0.8rem;
  }

  .market-analysis-dashboard .commodity-brands {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .market-analysis-dashboard .price-table {
    min-width: 600px;
    font-size: 0.7rem;
  }

  .market-analysis-dashboard .price-table th,
  .market-analysis-dashboard .price-table td {
    padding: 8px 6px;
  }

  .market-analysis-dashboard .price-table th:nth-child(2),
  .market-analysis-dashboard .price-table td:nth-child(2) {
    left: 0px;
    min-width: 120px;
  }

  .market-analysis-dashboard .price-table th:nth-child(1),
  .market-analysis-dashboard .price-table td:nth-child(1) {
    min-width: 45px;
  }

  .market-analysis-dashboard .number-badge {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .market-analysis-dashboard .price-table-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .market-analysis-dashboard .custom-pagination {
    flex-wrap: wrap;
  }

  .store-list .product-details {
    padding: 0px !important;
  }

  .market-analysis-dashboard .price-comparison-page .detail-item {
    min-width: 269px !important;
    padding: 12px 10px !important;
  }
}

/* Filters & Price comparison scoping */
.market-analysis-dashboard .search-card-merged {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), 0 12px 30px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: all 0.3s;
  z-index: 10;
}

.market-analysis-dashboard .search-wrap-merged {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  padding-inline-start: 22px;
}

.market-analysis-dashboard .search-wrap-merged input {
  flex: 1;
  border: none !important;
  font-family: 'Cairo', sans-serif !important;
  color: var(--text-dark) !important;
  outline: none !important;
  background: transparent !important;
}

html[dir="ltr"] .market-analysis-dashboard .search-wrap-merged input {
  padding-left: 21px !important;
}

html[dir="rtl"] .market-analysis-dashboard .search-wrap-merged input {
  padding-right: 48px !important;
}

.market-analysis-dashboard .search-icon-merged {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 2;
}

html[dir="ltr"] .market-analysis-dashboard .search-icon-merged {
  left: 14px;
}

html[dir="rtl"] .market-analysis-dashboard .search-icon-merged {
  right: 14px;
}

.market-analysis-dashboard #productSearchMerged {
  padding: 14px 16px 14px 14px !important;
  text-overflow: ellipsis;
}

html[dir="rtl"] .market-analysis-dashboard #productSearchMerged {
  padding: 14px 14px 14px 16px !important;
  text-align: right;
  pointer-events: auto;
}

.market-analysis-dashboard .search-wrap-merged input::placeholder {
  color: var(--text-light);
  opacity: 0.65;
  font-size: 0.95rem;
  font-weight: 400;
}

.market-analysis-dashboard .filter-btn-box {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
}

.market-analysis-dashboard .filter-btn-box:hover {
  background: var(--gray-200);
}

.market-analysis-dashboard .filter-btn-box.active {
  background: #8c783e;
  color: #fff;
  box-shadow: 0 4px 12px rgba(140, 120, 62, 0.2);
}

.market-analysis-dashboard .filter-bar {
  padding: 20px 0 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  transform: translateY(-10px);
  transition: all 0.25s ease;
}

@media (max-width: 480px) {
  .market-analysis-dashboard .filter-bar {
    padding: 12px;
    gap: 8px;
    flex-direction: column;
  }

  .market-analysis-dashboard .filter-option {
    flex: 1 1 auto !important;
    width: 100%;
  }

  .market-analysis-dashboard .filter-select {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

.market-analysis-dashboard .filter-bar-div {
  display: none;
}

.market-analysis-dashboard .filter-bar-div,
.market-analysis-dashboard .filter-bar {
  position: relative !important;
  z-index: 2000 !important;
}

.market-analysis-dashboard .filter-bar-div.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.market-analysis-dashboard .filter-option {
  position: relative;
  max-width: 100%;
  flex: 1 1 200px;
}

.market-analysis-dashboard .filter-select {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #eeeff0;
  border-radius: 14px;
  font-size: 0.88rem;
  cursor: pointer;
}

.market-analysis-dashboard .option-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  margin-top: 8px;
  z-index: 1000;
  overflow: hidden;
}

.market-analysis-dashboard .option-dropdown.open {
  display: block;
}

.market-analysis-dashboard .dropdown-search {
  width: 100% !important;
  padding: 10px !important;
  border: none !important;
  border-bottom: 1px solid #eee !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

.market-analysis-dashboard .options-list {
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
}

.market-analysis-dashboard .opt-item {
  padding: 10px 14px;
  cursor: pointer;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-analysis-dashboard .opt-item:hover {
  background: #f1f5f9;
}

.market-analysis-dashboard .tabs-row-merged {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  margin-bottom: 24px;
  border-bottom: 1.5px solid var(--gray-100);
  padding-bottom: 2px;
}

.market-analysis-dashboard .tabs-left-merged {
  display: flex;
  gap: 32px;
}

.market-analysis-dashboard .tab-item-merged {
  padding: 12px 2px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.market-analysis-dashboard .tab-item-merged.active {
  color: var(--dashboard-primary);
}

.market-analysis-dashboard .tab-item-merged.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--dashboard-primary);
  border-radius: 4px;
}

.market-analysis-dashboard .clear-btn-merged {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ef4444;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 12px !important;
  border-radius: 8px;
  transition: background 0.2s;
  margin-left: auto;
}

.market-analysis-dashboard .clear-btn-merged:hover {
  background: #fef2f2;
}

.market-analysis-dashboard .product-list-merged {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.market-analysis-dashboard .product-div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.market-analysis-dashboard .product-row-merged {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.market-analysis-dashboard .product-row-merged:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.market-analysis-dashboard .product-row-merged.checked {
  border-color: #10b981;
  background-color: #f0fdf4;
}

.market-analysis-dashboard .row-check-merged {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.market-analysis-dashboard .product-row-merged.checked .row-check-merged {
  background: var(--dashboard-primary);
  border-color: var(--dashboard-primary);
}

.market-analysis-dashboard .check-tick-merged {
  display: none;
  color: #fff;
  font-size: 11px;
}

.market-analysis-dashboard .product-row-merged.checked .check-tick-merged {
  display: block;
}

.market-analysis-dashboard .row-thumb-merged {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}

.market-analysis-dashboard .row-info-merged {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  margin-left: 4px;
}

.market-analysis-dashboard .info-content-merged {
  flex: 1;
}

.market-analysis-dashboard .row-name-merged {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.market-analysis-dashboard .row-meta-merged {
  display: flex;
  align-items: center;
  gap: 8px;
}

.market-analysis-dashboard .brand-pill-merged {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 9999px;
}

.market-analysis-dashboard .row-subtext-merged {
  font-size: 0.8rem;
  color: var(--text-light);
}

.market-analysis-dashboard .row-price-merged {
  text-align: right;
  min-width: 90px;
}

.market-analysis-dashboard .row-price-val-merged {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
}

.market-analysis-dashboard .row-price-label-merged {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 1px;
}

.market-analysis-dashboard .sticky-footer-merged {
  position: fixed;
  bottom: 30px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.market-analysis-dashboard .sticky-footer-merged.visible {
  transform: translateY(0);
}

.market-analysis-dashboard .compare-btn-merged {
  background: #8c783e;
  color: #fff;
  border: none;
  padding: 16px 48px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(140, 120, 62, 0.35);
}

.market-analysis-dashboard .empty-state-merged {
  text-align: center;
  padding: 100px 20px;
}

.market-analysis-dashboard .basket-wrapper-merged {
  margin-bottom: 24px;
  opacity: 0.25;
}

.market-analysis-dashboard .basket-wrapper-merged img {
  width: 72px;
  height: 72px;
}

.market-analysis-dashboard .empty-title-merged {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.market-analysis-dashboard .best-deal-banner {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #047536 100%);
  border-radius: 24px;
  padding: 32px;
  color: #fff;
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
  position: relative;
}

.market-analysis-dashboard .best-deal-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.market-analysis-dashboard .banner-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.market-analysis-dashboard .deal-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.market-analysis-dashboard .deal-text h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 4px;
}

.market-analysis-dashboard .deal-text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.market-analysis-dashboard .deal-text p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin: 4px 0 0;
}

.market-analysis-dashboard .deal-icon-box {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.market-analysis-dashboard .deal-price {
  text-align: right;
}

.market-analysis-dashboard .price-sub {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 2px;
}

.market-analysis-dashboard .price-main {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin: 4px 0;
}

.market-analysis-dashboard .savings-info {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
}

.market-analysis-dashboard .banner-items-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.market-analysis-dashboard .item-token {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.market-analysis-dashboard .ranking-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  margin-top: 40px;
}

.market-analysis-dashboard .stores-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.market-analysis-dashboard .store-card {
  background: #fff;
  border: 1.5px solid #edf2f7;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.market-analysis-dashboard .store-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.market-analysis-dashboard .rank-1 {
  border-color: #fcd34d !important;
  background: #fffdf7 !important;
  box-shadow: 0 10px 20px rgba(252, 211, 77, 0.15) !important;
}

.market-analysis-dashboard .store-header-row {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  position: relative;
}

.market-analysis-dashboard .rank-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #64748b;
  flex-shrink: 0;
}

.market-analysis-dashboard .rank-1 .rank-num {
  background: #fef3c7;
  color: #d97706;
}

.market-analysis-dashboard .store-main {
  flex: 1;
}

.market-analysis-dashboard .store-name {
  font-weight: 700;
  color: #1a202c;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.market-analysis-dashboard .best-badge {
  background: #fef3c7;
  color: #d97706;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
  text-transform: uppercase;
}

.market-analysis-dashboard .store-meta {
  font-size: 0.85rem;
  color: #718096;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.market-analysis-dashboard .store-price-area {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 20px;
}

.market-analysis-dashboard .final-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a202c;
}

.market-analysis-dashboard .cheapest-label {
  font-size: 0.75rem;
  color: #38a169;
  font-weight: 700;
}

.market-analysis-dashboard .diff-price {
  font-size: 0.8rem;
  color: #e53e3e;
  font-weight: 700;
}

.market-analysis-dashboard .expand-btn {
  color: #a0aec0;
  transition: transform 0.3s;
}

.market-analysis-dashboard .store-card.expanded .expand-btn {
  transform: rotate(180deg);
}

.market-analysis-dashboard .store-details {
  display: none;
  padding: 0 24px 20px;
  border-top: 1px dashed #e2e8f0;
}

.market-analysis-dashboard .store-card.expanded .store-details {
  display: block;
}

.market-analysis-dashboard .product-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px !important;
  margin-top: 20px;
}

.market-analysis-dashboard .detail-item {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  padding: 12px;
  display: flex !important;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
}

.market-analysis-dashboard .detail-item:hover {
  background: #f1f5f9;
}

.market-analysis-dashboard .detail-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.market-analysis-dashboard .detail-info {
  flex: 1;
}

.market-analysis-dashboard .detail-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2d3748;
}

.market-analysis-dashboard .detail-brand {
  font-size: 0.75rem;
  color: #718096;
}

.market-analysis-dashboard .detail-price {
  text-align: right;
}

.market-analysis-dashboard .price-amount {
  font-size: 1rem;
  font-weight: 800;
}

.market-analysis-dashboard .no-results-container {
  text-align: center;
  padding: 40px;
  color: #666;
}

.market-analysis-dashboard .no-results-icon {
  font-size: 40px;
  margin-bottom: 15px;
  color: #ccc;
}

.market-analysis-dashboard #productListMerged {
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  padding-right: 6px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.market-analysis-dashboard #productListMerged::-webkit-scrollbar {
  width: 6px;
}

.market-analysis-dashboard #productListMerged::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #cbd5f5, #94a3b8);
  border-radius: 10px;
}

.market-analysis-dashboard .pagination-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #eee;
  background: #fff;
}

@keyframes dashboardFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.market-analysis-dashboard .info-text-merged {
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .market-analysis-dashboard .tabs-left-merged {
    gap: 20px;
  }

  .market-analysis-dashboard .compare-btn-merged {
    padding: 14px 38px;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .market-analysis-dashboard .tabs-row-merged {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .market-analysis-dashboard .tabs-left-merged {
    width: 100%;
  }

  .market-analysis-dashboard .product-row-merged {
    padding: 14px;
    gap: 12px;
  }

  .market-analysis-dashboard .row-thumb-merged {
    width: 50px;
    height: 50px;
  }

  .market-analysis-dashboard .row-price-val-merged {
    font-size: 1rem;
  }

  .market-analysis-dashboard .best-deal-banner {
    padding: 24px;
    border-radius: 20px;
  }

  .market-analysis-dashboard .banner-top {
    flex-direction: column;
    gap: 20px;
  }

  .market-analysis-dashboard .deal-price {
    text-align: left;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
  }

  .market-analysis-dashboard .price-main {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .market-analysis-dashboard .search-card-merged {
    border-radius: 20px;
    margin: 0 5px;
  }

  .market-analysis-dashboard #productSearchMerged {
    padding: 12px 19px 12px 10px !important;
  }

  .market-analysis-dashboard .product-row-merged {
    padding: 10px;
    gap: 10px;
    align-items: flex-start;
  }

  .market-analysis-dashboard .row-thumb-merged {
    width: 44px;
    height: 44px;
  }

  .market-analysis-dashboard .row-name-merged {
    font-size: 0.88rem;
  }

  .market-analysis-dashboard .sticky-footer-merged {
    bottom: 15px;
  }

  .market-analysis-dashboard .compare-btn-merged {
    width: 92%;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .market-analysis-dashboard #productListMerged {
    max-height: calc(100vh - 340px);
  }

  .market-analysis-dashboard .store-header-row {
    padding: 16px;
    gap: 12px;
  }

  .market-analysis-dashboard .rank-num {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .market-analysis-dashboard .store-name {
    font-size: 1rem;
  }

  .market-analysis-dashboard .final-price {
    font-size: 1.15rem;
  }

  .market-analysis-dashboard .store-price-area {
    gap: 10px;
  }

  .market-analysis-dashboard .product-details {
    grid-template-columns: 1fr;
  }
}

/* RTL Overrides for Dashboard View */
html[dir="rtl"] .market-analysis-dashboard .search-icon {
  left: auto;
  right: 20px;
}

html[dir="rtl"] .market-analysis-dashboard .search-actions {
  right: auto;
  left: 20px;
}

html[dir="rtl"] .market-analysis-dashboard .search-wrap input {
  padding: 16px 52px 16px 56px;
}

html[dir="rtl"] .market-analysis-dashboard .row-price {
  text-align: left;
}

html[dir="rtl"] .market-analysis-dashboard .store-price-area {
  text-align: left;
}

html[dir="rtl"] .market-analysis-dashboard .arrow-btn {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .market-analysis-dashboard .final-price {
  text-align: left;
}

html[dir="rtl"] .market-analysis-dashboard .price-main {
  text-align: right;
}

html[dir="rtl"] .market-analysis-dashboard .deal-price {
  text-align: left;
}

html[dir="rtl"] .market-analysis-dashboard .winner-total {
  text-align: left;
}

html[dir="rtl"] .market-analysis-dashboard .row-price-merged {
  text-align: left;
}

@media (max-width: 480px) {

  .mob_padding {
    padding-right: 0px !important;
    padding-left: 0px !important;
  }


  .market-analysis-dashboard .cards-grid.active {
    flex-wrap: wrap;
    margin: -8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .market-analysis-dashboard .cards-grid.active>* {
    width: calc(50%);
  }

  .last-updated-tag {
    background: none !important;
    color: #3E4046 !important;
    border: 0px !important;
    box-shadow: none !important;
    margin: 0px !important;
    padding: 0px !important;
    font-weight: normal !important;
  }

  .market-analysis-dashboard .card-top {
    display: grid;
  }


  .market-analysis-dashboard .card-items-count {
    gap: 0px;
  }


  .market-analysis-dashboard .accordion {
    max-width: 500px;
    margin: auto;
  }

  .market-analysis-dashboard details {
    background: #fff;
    border-radius: 12px;
    padding: 10px 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  .market-analysis-dashboard summary {
    list-style: none;
    cursor: pointer;
  }

  .market-analysis-dashboard summary::-webkit-details-marker {
    display: none;
  }

  .market-analysis-dashboard .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .market-analysis-dashboard .header p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #777;
  }

  .market-analysis-dashboard .badge {
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
  }

  .market-analysis-dashboard .badge.positive {
    background: #e6f7ee;
    color: #1ca36f;
  }

  .market-analysis-dashboard .content {
    margin-top: 10px;
  }

  .market-analysis-dashboard .item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #fafafa;
  }

  .market-analysis-dashboard .item p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #777;
  }

  .market-analysis-dashboard .item.best {
    background: #e9f8f1;
  }

  .market-analysis-dashboard .price {
    font-weight: bold;
  }

  .market-analysis-dashboard .price.positive {
    color: #1ca36f;
  }

  .market-analysis-dashboard .price.negative {
    color: #e74c3c;
  }


}



/* Reset and Variables */
.market-analysis-dashboard {
  --primary-green: #00bfa5;
  --emerald: #00b894;
  --light-green: #f0fdfa;
  --dark-green: #009688;
  --bg-gray: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --winner-teal: #00b894;
  --gold: #d4af37;
  --silver: #a5b1c2;
  --bronze: #cd7f32;
}

.market-analysis-dashboard .price-comparison-page {
  font-family: 'Cairo', sans-serif !important;
  /* background-color: var(--bg-gray) !important; */
  color: var(--text-dark) !important;
  padding: 0 0 20px 0 !important;
  line-height: 1.5 !important;
  width: 100% !important;
}

.market-analysis-dashboard .price-comparison-page .container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.market-analysis-dashboard .price-comparison-page .last-updated {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 20px !important;
  display: block !important;
}

/* Header Section */
.market-analysis-dashboard .price-comparison-page .category-header {
  background: transparent !important;
  padding: 0 0 20px 0 !important;
  margin-bottom: 20px !important;
  width: 100% !important;
}

.market-analysis-dashboard .price-comparison-page .product-tag.border-active {
  background: #f0fef7 !important;
  border: 1px solid rgba(0, 184, 148, 0.1) !important;
}

/* .market-analysis-dashboard .price-comparison-page .category-header .d-flex {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
} */

.market-analysis-dashboard .price-comparison-page .back-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text-dark) !important;
  margin-right: 15px !important;
  transition: all 0.2s !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.market-analysis-dashboard .price-comparison-page .back-btn:hover {
  background: #e2e8f0 !important;
}

.market-analysis-dashboard .price-comparison-page .category-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 12px !important;
  flex-shrink: 0 !important;
}

.market-analysis-dashboard .price-comparison-page .category-icon .emoji-svg {
  width: 32px !important;
  height: 32px !important;
}

.market-analysis-dashboard .price-comparison-page .category-title {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: var(--text-dark) !important;
  line-height: 1.2 !important;
}

.market-analysis-dashboard .price-comparison-page .category-meta {
  font-size: 0.95rem !important;
  color: #94a3b8 !important;
  margin-top: 2px !important;
}

/* Products Section */
.market-analysis-dashboard .price-comparison-page .products-section {
  margin-top: 25px !important;
  width: 100% !important;
}

.market-analysis-dashboard .price-comparison-page .section-label {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 12px !important;
  font-weight: 600 !important;
}

.market-analysis-dashboard .price-comparison-page .products-section .d-flex.flex-wrap {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 15px !important;
  margin-bottom: 25px !important;
}

.market-analysis-dashboard .price-comparison-page .product-tag {
  display: flex !important;
  align-items: center !important;
  background: white !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  padding: 12px 15px !important;
  transition: all 0.2s !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
  height: 75px !important;
  text-decoration: none !important;
}

.market-analysis-dashboard .price-comparison-page .product-tag:hover {
  border-color: #cbd5e1 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.market-analysis-dashboard .price-comparison-page .product-img {
  width: 45px !important;
  height: 45px !important;
  border-radius: 8px !important;
  object-fit: contain !important;
  margin-right: 12px !important;
  background: #f8fafc !important;
  padding: 4px !important;
  flex-shrink: 0 !important;
}

.market-analysis-dashboard .price-comparison-page .product-info {
  overflow: hidden !important;
  flex: 1 !important;
}

.market-analysis-dashboard .price-comparison-page .product-info h6 {
  font-size: 0.85rem !important;
  margin: 0 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: var(--text-dark) !important;
}

.market-analysis-dashboard .price-comparison-page .product-info small {
  color: #94a3b8 !important;
  font-size: 0.75rem !important;
  display: block !important;
}

/* Winner Banner */
.market-analysis-dashboard .price-comparison-page .winner-banner {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #048539 100%) !important;
  border-radius: 24px !important;
  padding: 32px !important;
  color: white !important;
  margin: 25px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2) !important;
  position: relative !important;
  overflow: hidden !important;
}

.market-analysis-dashboard .price-comparison-page .winner-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.market-analysis-dashboard .price-comparison-page .winner-icon {
  width: 60px !important;
  height: 60px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 2rem !important;
  margin-right: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  flex-shrink: 0 !important;
}

.market-analysis-dashboard .price-comparison-page .winner-label {
  font-size: 0.85rem !important;
  opacity: 0.9 !important;
  font-weight: 500 !important;
}

.market-analysis-dashboard .price-comparison-page .winner-name {
  font-size: 1.85rem !important;
  font-weight: 800 !important;
  margin: 4px 0 !important;
}

.market-analysis-dashboard .price-comparison-page .winner-location {
  font-size: 0.9rem !important;
  opacity: 0.9 !important;
}

.market-analysis-dashboard .price-comparison-page .winner-total {
  text-align: right !important;
}

.market-analysis-dashboard .price-comparison-page .total-label {
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  opacity: 0.8 !important;
  font-weight: 700 !important;
}

.market-analysis-dashboard .price-comparison-page .total-amount {
  font-size: 3rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.market-analysis-dashboard .price-comparison-page .savings {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

/* Section Header */
.market-analysis-dashboard .price-comparison-page .section-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 35px 0 15px 0 !important;
  color: var(--text-muted) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
}

.market-analysis-dashboard .price-comparison-page .section-header .emoji-svg {
  width: 24px !important;
  height: 24px !important;
  margin-right: 10px !important;
}

/* Store Cards */
.market-analysis-dashboard .price-comparison-page .store-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
}

.market-analysis-dashboard .price-comparison-page .store-card {
  background: white !important;
  border-radius: 20px !important;
  border: 1.5px solid #edf2f7 !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.market-analysis-dashboard .price-comparison-page .store-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.market-analysis-dashboard .price-comparison-page .store-card.winner {
  border-color: #fcd34d !important;
  background: #fffdf7 !important;
  box-shadow: 0 10px 20px rgba(252, 211, 77, 0.15) !important;
}

.market-analysis-dashboard .price-comparison-page .store-main {
  padding: 20px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
}

.market-analysis-dashboard .price-comparison-page .store-left {
  display: flex !important;
  align-items: center !important;
  flex: 1 !important;
}

.market-analysis-dashboard .price-comparison-page .rank-badge {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
  color: #fafafa !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  margin-right: 15px !important;
  flex-shrink: 0 !important;
}

.market-analysis-dashboard .price-comparison-page .rank-badge.gold {
  background: #f1c40f !important;
}

.market-analysis-dashboard .price-comparison-page .rank-badge.silver {
  background: #bdc3c7 !important;
}

.market-analysis-dashboard .price-comparison-page .rank-badge.bronze {
  background: #e67e22 !important;
}

.market-analysis-dashboard .price-comparison-page .store-icon {
  width: 45px !important;
  height: 45px !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 15px !important;
  flex-shrink: 0 !important;
}

.market-analysis-dashboard .price-comparison-page .store-details h5 {
  font-size: 1.1rem !important;
  margin: 0 !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
}

.market-analysis-dashboard .price-comparison-page .store-meta {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 4px !important;
}

.market-analysis-dashboard .price-comparison-page .rating {
  color: #f1c40f !important;
  font-weight: 700 !important;
}

.market-analysis-dashboard .price-comparison-page .store-total {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: var(--text-dark) !important;
  text-align: right !important;
}

.market-analysis-dashboard .price-comparison-page .store-savings {
  font-size: 0.85rem !important;
  color: var(--primary-green) !important;
  font-weight: 700 !important;
  text-align: right !important;
}

.market-analysis-dashboard .price-comparison-page .expand-btn {
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #94a3b8 !important;
  margin-left: 0px !important;
  cursor: pointer !important;
  background: transparent !important;
  border: none !important;
  transition: all 0.2s ease !important;
  border-radius: 50% !important;
}

.market-analysis-dashboard .price-comparison-page .expand-btn:hover {
  background: #f1f5f9 !important;
  color: var(--primary-green) !important;
}

/* Product Details Table/Grid */
.market-analysis-dashboard .price-comparison-page .product-details {
  padding: 20px 25px !important;
  background: #fafafa !important;
  border-top: 1px solid var(--border-color) !important;
  box-sizing: border-box !important;
}

/* apply layout only when JS opens with inline display:flex */
.market-analysis-dashboard .price-comparison-page .product-details[style*="display: flex"] {
  flex-wrap: wrap !important;
  gap: 15px !important;
}

.market-analysis-dashboard .price-comparison-page .detail-item.best {
  background: #f0fef7 !important;
}

.market-analysis-dashboard .price-comparison-page .detail-item {
  display: flex !important;
  align-items: center !important;
  border-radius: 12px !important;
  padding: 12px 18px !important;
  flex: 1 1 calc(50% - 15px) !important;
  min-width: 0 !important;
  width: 100% !important;
  border: 1px solid rgba(0, 184, 148, 0.1) !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .market-analysis-dashboard .price-comparison-page .product-details {
    padding: 15px !important;
  }

  .market-analysis-dashboard .price-comparison-page .product-details[style*="display: flex"] {
    gap: 10px !important;
  }

  .market-analysis-dashboard .price-comparison-page .detail-item {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}

/* extra small devices */
@media (max-width: 430px) {
  .market-analysis-dashboard .price-comparison-page .product-details {
    padding: 10px !important;
  }

  .market-analysis-dashboard .price-comparison-page .detail-item {
    padding: 10px 12px !important;
    flex: 1 1 100% !important;
  }
}

/* fold / SE screens */
@media (max-width: 360px) {
  .market-analysis-dashboard .price-comparison-page .product-details {
    padding: 8px !important;
  }

  .market-analysis-dashboard .price-comparison-page .detail-item {
    padding: 8px 10px !important;
    flex: 1 1 100% !important;
  }
}

.market-analysis-dashboard .price-comparison-page .detail-item:hover {
  background: #e6ffef !important;
  transform: translateY(-2px) !important;
}

.market-analysis-dashboard .price-comparison-page .detail-img {
  width: 45px !important;
  height: 45px !important;
  border-radius: 8px !important;
  margin-right: 15px !important;
  background: white !important;
}

.market-analysis-dashboard .price-comparison-page .detail-info {
  flex: 1 !important;
}

.market-analysis-dashboard .price-comparison-page .detail-name {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
}

.market-analysis-dashboard .price-comparison-page .detail-brand {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}

.market-analysis-dashboard .price-comparison-page .price-amount {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
}

.market-analysis-dashboard .price-comparison-page .cheapest-tag {
  font-size: 0.65rem !important;
  color: var(--primary-green) !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  display: block !important;
}

.market-analysis-dashboard .price-comparison-page .store-footer {
  padding: 15px 25px !important;
  background: #f8fafc !important;
  border-top: 1px solid var(--border-color) !important;
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  display: flex;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

.market-analysis-dashboard .price-comparison-page .store-footer:hover {
  background: #f1f5f9 !important;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .market-analysis-dashboard .price-comparison-page .winner-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 20px !important;
  }

  .market-analysis-dashboard .price-comparison-page .winner-total {
    text-align: left !important;
    margin-top: 20px !important;
    width: 100% !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-top: 15px !important;
  }

  .market-analysis-dashboard .price-comparison-page .store-main {
    flex-wrap: wrap !important;
  }

  .market-analysis-dashboard .price-comparison-page .store-right {
    width: 100% !important;
    justify-content: space-between !important;
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px dashed var(--border-color) !important;
    display: flex !important;
  }

  .market-analysis-dashboard .price-comparison-page .detail-item {
    flex: 1 1 100% !important;
  }
}

@media (max-width: 576px) {
  .market-analysis-dashboard .price-comparison-page .category-title {
    font-size: 1.5rem !important;
  }

  .market-analysis-dashboard .price-comparison-page .total-amount {
    font-size: 1.2rem !important;
  }

  .store-list .product-details {
    padding: 0px !important;
  }

  .market-analysis-dashboard .price-comparison-page .detail-item {
    min-width: 269px !important;
    padding: 12px 10px !important;
  }

  .market-analysis-dashboard .price-comparison-page .winner-name {
    font-size: 1.2rem !important;
  }


}

/* RTL Overrides */
html[dir="rtl"] .market-analysis-dashboard .price-comparison-page .back-btn {
  margin-right: 0 !important;
  margin-left: 15px !important;
}

html[dir="rtl"] .market-analysis-dashboard .price-comparison-page .category-icon {
  margin-right: 0 !important;
  margin-left: 12px !important;
}

html[dir="rtl"] .market-analysis-dashboard .price-comparison-page .product-img {
  margin-right: 0 !important;
  margin-left: 12px !important;
}

html[dir="rtl"] .market-analysis-dashboard .price-comparison-page .winner-icon {
  margin-right: 0 !important;
  margin-left: 20px !important;
}

html[dir="rtl"] .market-analysis-dashboard .price-comparison-page .winner-total {
  text-align: left !important;
}

html[dir="rtl"] .market-analysis-dashboard .price-comparison-page .rank-badge {
  margin-right: 0 !important;
  margin-left: 15px !important;
}

html[dir="rtl"] .market-analysis-dashboard .price-comparison-page .store-icon {
  margin-right: 0 !important;
  margin-left: 15px !important;
}

html[dir="rtl"] .market-analysis-dashboard .price-comparison-page .store-total,
html[dir="rtl"] .market-analysis-dashboard .price-comparison-page .store-savings {
  text-align: left !important;
}

html[dir="rtl"] .market-analysis-dashboard .price-comparison-page .expand-btn {
  margin-left: 0 !important;
  margin-right: 20px !important;
}

html[dir="rtl"] .market-analysis-dashboard .price-comparison-page .detail-img {
  margin-right: 0 !important;
  margin-left: 15px !important;
}

html[dir="rtl"] .market-analysis-dashboard .price-comparison-page .detail-price {
  text-align: left !important;
}

html[dir="rtl"] .market-analysis-dashboard .price-comparison-page .section-header .emoji-svg {
  margin-right: 0 !important;
  margin-left: 10px !important;
}

@media (max-width: 768px) {
  html[dir="rtl"] .market-analysis-dashboard .price-comparison-page .winner-total {
    text-align: right !important;
  }
}

/* ── Quick-link buttons (Retailers / Other Products) ───────────────────── */
.market-analysis-dashboard .quick-links-row {
  display: flex;
  gap: 12px;
}

.market-analysis-dashboard .quick-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  box-shadow: var(--shadow-md);
}

.market-analysis-dashboard .quick-link-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
  text-decoration: none;
}
