/* ==========================================================
   Unitechlao — ຮ້ານຂາຍເຄື່ອງພິມ Xprinter
   ສະໄຕລ໌ໜ້າຮ້ານ · ແກ້ສີ ແລະ ຂະໜາດໄດ້ທີ່ :root ດ້ານລຸ່ມ
   ========================================================== */

:root {
  --ink: #0d1117;
  --ink-2: #161c26;
  --ink-3: #232c3a;
  --paper: #f0f1ec;
  --paper-2: #ffffff;
  --line: #d6d9d0;
  --muted: #6b7280;
  --blue: #1f3fe0;
  --blue-soft: #e7eafd;
  --heat: #e8461c;
  --ok: #127a54;
  --r: 14px;
  --shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(13, 17, 23, 0.45);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: "Noto Sans Lao Looped", "Noto Sans Lao", sans-serif;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}
.lat {
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  letter-spacing: -0.01em;
}
.mono {
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}
.eyebrow {
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- ເມນູຫຼັກ — includes/nav.php ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(240, 241, 236, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.brand .mark svg {
  width: 20px;
  height: 20px;
  display: block;
}
.brand small {
  display: block;
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.site-nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition:
    border-color 0.14s,
    color 0.14s;
}
.site-nav a:hover {
  border-color: var(--heat);
}
.site-nav a.on {
  border-color: var(--ink);
  font-weight: 600;
}

.cartbtn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 10px;
  padding: 10px 15px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.14s;
}
.cartbtn:hover {
  background: #1b2029;
}
.cartbtn b {
  background: var(--heat);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
}

/* ປຸ່ມເມນູສາມຂີດ — ເຫັນສະເພາະຈໍນ້ອຍ */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2, #c9ccc6);
  background: var(--paper-2);
  border-radius: 11px;
  cursor: pointer;
  padding: 12px;
  place-items: center;
  gap: 4.5px;
  flex-direction: column;
  transition:
    border-color 0.14s,
    background 0.14s;
}
.nav-toggle:hover {
  border-color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.22s ease,
    opacity 0.16s ease;
}
body.nav-open .nav-toggle {
  background: var(--ink);
  border-color: var(--ink);
}
body.nav-open .nav-toggle span {
  background: var(--paper);
}
.nav-scrim {
  position: fixed;
  inset: 62px 0 0;
  background: rgba(13, 17, 23, 0.35);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

@media (max-width: 900px) {
  .bar {
    gap: 12px;
    height: 62px;
  }
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0px;
    right: -22px;
    flex-direction: column;
    gap: 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -22px rgba(13, 17, 23, 0.6);
    padding: 6px 22px 14px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity 0.18s ease,
      transform 0.18s ease;
  }
  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px dashed var(--line);
    border-top: 0;
    font-size: 15px;
  }
  .site-nav a:last-child {
    border-bottom: 0;
  }
  .site-nav a:hover,
  .site-nav a.on {
    border-bottom-color: var(--line);
    color: var(--heat);
  }

  body.nav-open .site-nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  body.nav-open .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 15px;
  }
  .brand small {
    font-size: 8.5px;
    letter-spacing: 0.12em;
  }
  .cartbtn {
    padding: 9px 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav,
  .nav-toggle span,
  .nav-scrim {
    transition: none;
  }
}

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.6;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 82px 0 92px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  color: #fff;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--heat);
}
.hero p.lead {
  color: #aeb6c2;
  font-size: 16.5px;
  max-width: 46ch;
  margin: 20px 0 30px;
}
.hero .eyebrow {
  color: #7e8794;
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--heat);
  color: #fff;
}
.btn-ghost {
  border-color: #39424f;
  color: #e7eaef;
}
.btn-dark {
  background: var(--blue-soft);
  color: var(--paper);
}
.btn-line {
  border-color: var(--ink);
  color: var(--ink);
}
.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.hero-stats div {
  border-left: 2px solid var(--heat);
  padding-left: 12px;
}
.hero-stats b {
  display: block;
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 21px;
}
.hero-stats span {
  font-size: 12.5px;
  color: #8b94a1;
}

