/* ==========================================================================
   VersaCarve Shop / configurator
   ========================================================================== */

.shop-page {
  background: var(--canvas, #f4f2ef);
}

.shop-page .site-header {
  position: fixed;
}

.nav-link.active::after {
  transform: scaleX(1);
}

.shop-hero {
  padding: calc(var(--header-h) + 88px) 0 72px;
  background: var(--canvas, #f4f2ef);
}

.shop-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 70px;
  align-items: end;
}

.shop-hero h1 {
  max-width: 780px;
  margin-top: 14px;
  font-size: clamp(3.7rem, 7vw, 7rem);
}

.shop-hero-grid > p {
  max-width: 470px;
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 1rem;
}

.configurator-section {
  padding-bottom: clamp(86px, 9vw, 130px);
}

.configurator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(370px, .55fr);
  gap: 18px;
  align-items: start;
}

.config-visual-panel,
.config-sidebar {
  background: #fff;
  border-radius: 30px;
}

.config-visual-panel {
  padding: 18px;
}

.config-visual-frame {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  border-radius: 22px;
  background: #e9e5df;
}

.config-visual-frame img {
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: cover;
  transition: opacity .3s var(--ease), transform .6s var(--ease);
}

.config-visual-frame:hover img {
  transform: scale(1.015);
}

.config-visual-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  padding: 13px 16px;
  color: #fff;
  background: rgba(25,25,25,.78);
  border-radius: 14px;
}

.config-visual-caption span {
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .68;
}

.config-visual-caption strong {
  margin-top: 2px;
  font-family: "Red Hat Display", sans-serif;
}

.configuration-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.configuration-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 15px;
  padding: 17px 18px;
  text-align: left;
  color: var(--ink);
  background: var(--canvas, #f4f2ef);
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}

.configuration-tab:hover {
  transform: translateY(-2px);
}

.configuration-tab.is-active {
  background: #fff;
  border-color: rgba(158,26,50,.35);
  box-shadow: inset 0 0 0 1px rgba(158,26,50,.08);
}

.configuration-tab > span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--brand);
  font-size: .65rem;
  font-weight: 600;
}

.configuration-tab strong {
  font-family: "Red Hat Display", sans-serif;
  font-size: 1rem;
}

.configuration-tab small {
  color: var(--muted);
}

.config-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 28px;
  box-shadow: 0 18px 55px rgba(35,30,28,.055);
}

.config-sidebar-head h2 {
  margin-top: 9px;
  font-size: 2.35rem;
}

.config-sidebar-head > p:last-child {
  margin-top: 14px;
  color: var(--muted);
  font-size: .85rem;
}

.config-options {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.option-row,
.toggle-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.option-row strong,
.toggle-option strong {
  display: block;
  font-family: "Red Hat Display", sans-serif;
  font-size: .92rem;
}

.option-row span,
.toggle-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .69rem;
}

