.a2m2-prices { --price-red: #ef232c; --price-ink: #111; --price-paper: #f2f0ea; color: var(--price-ink); }
.a2m2-prices__meta { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; margin-bottom: 1rem; border-left: 4px solid var(--price-red); background: #e6e1d8; color: #57534d; font-size: .9rem; }
.a2m2-prices__meta p { margin: 0; }
.a2m2-prices__controls { position: sticky; z-index: 8; top: calc(var(--header-height, 5rem) + .75rem); display: grid; gap: .8rem; padding: .8rem; margin: 0 -.8rem 1.5rem; border: 1px solid #d4cec3; background: rgb(242 240 234 / .94); box-shadow: 0 12px 36px rgb(0 0 0 / .08); backdrop-filter: blur(12px); }
.a2m2-prices__search { position: relative; display: block; }
.a2m2-prices__search::before { position: absolute; z-index: 1; top: 50%; left: 1.1rem; width: .85rem; height: .85rem; border: 2px solid #6d685f; border-radius: 50%; content: ""; transform: translateY(-62%); pointer-events: none; }
.a2m2-prices__search::after { position: absolute; z-index: 1; top: 53%; left: 1.92rem; width: .5rem; height: 2px; content: ""; background: #6d685f; transform: rotate(45deg); pointer-events: none; }
.a2m2-prices__search input { width: 100%; min-height: 3.65rem; padding: .85rem 1rem .85rem 3rem; border: 1px solid #aaa49a; border-radius: 0; background: #fff; color: #111; transition: border-color .2s, box-shadow .2s; }
.a2m2-prices__search input:focus { border-color: var(--price-red); box-shadow: 0 0 0 3px rgb(239 35 44 / .13); outline: 0; }
.a2m2-prices__filters { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .15rem; scrollbar-width: thin; }
.a2m2-prices__filters button { flex: 0 0 auto; min-height: 2.8rem; padding: .62rem 1rem; border: 1px solid #aaa49a; border-radius: 999px; background: transparent; color: inherit; font-weight: 800; cursor: pointer; transition: color .2s, background .2s, border-color .2s, transform .2s; }
.a2m2-prices__filters button:hover { border-color: #111; transform: translateY(-1px); }
.a2m2-prices__filters button.is-active { border-color: var(--price-red); background: var(--price-red); color: #fff; box-shadow: 0 6px 18px rgb(239 35 44 / .22); }
.a2m2-prices__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; background: transparent; border: 0; }
.a2m2-price-card { position: relative; display: grid; grid-template-columns: 6.2rem minmax(0, 1fr) auto; align-items: center; gap: 1.15rem; min-width: 0; min-height: 8.25rem; padding: .72rem 1.35rem .72rem .72rem; overflow: hidden; border: 1px solid #d1cbc0; background: linear-gradient(135deg, #f7f5f0, #eae6de); box-shadow: 0 2px 0 rgb(0 0 0 / .04); transition: border-color .28s, box-shadow .28s, transform .28s, opacity .35s; isolation: isolate; }
.a2m2-price-card::before { position: absolute; inset: 0 auto 0 0; width: 5px; content: ""; background: var(--price-red); transform: scaleY(.38); transform-origin: bottom; transition: transform .28s; }
.a2m2-price-card::after { position: absolute; z-index: -1; right: -3rem; bottom: -4rem; width: 10rem; aspect-ratio: 1; border-radius: 50%; content: ""; background: rgb(239 35 44 / .06); transform: scale(.65); transition: transform .35s; }
.a2m2-price-card:hover { border-color: #aaa39a; box-shadow: 0 18px 42px rgb(0 0 0 / .12); transform: translateY(-4px); }
.a2m2-price-card:hover::before { transform: scaleY(1); }
.a2m2-price-card:hover::after { transform: scale(1.2); }
.a2m2-price-card[hidden] { display: none; }
.a2m2-price-card__thumb { position: relative; align-self: stretch; min-height: 6.75rem; margin: 0; overflow: hidden; background: #252525; }
.a2m2-price-card__thumb::after { position: absolute; inset: 0; content: ""; border: 1px solid rgb(255 255 255 / .18); box-shadow: inset 0 0 22px rgb(0 0 0 / .18); }
.a2m2-price-card__thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.08); transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .3s; }
.a2m2-price-card:hover .a2m2-price-card__thumb img { filter: saturate(1) contrast(1.04); transform: scale(1.08); }
.a2m2-price-card__content { min-width: 0; }
.a2m2-price-card__category { display: block; margin-bottom: .45rem; color: #777169; font-size: .68rem; font-weight: 900; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.a2m2-price-card h3 { max-width: 28rem; margin: 0; font-family: inherit; font-size: 1.05rem; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.a2m2-price-card p { margin: .45rem 0 0; color: #69635b; font-size: .8rem; }
.a2m2-price-card__value { flex: 0 0 auto; display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: end; column-gap: .38rem; min-width: 8.2rem; text-align: right; }
.a2m2-price-card__value strong { color: #0d0d0d; font-family: "A2M2 Display", "Arial Narrow", Arial, sans-serif; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; line-height: .9; letter-spacing: -.035em; }
.a2m2-price-card__value > span:last-child { color: #655f57; font-size: .72rem; font-weight: 800; }
.a2m2-price-card__trend { grid-row: 1; align-self: center; font-size: 1.5rem; font-weight: 900; line-height: 1; }
.a2m2-price-card__trend--up { color: #128044; }
.a2m2-price-card__trend--down { color: #d21e28; }
.a2m2-price-card--up .a2m2-price-card__value strong { color: #0e7b40; }
.a2m2-price-card--down .a2m2-price-card__value strong { color: #c51d27; }
.a2m2-price-card--up::before { background: #159552; }
.a2m2-price-card--down::before { background: #d21e28; }
.a2m2-price-card__paused { display: grid; justify-items: end; gap: .15rem; min-width: 8rem; text-align: right; }
.a2m2-price-card__paused strong { color: #c51d27; font-size: .82rem; font-weight: 900; letter-spacing: .08em; line-height: 1.15; text-transform: uppercase; }
.a2m2-price-card__paused span { color: #6c655c; font-size: .72rem; font-weight: 750; }
.a2m2-price-card--paused { border-color: #cfb8ba; }
.a2m2-price-card--paused::before { background: repeating-linear-gradient(-45deg, #c51d27 0 6px, #171717 6px 12px); transform: scaleY(1); }
.a2m2-price-card--paused .a2m2-price-card__thumb img { filter: grayscale(1) contrast(1.06); opacity: .62; }
.a2m2-price-card.is-price-visible .a2m2-price-card__value { animation: a2m2-price-pop .65s cubic-bezier(.2,.9,.25,1.25) var(--price-delay) both; }
.a2m2-price-card.is-price-visible .a2m2-price-card__trend { animation: a2m2-trend-pulse .7s ease-out calc(var(--price-delay) + 120ms) both; }
@keyframes a2m2-price-pop { from { opacity: 0; transform: translateY(.7rem) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes a2m2-trend-pulse { 0% { opacity: 0; transform: translateY(.55rem); } 55% { transform: translateY(-.25rem) scale(1.22); } 100% { opacity: 1; transform: none; } }
.a2m2-prices__no-results { padding: 3rem 1rem; margin: 0; text-align: center; }
.a2m2-prices--empty { display: grid; gap: .4rem; padding: 2rem; border: 1px solid #3b3b3b; background: #181818; color: white; }
.a2m2-prices--compact { color: white; }
.a2m2-prices--compact .a2m2-prices__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.a2m2-prices--compact .a2m2-price-card { min-height: 7.4rem; border-color: #383838; background: linear-gradient(135deg, #1b1b1b, #111); box-shadow: 0 18px 42px rgb(0 0 0 / .2); }
.a2m2-prices--compact .a2m2-price-card::after { background: rgb(239 35 44 / .1); }
.a2m2-prices--compact .a2m2-price-card h3 { color: white; }
.a2m2-prices--compact .a2m2-price-card--stable .a2m2-price-card__value strong { color: white; }
.a2m2-prices--compact .a2m2-price-card__category, .a2m2-prices--compact .a2m2-price-card__value > span:last-child { color: #aaa59e; }
.a2m2-prices--compact .a2m2-price-card__paused span { color: #aaa59e; }
.a2m2-prices--compact .a2m2-price-card {
  grid-template-columns: 5.75rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas: "thumb content" "thumb value";
  align-items: center;
  gap: .2rem .9rem;
  min-height: 8.25rem;
  padding: .65rem 1rem .65rem .65rem;
}
.a2m2-prices--compact .a2m2-price-card__thumb { grid-area: thumb; min-height: 6.95rem; }
.a2m2-prices--compact .a2m2-price-card__content { grid-area: content; align-self: end; }
.a2m2-prices--compact .a2m2-price-card__category { margin-bottom: .22rem; font-size: .62rem; }
.a2m2-prices--compact .a2m2-price-card h3 { overflow-wrap: anywhere; font-size: .94rem; line-height: 1.2; }
.a2m2-prices--compact .a2m2-price-card__value {
  grid-area: value;
  align-self: start;
  justify-self: start;
  justify-content: start;
  min-width: 0;
  text-align: left;
}
.a2m2-prices--compact .a2m2-price-card__value strong { font-size: clamp(2.25rem, 3.15vw, 2.8rem); }
.a2m2-prices--compact .a2m2-price-card__trend { font-size: 1.15rem; }
.a2m2-prices--compact .a2m2-price-card__paused { grid-area: value; justify-self: start; justify-items: start; min-width: 0; text-align: left; }
@media (max-width: 860px) {
  .a2m2-prices__controls { position: relative; top: auto; }
  .a2m2-prices__grid, .a2m2-prices--compact .a2m2-prices__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .a2m2-prices__meta { display: grid; }
  .a2m2-prices__controls { margin-inline: 0; }
  .a2m2-price-card { grid-template-columns: 5.3rem minmax(0, 1fr) auto; min-height: 7.35rem; gap: .85rem; padding: .65rem .85rem .65rem .65rem; }
  .a2m2-price-card__thumb { min-height: 5.9rem; }
  .a2m2-price-card__value { min-width: 6.8rem; }
  .a2m2-price-card__value strong { font-size: clamp(2rem, 10vw, 2.75rem); }
}
@media (max-width: 390px) {
  .a2m2-price-card { grid-template-columns: 4.5rem minmax(0, 1fr); align-items: center; gap: .7rem; }
  .a2m2-price-card__thumb { min-height: 4.8rem; }
  .a2m2-price-card__value, .a2m2-price-card__paused { grid-column: 2; justify-self: start; justify-items: start; min-width: 0; text-align: left; }
  .a2m2-price-card__value strong { font-size: 2.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .a2m2-price-card, .a2m2-price-card::before, .a2m2-price-card::after, .a2m2-prices__filters button { transition: none; }
  .a2m2-price-card.is-price-visible .a2m2-price-card__value, .a2m2-price-card.is-price-visible .a2m2-price-card__trend { animation: none; }
}
