@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --pine: #17392d;
  --ink: #203b30;
  --soft: #54665a;
  --cream: #f6f2e6;
  --line: #dfded1;
  --type: 'Be Vietnam Pro', system-ui, sans-serif;
  font: 400 16px/1.65 var(--type);
  background: var(--cream);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
header, footer { background: var(--pine); color: #fff9e9; }
.brand, .footer-inner, main { width: min(66rem, calc(100% - 2.5rem)); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: .65rem; padding-block: .7rem; }
.brand img { width: 44px; height: 44px; }
.brand strong { font: 700 1.28rem/1.25 var(--type); letter-spacing: -.03em; }
main { padding-block: 1.75rem 3rem; }
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #d6d8c7;
  border-radius: 1.4rem;
  background: #fffdf4;
  box-shadow: 0 14px 30px #2543370e;
}
.intro figure {
  margin: 0;
  padding: 1.6rem;
  display: grid;
  justify-items: center;
  place-content: center;
  gap: .6rem;
  background: radial-gradient(ellipse at 50% 42%, #f5f8e8, #dce8d4 78%);
}
.intro figure img {
  display: block;
  width: clamp(12rem, 26vw, 17.5rem);
  height: auto;
  border-radius: .28rem;
  box-shadow: 0 15px 26px #223d2f30;
}
figcaption { color: var(--soft); font-size: .75rem; }
.intro-copy { display: grid; align-content: center; padding: clamp(1.4rem, 4.5vw, 3.4rem); }
.eyebrow { color: #795a2d; font-size: .73rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; }
h1, h2, h3 { margin: 0 0 .65rem; line-height: 1.1; }
h1 { font: 700 clamp(2.05rem, 4vw, 3.4rem)/1.14 var(--type); letter-spacing: -.045em; text-wrap: balance; }
h2 { font: 650 clamp(1.18rem, 2.2vw, 1.55rem)/1.35 var(--type); letter-spacing: -.025em; }
h3 { font-size: .95rem; font-weight: 700; line-height: 1.45; }
.status { margin: .7rem 0 1.15rem; font-size: .82rem; color: var(--soft); }
.facts { display: grid; grid-template-columns: 1.4fr 1fr; gap: .7rem; margin: 0; }
.facts div { padding: .75rem; border: 1px solid var(--line); border-radius: .75rem; background: #f8f5e8; }
.facts dt { color: var(--soft); font-size: .73rem; }
.facts dd { margin: .15rem 0 0; font-size: .88rem; font-weight: 700; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin-top: 1rem; align-items: start; }
.panel { padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: 1rem; background: #fffdf8; }
.panel p { margin: .7rem 0 0; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; font-variant-numeric: tabular-nums; }
thead th { background: #edf1e8; color: #3e594b; font-size: .78rem; }
th, td { padding: .48rem .65rem; border-bottom: 1px solid #ecebe2; }
tbody th { font-weight: 500; }
td, thead th:last-child { text-align: right; white-space: nowrap; }
.note { font-size: .82rem; color: var(--soft); }
.steps { margin: 0; padding-left: 1.35rem; }
.steps li { padding: .24rem 0 .24rem .18rem; }
.steps li::marker { font-weight: 700; color: #7a5b2d; }
.caution { margin-top: 1rem; padding: .8rem .95rem; background: #f5edda; border-left: 3px solid #b78e4e; border-radius: .3rem; }
.caution p { margin-top: 0; }
.producers { margin: 0; }
.producers dt { font-size: .8rem; color: var(--soft); }
.producers dd { margin: .18rem 0 1rem; overflow-wrap: anywhere; }
.producers dd:last-child { margin-bottom: 0; }
a { color: #245740; text-underline-offset: .16em; }
a:focus-visible { outline: 2px solid #8b602a; outline-offset: 3px; }
.disclosure { grid-column: 1 / -1; }
.footer-inner { padding-block: 1rem; font-size: .8rem; }
@media (max-width: 620px) {
  .brand, .footer-inner, main { width: calc(100% - 1.5rem); }
  main { padding-top: .75rem; }
  .intro, .details { grid-template-columns: 1fr; }
  .intro figure { padding: .8rem 1rem .55rem; }
  .intro figure img { width: clamp(10rem, 56vw, 14rem); }
  .intro-copy { padding: 1rem; }
  h1 { font-size: clamp(1.9rem, 7.4vw, 2.7rem); }
  .status { margin-bottom: .75rem; }
}

.company-footer{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:1rem 2rem;padding-block:1.4rem}.company-footer strong{font-size:.92rem}.company-footer p{margin:.25rem 0;overflow-wrap:anywhere}.company-footer a{color:inherit}@media(max-width:620px){.company-footer{grid-template-columns:1fr;gap:.55rem}}
/* Hộp 3D từ bốn mặt của mẫu bao bì */
.intro .box-viewer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.7rem;padding:clamp(.65rem,2.5vw,1.4rem)}
.box-stage{display:grid;place-items:center;width:100%;height:clamp(19.75rem,36vw,28rem);overflow:hidden;perspective:1000px;cursor:grab;touch-action:none;user-select:none;border-radius:.75rem}
.box-stage.dragging{cursor:grabbing}
.box-stage:focus-visible{outline:2px solid #8b602a;outline-offset:2px}
.box-model{--wide:clamp(8.3rem,19vw,12rem);--deep:calc(var(--wide)*.457);--height:calc(var(--wide)*1.381);--angle:-18deg;--zoom:1;position:relative;width:var(--wide);height:var(--height);transform-style:preserve-3d;transform:rotateY(var(--angle)) scale(var(--zoom))}
.intro .box-face{position:absolute;top:0;left:50%;width:var(--wide);height:var(--height);max-width:none;border-radius:0;box-shadow:none;object-fit:fill;backface-visibility:hidden;pointer-events:none}
.box-face.front{transform:translateX(-50%) translateZ(calc(var(--deep)/2))}
.box-face.back{transform:translateX(-50%) rotateY(180deg) translateZ(calc(var(--deep)/2))}
.intro .box-face.side{width:var(--deep)}
.box-face.right{transform:translateX(-50%) rotateY(90deg) translateZ(calc(var(--wide)/2))}
.box-face.left{transform:translateX(-50%) rotateY(-90deg) translateZ(calc(var(--wide)/2))}
.box-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.4rem}
.box-controls button{min-width:42px;min-height:42px;padding:.35rem .6rem;border:1px solid #aebdac;border-radius:.55rem;background:#fffcf3;color:#17392d;font:600 .9rem/1 var(--type);cursor:pointer}
.box-controls button:hover{background:#eff2e6}
.box-controls button:focus-visible{outline:2px solid #8b602a;outline-offset:2px}
.zoom-readout{min-width:3.2rem;text-align:center;font:600 .8rem/1 var(--type);font-variant-numeric:tabular-nums}
.box-viewer figcaption{text-align:center}
@media(max-width:620px){.box-model{--wide:clamp(8rem,40vw,10.5rem)}}

