/* Final home-page composition: one purchase entry, one calculator and a scalable product rail. */
.home-production-banner {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: #fff;
  background: #102235;
}

.home-production-banner__link {
  position: relative;
  display: block;
  width: 100%;
  height: 160px;
  height: clamp(116px, 18svh, 176px);
  overflow: hidden;
  isolation: isolate;
  color: #fff !important;
  text-decoration: none !important;
  background:
    linear-gradient(118deg, #0b293d 0%, #123d59 52%, #0d2e45 100%);
}

.home-production-banner__link::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background:
    radial-gradient(circle at 84% 18%, rgba(240, 203, 125, .18), transparent 28%),
    radial-gradient(circle at 18% 94%, rgba(93, 178, 214, .22), transparent 32%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 15px);
}

.home-production-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin-inline: auto;
  direction: rtl;
}

.home-production-banner__icon {
  display: grid;
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(240, 203, 125, .68);
  border-radius: 20px;
  background: rgba(5, 20, 33, .24);
  color: #f0cb7d;
  box-shadow: inset 0 1px rgba(255, 255, 255, .14);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.home-production-banner__icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.home-production-banner__copy {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  direction: rtl;
  text-align: start;
}

.home-production-banner__eyebrow {
  color: #f0cb7d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .01em;
}

#home-production-banner-title {
  color: #fff;
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 950;
  line-height: 1.35;
  text-wrap: balance;
}

.home-production-banner__summary {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.home-production-banner__cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid rgba(240, 203, 125, .78);
  border-radius: 999px;
  background: rgba(5, 20, 33, .34);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  backdrop-filter: blur(7px);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.home-production-banner__link:hover .home-production-banner__icon {
  background: #f0cb7d;
  color: #102235;
  transform: translateY(-2px);
}

.home-production-banner__link:hover .home-production-banner__cta {
  background: #d2ac61;
  color: #102235;
  transform: translateX(-3px);
}

.home-production-banner__link:focus-visible {
  outline: 4px solid #f0cb7d;
  outline-offset: -4px;
}

@media (max-width: 600px) {
  .home-production-banner__content {
    gap: 10px;
    width: calc(100% - 28px);
  }

  .home-production-banner__icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .home-production-banner__icon svg {
    width: 25px;
    height: 25px;
  }

  .home-production-banner__copy {
    gap: 2px;
  }

  .home-production-banner__eyebrow {
    font-size: 10px;
    line-height: 1.35;
  }

  #home-production-banner-title {
    font-size: clamp(17px, 5vw, 22px);
    line-height: 1.32;
  }

  .home-production-banner__summary {
    font-size: 10.75px;
    line-height: 1.45;
  }

  .home-production-banner__cta {
    flex-basis: 86px;
    min-height: 40px;
    padding: 6px 8px;
    font-size: 10.5px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 390px) {
  .home-production-banner__content {
    width: calc(100% - 20px);
  }

  .home-production-banner__icon {
    display: none;
  }

  #home-production-banner-title {
    font-size: 17px;
  }

  .home-production-banner__cta {
    flex-basis: 78px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-production-banner__icon,
  .home-production-banner__cta {
    transition: none !important;
    transform: none !important;
  }
}

.home-faq [data-faq-featured] > .chipak-faq-item:nth-of-type(n + 4):not([data-home-faq-revealed]) {
  display: none !important;
}

body.home .home-faq .chipak-home-faq-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--line, #d8dde5);
  border-radius: var(--button-radius, 12px);
  background: #fff;
  color: #102235;
  font: inherit;
  font-weight: 750;
  text-align: start;
  cursor: pointer;
}

body.home .home-faq .chipak-home-faq-more::after {
  content: '⌄';
  font-size: 20px;
}

body.home .home-faq .chipak-home-faq-more:hover {
  border-color: #c89536;
  background: #fffaf0;
}

body.home .home-faq .chipak-home-faq-more:focus-visible {
  outline: 3px solid #c89536;
  outline-offset: 3px;
}

.home-purchase-path .chipak-purchase-intro > h2 {
  display: none !important;
}

.home-products .section-head {
  margin-bottom: 20px;
}

.home-products .section-head h2 {
  margin: 0;
}

