
:root{
  --bg:#f6f1ea; --paper:#fff; --ink:#241f1b; --muted:#73695f;
  --line:#ded4c8; --accent:#6b4f3a; --soft:#efe6dc;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:linear-gradient(180deg,#fbf8f4,var(--bg));
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
.wrap{max-width:1180px;margin:auto;padding:22px 16px 48px}
.brand{text-align:center;margin:12px 0 26px}
.brand h1{font-size:2rem;margin:0 0 6px}
.brand p{margin:0;color:var(--muted)}
.menu{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;
  max-width:850px;margin:28px auto 0;
}
.menu a{
  min-height:130px;display:flex;align-items:center;justify-content:center;text-align:center;
  padding:18px;border-radius:22px;text-decoration:none;color:var(--ink);
  background:var(--paper);border:1px solid var(--line);
  box-shadow:0 8px 24px rgba(50,35,24,.06);
  font-size:1.2rem;font-weight:800;
}
.menu a:active{transform:scale(.985)}
.topbar{
  position:sticky;top:0;z-index:20;background:rgba(250,247,242,.96);
  backdrop-filter:blur(12px);border-bottom:1px solid var(--line)
}
.topbar-inner{
  max-width:1180px;margin:auto;padding:12px 16px;
  display:flex;align-items:center;gap:12px;justify-content:space-between
}
.back{
  text-decoration:none;background:var(--accent);color:white;
  padding:10px 13px;border-radius:12px;font-weight:800;font-size:.9rem
}
.title{font-size:1.15rem;font-weight:800;text-align:right}
.notice{
  margin:14px 0 16px;padding:12px 14px;border-radius:15px;
  background:white;border:1px solid var(--line);color:var(--muted);font-size:.9rem
}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.card{
  background:white;border:1px solid var(--line);border-radius:17px;overflow:hidden;
  box-shadow:0 5px 16px rgba(45,32,22,.045)
}
.card button{
  width:100%;aspect-ratio:1/1;border:0;padding:0;background:#faf8f5;display:block;cursor:zoom-in
}
.card img{width:100%;height:100%;object-fit:cover;display:block}
.code{text-align:center;padding:9px;font-weight:800;letter-spacing:.04em}
.modal{
  position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.9);
  display:none;align-items:center;justify-content:center;padding:54px 18px 22px
}
.modal.open{display:flex}
.modal img{max-width:100%;max-height:78vh;border-radius:14px;background:white}
.modal .caption{color:white;text-align:center;margin-top:10px;font-weight:800}
.close{
  position:fixed;right:18px;top:18px;border:0;background:white;color:#111;
  width:42px;height:42px;border-radius:50%;font-size:28px
}
.footer{text-align:center;color:var(--muted);font-size:.82rem;margin-top:28px}
@media(min-width:700px){
  .menu{grid-template-columns:repeat(3,minmax(0,1fr))}
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:1000px){
  .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}


/* Main catalog landing page */
.catalog-block{
  max-width:980px;
  margin:0 auto 34px;
}
.catalog-block h2{
  margin:0 0 6px;
  font-size:1.45rem;
}
.catalog-block .block-copy{
  margin:0 0 15px;
  color:var(--muted);
  line-height:1.45;
}
.category-menu{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.category-menu a{
  min-height:118px;
  padding:17px;
  border-radius:20px;
  text-decoration:none;
  color:var(--ink);
  background:var(--paper);
  border:1px solid var(--line);
  box-shadow:0 7px 22px rgba(50,35,24,.055);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}
.category-menu a strong{
  font-size:1.08rem;
  line-height:1.2;
}
.category-menu a span{
  margin-top:7px;
  color:var(--muted);
  font-size:.82rem;
  line-height:1.3;
}
.category-menu a:active{transform:scale(.985)}
.divider{
  height:1px;
  background:var(--line);
  max-width:980px;
  margin:30px auto;
}

/* Embedded supplier-created customer catalogs */
.embed-body{
  margin:0;
  overflow:hidden;
  background:#fff;
}
.embed-header{
  height:64px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  background:#faf7f2;
  border-bottom:1px solid var(--line);
}
.embed-header .back{
  flex:0 0 auto;
}
.embed-title{
  min-width:0;
  flex:1;
}
.embed-title strong{
  display:block;
  font-size:1rem;
}
.embed-title span{
  display:block;
  color:var(--muted);
  font-size:.77rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.full-link{
  flex:0 0 auto;
  text-decoration:none;
  color:var(--accent);
  font-size:.8rem;
  font-weight:800;
  padding:8px 9px;
  border-radius:10px;
  border:1px solid var(--line);
  background:white;
}
.catalog-frame{
  display:block;
  width:100%;
  height:calc(100vh - 64px);
  border:0;
  background:white;
}

@media(min-width:700px){
  .category-menu{grid-template-columns:repeat(3,minmax(0,1fr))}
}
