.he-editor-controls,.he-tile-row { display:flex; flex-wrap:wrap; gap:12px; align-items:center; border:1px solid #e6ddca; border-radius:8px; padding:12px; margin:10px 0; }
.he-editor-controls input[type=number] { width:58px; }
.he-tile-row label { display:grid; gap:4px; }
.he-tile-row label:has(input[type=checkbox]) { display:block; }
.he-tile-preview { width:92px; aspect-ratio:2/1; background:#f5f1e9; }
.he-tile-preview img { width:100%; height:100%; object-fit:cover; }
.he-style-editor { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:24px; }
.he-style-editor section { border:1px solid #e6ddca; border-radius:10px; padding:16px; min-width:0; }
.he-style-editor :is(input,textarea,select) { max-width:100%; }
.he-style-editor :is(input[name=title],input[name=subtitle],textarea,input[type=url]) { display:block; width:100%; }
.he-style-editor input[type=number] { width:68px; }
.he-style-editor section > :is(p,div,fieldset,h3) { margin-block:12px; }
.he-style-editor :is(input:not([type=radio],[type=range],[type=file]), textarea, select) { padding:8px; border:1px solid #d9d1c5; border-radius:5px; background:#fff; }
.he-style-editor button:not(.he-style-pin) { padding:6px 10px; border:1px solid #d9d1c5; border-radius:5px; background:#fff; color:#141414; cursor:pointer; }
.he-style-options,.he-style-range,.he-style-upload { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.he-style-options { align-items:end; gap:18px; }
.he-style-editor fieldset { border:0; }
.he-style-align label { display:inline-block; padding:6px 8px; border:1px solid #e6ddca; border-radius:5px; }
.he-style-range > label { flex-basis:100%; }
.he-style-range input[type=range] { width:min(50%,220px); accent-color:#805b26; }
.he-style-upload { margin-bottom:8px; }
.he-style-upload input[type=file] { flex:1 1 180px; min-width:0; }
.he-style-search { padding:12px; border:1px solid #e6ddca; border-radius:8px; background:#f9f7f3; }
.he-style-search p { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.he-style-search label { display:grid; grid-template-columns:70px minmax(0,1fr); align-items:center; flex:1 1 180px; }
#he-style-preview-empty:not([hidden]) { display:grid; place-items:center; min-height:225px; border:1px dashed #d9d1c5; border-radius:8px; background:#f9f7f3; color:#655f57; }
#he-style-preview .he-style-pin { touch-action:none; cursor:grab; }
#he-style-tags { counter-reset:style-tag; }
#he-style-tags [data-style-tag] { counter-increment:style-tag; display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-block:8px; }
.he-style-tag-number::before { content:counter(style-tag); color:#805b26; }
.he-style-tag-thumb { width:38px; height:38px; border-radius:4px; object-fit:cover; }
.he-style-tag-name { flex:1 1 110px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#he-style-tags input:first-of-type { width:95px; }
.he-style-page { text-align:center; }
.he-style-page h1 { color:#141414; font-size:clamp(22px,3vw,34px); margin-bottom:8px; }
.he-style-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(8px,1.4vw,24px); padding:0; list-style:none; margin:22px 0; text-align:left; }
.he-style-grid a { display:block; position:relative; }
.he-style-grid img { width:100%; aspect-ratio:3/4; object-fit:cover; display:block; border-radius:9px; }
.he-style-grid strong { display:block; margin-top:7px; }
.he-style-count { position:absolute; top:6px; left:6px; background:#141414dc; color:#e3c68e; padding:3px 7px; border-radius:8px; }
.he-style-image { position:relative; width:min(100%,var(--style-width, 100%)); margin:12px auto; }
.he-style-image[data-align=left] { margin-inline-start:0; }
.he-style-image[data-align=right] { margin-inline-end:0; }
.he-style-image img { width:100%; height:auto; display:block; }
.he-style-image img[hidden] { display:none; }
.he-style-pin { position:absolute; transform:translate(-50%,-50%); display:grid; place-items:center; width:29px; height:29px; border:2px solid #fff; border-radius:50%; background:#805b26; color:#fff; font-weight:700; cursor:pointer; }
.he-style-pin:is(:hover,:focus-visible) { background:#141414; color:#e3c68e; }
.he-style-pin-card { display:none; position:absolute; inset-inline-start:100%; inset-block-start:0; width:min(var(--style-hover-width,200px),42vw); padding:8px; background:#141414; color:#e3c68e; border:1px solid #c9a96e; font-size:var(--style-hover-font,13px); overflow-wrap:anywhere; text-align:left; }
.he-style-pin[data-side=left] .he-style-pin-card { inset-inline:auto 100%; }
.he-style-pin:is(:hover,:focus-visible) { z-index:1; }
.he-style-pin:is(:hover,:focus-visible) .he-style-pin-card { display:block; }
@media(max-width:767px) { .he-style-editor{grid-template-columns:1fr} .he-style-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }

.he-style-detail { box-sizing:border-box; max-width:920px; margin-inline:auto; padding-inline:clamp(12px,3vw,20px); text-align:left; }
.he-style-detail > .he-style-image > img { border-radius:12px; }
.he-style-detail .he-style-pin { width:34px; height:34px; border:1px solid #fff; background:#21212180; color:#fff; box-shadow:0 0 0 5px #ffffff45; }
.he-style-detail .he-style-pin:is(:hover,:focus-visible) { background:#141414; color:#e3c68e; }
.he-style-image-note { position:absolute; inset:auto auto 12px 50%; transform:translateX(-50%); padding:6px 12px; border-radius:24px; background:#141414c9; color:#fff; font-size:clamp(10px,2.5vw,13px); white-space:nowrap; pointer-events:none; }
.he-style-detail-heading,.he-style-recommend { border-top:1px solid #e6ddca; margin-top:32px; padding-top:16px; }
.he-style-detail-heading h1 { margin:0; text-align:left; }
.he-style-detail-heading p { margin-top:8px; }
.he-style-connected { margin-top:24px; }
.he-style-connected h2 { text-align:center; font-size:18px; margin-bottom:16px; }
.he-style-connected h2 span,.he-style-product-info small { color:#805b26; }
.he-style-connected ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:0; list-style:none; }
.he-style-connected a { display:flex; align-items:center; gap:clamp(5px,2vw,12px); padding:10px; border:1px solid #e6ddca; border-radius:12px; background:#fff; color:#141414; height:100%; }
.he-style-product-thumb { position:relative; flex:0 0 clamp(36px,13vw,76px); }
.he-style-product-thumb img { width:100%; height:auto; aspect-ratio:1; object-fit:cover; border-radius:8px; display:block; }
.he-style-product-thumb > span { position:absolute; inset:-5px auto auto -4px; display:grid; place-items:center; min-width:20px; height:20px; border-radius:50%; background:#141414; color:#fff; font-size:11px; }
.he-style-product-info { display:grid; min-width:0; gap:4px; font-size:clamp(11px,2.8vw,14px); }
.he-style-product-info > span { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.he-style-product-arrow { margin-inline-start:auto; color:#805b26; }
.he-style-recommend h2 { font-size:17px; }
.he-style-back { margin-block:38px 24px; text-align:center; }
.he-style-back a { display:inline-block; border:1px solid #e6ddca; border-radius:24px; padding:9px 18px; }