.stepper {
  display: grid;
  grid-template-columns: 34px 36px 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.stepper button {
  height: 34px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.stepper button:hover {
  color: var(--white);
  background: var(--brand);
}

.stepper output {
  text-align: center;
  font-size: .77rem;
  font-weight: 600;
}

.toggle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-option  i {
  position: relative;
  width: 42px;
  height: 24px;
  background: #ddd8d2;
  border-radius: 999px;
  transition: background .2s ease;
}

.toggle-option  i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform .2s ease;
}

.toggle-option  input:checked + i {
  background: var(--brand);
}

.toggle-option  input:checked + i::after {
  transform: translateX(18px);
}

.order-summary {
  margin-top: 26px;
  padding: 19px;
  background: var(--canvas, #f4f2ef);
  border-radius: 16px;
}

.summary-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-title strong {
  font-family: "Red Hat Display", sans-serif;
  font-size: .85rem;
}

.summary-title span {
  color: var(--muted);
  font-size: .6rem;
}

.order-summary ul {
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.order-summary li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: .74rem;
}

.order-summary li span:first-child {
  color: var(--brand);
  font-weight: 600;
}

.config-cart-button {
  width: 100%;
  margin-top: 18px;
}

.config-note {
  margin-top: 9px;
  color: var(--muted);
  text-align: center;
  font-size: .62rem;
}

.individual-shop {
  background: var(--canvas-deep, #ebe7e2);
}

.browse-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.browse-head h2 {
  margin-top: 10px;
  font-size: clamp(2.5rem, 4.2vw, 4.4rem);
}

.view-switcher {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: #fff;
  border-radius: 999px;
}

.view-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: .7rem;
  font-weight: 600;
}

.view-button.is-active {
  color: #fff;
  background: var(--brand);
}

.grid-icon,
.list-icon {
  width: 13px;
  height: 13px;
  opacity: .85;
}

.grid-icon {
  background: linear-gradient(currentColor,currentColor) 0 0/5px 5px no-repeat,
              linear-gradient(currentColor,currentColor) 100% 0/5px 5px no-repeat,
              linear-gradient(currentColor,currentColor) 0 100%/5px 5px no-repeat,
              linear-gradient(currentColor,currentColor) 100% 100%/5px 5px no-repeat;
}

.list-icon {
  background: linear-gradient(currentColor,currentColor) 0 1px/100% 2px no-repeat,
              linear-gradient(currentColor,currentColor) 0 6px/100% 2px no-repeat,
              linear-gradient(currentColor,currentColor) 0 11px/100% 2px no-repeat;
}

.product-browser {
  display: grid;
  gap: 16px;
}

.product-browser.grid-view {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-card {
  overflow: hidden;
  background: #fff;
  border-radius: 24px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.shop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(30,25,25,.09);
}

.shop-card-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e9e5df;
}

.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.shop-card:hover .shop-card-media img {
  transform: scale(1.025);
}

.shop-card-copy {
  position: relative;
  min-height: 112px;
  padding: 19px 56px 21px 21px;
}

.shop-card-copy > span {
  color: var(--brand);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.shop-card-copy h3 {
  margin-top: 6px;
}

.shop-card-copy i {
  position: absolute;
  right: 20px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-style: normal;
}

/* Tall list view: large hero image + simple name, as requested */
.product-browser.list-view {
  grid-template-columns: 1fr;
}

.list-view .shop-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(270px, 1.15fr);
  min-height: 220px;
}

.list-view .shop-card-media {
  aspect-ratio: auto;
  min-height: 220px;
}

.list-view .shop-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  padding: 36px 82px 36px 42px;
}

.list-view .shop-card-copy h3 {
  font-size: clamp(1.5rem, 2vw, 2.4rem);
}

.list-view .shop-card-copy i {
  right: 36px;
  bottom: 36px;
}

@media (max-width: 1000px) {
  .configurator-shell {
    grid-template-columns: 1fr;
  }

  .config-sidebar {
    position: static;
  }

  .product-browser.grid-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shop-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .shop-hero-grid > p {
    padding-bottom: 0;
  }

  .config-visual-frame,
  .config-visual-frame img {
    min-height: 420px;
  }

  .browse-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-view .shop-card {
    grid-template-columns: 1fr;
  }

  .list-view .shop-card-media,
  .list-view .shop-card-copy {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .configuration-tabs {
    grid-template-columns: 1fr;
  }

  .product-browser.grid-view {
    grid-template-columns: 1fr;
  }

  .config-sidebar {
    padding: 22px;
  }
}

.show-more {
  margin-top: 8px;
  padding: 0;
  color: #9E1A32;
  background: transparent;
  border: 0;
  font-size: .68rem;
  font-weight: 600;
  cursor: pointer;
}

.addon-details {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background: #f4f2ef;
  border-radius: 10px;
  color: #737373;
  font-size: .72rem;
}

.addon-details.is-open {
  display: block;
}

/* V15 expanded add-on cards */
.addon-details {
  display:none;
  margin-top:14px;
  padding:14px;
  background:#f4f2ef;
  border-radius:14px;
}

.addon-details.is-open {
  display:block;
}

.addon-details img {
  width:100%;
  max-height:180px;
  object-fit:cover;
  border-radius:10px;
  margin-bottom:12px;
}

.addon-details ul {
  margin:0;
  padding-left:18px;
  color:#737373;
  font-size:.75rem;
  line-height:1.6;
}

.power-details-row {
  padding-top:8px;
}


/* Shop hero title refinement */
.shop-hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
}


/* Correct list view dimensions */
.product-browser.list-view {
  grid-template-columns: 1fr;
}

.list-view .shop-card {
  grid-template-columns: 220px 1fr;
  min-height: 220px;
}

.list-view .shop-card-media {
  height: 220px;
}

.list-view .shop-card-copy h3 {
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
}

@media (max-width: 800px) {
  .list-view .shop-card {
    grid-template-columns: 1fr;
  }

  .list-view .shop-card-media {
    height: 220px;
  }
}


/* Updated VersaCarve logo usage */
.site-header .brand-logo img,
.site-header .brand-logo-img {
    content: url("../images/logo-top-white.png");
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer .brand-logo img,
.site-footer .brand-logo-img {
    content: url("../images/logo-footer-red-white.png");
}

/* Product image gallery */
.config-gallery {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.config-thumb {
  width:72px;
  height:72px;
  padding:0;
  border:1px solid rgba(0,0,0,.12);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  cursor:pointer;
}
.config-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.config-thumb.is-active {
  border:2px solid #9E1A32;
}
#config-image {
  transition: opacity .15s ease;
}


/* Product album gallery */
.config-gallery {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.config-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #f5f3ef;
  padding: 3px;
  cursor: pointer;
  overflow: hidden;
}

.config-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}

.config-thumb.is-active {
  border-color: #9e1a32;
}

#config-image {
  transition: opacity .25s ease;
}


