:root {
  --black: #050607;
  --panel: #11161a;
  --panel-strong: #171d22;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(102, 219, 255, .42);
  --white: #f7fafc;
  --silver: #aeb8c2;
  --muted: #6f7c86;
  --blue: #05a9d6;
  --blue-soft: #6bdcff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 12%, rgba(5, 169, 214, .12), transparent 30%),
    linear-gradient(180deg, #060708 0%, #0d1216 46%, #050607 100%);
  color: var(--white);
  font-family: "Noto Sans Thai", "Inter", sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.shop-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 7, .92);
  backdrop-filter: blur(14px);
}

.brand img {
  display: block;
  width: 156px;
  height: auto;
}

.shop-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(107, 220, 255, .42);
  background: rgba(17, 22, 26, .86);
  color: var(--white);
  padding: 9px 13px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.mobile-menu-toggle span:first-child {
  color: var(--blue-soft);
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  line-height: 1;
}

.shop-nav a,
.button,
.line-inquiry,
.category-filter button,
.modal-close {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(17, 22, 26, .86);
  color: var(--white);
  padding: 11px 16px;
  font-weight: 900;
  cursor: pointer;
}

.shop-nav a:hover,
.category-filter button:hover,
.button:hover,
.line-inquiry:hover {
  border-color: var(--line-strong);
  color: var(--blue-soft);
}

.shop-nav .line-link,
.button.primary,
.line-inquiry {
  border-color: var(--blue);
  background: var(--blue);
  color: #001217;
}

main {
  width: min(1480px, calc(100% - 36px));
  margin: 0 auto;
}

.shop-hero {
  padding: clamp(56px, 8vw, 112px) 0 clamp(38px, 6vw, 78px);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-soft);
  font-family: "Inter", sans-serif;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.shop-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Inter", "Noto Sans Thai", sans-serif;
  font-size: clamp(3.2rem, 10vw, 8.6rem);
  font-weight: 900;
  line-height: .9;
}

.hero-lead {
  max-width: 850px;
  margin: 14px 0 0;
  color: var(--silver);
  font-size: clamp(1.08rem, 1.8vw, 1.45rem);
  font-weight: 700;
}

.hero-subtitle {
  max-width: 860px;
  margin: 20px 0 0;
  color: var(--blue-soft);
  font-family: "Inter", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button.secondary {
  background: var(--panel);
}

.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.search-field {
  display: grid;
  gap: 8px;
  color: var(--silver);
  font-size: .86rem;
  font-weight: 800;
}

.search-field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #07090b;
  color: var(--white);
  padding: 12px 14px;
  outline: none;
}

.search-field input:focus {
  border-color: var(--line-strong);
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.category-filter button.is-active {
  border-color: var(--blue);
  background: rgba(5, 169, 214, .14);
  color: var(--blue-soft);
}

.shop-status {
  padding: 18px 0;
  color: var(--silver);
  font-family: "Inter", sans-serif;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 20px;
  padding-bottom: 84px;
}

.product-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(17, 22, 26, .96);
}

.product-card-button {
  display: grid;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.product-media,
.modal-media {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(5, 169, 214, .15), transparent 42%),
    #07090b;
}

.product-media {
  aspect-ratio: 4 / 5;
}

.product-media img,
.modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-media img {
  padding: 12px;
}

.modal-media img {
  padding: 18px;
}

.product-media img[hidden],
.modal-media img[hidden] {
  display: none;
}

.product-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 24px;
  color: var(--blue-soft);
  text-align: center;
  text-transform: uppercase;
}

.product-placeholder strong {
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1;
}

.product-placeholder span {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: .78rem;
  font-weight: 900;
}

.product-media img:not([hidden]) + .product-placeholder,
.modal-media img:not([hidden]) + .product-placeholder {
  display: none;
}

.product-copy {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.product-category {
  color: var(--blue-soft);
  font-family: "Inter", sans-serif;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-status {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(107, 220, 255, .28);
  background: rgba(5, 169, 214, .12);
  color: var(--blue-soft);
  padding: 5px 10px;
  font-family: "Inter", sans-serif;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-status.status-installer-use {
  border-color: rgba(214, 177, 95, .46);
  background: rgba(214, 177, 95, .12);
  color: #f0cd7e;
}

.product-status.status-installer-use-only {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
}

.product-name {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.25;
}

.product-description {
  color: var(--silver);
  font-size: .95rem;
  font-weight: 700;
}

.product-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-tags span,
.tag-list span {
  border: 1px solid rgba(107, 220, 255, .22);
  padding: 5px 8px;
  color: var(--blue-soft);
  font-family: "Inter", sans-serif;
  font-size: .7rem;
  font-weight: 900;
}

.detail-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(5, 169, 214, .1);
  color: var(--white);
  padding: 9px 13px;
  font-weight: 900;
}

.line-inquiry {
  width: calc(100% - 36px);
  margin: 0 18px 18px;
}

.empty-state {
  margin-bottom: 84px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 28px;
}

.empty-state h2 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--silver);
}

.product-modal[hidden] {
  display: none;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
}

.modal-panel {
  position: relative;
  width: min(1240px, 100%);
  max-height: min(860px, calc(100vh - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  overflow: auto;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .52);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  padding: 0;
  background: rgba(5, 6, 7, .86);
}

.modal-media {
  min-height: 620px;
}

.modal-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
}

.modal-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.modal-copy p {
  margin: 0;
  color: var(--silver);
  font-weight: 700;
}

.product-details {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.product-details div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.product-details dt {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-weight: 900;
}

.product-details dd {
  margin: 0;
  color: var(--white);
  font-weight: 800;
}

.site-nap-footer {
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #050607;
}

.site-nap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.site-nap strong {
  color: var(--white);
}

.site-nap a {
  color: var(--blue-soft);
}

@media (max-width: 980px) {
  .shop-toolbar {
    grid-template-columns: 1fr;
  }

  .category-filter {
    justify-content: flex-start;
  }

  .modal-panel {
    grid-template-columns: 1fr;
  }

  .modal-media {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .site-nap {
    display: grid;
  }

  .shop-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand img {
    width: 136px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .shop-nav {
    width: 100%;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    background: rgba(5, 6, 7, .94);
  }

  .shop-header.is-menu-open .shop-nav {
    display: grid;
  }

  .shop-nav a {
    width: 100%;
  }

  .shop-nav .line-link {
    grid-column: 1 / -1;
  }

  main {
    width: min(100% - 28px, 1480px);
  }

  .shop-hero {
    padding-top: 44px;
  }

  .hero-actions,
  .category-filter {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .category-filter button {
    width: 100%;
  }

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

  .product-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
