/* =========================================================
   Homepage-only styles
   (global.css now owns: :root base vars, body, header/nav,
   footer/newfoot positioning, and shared .box styles)
========================================================= */

/* ✅ Homepage-specific override for vendor scaling only */
:root{
  /* keep your homepage vendor scale behavior */
  --vendor-scale: calc(var(--ui-scale) * 1.30);

  /* keep your homepage row height scaling behavior */
  --vendor-row-h: clamp(
    calc(18px * var(--ui-scale)),
    calc(1.7vw * var(--ui-scale)),
    calc(22px * var(--ui-scale))
  );
}

/* ========== Layout (homepage) ========== */
.page{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panels{
  width: min(calc(1800px * var(--ui-scale)), 96vw);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--gap);
  padding: 8px 0 10px;
}

@media (max-width: 1100px){
  .panels{
    flex-direction: column;
    align-items: center;
    width: 96vw;
    gap: calc(26px * var(--ui-scale));
  }
}

.panel{
  display: flex;
  justify-content: center;
}

.panel-inner{
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.12));
  aspect-ratio: 830 / 1329;
  width: min(var(--panel-w), 96vw);
  height: auto;
}

/* Desktop fit-to-window */
@media (min-width: 1101px){
  .panel-inner{
    height: calc(100vh - 140px - var(--footer-h));
    width: auto;
    max-width: min(var(--panel-w), 48vw);
  }
}

/* ========== Thank you panel ========== */
.thanks-wrap{ position: relative; width: 100%; }
.thanks-bg{ width: 100%; height: auto; display: block; }

/* ================================
   VENDOR OVERLAY (HOMEPAGE)
================================== */
.vendor-links{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vendor-list{
  position: absolute;
  left: var(--vendor-left);
  top: var(--vendor-top);
  width: var(--vendor-width);

  display: grid;
  grid-auto-rows: var(--vendor-row-h);
  row-gap: 0;

  transform-origin: top left;
  transform: translateY(var(--vendor-y-shift)) scale(var(--vendor-scale));

  pointer-events: auto;
}

.vendor-row{
  display: flex;
  align-items: flex-end;
  width: 100%;
  text-decoration: none;
  border-radius: 10px;
  background: transparent;
}

.vendor-row img{
  height: 90%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.vendor-row:hover{
  background: rgba(0,0,0,0.04);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

/* Mobile vendor overlay tuning (keeps your existing behavior) */
@media (max-width: 768px){
  :root{
    --vendor-scale: 1.60;
    --vendor-y-shift: 0px;
    --vendor-row-h: clamp(14px, 4.2vw, 18px);
  }

  .vendor-list{
    top: 10.2%;
    left: 18.6%;
    width: 72%;
  }
}