/* VersaFrame third configuration */
.configuration-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.versaframe-included {
  padding: 6px 0 8px;
}

.versaframe-included[hidden],
.config-options[hidden] {
  display: none !important;
}

.versaframe-included > .section-kicker {
  margin-bottom: 14px;
}

.versaframe-included ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.versaframe-included li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.versaframe-included li strong {
  font-size: .96rem;
}

.versaframe-included li span {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

@media (max-width: 680px) {
  .configuration-tabs {
    grid-template-columns: 1fr;
  }
}


/* VersaFrame included-accessories section hierarchy refinement */
.versaframe-included {
  padding-top: 26px;
}

.versaframe-included > .section-kicker {
  margin: 0 0 18px;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.versaframe-included ul {
  border-top: 0;
}

.versaframe-included li:first-child {
  padding-top: 6px;
}


/* Pricing */
.configuration-tab {
  grid-template-columns: auto 1fr auto;
}

.configuration-tab > span {
  grid-row: 1 / 4;
}

.configuration-price {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--brand);
  font-family: "Red Hat Display", sans-serif;
  font-size: .9rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.config-base-price {
  margin-top: 6px !important;
  color: var(--brand) !important;
  font-family: "Red Hat Display", sans-serif;
  font-size: 1.25rem !important;
  font-weight: 700;
}

.option-price {
  color: var(--brand) !important;
  font-size: .72rem !important;
  font-weight: 600;
}

.order-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.order-total span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.order-total strong {
  color: var(--brand);
  font-family: "Red Hat Display", sans-serif;
  font-size: 1.2rem;
}

.shop-card-copy {
  position: relative;
}

.shop-card-price {
  display: block;
  margin-top: 7px;
  color: var(--brand);
  font-family: "Red Hat Display", sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.product-browser.list-view .shop-card-price {
  margin-top: 10px;
  font-size: 1.05rem;
}

@media (max-width: 680px) {
  .configuration-tab {
    grid-template-columns: auto 1fr;
  }

  .configuration-price {
    grid-column: 2;
    grid-row: 3;
    margin-top: 4px;
  }
}


/* V3.4 — VersaFrame sidebar consistency
   Match accessory typography and row spacing to Mastercraft / Maker Kit options. */
.versaframe-included > .section-kicker {
  margin: 0 0 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.versaframe-included li {
  gap: 3px;
  padding: 19px 0;
}

.versaframe-included li:first-child {
  padding-top: 19px;
}

.versaframe-included li strong {
  display: block;
  font-family: "Red Hat Display", sans-serif;
  font-size: .92rem;
}

.versaframe-included li span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .69rem;
  line-height: inherit;
}


/* ==========================================================================
   V4 — Full-screen configurator
   Reference direction: fixed full-height gallery + independently scrolling
   configuration rail.
   ========================================================================== */

.shop-page .site-header {
  position: fixed;
  inset: 0 0 auto 0;
}

.shop-config-main {
  padding-top: var(--header-h);
  background: #fff;
}

.framework-configurator {
  padding: 0;
}

.framework-configurator .configurator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 500px);
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  align-items: stretch;
}

.framework-configurator .config-visual-panel {
  position: sticky;
  top: var(--header-h);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: calc(100vh - var(--header-h));
  padding: 0;
  border-radius: 0;
  background: #e8e4de;
  overflow: hidden;
}

.framework-configurator .config-visual-frame {
  position: relative;
  min-height: 0;
  height: 100%;
  border-radius: 0;
  background: #e8e4de;
}

.framework-configurator .config-visual-frame > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  transition: opacity .22s var(--ease);
}