/* ---------- receipt (signature) ---------- */
.receipt {
  background: var(--paper-2);
  color: var(--ink);
  width: 100%;
  max-width: 352px;
  margin-left: auto;
  position: relative;
  padding: 26px 24px 30px;
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.95;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8);
  transform: rotate(-1.1deg);
}
.receipt::before,
.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 11px;
  background-image:
    linear-gradient(
      45deg,
      transparent 33.333%,
      var(--paper-2) 33.333%,
      var(--paper-2) 66.667%,
      transparent 66.667%
    ),
    linear-gradient(
      -45deg,
      transparent 33.333%,
      var(--paper-2) 33.333%,
      var(--paper-2) 66.667%,
      transparent 66.667%
    );
  background-size: 16px 22px;
}
.receipt::before {
  top: -11px;
  background-position: 0 11px;
  transform: rotate(180deg);
}
.receipt::after {
  bottom: -11px;
  background-position: 0 -11px;
}
.r-center {
  text-align: center;
}
.r-title {
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.16em;
}
.r-sub {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.r-hr {
  border-top: 1px dashed #9aa0a6;
  margin: 11px 0;
}
.r-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.r-row span:last-child {
  white-space: nowrap;
}
.r-free {
  color: var(--ok);
}
.r-total {
  font-weight: 600;
  font-size: 14px;
}
.barcode {
  height: 42px;
  margin: 14px 0 6px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 4px,
    var(--ink) 4px 5px,
    transparent 5px 9px,
    var(--ink) 9px 12px,
    transparent 12px 14px
  );
}
.rline {
  opacity: 0;
  animation: print 0.34s ease forwards;
}
@keyframes print {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rline {
    animation: none;
    opacity: 1;
  }
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 56px 14px 70px;
  }
  .receipt {
    margin: 0 auto;
    transform: none;
  }
}

/* ---------- strip ---------- */
.strip {
  background: var(--ink-2);
  color: #9ba3af;
  border-top: 1px solid #262e3a;
}
.strip .wrap {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.strip b {
  color: var(--paper);
  font-weight: 500;
}

/* ---------- sections ---------- */
section {
  padding: 74px 0;
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.sec-head h2 {
  font-size: clamp(23px, 3vw, 31px);
}
.sec-head p {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 52ch;
  font-size: 14.5px;
}

/* ---------- filters ---------- */
.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 17px;
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--ink);
  transition: 0.15s;
}
.chip:hover {
  border-color: var(--ink);
}
.chip.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 20px;
}
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #f7f8f5, #e6e8e2);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}
.thumb svg {
  width: 58%;
  opacity: 0.9;
}
.tag {
  position: absolute;
  top: 11px;
  left: 11px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
}
.tag.hot {
  background: var(--heat);
}
.card-body {
  padding: 17px 17px 0;
  flex: 1;
}
.model {
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: -0.01em;
}
.card-body .desc {
  color: var(--muted);
  font-size: 13.5px;
  margin: 5px 0 13px;
  line-height: 1.65;
}
.specs {
  list-style: none;
  margin: 0 0 15px;
  padding: 0;
  border-top: 1px dashed var(--line);
}
.specs li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
}
.specs li span:first-child {
  color: var(--muted);
}
.specs li span:last-child {
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
}
.card-foot {
  padding: 0 17px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price {
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--heat);
}
.price small {
  display: block;
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.08em;
}
.add {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: 0.15s;
}
.add:hover {
  background: #1732bc;
}
.empty {
  border: 1px dashed var(--line);
  border-radius: var(--r);
  padding: 44px;
  text-align: center;
  color: var(--muted);
}

/* ---------- why ---------- */
.why {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 26px;
  margin-top: 30px;
}
.why-grid article {
  border-left: 2px solid var(--heat);
  padding-left: 18px;
}
.why-grid h3 {
  font-size: 17px;
  margin-bottom: 7px;
}
.why-grid p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* ---------- contact ---------- */
.contact {
  background: var(--ink);
  color: var(--paper);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}
