:root {
  --bg: #0f0f0f;
  --surface: #1b1b1b;
  --surface-soft: #ffffff;
  --line: #2b2b2b;
  --text: #ffffff;
  --muted: #d1d1d1;
  --yellow: #ffd100;
  --orange: #ee4d2d;
  --orange-soft: #fff1ed;
  --red: #e10600;
  --green: #00b900;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #232323 0%, var(--bg) 48%);
  color: var(--text);
  font-family: 'Bai Jamjuree', sans-serif;
  min-height: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.app-shell {
  max-width: 960px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 92px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 15, 15, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
}

.brand-sub {
  margin: 0;
  color: var(--yellow);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.brand-title {
  margin: 0;
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  text-transform: lowercase;
}

.admin-link {
  color: #111;
  background: var(--yellow);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
}

.screen {
  padding: 16px;
  display: grid;
  gap: 18px;
}

.promo-banner {
  border: 2px solid var(--yellow);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: linear-gradient(140deg, #232323, #151515);
  box-shadow: var(--shadow);
}

.banner-kicker {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
}

.promo-banner h2 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.2;
}

.promo-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.search-box form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-box {
  margin: 10px 0 16px;
}

.search-box input {
  border: 2px solid #3c3c3c;
  border-radius: var(--radius-md);
  background: #fff;
  color: #111;
  font-size: 18px;
  min-height: 52px;
  padding: 12px 14px;
}

.search-box button {
  border: 0;
  border-radius: var(--radius-md);
  background: var(--yellow);
  color: #111;
  min-width: 72px;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 700;
}

.section-head {
  display: grid;
  gap: 4px;
}

.section-title {
  margin: 0;
  font-size: 26px;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.category-item {
  background: #ffffff;
  color: #111;
  border-radius: var(--radius-md);
  padding: 10px;
  min-height: 74px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.category-item i {
  color: var(--red);
  font-size: 20px;
}

.category-item span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  line-height: 1.25;
  min-height: 2.5em;
  overflow-wrap: anywhere;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.product-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-grid > .empty-state-card {
  grid-column: 1 / -1;
  width: 100%;
  justify-self: stretch;
}

.empty-state-card .card-body {
  justify-items: center;
  text-align: center;
}

.empty-state-card .section-sub {
  max-width: 34ch;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-card {
  background: var(--surface-soft);
  border: 1px solid #f1d8d1;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card[data-href] {
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-card .card-image {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

.card-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.product-card .card-body {
  color: #222;
  gap: 8px;
}

.card-body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.product-card .card-body h3 {
  font-size: 15px;
  line-height: 1.35;
  min-height: 40px;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  margin: 0;
  color: var(--orange);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.video-tag {
  margin: 0;
  display: inline-block;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-size: 14px;
  font-weight: 700;
}

.chip-link {
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
}

.card-actions {
  display: grid;
  gap: 8px;
}

.btn {
  border: 0;
  border-radius: 14px;
  min-height: 54px;
  padding: 12px 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
}

.product-card .btn {
  min-height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
}

.btn i {
  font-size: 22px;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--yellow);
  color: #111;
}

.btn-line {
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid #ffcabd;
}

.btn-facebook {
  background: #1877f2;
  color: #fff;
}

.contact-actions {
  padding-bottom: 8px;
}

.contact-grid {
  display: grid;
  gap: 12px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #f1d8d1;
  border-radius: 14px;
  padding: 14px;
  color: #222;
  display: grid;
  gap: 8px;
}

.contact-label {
  margin: 0;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.contact-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.contact-sub {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.45;
}

.contact-card .btn {
  margin-top: 4px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 16px;
}

.contact-card-address .chip-link {
  margin-top: 6px;
}

.faq-section {
  display: grid;
  gap: 10px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: #1a1a1a;
  border: 1px solid #343434;
  border-radius: 14px;
  padding: 12px 14px;
  color: #f5f5f5;
}

.faq-item summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  position: relative;
  padding-right: 20px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--orange);
  font-size: 18px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item p {
  margin: 10px 0 0;
  color: #d1d1d1;
  font-size: 15px;
  line-height: 1.5;
}

.filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-btn {
  border: 1px solid #5a5a5a;
  border-radius: 999px;
  background: #222;
  color: #fff;
  padding: 12px 16px;
  white-space: nowrap;
  font-size: 17px;
}

.filter-btn.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #111;
  font-weight: 700;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.detail-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.detail-body {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.detail-body h2 {
  margin: 0;
  font-size: 28px;
}

.detail-price {
  margin: -4px 0 0;
  color: var(--orange);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.detail-body p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.detail-video {
  display: grid;
  gap: 10px;
}

.detail-video h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.detail-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #3b3b3b;
  background: #000;
}

.detail-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.detail-gallery {
  display: grid;
  gap: 10px;
}

.detail-gallery h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.detail-thumb-btn {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.detail-thumb-btn.is-active {
  border-color: var(--orange);
}

.detail-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #3b3b3b;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0c0c0c;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  z-index: 12;
}

.nav-item {
  color: #c8c8c8;
  min-height: 72px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.nav-item i {
  font-size: 18px;
}

.nav-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #1f1f1f;
  border: 1px solid #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-item.active {
  color: #fff;
}

.nav-item.active .nav-icon-wrap {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

@media (min-width: 768px) {
  .screen {
    padding: 22px;
  }

  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-grid,
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-nav {
    max-width: 960px;
    margin: 0 auto;
  }
}