.home-products .woocommerce ul.products {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: stretch;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  width: 100%;
  margin: 0 !important;
  padding: 2px 2px 16px !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--chipak-gold) #eef1f4;
  -webkit-overflow-scrolling: touch;
}

.home-products .woocommerce ul.products::before,
.home-products .woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}

.home-products .woocommerce ul.products > li.product {
  display: flex !important;
  flex: 0 0 clamp(220px, 22vw, 280px) !important;
  flex-direction: column;
  float: none !important;
  width: auto !important;
  min-width: 0;
  height: auto;
  margin: 0 !important;
  scroll-snap-align: start;
}

.home-products .woocommerce ul.products > li.product > .woocommerce-LoopProduct-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.home-products .woocommerce ul.products > li.product > .button {
  margin-top: auto !important;
}

.home-products .woocommerce ul.products::-webkit-scrollbar {
  height: 8px;
}

.home-products .woocommerce ul.products::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #eef1f4;
}

.home-products .woocommerce ul.products::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--chipak-gold);
}

@media (max-width: 520px) {
  .home-products .woocommerce ul.products > li.product {
    flex-basis: min(78vw, 260px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-products .woocommerce ul.products {
    scroll-behavior: auto;
  }
}

/* Homepage route selector: three explicit, equally weighted purchase paths. */
.chipak-premium-hero .hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 760px;
  margin-top: 16px;
}

.chipak-premium-hero .hero-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 11px 14px;
  border-radius: 14px;
  text-align: center;
  white-space: normal;
}

.chipak-premium-hero [data-ready-stock-toggle][aria-expanded="true"] {
  border-color: var(--chipak-gold);
  background: rgba(212, 154, 35, .18);
  color: #fff !important;
  box-shadow: 0 0 0 2px rgba(212, 154, 35, .18);
}

/* The ready-stock chooser is removed from layout while closed. Once opened,
 * CSS Grid reflows any current/future category count without an empty slot. */
.chipak-ready-stock-panel[hidden],
.chipak-ready-stock-panel[aria-hidden="true"] {
  display: none !important;
}

.chipak-ready-stock-panel {
  width: 100%;
  max-width: 760px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(2, 15, 27, .42);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
  animation: chipak-ready-panel-in .22s ease-out both;
}

.chipak-ready-stock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
  width: 100%;
}

.chipak-ready-stock-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 13px;
  background: rgba(255, 255, 255, .08);
  color: #fff !important;
  font: inherit;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.7;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.chipak-ready-stock-option:hover {
  transform: translateY(-2px);
  border-color: rgba(224, 170, 54, .85);
  background: rgba(224, 170, 54, .15);
}

.chipak-ready-stock-option:focus-visible,
.chipak-premium-hero .hero-actions .btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(212, 154, 35, .72);
}

@keyframes chipak-ready-panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .chipak-ready-stock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 680px) {
  .chipak-premium-hero .hero-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .chipak-ready-stock-grid {
    grid-template-columns: 1fr;
  }

  .chipak-ready-stock-panel {
    padding: 10px;
    border-radius: 15px;
  }

  .chipak-ready-stock-option {
    min-height: 50px;
  }


  .chipak-premium-hero .hero-benefit,
  .chipak-premium-hero .hero-benefit:first-child,
  .chipak-premium-hero .hero-benefit:nth-child(3) {
    min-height: 104px;
    padding: 14px 9px;
    border-radius: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chipak-ready-stock-panel {
    animation: none !important;
  }

  .chipak-ready-stock-option,
  .chipak-premium-hero .hero-actions .btn {
    transition: none !important;
    transform: none !important;
  }
}

/* Theme 1.3.18: a clean handoff from the calculator to the product rail. */
@media (max-width: 520px) {
  body.home .home-calculator {
    padding-bottom: 20px;
  }

  body.home .home-products {
    padding-top: 28px;
  }

  .home-products .section-head {
    margin-bottom: 14px;
  }

  .home-products .section-head h2 {
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1.5;
  }

  .home-products .section-head-row > .section-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    width: max-content;
    white-space: nowrap;
  }

  .home-products .section-link .chipak-icon {
    flex: 0 0 auto;
  }
}

