.ad-banners { width: min(100%,600px); margin: 0 auto 12px; min-width: 0; }
.ad-banner-heading { display: flex; align-items: center; justify-content: space-between; min-height: 24px; gap: 12px; margin-bottom: 4px; color: #6d8197; font-size: 12px; }
.ad-banner-controls { display: flex; align-items: center; gap: 5px; }
.ad-banner-controls > span { margin-right: 8px; font-variant-numeric: tabular-nums; }
.ad-banner-controls .icon-button { width: 44px; height: 44px; min-height: 44px; border-radius: 50%; background: #fff; }
.ad-banner-controls .icon-button:disabled { opacity: .35; cursor: default; }
.ad-banner-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; }
.ad-banner-track::-webkit-scrollbar { display: none; }
.ad-banner-track:focus-visible,.ad-banner-media:focus-visible { outline: 3px solid var(--brand); outline-offset: -4px; }
.ad-banner-slide { position: relative; min-width: 0; aspect-ratio: 361 / 140; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; border-radius: 18px; background: #e9eff7; }
.ad-banner-media { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; overflow: hidden; background: #e9eff7; cursor: pointer; }
.ad-banner-media img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 180ms ease; }
.ad-banner-media.is-loaded img { opacity: 1; }
.ad-banner-media.is-loaded .ad-banner-skeleton { display: none; }
.ad-banner-skeleton { position: absolute; inset: 0; background: linear-gradient(100deg,#e8eef7 25%,#f8faff 45%,#e8eef7 65%); background-size: 250% 100%; animation: ad-banner-shimmer 1.8s ease-in-out infinite; }
.ad-banner-loading { position: relative; display: grid; place-items: center; aspect-ratio: 361 / 140; overflow: hidden; border-radius: 18px; color: #6d8197; font-size: 12px; }
.ad-banner-loading > span:last-child { position: relative; }
.ad-banner-image-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; align-content: center; gap: 8px; padding: 12px; text-align: center; color: #627993; }
.ad-banner-image-error p { margin: 0; font-size: 12px; }
.ad-banner-error { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; color: #6d8197; background: #fff; font-size: 12px; }
.ad-banner-error .button { margin-left: auto; }
.ad-banner-image-error .button,.ad-banner-error .button { min-height: 44px; }
.ad-dialog { width: min(900px,calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; margin: auto; border: 1px solid #ffffff30; border-radius: 20px; background: #102a44; color: #fff; box-shadow: 0 20px 60px #0005; }
.ad-dialog::backdrop { background: #071322d9; }
.ad-dialog > header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; }
.ad-dialog .icon-button { color: #fff; background: #ffffff12; border-color: #ffffff30; width: 44px; height: 44px; }
.ad-dialog-stage { display: grid; place-items: center; padding: 0 12px 12px; min-height: 120px; }
.ad-dialog-stage img { display: block; max-width: 100%; max-height: calc(100dvh - 210px); object-fit: contain; border-radius: 8px; }
.ad-dialog-stage p { padding: 24px; color: #d3deed; }
.ad-dialog > footer { display: flex; justify-content: center; padding: 0 16px 16px; }
.ad-dialog > footer .button { min-height: 48px; }
.ad-banners [hidden],.ad-dialog [hidden],.ad-banners[hidden] { display: none !important; }
@keyframes ad-banner-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (max-width:535px) {
  .ad-banners { width: min(100%,300px); margin-top: 0; }
  .ad-banner-heading { margin-bottom: 4px; }
  .ad-banner-slide,.ad-banner-track,.ad-banner-loading { border-radius: 14px; }
  .ad-banner-error { padding: 10px 12px; gap: 7px; }
}
@media (prefers-reduced-motion:reduce) { .ad-banner-skeleton { animation: none; } .ad-banner-media img { transition: none; } }

.catalog-page-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
