/* AR Shopfronts: Shopfront builder page */

.tool { position: relative; background: var(--glass); padding: clamp(14px, 2.4vh, 30px) 0 clamp(56px, 8vh, 90px); overflow: clip; }
.tool::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(37, 44, 80, .04) 0 1px, transparent 1px 96px); pointer-events: none; }
.tool__in { position: relative; }
.tool__head { display: grid; justify-items: center; text-align: center; gap: 6px; margin-bottom: clamp(14px, 2.2vh, 24px); }
.tool__title { font-family: 'Archivo', 'Archivo Head Fallback', Arial, sans-serif; font-stretch: var(--fs, 116%); font-weight: 800; font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.015em; color: var(--navy); margin: 0; }
.tool__line { margin: 0; color: var(--muted); font-size: clamp(1rem, 1.1vw, 1.12rem); }
.tool__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }

/* stage */
.stage { margin: 0; position: sticky; top: calc(var(--hdr-solid) + 16px); }
.stage__svg { display: block; width: 100%; height: auto; max-height: calc(100svh - var(--hdr-h) - 230px); border-radius: var(--r); background: #C9A877; box-shadow: 0 30px 70px rgba(20, 24, 48, .25); touch-action: none; }
.stage__svg .sign-text, .stage__svg .sign-shadow { font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: .02em; }
.stage__svg .sign-shadow { fill: #000; opacity: 0; }
.stage__svg .grip-text { font-family: var(--body); font-weight: 700; font-size: 15px; fill: #252C50; }
.stage__grip { cursor: grab; outline: none; }
.stage__grip:focus-visible rect { stroke: #fff; stroke-width: 3; }
.stage__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; font-size: 15px; color: var(--muted); }
.stage__cap [data-cap-name] { font-family: var(--display); font-stretch: 116%; font-weight: 800; color: var(--navy); }
.stage__cap-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--navy); opacity: .4; }
.stage__noscript { margin-top: 10px; font-weight: 600; }

/* controls */
.ctrl { background: #fff; border-radius: var(--r); padding: clamp(16px, 1.8vw, 24px); box-shadow: 0 20px 50px rgba(20, 24, 48, .12); display: grid; gap: 14px; align-content: start; }
.ctrl__tabs { position: relative; display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); }
.ctrl__tab { position: relative; min-height: 46px; padding: 10px 12px; border: 0; background: none; font-weight: 700; font-size: 15px; color: var(--muted); white-space: nowrap; transition: color .25s; }
.ctrl__tab:hover, .ctrl__tab.is-on { color: var(--navy); }
.ctrl__tab-bar { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--navy); border-radius: 2px; }
.ctrl__panes { display: grid; gap: 16px; min-height: 248px; align-content: start; }
.ctrl__pane { display: grid; gap: 12px; align-content: start; }
.ctrl__pane[hidden] { display: none; }
.ctrl__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.ctrl__legend { display: block; padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ctrl__name { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 18px; }
.ctrl__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 15px; border-radius: var(--pill); border: 1.5px solid rgba(37, 44, 80, .22); background: #fff; color: var(--navy); font-weight: 600; font-size: 14.5px; transition: background .25s, color .25s, border-color .25s; }
.opt:hover { border-color: var(--navy); }
.opt.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.opt__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.ctrl__swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(37, 44, 80, .25); transition: transform .3s var(--ease); }
.sw-btn:hover { transform: scale(1.08); }
.sw-btn.is-on { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--navy); }
.ctrl__hint { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.ctrl__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.ctrl__night { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 4px; border: 0; background: none; font-weight: 700; color: var(--navy); }
.ctrl__switch { width: 50px; height: 28px; border-radius: 14px; background: #D3D8E2; position: relative; transition: background .3s; }
.ctrl__switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .35s var(--ease); }
.ctrl__night[aria-pressed="true"] .ctrl__switch { background: var(--navy); }
.ctrl__night[aria-pressed="true"] .ctrl__switch i { transform: translateX(22px); background: var(--hivis); }
.ctrl__reset { min-height: 44px; padding: 8px 4px; border: 0; background: none; color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.ctrl__send { justify-self: stretch; }

/* shutter types */
.kinds { background: #fff; padding: clamp(70px, 10vh, 120px) 0; overflow: clip; }
.kinds__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(24px, 4vh, 40px); }
.kinds__head .h2, .kinds__head .lede { margin: 0; }
.kinds__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kind { margin: 0; }
.kind__media { position: relative; height: min(42vh, 380px); border-radius: var(--r); overflow: hidden; }
.kind__img { width: 100%; height: 100%; object-fit: cover; }
.kind__name { font-family: var(--display); font-stretch: 112%; font-weight: 720; font-size: 1.25rem; color: var(--navy); margin: 16px 0 6px; }
.kind__line { margin: 0; color: var(--muted); font-size: 15.5px; }
.kinds__price { margin: clamp(26px, 4vh, 40px) 0 0; padding: 18px 22px; border-left: 4px solid var(--hivis); background: var(--glass); border-radius: 0 var(--r) var(--r) 0; font-weight: 600; color: var(--navy); }
.kinds__price a { color: var(--navy); }

@media (max-width: 1100px) {
  .tool__grid { grid-template-columns: 1fr; }
  .stage { top: var(--hdr-solid); z-index: 3; background: var(--glass); padding: 8px 0 6px; margin: 0 -4px; }
  .stage__svg { max-height: 34svh; width: auto; max-width: 100%; margin-inline: auto; }
  .stage__cap { margin-top: 6px; font-size: 14px; line-height: 1.5; justify-content: flex-start; height: 4.6em; overflow: hidden; align-content: flex-start; }
  .kinds__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) { .kinds__head { grid-template-columns: 1fr; } .tool__head { justify-items: start; text-align: left; } .tool__title { min-height: 2.1em; } }
@media (max-width: 560px) { .ctrl__send { font-size: 15px; padding-inline: 16px; white-space: nowrap; } .ctrl__tab { padding-inline: 9px; font-size: 14.5px; } .kinds__grid { grid-template-columns: 1fr; } .kind__media { height: 260px; } .sw-btn { width: 44px; height: 44px; } }
.rm .tool::before { animation: none; }
