/* =========================================================================
   ASHES · UI — floating player, homepage side rail, grouped shop, big product
   view, login page. Loaded last.
   ========================================================================= */

/* ------------------------------------------------------------------ floating player */
.ap-dock {
  position: fixed; left: 20px; bottom: 20px; z-index: 900;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto auto auto; align-items: center; gap: 14px;
  width: min(560px, calc(100vw - 40px)); padding: 10px 12px 14px 10px;
  background: rgba(18, 18, 18, .82); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px;
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .4);
  color: #f5f5f4; font-family: 'Manrope', system-ui, sans-serif;
  transform: translateY(140%) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .45s cubic-bezier(.22, 1, .36, 1) !important;
  overflow: hidden;
}
.ap-dock.is-on { transform: none; opacity: 1; pointer-events: auto; }
.ap-dock.is-on.is-tucked { transform: translateY(calc(100% + 30px)); opacity: 0; pointer-events: none; }
.ap-art { position: relative; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #1f1f1f; }
.ap-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 8s linear !important; }
.ap-dock.is-playing .ap-art img { transform: scale(1.12); }
.ap-eq { position: absolute; inset: auto 6px 6px auto; display: flex; gap: 2px; align-items: flex-end; height: 14px; opacity: 0; transition: opacity .3s !important; }
.ap-eq i { width: 3px; background: #fff; border-radius: 2px; height: 30%; }
.ap-dock.is-playing .ap-eq { opacity: 1; }
.ap-dock.is-playing .ap-eq i { animation: ap-eq 1s ease-in-out infinite !important; }
.ap-dock.is-playing .ap-eq i:nth-child(2) { animation-delay: -.3s !important; }
.ap-dock.is-playing .ap-eq i:nth-child(3) { animation-delay: -.6s !important; }
.ap-dock.is-playing .ap-eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes ap-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.ap-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-label { font: 700 10px/1 'Manrope', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #f97316; }
.ap-title { font: 800 19px/1.05 'Big Shoulders Display', sans-serif; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-sub { font-size: 12px; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-ctrls { display: flex; align-items: center; gap: 4px; }
.ap-btn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: transparent; color: #cfcfcf;
  transition: background-color .35s cubic-bezier(.22, 1, .36, 1), color .35s, transform .2s cubic-bezier(.34, 1.36, .64, 1) !important;
}
.ap-btn svg { width: 18px; height: 18px; }
.ap-btn:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.ap-btn:active { transform: scale(.88); }
.ap-main { width: 44px; height: 44px; background: #f5f5f4; color: #0a0a0a; }
.ap-main svg { width: 20px; height: 20px; }
.ap-main:hover { background: #f97316; color: #120700; transform: scale(1.06); }
.ap-time { display: flex; flex-direction: column; align-items: flex-end; font: 600 11px/1.3 'Manrope', sans-serif; color: #8a8a8a; font-variant-numeric: tabular-nums; }
.ap-time .ap-cur { color: #e5e5e5; }
.ap-open svg, .ap-close svg { width: 16px; height: 16px; }
.ap-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .07); cursor: pointer; }
.ap-bar:hover { height: 6px; }
.ap-fill { height: 100%; background: linear-gradient(90deg, #fff, #f97316); transform-origin: left; transform: scaleX(0); transition: transform .25s linear !important; }
@media (max-width: 640px) {
  .ap-dock { left: 10px; right: 10px; bottom: 10px; width: auto; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 10px; }
  .ap-art { width: 48px; height: 48px; }
  .ap-time, .ap-open { display: none; }
  .ap-prev { display: none; }
}

/* ------------------------------------------------------------------ homepage side rail */
.ap-rail {
  position: fixed; right: 26px; top: 50%; z-index: 800;
  display: flex; flex-direction: column; gap: 18px; padding: 6px 0;
  transform: translate(20px, -50%); opacity: 0; pointer-events: none;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .5s !important;
}
.ap-rail.is-show { transform: translate(0, -50%); opacity: 1; pointer-events: auto; }
.ap-rail-track { position: absolute; right: 5px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.ap-rail-fill { position: absolute; inset: 0; background: linear-gradient(#fff, #f97316); transform-origin: top; transform: scaleY(0); border-radius: 2px; transition: transform .2s linear !important; }
.ap-rail-dot { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 12px; text-decoration: none; }
.ap-rail-dot i {
  position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%;
  background: #0a0a0a; border: 2px solid rgba(255, 255, 255, .28);
  transition: transform .45s cubic-bezier(.34, 1.36, .64, 1), background-color .35s, border-color .35s, box-shadow .35s !important;
}
.ap-rail-label {
  font: 700 12px/1 'Manrope', sans-serif; color: #e5e5e5; white-space: nowrap;
  padding: 7px 10px; border-radius: 999px; background: rgba(18, 18, 18, .85); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .35s cubic-bezier(.22, 1, .36, 1), transform .45s cubic-bezier(.22, 1, .36, 1) !important;
}
.ap-rail-label em { font-style: normal; color: #f97316; margin-right: 6px; }
.ap-rail-dot:hover .ap-rail-label, .ap-rail-dot:focus-visible .ap-rail-label { opacity: 1; transform: none; }
.ap-rail-dot:hover i { border-color: #fff; transform: scale(1.2); }
.ap-rail-dot.is-on i { background: #f97316; border-color: #f97316; transform: scale(1.25); box-shadow: 0 0 0 5px rgba(249, 115, 22, .18); }
@media (max-width: 1100px) { .ap-rail { display: none; } }

/* ------------------------------------------------------------------ header: pages only */
html body .site-navigation .navigation-list > li { display: list-item; }

/* ------------------------------------------------------------------ grouped shop */
.ap-shop { display: flex; flex-direction: column; gap: 72px; }
.ap-shop-head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 6px 28px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ap-shop-kicker { grid-column: 1 / -1; font: 700 11px/1 'Manrope', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #f97316; }
.ap-shop-title { margin: 0; font: 800 clamp(34px, 4vw, 52px)/0.95 'Big Shoulders Display', sans-serif; text-transform: uppercase; color: #f5f5f4; }
.ap-shop-lede { margin: 0; max-width: 460px; justify-self: end; text-align: right; color: #a3a3a3; font-size: 14.5px; line-height: 1.6; }
.ap-shop-grid { display: grid; gap: 14px; align-items: stretch; }
.ap-grid-tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ap-grid-coins { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ap-grid-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .ap-grid-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-grid-coins { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ap-grid-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-shop-head { grid-template-columns: 1fr; }
  .ap-shop-lede { justify-self: start; text-align: left; }
}
@media (max-width: 640px) {
  .ap-grid-tiers, .ap-grid-items { grid-template-columns: 1fr; }
  .ap-grid-coins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* item showcase (single-item categories like Melee): a proper hero card */
html body .a-showcase .store-product:not(.a-tier):not(.a-coin) .product-title,
html body .a-showcase .store-product:not(.a-tier):not(.a-coin) .product-title a { font-size: clamp(34px, 4vw, 56px) !important; line-height: .95 !important; }
html body .a-showcase .store-product:not(.a-tier):not(.a-coin) .price strong { font-size: 56px !important; }

/* "log in to buy" hint under every buy button for logged-out visitors */
.ap-login-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px;
  font: 600 12px/1.3 'Manrope', sans-serif; color: #8a8a8a; text-decoration: none;
  transition: color .35s cubic-bezier(.22, 1, .36, 1) !important;
}
.ap-login-hint:hover { color: #fff; }
.ap-cfx { padding: 3px 7px; border-radius: 6px; background: #f40552; color: #fff; font: 800 10px/1 'Manrope', sans-serif; letter-spacing: .02em; }

/* ------------------------------------------------------------------ big product view (package popup) */
html body .store-product-popup .popup-content {
  width: min(1180px, 94vw) !important; max-width: none !important;
  display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0 44px; align-items: start;
  padding: 0 !important; overflow: hidden;
}
html body .store-product-popup .popup-content > .image {
  grid-column: 1; grid-row: 1 / span 6; align-self: stretch;
  width: 100% !important; height: 100% !important; min-height: 560px; max-height: none !important;
  object-fit: contain; padding: 40px; border-radius: 0 !important; margin: 0 !important;
  background: radial-gradient(70% 60% at 50% 45%, rgba(249, 115, 22, .14), transparent 70%), #0d0d0d;
}
html body .store-product-popup .popup-content > .product-title { grid-column: 2; margin: 48px 40px 0 0 !important; }
html body .store-product-popup .popup-content > .actions { grid-column: 2; margin: 18px 40px 0 0 !important; padding: 0 0 26px !important; border-bottom: 1px solid rgba(255, 255, 255, .07); }
html body .store-product-popup .popup-content > .descr { grid-column: 2; margin: 0 40px 44px 0 !important; padding-top: 6px; max-height: 46vh; overflow: auto; }
html body .store-product-popup .popup-content > .actions .btn-primary,
html body .store-product-popup .popup-content > .actions .btn-secondary { min-height: 54px; font-size: 15px !important; }
html body .store-product-popup .popup-close { position: absolute !important; top: 18px !important; right: 18px !important; z-index: 5; }
@media (max-width: 900px) {
  html body .store-product-popup .popup-content { grid-template-columns: 1fr; }
  html body .store-product-popup .popup-content > .image { grid-row: auto; min-height: 280px; height: auto !important; }
  html body .store-product-popup .popup-content > .product-title,
  html body .store-product-popup .popup-content > .actions,
  html body .store-product-popup .popup-content > .descr { grid-column: 1; margin-left: 24px !important; margin-right: 24px !important; }
  html body .store-product-popup .popup-content > .product-title { margin-top: 26px !important; }
  html body .store-product-popup .popup-content > .descr { max-height: none; }
}

/* ------------------------------------------------------------------ login page */
.ap-login {
  max-width: 520px; margin: 0 auto; text-align: center; padding: 48px 40px !important;
  background: radial-gradient(80% 60% at 50% 0%, rgba(244, 5, 82, .10), transparent 70%), #121212 !important;
  border: 1px solid rgba(255, 255, 255, .1) !important; border-radius: 22px !important;
}
.ap-login-badge { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; background: #f40552; color: #fff; font: 900 18px/1 'Manrope', sans-serif; letter-spacing: -.02em; box-shadow: 0 16px 40px -14px rgba(244, 5, 82, .8); }
.ap-login h1 { font: 800 clamp(40px, 5vw, 60px)/0.95 'Big Shoulders Display', sans-serif !important; text-transform: uppercase; margin: 0 0 12px !important; }
.ap-login p { color: #a3a3a3; font-size: 15px; line-height: 1.65; margin: 0 auto 26px; max-width: 400px; }
html body .ap-login-go { width: 100%; min-height: 56px; font-size: 15px !important; background: #f40552 !important; border-color: #f40552 !important; color: #fff !important; }
html body .ap-login-go:hover { background: #ff2a6d !important; border-color: #ff2a6d !important; color: #fff !important; box-shadow: 0 14px 34px -12px rgba(244, 5, 82, .8) !important; }
.ap-login-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; text-align: left; }
.ap-login-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #a3a3a3; }
.ap-login-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: rgba(34, 197, 94, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ap-redirect { margin-top: 18px; font-size: 12.5px; color: #737373; }
.ap-redirect b { color: #e5e5e5; }

/* trailer card: the looping phoenix plays muted behind the play button */
.ap-trailer-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; pointer-events: none; z-index: 0; }
html body .a-video-screen .a-video-overlay { position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,.1), rgba(0,0,0,.65)) !important; }
html body .a-video-screen.is-playing .ap-trailer-bg, html body .a-video-screen.playing .ap-trailer-bg { display: none; }

/* ------------------------------------------------------------------ round 5 */
/* coins and tier badges float free: no square crop, no clipped zoom */
html body .store-product.a-coin .image-link,
html body .store-product.a-tier .image-link,
html body .store-product.a-coin .image,
html body .store-product.a-tier .image {
  overflow: visible !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; clip-path: none !important;
}
html body .store-product.a-coin .image-link img,
html body .store-product.a-tier .image-link img { transform-origin: 50% 60%; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .55)) !important; }
html body .store-product.a-coin:hover .image-link img { transform: scale(1.1) rotate(-6deg) !important; filter: drop-shadow(0 18px 26px rgba(249, 115, 22, .25)) !important; }
html body .store-product.a-tier:hover .image-link img { transform: scale(1.06) translateY(-4px) !important; }

/* radio stations get their cover as a thumbnail */
html body .a-station-icon.has-art {
  width: 42px !important; height: 42px !important; border-radius: 9px !important;
  background-size: cover !important; background-position: center !important; color: transparent !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
html body .a-station-icon.has-art::before, html body .a-station-icon.has-art::after { display: none !important; }
html body .a-station.is-active .a-station-icon.has-art { box-shadow: 0 0 0 2px #f97316 !important; }

/* one shop: the old tabs and login nudges go */
html body.ap-shop-page .f-shop-tabs { display: none !important; }
.ap-login-hint { display: none !important; }
html body .ap-shop-page .a-section-head { margin-bottom: 40px !important; }

/* asset cards in the merged shop */
html body .ap-grid-items .store-product { display: flex !important; flex-direction: column; padding: 0 !important; overflow: hidden; }
html body .ap-grid-items .store-product .image-link { border-radius: 0 !important; aspect-ratio: 4 / 3; background: #0d0d0d; }
html body .ap-grid-items .store-product .image-link img { width: 100%; height: 100%; object-fit: cover; }
html body .ap-grid-items .store-product .product-title { margin: 20px 22px 0 !important; font-size: 30px !important; }
html body .ap-grid-items .store-product .product-actions { margin: auto 22px 22px !important; padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
html body .ap-grid-items .store-product .price strong { font-size: 36px !important; }
html body .a-station-icon.has-art { background: var(--art) center / cover no-repeat !important; }

/* =========================================================================
   ROUND 6 — asset cards, basket drawer, neutral login
   ========================================================================= */

/* ---------------------------------------------------------- asset cards */
html body .ap-grid-items .store-product {
  display: flex !important; flex-direction: column; padding: 10px !important; overflow: hidden;
  border-radius: 20px !important; background: #111 !important; border: 1px solid rgba(255,255,255,.07) !important;
  transition: transform .6s var(--m-ease, cubic-bezier(.22,1,.36,1)), border-color .6s var(--m-ease, cubic-bezier(.22,1,.36,1)), box-shadow .6s var(--m-ease, cubic-bezier(.22,1,.36,1)) !important;
}
html body .ap-grid-items .store-product::before, html body .ap-grid-items .store-product::after { display: none !important; }
html body .ap-grid-items .store-product:hover {
  transform: translateY(-6px); border-color: rgba(255,255,255,.14) !important;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03) !important;
}
html body .ap-grid-items .store-product .image-link {
  position: relative; display: block !important; margin: 0 !important; padding: 0 !important;
  aspect-ratio: 1 / 1; width: 100% !important; height: auto !important;
  border-radius: 14px !important; overflow: hidden; background: #0b0b0b; isolation: isolate;
}
html body .ap-grid-items .store-product .image-link img {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important;
  object-fit: cover; object-position: center; border-radius: 0 !important; margin: 0 !important;
  transform: scale(1.001); transition: transform 1.1s var(--m-ease, cubic-bezier(.22,1,.36,1)), filter .8s ease !important;
  filter: saturate(.92);
}
html body .ap-grid-items .store-product:hover .image-link img { transform: scale(1.06); filter: saturate(1.05); }
html body .ap-grid-items .store-product .image-link::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); border-radius: inherit;
}
html body .ap-grid-items .store-product .image-link::before {
  content: attr(data-ap-kind); position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 6px 10px; border-radius: 999px; background: rgba(10,10,10,.7); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1); color: #e5e5e5; font: 700 11px/1 'Manrope', sans-serif; letter-spacing: .08em; text-transform: uppercase;
}
html body .ap-grid-items .store-product .image-link:not([data-ap-kind])::before { display: none; }
html body .ap-grid-items .store-product .product-title { margin: 18px 10px 0 !important; font-size: 28px !important; line-height: 1 !important; }
html body .ap-grid-items .store-product .product-title a { color: #f5f5f4 !important; }
html body .ap-grid-items .store-product .product-actions {
  margin: auto 10px 8px !important; padding-top: 12px; display: grid !important; grid-template-columns: auto 1fr; align-items: center; gap: 14px;
}
html body .ap-grid-items .store-product .price { margin: 0 !important; }
html body .ap-grid-items .store-product .price strong { font-size: 30px !important; color: #f5f5f4 !important; }
html body .ap-grid-items .store-product .product-actions .add,
html body .ap-grid-items .store-product .product-actions .quantity-field { grid-column: 2; width: 100% !important; margin: 0 !important; }

/* ---------------------------------------------------------- basket drawer */
html body div.popup.basket-popup {
  background: rgba(0,0,0,.74) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
html body div.popup.basket-popup .popup-scroll-cont { padding: 0 !important; }
html body div.popup.basket-popup .popup-content.basket {
  position: fixed !important; top: 10px !important; right: 10px !important; bottom: 10px !important; left: auto !important;
  width: min(440px, calc(100vw - 20px)) !important; max-width: none !important; height: auto !important; min-height: 0 !important; margin: 0 !important;
  padding: 0 !important; display: flex !important; flex-direction: column !important;
  background: #0d0d0d !important; border: 1px solid rgba(255,255,255,.08) !important; border-radius: 22px !important;
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.9) !important; overflow: hidden !important;
  animation: apDrawerIn .55s var(--m-ease, cubic-bezier(.22,1,.36,1)) both;
}
@keyframes apDrawerIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
html body div.popup.basket-popup .popup-content.basket::before,
html body div.popup.basket-popup .popup-content.basket::after { display: none !important; content: none !important; }

/* head */
html body div.popup.basket-popup .basket-header {
  display: block !important; position: relative; width: auto !important; height: auto !important; margin: 0 !important;
  padding: 26px 26px 20px !important; background: none !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 0 !important; clip-path: none !important; flex: none;
}
html body div.popup.basket-popup .basket-header::before {
  content: "Your basket"; display: block; font: 800 32px/1 'Big Shoulders Display', sans-serif; text-transform: uppercase; color: #f5f5f4; letter-spacing: .01em;
}
html body div.popup.basket-popup .basket-header::after { display: none !important; }
html body div.popup.basket-popup .basket-title {
  display: flex !important; align-items: center; gap: 8px; margin: 10px 0 0 !important; padding: 0 !important;
  font: 500 13px/1.3 'Manrope', sans-serif !important; color: #8a8a8a !important; text-transform: none !important; letter-spacing: 0 !important;
  width: auto !important; height: auto !important; background: none !important;
}
html body div.popup.basket-popup .basket-title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
html body div.popup.basket-popup .ap-bk-count {
  margin-left: auto; padding: 4px 9px; border-radius: 999px; background: #1a1a1a; border: 1px solid rgba(255,255,255,.08);
  color: #d4d4d4; font: 700 11.5px/1 'Manrope', sans-serif;
}
html body div.popup.basket-popup .popup-close {
  position: absolute !important; top: 22px !important; right: 22px !important; z-index: 5; width: 38px !important; height: 38px !important;
  border-radius: 50% !important; background: #171717 !important; border: 1px solid rgba(255,255,255,.08) !important; color: #d4d4d4 !important;
  transition: background .4s var(--m-ease, ease), transform .5s var(--m-ease, ease), color .3s ease !important;
}
html body div.popup.basket-popup .popup-close:hover { background: #222 !important; color: #fff !important; transform: rotate(90deg); }
html body div.popup.basket-popup .basket-second-header { display: none !important; }

/* items */
html body div.popup.basket-popup .basket-content {
  flex: 1 1 auto; min-height: 0; overflow-y: auto !important; padding: 14px 16px !important; margin: 0 !important; background: none !important;
  scrollbar-width: thin; scrollbar-color: #2a2a2a transparent;
}
html body div.popup.basket-popup .basket-items { display: grid !important; gap: 8px; margin: 0 !important; padding: 0 !important; background: none !important; }
html body div.popup.basket-popup .basket-item {
  display: grid !important; grid-template-columns: 60px minmax(0,1fr) auto; grid-template-areas: "thumb info qty" "thumb info rm";
  align-items: center; column-gap: 14px; row-gap: 6px; margin: 0 !important; padding: 12px !important;
  background: #131313 !important; border: 1px solid rgba(255,255,255,.06) !important; border-radius: 16px !important;
  clip-path: none !important; box-shadow: none !important;
  transition: border-color .4s var(--m-ease, ease), background .4s var(--m-ease, ease) !important;
}
html body div.popup.basket-popup .basket-item:hover { border-color: rgba(255,255,255,.12) !important; background: #161616 !important; }
html body div.popup.basket-popup .basket-item::before {
  content: ""; grid-area: thumb; width: 60px; height: 60px; border-radius: 12px; display: block;
  background: #1b1b1b var(--ap-thumb, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7Z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E")) center / var(--ap-thumb-size, 24px) no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
html body div.popup.basket-popup .basket-item.has-thumb::before { --ap-thumb-size: cover; }
html body div.popup.basket-popup .basket-item::after { display: none !important; }
html body div.popup.basket-popup .basket-item .info { grid-area: info; min-width: 0; padding: 0 !important; margin: 0 !important; }
html body div.popup.basket-popup .basket-item .title { margin: 0 !important; font: 700 15px/1.25 'Manrope', sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; }
html body div.popup.basket-popup .basket-item .title a { color: #f5f5f4 !important; font: inherit !important; text-decoration: none; }
html body div.popup.basket-popup .basket-item .options { margin: 2px 0 0 !important; font-size: 12px !important; color: #737373 !important; }
html body div.popup.basket-popup .basket-item .options:empty { display: none !important; }
html body div.popup.basket-popup .basket-item .price { margin: 6px 0 0 !important; padding: 0 !important; background: none !important; text-align: left !important; }
html body div.popup.basket-popup .basket-item .price strong { font: 600 13.5px/1 'Manrope', sans-serif !important; color: #a3a3a3 !important; letter-spacing: 0 !important; }
html body div.popup.basket-popup .basket-item .quantity-field {
  grid-area: qty; justify-self: end; display: inline-flex !important; align-items: center; gap: 0; height: 34px !important; width: auto !important;
  margin: 0 !important; padding: 3px !important; background: #0b0b0b !important; border: 1px solid rgba(255,255,255,.08) !important; border-radius: 999px !important;
}
html body div.popup.basket-popup .basket-item .quantity-field .adjust {
  width: 28px !important; height: 28px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
  display: grid !important; place-items: center; border-radius: 50% !important; border: 0 !important; background: transparent !important;
  color: #d4d4d4 !important; font: 600 16px/1 'Manrope', sans-serif !important; box-shadow: none !important; transition: background .3s ease, color .3s ease !important;
}
html body div.popup.basket-popup .basket-item .quantity-field .adjust:hover { background: #1f1f1f !important; color: #fff !important; }
html body div.popup.basket-popup .basket-item .quantity-field .quantity {
  width: 28px !important; height: 28px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important;
  text-align: center; color: #f5f5f4 !important; font: 700 13px/1 'Manrope', sans-serif !important; -moz-appearance: textfield; box-shadow: none !important;
}
html body div.popup.basket-popup .basket-item .quantity-field .quantity::-webkit-inner-spin-button,
html body div.popup.basket-popup .basket-item .quantity-field .quantity::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
html body div.popup.basket-popup .basket-item .remove {
  grid-area: rm; justify-self: end; display: inline-flex !important; align-items: center; gap: 5px; width: auto !important; height: auto !important; min-height: 0 !important;
  margin: 0 !important; padding: 2px 4px !important; background: none !important; border: 0 !important; box-shadow: none !important; clip-path: none !important;
  color: #737373 !important; font: 600 12px/1 'Manrope', sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; transition: color .3s ease !important;
}
html body div.popup.basket-popup .basket-item .remove::before {
  content: ""; width: 13px; height: 13px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body div.popup.basket-popup .basket-item .remove::after { display: none !important; }
html body div.popup.basket-popup .basket-item .remove:hover { color: #f5f5f4 !important; }

/* empty */
html body div.popup.basket-popup .basket-empty {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
  min-height: 320px; height: 100%; padding: 30px !important; margin: 0 !important; background: none !important; border: 0 !important;
  color: #f5f5f4 !important; font: 700 18px/1.3 'Manrope', sans-serif !important; text-transform: none !important;
}
html body div.popup.basket-popup .basket-empty::before {
  content: ""; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 18px; background: #161616 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7Z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center / 26px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
html body div.popup.basket-popup .ap-bk-empty-sub { font: 500 14px/1.6 'Manrope', sans-serif; color: #8a8a8a; max-width: 260px; }
html body div.popup.basket-popup .ap-bk-empty-cta { margin-top: 18px !important; }

/* footer */
html body div.popup.basket-popup .basket-checkout {
  flex: none; display: grid !important; gap: 12px; margin: 0 !important; padding: 18px 20px 20px !important;
  background: #0b0b0b !important; border: 0 !important; border-top: 1px solid rgba(255,255,255,.07) !important; border-radius: 0 !important; clip-path: none !important;
}
html body div.popup.basket-popup .basket-checkout::before, html body div.popup.basket-popup .basket-checkout::after { display: none !important; }
html body div.popup.basket-popup .basket-checkout h3 {
  display: flex !important; align-items: baseline; justify-content: space-between; width: 100%; margin: 0 !important; padding: 0 !important;
  font: 600 14px/1 'Manrope', sans-serif !important; color: #a3a3a3 !important; text-transform: none !important; letter-spacing: 0 !important;
}
html body div.popup.basket-popup .basket-checkout h3 .total, html body div.popup.basket-popup .basket-checkout h3 strong {
  font: 800 30px/1 'Big Shoulders Display', sans-serif !important; color: #f5f5f4 !important; letter-spacing: .01em;
}
html body div.popup.basket-popup .ap-bk-note { margin: -4px 0 2px; font: 500 12px/1.4 'Manrope', sans-serif; color: #6b6b6b; }
html body div.popup.basket-popup .basket-checkout .checkout {
  width: 100% !important; height: 52px !important; min-height: 0 !important; margin: 0 !important; justify-content: center; gap: 10px;
  border-radius: 14px !important; background: #f5f5f4 !important; border: 0 !important; color: #0a0a0a !important; clip-path: none !important;
  font: 800 15px/1 'Manrope', sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important;
  transition: background .4s var(--m-ease, ease), transform .4s var(--m-ease, ease), box-shadow .4s var(--m-ease, ease) !important;
}
html body div.popup.basket-popup .basket-checkout .checkout::before { display: none !important; }
html body div.popup.basket-popup .basket-checkout .checkout::after {
  content: "" !important; display: block !important; position: static !important; inset: auto !important; width: 16px !important; height: 16px !important; opacity: 1 !important;
  background: currentColor !important; transform: none !important; transition: transform .4s var(--m-ease, ease) !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body div.popup.basket-popup .basket-checkout .checkout:hover { background: #fff !important; transform: translateY(-1px); box-shadow: 0 16px 36px -16px rgba(255,255,255,.35) !important; }
html body div.popup.basket-popup .basket-checkout .checkout:hover::after { transform: translateX(4px) !important; }
html body div.popup.basket-popup .ap-bk-continue {
  display: block; width: 100%; padding: 6px 0 0; background: none; border: 0; cursor: pointer; text-align: center;
  font: 600 13px/1 'Manrope', sans-serif; color: #8a8a8a; transition: color .3s ease;
}
html body div.popup.basket-popup .ap-bk-continue:hover { color: #f5f5f4; }
@media (max-width: 520px) {
  html body div.popup.basket-popup .popup-content.basket { top: auto !important; left: 8px !important; right: 8px !important; bottom: 8px !important; width: auto !important; max-height: 88vh; }
}

/* ---------------------------------------------------------- login: neutral, no pink */
html body .ap-login { text-align: center; }
html body .ap-login-badge {
  width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 18px; font-size: 0 !important; color: transparent !important;
  background: #171717 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.5' r='3.5'/%3E%3Cpath d='M5 20a7 7 0 0 1 14 0'/%3E%3C/svg%3E") center / 26px no-repeat !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09) !important;
}
html body .ap-login-go {
  background: #f5f5f4 !important; border-color: #f5f5f4 !important; color: #0a0a0a !important; border-radius: 14px !important;
  font-weight: 800 !important; box-shadow: none !important;
}
html body .ap-login-go:hover { background: #fff !important; border-color: #fff !important; color: #0a0a0a !important; box-shadow: 0 16px 36px -16px rgba(255,255,255,.35) !important; transform: translateY(-1px); }
html body .ap-login-list li::before {
  background: #171717 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4d4d4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") center / 10px no-repeat !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}

/* popups: calm solid backdrop (no blur), login card without the pink glow */
html body .popup { background: rgba(0,0,0,.76) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html body .ap-login { background: #111 !important; border: 1px solid rgba(255,255,255,.08) !important; }
html body .popup .ap-login { background: none !important; border: 0 !important; box-shadow: none !important; padding: 40px 34px 34px !important; max-width: 460px; }
html body .popup .popup-content:has(.ap-login) { max-width: 480px !important; background: #0f0f0f !important; }
html body .ap-login h1 { letter-spacing: .01em; }
html body .ap-login p { color: #9a9a9a !important; }
html body div.popup.basket-popup .basket-empty::after { content: none !important; display: none !important; }
