/* AliExpress numbers on the site (switch AE_RATING): the product page's trust block, the collection card tags and the
   home page's trending row. The site's language: the buy button's red-to-orange for highlights, 6px / 12px corners,
   white bold text on colour; no stars; a gentle fade only, none with prefers-reduced-motion. */

/* ---------- the product page: the AliExpress numbers card right under the title (manager 30.11 09:22) ----------
   evts-aer (not the TrustBox's .evts-trust). Its place is kept on every AliExpress product page (--wait: invisible, same
   height) so nothing jumps when the numbers arrive; the numbers count up once, the first time the card is on screen. */
.evts-aer { box-sizing: border-box; min-height: 10.8rem; margin: 1.2rem 0 .4rem; padding: 1.2rem 1.4rem 1rem; border-radius: 1.2rem;
  border: 1px solid rgba(242, 92, 0, .28); background: linear-gradient(135deg, rgba(255, 71, 71, .09), rgba(242, 92, 0, .06));
  animation: evts-aer-fade .3s ease-out both; }
.evts-aer--wait { visibility: hidden; animation: none; }
.evts-aer:empty { display: block; }   /* base.css hides div:empty: without this the kept place was 0 high (1.12) */
.evts-aer[hidden] { display: none; }
.evts-aer__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.evts-aer__stats--one { grid-template-columns: 1fr; }
.evts-aer__stat { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.evts-aer__ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; color: #fff;
  background-image: linear-gradient(135deg, #FF4747, #F25C00); background-color: #E53935; box-shadow: 0 2px 8px rgba(242, 92, 0, .28); }
.evts-aer__stat > .evts-ok { --s: 3.2rem; }
.evts-aer__txt { display: flex; flex-direction: column; min-width: 0; }
.evts-aer__num { display: inline-grid; justify-self: start; font-weight: 800; font-size: 2.8rem; line-height: 1.1; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; color: rgb(var(--color-foreground)); }
.evts-aer__num > span { grid-area: 1 / 1; }
.evts-aer__ghost { visibility: hidden; }   /* the final number: it sets the width, so counting up never moves the label */
.evts-aer__lab { font-size: 1.3rem; line-height: 1.3; color: rgba(var(--color-foreground), .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evts-aer__src { margin: .9rem 0 0; padding-top: .7rem; border-top: 1px solid rgba(242, 92, 0, .18); font-size: 1.2rem; line-height: 1.4;
  color: rgba(var(--color-foreground), .7); }
@media screen and (min-width: 750px) { .evts-aer { margin-top: 1.4rem; } .evts-aer__num { font-size: 3rem; } }

/* ---------- collection cards: tags on the image (the heart is on the right) ---------- */
.card__inner .evts-aetags { position: absolute; left: .8rem; top: .8rem; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; max-width: calc(100% - 6.4rem);
  pointer-events: none; animation: evts-aer-fade .35s ease-out both; }
.evts-aetag { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 6px; font-size: 1.15rem; font-weight: 700; line-height: 1.25; letter-spacing: .01em; }
/* small white text: the darker end of the buy colours (white on #D32F2F 5.6:1, on #C2410C 5.2:1, AA for small text) */
.evts-aetag--popular { color: #fff; background-image: linear-gradient(90deg, #D32F2F, #C2410C); background-color: #C62828; box-shadow: 0 2px 8px rgba(211, 47, 47, .3); }
.evts-aetag--rated { color: #0F5132; background: #E3F4E8; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.evts-aetag__short { display: none; }
@media screen and (max-width: 749px) {
  /* a phone's two-column card: the short text, a little smaller, so the image stays visible */
  .evts-aetag { font-size: 1.05rem; padding: .25rem .6rem; }
  .evts-aetag--popular .evts-aetag__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .evts-aetag--popular .evts-aetag__short { display: inline; }
}
@media screen and (min-width: 750px) { .evts-aetag { font-size: 1.2rem; } }

/* ---------- the home page: trending this month ---------- */
.evts-trending { padding: 4rem 0 2rem; }
.evts-trending[hidden] { display: none; }
.evts-trending__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.6rem; margin-bottom: 1.6rem; }
.evts-trending__h { margin: 0; }
.evts-trending__src { margin: 0; font-size: 1.3rem; color: rgba(var(--color-foreground), .7); }
.evts-trending__row { list-style: none; margin: 0; padding: 0 0 .8rem; display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 1.2rem; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.evts-trending__item { scroll-snap-align: start; }
.evts-trending__card { display: flex; flex-direction: column; height: 100%; padding: 1rem; border-radius: 1.2rem; border: 1px solid rgba(var(--color-foreground), .12);
  background: rgba(var(--color-foreground), .03); color: rgb(var(--color-foreground)); text-decoration: none; transition: transform .2s, border-color .2s; }
.evts-trending__card:hover { transform: translateY(-2px); border-color: rgba(var(--color-foreground), .35); }
.evts-trending__card:focus-visible { outline: 3px solid #F25C00; outline-offset: 2px; }
.evts-trending__img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .8rem; background: rgba(var(--color-foreground), .05); }
.evts-trending__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 1rem 0 .8rem; font-weight: 600; font-size: 1.45rem; line-height: 1.35; }
.evts-trending__pill { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 6px; color: #fff; font-size: 1.2rem; font-weight: 700;
  background-image: linear-gradient(90deg, #D32F2F, #C2410C); background-color: #C62828; }
@media screen and (min-width: 750px) {
  .evts-trending { padding: 6rem 0 3rem; }
  .evts-trending__row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .evts-trending__title { font-size: 1.55rem; }
}

@keyframes evts-aer-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .evts-aer, .card__inner .evts-aetags { animation: none; } .evts-trending__card { transition: none; } }
