
.hidden{
  display: none !important;
}
/* Core */

.kit-config {
  display: grid;
  flex: 1 1 0;
  grid-template-rows: auto 1fr;
  height: 100vh;
  background-color: var(--color-bg-secondary);
  overflow: hidden;
}


/* Renderer */


.renderer-wrapper {
  grid-row: 2;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.renderer-wrapper::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height: 80px;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02),
    rgba(255,255,255,0)
  );

  pointer-events:none;
  z-index: 2;
}

.renderer-wrapper::after{
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    #4a4a4a 0%,
    #353535 35%,
    #242424 100%
  );

  z-index: 0;
}

.renderer-wrapper canvas{
  position: relative;
  z-index: 1;
  display: block;
    background: transparent;
  filter: contrast(1.02) brightness(1.1);
}
/* Sidebar Structure */


.sidebar-layout {
  grid-row: 1;
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto auto;
  gap: 10px;
  align-items: start;
}

.sidebar {
  display: flex;
  padding-bottom: 10px;
  padding-left: 20px;
  width: 100%;
  gap: 50px;
  justify-content: left;
}

.sidebar-mode:not(.hidden){
  display: flex;
  justify-content: center;
}

.sidebar .inlay-option, .tab{
  cursor: pointer;
  color: white;
  background-color: var(--color-bg-secondary);
  font-family: inherit;
  font-size: 20px;
  width: 250px;
  text-transform: uppercase;
  font-weight: 600;
}

.sidebar .active{
  background-color: white;
}

#sidebar-mode {
  grid-column: 1 / -1;
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
}

#sidebar-inlay {
  grid-column: 2;
  grid-row: 1;
  padding-top: 10px;
  padding-bottom: 0px;
}

.sidebar-divider {
  grid-column: 1 / -1;
  height: 2px;
  background-color: rgb(53, 53, 53);
  opacity: 0.8;
  width: 100%;
}

#sidebar-components {
  grid-column: 1 / -1;
  grid-row: 3;

  display: flex;
  flex-direction: column;
  gap: 10px;

  max-height: none; 
  overflow: visible;
}


/* Mode Selection (Cards in beginning) */


.mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 50px;
}

.mode-header {
  grid-column: 1 / -1;
  color: rgba(255,255,255,0.92);
  text-align: center;
  font-size: 30px;
  font-family: inherit;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0,0,0,0.65);
}

/* Slight ambient lift behind cards */
#sidebar-mode {
  background: radial-gradient(
    1200px 600px at 50% 0%,
    rgba(255,255,255,0.06),
    rgba(0,0,0,0) 60%
  );
}

.mode-option {
  position: relative;
  height: 220px;
  padding: 32px 36px;

  background: linear-gradient(180deg, #242424, #151515);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;

  color: var(--color-text-primary);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  box-shadow:
    0 10px 26px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.06);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.mode-option::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      120deg,
      transparent 40%,
      rgba(255,255,255,0.06),
      transparent 60%
    );
  opacity: 0.35;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mode-option::after {
  content: "Start Configuration →";
  align-self: flex-end;

  padding: 10px 18px;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-family: var(--font-primary);

  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);

  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* Hover */
.mode-option:hover {
  transform: translateY(-6px);
  background: linear-gradient(180deg, #2a2a2a, #181818);
  border-color: rgba(255,255,255,0.18);
  box-shadow:
    0 22px 44px rgba(0,0,0,0.75),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.mode-option:hover::before {
  opacity: 0.6;
}

.mode-option:hover::after {
  background: rgba(255,255,255,0.18);
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}

/* Active (selected mode) */
.mode-option.active {
  background: linear-gradient(180deg, #2b2b2b, #1a1a1a);
  border-color: rgba(255,255,255,0.28);
  color: white;

  box-shadow:
    0 14px 34px rgba(0,0,0,0.78),
    0 0 0 1px rgba(255,255,255,0.08) inset;

  transform: translateY(-4px);
}

.mode-option.active::after {
  content: "Continue Configuration →";
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}

/* Text clarity */
.mode-title {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
}

.mode-subtitle {
  font-family: var(--font-secondary);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  color: rgba(255,255,255,0.68);
  margin-top: 12px;
}

.mode-title,
.mode-subtitle {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mode-option:hover .mode-title {
  transform: translateY(-4px);
}

.mode-option:hover .mode-subtitle {
  transform: translateY(-2px);
  opacity: 0.9;
}

.mode-options > .mode-option:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 520px;
}

/* Mode Collapse */

#mode-collapse {
  grid-column: 1;
  grid-row: 1;

  /* layout */
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  max-width: 190px;
  max-height: 40px;
  padding: 6px 10px 6px 12px;

  /* style */
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, #1a1a1a, #121212);

  /* depth */
  box-shadow:
    0 6px 14px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.04);

  color: white;
  cursor: default;

  /* optional: keep it away from edges */
  margin-top: 10px;
  margin-left: 10px;
}

#mode-collapse:hover {
  border-color: rgba(255,255,255,0.18);
}