/* Theme 1.3.21: interactive keyboard-box production sequence in the Hero. */
.hero-side--keyboard {
  align-self: center;
  width: 100%;
  min-height: 0;
  padding-bottom: 24px;
}
#chipak-keyboard-hero:not(.cp-size-preview) {
  --cp-ink: #f2f6fc;
  --cp-muted: #b8c8dc;
  --cp-line: rgba(226, 236, 248, .24);
  --cp-button: rgba(31, 52, 77, .82);
  --cp-blue: #174d86;
  --cp-on-blue: #fff;
  --cp-gold: #d2ac61;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  color: var(--cp-ink);
  color-scheme: dark;
  font-family: Tahoma, Arial, sans-serif;
}
#chipak-keyboard-hero:not(.cp-size-preview) * {
  box-sizing: border-box;
}
#chipak-keyboard-hero:not(.cp-size-preview) .cp-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px 12px;
  font-weight: 700;
}
#chipak-keyboard-hero:not(.cp-size-preview) .cp-state {
  color: var(--cp-muted);
  font-weight: 400;
}
#chipak-keyboard-hero:not(.cp-size-preview) .cp-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
#chipak-keyboard-hero:not(.cp-size-preview) button,
#chipak-keyboard-hero:not(.cp-size-preview) .cp-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--cp-line);
  border-radius: 12px;
  background: var(--cp-button);
  color: var(--cp-ink);
  font: inherit;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
#chipak-keyboard-hero:not(.cp-size-preview) button[aria-pressed="true"] {
  border-color: transparent;
  background: var(--cp-blue);
  color: var(--cp-on-blue);
}
#chipak-keyboard-hero:not(.cp-size-preview) button:disabled {
  opacity: .62;
  cursor: default;
}
#chipak-keyboard-hero:not(.cp-size-preview) .cp-scene {
  position: relative;
  width: 100%;
  height: clamp(340px, 38vw, 440px);
  overflow: hidden;
}
#chipak-keyboard-hero:not(.cp-size-preview) canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}
#chipak-keyboard-hero:not(.cp-size-preview) canvas:active {
  cursor: grabbing;
}
#chipak-keyboard-hero:not(.cp-size-preview) .cp-fallback {
  position: absolute;
  inset: 30% 12%;
  color: var(--cp-muted);
  text-align: center;
}
#chipak-keyboard-hero:not(.cp-size-preview) .cp-caption {
  padding: 3px 0 12px;
  color: var(--cp-muted);
  text-align: center;
}
#chipak-keyboard-hero:not(.cp-size-preview) .cp-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding-bottom: 2px;
  flex-wrap: wrap;
}
#chipak-keyboard-hero:not(.cp-size-preview) .cp-next {
  min-width: 132px;
  border-color: transparent;
  background: var(--cp-blue);
  color: var(--cp-on-blue);
}
#chipak-keyboard-hero:not(.cp-size-preview) .cp-buy {
  min-width: 132px;
  border-color: rgba(250, 220, 151, .66);
  background: linear-gradient(135deg, #e1bd73, #bd8e3d);
  color: #102235;
  font-weight: 700;
}
#chipak-keyboard-hero:not(.cp-size-preview) .cp-buy:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #edca82, #ca9a49);
  color: #102235;
}
#chipak-keyboard-hero:not(.cp-size-preview) button:focus-visible,
#chipak-keyboard-hero:not(.cp-size-preview) .cp-buy:focus-visible,
#chipak-keyboard-hero:not(.cp-size-preview) canvas:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(210, 172, 97, .62);
}

@media (max-width: 480px) {
  .hero-side--keyboard {
    padding-bottom: 18px;
  }
  #chipak-keyboard-hero:not(.cp-size-preview) .cp-scene {
    height: 330px;
  }
  #chipak-keyboard-hero:not(.cp-size-preview) .cp-steps {
    gap: 4px;
  }
  #chipak-keyboard-hero:not(.cp-size-preview) .cp-steps button {
    min-height: 42px;
    padding: 7px 2px;
    border-radius: 9px;
    font-size: 10.5px;
  }
  #chipak-keyboard-hero:not(.cp-size-preview) .cp-actions > * {
    flex: 1 1 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #chipak-keyboard-hero:not(.cp-size-preview) button,
  #chipak-keyboard-hero:not(.cp-size-preview) .cp-buy {
    transition: none !important;
    transform: none !important;
  }
}

