/* =========================================================
   Hawaii LED — Single Product Page Styles
   Used by single-hawaii_product.php & template-product.php
   ========================================================= */

.phero {
  position: relative;
  min-height: 84svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  padding-top: var(--hdr);
  background: var(--navy3);
}

.phero__stage {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 45% 55%, rgba(45, 107, 255, .28), transparent 58%), var(--navy3);
}

.phero__stage canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
  z-index: 2;
}

.phero__rings {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(80%, 600px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.phero__rings i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 8px solid rgba(45, 107, 255, .6);
  box-shadow: 0 0 50px rgba(45, 107, 255, .4), inset 0 0 50px rgba(45, 107, 255, .3);
}

.phero__rings i:nth-child(2) {
  inset: 14%;
  border-width: 2px;
  border-color: rgba(245, 166, 35, .45);
  animation: ring 18s linear infinite;
  border-style: dashed;
  box-shadow: none;
}

.phero__dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(143, 178, 245, .35) 1px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%);
}

.phero__scene {
  position: relative;
  overflow: hidden;
}

.phero__scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.phero__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy3) 0%, transparent 30%);
}

.phero__view {
  position: absolute;
  z-index: 3;
  left: 24px;
  bottom: 24px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.phero__view button {
  padding: 9px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3);
  transition: .22s;
}

.phero__view button.is-active,
.phero__view button:hover {
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}

.pintro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}

.pintro__series {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
}

.pintro h1 {
  margin: 12px 0 10px;
  color: var(--navy);
}

.pintro h2 {
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 20px;
}

.pintro p {
  color: var(--mut);
  font-size: 16px;
}

.pintro p + p {
  margin-top: 14px;
}

.pintro__side {
  position: sticky;
  top: calc(62px + 24px);
  padding: 26px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}

.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.kv div {
  background: var(--soft);
  border-radius: 10px;
  padding: 14px;
}

.kv b {
  display: block;
  font-size: 18px;
  color: var(--navy);
}

.kv span {
  font-size: 12px;
  color: var(--mut);
}

.pintro__side .btn {
  width: 100%;
  margin-top: 10px;
}

.vblock {
  position: relative;
  height: min(76vh, 680px);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--navy3);
}

.vblock img {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

.vblock::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(1, 13, 40, .5);
}

.vblock__play {
  position: relative;
  z-index: 2;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  transition: transform .35s var(--ease), background .3s, color .3s;
}

.vblock__play::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .4);
  animation: pulse 2.4s infinite;
}

.vblock__play:hover {
  transform: scale(1.08);
  background: var(--blue);
  color: #fff;
}

.vblock__play svg {
  width: 32px;
  height: 32px;
  margin-left: 5px;
}

.vblock__cap {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 36px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}

.usps-sec {
  background: var(--soft);
}

.usps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.usp {
  text-align: center;
  padding: 30px 18px;
  border-radius: var(--rad);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.usp:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}

.usp__ic {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 2px var(--blue);
}

.usp__ic svg {
  width: 30px;
  height: 30px;
  color: var(--navy);
}

.usp h3 {
  font-size: 15.5px;
  font-weight: 600;
}

.usp p {
  font-size: 13px;
  color: var(--mut);
  margin-top: 6px;
}

.story {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 60px 0;
}

.story + .story {
  border-top: 1px solid var(--line);
}

.story--rev .story__media {
  order: 2;
}

.story__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/11;
  background: var(--soft);
  box-shadow: var(--sh);
}

.story__media img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  will-change: transform;
}

.story__code {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 7px 12px;
  border-radius: 8px;
  letter-spacing: .06em;
}

.story h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  margin: 14px 0 14px;
  color: var(--navy);
}

.story p {
  color: var(--mut);
}

.story ul {
  margin-top: 18px;
  display: grid;
  gap: 9px;
}

.story li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
}

.story li::before {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--blue);
  border-radius: 50%;
}

.opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 30px 34px;
  border-radius: 16px;
  border: 1px solid #F7D9A6;
  background: var(--amber-soft);
}

.opt__ic {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #c77d00;
}

.opt__ic svg {
  width: 28px;
  height: 28px;
}

.opt h3 {
  font-size: 18px;
}

.opt p {
  color: var(--mut);
  font-size: 14.5px;
  margin-top: 6px;
}

.dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dl a {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 24px;
  border-radius: var(--rad);
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}

.dl a:hover {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}

.dl__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dl__ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-soft);
  display: grid;
  place-items: center;
  color: var(--blue);
}

.dl__ic svg {
  width: 22px;
  height: 22px;
}

.dl small {
  font-size: 11.5px;
  color: var(--faint);
}

.dl b {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
}

.spec-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--mut);
  cursor: pointer;
}

.switch input {
  appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 99px;
  background: var(--line2);
  position: relative;
  cursor: pointer;
  transition: background .3s;
  margin: 0;
}

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

.switch input:checked {
  background: var(--navy);
}

.switch input:checked::after {
  transform: translateX(20px);
}

.vtabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.vtabs label {
  padding: 9px 15px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mut);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  transition: .22s;
}

.vtabs input {
  accent-color: var(--navy);
  margin: 0;
}

.vtabs label:has(input:checked) {
  box-shadow: inset 0 0 0 1.5px var(--navy);
  color: var(--navy);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.spec {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14px;
}

.spec th,
.spec td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.spec thead th {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.spec thead th:not(:first-child) {
  color: #fff;
}

.spec tbody th {
  font-weight: 500;
  color: var(--mut);
  width: 30%;
}

.spec tbody td {
  color: var(--ink);
}

.spec tbody tr:nth-child(even) {
  background: #FAFBFD;
}

.spec tbody tr {
  transition: background .2s;
}

.spec tbody tr:hover {
  background: var(--blue-soft);
}

.spec tbody tr.is-same.hide-same {
  display: none;
}

.spec .col-off {
  display: none;
}

.spec-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--faint);
  max-width: 900px;
}

/* Media Queries for Product Page */
@media (max-width: 992px) {
  .phero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .phero__scene {
    height: 32vh;
    min-height: 220px;
  }

  .phero__scene::after {
    background: linear-gradient(180deg, var(--navy3), transparent 40%);
  }

  .pintro__side {
    position: static;
  }

  .dl {
    grid-template-columns: 1fr 1fr;
  }

  .opt {
    grid-template-columns: 1fr;
    text-align: left;
  }
}
