
:root{
  --bg:#ffffff;
  --ink:#111111;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  width:100%;
  min-height:100%;
  background:var(--bg);
  color:var(--ink);
  font-family:Arial,Helvetica,sans-serif;
}

body{
  min-height:100vh;
  min-height:100svh;
  display:grid;
  grid-template-rows:138px minmax(0,1fr) 112px;
  overflow-x:hidden;
  overflow-y:auto;
}

.site-header{
  display:flex;
  align-items:center;
  justify-content:center;
  padding-top:18px;
}

.logo{
  width:min(380px,60vw);
  height:auto;
  display:block;
}

.main-stage{
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 18px 8px;
  transform:translateY(-8px);
}









.product-pair{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  max-width:820px;
  margin:0 auto;
}

.product-viewer{
  width:min(395px,42vw);
  height:min(610px,calc(100svh - 285px));
  display:grid;
  place-items:center;
  outline:none;
  cursor:pointer;
  flex:0 1 395px;
}

.frame-image{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  display:block;
  object-fit:contain;
  object-position:center center;
  user-select:none;
  pointer-events:none;
  transform:translateZ(0);
  will-change:contents;
}

.site-footer{
  position:relative;
  z-index:5;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:112px;
  padding:10px 20px 18px;
  text-align:center;
  background:#fff;
}

.footer-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:28px;
}

.footer-links a{
  color:#222;
  text-decoration:none;
  font-size:12px;
  letter-spacing:.04em;
  border-bottom:1px solid transparent;
  padding-bottom:2px;
  transition:border-color .2s ease, opacity .2s ease;
}

.footer-links a:hover{
  border-bottom-color:#222;
  opacity:.7;
}

.copyright{
  font-size:11px;
  letter-spacing:.03em;
  color:#777;
  white-space:nowrap;
}

@media (max-width:700px){
  body{
    grid-template-rows:96px minmax(0,1fr) 92px;
  }

  .site-header{
    padding-top:6px;
  }

  .logo{
    width:min(270px,68vw);
  }

  .main-stage{
    padding:0 2px 2px;
    transform:translateY(-2px);
  }

  .product-pair{
    gap:0;
    width:100%;
    max-width:100%;
    justify-content:center;
  }

  .product-pair .product-viewer{
    width:50vw;
    max-width:50vw;
    height:min(590px,calc(100svh - 196px));
    flex:0 0 50vw;
  }

  .site-footer{
    min-height:92px;
    padding:6px 10px 12px;
  }

  .footer-links{
    gap:18px;
  }

  .footer-links a{
    font-size:11px;
  }

  .copyright{
    font-size:10px;
  }
}


/* Mobile: hide tap/click highlight box on the main product */
.product-viewer,
.frame-image{
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.product-viewer:focus,
.product-viewer:focus-visible,
.product-viewer:active{
  outline:none !important;
  border:none !important;
  box-shadow:none !important;
}

@media (hover:none) and (pointer:coarse){
  .product-viewer{
    outline:none !important;
    border:none !important;
    box-shadow:none !important;
  }
}


@media (max-width:700px){
  .product-pair{
    overflow:hidden;
  }

  .product-pair .product-viewer{
    overflow:hidden;
  }

  .product-pair .frame-image{
    width:150%;
    max-width:none;
    height:100%;
    object-fit:contain;
  }

  #productViewerA1 .frame-image{
    transform:translateX(-12%) translateZ(0);
    transform-origin:center center;
  }

  #productViewerA2 .frame-image{
    transform:translateX(12%) translateZ(0);
    transform-origin:center center;
  }
}
