.configurator-page { background: #101520; }
.configurator-section { min-height: 100vh; padding: clamp(2rem, 4vw, 4rem) 0 clamp(5rem, 9vw, 8rem); background: #101520; }
.configurator-loading { padding: 2rem; border-radius: 1rem; background: white; color: var(--muted); text-align: center; }
.configurator-loading.is-error { background: #fff0ed; color: #a63220; }
.configurator-top { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.configurator-card { min-width: 0; border: 1px solid rgba(16,21,32,.07); border-radius: .9rem; background: white; box-shadow: 0 15px 42px rgba(16,21,32,.055); }
.configurator-type { padding: 1rem 1.25rem 1.2rem; }
.configurator-type label { display: flex; align-items: center; gap: .65rem; margin-bottom: .7rem; color: #282d35; }
.configurator-step { width: 1.75rem; height: 1.75rem; display: inline-grid; flex: 0 0 1.75rem; place-items: center; border-radius: 50%; background: var(--orange); color: white; font-size: .62rem; font-weight: 800; letter-spacing: .04em; }
.configurator-type select, .configurator-card select, .configurator-card input { font: inherit; }
.configurator-type select, .configurator-card select, .configurator-sizes input { width: 100%; min-height: 2.9rem; padding: .66rem .75rem; border: 1px solid #d2d4d8; border-radius: .5rem; background: white; color: var(--ink); outline: none; }
.configurator-type select:focus, .configurator-card select:focus, .configurator-card input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,53,.13); }
.configurator-carousel { position: relative; padding: .55rem; }
.configurator-products { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: .65rem; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.configurator-products::-webkit-scrollbar { display: none; }
.configurator-product { position: relative; min-height: 215px; padding: .35rem; overflow: hidden; scroll-snap-align: start; border: 2px solid transparent; border-radius: 10px; background: #f8f8f7; color: var(--ink); cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.configurator-product:hover { border-color: rgba(255,107,53,.42); }
.configurator-product[aria-selected="true"] { border: 4px solid var(--orange); box-shadow: 0 9px 22px rgba(255,107,53,.32), 0 5px 14px rgba(16,21,32,.2); }
.configurator-product img { width: 100%; height: 190px; display: block; object-fit: contain; }
.carousel-arrow { position: absolute; z-index: 2; top: 50%; width: 3rem; height: 3rem; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: #34383e; cursor: pointer; font-size: 2.4rem; font-weight: 300; line-height: 1; box-shadow: 0 5px 16px rgba(16,21,32,.16); }
.carousel-prev { left: -3.7rem; }
.carousel-next { right: -3.7rem; }
.carousel-arrow:disabled { opacity: .25; cursor: default; }
.configurator-selected-product { max-width: 970px; justify-self: center; margin: -.15rem auto -.65rem; padding: .2rem 1rem 0; color: white; font-size: 1.05rem; font-weight: 800; line-height: 1.35; text-align: center; }
.configurator-product-detail { max-width: 970px; min-height: 2.6rem; display: grid; place-items: start center; justify-self: center; margin: 0 auto; padding: .15rem 1rem 0; color: rgba(255,255,255,.9); font-size: .78rem; line-height: 1.45; text-align: center; }
.configurator-layout { display: grid; grid-template-columns: minmax(230px,.78fr) minmax(400px,1.45fr) minmax(250px,.76fr); gap: 1.25rem; align-items: start; }
.configurator-left { display: grid; gap: 1.25rem; }
.configurator-controls, .configurator-vector-card, .configurator-preview, .configurator-summary { padding: clamp(1.15rem,2vw,1.65rem); }
.configurator-preview { position: sticky; top: 105px; background: #fff; }
.configurator-type label, .configurator-card h2, .configurator-preview-title { font-size: .68rem; font-weight: 800; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; }
.configurator-card h2 { margin: 0 0 1rem; }
.configurator-card h2:not(:first-child) { margin-top: 1.7rem; }
.configurator-card h2 { display: flex; align-items: center; gap: .5rem; }
.configurator-card label { display: block; margin: .8rem 0; color: #3d424a; font-size: .72rem; font-weight: 700; }
.configurator-card label select { margin-top: .38rem; }
.configurator-choices { display: flex; flex-wrap: wrap; gap: .45rem; margin: .75rem 0; }
.configurator-choices button { min-height: 2.5rem; padding: .5rem .72rem; border: 1px solid #d1d3d7; border-radius: .5rem; background: white; color: var(--ink); cursor: pointer; font-weight: 700; }
.configurator-choices button:hover { border-color: var(--orange); }
.configurator-choices button[aria-pressed="true"] { border-color: var(--orange); background: #fff4ef; color: #9c3916; }
.configurator-muted { margin: .62rem 0; color: #85878c; font-size: .66rem; font-weight: 400; line-height: 1.55; }
.configurator-upload input { width: 100%; margin-top: .5rem; padding: .55rem; border: 1px solid #d2d4d8; border-radius: .5rem; background: white; color: var(--muted); font-size: .66rem; }
.configurator-upload input::file-selector-button { margin-right: .5rem; padding: .5rem .65rem; border: 0; border-radius: .4rem; background: var(--ink); color: white; cursor: pointer; font-weight: 700; }
.configurator-secondary { width: 100%; padding: .78rem; border: 1px solid #d1d3d7; border-radius: .5rem; background: white; color: var(--ink); cursor: pointer; font: inherit; font-size: .75rem; font-weight: 700; }
.configurator-secondary:hover { border-color: var(--orange); color: var(--orange); }
.configurator-secondary:disabled { cursor: not-allowed; opacity: .5; }
.configurator-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .55rem; }
.configurator-preview-title { display: inline-flex; align-items: center; gap: .55rem; }
.configurator-preview-head .configurator-choices { margin: 0; }
.configurator-preview canvas { width: 100%; height: auto; display: block; touch-action: none; border-radius: .7rem; background: #fff; }
.configurator-caption { margin: .6rem 0; text-align: center; font-size: .76rem; font-weight: 800; }
.configurator-summary h2 { margin-top: 1.4rem; }
.configurator-summary > h2:first-child { margin-top: 0; }
.configurator-colors { display: flex; flex-wrap: wrap; gap: .55rem; margin: .8rem 0; padding: .55rem; border-radius: .55rem; background: #fff; }
.configurator-color-button { width: 2rem; height: 2rem; position: relative; flex: 0 0 2rem; padding: 0; border: 2px solid white; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px #c7c9cc; cursor: pointer; }
.configurator-color-button:hover { box-shadow: 0 0 0 2px rgba(255,107,53,.55); }
.configurator-color-button[aria-selected="true"] { border-color: white; box-shadow: 0 0 0 3px var(--orange), 0 5px 12px rgba(16,21,32,.26); }
.configurator-active-color { margin: .7rem 0 .55rem; font-size: .75rem; font-weight: 800; }
.configurator-summary .configurator-color-separator { margin: .25rem 0 .85rem; border-color: #d9dadd; }
.configurator-sizes { display: grid; grid-template-columns: repeat(3,1fr); gap: .65rem; }
.configurator-sizes label { margin: 0; }
.configurator-sizes input { min-height: 2.65rem; margin-top: .3rem; padding: .45rem !important; }
.configurator-check { display: grid !important; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: start; margin-top: 1.2rem !important; font-weight: 500 !important; }
.configurator-check input { margin-top: .2rem; accent-color: var(--orange); }
.configurator-vector { margin: .25rem 0 .8rem !important; }
.configurator-summary hr { margin: 1.35rem 0; border: 0; border-top: 1px solid var(--line); }
.configurator-summary .eyebrow { font-size: .67rem; }
.configurator-estimate-title { margin-bottom: 1rem !important; color: #282d35; }
.configurator-quote-row { display: flex; justify-content: space-between; gap: 1rem; margin: .62rem 0; font-size: .75rem; }
.configurator-total { margin-top: .95rem; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--orange); font-size: 1.35rem; font-weight: 800; }
.configurator-total strong { white-space: nowrap; }
.configurator-reset { width: 100%; margin-top: .75rem; padding: .85rem; border: 2px solid var(--orange); border-radius: .55rem; background: white; color: var(--orange); cursor: pointer; font: inherit; font-size: .75rem; font-weight: 800; transition: background-color .22s ease, color .22s ease; }
.configurator-reset:hover { background: var(--orange); color: white; }
.configurator-primary { width: 100%; margin-top: .75rem; padding: .9rem; border: 0; border-radius: .55rem; background: var(--orange); color: white; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 800; transition: background-color .22s ease; }
.configurator-primary:hover { background: var(--ink); }
.configurator-primary:disabled { cursor: not-allowed; opacity: .5; }
#status { min-height: 1.2rem; margin: .65rem 0 0; color: #a33d19; font-size: .7rem; }
@media (max-width: 1260px) {
  .carousel-prev { left: .5rem; }
  .carousel-next { right: .5rem; }
  .carousel-arrow { background: rgba(255,255,255,.92); box-shadow: 0 5px 18px rgba(16,21,32,.12); }
}
@media (max-width: 1080px) {
  .configurator-layout { grid-template-columns: minmax(230px,.75fr) minmax(390px,1.25fr); }
  .configurator-summary { grid-column: 1 / -1; }
  .configurator-sizes { grid-template-columns: repeat(7,1fr); }
}
@media (max-width: 780px) {
  .configurator-section { padding-top: 1.25rem; }
  .configurator-layout { grid-template-columns: 1fr; }
  .configurator-left { grid-row: 1; }
  .configurator-preview { position: static; grid-row: 2; }
  .configurator-summary { grid-row: 3; }
  .configurator-products { grid-auto-columns: minmax(145px,55%); }
  .configurator-sizes { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 520px) {
  .container { width: min(100% - 1.25rem,1180px); }
  .configurator-card { border-radius: .75rem; }
  .configurator-type, .configurator-controls, .configurator-vector-card, .configurator-preview, .configurator-summary { padding: 1rem; }
  .configurator-product { min-height: 185px; }
  .configurator-product img { height: 160px; }
  .configurator-preview-head { align-items: flex-start; flex-direction: column; }
  .configurator-preview canvas { max-height: 440px; object-fit: contain; }
  .configurator-sizes { grid-template-columns: repeat(3,1fr); }
}