#mode-collapse-label {
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;

  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  opacity: 0.92;
}

#mode-collapse-label::before {
  content: "Mode: ";
  opacity: 0.55;
  font-weight: 600;
  letter-spacing: 0.06em;
}

#mode-collapse-change {
  width: 28px;
  height: 28px;
  border-radius: 999px;

  color: rgba(255,255,255,0.92);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

#mode-collapse-change:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

#mode-collapse-change:active {
  transform: translateY(0px) scale(0.98);
}


/* Inlay Buttons */


.inlay-option {
  padding: 8px 16px;
  background: linear-gradient(180deg, #1a1a1a, #121212);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  min-width: 250px;

  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);

  display: inline-flex;
  justify-content: center;
  align-items: center;

  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.inlay-option:hover {
  background: linear-gradient(180deg, #202020, #141414);
  border-color: rgba(255,255,255,0.16);
}

.inlay-option.active {
  background: linear-gradient(180deg, #2f2f2f, #1d1d1d);
  border-color: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.95);

  box-shadow:
    0 10px 22px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 0 1px rgba(255,255,255,0.08) inset;
}


/* Component Tab */


.components-tab{
  display: flex;
  gap: 50px;
}

.tab-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tab {
  padding: 4px 18px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);

  background: linear-gradient(180deg, #1a1a1a, #121212);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);

  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
  background: linear-gradient(180deg, #1f1f1f, #141414);
}

.tab.active {
  background: linear-gradient(180deg, #2f2f2f, #1d1d1d);
  border-color: rgba(255,255,255,0.26);
  color: rgba(255,255,255,0.95);

  box-shadow:
    0 10px 22px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 0 1px rgba(255,255,255,0.08) inset;
}

/* dropdown container in kit-mode */
.hidden-container {    
  position: absolute;                                 
  top: 100%;
  left: 50%;  
  transform: translateX(-50%);                               
  z-index: 100;  
  margin-top: 20px;          

  min-width: 220px;
  overflow-y: scroll;

  border-radius: 0.5rem;
  gap: 15px;
}

.kit-config:not(.mode-parts) .hidden-container {
  /* already absolute in your CSS */
  max-height: calc(100vh - 260px);
  overflow-y: auto;
}

/* hide scrollbar in webkit browsers */
.hidden-container::-webkit-scrollbar {
  display: none;
}


/* Parts Mode */


.kit-config.mode-parts{
  height: auto !important;
  min-height: 0 !important;
  overflow-y: scroll !important;
  padding: 18px 18px 80px;
  display: block;
}

/* remove renderer in parts mode */
.kit-config.mode-parts .renderer-wrapper{
  display: none !important;
}

/* hide inlay switcher in parts mode */
.kit-config.mode-parts #sidebar-inlay{
  display: none !important;
}

/* stack sections */
.kit-config.mode-parts .components-tab{
  flex-direction: column;
  gap: 22px;
}

/* section card */
.kit-config.mode-parts .tab-panel{
  display: block !important;
  padding: 14px 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(18,18,18,0.55);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

/* container becomes grid (no dropdown) */
.kit-config.mode-parts .hidden-container{
  position: static !important;
  transform: none !important;

  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;

  margin-top: 14px;
  padding: 0;

  max-height: none;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* larger section headers in parts mode */
.kit-config.mode-parts .tab{
  width: 100%;
  padding: 14px 18px;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #fff;
  background: linear-gradient(180deg, #1a1a1a, #121212);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;

  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

/* keep cards fluid in grid */
.kit-config.mode-parts .item{
  min-width: 0;
  width: 100%;
  margin-bottom: 0;
}

/* price display stays on top */
.kit-config.mode-parts .price-display{
  position: fixed;
  right: 40px;
  bottom: 100px;
  left: auto;
  transform: none;

  max-width: 360px;
  z-index: 50;
}


/* Items */


.item {
  position: relative;
  min-width: 200px;
  padding: 12px;
  display: flex;
  flex-direction: column;

  background-color: white;
  margin-bottom: 10px;

  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;

  align-items: stretch;
  justify-content: flex-start;

  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.image-container{
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.image-container img{
  display:block;
  width:100%;
  height: 120px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.preview-button{
  position: absolute;
  top: 10px;
  left: 10px;

  width: 34px;
  height: 34px;
  border-radius: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.item .info{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item .name{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0;
  color: #111;
}

.item .info p{
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(0,0,0,0.68);
  overflow: hidden;
}

.item-price-button{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.item-price-button h2{
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  color: #111;
}

.quantity{
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
}

.quantity-count{
  width: 34px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;

  font-size: 16px;
  font-weight: 900;
  color: #111;

  transition: background 0.15s ease;
}

.quantity-input{
  width: 34px;
  height: 32px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 13px;
  font-weight: 800;
  color: #111;

  background: #fff;
  border-left: 1px solid rgba(0,0,0,0.08);
  border-right: 1px solid rgba(0,0,0,0.08);
}

.quantity-count.decrease {
  padding-bottom: 7px;
}


/* Message Overlay */


.overlay{
    position: fixed;
    z-index: 2000;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);   

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#kit-overlay{
  background: linear-gradient(180deg, #1a1a1a, #121212);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;

  box-shadow:
    0 24px 70px rgba(0,0,0,0.75),
    inset 0 1px 0 rgba(255,255,255,0.05);

  max-width: 520px;

  padding: 18px;
}

#kit-overlay[style*="display: block"]{
  display: flex !important;
}

#kit-overlay > .message,
#kit-overlay > .button-row{
  max-width: 520px;
}


#kit-overlay{
  position: fixed;
  flex-direction: column;
}

#kit-overlay .message p{
  margin: 0 0 10px 0;
  color: rgba(255,255,255,0.82);
  font-family: var(--font-secondary);
  line-height: 1.45;
  font-size: 14px;
  text-align: center;
}

#kit-overlay .message strong{
  color: #fff;
  font-family: var(--font-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

#kit-overlay .button-row{
  margin-top: 16px;

  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

#kit-overlay .button-row button{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.10);
  color: #fff;

  border-radius: 12px;
  padding: 10px 14px;

  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

#kit-overlay .button-row button:hover{
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.24);
  transform: translateY(-1px);
}

#kit-overlay .button-row button:active{
  transform: translateY(0) scale(0.98);
}

#kit-overlay .button-row button.primary{
  background: #fff;
  color: #111;
}



/* Price Display */


.price-display{
  position: absolute;
  right: 24px;
  bottom: 80px;
  left: auto;
  transform: none;

  z-index: 20;
  color: white;

  display: flex;
  align-items: stretch;
  gap: 12px;

  padding: 12px 12px 12px 14px;

  background: rgba(18,18,18,0.88);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;

  box-shadow:
    0 18px 48px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.05);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.total-price{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding-right: 10px;
  min-width: 160px;
}

.total-price h3{
  margin: 0;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.72);
}

.price-value{
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
}

.cart-button{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.10);
  color: #fff;

  border-radius: 12px;
  padding: 10px 14px;

  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.cart-button:hover{
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.24);
  transform: translateY(-1px);
  color: white;
}

.cart-button:active{
  transform: translateY(0px) scale(0.98);
}

.preview-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;

  width: 40px;
  height: 40px;
  border-radius: 999px;

  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;

  font-size: 24px;
  line-height: 40px;
  cursor: pointer;
}

.preview-close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}



/* MEDIA QUARRYS */


@media (max-width: 1180px){

  /* kill desktop 100vh lock */
  .kit-config{
    height: auto !important;
    overflow: visible !important;

    display: flex !important;
    flex-direction: column;
  }

  .sidebar-layout:not(.hidden){
    display: flex ;
    flex-direction: column;
    gap: 10px;
  }

    /* Mode selection container */
  .mode-options{
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
  }

  /* Individual mode cards */
  .mode-option{
    width: 100%;
    height: auto;
    min-height: 160px;

    padding: 20px 22px;
    transform: none !important;
  }

  /* Remove hover lift on touch devices */
  .mode-option:hover{
    transform: none;
    box-shadow: var(--shadow-md);
  }

  /* Header spacing */
  .mode-header{
    font-size: 22px;
    margin-bottom: 10px;
  }

  /* Text scaling */
  .mode-title{
    font-size: 18px;
  }

  .mode-subtitle{
    font-size: 14px;
    line-height: 1.5;
  }

  /* keep mode-collapse above inlays */
  #mode-collapse{
    width: 200px;
    height: 30px;
    padding: 6px 10px 6px 12px;
    margin: 10px 10px 0 10px;

    /* prevent clipping of its own content */
    overflow: visible;
  }

  /* inlay buttons: 2 per row, centered */
  #sidebar-inlay{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 10px;
    width: 100%;
  }

  .hidden{
    display:none !important;
  }

  .sidebar .inlay-option{
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 calc((100% - 8px) / 2); /* 2 per row */
    padding: 7px 10px !important;
    font-size: 12px !important;
    border-radius: 14px;
  }

  #sidebar-inlay .inlay-option:last-child{
    flex: 0 0 70%;   /* adjust visual weight */
    margin-left: auto;
    margin-right: auto;
  }

  /* ======================================================
     COMPONENTS AREA
     ====================================================== */

  #sidebar-components{
    width: 100%;
    overflow: visible;
  }

  /* tabs row: horizontal scroll, no wrapping */
  .components-tab{
    overflow: visible !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    gap: 10px;
    justify-content: center;
    /* keep it inside viewport */
    max-width: 100%;
  }
  .components-tab::-webkit-scrollbar{ display: none; }

  .tab-panel{
    position: static !important;     /* reset any relative tricks */
    flex: 0 0 auto;
  }

  /* smaller tabs, NOT 100% width */
  .sidebar .tab{
    width: auto !important;
    flex: 0 0 auto !important;
    white-space: nowrap;
  }

  /* ======================================================
     ITEMS ROW: horizontal “carousel” under the tab
     ====================================================== */

  .hidden-container{
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: calc(100% + 10px) !important;  /* sits below tabs row */
    transform: none !important;

    /* horizontal scroller */
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    margin-top: 0px;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;

    padding: 0 10px 6px 10px;
    max-width: 100%;
    box-sizing: border-box;

    scrollbar-width: none;
    z-index: 20;
  }
  .hidden-container::-webkit-scrollbar{ display: none; }

  /* hide inactive containers (your JS already toggles .hidden) */
  .hidden-container.hidden{
    display: none !important;
  }

  /* 3) Reserve space so renderer doesn't jump under absolute scroller */
  /* pick a value that fits your cards */
  #sidebar-components{
    position: relative;
    margin-bottom: 230px;
  }

  /* Smaller cards */
  .hidden-container .item{
    flex: 0 0 160px;
    min-width: 160px;
    max-width: 160px;
  }

  .hidden-container .image-container img{ height: 86px; }
  .hidden-container .item .name{ font-size: 12px; }
  .hidden-container .item .info p{ font-size: 11px; line-height: 1.25; }
  .hidden-container .item-price-button h2{ font-size: 12px; }

  /* ======================================================
     RENDERER BELOW ITEMS
     ====================================================== */

  .renderer-wrapper{
    width: 100%;
    max-width: 100%;
    min-height: 220px;

    margin: 6px 0 0 0;
    overflow: hidden;
  }

  /* ======================================================
     PRICE BAR ABOVE FOOTER
     ====================================================== */

  .price-display{
    position: sticky;     /* stays above footer while scrolling */
    bottom: 10px;

    left: 10px;
    right: 10px;
    width: auto;

    margin: 10px 10px 0 10px;
    z-index: 80;

    justify-content: space-between;
  }
}



/* Phones (<= 480px) */


@media (max-width: 480px) {

  /* Reduce padding everywhere */
  .kit-config{
    padding: 0;
  }

  /* Full-width controls */
  .sidebar,
  .sidebar-inlay{
    padding-left: 8px;
    padding-right: 8px;
  }

  .inlay-option,
  #mode-collapse{
    justify-content: center;
  }

  /* Renderer becomes preview-only */
  .renderer-wrapper{
    height: 32vh;
    min-height: 220px;
  }

  /* Price display becomes full-width bar */
  .price-display{
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .total-price{
    min-width: 0;
  }

  .price-value{
    font-size: 18px;
  }

  /* Overlay tighter on phones */
  #kit-overlay{
    max-width: 90vw;
  }
}