/* Theme 1.3.22: two selectable models on one continuous Hero background. */
/* Disclosure changes visibility only; native model controls keep their state. */
.cp-size-preview--hero .cp-hero-options { display: contents; }
.cp-size-preview--hero .cp-hero-options[hidden],
.cp-size-preview--hero .cp-size-steps[hidden],
.cp-size-preview--hero .cp-hero-configure[hidden] { display: none !important; }
.cp-size-preview--hero .cp-hero-configure {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 12px 0 0;
  padding: 12px 16px;
  border: 1px solid #edca82;
  border-radius: 10px;
  background: linear-gradient(135deg, #edca82, #ca9a49);
  color: #102235;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cp-size-preview--hero .cp-hero-configure:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.cp-size-preview--hero[data-stock=kraft] > .cp-hero-options > .cp-customize .cp-stock-swatch {
  background: repeating-linear-gradient(12deg,#b38b56 0 1px,#bc955e 1px 3px,#ad854d 3px 4px);
  border-bottom: 3px double #6e4d29;
}
body.home .chipak-premium-hero {
  background: var(--hero-start, #102235);
}
body.home .chipak-premium-hero::before,
body.home .chipak-premium-hero::after {
  content: none;
  display: none;
}
.cp-model-tabs {
  --cp-model-gap: 6px;
  --cp-model-tab-padding: 12px;
  display: flex;
  gap: var(--cp-model-gap);
  width: 100%;
  max-width: 620px;
  margin: 0 auto 12px;
  padding: 4px;
  border: 1px solid rgba(226, 236, 248, .24);
  border-radius: 14px;
}
/* Group only tabs semantically while preserving the five controls' widths. */
.cp-model-tablist {
  display: flex;
  flex: var(--cp-model-tab-count) 1 calc(var(--cp-model-tab-count) * 2 * var(--cp-model-tab-padding) + (var(--cp-model-tab-count) - 1) * var(--cp-model-gap));
  gap: inherit;
  min-width: 0;
}
.cp-model-tabs [role="tab"] {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 8px var(--cp-model-tab-padding);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d4dfeb;
  font: inherit;
  cursor: pointer;
}
.cp-model-tabs [aria-selected="true"] {
  background: #174d86;
  color: #fff;
}
.cp-model-tabs [role="tab"]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.cp-model-tabs .cp-model-more {
  display:flex;align-items:center;justify-content:center;flex:1.35 1 0;
  min-width:0;min-height:44px;padding:8px 9px;border:1px solid #6f879d;
  border-radius:10px;background:#20384b;color:#fff;font:inherit;
  font-size:12px;line-height:1.7;text-align:center;text-decoration:none;
}
.cp-model-tabs .cp-model-more:focus-visible {outline:2px solid #fff;outline-offset:2px}
@media(max-width:600px){.cp-model-tabs{--cp-model-gap:4px;--cp-model-tab-padding:4px}.cp-model-tabs [role="tab"]{font-size:11px}.cp-model-tabs .cp-model-more{padding:8px 4px;font-size:10px}}
#chipak-keyboard-hero:not(.cp-size-preview)[hidden] {
  display: none !important;
}

/* Keep the two existing route controls; present their captions as gold buttons. */
#purchase-path .chipak-purchase-route:is([data-purchase-route="guide"], .chipak-purchase-route--size) .chipak-purchase-route-copy {
  width: 100%;
  padding: 0 !important;
}
#purchase-path .chipak-purchase-route:is([data-purchase-route="guide"], .chipak-purchase-route--size) .chipak-purchase-route-copy strong {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 12px;
  border: 1px solid #bd8c31;
  border-radius: 12px;
  background: linear-gradient(135deg, #edca82, #ca9a49);
  color: #000 !important;
  font-size: clamp(18px, 1.7vw, 22px) !important;
  font-weight: 900 !important;
  line-height: 1.5;
  text-align: center !important;
  white-space: normal;
}
@media (max-width: 560px) {
  #purchase-path .chipak-purchase-route:is([data-purchase-route="guide"], .chipak-purchase-route--size) .chipak-purchase-route-copy strong {
    min-height: 76px;
    padding: 10px 8px;
  }
}
