:root{--ink:#171717;--muted:#6f6a63;--line:#ddd8cf;--paper:#fff;--soft:#f3f0e9}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:linear-gradient(145deg,#f7f4ee,#ece7de);color:var(--ink)}
.wrap{width:min(1120px,calc(100% - 24px));margin:auto;padding:28px 0 50px}.card{max-width:720px;margin:auto;background:#fff;border-radius:24px;padding:30px;box-shadow:0 22px 60px rgba(0,0,0,.1)}.wide{max-width:1120px}
.brand{font-size:.75rem;letter-spacing:.18em;font-weight:800;color:#77716a;margin-bottom:8px;text-transform:uppercase}h1{font-size:clamp(2rem,5vw,3.4rem);letter-spacing:-.04em;margin:0 0 12px}h2{margin:34px 0 14px}.lead,.small,.hint,.muted{color:var(--muted)}.hint{font-size:.85rem;margin-top:6px}
.field{margin-bottom:18px}.field label{display:block;font-weight:750;margin-bottom:7px}input,textarea,select{width:100%;font:inherit;padding:13px 14px;border-radius:12px;border:1px solid var(--line);background:#fff}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
button,.button{display:inline-block;border:0;border-radius:12px;padding:13px 18px;background:#151515;color:#fff;font-weight:800;text-decoration:none;cursor:pointer}.secondary{background:#ece8df;color:#222}.darktext{color:#222}.publish{background:#0e6f3c}.danger{background:#a21d1d}
.error,.success{padding:12px 14px;border-radius:10px;margin:16px 0}.error{background:#ffe7e7;color:#7c1717}.success{background:#e7f6ec;color:#145c30}
.topline{display:flex;justify-content:space-between;gap:16px}.actions,.tabs,.publish-actions{display:flex;gap:8px;flex-wrap:wrap}.tabs{margin:22px 0}.tabs a{padding:8px 11px;border-radius:999px;background:#eeeae2;color:#333;text-decoration:none}
.statusline{color:var(--muted)}.status{display:inline-block;padding:4px 8px;border-radius:999px;background:#eeeae2;font-size:.82rem}.status.live{background:#daf1e2;color:#126235}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:left}.image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}.image-grid figure{margin:0}.image-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px}.image-grid figcaption{font-size:.8rem;color:var(--muted)}.code{font-family:monospace;font-size:.85rem}
.helpbox,.publish-help{margin-top:9px;padding:12px 14px;border-radius:12px;background:#f4f1eb;color:#5d5851;font-size:.84rem;line-height:1.45}.helpbox strong,.publish-help strong{color:#222}.helpbox ul,.publish-help ol{margin:8px 0;padding-left:18px}.helpbox li,.publish-help li{margin:4px 0}.publishbox{padding:20px;border:1px solid var(--line);border-radius:18px;background:#faf9f6}.publish-actions{margin-top:8px}.publish-help{margin-top:18px}.publish-help code{background:#fff;padding:2px 5px;border-radius:5px}

/* Public product page */
.product-body{background:#eeeae3}.preview-banner{position:sticky;top:0;z-index:20;background:#171717;color:#fff;text-align:center;padding:8px;font-weight:800;letter-spacing:.08em;font-size:.75rem}
.product-page{width:min(1180px,calc(100% - 24px));margin:24px auto 56px;background:var(--paper);border-radius:28px;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.12)}
.hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr);align-items:start}
.product-media{padding:28px;background:var(--soft)}.main-image{height:min(67vh,620px);display:flex;align-items:center;justify-content:center;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 10px 28px rgba(0,0,0,.06)}.main-image img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}.thumbs img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:10px;background:#fff}
.product-copy{padding:46px 48px 54px}.product-copy h1{font-size:clamp(2.4rem,5vw,4.8rem);line-height:.98}.product-lead{font-size:1.12rem;line-height:1.6;color:#5a554f}.shopify-block{margin:20px 0 24px}.placeholder-buy{padding:20px;border:2px dashed #d2ccc2;border-radius:14px;margin:20px 0;color:#817b72}.product-text,.detail-text{font-size:1rem;line-height:1.72;color:#5f5a54}
.details{padding:10px 48px 56px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.details article{padding:26px;border-top:1px solid var(--line);background:#fff}.details h2{margin:6px 0 12px}.eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#8a847b;margin-bottom:10px}.quote{font-style:italic}
.product-footer{text-align:center;color:#817b72;padding:0 20px 34px}

/* Style presets */
.style-luxury .product-copy h1,.style-luxury .details h2{font-family:Georgia,serif;font-weight:500}.style-luxury{--soft:#f4f0e7}
.style-warm{--paper:#fffaf3;--soft:#eee4d5}
.style-playful{--soft:#f4f0ff}.style-playful .product-copy h1{letter-spacing:-.02em}
.style-editorial .product-copy,.style-editorial .details{font-family:Georgia,serif}.style-editorial .brand,.style-editorial .eyebrow{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.style-technical .product-page{border-radius:8px}.style-technical .main-image{border-radius:6px}
.style-classic .product-copy h1{font-family:Georgia,serif}
.style-minimal .product-page{box-shadow:none}.style-minimal{--soft:#f7f7f5}

@media(max-width:780px){
.grid2{grid-template-columns:1fr}.topline{flex-direction:column}.hero{grid-template-columns:1fr}.product-page{margin:8px auto 28px;border-radius:18px}
.product-media{padding:14px}.main-image{height:auto;max-height:none}.main-image img{width:100%;height:auto;max-height:none}.thumbs{grid-template-columns:repeat(4,1fr)}
.product-copy{padding:26px 20px 34px}.details{grid-template-columns:1fr;padding:0 20px 36px}.details article{padding:22px 0}.product-copy h1{font-size:clamp(2.3rem,12vw,4rem)}
}
