/* ==========================================================================
   Beech & Bolster — bespoke configurator styles
   ========================================================================== */

/* product tabs */
.cfg-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.cfg-tab {
  font-family: var(--body); font-size: 13.5px; letter-spacing: .02em;
  padding: 9px 17px; border-radius: 30px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  transition: all .15s var(--ease);
}
.cfg-tab:hover { color: var(--ink); border-color: var(--accent); }
.cfg-tab.is-active { border: 1.5px solid var(--accent); background: #fff; color: var(--ink); }

/* layout */
.cfg {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

/* stage / preview */
.cfg__stage {
  background: radial-gradient(120% 100% at 50% 0, #f1ece0, #e4dcca);
  min-height: 540px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 40px;
}
.cfg-preview { width: 100%; display: flex; flex-direction: column; align-items: center; }
.cfg-preview__svg {
  width: 100%; max-width: 430px; height: auto;
  filter: drop-shadow(0 22px 30px rgba(40,34,26,.16));
}
.cfg-preview__cap { text-align: center; margin-top: 24px; }
.cfg-preview__title { font-family: var(--display); font-size: 23px; color: var(--ink); }
.cfg-preview__sub { font-family: var(--body); font-size: 13px; color: var(--muted); margin-top: 4px; }

/* controls */
.cfg__controls { padding: 40px 40px 44px; }
.cfg-label {
  font-family: var(--body); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted-2);
  margin: 24px 0 12px;
}
.cfg__controls > .cfg-label:first-child { margin-top: 0; }
.cfg-label__val { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 13px; }

/* style thumbnails */
.cfg-styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.cfg-style {
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  padding: 9px 5px 6px; text-align: center; transition: all .18s var(--ease);
}
.cfg-style:hover { border-color: var(--accent); }
.cfg-style.is-active { border: 1.5px solid var(--accent); box-shadow: 0 5px 14px rgba(40,34,26,.12); }
.cfg-style svg { width: 100%; height: 46px; display: block; }
.cfg-style__name { display: block; font-family: var(--body); font-size: 10.5px; color: var(--muted); margin-top: 5px; }

/* sizes */
.cfg-sizes { display: flex; flex-wrap: wrap; gap: 9px; }
.cfg-size {
  flex: 1 1 21%; min-width: 62px; text-align: center;
  padding: 11px 6px; border-radius: 3px;
  border: 1px solid var(--line); background: transparent; transition: all .15s var(--ease);
}
.cfg-size:hover { border-color: var(--accent); }
.cfg-size.is-active { border: 1.5px solid var(--accent); background: #fff; }
.cfg-size__name { display: block; font-family: var(--display); font-size: 15px; color: var(--ink); line-height: 1; }
.cfg-size__sub { display: block; font-family: var(--body); font-size: 11px; color: var(--muted); margin-top: 4px; }

/* fabric ranges (collapsible) */
.cfg-fabgroups { display: flex; flex-direction: column; gap: 8px; }
.cfg-fabgroup { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: #fff; }
.cfg-fabgroup__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; background: transparent; text-align: left;
  transition: background .15s var(--ease);
}
.cfg-fabgroup__head:hover { background: #faf7f0; }
.cfg-fabgroup__name { font-family: var(--display); font-size: 16px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.cfg-fabgroup__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.cfg-fabgroup__meta { display: flex; align-items: center; gap: 8px; font-family: var(--body); font-size: 12px; color: var(--muted-2); }
.cfg-fabgroup__chev { transition: transform .2s var(--ease); }
.cfg-fabgroup.is-open .cfg-fabgroup__chev { transform: rotate(180deg); }
.cfg-fabgroup__panel { padding: 2px 14px 16px; }
.cfg-fabgroup__blurb { font-family: var(--body); font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 2px 0 13px; }

/* fabrics */
.cfg-fabrics { display: flex; flex-wrap: wrap; gap: 13px; }
.cfg-fabric {
  border-radius: 50%; width: 46px; height: 46px; overflow: hidden; padding: 0;
  transition: all .15s var(--ease);
  outline: 1px solid var(--line); outline-offset: 2px;
}
.cfg-fabric:hover { outline-color: var(--accent); }
.cfg-fabric.is-active { outline: 2px solid var(--accent); }
.cfg-fabric svg,
.cfg-fabric img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* option pills */
.cfg-opts { display: flex; flex-wrap: wrap; gap: 9px; }
.cfg-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 30px;
  border: 1px solid var(--line); background: transparent; transition: all .15s var(--ease);
}
.cfg-opt:hover { border-color: var(--accent); }
.cfg-opt.is-active { border: 1.5px solid var(--accent); background: #fff; }
.cfg-opt__swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(40,34,26,.16); }
.cfg-opt__name { font-family: var(--body); font-size: 13px; color: var(--ink); }

/* footer / price */
.cfg-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line);
  gap: 16px;
}
.cfg-foot__size { font-family: var(--body); font-size: 12px; color: var(--muted-2); letter-spacing: .04em; }
.cfg-foot__price { font-family: var(--display); font-weight: 300; font-size: 36px; color: var(--ink); line-height: 1; margin-top: 2px; }
.cfg-note { font-family: var(--body); font-weight: 300; font-size: 13px; color: var(--muted); line-height: 1.55; margin: 16px 0 0; }
.cfg-added {
  margin-top: 14px; font-family: var(--body); font-size: 13px;
  color: var(--sage-deep); background: #eef0e4; border: 1px solid #d7ddc6;
  border-radius: 4px; padding: 10px 14px;
}

/* price guide (pre-rendered from catalog.js by scripts/build.js) */
.price-guide { margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line-2); }
.price-guide summary { cursor: pointer; font-family: var(--display); font-size: 24px; font-weight: 300; color: var(--ink); }
.price-guide summary:hover { color: var(--accent); }
.price-guide__intro { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 70ch; margin: 14px 0 6px; }
.price-guide__row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.price-guide__row h3 { font-family: var(--display); font-weight: 300; font-size: 21px; margin: 0 0 8px; color: var(--ink); }
.price-guide__row h3 span { font-family: var(--body); font-size: 14px; color: var(--muted-2); margin-left: 8px; }
.price-guide__row p { margin: 4px 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.price-guide__row strong { font-weight: 500; }

/* responsive */
@media (max-width: 880px) {
  .cfg { grid-template-columns: 1fr; }
  .cfg__stage { min-height: 380px; padding: 36px 24px; }
}
@media (max-width: 480px) {
  .cfg__controls { padding: 28px 22px 32px; }
  .cfg-styles { grid-template-columns: repeat(3, 1fr); }
}
