﻿/* LTO: peeks from the left edge, slides out on hover */
.lto-dock {
  position: fixed;
  left: 0;
  top: 50%;
  bottom: auto;
  z-index: 80;
  display: flex;
  align-items: stretch;
  margin-bottom: 0;
  transform: translateY(-50%) translateX(calc(-100% + 28px));
  transition: transform .28s ease;
}
.lto-dock:hover,
.lto-dock:focus-within,
.lto-dock.is-open {
  transform: translateY(-50%) translateX(0);
}

.lto-dock-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 8px;
  width: 268px;
  max-height: 72vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: #0a0d11;
  box-shadow: 8px 0 28px rgba(0,0,0,.45);
}

.lto-dock-tab {
  writing-mode: vertical-rl;
  padding: 16px 7px 14px;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: #c62828;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  flex: 0 0 auto;
}
.lto-dock-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #fff;
  color: #c62828;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  writing-mode: horizontal-tb;
  animation: ltoPulse 2.2s ease-in-out infinite;
}
.lto-dock-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .45s ease, transform .45s ease;
}
.lto-dock-mark--bang { opacity: 1; transform: scale(1); }
.lto-dock-mark--tick { opacity: 0; transform: scale(.4); }
.lto-dock.is-seen .lto-dock-mark--bang { opacity: 0; transform: scale(.4); }
.lto-dock.is-seen .lto-dock-mark--tick { opacity: 1; transform: scale(1); }
@keyframes ltoPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  50% { opacity: .35; box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

.lto-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 8px 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: #14181d;
  color: #f2f4f7;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.lto-mini:hover {
  border-color: rgba(229,57,53,.45);
  background: #1b2026;
}
.lto-mini img,
.lto-mini-fallback {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.lto-mini-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #0a0d11;
  border: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
  font-weight: 800;
  color: #e53935;
}
.lto-mini-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  width: 100%;
}
.lto-mini-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.lto-mini-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.lto-mini-price {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.lto-mini-time {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8b919a;
}

#ltoPopupOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
#ltoPopupOverlay.is-shown { display: flex; }

#ltoPopupInner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 90vh;
  max-width: 95vw;
  gap: 8px;
}

#ltoPopupInner .lp-close {
  align-self: flex-end;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: #14181d;
  color: #f2f4f7;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
#ltoPopupInner .lp-close:hover {
  border-color: rgba(229,57,53,.55);
  color: #fff;
}

#ltoPopupInner .lp-head { text-align: center; padding: 0 0 8px; }
#ltoPopupInner .lp-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
#ltoPopupInner .lp-title::before,
#ltoPopupInner .lp-title::after {
  content: "";
  flex: 1 1 42px;
  max-width: 72px;
  height: 2px;
}
#ltoPopupInner .lp-title::before {
  background: linear-gradient(90deg, transparent 0%, rgba(229,57,53,.2) 35%, #e53935 100%);
}
#ltoPopupInner .lp-title::after {
  background: linear-gradient(90deg, #e53935 0%, rgba(229,57,53,.2) 65%, transparent 100%);
}

.lp-cards-row {
  display: flex;
  justify-content: center;
  padding: 0 10px 10px;
  max-width: 95vw;
}
.lp-card {
  display: none;
  width: 420px;
  overflow-y: auto;
  max-height: 72vh;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #14181d, #0a0d11);
  box-shadow:
    0 24px 60px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.04);
  text-align: center;
}
.lp-card.is-active { display: block; }
.lp-card .lp-card-inner { padding: 16px 18px 18px; }
.lp-card .lp-gold-trim {
  height: 1px;
  margin: 12px 8px;
  background: linear-gradient(90deg, transparent, rgba(229,57,53,.55), transparent);
}
.lp-card .lp-offer-img {
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
  object-fit: contain;
}
.lp-card .lp-offer-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f2f4f7;
}
.lp-card .mu-tooltip {
  margin: 10px auto 6px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: #060809;
  text-align: left;
  font-size: 10px;
  line-height: 1.5;
}
.lp-card .mu-tt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.lp-card .mu-tt-name {
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: #e53935;
}
.lp-card .mu-tt-line { color: #9aa1ab; }
.lp-card .mu-tt-line .val { color: #fff; }
.lp-card .mu-tt-opt { color: #7dce7d; }
.lp-card .mu-tt-exc { color: #7dce7d; }
.lp-card .mu-tt-desc { color: #c090e8; }
.lp-card .mu-tt-sep { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 4px 0; }
.lp-card .lp-offer-price {
  margin: 6px 0 2px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.lp-card .lp-offer-price .lp-old {
  margin-right: 6px;
  font-size: 13px;
  font-weight: 400;
  color: #7a8088;
  text-decoration: line-through;
}
.lp-card .lp-offer-time {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9aa1ab;
}
.lp-card .lp-offer-stock {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
}
.lp-card .lp-offer-stock .lp-stock-num { font-size: 16px; }
.lp-card .lp-offer-stock .lp-stock-of { color: #7a8088; }
.lp-card .lp-offer-stock.lp-stock-low .lp-stock-num { color: #e53935; }
.lp-card .lp-offer-stock.lp-stock-ok .lp-stock-num { color: #7dce7d; }
.lp-card .lp-card-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 22px;
  border: 1px solid rgba(229,57,53,.45);
  border-radius: 8px;
  background: rgba(229,57,53,.14);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.lp-card .lp-card-btn:hover {
  border-color: rgba(229,57,53,.7);
  background: rgba(229,57,53,.22);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 700px) {
  .lto-dock-panel { width: 220px; }
  .lp-card { width: 90vw; max-width: 420px; }
}
