/* Techwatt — base styles (Tailwind handles layout, this file handles the small pieces) */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: #f5f7f3;
  color: #0b1519;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #c9f94a;
  color: #0b1519;
}

/* Product render backdrop */
.prod-media {
  background:
    radial-gradient(120% 120% at 72% 0%, #ffffff 0%, #eef1e8 58%, #e2e8db 100%);
}

/* Cards */
.card-lift {
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s, border-color 0.35s;
}
.card-lift:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 21, 25, 0.18);
  box-shadow: 0 28px 50px -36px rgba(11, 21, 25, 0.55);
}

/* FAQ accordion */
details.faq summary {
  list-style: none;
  cursor: pointer;
}
details.faq summary::-webkit-details-marker {
  display: none;
}
details.faq .faq-mark {
  transition: transform 0.25s ease;
}
details.faq[open] .faq-mark {
  transform: rotate(45deg);
}

/* Tabs */
.tab {
  transition: background-color 0.2s, color 0.2s;
}
.tab[aria-selected="true"] {
  background: #0b1519;
  color: #fff;
}
.tab[aria-selected="false"] {
  background: #fff;
  color: rgba(11, 21, 25, 0.6);
}

/* Filter rows (radio / checkbox) */
.filter-option input:checked + .filter-label {
  background: #0b1519;
  border-color: #0b1519;
  color: #fff;
}
.filter-option input:checked + .filter-label .tick {
  opacity: 1;
}
.filter-option .filter-label {
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

/* Horizontal scrollers */
.no-scrollbar {
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Gallery main image zoom views */
#galleryImage {
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), object-position 0.45s;
}

/* Spec table */
.spec-table tr:nth-child(odd) {
  background: #f5f7f3;
}

/* Mobile filter drawer */
@media (max-width: 1023px) {
  #filterPanel.is-open {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    max-height: 82vh;
    overflow-y: auto;
    border-radius: 1.5rem 1.5rem 0 0;
    background: #fff;
    box-shadow: 0 -20px 60px -20px rgba(11, 21, 25, 0.45);
    padding: 1.25rem;
  }
  #filterPanel.is-open .filter-close {
    display: inline-flex;
  }
}
