/* BORONDO V8.1 — interior-editorial polish */
:root{
  --bg:#f7f6f2;
  --paper:#ffffff;
  --ink:#191814;
  --muted:#5e5a52;
  --muted-soft:#746f66;
  --line:#d9d5cc;
  --green:#315847;
  --soft:#eef2ee;
  --danger:#94463f;
  --radius:10px;
  --shadow:0 2px 12px rgba(29,27,23,.035);
  font-family:"Helvetica Neue",Helvetica,Arial,-apple-system,BlinkMacSystemFont,sans-serif;
}

html,body{background:var(--bg);color:var(--ink);}
body{font-size:13px;line-height:1.42;letter-spacing:.002em;}
button,input,textarea{font-family:inherit;}

/* Elegant brand only; UI headings stay modern sans-serif */
.v8-brand h1{
  font-family:"Baskerville","Iowan Old Style","Times New Roman",serif;
  font-weight:400;
  font-size:29px;
  letter-spacing:.015em;
}
.v8-pagehead h2,.v8-collection-head h2,.v8-collection b,.v8-prod-copy b,.v8-drawer-head h3{
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif !important;
  letter-spacing:-.018em;
}
.v8-pagehead h2,.v8-collection-head h2{font-weight:600;}
.v8-collection b{font-weight:600;}
.v8-prod-copy b{font-weight:600;}

/* More breathing room from viewport edges, without giant panels */
.v8-top{padding-left:max(28px,env(safe-area-inset-left));padding-right:max(28px,env(safe-area-inset-right));}
.v8-shell{max-width:1160px;padding:24px 32px 92px;}
.v8-pagehead{margin-bottom:18px;}
.v8-pagehead p,.v8-collection-meta,.v8-prod-copy small,.v8-stat small,.v8-field span,.v8-variant-head small,.v8-media-title span,.v8-change-row small,.v8-collection small{
  color:var(--muted) !important;
}
.v8-pagehead p{font-size:12px;}
.v8-kicker{font-size:9px;color:var(--green);letter-spacing:.14em;}

