/* Prevent any accidental horizontal scrolling */
    html, body { width: 100%; overflow-x: hidden; }

    :root{
      --bg:#ffffff;
      --fg:#111111;
      --muted:#5f5f5f;
      --line: rgba(0,0,0,.12);

      --font-display: var(--brand-font, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif);
      --max: 1200px;
    }

    body{
      margin:0;
      background:var(--bg);
      color:var(--fg);
      font-family:var(--font-display);
      letter-spacing: 0.2px;
    }

    /* -------- Product page layout -------- */
    .wrap{
      max-width: var(--max);
      margin: 0 auto;
      padding: 26px 18px;
    }

    .product-grid{
      display:grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap:28px;
      align-items:start;
    }

    /* Left: thumbs + hero */
    .media{
      display:grid;
      grid-template-columns: 72px 1fr;
      gap:14px;
      min-width: 0; /* prevents overflow in grids */
    }

    .thumbs{
      display:flex;
      flex-direction:column;
      gap:10px;
      max-height:640px;
      overflow-y:auto;
      overflow-x:hidden; /* no sideways scroll */
      padding-right:2px;
    }

    .thumb{
      width:72px;
      height:72px;
      border:1px solid var(--line);
      background:#fff;
      cursor:pointer;
      padding:0;
    }
    .thumb img{
      width:100%;
      height:100%;
      object-fit:cover;
      display:block;
    }
    .thumb[aria-current="true"]{
      border-color: var(--fg);
      outline: 1px solid var(--fg);
      outline-offset: 2px;
    }

    .hero{
      border:1px solid var(--line);
      background:#fff;
      /* Use an aspect ratio instead of hard heights so images never get cut off */
      aspect-ratio: 1 / 1;
      max-height: 70vh;
      width: 100%;
      display:flex;
      align-items:center;
      justify-content:center;
      overflow:hidden;
      min-width: 0;
    }
    .hero img{
      width:100%;
      height:100%;
      object-fit:cover;
      display:block;
    }

    /* Tabs under image */
    .tabs{
      margin-top:16px;
      border-top:1px solid var(--line);
      padding-top:14px;
    }
    .tab-row{
      display:flex;
      gap:18px;
      align-items:center;
      flex-wrap:wrap;
      user-select:none;
    }
    .tab{
      cursor:pointer;
      font-size:12px;
      text-transform:uppercase;
      letter-spacing:2px;
      color:var(--muted);
      padding:6px 0;
    }
    .tab[aria-selected="true"]{ color:var(--fg); }

    .rule{
      margin:12px 0 14px;
      border-top:1px solid var(--line);
      height:1px;
      width:100%;
    }


    .tab-panel{
      color:var(--fg);
      line-height:1.55;
      font-size:14px;
    }
    .bullets{
      margin:0;
      padding-left:18px;
      color:var(--fg);
    }
    .bullets li{ margin:8px 0; }

    /* Right: product info */
    .title{
      text-transform:uppercase;
      letter-spacing:2px;
      font-weight:900;
      font-size:22px;
      margin:0 0 8px;
    }
    .price{
      color:var(--muted);
      font-size:14px;
      margin:0 0 18px;
    }

    .label-row{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      margin:16px 0 10px;
    }
    .label{
      font-size:12px;
      text-transform:uppercase;
      letter-spacing:2px;
      color:var(--muted);
    }

    .swatches{
      display:flex;
      gap:10px;
      align-items:center;
      flex-wrap:wrap;
    }
    .swatch{
      width:28px;
      height:28px;
      border:1px solid var(--line);
      background:#333;
      cursor:pointer;
      padding:0;
    }
    .swatch[aria-current="true"]{
      border-color: var(--fg);
      outline:1px solid var(--fg);
      outline-offset:2px;
    }

    .select{
      box-sizing: border-box;
      width:100%;
      background:#fff;
      color:var(--fg);
      border:1px solid var(--line);
      padding:12px 12px;
      font-size:14px;
      border-radius:0;
      outline:none;
      transition: color 1.2s ease;
    }

    .tryon-note{
      margin-top:10px;
      font-size:11px;
      text-transform:uppercase;
      letter-spacing:2px;
      color:#1f6fff;
    }

    .btn{
      box-sizing: border-box;
      padding:12px 14px;
      border:1px solid var(--fg);
      background:transparent;
      color:var(--fg);
      text-transform:uppercase;
      letter-spacing:2px;
      font-size:12px;
      cursor:pointer;
      border-radius:0;
    }
    .btn:hover{ background:rgba(0,0,0,0.05); }

    .btn-solid{
      box-sizing: border-box;
      width:100%;
      padding:14px 14px;
      background: var(--fg);
      color:#fff;
      border:1px solid var(--fg);
      text-transform:uppercase;
      letter-spacing:2px;
      font-size:12px;
      cursor:pointer;
      border-radius:0;
    }
    .btn-solid:hover{ filter: brightness(0.95); }

    .btn-row{
      display:grid;
      grid-template-columns: 1fr;
      gap:10px;
      margin-top:16px;
    }

    /* -------- Premium zoom overlay -------- */
    .zoomOverlay{
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.72);
      backdrop-filter: blur(4px);
      display: grid;
      place-items: center;
      padding: 20px;
      z-index: 2000;
    }
    .zoomOverlay img{
      max-width: min(1000px, 92vw);
      max-height: 86vh;
      width: auto;
      height: auto;
      object-fit: contain;
      background: #fff;
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 0;
    }
    .zoomClose{
      position: fixed;
      top: 14px;
      right: 14px;
      width: 44px;
      height: 44px;
      border: 1px solid rgba(255,255,255,0.35);
      background: rgba(0,0,0,0.35);
      color: #fff;
      font-size: 26px;
      line-height: 1;
      border-radius: 0;
      cursor: pointer;
    }
    body.zoom-open{ overflow:hidden; }

    /* Footer (simple black bar) */
    .site-footer{
      margin-top:36px;
      background:#0b0b0b;
      color:#ffffff;
      padding:18px 18px;
    }
    .site-footer__inner{
      max-width: var(--max);
      margin:0 auto;
      display:flex;
      justify-content:space-between;
      gap:14px;
      font-size:12px;
      letter-spacing:.06em;
      text-transform:uppercase;
      opacity:.95;
    }

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

    /* IMPORTANT: kill horizontal scrollbar under thumbs by WRAPPING, not scrolling */
    @media (max-width: 560px){
      .media{ grid-template-columns: 1fr; }
      .thumbs{
        flex-direction:row;
        flex-wrap:wrap;
        overflow: visible;      /* no scrollbars */
        max-height:none;
        padding-right:0;
      }
      .thumb{ width:64px; height:64px; }
      .hero{ max-height: 55vh; }
      .label-row{ flex-wrap:wrap; }
      .label-row .btn{
      box-sizing: border-box; width:100%; } /* on tiny screens, tryon drops under label */
    }

