/* Hodaya dedication — product-page choice + studio. Ported from design/עמוד מוצר.dc.html (#studio). */

.hd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hd-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.hd-set legend { padding: 0; }
.hd-muted { font-size: 12px; color: #6B655C; }

/* ----- choice inside the product form ----- */
[data-ded-choice] { margin-top: 24px; }
.hd-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 14px; }
.hd-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.hd-opt { display: block; position: relative; cursor: pointer; }
.hd-opt-box { box-sizing: border-box; height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; background: #FFFFFF; color: #0E0E0E; border: 1px solid #DCD4C7; transition: background .35s ease, color .35s ease, border-color .35s ease; }
.hd-opt input:checked + .hd-opt-box { background: #0E0E0E; color: #F6F2EB; border-color: #0E0E0E; }
.hd-opt input:focus-visible + .hd-opt-box { outline: 2px solid #85672E; outline-offset: 3px; }
.hd-golddot { width: 8px; height: 8px; border-radius: 50%; background: #C9A96E; }
.hd-plus { font-size: 12px; opacity: .75; }
.hd-summary { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #0E0E0E; color: #F6F2EB; }
.hd-summary[hidden] { display: none; }
.hd-summary-text { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; min-width: 0; }
.hd-kicker { font-size: 11px; letter-spacing: .2em; color: #C9A96E; }
.hd-summary-go { font-size: 12px; letter-spacing: .14em; white-space: nowrap; }
.hd-summary:focus-visible { outline-color: #C9A96E; outline-offset: -4px; }
.hd-saved { margin: 10px 0 0; font-size: 12.5px; color: #3E5A3A; }

/* ----- studio section ----- */
.hd-studio { background: #F4EFE7; border-top: 1px solid #E7E0D4; border-bottom: 1px solid #E7E0D4; scroll-margin-top: 84px; }
.hd-studio:focus { outline: none; }
.hd-wrap { max-width: 1440px; margin: 0 auto; padding: clamp(56px,6vw,96px) clamp(16px,3vw,40px); box-sizing: border-box; }
.hd-label { display: flex; align-items: center; gap: 20px; font-size: 11px; letter-spacing: .38em; color: #85672E; }
.hd-label span[aria-hidden] { flex: 1; height: 1px; background: #DCD2C2; }
.hd-title { margin: 18px 0 0; font-size: clamp(28px,2.8vw,44px); font-weight: 200; line-height: 1.15; letter-spacing: -.02em; }
.hd-lead { margin: 14px 0 0; font-size: 15px; line-height: 1.9; color: #5E584F; max-width: 620px; }
.hd-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(28px,4vw,72px); align-items: start; margin-top: clamp(28px,3.5vw,48px); }
.hd-step { margin: 0 0 12px; font-size: 13px; font-weight: 300; letter-spacing: .12em; color: #5E584F; }
.hd-step-gap { margin-top: 30px; }
.hd-step-row { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 0 12px; }
.hd-step-row .hd-step { margin: 0; }
.hd-link { background: transparent; border: 0; padding: 0; cursor: pointer; font-size: 12px; color: #85672E; text-decoration: underline; text-underline-offset: 3px; }

/* templates */
.hd-tpls { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.hd-tpls::-webkit-scrollbar { display: none; }
.hd-tpl { position: relative; display: block; cursor: pointer; }
.hd-tpl-box { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 8px; background: #FFFFFF; border: 1px solid #E7E0D4; text-align: center; transition: border-color .3s ease; height: 100%; box-sizing: border-box; }
.hd-tpl input:checked + .hd-tpl-box { border-color: #0E0E0E; box-shadow: 0 0 0 1px #0E0E0E; }
.hd-tpl input:focus-visible + .hd-tpl-box { outline: 2px solid #85672E; outline-offset: 3px; }
.hd-tpl-thumb { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; background: #FBFAF7; padding: 8%; box-sizing: border-box; overflow: hidden; }
.hd-art { position: relative; display: block; width: 100%; container-type: inline-size; }
.hd-tpl-name { font-size: 11.5px; line-height: 1.3; color: #0E0E0E; }

/* lines */
.hd-lines { display: flex; flex-direction: column; gap: 8px; }
.hd-line { background: #FFFFFF; border: 1px solid #E7E0D4; padding: 12px; }
.hd-text { width: 100%; box-sizing: border-box; height: 46px; padding: 0 12px; border: 1px solid #E7E0D4; background: #FFFFFF; font-size: 17px; color: #0E0E0E; }
.hd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hd-text + .hd-tools { margin-top: 8px; }
.hd-tools-label { font-size: 12.5px; color: #5E584F; margin-left: 4px; }
.hd-select { position: relative; flex: 1 1 130px; }
.hd-select select { width: 100%; height: 36px; padding: 0 10px 0 28px; border: 1px solid #E7E0D4; background: #FFFFFF; font-size: 13px; color: #0E0E0E; cursor: pointer; appearance: none; -webkit-appearance: none; border-radius: 0; }
.hd-select::after { content: '▼'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 10px; color: #85672E; pointer-events: none; }
.hd-size { display: flex; align-items: center; height: 36px; border: 1px solid #E7E0D4; box-sizing: border-box; }
.hd-size button { width: 32px; height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 15px; color: #5E584F; }
.hd-size output { min-width: 28px; text-align: center; font-size: 12.5px; }
.hd-btn { height: 36px; min-width: 36px; padding: 0 10px; border: 1px solid #E7E0D4; background: #FFFFFF; color: #0E0E0E; cursor: pointer; font-size: 12.5px; box-sizing: border-box; }
.hd-btn-b { font-size: 14px; font-weight: 700; padding: 0; width: 36px; }
.hd-btn-x { padding: 0; width: 36px; font-size: 13px; color: #6B655C; }
.hd-btn[aria-pressed="true"] { background: #0E0E0E; color: #F6F2EB; border-color: #0E0E0E; }
.hd-studio input:focus, .hd-studio select:focus { border-color: #0E0E0E; }
.hd-adds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hd-add { height: 42px; padding: 0 16px; border: 1px dashed #B8A98E; background: transparent; cursor: pointer; font-size: 13px; color: #4A453E; }
.hd-add:disabled { opacity: .45; cursor: not-allowed; }
.hd-error { margin: 12px 0 0; font-size: 13px; color: #9A3B2E; }
.hd-line.is-wide { border-color: #9A3B2E; }
.hd-line.is-wide .hd-text { border-color: #9A3B2E; }

/* foil */
.hd-foils { display: flex; gap: 8px; }
.hd-foil { position: relative; cursor: pointer; }
.hd-foil-box { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border: 1px solid #DCD4C7; background: #FFFFFF; font-size: 14px; color: #0E0E0E; box-sizing: border-box; }
.hd-foil input:checked + .hd-foil-box { border-color: #0E0E0E; }
.hd-foil input:focus-visible + .hd-foil-box { outline: 2px solid #85672E; outline-offset: 3px; }
.hd-foil-dot { width: 14px; height: 14px; border-radius: 50%; }

/* preview */
.hd-prev { position: sticky; top: 110px; background: #F4EFE7; padding-bottom: 6px; }
.hd-cover { position: relative; aspect-ratio: 3/4; max-width: 460px; margin: 0 auto; background: linear-gradient(160deg,#FFFFFF 0%,#F6F5F2 55%,#ECEAE5 100%); box-shadow: 0 30px 60px -30px rgba(14,14,14,.35), 0 2px 0 rgba(255,255,255,.8) inset; display: flex; align-items: center; justify-content: center; padding: 9%; box-sizing: border-box; }
.hd-frame { position: absolute; border: 1px solid var(--hd-frame, #A8843F); }
.hd-frame-1 { inset: 4.5%; opacity: .55; }
.hd-frame-2 { inset: 6%; opacity: .3; }
.hd-pv { position: relative; width: 100%; container-type: inline-size; }
.hd-meta { display: flex; justify-content: center; gap: 14px; margin-top: 14px; font-size: 12px; color: #6B655C; }

@media (max-width: 1000px) {
	.hd-grid { grid-template-columns: minmax(0,1fr); }
	.hd-prev { order: -1; top: 64px; z-index: 5; }
	.hd-cover { aspect-ratio: auto; height: 300px; max-width: none; padding: 18px; }
	.hd-pv { width: auto !important; height: 100%; max-width: 100%; }
}
@media (max-width: 760px) {
	.hd-tpls { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 104px; overflow-x: auto; scrollbar-width: none; padding: 3px 3px 6px; margin: -3px; }
	.hd-wrap { padding: 48px 16px 40px; }
	.hd-cover { height: 230px; padding: 14px; }
	.hd-label { justify-content: center; }
	.hd-label span[aria-hidden] { flex: 0 0 36px; }
	.hd-row { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
	.hd-opt-box, .hd-tpl-box { transition: none; }
}
