/* PRODUCTS PAGE: Scoped styles (Refined) */

/* Center section headings */
section h2 { text-align: center; }

/* Card brand green glow override */
.card-brand {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--sh1), 0 10px 30px rgba(34,197,94,0.06);
  transition: box-shadow .28s ease, transform .22s ease;
}
.card-brand:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(34,197,94,0.08), 0 6px 18px rgba(2,6,23,0.06);
}

/* HERO SLIDER */
#heroSlider { overflow: hidden; }
.product-hero-img {
  height: 320px;
  object-fit: cover;
  transition: transform .7s ease;
}
#heroSlider .slick-slide.slick-active .product-hero-img { transform: scale(1.02); }

/* Slick dots (brand) */
.slick-dots { bottom: -30px; padding: 0; }
.slick-dots li button:before {
    content: "\f111";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--p500);
    font-size: 0.65rem;
    opacity: 0.38;
    transition: opacity .25s ease, transform .25s ease;
}
.slick-dots li.slick-active button:before { opacity: 1; transform: scale(1.05); }

/* Application cards */
.app-card {
  border: 2px solid var(--cloud);
  transition: transform .22s ease, box-shadow .22s ease, border-color .18s ease, background .22s ease;
  cursor: pointer;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  width: 100%;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--sh2); border-color: var(--p500); }
.app-card.active, .app-card[aria-pressed="true"] {
  border-color: var(--p700);
  background: linear-gradient(180deg, rgba(34,197,94,0.05), rgba(34,197,94,0.01));
  box-shadow: 0 12px 30px rgba(34,197,94,0.08);
  transform: translateY(-4px);
}
.app-gif { width: 64px; height: 64px; object-fit: contain; }

/* On very small screens make a two-column grid for app cards */
@media (max-width: 575.98px) {
  #applicationSelector > .col-6 { padding-left: 6px; padding-right: 6px; }
}

/* Equal height for left-right cards */
.calc-row { align-items: stretch; }

/* Range styling (brand) */
.custom-range-track {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--p100) 0%, rgba(255,255,255,0.7) 60%);
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.03);
}
.custom-range-track::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--p700);
    border: 3px solid var(--paper);
    box-shadow: 0 8px 20px rgba(17,94,68,0.18);
    margin-top: -5px;
}
.custom-range-track:focus { outline: 3px solid rgba(44,166,111,0.12); outline-offset: 3px; }

/* Spec item */
.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    background: var(--paper);
}
.spec-item .label { font-size: 0.9rem; color: var(--slate); font-weight: 600; display:flex; gap:8px; align-items:center; }
.spec-item .value { font-size: 0.95rem; font-weight:800; color:var(--p700); }

/* Make spec items occupy full width on small screens */
@media (max-width: 575.98px) {
  #appSpecTable > .col-6 { flex: 0 0 100%; max-width: 100%; }
}

/* Metric boxes for energy/price/lead/consumption */
.metric-item {
  background: var(--paper);
  padding: 12px;
  border-radius: 10px;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.metric-item .small { margin-bottom: 6px; color: var(--muted); }

/* Rectangular quantity controls */
.qty-control-rect {
    display:inline-grid;
    place-items:center;
    width:44px;
    height:44px;
    border-radius:10px;
    background: rgba(44,166,111,0.06);
    color: var(--p700);
    box-shadow: inset 0 0 0 1px rgba(44,166,111,0.12);
    border: none;
    transition: transform .15s ease, box-shadow .15s ease, background .18s ease;
    font-size: 1.05rem;
}
.qty-control-rect:hover, .qty-control-rect:focus-visible {
    transform: translateY(-4px) scale(1.03);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 10px 24px rgba(34,197,94,0.18);
}
.qty-control-rect:active { transform: scale(0.98); }
.qty-control-rect[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; background: var(--cloud); color: var(--muted); }

/* Readonly quantity input */
#qtyInput[readonly] { background: var(--paper); border-color: var(--cloud); cursor: default; text-align:center; font-weight:700; border-radius: 999px; height:44px; }

/* Feature cards: gifs centered */
.feature-card .gif-icon { width:56px; height:56px; display:block; margin:0 auto; }

/* FAQ icons (brand color) */
.card-brand h5 i { color: var(--p700); }

/* Focus outlines for interactive elements */
.app-card:focus-visible, .btn:focus-visible, .qty-control-rect:focus-visible { outline: 3px solid rgba(44,166,111,0.12); outline-offset: 3px; border-radius: 12px; }

/* Responsive */
@media (max-width: 991.98px) {
  .product-hero-img { height: 240px; }
  .app-gif { width:56px; height:56px; }
}
@media (max-width: 768px) {
  .product-hero-img { height: 200px; }
}
@media (max-width: 575.98px) {
  .product-hero-img { height: 180px; }
}