:root{
      --pryzm-black:#0b0b0b;
      --pryzm-white:#ffffff;
      --pryzm-text:#111;
      --pryzm-shadow: 0 8px 18px rgba(0,0,0,.18);
      --pryzm-hairline: rgba(0,0,0,.08);
      --pryzm-max: 1200px;
    }

    .pryzm-header{ position: sticky; top: 0; z-index: 999; }

    .pryzm-promo{
      background: var(--pryzm-black);
      color: var(--pryzm-white);
      box-shadow: var(--pryzm-shadow);
    }
    .pryzm-promo__inner{
      max-width: var(--pryzm-max);
      margin: 0 auto;
      height: 34px;
      padding: 0 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .pryzm-rotator{
      position: relative;
      height: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      text-align: center;
      overflow: hidden;
    }
    .pryzm-rotator__item{
      position: absolute;
      left: 0;
      right: 0;
      opacity: 0;
      transform: translateY(6px);
      transition: opacity .45s ease, transform .45s ease;
      font-size: 12px;
      letter-spacing: .08em;
      text-transform: uppercase;
      white-space: nowrap;
      padding: 0 12px;
    }
    .pryzm-rotator__item.is-active{
      opacity: .95;
      transform: translateY(0);
    }
    .pryzm-rotator strong{ font-weight: 700; }

    .pryzm-promo__dots{
      position: absolute;
      left: 50%;
      bottom: 5px;
      transform: translateX(-50%);
      opacity: .35;
      font-size: 10px;
      pointer-events: none;
      user-select: none;
    }

    .pryzm-main{
      background: var(--pryzm-white);
      border-bottom: 1px solid var(--pryzm-hairline);
    }
    .pryzm-main__inner{
      max-width: var(--pryzm-max);
      margin: 0 auto;
      padding: 14px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .pryzm-brand{ display:flex; align-items:center; min-width: 220px; }
    .pryzm-brand__logo{
      height: 96px;
      width: auto;
      display:block;
    }

    .pryzm-nav{
      display:flex;
      align-items:center;
      gap: 22px;
    }
    .pryzm-nav a{
      color: var(--pryzm-text);
      text-decoration: none;
      font-size: 14px;
      letter-spacing: .06em;
      text-transform: uppercase;
      padding: 10px 6px;
      border-radius: 10px;
      transition: background .15s ease, transform .15s ease;
      white-space: nowrap;
    }
    .pryzm-nav a:hover{
      background: rgba(0,0,0,.05);
      transform: translateY(-1px);
    }

    .pryzm-cart{
      display:flex;
      align-items:center;
      gap: 10px;
    }
    .pryzm-cart__pill{
      min-width: 22px;
      height: 22px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      border-radius: 999px;
      background: var(--pryzm-black);
      color: var(--pryzm-white);
      font-size: 12px;
      line-height: 1;
      padding: 0 7px;
    }

    .pryzm-burger{
      display:none;
      width: 44px;
      height: 44px;
      border: 1px solid var(--pryzm-hairline);
      background: #fff;
      border-radius: 12px;
      padding: 10px;
      cursor: pointer;
    }
    .pryzm-burger span{
      display:block;
      height: 2px;
      background: #111;
      border-radius: 2px;
      margin: 6px 0;
    }

    @media (max-width: 980px){
      .pryzm-brand__logo{ height: 74px; }
      .pryzm-brand{ min-width: 180px; }
    }
    @media (max-width: 860px){
      .pryzm-burger{ display:block; }
      .pryzm-nav{
        position: absolute;
        left: 0;
        right: 0;
        top: calc(34px + 110px);
        background: #fff;
        border-bottom: 1px solid var(--pryzm-hairline);
        box-shadow: 0 14px 28px rgba(0,0,0,.10);
        padding: 12px 18px 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
      }
      .pryzm-nav a{
        padding: 14px 12px;
        border-radius: 14px;
      }
      .pryzm-header.is-open .pryzm-nav{ display:flex; }
    }

    @media (max-width: 420px){
      .pryzm-brand__logo{ height: 62px; }
      .pryzm-promo__inner{ height: 32px; }
      .pryzm-rotator__item{ font-size: 11px; }
    }

    @media (prefers-reduced-motion: reduce){
      .pryzm-rotator__item{ display:none; position: static; opacity: 1; transform:none; transition:none; }
      .pryzm-rotator{ height: auto; }
      .pryzm-rotator::before{
        content: "Free Shipping – Use Code FREESHIP26 • Handmade in Oregon • Free Prescription Lenses";
        font-size: 12px;
        letter-spacing: .08em;
        text-transform: uppercase;
        opacity: .95;
      }
      .pryzm-promo__dots{ display:none; }
    }

@keyframes pryzmFlashBlue{ 0%{ color:#0b6bff; } 100%{ color:#111; } }
.select.flash-blue{ animation: pryzmFlashBlue 1.2s ease-out 1; }

.price-old{ text-decoration: line-through; opacity:.65; margin-right:.35rem; }
.price-new{ font-weight: 900; }


/* Inline action buttons in label row (Size Guide + VR Tryon) */
.inline-actions{
  display:flex;
  gap:10px;
  align-items:center;
}
@media (max-width: 480px){
  .inline-actions{ gap:8px; }
  .inline-actions .btn{
      box-sizing: border-box; padding: 10px 12px; font-size: 12px; }
}

/* Size guide drawer content */
.sgIntro p{ margin: 0 0 10px 0; line-height: 1.35; }
.sgSection{ margin-top: 18px; }
.sgSection h3{ margin: 0 0 10px 0; font-size: 16px; letter-spacing: .02em; text-transform: none; }
.sgHint{ margin: 0 0 12px 0; opacity: .85; }

.sgList{
  display: grid;
  gap: 10px;
}
.sgItem{
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  padding: 12px;
  border-radius: 0; /* square */
}
.sgItemTitle{
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}
.sgItemText{
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
}
@media (min-width: 640px){
  .sgItem{
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    align-items: start;
  }
  .sgItemText{ margin-top: 0; }
}
.sgCards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px){
  .sgCards{ grid-template-columns: repeat(2, 1fr); }
}
.sgCard{
  border: 1px solid rgba(0,0,0,.12);
  padding: 12px;
  border-radius: 0; /* square */
  background: #fff;
}
.sgCard img{
  width: 100%;
  height: auto;
  display:block;
}
.sgCardTitle{
  margin-top: 10px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}
.sgCardText{
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
}
.sgFooter{
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.12);
}


/* --- Mobile fixes: keep product gallery + buttons on-screen --- */
@media (max-width: 760px){
  .media{
    display: flex;
    flex-direction: column-reverse; /* hero first, thumbs below */
    gap: 10px;
  }
  .hero{
    width: 100%;
  }
  .hero img{
    width: 100%;
    height: 100%;
    max-height: 60vh;
    object-fit: cover;
  }
  .thumbs{
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    padding-bottom: 4px;
  }
  .thumb{
    flex: 0 0 auto;
  }

  .label-row{
    align-items: flex-start;
    flex-direction: column;
  }
  .inline-actions{
    width: 100%;
    flex-wrap: wrap;
  }
  .inline-actions .btn{
      box-sizing: border-box;
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    padding: 12px 10px;
    letter-spacing: 1.2px;
  }
}

/* Cleaner separators */
.tab-row{
  border-bottom: 1px solid rgba(255,255,255,0.10);
}


/* Stack Size Guide + VR Tryon on very small phones */
@media (max-width: 420px){
  .inline-actions{ flex-direction: column; }
  .inline-actions .btn{ flex: 1 1 100%; width: 100%; min-width: 0; }
}


/* Out of stock styling */
.price.is-oos .price__value{ text-decoration: line-through; opacity: .65; }
.oos-badge{ display:inline-block; margin-left:8px; font-weight:700; letter-spacing:.08em; font-size:12px; text-transform:uppercase;
  background:#000;
  color:#fff;
  padding:3px 7px;
  border-radius:0;
  border:1px solid #000;
  opacity:1;
}
.btn.is-disabled{ opacity:.55; pointer-events:none; }
.btn-solid.is-disabled{ opacity:.55; pointer-events:none; }
