:root{
    --ink:#12211E;
    --paper:#F1F3EE;
    --panel:#FAFBF8;
    --line:#C9D1C7;
    --teal:#2F8F7E;
    --teal-dark:#1F6459;
    --rust:#A85A2A;
    --graphite:#3A423F;
    --graphite-soft:#6B746F;
    --danger:#8C2E1F;
  }
  *{box-sizing:border-box;}
  html,body{margin:0;padding:0;}
  body{
    background:var(--paper);
    color:var(--ink);
    font-family:'IBM Plex Sans', sans-serif;
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,.mono{
    font-family:'IBM Plex Mono', monospace;
  }
  a{color:var(--teal-dark);}
  img,svg{display:block;max-width:100%;}
  .visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);}

  /* ===== Background grid texture ===== */
  .grid-bg{
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: -1px -1px;
    opacity:0.35;
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:0;
  }

  /* ===================== GATE ===================== */
  #gate{
    position:fixed;
    inset:0;
    z-index:100;
    background:var(--ink);
    color:var(--paper);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
  }
  .gate-card{
    width:100%;
    max-width:560px;
    background:var(--panel);
    color:var(--ink);
    border:1px solid var(--line);
    padding:40px 36px;
    position:relative;
  }
  .gate-card::before{
    content:"";
    position:absolute;
    top:0; left:0; right:0;
    height:4px;
    background:var(--teal);
  }
  .gate-mark{
    display:flex;
    align-items:baseline;
    gap:10px;
    margin-bottom:28px;
  }
  .gate-mark .sym{
    width:14px;height:14px;
    background:var(--teal);
    border-radius:50%;
    display:inline-block;
    transform:translateY(1px);
  }
  .gate-mark .name{
    font-size:20px;
    font-weight:600;
    letter-spacing:0.02em;
  }
  .gate-card h1{
    font-size:22px;
    font-weight:500;
    line-height:1.35;
    margin:0 0 12px;
  }
  .gate-card p.lead{
    font-family:'IBM Plex Sans',sans-serif;
    color:var(--graphite-soft);
    font-size:15px;
    margin:0 0 28px;
  }
  .gate-checks{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-bottom:28px;
  }
  .gate-check{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:14px 16px;
    border:1px solid var(--line);
    background:#fff;
    cursor:pointer;
    transition:border-color .15s ease, background .15s ease;
  }
  .gate-check:hover{border-color:var(--teal);}
  .gate-check input{
    margin-top:3px;
    width:16px;height:16px;
    accent-color:var(--teal-dark);
    flex-shrink:0;
    cursor:pointer;
  }
  .gate-check span{
    font-size:14.5px;
    color:var(--graphite);
  }
  .gate-actions{
    display:flex;
    gap:12px;
  }
  button{
    font-family:'IBM Plex Sans', sans-serif;
    font-size:14.5px;
    font-weight:600;
    border:1px solid var(--ink);
    padding:13px 22px;
    cursor:pointer;
    transition:all .15s ease;
  }
  #enter-btn{
    background:var(--ink);
    color:var(--paper);
    flex:1;
  }
  #enter-btn:disabled{
    background:var(--panel);
    color:var(--graphite-soft);
    border-color:var(--line);
    cursor:not-allowed;
  }
  #enter-btn:not(:disabled):hover{
    background:var(--teal-dark);
    border-color:var(--teal-dark);
  }
  #leave-btn{
    background:transparent;
    color:var(--graphite);
    border-color:var(--line);
  }
  #leave-btn:hover{
    border-color:var(--graphite);
  }
  .gate-foot{
    margin-top:20px;
    font-size:12.5px;
    color:var(--graphite-soft);
    border-top:1px solid var(--line);
    padding-top:16px;
  }
  #blocked{
    display:none;
    text-align:center;
    padding:60px 20px;
  }
  #blocked h1{font-size:20px;font-weight:500;margin-bottom:10px;}
  #blocked p{color:var(--graphite-soft);font-size:14.5px;}

  /* ===================== SITE ===================== */
  #site{display:none;position:relative;z-index:1;}

  .wrap{max-width:1120px;margin:0 auto;padding:0 28px;}

  header.top{
    border-bottom:1px solid var(--line);
    position:sticky;
    top:0;
    background:rgba(241,243,238,0.92);
    backdrop-filter:blur(6px);
    z-index:10;
  }
  .top-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 0;
  }
  .brand{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:17px;
    font-weight:600;
    letter-spacing:0.01em;
  }
  .brand .sym{
    width:11px;height:11px;
    border-radius:50%;
    background:var(--teal);
  }
  nav.top-nav{
    display:flex;
    gap:30px;
    font-size:14px;
  }
  nav.top-nav a{
    color:var(--graphite);
    text-decoration:none;
  }
  nav.top-nav a:hover{color:var(--teal-dark);}
  .top-cta{
    font-size:13px;
    font-family:'IBM Plex Mono',monospace;
    color:var(--graphite-soft);
    border:1px solid var(--line);
    padding:8px 14px;
  }

  /* ---- Hero ---- */
  .hero{
    padding:88px 0 72px;
    display:grid;
    grid-template-columns:1.1fr 0.9fr;
    gap:56px;
    align-items:center;
    border-bottom:1px solid var(--line);
  }
  .hero .tag{
    font-family:'IBM Plex Mono',monospace;
    font-size:13px;
    color:var(--teal-dark);
    margin-bottom:18px;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .hero .tag::before{
    content:"";
    width:20px;height:1px;
    background:var(--teal-dark);
  }
  .hero h1{
    font-size:42px;
    font-weight:500;
    line-height:1.2;
    margin:0 0 22px;
    letter-spacing:-0.01em;
  }
  .hero p.sub{
    font-size:16.5px;
    color:var(--graphite);
    max-width:46ch;
    margin:0 0 30px;
  }
  .hero .btnrow{display:flex;gap:14px;flex-wrap:wrap;}
  .btn-primary{
    background:var(--ink);
    color:var(--paper);
    border:1px solid var(--ink);
    padding:14px 24px;
    font-size:14.5px;
    text-decoration:none;
    display:inline-block;
    font-weight:600;
  }
  .btn-primary:hover{background:var(--teal-dark);border-color:var(--teal-dark);}
  .btn-secondary{
    background:transparent;
    color:var(--ink);
    border:1px solid var(--line);
    padding:14px 24px;
    font-size:14.5px;
    text-decoration:none;
    display:inline-block;
    font-weight:600;
  }
  .btn-secondary:hover{border-color:var(--ink);}

  .hero-panel{
    border:1px solid var(--line);
    background:var(--panel);
    padding:26px;
  }
  .hero-panel .coa-head{
    display:flex;
    justify-content:space-between;
    font-family:'IBM Plex Mono',monospace;
    font-size:11.5px;
    color:var(--graphite-soft);
    border-bottom:1px solid var(--line);
    padding-bottom:12px;
    margin-bottom:16px;
    letter-spacing:0.03em;
  }
  .hero-panel svg{width:100%;height:auto;}
  .coa-row{
    display:flex;
    justify-content:space-between;
    font-size:13px;
    padding:9px 0;
    border-bottom:1px solid var(--line);
    font-family:'IBM Plex Mono',monospace;
  }
  .coa-row:last-child{border-bottom:none;}
  .coa-row span:first-child{color:var(--graphite-soft);}

  /* ---- Compliance strip ---- */
  .strip{
    background:var(--ink);
    color:var(--paper);
    padding:22px 0;
    border-bottom:1px solid var(--line);
  }
  .strip .wrap{
    display:flex;
    gap:28px;
    flex-wrap:wrap;
    font-family:'IBM Plex Mono',monospace;
    font-size:12.5px;
    color:#B9C4BF;
  }
  .strip .wrap span{
    display:flex;
    align-items:center;
    gap:8px;
  }
  .strip .wrap span::before{
    content:"—";
    color:var(--teal);
  }

  /* ---- Section shell ---- */
  section{padding:80px 0;border-bottom:1px solid var(--line);}
  .sec-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:20px;
    margin-bottom:44px;
    flex-wrap:wrap;
  }
  .sec-head h2{
    font-size:26px;
    font-weight:500;
    margin:0;
    letter-spacing:-0.01em;
  }
  .sec-head p{
    color:var(--graphite-soft);
    font-size:14.5px;
    max-width:40ch;
    margin:0;
  }

  /* ---- Compound picker ---- */
  .compound-picker{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:1px;
    background:var(--line);
    border:1px solid var(--line);
    margin-bottom:8px;
  }
  .compound-box{
    background:var(--panel);
    border:none;
    padding:26px 16px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:6px;
    cursor:pointer;
    font-family:'IBM Plex Sans', sans-serif;
    text-decoration:none;
    transition:background .15s ease, color .15s ease;
  }
  .compound-box:hover, .compound-box:focus-visible{
    background:var(--teal-dark);
  }
  .compound-box:hover .cb-name, .compound-box:focus-visible .cb-name,
  .compound-box:hover .cb-sub, .compound-box:focus-visible .cb-sub{
    color:#fff;
  }
  .compound-box .cb-name{
    font-family:'IBM Plex Mono',monospace;
    font-size:15px;
    font-weight:600;
    color:var(--ink);
  }
  .compound-box .cb-sub{
    font-size:12px;
    color:var(--graphite-soft);
  }
  @media (max-width:860px){
    .compound-picker{grid-template-columns:repeat(2,1fr);}
  }

  /* ---- Categories ---- */
  .cat-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:1px;
    background:var(--line);
    border:1px solid var(--line);
  }
  .cat-card{
    background:var(--panel);
    padding:30px 28px;
  }
  .cat-card .chip{
    width:10px;height:10px;
    display:inline-block;
    margin-bottom:16px;
  }
  .cat-card h3{
    font-size:16.5px;
    font-weight:600;
    margin:0 0 10px;
    font-family:'IBM Plex Sans',sans-serif;
  }
  .cat-card p{
    font-size:14px;
    color:var(--graphite-soft);
    margin:0 0 16px;
  }
  .cat-card .compounds{
    font-family:'IBM Plex Mono',monospace;
    font-size:12px;
    color:var(--teal-dark);
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }
  .cat-card .compounds span,
  .cat-card .compounds a{
    border:1px solid var(--line);
    padding:4px 8px;
    background:#fff;
  }
  .cat-card .compounds a{
    color:var(--teal-dark);
    text-decoration:none;
  }
  .cat-card .compounds a:hover{
    border-color:var(--teal-dark);
    background:var(--teal-dark);
    color:#fff;
  }

  /* ---- Process ---- */
  .process{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:32px;
  }
  .process .step{
    border-top:2px solid var(--teal);
    padding-top:18px;
  }
  .process .step .num{
    font-family:'IBM Plex Mono',monospace;
    font-size:12px;
    color:var(--graphite-soft);
    display:block;
    margin-bottom:10px;
  }
  .process .step h3{
    font-size:16px;
    font-weight:600;
    margin:0 0 10px;
    font-family:'IBM Plex Sans',sans-serif;
  }
  .process .step p{
    font-size:14px;
    color:var(--graphite-soft);
    margin:0;
  }

  /* ---- Legal / disclaimer block ---- */
  .legal-block{
    background:var(--panel);
    border:1px solid var(--rust);
    padding:32px 30px;
  }
  .legal-block h2{
    font-size:16px;
    font-weight:600;
    color:var(--danger);
    margin:0 0 14px;
    font-family:'IBM Plex Sans',sans-serif;
  }
  .legal-block p{
    font-size:14px;
    color:var(--graphite);
    margin:0 0 12px;
  }
  .legal-block p:last-child{margin-bottom:0;}

  /* ---- Contact ---- */
  .contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:56px;
  }
  .field-row{margin-bottom:18px;}
  .field-row label{
    display:block;
    font-size:12.5px;
    font-family:'IBM Plex Mono',monospace;
    color:var(--graphite-soft);
    margin-bottom:6px;
  }
  .field-row input, .field-row textarea{
    width:100%;
    border:1px solid var(--line);
    background:#fff;
    padding:11px 12px;
    font-family:'IBM Plex Sans',sans-serif;
    font-size:14px;
    color:var(--ink);
  }
  .field-row input:focus, .field-row textarea:focus{
    outline:2px solid var(--teal);
    outline-offset:1px;
  }
  .contact-note{
    font-size:13px;
    color:var(--graphite-soft);
    margin-top:6px;
  }

  footer{padding:40px 0;}
  .foot-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:16px;
    font-size:12.5px;
    color:var(--graphite-soft);
  }
  .foot-inner a{color:var(--graphite-soft);}

  :focus-visible{outline:2px solid var(--teal-dark);outline-offset:2px;}

  @media (max-width:860px){
    .hero{grid-template-columns:1fr;padding:56px 0;}
    .cat-grid{grid-template-columns:1fr;}
    .process{grid-template-columns:1fr;}
    .contact-grid{grid-template-columns:1fr;}
    nav.top-nav{display:none;}
    .hero h1{font-size:32px;}
  }

  @media (prefers-reduced-motion:reduce){
    *{transition:none !important;}
  }

