html, body {
  overflow-x: hidden !important;
  width: 100vw;
}
.market-prices-hero-section {
  margin-top: 3.5rem;
  padding: 2.5rem 1.5rem 2.2rem 1.5rem;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow-x: hidden;
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 50vh;
}
@media (max-width: 900px) {
  .market-prices-hero-section {
    margin-top: 1.3rem;
    padding: 1.3rem 0.2rem 1.1rem 0.2rem;
    max-width: 100vw;
    min-height: 40vh;
  }
}
@media (max-width: 600px) {
  .market-prices-hero-section {
    padding: 0.7rem 0.1rem 0.7rem 0.1rem;
    min-height: 30vh;
  }
  .market-card {
    min-width: 110px;
    max-width: 150px;
    font-size: 0.85em;
    padding: 0.4em 0.4em 0.3em 0.4em;
    margin: 0 0.08em;
  }
  .animated-cards-row {
    gap: 0.3rem;
    min-height: 48px;
  }
  .market-btn {
    font-size: 0.97em;
    padding: 0.3em 0.7em;
  }
}
.animated-cards-rows {
  width: 100%;
  max-width: 100vw;
  overflow-x: auto;
  min-height: 90px;
}
.animated-cards-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  min-height: 60px;
  align-items: center;
  position: relative;
}

@media (max-width: 900px) {
  .market-prices-hero-section {
    padding: 1.3rem 0.2rem 1.1rem 0.2rem;
    max-width: 100vw;
    min-height: 40vh;
  }
}
.market-btn.active, .market-btn:active {
  background: #388e3c !important;
  color: #fff !important;
  border-color: #388e3c !important;
}
.animated-cards-rows {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  min-height: 90px;
}
.animated-cards-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  overflow: hidden;
  white-space: nowrap;
  min-height: 60px;
  align-items: center;
  position: relative;
}
.market-card {
  display: inline-flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(56,142,60,0.07);
  border: 1.5px solid #e0f2e9;
  min-width: 170px;
  max-width: 220px;
  padding: 0.7em 1.1em 0.55em 1.1em;
  margin: 0 0.2em;
  font-size: 1.07em;
  font-weight: 500;
  color: #14532d;
  transition: box-shadow 0.2s;
  white-space: normal;
  cursor: pointer;
}
.market-card .commodity {
  font-weight: bold;
  font-size: 1.12em;
  color: #256029;
  margin-bottom: 0.25em;
}
.market-card .price {
  font-size: 1.05em;
  color: #388e3c;
}
.market-card .unit {
  color: #888;
  font-size: 0.97em;
}
@media (max-width: 700px) {
  .market-card {
    min-width: 140px;
    font-size: 0.95em;
    padding: 0.6em 0.7em 0.45em 0.7em;
  }
  .animated-cards-row {
    gap: 0.7rem;
  }
}