/* Less boxy, more furniture-catalog/editorial */
.v8-collection,.v8-products,.v8-panel,.v8-variant,.v8-product-detail{
  box-shadow:none;
}
.v8-collection{border-radius:9px;}
.v8-products{border-radius:9px;}
.v8-panel{border-radius:9px;padding:10px 12px;}
.v8-product-detail{padding:10px 12px 12px;background:#faf9f6;}
.v8-tabs{padding:3px;border-radius:8px;background:#eceae4;}
.v8-tabs button{padding:6px 8px;color:#514e47;font-weight:600;}
.v8-btn{font-weight:600;padding:7px 10px;}
.v8-search{padding:8px 10px;}
.v8-field input,.v8-field textarea{padding:7px 9px;border-radius:7px;}
.v8-field textarea{min-height:82px;}

/* COLLECTIONS — consistent crop-free editorial image frames */
.v8-collection-grid{gap:14px;}
.v8-collection .img{
  height:auto;
  aspect-ratio:4/3;
  background:#f0eee8;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px;
}
.v8-collection .img img{
  width:100%;
  height:100%;
  object-fit:contain !important;
  object-position:center !important;
}
.v8-collection .copy{padding:10px 11px 12px;}
.v8-collection b{font-size:15px;line-height:1.15;}
.v8-collection small{font-size:10px;margin-top:5px;}

/* PRODUCTS — every thumbnail sits on the same visual baseline */
.v8-product-summary{grid-template-columns:52px minmax(0,1fr) auto auto 20px;gap:12px;padding:8px 10px;min-height:70px;}
.v8-product-summary img{
  width:52px;
  height:52px;
  aspect-ratio:1;
  object-fit:contain !important;
  object-position:center !important;
  padding:3px;
  border-radius:7px;
  background:#f0eee8;
}
.v8-prod-copy{align-self:center;min-width:0;}
.v8-prod-copy b{font-size:15px;line-height:1.18;}
.v8-prod-copy small{font-size:9px;margin-top:3px;line-height:1.3;}
.v8-price{font-size:11px;}
.v8-stat b{font-size:14px;}
.v8-stat small{font-size:9px;}

/* Variant rows align image + text, without oversized cards */
.v8-variant{border-radius:8px;margin-bottom:6px;}
.v8-variant-head{grid-template-columns:38px minmax(0,1fr) auto 18px;gap:9px;padding:6px 8px;min-height:52px;}
.v8-variant-head img{
  width:38px;
  height:38px;
  aspect-ratio:1;
  object-fit:contain !important;
  object-position:center !important;
  padding:2px;
  background:#f0eee8;
}
.v8-variant-head b{font-size:12px;line-height:1.2;}
.v8-variant-head small{font-size:9px;line-height:1.25;}
.v8-variant-body{padding:8px 9px;}

/* Variant media — strict square grid: all images aligned */
.v8-media-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(68px,68px));
  gap:7px;
  align-items:start;
}
.v8-media-tile{
  width:68px;
  height:68px;
  min-height:68px;
  aspect-ratio:1;
  border-radius:7px;
  display:block;
  background:#f0eee8;
}
.v8-media-tile img{
  width:100%;
  height:100%;
  object-fit:contain !important;
  object-position:center !important;
  padding:3px;
}
.v8-media-flags{inset:auto 3px 3px 3px;}
.v8-media-flags button{width:22px;height:20px;font-size:10px;}

/* Product gallery — same square rhythm */
.v8-gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(104px,104px));
  gap:8px;
  align-items:start;
}
.v8-gallery-item{
  width:104px;
  border-radius:8px;
  background:#f0eee8;
}
.v8-gallery-item img{
  width:104px;
  height:104px;
  aspect-ratio:1;
  object-fit:contain !important;
  object-position:center !important;
  padding:4px;
}
.v8-gallery-item .actions button{font-size:9px;padding:5px 2px;color:#37342f;}

/* Higher-contrast helper text */
.v8-live{color:#284c3c;font-weight:700;}
.v8-tabs button{color:#4f4b44;}
.v8-empty{color:#5f5b53;}
::placeholder{color:#777269;opacity:1;}

/* History bar: compact and readable */
.v8-historybar{width:min(660px,calc(100% - 40px));border-radius:11px;padding:6px 7px;gap:5px;}
.v8-historybar button{padding:7px 9px;font-size:11px;font-weight:600;}
.v8-change-row{padding:7px 0;}

@media(max-width:900px){
  .v8-top{padding-left:20px;padding-right:20px;}
  .v8-shell{padding:18px 20px 92px;}
  .v8-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;}
}

@media(max-width:620px){
  body{font-size:12.5px;}
  .v8-top{height:54px;padding-left:16px;padding-right:16px;}
  .v8-brand h1{font-size:24px;}
  .v8-shell{padding:16px 16px 90px;}
  .v8-pagehead{margin-bottom:14px;}
  .v8-pagehead h2,.v8-collection-head h2{font-size:19px;}
  .v8-pagehead p{font-size:11px;line-height:1.45;}
  .v8-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .v8-collection .img{aspect-ratio:1/1; padding:6px;}
  .v8-collection .copy{padding:8px 9px 10px;}
  .v8-collection b{font-size:14px;}
  .v8-product-summary{grid-template-columns:44px minmax(0,1fr) auto 16px;gap:9px;padding:7px 8px;min-height:60px;}
  .v8-product-summary img{width:44px;height:44px;}
  .v8-prod-copy b{font-size:14px;}
  .v8-prod-copy small{font-size:9px;}
  .v8-price{font-size:10px;}
  .v8-panel{padding:9px;}
  .v8-media-grid{grid-template-columns:repeat(4,58px);gap:6px;}
  .v8-media-tile{width:58px;height:58px;min-height:58px;}
  .v8-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
  .v8-gallery-item{width:auto;}
  .v8-gallery-item img{width:100%;height:auto;aspect-ratio:1/1;}
  .v8-historybar{width:calc(100% - 24px);bottom:8px;}
  .v8-historybar button{padding:7px 8px;font-size:10px;}
}
