:root { color-scheme: light; --green:#2f6f49; --green-dark:#214f35; --soft:#edf5ef; --line:#d5e1d8; --text:#26332b; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:#fff; color:var(--text); font:16px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif; }
a { color:var(--green-dark); }
img,video { display:block; max-width:100%; }
.site-header,.site-footer { padding:1rem clamp(1rem,4vw,3rem); background:var(--soft); }
.site-header a { font-weight:700; text-decoration:none; }
main { width:min(1180px,calc(100% - 2rem)); margin:2rem auto; }
.product { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr); grid-template-areas:"media title" "media facts" "media description" "media action"; gap:1rem 2rem; align-items:start; }
.product-title { grid-area:title; margin:0; font-size:clamp(1.7rem,3vw,2.6rem); line-height:1.15; }
.media-gallery { grid-area:media; display:grid; grid-template-columns:88px minmax(0,1fr); gap:.8rem; min-width:0; }
.media-stage { position:relative; min-height:360px; background:#f7f7f5; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.media-stage>button { width:100%; height:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
.media-stage img,.media-stage video { width:100%; height:100%; max-height:680px; object-fit:contain; }
.media-item { display:none; height:100%; }
.media-item.is-active { display:block; }
.thumbnails { grid-row:1; display:flex; flex-direction:column; gap:.55rem; max-height:680px; overflow:auto; }
.thumbnail { flex:0 0 78px; padding:2px; border:2px solid transparent; border-radius:8px; background:#fff; cursor:pointer; }
.thumbnail.is-active { border-color:var(--green); }
.thumbnail img,.thumbnail video { width:72px; height:72px; object-fit:contain; }
.media-caption { grid-column:1/-1; margin:0; color:#55625a; font-size:.92rem; }
.facts { grid-area:facts; margin:0; padding:1rem; display:grid; grid-template-columns:auto 1fr; gap:.35rem 1rem; background:var(--soft); border-radius:10px; }
.facts dt { font-weight:700; }
.facts dd { margin:0; }
.description { grid-area:description; }
.shop-action { grid-area:action; display:inline-block; justify-self:start; padding:.8rem 1.15rem; border-radius:8px; background:var(--green); color:#fff; font-weight:700; text-decoration:none; }
.recommendations { margin-top:3rem; }
.card-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.card { min-width:0; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.card a { display:block; height:100%; text-decoration:none; color:inherit; }
.card img { width:100%; height:auto; object-fit:contain; background:#f7f7f5; }
.card-body { padding:.8rem; }
.card h3 { margin:0 0 .35rem; font-size:1rem; line-height:1.3; }
.card p { margin:0; color:#55625a; font-size:.9rem; }
.site-footer { margin-top:3rem; display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; }
.lightbox { width:min(96vw,1100px); max-height:96vh; padding:0; border:0; border-radius:10px; background:#111; color:#fff; }
.lightbox::backdrop { background:rgba(0,0,0,.82); }
.lightbox-content { position:relative; min-height:70vh; display:grid; place-items:center; }
.lightbox img,.lightbox video { max-width:92vw; max-height:86vh; object-fit:contain; }
.lightbox-close,.lightbox-prev,.lightbox-next { position:absolute; z-index:2; border:0; border-radius:999px; background:rgba(0,0,0,.65); color:#fff; cursor:pointer; }
.lightbox-close { top:.7rem; right:.7rem; width:44px; height:44px; font-size:1.5rem; }
.lightbox-prev,.lightbox-next { top:50%; width:46px; height:46px; font-size:1.5rem; }
.lightbox-prev { left:.7rem; } .lightbox-next { right:.7rem; }
.lightbox-position { position:absolute; left:50%; bottom:.55rem; transform:translateX(-50%); padding:.25rem .65rem; border-radius:999px; background:rgba(0,0,0,.65); }
@media (max-width:900px) {
  .product { grid-template-columns:1fr; grid-template-areas:"title" "media" "facts" "description" "action"; }
  .media-gallery { grid-template-columns:1fr; }
  .thumbnails { grid-row:auto; order:2; flex-direction:row; max-height:none; overflow-x:auto; }
  .media-stage { order:1; }
  .media-caption { order:3; }
  .card-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:600px) {
  main { width:min(100% - 1rem,1180px); margin:1rem auto; }
  .media-stage { min-height:280px; }
  .card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
  .card-body { padding:.6rem; }
}
.product-hero { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr); grid-template-areas:"media title" "media facts" "media description" "media action"; gap:1rem 2rem; align-items:start; }
.product-media { grid-area:media; min-width:0; }
.media-layout { display:grid; grid-template-columns:88px minmax(0,1fr); gap:.8rem; }
.thumbnail-strip { display:flex; flex-direction:column; gap:.55rem; max-height:680px; overflow:auto; }
.media-thumb { position:relative; flex:0 0 78px; padding:2px; border:2px solid transparent; border-radius:8px; background:#fff; cursor:pointer; }
.media-thumb.active { border-color:var(--green); }
.media-thumb img { width:72px; height:72px; object-fit:contain; }
.play-symbol { position:absolute; inset:0; display:grid; place-items:center; color:#fff; text-shadow:0 1px 5px #000; }
.gallery-open { cursor:pointer; }
.stage-item { display:none; margin:0; height:100%; }
.stage-item.active { display:block; }
.stage-item img,.stage-item video { width:100%; max-height:680px; object-fit:contain; }
.large-image-button { width:100%; padding:0; border:0; background:transparent; }
.image-caption { color:#55625a; }
.technical-data { grid-area:facts; margin:0; padding:1rem; background:var(--soft); border-radius:10px; }
.technical-data div { display:grid; grid-template-columns:auto 1fr; gap:1rem; }
.technical-data dt { font-weight:700; }
.technical-data dd { margin:0; }
.product-description { grid-area:description; }
.shop-action { grid-area:action; }
.primary-button { display:inline-block; padding:.8rem 1.15rem; border-radius:8px; background:var(--green); color:#fff; font-weight:700; text-decoration:none; }
.recommendation-section { margin-top:3rem; }
.recommendation-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:1rem; }
.recommendation-card { min-width:0; align-self:start; border:1px solid var(--line); border-radius:10px; overflow:hidden; color:inherit; background:#fff; }
.card-image { display:block; aspect-ratio:4/3; background:#f7f7f5; }
.card-image img { width:100%; height:100%; object-fit:contain; }
.card-title { display:block; padding:.8rem; font-weight:700; color:inherit; text-decoration:none; overflow-wrap:anywhere; }
.card-description { margin:0 .8rem .8rem; }
.card-description summary { cursor:pointer; font-weight:600; }
.card-description p { margin:.5rem 0 0; font-size:.9rem; }
.gallery-dialog { width:min(96vw,1100px); max-height:96vh; overflow:auto; border:0; border-radius:10px; background:#111; color:#fff; }
.gallery-dialog::backdrop { background:rgba(0,0,0,.82); }
.dialog-toolbar,.dialog-navigation { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.dialog-view { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1rem; padding:1rem 0; }
.dialog-item { display:grid; margin:0; min-width:0; place-items:center; background:#fff; }
.dialog-item img,.dialog-item video { width:100%; height:100%; max-height:70vh; object-fit:contain; }
@media (max-width:1199px) {
  .media-layout { grid-template-columns:1fr; }
  .thumbnail-strip { order:2; flex-direction:row; max-height:none; overflow-x:auto; }
  .stage-wrap { order:1; }
  .recommendation-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:900px) {
  .product-hero { grid-template-columns:1fr; grid-template-areas:"title" "media" "facts" "description" "action"; }
}
@media (max-width:767px) {
  .recommendation-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
  .media-thumb:nth-of-type(n+5) { display:none; }
}
@media (max-width:480px) { .media-thumb:nth-of-type(n+4) { display:none; } }