.framework-configurator .config-visual-frame:hover > img {
  transform: none;
}

.gallery-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 12px 18px 14px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.framework-configurator .config-gallery {
  flex: 1 1 auto;
  display: flex;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0 0 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.framework-configurator .config-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  background: #f5f3f0;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.framework-configurator .config-thumb.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.framework-configurator .config-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-counter {
  flex: 0 0 auto;
  display: flex;
  gap: 5px;
  color: var(--muted);
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
}

.gallery-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  transform: translateY(-50%);
  color: #222;
  background: rgba(255,255,255,.94);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease);
}

.gallery-arrow:hover {
  transform: translateY(-50%) scale(1.06);
  background: #fff;
}

.gallery-arrow span {
  display: block;
  margin-top: -3px;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.gallery-arrow-prev {
  left: 22px;
}

.gallery-arrow-next {
  right: 22px;
}

.gallery-arrow[hidden] {
  display: none;
}

.framework-configurator .config-sidebar {
  position: relative;
  top: auto;
  width: 100%;
  height: calc(100vh - var(--header-h));
  padding: 28px 34px 40px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.configurator-intro {
  padding-bottom: 24px;
}

.configurator-intro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.configurator-intro .section-kicker {
  margin: 0;
}

.configurator-intro h1 {
  max-width: 360px;
  margin-top: 13px;
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.shop-separately-link,
.back-configurator-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
}

.shop-separately-link:hover,
.back-configurator-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.model-selector {
  padding: 0 0 26px;
}

.config-section-label {
  margin: 0 0 11px;
  color: var(--brand);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.framework-configurator .configuration-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

.framework-configurator .configuration-tab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  text-align: left;
  background: #f7f5f2;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transform: none;
}

.framework-configurator .configuration-tab:hover {
  transform: none;
  border-color: rgba(158,26,50,.18);
}

.framework-configurator .configuration-tab.is-active {
  background: #fff;
  border-color: rgba(158,26,50,.42);
  box-shadow: inset 0 0 0 1px rgba(158,26,50,.08);
}

.configuration-number {
  padding-top: 2px;
  color: var(--brand);
  font-size: .62rem;
  font-weight: 700;
}

.configuration-body {
  min-width: 0;
}

.configuration-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.configuration-heading strong {
  font-family: "Red Hat Display", sans-serif;
  font-size: 1rem;
}

.framework-configurator .configuration-price {
  position: static;
  grid-column: auto;
  grid-row: auto;
  color: var(--brand);
  font-size: .88rem;
}

.configuration-body > small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: .69rem;
}

.configuration-description {
  display: none;
  margin-top: 8px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.48;
}

.configuration-tab.is-active .configuration-description {
  display: block;
}

.framework-configurator .config-options {
  margin-top: 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.framework-configurator .config-options > .config-section-label {
  margin-bottom: 0;
}

.framework-configurator .option-row,
.framework-configurator .toggle-option {
  padding: 18px 0;
}

.toggle-option-control {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  cursor: pointer;
}

.framework-configurator .versaframe-included {
  padding: 26px 0 8px;
  border-top: 1px solid var(--line);
}

.framework-configurator .versaframe-included > .config-section-label {
  margin-bottom: 0;
}

.framework-configurator .order-summary {
  margin-top: 24px;
}

.framework-configurator .config-cart-button {
  width: 100%;
}

/* Separate standalone-products page */
.shop-list-main {
  padding-top: var(--header-h);
  background: var(--canvas, #f4f2ef);
}

.shop-list-hero {
  padding: 76px 0 12px;
}

.shop-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.shop-list-heading h1 {
  margin-top: 10px;
  font-size: clamp(3.2rem, 6vw, 6rem);
}

.shop-list-page .individual-shop {
  padding-top: 24px;
}

.shop-list-page .browse-head > div:first-child {
  display: none;
}

/* Full-screen responsive behavior */
@media (max-width: 1050px) {
  .framework-configurator .configurator-shell {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  }

  .framework-configurator .config-sidebar {
    padding-inline: 26px;
  }
}

@media (max-width: 820px) {
  .framework-configurator .configurator-shell {
    display: block;
  }

  .framework-configurator .config-visual-panel {
    position: relative;
    top: auto;
    height: 68vh;
    min-height: 520px;
  }

  .framework-configurator .config-sidebar {
    height: auto;
    min-height: auto;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .shop-list-heading {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .framework-configurator .config-visual-panel {
    height: 58vh;
    min-height: 440px;
  }

  .framework-configurator .config-sidebar {
    padding: 24px 20px 36px;
  }

  .configurator-intro-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-arrow {
    width: 42px;
    height: 42px;
  }

  .gallery-arrow-prev {
    left: 12px;
  }

  .gallery-arrow-next {
    right: 12px;
  }

  .framework-configurator .config-thumb {
    flex-basis: 62px;
    width: 62px;
    height: 48px;
  }

  .shop-list-heading {
    flex-direction: column;
  }
}


/* ==========================================================================
   V4.2 — Configurator interaction fixes
   ========================================================================== */

/* No document/footer scroll on the desktop configurator page. */
@media (min-width: 821px) {
  body.shop-page:not(.shop-list-page) {
    height: 100vh;
    overflow: hidden;
  }

  body.shop-page:not(.shop-list-page) .shop-config-main {
    height: 100vh;
    overflow: hidden;
  }

  body.shop-page:not(.shop-list-page) .framework-configurator,
  body.shop-page:not(.shop-list-page) .configurator-shell {
    height: calc(100vh - var(--header-h));
    overflow: hidden;
  }

  body.shop-page:not(.shop-list-page) .config-sidebar {
    overscroll-behavior: contain;
  }

  body.shop-page:not(.shop-list-page) .config-visual-panel {
    overscroll-behavior: none;
  }
}

/* Framework-style selectable dot navigation over the photo. */
.gallery-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  padding: 8px 11px;
  background: rgba(255,255,255,.88);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0,0,0,.10);
  backdrop-filter: blur(8px);
}

.gallery-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  background: rgba(40,40,40,.28);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: width .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}

.gallery-dot:hover {
  background: rgba(40,40,40,.55);
  transform: scale(1.15);
}

.gallery-dot.is-active {
  width: 20px;
  background: var(--brand);
  border-radius: 999px;
}

/* Keep the order-summary total structurally inside its card. */
.framework-configurator .order-summary {
  overflow: hidden;
}

.framework-configurator .order-total {
  position: static;
  width: 100%;
  margin-bottom: 0;
}

/* Show-more controls remain visually distinct and clickable. */
.framework-configurator .show-more {
  position: relative;
  z-index: 1;
}

/* Mobile returns to normal document scrolling because the rail stacks. */
@media (max-width: 820px) {
  body.shop-page:not(.shop-list-page) {
    height: auto;
    overflow: auto;
  }

  body.shop-page:not(.shop-list-page) .shop-config-main,
  body.shop-page:not(.shop-list-page) .framework-configurator,
  body.shop-page:not(.shop-list-page) .configurator-shell {
    height: auto;
    overflow: visible;
  }
}


/* V4.3 — Maker Kit Power+ price / Show more alignment */
#power-price {
  display: block;
  width: 100%;
}

#power-price:not([hidden]) + .show-more {
  display: block;
  width: fit-content;
  margin-top: 8px;
}


