/* =========================
   PRODUCT.CSS — Single product page
   ========================= */

/* ===== Local font faces (match shop.css) ===== */
@font-face {
  font-family: 'Pixel Warden';
  src: url('fonts/pixelwarden/PixelWarden.ttf') format('truetype');
  font-display: block;
}
@font-face {
  font-family: 'FS TI-92 ENO C';
  src: url('fonts/fs-ti-92-eno-c/fs-ti-92-eno-c.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'RetroByte';
  src: url('fonts/retrobyte/RetroByte.ttf') format('truetype');
  font-display: block;
}

/* ===== Tokens ===== */
:root {
  --bg: #000;
  --fg: #fff;
  --muted: #aaa;
  --maxw: 1100px;
  --grid-pad: 24px;

  /* height for the LEFT image container only */
  --image-pane-h: 70vh;   /* tweak up/down to change scrollable image area */
}

/* ===== Base ===== */
html, body { height: 100%; }

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg) url('assets/shop/refcafeteria.png') center / cover no-repeat fixed;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
}

.menubar-slot {
  display: block;
  height: var(--barh, 32px);
}

.page {
  padding: 24px 0 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* =========================
   PRODUCT LAYOUT
   ========================= */

.product-shell {
  width: 100%;
  max-width: var(--maxw);
  padding: 0 var(--grid-pad);
  display: grid;
  grid-template-columns: 3fr 2fr;   /* bigger images, smaller panel */
  gap: 32px;

  /* don't force equal heights; right panel can be shorter */
  align-items: flex-start;
}

/* LEFT: image column
   - no border / no black box
   - fixed-height container
   - internal vertical scroll for multiple images
*/
.product-main {
  background: transparent;
  border: none;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: 12px;

  height: var(--image-pane-h);
  overflow-y: auto;
}

/* scrollbar can be subtle */
.product-main::-webkit-scrollbar {
  width: 6px;
}
.product-main::-webkit-scrollbar-track {
  background: transparent;
}
.product-main::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
}

/* each image sits inside the container, no bleed */
.product-main img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: crisp-edges;
}

/* RIGHT: info panel (shorter than before) */
.product-info {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;

  min-height: 50vh;   /* shorter black box; tweak as needed */
  max-height: 70vh;   /* prevents it from getting super tall */
  overflow: hidden;
}

/* Typography */
.product-title {
  margin: 0;
  font-family: 'RetroByte', monospace;
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-price {
  font-family: "ocr-a-std", "OCR A Std", "OCR A", monospace;
  font-size: 16px;
  letter-spacing: 0.06em;
}

.product-desc {
  font-size: 14px;
  color: #ddd;
}

/* Button */
.buy-button {
  margin-top: 8px;
  align-self: flex-start;
  padding: 8px 16px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-family: "ocr-a-std", "OCR A Std", "OCR A", monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.buy-button:hover {
  background: rgba(255,255,255,0.18);
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
  .product-shell {
    grid-template-columns: 1fr;
  }

  /* on mobile let everything scroll normally */
  .product-main,
  .product-info {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow-y: visible;
  }
}

/* =========================
   MENUBAR OVERRIDES (same as shop.css)
   ========================= */

body.menu-transparent {
  --chrome: rgba(255,255,255,0.70);
}

body.menu-transparent .top-margin {
  background: transparent !important;
}

body.menu-transparent .site-header {
  background:
    linear-gradient(var(--chrome), var(--chrome)) top/100% var(--linew) no-repeat,
    linear-gradient(var(--chrome), var(--chrome)) bottom/100% var(--linew) no-repeat,
    linear-gradient(to right, var(--chrome), var(--chrome)) left/var(--linew) 100% no-repeat,
    linear-gradient(to left,  var(--chrome), var(--chrome)) right/var(--linew) 100% no-repeat,
    transparent !important;
}

body.menu-transparent .menu > li {
  border-left-color: var(--chrome);
}

body.menu-transparent .menu-link,
body.menu-transparent .brand-link {
  color: #fff;
  background: transparent !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}

body.menu-transparent .menu-link:hover,
body.menu-transparent .brand-link:hover {
  background: rgba(255,255,255,0.18) !important;
}