/* ---- Product page ---- */
.breadcrumb{
  font-family:'IBM Plex Mono',monospace;
  font-size:12.5px;
  color:var(--graphite-soft);
  margin-bottom:28px;
}
.breadcrumb a{color:var(--graphite-soft);text-decoration:none;}
.breadcrumb a:hover{color:var(--teal-dark);}
.product-hero{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:56px;
  align-items:start;
  padding-bottom:64px;
  border-bottom:1px solid var(--line);
}
.product-hero .tag{
  font-family:'IBM Plex Mono',monospace;
  font-size:13px;
  color:var(--teal-dark);
  margin-bottom:16px;
  display:flex;
  align-items:center;
  gap:8px;
}
.product-hero .tag::before{content:"";width:20px;height:1px;background:var(--teal-dark);}
.product-hero h1{
  font-size:36px;
  font-weight:500;
  margin:0 0 8px;
  letter-spacing:-0.01em;
}
.product-hero .subname{
  font-family:'IBM Plex Mono',monospace;
  font-size:14px;
  color:var(--graphite-soft);
  margin:0 0 22px;
}
.product-hero p.desc{
  font-size:16px;
  color:var(--graphite);
  max-width:52ch;
  margin:0 0 28px;
}
.spec-table{
  border:1px solid var(--line);
  background:var(--panel);
}
.spec-row{
  display:flex;
  justify-content:space-between;
  padding:13px 18px;
  border-bottom:1px solid var(--line);
  font-size:13.5px;
}
.spec-row:last-child{border-bottom:none;}
.spec-row span:first-child{
  font-family:'IBM Plex Mono',monospace;
  color:var(--graphite-soft);
}
.spec-row span:last-child{color:var(--ink);font-weight:500;}
.coa-pending{
  border:1px solid var(--line);
  background:var(--panel);
  padding:26px;
  text-align:center;
}
.coa-pending p{font-size:13.5px;color:var(--graphite-soft);margin:10px 0 0;}
.related-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.related-row a{
  border:1px solid var(--line);
  background:var(--panel);
  padding:12px 18px;
  font-family:'IBM Plex Mono',monospace;
  font-size:13px;
  color:var(--ink);
  text-decoration:none;
}
.related-row a:hover{border-color:var(--teal-dark);color:var(--teal-dark);}