/* V4.4 — Sliding gallery transitions + drag/swipe */
.gallery-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.gallery-stage.is-dragging {
  cursor: grabbing;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  object-fit: cover;
  display: block;
  transform: translateX(0);
  opacity: 1;
  transition: transform .34s cubic-bezier(.22,.72,.24,1);
  will-change: transform;
  pointer-events: none;
}

.gallery-slide.is-current {
  z-index: 2;
  transform: translateX(0);
}

.gallery-slide.is-buffer {
  z-index: 3;
}

.gallery-slide.slide-in-from-right {
  transform: translateX(100%);
}

.gallery-slide.slide-in-from-left {
  transform: translateX(-100%);
}

.gallery-slide.slide-out-left {
  transform: translateX(-100%);
}

.gallery-slide.slide-out-right {
  transform: translateX(100%);
}

.framework-configurator .config-visual-frame > .gallery-stage > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transform-origin: center;
}

/* Disable the old hover zoom on gallery slides. */
.framework-configurator .config-visual-frame:hover .gallery-slide {
  transform-origin: center;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-slide {
    transition: none;
  }
}


/* V4.5 — Direct-follow drag carousel */
.gallery-stage {
  cursor: grab;
  touch-action: pan-y;
  overflow: hidden;
}

.gallery-stage.is-dragging {
  cursor: grabbing;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  object-fit: cover;
  opacity: 1;
  will-change: transform;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

#config-image {
  z-index: 2;
  transform: translateX(0);
}

#config-image-next {
  z-index: 3;
  transform: translateX(100%);
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-slide {
    transition-duration: .01ms !important;
  }
}

/* V4.20 — included starter sets */
.framework-configurator .starter-included {
  padding: 26px 0 0;
  border-top: 1px solid rgba(26, 24, 24, .12);
}
.framework-configurator .starter-included[hidden] { display: none !important; }
.framework-configurator .included-product-row {
  padding: 18px 0;
  border-bottom: 1px solid rgba(26, 24, 24, .12);
}
.framework-configurator .included-product-row strong,
.framework-configurator .included-product-row span { display: block; }
.framework-configurator .included-product-row > div > span {
  margin-top: 4px;
  color: #77716d;
  font-size: .92rem;
}
.framework-configurator .included-product-row .show-more { margin-top: 9px; }

/* V4.21 — align included-accessory headings with side-panel option text */
.framework-configurator .included-product-row strong {
  font-family: "Red Hat Display", sans-serif;
  font-size: .92rem;
}
.framework-configurator .starter-included + .config-options {
  border-top: 0;
}
