/* D21SA0 / TC-UAS-LIVE-PREVIEW-1 — mock shop under the homepage bar.
   Additive only: empty bar leaves the locked hero untouched. */

.lp-panel {
  --lp-bg: #ffffff;
  --lp-surface: #f3f4f6;
  --lp-ink: #111418;
  --lp-muted: #4b5260;
  --lp-accent: #c8102e;
  --lp-accent-ink: #ffffff;
  --lp-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --lp-body: "Barlow", system-ui, sans-serif;
  margin-top: 14px;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  background: var(--lp-bg);
  color: var(--lp-ink);
  font-family: var(--lp-body);
  animation: lp-in 180ms ease-out;
}

.lp-panel[hidden] {
  display: none !important;
}

@keyframes lp-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.lp-chrome {
  background: var(--lp-bg);
}

.lp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--lp-ink) 10%, transparent);
  background: var(--lp-surface);
}

.lp-logo {
  font-family: var(--lp-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45%;
  color: var(--lp-ink);
}

.lp-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.78rem;
  color: var(--lp-muted);
}

.lp-nav span {
  white-space: nowrap;
}

.lp-hero {
  padding: 22px 16px 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--lp-accent) 18%, var(--lp-bg)), var(--lp-bg) 55%);
}

.lp-eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-muted);
}

.lp-headline {
  margin: 0;
  font-family: var(--lp-display);
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--lp-ink);
  word-break: break-word;
}

.lp-sub {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--lp-muted);
  max-width: 36ch;
}

.lp-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--lp-accent);
  color: var(--lp-accent-ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.lp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 16px 16px;
  background: var(--lp-bg);
}

.lp-card {
  background: var(--lp-surface);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}

.lp-photo {
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--lp-muted) 18%, var(--lp-surface));
  overflow: hidden;
}

.lp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp-pname {
  margin: 8px 8px 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--lp-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lp-price {
  margin: 4px 8px 10px;
  font-size: 0.75rem;
  color: var(--lp-muted);
}

/* Keep the CTA button in view; panel scrolls under the bar on narrow screens. */
@media (max-width: 860px) {
  .lp-panel {
    max-height: min(52vh, 420px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .lp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-nav {
    display: none;
  }

  .lp-logo {
    max-width: 100%;
  }
}

@media (max-width: 390px) {
  .lp-panel {
    max-height: min(48vh, 360px);
    border-radius: 12px;
  }
}