/* ---- Cart badge (in header) ---- */
.cart-link{
  position:relative;
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--graphite);
  text-decoration:none;
  font-size:14px;
}
.cart-link:hover{color:var(--teal-dark);}
.cart-badge{
  display:none;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:50%;
  background:var(--rust);
  color:#fff;
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;
  font-weight:600;
}

/* ---- Add to cart controls on product pages ---- */
.qty-row{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
}
.qty-row label{
  font-family:'IBM Plex Mono',monospace;
  font-size:12.5px;
  color:var(--graphite-soft);
}
.qty-row input{
  width:64px;
  border:1px solid var(--line);
  background:#fff;
  padding:9px 10px;
  font-family:'IBM Plex Sans',sans-serif;
  font-size:14px;
  text-align:center;
}
.add-note{
  font-size:13px;
  color:var(--teal-dark);
  min-height:18px;
  margin:12px 0 0;
}

/* ---- Cart page ---- */
.cart-table{
  border:1px solid var(--line);
  background:var(--panel);
}
.cart-item{
  display:grid;
  grid-template-columns:1fr auto auto auto;
  align-items:center;
  gap:20px;
  padding:18px 20px;
  border-bottom:1px solid var(--line);
}
.cart-item:last-child{border-bottom:none;}
.cart-item .ci-name{
  font-size:15px;
  font-weight:600;
}
.cart-item .ci-sub{
  font-size:13px;
  color:var(--graphite-soft);
  font-family:'IBM Plex Mono',monospace;
  margin-top:2px;
}
.cart-item input[type="number"]{
  width:56px;
  border:1px solid var(--line);
  padding:8px;
  text-align:center;
  font-family:'IBM Plex Sans',sans-serif;
}
.cart-item .remove-btn{
  background:none;
  border:none;
  color:var(--graphite-soft);
  font-size:13px;
  cursor:pointer;
  text-decoration:underline;
  padding:0;
}
.cart-item .remove-btn:hover{color:var(--danger);}
.cart-empty{
  padding:60px 20px;
  text-align:center;
  color:var(--graphite-soft);
  font-size:14.5px;
}
.cart-summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:28px;
  flex-wrap:wrap;
  gap:16px;
}
.cart-note{
  font-size:13px;
  color:var(--graphite-soft);
  max-width:44ch;
}
#checkout-error{
  color:var(--danger);
  font-size:13.5px;
  margin-top:14px;
}
@media (max-width:620px){
  .cart-item{grid-template-columns:1fr;justify-items:start;gap:10px;}
}