.contact h2 {
  color: #fff;
  font-size: clamp(23px, 3vw, 32px);
}
.contact p {
  color: #a9b1bd;
  max-width: 48ch;
}
.ctable {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 13.5px;
}
.ctable li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #262e3a;
}
.ctable li span:first-child {
  color: #7e8794;
  letter-spacing: 0.1em;
  font-size: 11px;
  text-transform: uppercase;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

footer {
  background: var(--ink);
  color: #6e7783;
  border-top: 1px solid #222a35;
  font-size: 12.5px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
}

/* ---------- cart drawer ---------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(13, 17, 23, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 80;
}
.scrim.on {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(408px, 100%);
  background: var(--paper);
  z-index: 90;
  transform: translateX(102%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
.drawer.on {
  transform: none;
}
.drawer header {
  position: static;
  background: var(--ink);
  border: 0;
}
.dhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 20px;
  background: var(--ink);
  color: var(--paper);
}
.dhead h3 {
  font-size: 17px;
  color: #fff;
}
.dhead button {
  background: transparent;
  border: 0;
  color: #98a0ac;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.dbody {
  flex: 1;
  overflow: auto;
  padding: 18px 20px;
}
.line {
  display: flex;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.line .mini {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  background: #e4e7e0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.line .mini img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}
.line .mini svg {
  width: 32px;
}
.line-info {
  flex: 1;
  min-width: 0;
}
.line-info b {
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 14.5px;
  display: block;
}
.line-info small {
  color: var(--muted);
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 11.5px;
}
.qty {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 7px;
}
.qty button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}
.qty button:first-child {
  border-radius: 7px 0 0 7px;
}
.qty button:last-child {
  border-radius: 0 7px 7px 0;
}
.qty span {
  width: 36px;
  text-align: center;
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 13px;
  border-block: 1px solid var(--line);
  height: 26px;
  line-height: 24px;
}
.rm {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
  padding: 0;
  margin-top: 6px;
  text-decoration: underline;
}
.dfoot {
  border-top: 1px solid var(--line);
  padding: 18px 20px;
  background: var(--paper-2);
}
.sum {
  display: flex;
  justify-content: space-between;
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 13px;
  padding: 4px 0;
  color: var(--muted);
}
.sum.total {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  padding-top: 11px;
  margin-top: 7px;
  border-top: 1px dashed var(--line);
}
.dfoot .btn {
  width: 100%;
  justify-content: center;
  margin-top: 13px;
}
.swal2-popup {
  font-family: "Noto Sans Lao", sans-serif !important;
  border-radius: 14px !important;
}

/* ==========================================================
   ໜ້າຕິດຕາມຄຳສັ່ງຊື້ — track.php
   ========================================================== */
.track {
  background: var(--paper);
  padding: 64px 0 84px;
}
.track-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 22px;
}
.track-title {
  font-size: clamp(26px, 4vw, 36px);
  margin-top: 6px;
}
.track-sub {
  color: var(--muted);
  margin: 10px 0 28px;
  font-size: 14.5px;
}

.track-form {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.tf-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.tf-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: var(--paper-2);
  color: var(--ink);
  transition: border-color 0.15s;
}
.tf-input:focus {
  border-color: var(--ink);
}
.tf-btn {
  height: 44px;
}
@media (max-width: 620px) {
  .track-form {
    grid-template-columns: 1fr;
  }
  .tf-btn {
    width: 100%;
    justify-content: center;
  }
}

.track-err {
  margin-top: 18px;
  background: rgba(232, 70, 28, 0.09);
  border: 1px solid rgba(232, 70, 28, 0.3);
  color: var(--heat);
  border-radius: 11px;
  padding: 13px 16px;
  font-size: 13.5px;
}

/* ໃບຕິດຕາມ — ໃຊ້ຮູບແບບໃບບິນຄືກັນກັບໜ້າຫຼັກ */
.receipt.plain {
  max-width: none;
  margin: 0;
  transform: none;
  padding: 30px 26px 34px;
}
.track-card {
  margin-top: 26px;
}
.track-card .r-row {
  line-height: 2.05;
}

.stamp {
  display: block;
  width: fit-content;
  margin: 22px auto 6px;
  border: 2px solid var(--heat);
  color: var(--heat);
  border-radius: 8px;
  padding: 6px 18px;
  font-family: "Noto Sans Lao Looped", "Noto Sans Lao", sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  transform: rotate(-4deg);
  opacity: 0.92;
}
.stamp-done {
  border-color: var(--ok);
  color: var(--ok);
}
.stamp-cancel {
  border-color: #9aa0a6;
  color: #9aa0a6;
}

.steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.step {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 20px;
}
.step:last-child {
  padding-bottom: 0;
}
.step::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.step:last-child::before {
  display: none;
}
.step-dot {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 12px;
  border: 2px solid var(--line);
  background: var(--paper-2);
  color: var(--muted);
  z-index: 1;
}
.step-body {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}
.step-body b {
  font-size: 14.5px;
  font-family: "Noto Sans Lao", sans-serif;
}
.step-body small {
  color: var(--muted);
  font-size: 12.5px;
}
.step-done .step-dot {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.step-done::before {
  background: var(--ok);
}
.step-now .step-dot {
  background: var(--heat);
  border-color: var(--heat);
  color: #fff;
}
.step-now .step-body b {
  color: var(--heat);
}
.step-wait .step-body b {
  color: var(--muted);
}

.track-cancel {
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
  margin: 16px 0 0;
}
.track-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.track-actions .btn {
  flex: 1;
  justify-content: center;
  min-width: 150px;
}

.track-note {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 11px;
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  font-family: "Noto Sans Lao", sans-serif;
  font-size: 13.5px;
  line-height: 1.7;
}
.track-note-label {
  display: block;
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 3px;
}
.track-updated {
  margin: 16px 0 0;
  text-align: center;
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 11.5px;
  color: var(--muted);
}

/* ==========================================================
   ໜ້ານະໂຍບາຍ — policy.php
   ========================================================== */
.doc {
  padding: 56px 0 80px;
}
.doc-head {
  max-width: 720px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.doc-title {
  font-size: clamp(28px, 4.2vw, 40px);
  margin-top: 6px;
}
.doc-lead {
  color: var(--muted);
  font-size: 15px;
  margin: 14px 0 0;
  max-width: 56ch;
  line-height: 1.8;
}
.doc-updated {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin: 16px 0 0;
}

.doc-grid {
  display: grid;
  grid-template-columns: 216px 1fr;
  gap: 46px;
  align-items: start;
  padding-top: 38px;
}

.doc-toc {
  position: sticky;
  top: 88px;
}
.doc-toc-label {
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.doc-toc a {
  display: flex;
  gap: 9px;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
  line-height: 1.5;
  transition: color 0.14s;
}
.doc-toc a:last-child {
  border-bottom: 0;
}
.doc-toc a span {
  color: var(--line-strong, #b3b8ad);
  font-size: 11px;
  padding-top: 2px;
}
.doc-toc a:hover {
  color: var(--ink);
}
.doc-toc a:hover span {
  color: var(--heat);
}

.doc-body {
  max-width: 660px;
}
.doc-sec {
  scroll-margin-top: 90px;
  padding-bottom: 38px;
  margin-bottom: 38px;
  border-bottom: 1px dashed var(--line);
}
.doc-sec:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.doc-sec h2 {
  font-size: 20px;
  margin: 0 0 14px;
}
.doc-sec h3 {
  font-family: "Noto Sans Lao", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  margin: 22px 0 8px;
  color: var(--ink);
}
.doc-sec p {
  margin: 0 0 12px;
  color: #3a424e;
  line-height: 1.85;
}
.doc-sec ul {
  margin: 0 0 12px;
  padding-left: 0;
  list-style: none;
}
.doc-sec li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  color: #3a424e;
  line-height: 1.8;
  font-size: 14.5px;
}
.doc-sec li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 7px;
  height: 1.5px;
  background: var(--heat);
}
.doc-sec a {
  color: var(--blue);
  border-bottom: 1px solid rgba(31, 63, 224, 0.3);
}
.doc-sec a:hover {
  border-bottom-color: var(--blue);
}
.doc-sec b {
  font-weight: 600;
  color: var(--ink);
}

.doc-note {
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
  border-radius: 0 10px 10px 0;
  padding: 13px 16px;
  font-size: 13.5px;
  color: var(--muted);
  margin: 16px 0 0;
}

.doc-contact {
  margin: 16px 0 0 !important;
}
.doc-contact li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0 !important;
  border-bottom: 1px dashed var(--line);
  margin: 0 !important;
}
.doc-contact li::before {
  display: none;
}
.doc-contact li span {
  color: var(--muted);
  font-size: 12.5px;
}
.doc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .doc-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 26px;
  }
  .doc-toc {
    position: static;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 16px 18px;
    background: var(--paper-2);
  }
}

.foot-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.foot-links a {
  color: #8a929e;
  border-bottom: 1px solid transparent;
}
.foot-links a:hover {
  color: var(--paper);
  border-bottom-color: #4a5361;
}

/* ==========================================================
   ໜ້າສິນຄ້າແຕ່ລະລຸ້ນ — product.php
   ========================================================== */
.pd {
  padding: 38px 0 80px;
}
.pd-crumb {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 26px;
}
.pd-crumb a {
  border-bottom: 1px solid transparent;
}
.pd-crumb a:hover {
  border-bottom-color: var(--muted);
}
.pd-crumb b {
  color: var(--ink);
  font-weight: 600;
}

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.pd-media {
  position: relative;
  background: linear-gradient(160deg, #f9faf7, #e6e8e2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pd-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 32px;
}
.pd-glyph {
  width: 52%;
}
.pd-media .tag {
  position: absolute;
  top: 14px;
  left: 14px;
}

.pd-model {
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}
.pd-desc {
  color: #3a424e;
  line-height: 1.85;
  margin: 14px 0 0;
  font-size: 15px;
}

.pd-price {
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--heat);
  margin: 24px 0 0;
  line-height: 1.3;
}
.pd-price small {
  display: block;
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
}

.pd-specs {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px dashed var(--line);
}
.pd-specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.pd-specs li span:first-child {
  color: var(--muted);
}

.pd-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.pd-cta .btn {
  flex: 1;
  justify-content: center;
  min-width: 190px;
}

.pd-trust {
  list-style: none;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 22px 0 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.pd-trust li {
  position: relative;
  padding-left: 15px;
}
.pd-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 1.5px;
  background: var(--heat);
}
.pd-policy {
  margin: 14px 0 0;
  font-size: 12.5px;
}
.pd-policy a {
  color: var(--blue);
  border-bottom: 1px solid rgba(31, 63, 224, 0.3);
}

.pd-rel {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.pd-rel h2 {
  font-size: 19px;
  margin-bottom: 18px;
}
.pd-rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.pd-rel-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition:
    transform 0.16s,
    box-shadow 0.16s;
}
.pd-rel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.pd-rel-img {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #f9faf7, #e6e8e2);
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pd-rel-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.pd-rel-img i {
  width: 34px;
  height: 22px;
  border-radius: 4px;
  background: var(--ink);
  display: block;
}
.pd-rel-price {
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-weight: 700;
  color: var(--heat);
  font-size: 15px;
}

@media (max-width: 860px) {
  .pd-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .pd-cta .btn {
    min-width: 0;
  }
}

a.thumb {
  display: grid;
}
a.model {
  display: block;
  transition: color 0.14s;
}
a.model:hover {
  color: var(--heat);
}

/* ປຸ່ມໃສ່ກະຕ່າ ຢູ່ໜ້າສິນຄ້າ */
.pd-buy {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 26px;
  flex-wrap: wrap;
}
.pd-qty {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--paper-2);
}
.pd-qty button {
  width: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  transition: background 0.14s;
}
.pd-qty button:hover {
  background: #edefe9;
}
.pd-qty input {
  width: 52px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 15px;
  background: transparent;
  color: var(--ink);
  outline: none;
}
.pd-add {
  flex: 1;
  justify-content: center;
  min-width: 190px;
  font-weight: 600;
}
.pd-cta {
  margin-top: 12px;
}
@media (max-width: 480px) {
  .pd-qty {
    width: 100%;
  }
  .pd-qty input {
    flex: 1;
    width: auto;
  }
}

/* ==========================================================
   ກ່ອງໂຕ້ຕອບ (SweetAlert2) — ຮູບແບບຂອງເຮົາເອງ
   ໃຊ້ຜ່ານ customClass: SWAL_UI ໃນ index.php
   ========================================================== */
.swal2-popup.co-popup {
  padding: 24px 20px 20px;
  border-radius: 18px;
  background: var(--paper-2);
  font-family: "Noto Sans Lao", sans-serif;
}
.swal2-popup.co-popup .swal2-icon {
  margin: 4px auto 14px;
  width: 64px;
  height: 64px;
}
.swal2-popup.co-popup .swal2-icon .swal2-icon-content {
  font-size: 36px;
}

.co-title {
  font-family: "Noto Sans Lao Looped", "Noto Sans Lao", sans-serif;
  font-weight: 800;
  font-size: 20px !important;
  line-height: 1.45;
  color: var(--ink);
  padding: 0 0 2px !important;
  margin: 0 !important;
}
.co-html {
  margin: 14px 0 0 !important;
  text-align: left !important;
  color: var(--ink);
  font-size: 14px !important;
  line-height: 1.75;
  overflow: visible !important;
}
.co-html .mono {
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
}

/* ໃບສະຫຼຸບລາຍການ */
.co-receipt {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  background: var(--paper);
}
.co-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 4px 0;
}
.co-n {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13.5px;
  line-height: 1.6;
}
.co-q {
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-left: 6px;
  white-space: nowrap;
}
.co-v {
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
  font-size: 13px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.co-sep {
  border-top: 1px dashed var(--line-2, #c9ccc6);
  margin: 9px 0;
}
.co-total .co-n {
  font-weight: 600;
  font-size: 14.5px;
}
.co-total .co-v {
  font-weight: 600;
  font-size: 15px;
  color: var(--heat);
}

/* ຊ່ອງກອກ */
.co-field {
  margin-top: 14px;
}
.co-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.co-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  font-family: "Noto Sans Lao", sans-serif;
  font-size: 16px; /* 16px ກັນ iOS ຊູມເອງ */
  outline: none;
  transition:
    border-color 0.14s,
    box-shadow 0.14s;
}
.co-input.mono {
  font-family: "Noto Sans Lao", "IBM Plex Mono", system-ui, sans-serif;
}
.co-input::placeholder {
  color: #b4bab0;
}
.co-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(13, 17, 23, 0.07);
}
.co-hint {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
}

.swal2-validation-message.co-invalid {
  background: rgba(232, 70, 28, 0.09) !important;
  color: var(--heat) !important;
  border-radius: 10px;
  font-size: 13px;
  margin: 14px 0 0;
  padding: 10px 14px;
}
.swal2-validation-message.co-invalid::before {
  display: none;
}

/* ປຸ່ມ */
.swal2-actions.co-actions {
  width: 100%;
  margin: 20px 0 0;
  gap: 9px;
  flex-wrap: nowrap;
}
.co-confirm,
.co-cancel {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 14px;
  font-family: "Noto Sans Lao", sans-serif;
  font-size: 14.5px;
  cursor: pointer;
  transition:
    background 0.14s,
    border-color 0.14s,
    transform 0.1s;
}
.co-confirm {
  background: var(--heat);
  color: #fff;
  font-weight: 600;
  flex-grow: 1.6;
}
.co-confirm:hover {
  background: #ce3d17;
}
.co-cancel {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2, #c9ccc6);
}
.co-cancel:hover {
  border-color: var(--ink);
}
.co-confirm:active,
.co-cancel:active {
  transform: translateY(1px);
}

@media (max-width: 400px) {
  .swal2-popup.co-popup {
    padding: 20px 16px 16px;
  }
  .co-title {
    font-size: 18px !important;
  }
  .swal2-actions.co-actions {
    flex-wrap: wrap;
  }
  .co-confirm,
  .co-cancel {
    flex: 1 1 100%;
  }
}
/* ===== ປຸ່ມລອຍ ກັບໄປໜ້າຫຼັກ Unitechlao ===== */
.home-fab {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  background: #0d1117;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(13, 17, 23, 0.28);
  backdrop-filter: blur(6px);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.home-fab:hover {
  background: #e8461c;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(232, 70, 28, 0.34);
}
.home-fab:active {
  transform: translateY(0);
}
.home-fab svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.home-fab .fab-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.62;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 10px;
}
@media (max-width: 820px) {
  .home-fab {
    top: 60px;
    left: 10px;
    padding: 9px;
    gap: 0;
  }
  .home-fab .fab-txt,
  .home-fab .fab-sub {
    display: none;
  }
}
@media print {
  .home-fab {
    display: none;
  }
}
