/* ===========================
   TechMillennium – Main Stylesheet
   Mobile-first, modern, premium
   =========================== */

/* --- โทเค็นโทนสี/ฟอนต์ (Tokens) --- */
:root {
  --ink: #080b10;
  --muted: #5e6676;
  --line-color: #d3dcf3;
  --soft: #eef4ff;
  --paper: #ffffff;
  --accent: #0068d8;
  --accent-2: #17b9dc;
  --deep: #09111f;
  --ok: #047857;
  --warn: #b45309;
  --shadow: 0 18px 45px rgba(2, 16, 44, .12);
  --shadow-sm: 0 4px 16px rgba(2, 16, 44, .08);
  --linegreen: #06c755;
  --facebook: #1877f2;
  --radius: 10px;
  font-family: 'IBM Plex Sans Thai', 'Inter', Tahoma, Arial, sans-serif;
}

/* --- ตั้งค่าเริ่มต้น/รีเซ็ต (Reset) --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

/* --- โครงสร้างเลย์เอาต์หลัก (Layout) --- */
.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: auto;
}

/* ===========================
   แถบเมนูด้านบนสุด (TOP BAR)
   =========================== */
.top {
  background: linear-gradient(90deg, #0b1929 0%, #0648a5 100%);
  color: #c8d8f4;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.top .wrap {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}

.top-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a8f0c6;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(168, 240, 198, .3);
  transition: background .15s;
}

.top-line-btn:hover {
  background: rgba(168, 240, 198, .15);
}

/* ===========================
   เมนูนำทางหลัก (NAV)
   =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav .wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  padding: 8px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  flex-shrink: 0;
}

.logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 1px;
  font-weight: 600;
}

.brand span>span {
  font-size: 16px;
}

/* ช่องค้นหา (Search) */
.search {
  position: relative;
  display: flex;
  flex: 1;
  max-width: 280px;
  min-width: 150px;
  background: #fff;
  border: 1.5px solid var(--line-color);
  border-radius: var(--radius);
  transition: border-color .15s;
}

.search:focus-within {
  border-color: var(--accent);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 11px 14px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: transparent;
  font-size: 14px;
}

.search>button {
  border: 0;
  background: linear-gradient(135deg, var(--deep), #0b56c5);
  color: #fff;
  padding: 0 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search>button:hover {
  opacity: .9;
}

.search>button svg {
  display: block;
}

/* แถบคำแนะนำคำค้นหา (Suggestions) */
.suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  display: none;
  background: #fff;
  border: 1px solid var(--line-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
}

.suggestions.open {
  display: block;
}

.suggestion {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 11px;
}

.suggestion:hover,
.suggestion:focus {
  background: var(--soft);
}

.suggestion span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

/* ลิงก์สำหรับเมนูนำทางหลัก */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin: 0 16px;
  white-space: nowrap;
}

.nav-menu-link {
  font-size: 17px;
  font-weight: 700;
  color: #5e6676;
  text-decoration: none;
  transition: color 0.15s;
  letter-spacing: 0;
}

.nav-menu-link:hover,
.nav-menu-link.active {
  color: var(--accent);
}

/* ABOUT click dropdown */
.nav-dropdown-item {
  position: relative;
}

.nav-dropdown-arrow {
  font-size: 10px;
  margin-left: 2px;
  display: inline-block;
  transition: transform 0.2s;
}

.nav-dropdown-item.open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(2,16,44,0.13);
  list-style: none;
  min-width: 170px;
  padding: 6px 0;
  z-index: 9999;
  animation: dropdownFadeIn 0.18s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown-item.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #3a3f52;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-dropdown-link:hover {
  background: #f0f5ff;
  color: var(--accent);
}

.nav-dropdown-menu li + li {
  border-top: 1px solid #f0f0f0;
}


/* กลุ่มปุ่มการทำรายการ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-actions .search {
  max-width: 320px;
  flex: 1;
}

/* ปุ่มเมนูแฮมเบอร์เกอร์สำหรับมือถือ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--line-color);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: border-color 0.15s;
}

.hamburger:hover {
  border-color: var(--accent);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* เมนูนำทางสินค้า / เมนูใหญ่ (Mega Menu) */
.product-nav {
  position: relative;
  z-index: 19;
  background: #f4f7fb;
  border-bottom: 1px solid var(--line-color);
  overflow: visible;
}

.product-nav .wrap {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
}

.product-nav .wrap::-webkit-scrollbar {
  display: none;
}

.nav-group {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav-group:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: #cbd5e1;
}

.nav-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: 100%;
  min-height: 48px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--deep);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--accent);
}

.nav-link span {
  font-size: 10px;
  opacity: .7;
}

.mega-menu {
  display: inline-grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
  width: max-content;
  max-width: calc(100vw - 28px);
  gap: 18px;
  padding: 18px 20px 20px;
  background: #fff;
  border: 1px solid var(--line-color);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s, transform .18s, visibility .18s;
}

.mega-menu-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.product-dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 40;
  display: none;
  background: #fff;
  border-top: 1px solid var(--line-color);
  box-shadow: 0 18px 40px rgba(2, 16, 44, .12);
}

.product-dropdown.open {
  display: block;
}

.mega-menu-simple {
  min-width: 320px;
  grid-template-columns: 1fr;
}

.mega-col {
  min-width: 0;
}

.mega-title {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
}

.mega-group+.mega-group {
  margin-top: 10px;
}

.mega-group-title {
  display: block;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e7edf6;
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
}

.mega-list {
  list-style: none;
  display: grid;
  gap: 0;
}

.mega-item {
  display: block;
  padding: 8px 0;
  color: #656b78;
  font-size: 13px;
  border-bottom: 1px solid #edf1f7;
}

.mega-list li:last-child .mega-item {
  border-bottom: 0;
}

/* ไอคอนช่องทางติดต่อในเมนูนำทาง */
.contact-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--line-color);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow .15s, border-color .15s;
}

.contact-icon:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 104, 216, .15);
}

.contact-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

/* ปุ่มเมนูนำทางบนมือถือ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--line-color);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .2s;
}

/* ===========================
   แบนเนอร์เด่นส่วนหัวของหน้าเว็บ (HERO)
   =========================== */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 48%, #e7f0ff 48%, #c4d4ff 100%);
  border-bottom: 1px solid var(--line-color);
  padding: 48px 0 32px;
}

.hero-inner {
  display: flex;
  align-items: stretch;
  gap: 24px;
  min-height: 460px;
}

.copy {
  width: 46%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 12px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.1;
  letter-spacing: -.5px;
}

.copy>p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 16px 0 28px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* สไตล์สำหรับปุ่มต่างๆ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 22px;
  min-height: 46px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--deep), #0b56c5);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition: opacity .15s, transform .1s;
}

.btn-primary:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  min-height: 46px;
  border-radius: var(--radius);
  background: var(--linegreen);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition: opacity .15s, transform .1s;
}

.btn-line:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* บล็อกรูปภาพประกอบหน้าฮีโร่ */
.media {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 10px;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid var(--line-color);
}

.tile-main {
  min-height: 400px;
}

.tile:not(.tile-main) {
  min-height: 190px;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92);
  transition: transform .4s;
}

.tile:hover img {
  transform: scale(1.03);
}

.label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line-color);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;
}

/* ===========================
   ส่วนข้อมูลต่างๆ บนหน้าเว็บ (SECTIONS)
   =========================== */
.section {
  padding: 36px 0;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.section h2 {
  font-size: 26px;
  letter-spacing: -.3px;
}

.sub {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 6px;
  font-size: 14px;
}

/* แบนเนอร์หมวดหมู่สินค้า */
.cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.cat-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid transparent;
  min-height: 130px;
  background: var(--deep);
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cat-banner:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0, 104, 216, .22);
  border-color: var(--accent);
}

.cat-banner.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 104, 216, .25), 0 12px 30px rgba(0, 104, 216, .2);
}

.cat-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.8) brightness(.72);
  transition: transform .4s, filter .3s;
}

.cat-banner:hover .cat-banner-img {
  transform: scale(1.07);
  filter: saturate(.95) brightness(.6);
}

.cat-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 15, 35, .8) 100%);
  pointer-events: none;
}

.cat-banner-body {
  position: relative;
  z-index: 2;
  padding: 10px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat-banner-abbr {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .18);
  color: #c8d8f8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 3px;
  width: fit-content;
}

.cat-banner-name {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.cat-banner-sub {
  display: block;
  color: rgba(200, 216, 248, .8);
  font-size: 11px;
  margin-top: 1px;
}

.cat-banner-arrow {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  color: rgba(255, 255, 255, .5);
  font-size: 16px;
  transition: color .2s, transform .2s;
}

.cat-banner:hover .cat-banner-arrow {
  color: #fff;
  transform: translateX(3px);
}

.cat-banner.active .cat-banner-arrow {
  color: var(--accent-2);
}

/* แถบตัวกรอง/จัดเรียงสินค้า */
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  min-height: 36px;
  padding: 0 13px;
  border: 1.5px solid var(--line-color);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  transition: .15s;
}

.chip:hover {
  border-color: var(--accent);
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

select {
  min-height: 36px;
  border: 1.5px solid var(--line-color);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 12px;
  font-size: 13px;
}

/* ตารางแสดงรายการสินค้า */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch;
}

.product {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--line-color);
  border-radius: var(--radius);
  transition: box-shadow .18s, transform .1s;
}

.product:hover {
  box-shadow: 0 12px 32px rgba(0, 104, 216, .1);
  transform: translateY(-2px);
}

.pic {
  height: 165px;
  position: relative;
  background: var(--soft);
  overflow: hidden;
}

.pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9);
}

.badge {
  display: none !important;
}

.sale-badge,
.aib-sale-badge,
.detail-sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 44px;
  height: 44px;
  background: #e4002b;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.2px;
  box-shadow: 0 4px 12px rgba(228, 0, 43, 0.35);
  z-index: 6;
  pointer-events: none;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 13px;
}

.brandline {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.product h3 {
  font-size: 14px;
  line-height: 1.45;
  min-height: 42px;
  max-height: 42px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.specs {
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  min-height: 56px;
  max-height: 56px;
  overflow: hidden;
}

.specs li::before {
  content: '• ';
  color: var(--accent);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  min-height: 28px;
  flex-wrap: wrap;
}

.price {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.2;
}

.price-old {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  text-decoration: line-through;
  white-space: nowrap;
  line-height: 1.2;
  font-weight: 400;
}

.stock {
  display: none !important;
}

.pa {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 7px;
  margin-top: 4px;
}

.product-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.btn-add {
  border: 0;
  border-radius: 8px;
  min-height: 38px;
  background: linear-gradient(135deg, var(--deep), #0b56c5);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform .1s, opacity .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

.btn-add:hover {
  opacity: .88;
}

.btn-icon {
  border: 1.5px solid var(--line-color);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 15px;
  min-height: 38px;
  transition: border-color .15s;
}

.btn-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* แถบสีตกแต่ง */
.band {
  background: var(--soft);
  border-top: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
}

.solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.solution {
  padding: 22px;
  border: 1.5px solid var(--line-color);
  border-radius: var(--radius);
  background: #fff;
}

.sol-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.solution b {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
}

.solution p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

/* การ์ดข้อมูลแนะนำบริษัท */
.company-card {
  border: 1.5px solid var(--line-color);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px;
}

.company-card h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.company-card p {
  color: var(--muted);
  line-height: 1.75;
}

.source-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.source-link:hover {
  text-decoration: underline;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--linegreen);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  width: 100%;
}

.btn-submit:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* ===========================
   ส่วนท้ายของหน้าเพจ (FOOTER)
   =========================== */
footer {
  padding: 28px 0;
  background: var(--deep);
  color: #c8d4e8;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.foot-brand strong {
  color: #fff;
  font-size: 16px;
}

.foot-brand small {
  font-size: 12px;
  color: #8096b4;
}

.foot-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .07);
  text-decoration: none;
  overflow: hidden;
  transition: background .15s;
}

.foot-icon:hover {
  background: rgba(255, 255, 255, .15);
}

.foot-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* ===========================
   ปุ่มช่องทางติดต่อด่วนแบบลอย (FLOATING CONTACT BUTTON)
   =========================== */
.float-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 104, 216, .35);
  font-size: 22px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.contact-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(0, 104, 216, .45);
}

#contactToggle[aria-expanded="true"] #contactToggleBadge {
  display: none !important;
}

.toggle-icon {
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-popup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.92);
  transition: opacity .22s cubic-bezier(0.16, 1, 0.3, 1), transform .22s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-popup.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* กล่องครอบปุ่มย่อยแต่ละอัน */
.float-item-wrap,
.float-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ปุ่มย่อยทรงกลม */
.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s, opacity .15s;
}

.float-btn:hover {
  opacity: 1;
  transform: scale(1.12);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .32);
}

.float-btn img,
.float-btn svg,
.float-btn i {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-btn img,
.float-btn svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.live-chat-float {
  background: linear-gradient(135deg, #0068d8, #00459e);
}

.line-float {
  background: linear-gradient(135deg, #06C755, #05a847);
}

.fb-float {
  background: linear-gradient(135deg, #1877F2, #0d62d1);
}

.tt-float {
  background: linear-gradient(135deg, #222222, #000000);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .15);
}

.phone-float {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.phone-float:hover {
  background: linear-gradient(135deg, #15803d, #166534);
}

/* Tooltip กล่องข้อความแนะนำเมื่อชี้หรือโฟกัสปุ่มย่อย */
.float-tooltip,
.phone-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #1a2540;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  padding: 6px 12px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s cubic-bezier(0.16, 1, 0.3, 1), transform .2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
  text-align: right;
}

.float-tooltip::after,
.phone-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #1a2540;
}

.float-tooltip small,
.phone-tooltip small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.float-item-wrap:hover .float-tooltip,
.float-item-wrap:focus-within .float-tooltip,
.float-phone-wrap:hover .phone-tooltip,
.float-phone-wrap:focus-within .phone-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.tt-foot {
  background: #010101;
  color: #fff;
  border-color: rgba(255, 255, 255, .15);
}

.tt-foot:hover {
  background: #222;
}

.shade {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .4);
  opacity: 0;
  transition: opacity .22s;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--line-color);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.icon-btn:hover {
  background: var(--soft);
}

/* ===========================
   กล่องแจ้งเตือนด่วน (TOAST)
   =========================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 16px);
  z-index: 60;
  padding: 11px 18px;
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===========================
   จัดรูปแบบสำหรับการแสดงผลบนแท็บเล็ต (RESPONSIVE – TABLET ≤980px)
   =========================== */
@media (max-width: 980px) {
  .nav .wrap {
    display: grid;
    grid-template-columns: 1fr auto auto;
    /* จัดตำแหน่ง โลโก้, ระยะห่าง และปุ่มเมนูแฮมเบอร์เกอร์ */
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    min-height: auto;
  }

  .brand {
    grid-column: 1;
  }

  .hamburger {
    display: flex;
    grid-column: 3;
    margin-left: 0;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    grid-column: 1 / -1;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line-color);
    padding: 12px 16px;
    gap: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    margin: 0;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu-link {
    display: block;
    padding: 8px 0;
    font-size: 14.5px;
  }

  .nav-actions {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
    margin-top: 4px;
    margin-left: 0;
    max-width: none;
  }

  .search {
    width: 100%;
    max-width: none;
    flex: 1;
  }

  .mega-menu {
    grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
  }

  .hero-inner {
    flex-direction: column;
    min-height: auto;
  }

  .copy {
    width: 100%;
    padding-right: 0;
  }

  .media {
    grid-template-columns: 1fr 1fr;
    min-height: 280px;
  }

  .tile-main {
    min-height: 260px;
  }

  .tile:not(.tile-main) {
    min-height: 130px;
  }

  .cats {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions {
    grid-template-columns: 1fr;
  }

}

/* ===========================
   จัดรูปแบบสำหรับการแสดงผลบนหน้าจอมือถือ (RESPONSIVE – MOBILE ≤640px)
   =========================== */
@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 24px);
  }

  /* จัดรูปหน้าจอด้านบน */
  .top .wrap {
    gap: 4px;
  }

  .product-nav .wrap {
    gap: 0;
  }

  .nav-link {
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }

  .mega-menu {
    width: calc(100vw - 18px);
    max-width: calc(100vw - 18px);
    left: 9px;
    grid-template-columns: 1fr;
    max-height: 68vh;
    overflow: auto;
  }

  /* จัดระเบียบเมนูนำทางหลัก */
  .hamburger {
    display: flex;
  }

  .contact-links {
    justify-content: center;
  }

  /* ปรับแบนเนอร์ฮีโร่ให้กระชับขึ้น */
  .hero {
    padding: 28px 0 20px;
  }

  h1 {
    font-size: 26px;
  }

  .copy>p {
    font-size: 14px;
    margin: 12px 0 20px;
  }

  .actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-line {
    justify-content: center;
  }

  .media {
    grid-template-columns: 1fr;
  }

  .tile-main {
    min-height: 220px;
  }

  .tile:not(.tile-main) {
    display: none;
  }

  /* ปรับแบนเนอร์หมวดหมู่ */
  .cats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-banner {
    min-height: 110px;
  }

  /* แถบตัวกรอง/จัดเรียงสินค้า */
  .bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filters {
    justify-content: flex-start;
  }

  select {
    width: 100%;
  }

  /* ปรับขนาดการแสดงผลสินค้า */
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .product h3 {
    min-height: auto;
    font-size: 13px;
  }

  .specs {
    min-height: auto;
  }

  .price {
    font-size: 16px;
  }

  /* ปุ่มลอยช่องทางติดต่อ */
  .float-contact {
    right: 12px;
    bottom: 12px;
  }

  /* ส่วนท้ายของเว็บสำหรับมือถือ */
  .foot {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ===========================
   การแสดงผลบนขนาดหน้าจอเล็กพิเศษ (EXTRA SMALL ≤400px)
   =========================== */
@media (max-width: 400px) {
  .cats {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   แบนเนอร์เด่นส่วนหัวของหน้าเว็บ (HERO) PANELS (addin.co.th style)
   =========================== */
.hero-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 16px 0;
  min-height: 380px;
  max-height: 440px;
  overflow: hidden;
}

/* --- แผงแบนเนอร์พื้นฐาน --- */
.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
}

/* ให้ภาพพื้นหลังขยายเต็มพื้นที่ */
.panel-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.hero-panel:hover .panel-bg-img {
  transform: scale(1.04);
}

/* โทนสีโปร่งแสงทับหน้าภาพพื้นหลัง */
.panel-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  transition: opacity 0.3s;
}

/* แผงแบนเนอร์ที่ 1 – โทนสีน้ำเงิน (ธีมหลัก TechMillennium) */
.panel-buy .panel-overlay {
  background: linear-gradient(135deg, rgba(0, 104, 216, 0.85) 0%, rgba(15, 59, 119, 0.6) 100%);
}

.panel-buy {
  background: var(--accent);
}

/* แผงแบนเนอร์ที่ 2 – โทนสีกรมท่า/ดำ */
.panel-service .panel-overlay {
  background: linear-gradient(160deg, rgba(9, 17, 31, 0.85) 0%, rgba(15, 25, 45, 0.6) 100%);
}

.panel-service {
  background: var(--deep);
}

/* แผงแบนเนอร์บริการเช่าอุปกรณ์ (Rental Panel) */
.panel-rent .panel-overlay {
  background: linear-gradient(160deg, rgba(94, 102, 118, 0.85) 0%, rgba(50, 60, 75, 0.6) 100%);
}

.panel-rent {
  background: var(--muted);
}

/* แผงแบนเนอร์ตรวจสอบประกันสินค้า (Warranty Panel) */
.panel-warranty {
  background: var(--deep);
  align-items: center;
  justify-content: center;
}

/* --- เนื้อหาข้อมูลภายในแผงแบนเนอร์ --- */
.panel-content {
  position: relative;
  z-index: 2;
  padding: 28px 28px 32px;
  color: #fff;
}

.panel-content-sm {
  padding: 18px 20px 20px;
}

.panel-content-warranty {
  color: var(--ink);
  width: 100%;
  text-align: center;
  padding: 20px 16px;
}

/* --- หัวข้อหรือข้อความพาดหัว --- */
.panel-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.panel-heading-sm {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  margin-bottom: 12px;
}

.panel-heading-dark {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 700;
  margin-bottom: 14px;
}

/* --- ปุ่มกดต่างๆ --- */
.panel-btn {
  display: inline-block;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .85);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  letter-spacing: 0.01em;
}

.panel-btn:hover {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.panel-btn-sm {
  font-size: 0.75rem;
  padding: 5px 14px;
}

/* --- แผงแบนเนอร์ย่อยฝั่งขวา --- */
.hero-panel-stack {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, .1);
}

.hero-panel-stack .hero-panel {
  flex: 1;
}

/* --- ไอคอนส่วนตรวจสอบประกันสินค้า --- */
.warranty-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

.warranty-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s, background 0.2s;
  min-width: 75px;
  box-shadow: var(--shadow-sm);
}

.warranty-icon-btn:hover {
  border-color: var(--accent-2);
  background: rgba(255,255,255,0.2);
  box-shadow: 0 4px 16px rgba(0, 104, 216, .3);
  transform: translateY(-2px);
}

.wicon {
  font-size: 1.4rem;
  line-height: 1;
}

/* --- การจัดแผงแบนเนอร์ฮีโร่สำหรับหน้าจอมือถือ/แท็บเล็ต --- */
@media (max-width: 900px) {
  .hero-panels {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    min-height: 480px;
    max-height: none;
  }

  .panel-buy {
    grid-column: 1 / -1;
    min-height: 200px;
  }

  .hero-panel-stack {
    flex-direction: row;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }
}

@media (max-width: 600px) {
  .hero-panels {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }

  .panel-buy {
    grid-column: 1;
    min-height: 200px;
  }

  .panel-service {
    min-height: 160px;
  }

  .hero-panel-stack {
    flex-direction: column;
  }

  .hero-panel-stack .hero-panel {
    min-height: 140px;
  }

  .panel-heading {
    font-size: 1.2rem;
  }

  .warranty-btns {
    gap: 8px;
  }
}

/* --- หน้าแสดงรายละเอียดสินค้า (ดีไซน์ตามแบบ Canva สวยงาม หรูหรา สะอาดตา) --- */
.detail-canva-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  font-family: inherit;
  color: #1e293b;
}

/* Top Navigation & Breadcrumb */
.detail-top-nav-box {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-breadcrumb-canva {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
}

.detail-breadcrumb-canva a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.detail-breadcrumb-canva a:hover {
  color: #0284c7;
}

.detail-bc-slash {
  color: #cbd5e1;
  font-weight: 300;
}

.detail-bc-brand {
  color: #64748b;
  font-weight: 600;
}

.detail-back-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #0284c7;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  width: fit-content;
  transition: all 0.2s ease;
  font-family: inherit;
}

.detail-back-link-btn:hover {
  color: #0369a1;
  transform: translateX(-3px);
  text-decoration: underline;
}

/* 2-Column Hero Card */
.detail-canva-card {
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: 48px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 36px 40px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Anchor product ribbons to the detail-card edge rather than the centered
   image column, so they visually belong to the product panel. */
.detail-canva-card > .product-card-ribbon {
  top: 14px;
  left: 14px;
}

/* Left: Image */
.detail-left-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  width: 100%;
}

.detail-sale-badge-canva {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  background: #e4002b;
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.2px;
  box-shadow: 0 4px 12px rgba(228, 0, 43, 0.35);
  user-select: none;
}

.detail-img-stage {
  width: 100%;
  aspect-ratio: 1;
  max-width: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
}

.detail-img-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.detail-img-stage img:hover {
  transform: scale(1.03);
}

.detail-gallery-canva {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.detail-thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  padding: 4px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.detail-thumb.active,
.detail-thumb:hover {
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
  transform: translateY(-2px);
}

/* Right: Content */
.detail-right-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.detail-title-canva {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 10px 0;
  letter-spacing: -0.3px;
}

.detail-sku-canva {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

.detail-sku-canva span {
  color: #334155;
  font-weight: 600;
}

/* Price Row - Shifted Left */
.detail-price-row-canva {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  text-align: left;
}

.detail-price-original-canva {
  font-size: 18px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: line-through;
}

.detail-price-current-canva {
  font-size: 30px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
}

/* LINE ADD FRIEND Button Block (Canva Match) - Shifted Left */
.detail-line-cta-block {
  margin-bottom: 24px;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.detail-line-add-friend-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.detail-line-add-friend-btn:hover {
  transform: translateY(-2px);
}

.line-cta-top-text {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  padding-left: 4px;
  width: 100%;
}

.line-icon-badge {
  color: #06c755;
  font-size: 34px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.line-text-accent {
  color: #06c755;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.line-pill-body {
  background: linear-gradient(135deg, #06c755 0%, #00b900 100%);
  color: #ffffff;
  padding: 13px 36px 13px 32px;
  min-width: 250px;
  justify-content: center;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 5px 16px rgba(6, 199, 85, 0.4);
  transition: box-shadow 0.2s, filter 0.2s;
}

.detail-line-add-friend-btn:hover .line-pill-body {
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.55);
  filter: brightness(1.06);
}

.line-pill-brand {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.line-pill-hand-icon {
  font-size: 18px;
  color: #ffffff;
  transform: rotate(-15deg);
  display: inline-block;
  animation: linePointerNudge 1.8s infinite ease-in-out;
}

@keyframes linePointerNudge {
  0%, 100% { transform: rotate(-15deg) translate(0, 0); }
  50% { transform: rotate(-15deg) translate(3px, 3px); }
}

/* Short Specs (รายละเอียดสินค้าโดยย่อ) */
.detail-short-specs-block {
  margin-bottom: 24px;
  padding-top: 4px;
}

.detail-short-specs-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
}

.detail-short-specs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Rich descriptions created in the admin Quill editor. */
.detail-short-specs-rich-content { font-size:14.5px; color:#334155; line-height:1.65; }
.detail-short-specs-rich-content p { margin:0 0 6px; }
.detail-short-specs-rich-content p:last-child { margin-bottom:0; }
.detail-short-specs-rich-content ul { margin:4px 0 8px; padding-left:20px; list-style:disc; }
.detail-short-specs-rich-content ol { margin:4px 0 8px; padding-left:22px; }
.detail-short-specs-rich-content li { margin:0 0 5px; line-height:1.55; }
.detail-short-specs-rich-content ol > li[data-list="bullet"] { list-style:none; position:relative; padding-left:18px; }
.detail-short-specs-rich-content ol > li[data-list="bullet"]::before { content:'•'; position:absolute; left:3px; font-weight:700; }
.detail-short-specs-rich-content .ql-align-center { text-align:center; }
.detail-short-specs-rich-content .ql-align-right { text-align:right; }
.detail-short-specs-rich-content .ql-align-justify { text-align:justify; }

.detail-short-spec-line {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.5;
  font-weight: 500;
}

/* Brand & Category Meta Row */
.detail-meta-canva-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13.5px;
  color: #64748b;
  padding: 14px 0;
  border-top: 1px dotted #cbd5e1;
  border-bottom: 1px dotted #cbd5e1;
  margin-bottom: 20px;
}

.meta-label {
  color: #475569;
  font-weight: 600;
}

.meta-cat-label {
  margin-left: 14px;
}

.meta-link {
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.meta-link:hover {
  color: #0369a1;
  text-decoration: underline;
}

.meta-slash {
  color: #94a3b8;
  margin: 0 2px;
}

.meta-cats-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* Action Toolbar (Wishlist, Compare, Share, Social Circles) */
.detail-toolbar-canva {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.detail-toolbar-left-col {
  margin-top: 16px;
  margin-bottom: 4px;
  justify-content: center;
  width: 100%;
}

.detail-datasheet-left-col {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.detail-tool-btn {
  background: none;
  border: none;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.detail-tool-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.detail-tool-btn.active {
  color: #0284c7;
  background: #e0f2fe;
}

.detail-toolbar-divider {
  width: 1px;
  height: 18px;
  background-color: #cbd5e1;
  margin: 0 2px;
}

.detail-social-circles {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
}

.social-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.social-circle:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.social-circle.line {
  background: #06c755;
  font-size: 16px;
}

.social-circle.fb {
  background: #1877f2;
}

.social-circle.mail {
  background: #ea4335;
}

/* Contact Footer Note */
.detail-contact-footer-note {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
}

.contact-prompt-text {
  margin: 0 0 4px 0;
  color: #475569;
  font-weight: 500;
}

.contact-phone-text {
  margin: 0;
  color: #475569;
  font-weight: 600;
}

.phone-link {
  color: #0284c7;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s ease;
}

.phone-link:hover {
  color: #0369a1;
  text-decoration: underline;
}

/* Datasheet Button Container & Mascot Standing on Top Border */
.detail-datasheet-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 60px;
  padding: 0 10px;
}

.detail-datasheet-wrap {
  position: relative;
  display: inline-flex;
  width: 100%;
  max-width: 320px;
}

.datasheet-mascot-img {
  position: absolute;
  bottom: calc(100% - 2px);
  left: 12px;
  width: 58px;
  height: auto;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.detail-datasheet-wrap:hover .datasheet-mascot-img {
  transform: translateY(-4px) scale(1.06);
}

.detail-datasheet-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  background: linear-gradient(135deg, #004bb5 0%, #0068d8 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 6px 18px rgba(0, 75, 181, 0.3);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.detail-datasheet-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s ease;
}

.detail-datasheet-btn:hover::before {
  left: 140%;
}

.detail-datasheet-btn:hover {
  background: linear-gradient(135deg, #003fa0 0%, #0056b3 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 75, 181, 0.4);
  transform: translateY(-2px);
}

.datasheet-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ffffff;
}

.datasheet-btn-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.datasheet-arrow-icon {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease;
}

.detail-datasheet-btn:hover .datasheet-arrow-icon {
  transform: translateY(2px);
}

/* Full Specs Table Below */
.detail-desc-section-canva {
  margin-top: 36px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.detail-desc-tabs-canva {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.detail-desc-tab-active {
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  border-top: 3px solid #0284c7;
  border-right: 1px solid #e2e8f0;
  letter-spacing: -0.2px;
}

.detail-desc-content-canva {
  padding: 28px 32px;
  overflow-x: auto;
}

.detail-specs-table-canva {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.detail-specs-table-canva tr {
  border-bottom: 1px solid #f1f5f9;
}

.detail-specs-table-canva tr:last-child {
  border-bottom: none;
}

.detail-specs-table-canva tr:nth-child(odd) {
  background-color: #f8fafc;
}

.detail-specs-table-canva td {
  padding: 12px 18px;
  vertical-align: top;
  line-height: 1.6;
}

.detail-specs-table-canva td.spec-label {
  font-weight: 700;
  color: #64748b;
  width: 220px;
  white-space: nowrap;
}

.detail-specs-table-canva td.spec-value {
  color: #1e293b;
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .detail-canva-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 20px;
  }

  .detail-social-circles {
    margin-left: 0;
  }

  .detail-img-stage {
    max-width: 340px;
  }

  .detail-title-canva {
    font-size: 22px;
  }

  .detail-price-current-canva {
    font-size: 26px;
  }

  .detail-desc-content-canva {
    padding: 20px;
  }

  .detail-specs-table-canva td.spec-label {
    width: 140px;
    white-space: normal;
  }
}

/* --- ส่วนเมนูย่อยของแถบนำทาง (Mega Menu) --- */
button.mega-item,
a.mega-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #edf1f7;
  padding: 8px 0;
  color: #656b78;
  font-size: 13px;
  transition: color 0.15s, padding-left 0.15s;
  cursor: pointer;
  text-decoration: none;
}

button.mega-item:hover,
a.mega-item:hover {
  color: var(--accent);
  padding-left: 4px;
}

.mega-list li:last-child button.mega-item,
.mega-list li:last-child a.mega-item {
  border-bottom: 0;
}

/* ===========================
   WARRANTY CHECK MODAL
   =========================== */
.warranty-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.warranty-modal.open {
  opacity: 1;
  visibility: visible;
}

.warranty-shade {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 16, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.warranty-panel {
  position: relative;
  z-index: 2;
  width: min(650px, calc(100vw - 24px));
  max-height: 90vh;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.warranty-modal.open .warranty-panel {
  transform: scale(1) translateY(0);
}

.warranty-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--soft);
}

.warranty-head strong {
  font-size: 16px;
  color: var(--deep);
  font-weight: 800;
}

.warranty-head .icon-btn {
  border: 0;
  background: transparent;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
}

.warranty-head .icon-btn:hover {
  color: var(--ink);
}

.warranty-body {
  padding: 24px;
  overflow-y: auto;
}

.w-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.w-section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  background: #fff;
}

.brand-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.b-logo {
  font-size: 18px;
  font-weight: 900;
  color: var(--deep);
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.5px;
}

.w-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 20px 0;
}

.w-divider::before,
.w-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--line-color);
}

.w-divider span {
  padding: 0 10px;
}

.w-search-form {
  margin-bottom: 20px;
}

.w-input-group {
  display: flex;
  border: 1.5px solid var(--line-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.w-input-group:focus-within {
  border-color: var(--accent);
}

.w-input-group input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  font-size: 14px;
}

.w-input-group button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.w-input-group button:hover {
  opacity: 0.9;
}

.w-result-container {
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

/* สถานะการแสดงผลต่างๆ (โหลดข้อมูลสำเร็จ/ไม่พบข้อมูล) */
.w-loading,
.w-success-card,
.w-error-card {
  display: none;
}

.w-result-container.loading .w-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  gap: 12px;
  color: var(--muted);
}

.w-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: w-spin 0.8s linear infinite;
}

@keyframes w-spin {
  to {
    transform: rotate(360deg);
  }
}

.w-result-container.success .w-success-card {
  display: block;
  background: var(--soft);
  border: 1.5px solid var(--line-color);
  border-left: 4px solid var(--ok);
  padding: 20px;
  border-radius: var(--radius);
}

.w-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.w-status-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.w-status-badge {
  font-size: 13px;
  font-weight: 800;
  color: var(--ok);
}

.w-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--deep);
}

.w-info-grid strong {
  color: var(--muted);
  font-weight: 600;
  margin-right: 4px;
}

.w-claim-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--linegreen);
  color: #fff;
  font-weight: 700;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  transition: opacity 0.2s, transform 0.2s;
}

.w-claim-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.w-result-container.error .w-error-card {
  display: block;
  background: #fff8f8;
  border: 1.5px solid #ffd1d1;
  border-left: 4px solid var(--warn);
  padding: 20px;
  border-radius: var(--radius);
}

.w-error-card p {
  font-weight: 800;
  color: #991b1b;
  font-size: 14px;
  margin-bottom: 8px;
}

.w-error-card small {
  display: block;
  color: #7f1d1d;
  font-size: 12px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.w-claim-btn-secondary {
  background: var(--muted);
}

@media (max-width: 500px) {
  .brand-grid {
    grid-template-columns: 1fr 1fr;
  }

  .w-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   PHONE MODAL STYLES (101-main)
   ========================================== */

/* หน้าต่างป๊อปอัปแสดงเบอร์ติดต่อสำหรับโทรออก */
.phone-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s;
}

.phone-modal.open {
  pointer-events: auto;
  opacity: 1;
}

.phone-modal-shade {
  position: absolute;
  inset: 0;
  background: rgba(9, 17, 31, .55);
  backdrop-filter: blur(3px);
}

.phone-modal-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 28px;
  text-align: center;
  max-width: 320px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
  transform: translateY(16px) scale(.96);
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1);
}

.phone-modal.open .phone-modal-panel {
  transform: translateY(0) scale(1);
}

.phone-modal-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(22, 163, 74, .35);
  animation: phone-ring 1.6s ease-in-out infinite;
}

@keyframes phone-ring {

  0%,
  100% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(-12deg);
  }

  20% {
    transform: rotate(12deg);
  }

  30% {
    transform: rotate(-8deg);
  }

  40% {
    transform: rotate(8deg);
  }

  50% {
    transform: rotate(0deg);
  }
}

.phone-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}

.phone-modal-number {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: #16a34a;
  letter-spacing: 1px;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color .15s;
}

.phone-modal-number:hover {
  color: #15803d;
}

.phone-modal-hours {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.5;
}

.phone-modal-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border: 1.5px solid var(--line-color);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.phone-modal-close:hover {
  background: var(--soft);
  border-color: var(--accent);
  color: var(--ink);
}


/* ===========================
   PRODUCTS PAGE VIEW (Blue Theme)
   =========================== */
#productPageView {
  background: #fff;
}

/* แบนเนอร์หัวหน้าเพจสินค้า */
.pp-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1f45 0%, #1a4fa8 50%, #0d7edb 100%);
}

.pp-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.pp-hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 32px));
  margin: auto;
  text-align: center;
  padding: 52px 0 44px;
}

.pp-hero-content h1 {
  font-size: clamp(28px, 4vw, 46px);
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.pp-hero-content h1 span {
  display: block;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: #a8d4ff;
  margin-top: 4px;
}

.pp-hero-content p {
  color: rgba(200, 228, 255, 0.9);
  font-size: 15px;
  margin-top: 14px;
  line-height: 1.7;
}

/* ตารางแสดงหมวดหมู่ประเภทสินค้า */
.pp-section {
  padding: 40px 0;
}

.pp-section-title {
  font-size: 22px;
  font-weight: 800;
  color: #0b1f45;
  margin-bottom: 28px;
  letter-spacing: -0.3px;
}

.pp-type-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px 12px;
}

.pp-type-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: none;
  color: #1a2a3a;
  transition: transform 0.2s;
}

.pp-type-item:hover {
  transform: translateY(-4px);
}

.pp-type-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  border: 2px solid #d3e5ff;
}

.pp-type-item:hover .pp-type-icon {
  background: #1a4fa8;
  box-shadow: 0 8px 20px rgba(26, 79, 168, 0.25);
  border-color: #1a4fa8;
}

.pp-type-item:hover .pp-type-icon svg {
  color: #fff;
}

.pp-type-icon svg {
  width: 34px;
  height: 34px;
  color: #1a4fa8;
  transition: color 0.2s;
}

.pp-type-label {
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  color: #1a2a3a;
}

/* ส่วนแสดงแบรนด์สินค้าพันธมิตร */
.pp-partners {
  padding: 48px 16px;
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
}

.pp-partners-title {
  font-size: 22px;
  font-weight: 800;
  color: #0b1f45;
  margin-bottom: 8px;
}

.pp-partners-sub {
  color: #5e6676;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.pp-partners-tabs-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #0b1f45;
  margin-bottom: 12px;
}

.pp-partner-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.pp-tab-btn {
  padding: 6px 20px;
  border-radius: 20px;
  border: 1.5px solid #d3dcf3;
  background: #fff;
  color: #5e6676;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s;
}

.pp-tab-btn.active {
  background: #1a4fa8;
  border-color: #1a4fa8;
  color: #fff;
}

.pp-tab-btn:hover:not(.active) {
  border-color: #1a4fa8;
  color: #1a4fa8;
}

.pp-brand-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px 24px;
  align-items: center;
  justify-items: center;
}

.pp-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.pp-brand-logo span {
  font-size: 15px;
  font-weight: 800;
  color: #9aa4b8;
  letter-spacing: -0.3px;
  white-space: nowrap;
  transition: color 0.2s;
}

.pp-brand-logo:hover span {
  color: #1a4fa8;
}

/* ส่วน Product and Service (รายการบริการ 5 ข้อ) */
.pp-services {
  padding: 48px 0 8px;
  background: #fff;
}

.pp-services-title {
  font-size: 26px;
  font-weight: 900;
  color: #1a4fa8;
  letter-spacing: -0.3px;
}

.pp-services-sub {
  font-size: 15px;
  font-weight: 800;
  color: #1a2a3a;
  margin-top: 6px;
  margin-bottom: 24px;
}

.pp-services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.pp-service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f7f9fc;
  border: 1px solid #e6ecf7;
  border-radius: 14px;
  padding: 22px 18px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.pp-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(26, 79, 168, 0.12);
  border-color: #c7dbfb;
}

.pp-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a4fa8, #0d7edb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
}

.pp-service-card p {
  font-size: 13.5px;
  font-weight: 700;
  color: #1a2a3a;
  line-height: 1.5;
  margin: 0;
}

/* ส่วนหัวข้อ Implementation Portfolio (แบบเทมเพลตอ้างอิง) */
.pp-portfolio-intro {
  padding: 48px 0 8px;
  background: #fff;
}

.pp-portfolio-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pp-portfolio-title {
  font-size: 22px;
  font-weight: 900;
  color: #0b1f45;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.pp-portfolio-title span {
  display: block;
  color: #1a4fa8;
}

.pp-portfolio-chevrons {
  margin-left: auto;
  font-size: 24px;
  font-weight: 900;
  color: #c7dbfb;
  letter-spacing: -4px;
}

.pp-portfolio-statement {
  margin-top: 18px;
  font-size: 14.5px;
  color: #334155;
  background: #f0f5ff;
  border-left: 4px solid #1a4fa8;
  border-radius: 8px;
  padding: 16px 20px;
  line-height: 1.8;
}

.pp-portfolio-statement strong {
  color: #1a4fa8;
}

/* ส่วนบล็อกสลับซ้าย-ขวา: ผลงาน Implementation / Network / Security / Maintenance */
.pp-portfolio {
  padding: 8px 0 48px;
  background: #fff;
}

.pp-pf-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid #e6ecf7;
}

.pp-pf-block:first-child {
  border-top: none;
}

.pp-pf-block.reverse .pp-pf-text {
  order: 2;
}

.pp-pf-block.reverse .pp-pf-media {
  order: 1;
}

.pp-pf-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e6ecf7;
}

.pp-pf-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0b1f45;
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0;
}

.pp-pf-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pp-pf-list li {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.75;
  position: relative;
  padding-left: 19px;
  margin-bottom: 8px;
}

.pp-pf-list li::before {
  content: '';
  position: absolute;
  top: .76em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1a7ed8;
}

.pp-pf-list li strong {
  color: #0b1f45;
}

.pp-pf-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pp-pf-media-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #f8fafc;
}

.pp-pf-media-grid img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.pp-pf-media-single {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pp-pf-media-single:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.pp-pf-media-single img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  border-radius: 11px;
  display: block;
}

/* ส่วนภาพตารางแบรนด์สินค้าแยกตามหมวดหมู่ */
.pp-brand-table-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid #e6ecf7;
}

#productPageView .pp-partners {
  display: none;
}

.ap-partners-section {
  background: #fff;
}

.ap-partners-section .pp-partners {
  max-width: 780px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.ap-partners-section .pp-brand-table-img {
  max-width: 720px;
  margin: 0 auto;
}

/* ส่วนแสดงรายละเอียดวิธีการเลือกซื้อสินค้า */
.pp-howto {
  padding: 48px 0;
}

.pp-howto h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0b1f45;
  margin-bottom: 8px;
}

.pp-howto>.wrap>p {
  color: #1a4fa8;
  font-size: 15px;
  margin-bottom: 24px;
}

.pp-howto-step {
  margin-bottom: 24px;
}

.pp-howto-step h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0b1f45;
  margin-bottom: 8px;
}

.pp-howto-step p,
.pp-howto-step li {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.8;
}

.pp-howto-step ol,
.pp-howto-step ul {
  padding-left: 20px;
  margin-top: 6px;
}

.pp-howto-step li {
  margin-bottom: 4px;
}

.pp-howto-step .accent {
  color: #1a4fa8;
  font-weight: 700;
}

.pp-contact-icons {
  display: flex;
  gap: 10px;
  margin: 12px 0 4px;
  flex-wrap: wrap;
}

.pp-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef4ff;
  border: 2px solid #d3e5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a4fa8;
  font-size: 18px;
  text-decoration: none;
  transition: background 0.15s;
}

.pp-contact-icon:hover {
  background: #1a4fa8;
  border-color: #1a4fa8;
  color: #fff;
}

/* ปุ่มย้อนกลับในหน้าสินค้าทั้งหมด */
.pp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1.5px solid #d3e5ff;
  background: #eef4ff;
  color: #1a4fa8;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  margin: 16px 0;
  transition: background 0.15s;
}

.pp-back-btn:hover {
  background: #1a4fa8;
  color: #fff;
  border-color: #1a4fa8;
}

/* การจัดรูปแบบให้เหมาะสมกับหน้าจอมือถือ (หน้าสินค้าทั้งหมด) */
@media (max-width: 900px) {
  .pp-type-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pp-brand-logos {
    grid-template-columns: repeat(3, 1fr);
  }

  .pp-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pp-pf-block {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pp-pf-block.reverse .pp-pf-text,
  .pp-pf-block.reverse .pp-pf-media {
    order: 0;
  }

  .pp-pf-media-grid img {
    height: 100px;
  }

  .pp-portfolio-chevrons {
    display: none;
  }
}

@media (max-width: 600px) {
  .pp-type-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 6px;
  }

  .pp-type-icon {
    width: 54px;
    height: 54px;
  }

  .pp-type-icon svg {
    width: 26px;
    height: 26px;
  }

  .pp-brand-logos {
    grid-template-columns: repeat(3, 1fr);
  }

  .pp-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* ===========================
   CONTACT PAGE VIEW (Blue Theme)
   =========================== */
#contactPageView {
  background: #f8fafc;
  min-height: 100vh;
}

/* แบนเนอร์หัวหน้าติดต่อเรา */
.cp-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1f45 0%, #1a4fa8 50%, #0d7edb 100%);
  border-bottom: 4px solid #1a4fa8;
}

.cp-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: blur(2px);
}

.cp-hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 32px));
  margin: auto;
  text-align: center;
  padding: 60px 0;
}

.cp-hero-content h1 {
  font-size: clamp(32px, 5vw, 48px);
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.cp-hero-content h1 span {
  display: block;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: #a8d4ff;
  margin-top: 6px;
  letter-spacing: 1px;
}

.cp-hero-content p {
  color: rgba(220, 238, 255, 0.95);
  font-size: 15px;
  margin-top: 14px;
  line-height: 1.7;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* โครงสร้างเลย์เอาต์หน้าติดต่อเรา */
.cp-container {
  padding: 30px 0 60px;
}

.cp-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  margin-top: 10px;
}

.cp-info-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cp-form-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cp-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #0b1f45;
  padding-bottom: 10px;
  border-bottom: 2px solid #1a4fa8;
  margin-bottom: 10px;
}

/* การ์ดช่องทางติดต่อต่างๆ (เบอร์โทร, LINE, Facebook, Email) */
.cp-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cp-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.cp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #1a4fa8;
}

.cp-card-icon {
  font-size: 28px;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #f0f5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cp-card-icon.cp-logo-icon {
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.cp-logo-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cp-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.cp-card-body h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0b1f45;
}

.cp-highlight {
  font-size: 14.5px;
  font-weight: 700;
  color: #1a4fa8;
}

.cp-highlight a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
}

.cp-highlight a:hover {
  color: #0d7edb;
}

.cp-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.cp-qr-wrapper {
  margin-top: 10px;
  width: 130px;
  height: 130px;
  padding: 6px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-qr-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cp-line-color {
  background: #e6f9ed;
  color: #06c755;
}

.cp-fb-color {
  background: #e8f4ff;
  color: #1877f2;
}

/* บล็อกข้อมูลที่อยู่และผู้เสียภาษีของบริษัท */
.cp-company-details {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.cp-company-details h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0b1f45;
  margin-bottom: 12px;
}

.cp-company-details p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 6px;
}

/* แบบฟอร์มส่งข้อความติดต่อกลับ */
.cp-form-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.cp-inquiry-form {
  display: grid;
  gap: 16px;
}

.cp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-field label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.cp-field input,
.cp-field textarea {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f8fafc;
}

.cp-field input:focus,
.cp-field textarea:focus {
  border-color: #1a4fa8;
  box-shadow: 0 0 0 3px rgba(26, 79, 168, 0.15);
  background: #fff;
}

.cp-submit-btn {
  background: linear-gradient(135deg, #1a4fa8 0%, #0d7edb 100%);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  text-align: center;
  box-shadow: 0 4px 10px rgba(26, 79, 168, 0.2);
}

.cp-submit-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.cp-submit-btn:active {
  transform: translateY(0);
}

/* บล็อกแสดงแผนที่ Google Maps */
.cp-map-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.cp-map-box h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0b1f45;
  margin-bottom: 14px;
}

.cp-map-placeholder {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
}

/* การจัดรูปแบบหน้าจอติดต่อเราสำหรับมือถือ */
@media (max-width: 900px) {
  .cp-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .cp-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cp-container {
    padding: 20px 0 40px;
  }
}

/* =====================================================
   ABOUT PAGE STYLES
   ===================================================== */

/* ปรับแบนเนอร์ฮีโร่ให้กระชับขึ้น */
.ap-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #09111f 0%, #0b2550 50%, #0068d8 100%);
  overflow: hidden;
  text-align: center;
}

.ap-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="30" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="80" r="40" fill="rgba(255,255,255,0.03)"/></svg>') no-repeat center/cover;
  pointer-events: none;
}

.ap-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9, 17, 31, 0.3) 0%, rgba(0, 104, 216, 0.2) 100%);
  pointer-events: none;
}

.ap-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px;
  max-width: 700px;
}

.ap-hero-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 20px;
  background: #fff;
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ap-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
}

.ap-hero-title {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.ap-hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
}

.ap-hero-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 28px;
}

.ap-hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.ap-btn-primary {
  padding: 11px 24px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}

.ap-btn-primary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ap-btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: #06c755;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.ap-btn-line:hover {
  background: #04a844;
}

/* แถบตัวเลขสถิติบริษัท */
.ap-stats-bar {
  background: #fff;
  border-bottom: 1px solid #e8edf5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ap-stats-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.ap-stat-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 24px 16px;
}

.ap-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: #0068d8;
  line-height: 1;
  margin-bottom: 4px;
}

.ap-stat-label {
  font-size: 12px;
  color: #5e6676;
  font-weight: 500;
}

.ap-stat-divider {
  width: 1px;
  height: 50px;
  background: #e8edf5;
  flex-shrink: 0;
}

/* ส่วนเนื้อหาหลักในหน้าเกี่ยวกับเรา */
.ap-body {
  background: #f8faff;
}

.ap-section {
  padding: 72px 24px;
}

.ap-section-alt {
  background: #fff;
}

.ap-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ap-section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0068d8;
  background: rgba(0, 104, 216, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.ap-section-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: #09111f;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

/* ตารางข้อมูลประวัติบริษัท */
.ap-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .ap-about-grid {
    grid-template-columns: 1fr;
  }
}

.ap-about-text p {
  font-size: 15px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 16px;
}

.ap-profile-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #e8edf5;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ap-profile-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f4fb;
}

.ap-profile-row:last-child {
  border-bottom: none;
}

.ap-profile-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ap-profile-key {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #8693a5;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.ap-profile-val {
  font-size: 14px;
  color: #09111f;
  font-weight: 500;
  line-height: 1.5;
}

/* ตารางรายการบริการทั้งหมดของบริษัท */
.ap-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .ap-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .ap-services-grid {
    grid-template-columns: 1fr;
  }
}

.ap-service-card {
  background: #f8faff;
  border: 1.5px solid #e8edf5;
  border-radius: 14px;
  padding: 28px 22px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.ap-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 104, 216, 0.1);
  border-color: #0068d8;
}

.ap-service-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.ap-service-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #09111f;
  margin-bottom: 8px;
}

.ap-service-card p {
  font-size: 13.5px;
  color: #5e6676;
  line-height: 1.6;
}

/* ส่วนแสดงประวัติและไทม์ไลน์บริษัท */
.ap-timeline {
  position: relative;
  padding-left: 0;
}

.ap-timeline::before {
  content: '';
  position: absolute;
  left: 72px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #0068d8, #17b9dc);
}

.ap-timeline-item {
  display: grid;
  grid-template-columns: 80px 20px 1fr;
  gap: 0 24px;
  align-items: start;
  margin-bottom: 36px;
  position: relative;
}

.ap-timeline-item:last-child {
  margin-bottom: 0;
}

.ap-timeline-year {
  font-size: 13px;
  font-weight: 700;
  color: #0068d8;
  text-align: right;
  padding-top: 3px;
}

.ap-timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #0068d8;
  margin-top: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ap-timeline-dot-active {
  background: #0068d8;
  box-shadow: 0 0 0 4px rgba(0, 104, 216, 0.2);
}

.ap-timeline-content {
  background: #fff;
  border: 1.5px solid #e8edf5;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.ap-timeline-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #09111f;
  margin-bottom: 6px;
}

.ap-timeline-content p {
  font-size: 13.5px;
  color: #5e6676;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .ap-timeline::before {
    left: 60px;
  }

  .ap-timeline-item {
    grid-template-columns: 60px 16px 1fr;
    gap: 0 16px;
  }

  .ap-timeline-year {
    font-size: 11px;
  }
}

/* ตารางแสดงโลโก้แบรนด์สินค้าพันธมิตร */
.ap-brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ap-brand-chip {
  padding: 10px 22px;
  background: #f0f6ff;
  border: 1.5px solid #d0e4ff;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  color: #0052aa;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default;
}

.ap-brand-chip:hover {
  background: #0068d8;
  border-color: #0068d8;
  color: #fff;
  transform: translateY(-2px);
}

/* ส่วนกล่องกระตุ้นการตัดสินใจด้านล่างสุด */
.ap-cta-section {
  background: linear-gradient(135deg, #0b2550 0%, #0068d8 100%);
  padding: 72px 24px;
}

.ap-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.ap-cta-inner h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.ap-cta-inner>p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  line-height: 1.7;
}

.ap-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.ap-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.ap-cta-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.ap-cta-btn-phone {
  background: #fff;
  color: #0068d8;
}

.ap-cta-btn-line {
  background: #06c755;
  color: #fff;
}

.ap-cta-btn-fb {
  background: #1877f2;
  color: #fff;
}

.ap-cta-address {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  text-align: left;
  max-width: 500px;
}

/* =====================================================
   ADD IN BUSINESS STYLE CUSTOM PAGE (BLUE THEME)
   ===================================================== */
.aib-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  max-width: 1320px;
  margin: 40px auto;
  padding: 0 16px;
  align-items: start;
}

/* แถบข้างตัวกรองสเปก (Sidebar Filters) */
.aib-sidebar {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.aib-filter-section {
  margin-bottom: 30px;
}

.aib-filter-section:last-child {
  margin-bottom: 0;
}

.aib-filter-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--deep);
  margin-bottom: 8px;
  position: relative;
  text-transform: uppercase;
  font-family: 'Inter', 'IBM Plex Sans Thai', sans-serif;
}

.aib-divider {
  width: 40px;
  height: 2.5px;
  background-color: var(--accent);
  margin-bottom: 18px;
}

/* ตัวกรองช่วงราคาแบบเลื่อนปรับได้สองทิศทาง */
.aib-price-slider-container {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  padding: 14px 14px 12px;
  background: #f8fbff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.aib-slider-track-wrap {
  position: relative;
  width: 100%;
  height: 6px;
  margin-bottom: 20px;
}

.aib-slider-track {
  position: absolute;
  width: 100%;
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 3px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

/* สีไฮไลต์บนแถบสไลด์ราคา */
.aib-slider-highlight {
  position: absolute;
  height: 6px;
  background-color: var(--accent);
  border-radius: 3px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.aib-price-slider-container input[type="range"] {
  position: absolute;
  width: 100%;
  height: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: 3;
  margin: 0;
}

.aib-price-slider-container input[type="range"]::-webkit-slider-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.1s;
}

.aib-price-slider-container input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.aib-price-slider-container input[type="range"]::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.1s;
}

.aib-price-slider-container input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
}

.aib-price-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.aib-filter-btn {
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background-color 0.2s, transform 0.1s;
  min-width: 96px;
}

.aib-filter-btn:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.aib-price-range-text {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-align: right;
  flex: 1;
  line-height: 1.4;
}

/* รายการตัวกรองออกแบบในสไตล์กล่องตัวเลือก (Checkboxes) */
.aib-filter-list {
  list-style: none;
}

.aib-filter-list li {
  margin-bottom: 12px;
  font-size: 14px;
}

.aib-filter-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  padding: 2px 0;
  transition: color 0.2s;
  font-weight: 500;
}

/* ตกแต่งรูปทรงกล่องตัวเลือก (Checkboxes) */
.aib-filter-list li a::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  margin-right: 10px;
  flex-shrink: 0;
  transition: all 0.2s;
  background: #fff;
}

.aib-filter-list li.active a {
  color: var(--accent);
  font-weight: 700;
}

.aib-filter-list li.active a::before {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

.aib-filter-list li a:hover {
  color: var(--accent);
}

.aib-filter-list li a:hover::before {
  border-color: var(--accent);
}

.aib-filter-list li .count {
  display: inline;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: normal;
  font-size: 12px;
  margin-left: auto;
}

/* แบนเนอร์ส่วนหัวยี่ห้อสินค้า */
.aib-header-banner {
  background: linear-gradient(135deg, #091a36 0%, #1e3c72 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.aib-header-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(23, 185, 220, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  transform: rotate(-30deg);
  pointer-events: none;
}

.aib-header-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.aib-header-logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.aib-header-brand-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #a5f3fc;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.aib-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.aib-description {
  font-size: 15px;
  color: #cbd5e1;
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* พื้นที่หลักสำหรับแสดงรายการสินค้า */
.aib-main {
  background: transparent;
}

/* ตารางแสดงการ์ดสินค้า */
.aib-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* การ์ดสินค้าออกแบบสไตล์ธุรกิจพรีเมียม */
.aib-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.aib-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(9, 26, 54, 0.08);
  border-color: #cbd5e1;
}

/* ป้าย Sale! ติดมุมขวาของการ์ด */
.aib-sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 104, 216, 0.2);
  z-index: 2;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}

/* Image ribbons selected from the Admin product tags. */
.product-card-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 7;
  display: block;
  height: auto;
  max-width: calc(100% - 72px);
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(15, 23, 42, .18));
}
.ribbon-recommended { width: 132px; }
.ribbon-flash-sale { width: 150px; }
/* Align against the outer card edge while leaving a small top breathing room. */
.aib-card > .product-card-ribbon { top: 3px; left: -15px; }
/* Its artwork has a smaller transparent gutter than Flash Sale: keep its
   coloured edge flush with the card without clipping the Thai label. */
.aib-card > .ribbon-recommended { left: -9px; }
@media (max-width: 480px) {
  .ribbon-recommended { width: 108px; }
  .ribbon-flash-sale { width: 122px; }
}

/* ==========================================================================
   RECOMMENDED PRODUCTS REDESIGN (ADDIN STYLE MULTI-ROW CAROUSELS)
   ========================================================================== */

/* Layout wrapper */
#productsLayoutArea {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 24px;
}

/* Category row layout container */
.cat-row-container {
  display: flex;
  gap: 20px;
  align-items: stretch;
  background: #ffffff;
  border: 1.5px solid var(--line-color);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(5, 15, 35, 0.02);
  transition: border-color 0.2s ease;
}

.cat-row-container:hover {
  border-color: rgba(231, 76, 60, 0.15);
}

/* 1. Category Vertical Banner (Left side) */
.cat-row-banner {
  position: relative;
  width: 230px;
  min-height: 360px;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-row-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(231, 76, 60, 0.18);
}

.cat-row-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: saturate(0.8) brightness(0.6);
  transition: transform 0.4s ease, filter 0.3s ease;
}

.cat-row-banner:hover .cat-row-banner-img {
  transform: scale(1.05);
  filter: saturate(0.9) brightness(0.5);
}

.cat-row-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 15, 35, 0.2) 0%, rgba(5, 15, 35, 0.8) 100%);
  z-index: 2;
}

.cat-row-banner-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  align-items: center;
}

.cat-row-banner-title {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.4px;
}

.cat-row-banner-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  font-weight: 600;
}

.cat-row-banner-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid #ffffff;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cat-row-banner:hover .cat-row-banner-btn {
  background: #ffffff;
  color: #e74c3c;
  border-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Custom Category Hover Colors */
.cat-row-banner-content[data-cat="pc"] .cat-row-banner-btn:hover { color: #3498db; }
.cat-row-banner-content[data-cat="workstation"] .cat-row-banner-btn:hover { color: #8e44ad; }
.cat-row-banner-content[data-cat="notebook"] .cat-row-banner-btn:hover { color: #e67e22; }
.cat-row-banner-content[data-cat="surface"] .cat-row-banner-btn:hover { color: #0078d4; }
.cat-row-banner-content[data-cat="apple"] .cat-row-banner-btn:hover { color: #555555; }
.cat-row-banner-content[data-cat="monitor"] .cat-row-banner-btn:hover { color: #1abc9c; }
.cat-row-banner-content[data-cat="ups"] .cat-row-banner-btn:hover { color: #f1c40f; }
.cat-row-banner-content[data-cat="server"] .cat-row-banner-btn:hover { color: #34495e; }
.cat-row-banner-content[data-cat="network"] .cat-row-banner-btn:hover { color: #2ecc71; }
.cat-row-banner-content[data-cat="access-point"] .cat-row-banner-btn:hover { color: #27ae60; }
.cat-row-banner-content[data-cat="switch"] .cat-row-banner-btn:hover { color: #16a085; }
.cat-row-banner-content[data-cat="nas"] .cat-row-banner-btn:hover { color: #d35400; }
.cat-row-banner-content[data-cat="projector"] .cat-row-banner-btn:hover { color: #c0392b; }
.cat-row-banner-content[data-cat="printer"] .cat-row-banner-btn:hover { color: #2980b9; }
.cat-row-banner-content[data-cat="software"] .cat-row-banner-btn:hover { color: #9b59b6; }
.cat-row-banner-content[data-cat="accessories"] .cat-row-banner-btn:hover { color: #f39c12; }

/* 2. Horizontal Products Carousel (Right side) */
.cat-row-slider-container {
  position: relative;
  flex-grow: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.cat-row-slider-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  width: 100%;
  scrollbar-width: none;
  /* Firefox */
  padding: 8px 0;
}

.cat-row-slider-viewport::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.cat-row-slider-track {
  display: flex;
  gap: 16px;
  padding: 4px;
}

.cat-row-slider-track .product {
  flex: 0 0 240px;
  /* Slightly more compact */
  scroll-snap-align: start;
  max-width: 240px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* 3. Slider Control Arrows */
.cat-row-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--line-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  color: var(--deep);
  transition: all 0.2s ease;
  outline: none;
}

.cat-row-slider-arrow:hover {
  background: var(--soft);
  border-color: #e74c3c;
  color: #e74c3c;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.15);
}

.cat-row-slider-arrow.prev-btn {
  left: -16px;
}

.cat-row-slider-arrow.next-btn {
  right: -16px;
}

/* 5. Responsive Styling */
@media (max-width: 992px) {
  .cat-row-container {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
  }

  .cat-row-banner {
    width: 100%;
    min-height: 120px;
    height: 120px;
  }

  .cat-row-banner-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 15px 20px;
  }

  .cat-row-banner-title {
    font-size: 19px;
    margin-bottom: 2px;
  }

  .cat-row-banner-sub {
    margin-bottom: 0;
  }

  .cat-row-banner-btn {
    padding: 6px 14px;
    font-size: 11.5px;
  }

  .cat-row-slider-arrow {
    display: none;
    /* Swipe natively on mobile */
  }
}

.aib-card-img-wrap {
  width: 100%;
  aspect-ratio: 1.02;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  background: transparent;
  border-radius: 10px;
  border: 1px solid #edf2f7;
}

.aib-card-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.aib-card:hover .aib-card-img-wrap img {
  transform: scale(1.05);
}

/* รหัสสินค้าเฉพาะ (SKU Part number) */
.aib-card-sku {
  font-size: 11px;
  color: #64748b;
  font-family: 'Inter', sans-serif;
  margin-bottom: 4px;
  font-weight: 600;
}

.aib-card-cat {
  font-size: 11px;
  text-transform: uppercase;
  color: #0284c7;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

.aib-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--deep);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
  text-decoration: none;
  transition: color 0.2s;
}

.aib-card-title:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* รายการคุณสมบัติสินค้าใต้ชื่อสินค้า */
.aib-card-specs {
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--deep);
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-grow: 1;
  border: 1px solid #edf2f7;
}

.aib-card-spec-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.3;
}

.aib-card-spec-item::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  font-size: 14px;
}

.aib-card-spec-label {
  color: var(--muted);
  font-weight: 600;
}

/* กล่องแสดงราคาสินค้าหลัก */
.aib-card-price-block {
  margin-top: auto;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aib-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.aib-card-price-original {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}

.aib-card-price-current {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
}

.aib-card-price-vat {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* ปุ่มติดต่อฝ่ายขายบนการ์ดสินค้า */
.aib-card-btn {
  background-color: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.aib-card-btn:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 104, 216, 0.2);
}

.aib-card-btn svg {
  transition: transform 0.2s;
}

.aib-card-btn:hover svg {
  transform: scale(1.1);
}

.aib-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

/* การจัดรูปแบบให้เหมาะสมกับหน้าจอมือถือ (หน้าสินค้าทั้งหมด) */
@media (max-width: 992px) {
  .aib-container {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 20px auto;
  }

  .aib-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .aib-header-banner {
    padding: 30px;
  }

  .aib-title {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .aib-grid {
    grid-template-columns: 1fr;
  }

  .aib-header-banner {
    padding: 20px;
  }

  .aib-title {
    font-size: 24px;
  }
}

/* --- ส่วนรายละเอียดสเปกแบบเจาะลึก (Description Section) --- */
.detail-desc-section {
  margin-top: 40px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.detail-desc-tabs {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid var(--line-color);
}

.detail-desc-tab {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  color: var(--deep);
  background: #fff;
  border-right: 1px solid var(--line-color);
  border-top: 3px solid #e74c3c;
  /* แท็บแดงแบบเว็บ addin */
  text-transform: uppercase;
  cursor: default;
}

.detail-desc-content {
  padding: 30px;
  overflow-x: auto;
}

.detail-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 14.5px;
  text-align: left;
}

.detail-specs-table tr {
  border-bottom: 1px solid #edf2f7;
}

.detail-specs-table tr:last-child {
  border-bottom: none;
}

.detail-specs-table tr:nth-child(odd) {
  background-color: #f8fafc;
}

.detail-specs-table td {
  padding: 14px 20px;
  vertical-align: top;
  line-height: 1.6;
}

.detail-specs-table td.spec-label {
  font-weight: 700;
  color: var(--muted);
  width: 25%;
  min-width: 150px;
}

.detail-specs-table td.spec-value {
  color: var(--deep);
}

/* รองรับ Responsive สำหรับสเปกยาวๆ */
@media (max-width: 768px) {
  .detail-desc-content {
    padding: 15px;
  }

  .detail-specs-table td {
    padding: 12px 14px;
    font-size: 13.5px;
  }

  .detail-specs-table td.spec-label {
    width: 35%;
    min-width: 110px;
  }
}

/* ==========================================================================
   RECOMMENDED PRODUCTS REDESIGN (ADDIN STYLE)
   ========================================================================== */
.rec-layout {
  display: flex;
  gap: 30px;
  margin-top: 24px;
}

/* 1. Sidebar Categories (Left) */
.rec-sidebar {
  flex: 0 0 260px;
  background: #ffffff;
  border: 1.5px solid var(--line-color);
  border-radius: var(--radius);
  padding: 20px;
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(5, 15, 35, 0.03);
}

.rec-sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--line-color);
  letter-spacing: -0.2px;
}

.rec-cats-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rec-cat-btn {
  width: 100%;
  background: none;
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-size: 14px;
  font-family: inherit;
  color: var(--muted);
  font-weight: 600;
}

.rec-cat-btn:hover {
  background: var(--soft);
  color: var(--deep);
}

.rec-cat-btn.active {
  background: rgba(231, 76, 60, 0.06);
  /* Soft red tint */
  border-color: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  /* Corporate Red */
}

.rec-cat-text {
  flex-grow: 1;
}

.rec-cat-count {
  font-size: 11px;
  background: var(--soft);
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.rec-cat-btn.active .rec-cat-count {
  background: #e74c3c;
  color: #ffffff;
}

/* 2. Main Content & Slider (Right) */
.rec-main {
  flex-grow: 1;
  min-width: 0;
  /* Important for flex child slider truncation */
  display: flex;
  flex-direction: column;
}

.rec-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1.5px solid var(--line-color);
  padding-bottom: 12px;
}

.rec-active-cat-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--deep);
}

.rec-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rec-sort-label {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}

.rec-main #sortSelect {
  border: 1.5px solid var(--line-color);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13.5px;
  background: #fff;
  color: var(--deep);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.rec-main #sortSelect:focus {
  border-color: #e74c3c;
}

/* 3. Slider Container & Track */
.rec-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.rec-slider-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  width: 100%;
  scrollbar-width: none;
  /* Firefox */
  padding: 10px 0;
}

.rec-slider-viewport::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.rec-slider-track {
  display: flex;
  gap: 16px;
  padding: 4px;
}

/* Override existing grid styles to work inside slider */
.rec-slider-track.grid {
  display: flex !important;
  grid-template-columns: none !important;
}

.rec-slider-track .product {
  flex: 0 0 260px;
  /* Force product cards to maintain size */
  scroll-snap-align: start;
  max-width: 260px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Slider Controls (Prev/Next Arrows) */
.rec-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--line-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  color: var(--deep);
  transition: all 0.2s ease;
  outline: none;
}

.rec-slider-arrow:hover {
  background: var(--soft);
  border-color: #e74c3c;
  color: #e74c3c;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.rec-slider-arrow.prev-btn {
  left: -22px;
}

.rec-slider-arrow.next-btn {
  right: -22px;
}

/* Disabled/Hidden state for arrows (optional, handled in JS) */
.rec-slider-arrow.hidden {
  opacity: 0;
  visibility: hidden;
}

/* 4. Responsive Styling */
@media (max-width: 1024px) {
  .rec-layout {
    flex-direction: column;
    gap: 20px;
  }

  .rec-sidebar {
    flex: none;
    width: 100%;
    padding: 15px;
  }

  .rec-cats-list {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 4px;
  }

  .rec-cats-list::-webkit-scrollbar {
    display: none;
  }

  .rec-cats-list li {
    flex: 0 0 auto;
  }

  .rec-cat-btn {
    padding: 8px 12px;
    gap: 6px;
  }

  .rec-sidebar-title {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .rec-slider-arrow {
    display: none;
    /* Hide arrows on touch-first mobile devices, use native touch swipe */
  }
}

/* ===========================================
   PROMOTION PAGE
   =========================================== */

/* --- Hero Section --- */
.promo-hero {
  position: relative;
  min-height: 460px;
  background: #1a1830;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.promo-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(80, 60, 180, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(60, 40, 140, 0.25) 0%, transparent 50%),
    linear-gradient(135deg, #1a1830 0%, #2a1f4e 50%, #1a1830 100%);
}

.promo-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 32px;
  gap: 40px;
}

.promo-hero-left {
  flex: 1;
  min-width: 0;
}

.promo-back-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 24px;
  transition: all 0.2s ease;
  display: inline-block;
}
.promo-back-btn:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.promo-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.promo-hero-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 440px;
}

.promo-hero-list {
  list-style: none;
  margin-bottom: 32px;
}
.promo-hero-list li {
  color: rgba(255,255,255,0.85);
  font-size: 0.93rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.promo-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  font-size: 12px;
  color: #a8edea;
  flex-shrink: 0;
}

.promo-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.promo-btn-primary {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.promo-btn-primary:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
}

.promo-btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75);
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.promo-btn-secondary:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* --- Right Laptop/Sale Banner --- */
.promo-hero-right {
  flex: 0 0 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-laptop-wrap {
  position: relative;
  width: 420px;
  height: 280px;
  background: #0f0d1e;
  border-radius: 14px 14px 0 0;
  border: 3px solid #3a3460;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
}
.promo-laptop-wrap::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: -30px;
  right: -30px;
  height: 18px;
  background: #2a2550;
  border-radius: 0 0 8px 8px;
  border: 2px solid #3a3460;
  border-top: none;
}

.promo-laptop-screen {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8746a 0%, #d4574b 40%, #c04040 100%);
  position: relative;
  overflow: hidden;
}
.promo-laptop-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.04) 50%, transparent 70%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(0,0,0,0.04) 10px,
      rgba(0,0,0,0.04) 20px
    );
}

.promo-sale-banner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 30px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}

.promo-sale-best {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.promo-sale-text {
  font-size: 4rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -2px;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.promo-sale-sub {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.95);
  background: #2a2a6e;
  padding: 6px 16px;
  border-radius: 4px;
  margin-top: 10px;
  display: inline-block;
  text-transform: uppercase;
}

/* --- Products Section --- */
.promo-products-section {
  background: #f7f8fc;
  padding: 56px 0 64px;
}

.promo-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--deep);
  margin-bottom: 6px;
}
.promo-section-title span {
  color: var(--accent);
}

.promo-section-sub {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 32px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.promo-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line-color);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(2,16,44,0.12);
}

.promo-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #e8746a, #c0392b);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  z-index: 1;
}

.promo-card-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #f5f7fa;
  padding: 10px;
}

.promo-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promo-card-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promo-card-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}

.promo-card-original {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: line-through;
}

.promo-card-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.promo-card-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 8px;
}
.promo-card-btn:hover {
  background: #0051a8;
}

/* Promotion cards share the current category-card presentation while keeping
   their existing links and LINE action intact. */
.promo-card--modern {
  padding: 18px;
}

.promo-card--modern .promo-card-img {
  width: 100%;
  height: 220px;
  box-sizing: border-box;
  margin-top: 28px;
  padding: 0;
  background: transparent;
  object-fit: contain;
}

.promo-card--modern .promo-card-body {
  padding: 0;
  margin-bottom: 8px;
}

.promo-card--modern > div:last-child {
  padding: 8px 0 0 !important;
}

.promo-card--modern .promo-card-btn {
  width: 100%;
  margin-top: 0;
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .promo-hero-content {
    flex-direction: column;
    padding: 40px 20px;
  }
  .promo-hero-right {
    flex: unset;
    width: 100%;
  }
  .promo-laptop-wrap {
    width: 100%;
    max-width: 360px;
    height: 220px;
    margin: 0 auto;
  }
  .promo-sale-text {
    font-size: 3rem;
  }
  .promo-hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .promo-hero-btns {
    flex-direction: column;
  }
}

/* ===========================
   MAIN BANNER CAROUSEL (FULL WIDTH RECTANGLE)
   =========================== */
#bannerSliderSection {
  width: 100%;
  background: transparent;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}

.banner-grid-layout {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.main-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 480;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background: #0f172a;
  user-select: none;
}

.main-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.main-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  height: 100%;
  aspect-ratio: 1920 / 480;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.main-carousel-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
}

.main-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.main-carousel:hover .main-carousel-slide.active img {
  transform: scale(1.01);
}

.main-carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px 24px 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  color: #ffffff;
  pointer-events: none;
}

.main-carousel-caption h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Arrows */
.main-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.main-carousel:hover .main-carousel-arrow {
  opacity: 1;
}

.main-carousel-arrow:hover {
  background: var(--primary, #0284c7);
  color: #ffffff;
  border-color: var(--primary, #0284c7);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.main-carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.main-carousel-arrow.prev {
  left: 24px;
}

.main-carousel-arrow.next {
  right: 24px;
}

/* Indicators */
.main-carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  padding: 6px 16px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.main-carousel-indicator {
  width: 24px;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.75);
}

.main-carousel-indicator.active {
  width: 44px;
  background: var(--primary-light, #38bdf8);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

@media (max-width: 768px) {
  .main-carousel,
  .main-carousel-slide {
    aspect-ratio: 1920 / 480;
    height: auto;
  }
  .main-carousel-arrow {
    opacity: 0.85;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .main-carousel-arrow.prev {
    left: 10px;
  }
  .main-carousel-arrow.next {
    right: 10px;
  }
  .main-carousel-indicators {
    bottom: 12px;
    padding: 4px 12px;
    gap: 6px;
  }
  .main-carousel-indicator {
    width: 16px;
    height: 4px;
  }
  .main-carousel-indicator.active {
    width: 30px;
  }
  .main-carousel-caption {
    padding: 24px 16px 12px 16px;
  }
  .main-carousel-caption h3 {
    font-size: 1.15rem;
  }
}

/* ============================================================ */
/* LIVE CHAT CUSTOMER WINDOW */
/* ============================================================ */
.live-chat-float {
  background-color: var(--accent) !important;
}
.live-chat-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  border: 1px solid rgba(0,0,0,0.1);
  overflow: hidden;
  font-family: inherit;
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.live-chat-window.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Live Chat Status Indicator */
.chat-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: chatDotPulse 2s infinite;
}
.chat-status-dot.offline {
  background: #f59e0b;
  box-shadow: 0 0 4px #f59e0b;
  animation: none;
}
@keyframes chatDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Chat FAQ and Interactive Buttons */
.chat-faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.chat-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.chat-faq-btn:hover {
  background: #f0f7ff;
  border-color: #0f62fe;
  color: #0f62fe;
  transform: translateX(2px);
}
.chat-faq-btn i {
  font-size: 14px;
  color: #0f62fe;
  width: 18px;
  text-align: center;
}
.chat-faq-btn.faq-line {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}
.chat-faq-btn.faq-line:hover {
  background: #06C755;
  border-color: #06C755;
  color: #ffffff;
}
.chat-faq-btn.faq-line i {
  color: #16a34a;
}
.chat-faq-btn.faq-line:hover i {
  color: #ffffff;
}

.chat-faq-btn.faq-phone {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.chat-faq-btn.faq-phone:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}
.chat-faq-btn.faq-phone i {
  color: #2563eb;
}
.chat-faq-btn.faq-phone:hover i {
  color: #ffffff;
}

/* Chat Quick Response Action Cards */
.chat-bot-response {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.chat-action-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chat-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.chat-action-pill:hover {
  opacity: 0.9;
}
.chat-action-pill.pill-line {
  background: #06C755;
  color: #ffffff;
}
.chat-action-pill.pill-phone {
  background: #0f62fe;
  color: #ffffff;
}
.chat-action-pill.pill-warranty {
  background: #475569;
  color: #ffffff;
}
.chat-action-pill.pill-back {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Pre-Chat Quick Connect Header */
.pre-chat-bypass {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}
.pre-chat-bypass-title {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.pre-chat-bypass-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pre-chat-bypass-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.pre-chat-bypass-btn.line {
  background: #06C755;
  color: white;
}
.pre-chat-bypass-btn.phone {
  background: #0f62fe;
  color: white;
}

/* ===========================
   MOBILE LAYOUT SAFEGUARDS
   =========================== */
@media (max-width: 640px) {
  /* These wrappers also have desktop sizing inline in index.html. */
  .top > .wrap,
  .nav > .wrap,
  .product-nav > .wrap,
  .section > .wrap {
    width: calc(100% - 24px) !important;
    max-width: none !important;
  }

  .top > .wrap {
    justify-content: center;
    text-align: center;
    padding: 6px 0;
  }

  .nav .wrap {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  .brand {
    min-width: 0;
    gap: 7px;
  }

  .logo,
  .logo img {
    width: 42px;
    height: 42px;
  }

  .brand > span:last-child {
    min-width: 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hamburger {
    width: 42px;
    height: 42px;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 4px !important;
  }

  .nav-actions .search {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
  }

  #authLoginBtn,
  #userProfile,
  #openCompareTop,
  #openWishlistTop {
    grid-row: 2;
    margin: 0 !important;
  }

  #authLoginBtn {
    grid-column: 2 / -1;
    min-height: 40px;
    padding: 6px 10px !important;
    white-space: nowrap;
  }

  #userProfile {
    grid-column: 2 / -1;
    justify-content: flex-end;
  }

  #openCompareTop,
  #openWishlistTop {
    display: none !important;
  }

  .nav-menu {
    padding: 8px 0;
    gap: 0;
    box-shadow: none;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid #edf1f7;
  }

  .nav-menu-link {
    padding: 11px 4px;
  }

  .nav-dropdown-item {
    flex-wrap: wrap;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: 0;
    border-radius: 0;
  }

  .product-nav .wrap {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .product-nav .nav-group {
    flex: 0 0 auto;
  }

  .product-nav .nav-link {
    padding: 0 10px;
  }

  .product-dropdown {
    left: 12px;
    right: 12px;
    max-width: none;
  }

  .live-chat-window {
    right: 12px;
    bottom: 76px;
    width: calc(100% - 24px);
    max-width: 360px;
  }

  /* Recommended products: keep each row inside the screen and swipeable. */
  #productsLayoutArea {
    margin-top: 16px;
    gap: 20px;
  }

  .cat-row-container {
    padding: 10px;
    gap: 10px;
    overflow: hidden;
  }

  .cat-row-banner {
    min-height: 108px;
    height: 108px;
  }

  .cat-row-banner-content {
    padding: 14px;
  }

  .cat-row-banner-title {
    font-size: 17px;
  }

  .cat-row-banner-sub {
    display: none;
  }

  .cat-row-banner-btn {
    min-height: 34px;
    padding: 5px 12px;
  }

  .cat-row-slider-viewport {
    margin: 0 -2px;
    padding: 4px 2px 10px;
    scroll-padding-inline: 2px;
  }

  .cat-row-slider-track {
    gap: 12px;
    padding: 2px;
  }

  .cat-row-slider-track .product {
    flex-basis: min(82vw, 280px);
    max-width: min(82vw, 280px);
  }

  .cat-row-slider-track .pic {
    height: 150px;
  }

  .cat-row-slider-track .body {
    padding: 11px;
  }
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: break-word;
}
.chat-msg.admin-msg {
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #333;
  align-self: flex-start;
  border-top-left-radius: 4px;
}
.chat-msg.customer-msg {
  background: #0f62fe;
  color: white;
  align-self: flex-end;
  border-top-right-radius: 4px;
}

#chatDropOverlay.drag-over {
  display: flex !important;
  background: rgba(15, 98, 254, 0.2) !important;
}

/* ==============================
   LINE QR Modal Animations
   ============================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* LINE button on product cards */
.btn-line-add {
  flex: 0 0 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  background: #06C755;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(6, 199, 85, 0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}
.btn-line-add:hover {
  background: #05a847;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(6, 199, 85, 0.45);
}
.btn-line-add:active {
  transform: translateY(0);
}

/* =====================================================
   ADD IN BUSINESS STYLE CATEGORY SHOP VIEW (ENHANCED)
   ===================================================== */

/* Breadcrumbs */
.aib-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.aib-breadcrumbs a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}
.aib-breadcrumbs a:hover {
  color: #38bdf8;
}
.aib-breadcrumbs span.sep {
  color: #64748b;
  font-size: 11px;
}
.aib-breadcrumbs span.current {
  color: #ffffff;
  font-weight: 600;
}

/* Category Pills Switcher — wrap grid, no horizontal scroll */
.aib-cat-pills-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  overflow: visible;
}
.aib-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  white-space: normal;
}
.aib-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  letter-spacing: 0.01em;
}
.aib-cat-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.aib-cat-pill.active {
  background: var(--accent, #0284c7);
  border-color: var(--accent, #0284c7);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
  transform: translateY(-1px);
}

/* Clear Filters Button */
.aib-clear-filters-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 20px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.aib-clear-filters-btn:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #dc2626;
}

/* Main Top Toolbar */
.aib-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.aib-results-count {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}
.aib-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.aib-sort-select {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.aib-sort-select:focus {
  border-color: var(--accent, #0284c7);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Active Filter Tags */
.aib-active-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}
.aib-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}
.aib-filter-tag-remove {
  cursor: pointer;
  color: #0284c7;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}
.aib-filter-tag-remove:hover {
  color: #b91c1c;
}

/* Product Card Elements */
.aib-card-img-wrap {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-sizing: border-box;
}
.aib-card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.aib-card:hover .aib-card-img-wrap img {
  transform: scale(1.06);
}

/* Keep product artwork clear of the recommendation/Flash Sale ribbon. */
.aib-card--has-ribbon .aib-card-img-wrap,
.product--has-ribbon .pic {
  box-sizing: border-box;
  padding-top: 28px;
}

/* Home recommendation cards use a full-height image by default.  Size that
   image to the remaining area so the ribbon never overlays the product. */
.product--has-ribbon .pic {
  display: flex;
  align-items: flex-end;
  background: #fff;
}

.product--has-ribbon .pic img {
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

/* Crop only the transparent artwork gutter so the coloured ribbon itself is
   flush with the Home-card edge, matching the category cards. */
.product > .ribbon-recommended {
  top: 0;
  left: -8px;
}

.product > .ribbon-flash-sale {
  top: -1px;
  left: -10px;
}
.aib-card-sku {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.aib-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.4px;
}
.aib-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 41px;
  transition: color 0.2s;
}
.aib-card-title:hover {
  color: var(--accent, #0284c7);
}
.aib-card-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #475569;
  border: 1px solid #edf2f7;
  flex-grow: 1;
}
.aib-card-spec-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aib-card-spec-label {
  font-weight: 700;
  color: #1e293b;
  margin-right: 4px;
}
.aib-card-price-block {
  margin-top: auto;
  padding-top: 8px;
  margin-bottom: 12px;
}
.aib-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.aib-card-price-original {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}
.aib-card-price-current {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.aib-card-price-vat {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.aib-card-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.aib-card-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Pagination Controls */
.aib-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.aib-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.aib-page-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}
.aib-page-btn.active {
  background: var(--accent, #0284c7);
  border-color: var(--accent, #0284c7);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.35);
}
.aib-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .aib-container {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 20px auto;
  }
  .aib-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .aib-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .aib-title {
    font-size: 26px;
  }
  .aib-header-banner {
    padding: 24px 20px;
  }
}
@media (max-width: 576px) {
  .aib-grid {
    grid-template-columns: 1fr;
  }
  .aib-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .aib-toolbar-right {
    justify-content: space-between;
  }
}

/* ============================================================
   MOBILE UX POLISH
   Keep the existing routes and actions intact while making every
   customer-facing view comfortable on narrow touch screens.
   ============================================================ */
.aib-mobile-filter-toggle {
  display: none;
}

:where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid rgba(0, 104, 216, .28);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 16px;
  }

  body {
    overflow-x: clip;
  }

  button,
  [role="button"],
  input,
  select,
  textarea {
    touch-action: manipulation;
  }

  input,
  select,
  textarea {
    min-height: 44px;
    font-size: 16px !important;
  }

  .section {
    padding: 28px 0;
  }

  .head {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }

  .head h2 {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  /* Header: retain every action, but reveal them in two clear rows. */
  .top > .wrap > span:first-child {
    display: none;
  }

  .top > .wrap {
    min-height: 32px;
    justify-content: flex-end;
    text-align: right;
  }

  .top-line-btn {
    min-height: 30px;
    padding-inline: 12px;
  }

  .nav {
    position: relative;
    top: auto;
  }

  .nav .wrap {
    grid-template-columns: minmax(0, 1fr) auto auto;
    row-gap: 6px;
  }

  .nav-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-row: 2;
    gap: 6px !important;
  }

  .nav-menu {
    grid-row: 3;
  }

  .nav-actions .search {
    grid-column: 1;
    grid-row: 1;
  }

  .search input {
    padding: 10px 12px;
  }

  .search > button,
  .hamburger,
  #authLoginBtn {
    min-height: 44px;
  }

  #authLoginBtn,
  #userProfile {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  #userProfile {
    max-width: 44px;
  }

  #userDropdownBtn > div:last-child {
    display: none !important;
  }

  .suggestions {
    width: calc(100vw - 24px);
    max-height: min(52dvh, 320px);
  }

  .nav-menu {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-menu-link,
  .nav-dropdown-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .product-nav .wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 12px;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .product-nav .nav-group {
    min-width: 0;
    max-width: calc(100vw - 24px);
    scroll-snap-align: start;
  }

  .product-nav .nav-link {
    width: auto;
    max-width: calc(100vw - 24px);
    min-height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-dropdown {
    left: 12px !important;
    right: auto !important;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    min-width: 0;
  }

  .product-dropdown .mega-menu,
  .product-dropdown .mega-menu-simple {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .product-dropdown {
    max-height: 65dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Home and catalogue views. */
  .hero-panels {
    grid-template-columns: none;
    grid-template-rows: 168px;
    grid-auto-flow: column;
    grid-auto-columns: min(84vw, 320px);
    margin: 10px 12px 0;
    gap: 8px;
    min-height: 168px;
    max-height: none;
    padding-bottom: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .hero-panels::-webkit-scrollbar {
    display: none;
  }

  .hero-panel,
  .panel-buy,
  .panel-service,
  .panel-rent {
    min-height: 168px;
    scroll-snap-align: start;
  }

  .panel-content {
    padding: 16px;
  }

  .panel-heading {
    margin-bottom: 10px;
    font-size: 1.08rem;
    line-height: 1.28;
  }

  .panel-btn,
  .cat-row-banner-btn,
  .pp-back-btn,
  .cp-submit-btn {
    min-height: 44px;
  }

  .main-carousel,
  .main-carousel-slide {
    min-height: 118px;
  }

  .main-carousel-arrow {
    display: none;
  }

  .main-carousel-indicators {
    bottom: 7px;
  }

  .cat-row-slider-viewport,
  .rec-cats-list,
  .aib-cat-pills-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .rec-main-header,
  .rec-active-cat-name-wrapper,
  .aib-toolbar-right {
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
  }

  .rec-sort-wrapper,
  .aib-sort-select {
    width: 100%;
  }

  .rec-sort-wrapper {
    align-items: center;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .cat-row-slider-track .product {
    flex-basis: min(76vw, 250px);
    max-width: min(76vw, 250px);
  }

  .cat-row-slider-track .pic {
    height: 138px;
  }

  .cat-row-slider-track .body {
    gap: 6px;
    padding: 10px;
  }

  .cat-row-slider-track .btn-add,
  .cat-row-slider-track .btn-line-add {
    min-height: 44px;
  }

  .cat-row-slider-track .btn-line-add {
    min-width: 44px;
    height: 44px;
  }

  .pp-type-grid,
  .pp-brand-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pp-services-grid {
    grid-template-columns: 1fr;
  }

  .pp-type-card,
  .pp-brand-logo-item,
  .pp-service-card,
  .cp-card {
    min-width: 0;
  }

  .aib-container,
  .cp-container,
  .ap-container,
  .pp-container {
    width: calc(100% - 24px);
  }

  .aib-container {
    gap: 12px;
    margin-block: 12px 24px;
  }

  .aib-mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
  }

  .aib-mobile-filter-toggle i:last-child {
    margin-left: auto;
    transition: transform .2s ease;
  }

  .aib-mobile-filter-toggle.is-open i:last-child {
    transform: rotate(180deg);
  }

  .aib-sidebar {
    display: none;
    max-height: min(68dvh, 520px);
    padding: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .aib-sidebar.is-open {
    display: block;
  }

  .aib-main {
    min-width: 0;
  }

  .aib-header-banner,
  .promo-hero-content,
  .cp-hero-content,
  .ap-hero-content {
    padding-inline: 16px;
  }

  .aib-header-banner {
    padding-block: 18px;
    margin-bottom: 16px;
    border-radius: 12px;
  }

  .aib-title {
    font-size: 1.4rem;
  }

  .aib-description {
    font-size: 13px;
    line-height: 1.5;
  }

  .aib-toolbar {
    gap: 8px;
    padding: 10px;
    margin-bottom: 12px;
  }

  .aib-grid {
    gap: 10px;
  }

  .aib-card {
    padding: 14px;
  }

  .aib-card-img-wrap {
    height: 168px;
    margin-bottom: 8px;
  }

  .aib-pagination {
    gap: 4px;
    margin-top: 20px;
    padding: 10px 0;
  }

  .aib-page-btn {
    min-width: 40px;
    height: 40px;
    padding-inline: 10px;
  }

  .aib-cat-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .aib-cat-pill {
    min-height: 40px;
    flex: 0 0 auto;
  }

  /* Keep secondary pages useful without making their hero blocks dominate. */
  .pp-hero,
  .cp-hero {
    min-height: 190px;
  }

  .pp-hero-content,
  .cp-hero-content {
    padding-block: 30px;
  }

  .pp-hero-content h1,
  .cp-hero-content h1 {
    font-size: 1.7rem;
  }

  .pp-section {
    padding-block: 28px;
  }

  .pp-section-title {
    margin-bottom: 18px;
  }

  .cp-container {
    padding: 18px 0 32px;
  }

  .cp-grid,
  .cp-info-col,
  .cp-form-col {
    gap: 16px;
  }

  .cp-card,
  .cp-company-details,
  .cp-form-box,
  .cp-map-box {
    padding: 16px;
    border-radius: 12px;
  }

  .cp-card-icon {
    width: 46px;
    height: 46px;
    font-size: 23px;
  }

  .ap-hero {
    min-height: 300px;
  }

  .ap-hero-content {
    padding-block: 30px;
  }

  .ap-hero-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
  }

  .ap-hero-title {
    font-size: 1.55rem;
  }

  .ap-hero-desc {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.55;
  }

  .ap-section,
  .ap-cta-section {
    padding: 36px 16px;
  }

  .ap-section-title {
    margin-bottom: 22px;
  }

  .ap-stat-item {
    min-width: 50%;
    padding: 16px 8px;
  }

  .ap-stat-num {
    font-size: 1.55rem;
  }

  .ap-stat-divider {
    display: none;
  }

  .ap-service-card {
    padding: 18px 16px;
  }

  .promo-hero {
    min-height: auto;
  }

  .promo-hero-content {
    padding: 28px 16px;
    gap: 20px;
  }

  .promo-back-btn {
    margin-bottom: 14px;
  }

  .promo-hero-title {
    margin-bottom: 12px;
    font-size: 1.75rem;
  }

  .promo-hero-desc {
    margin-bottom: 14px;
    line-height: 1.55;
  }

  .promo-hero-list {
    margin-bottom: 18px;
  }

  .promo-hero-list li {
    margin-bottom: 7px;
    font-size: .86rem;
  }

  .promo-laptop-wrap {
    height: 150px;
  }

  .promo-sale-text {
    font-size: 2.2rem;
  }

  .promo-products-section {
    padding: 32px 0 40px;
  }

  /* Product detail: one reading column and thumb-friendly actions. */
  .detail-canva-page {
    padding: 14px 12px 40px;
  }

  .detail-top-nav-box {
    margin-bottom: 14px;
  }

  .detail-back-link-btn {
    min-height: 44px;
  }

  .detail-canva-card {
    gap: 18px;
    padding: 22px 14px;
    border-radius: 12px;
  }

  .detail-img-stage {
    max-width: 280px;
    padding: 10px;
  }

  .detail-gallery-canva {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding: 2px 0 6px;
  }

  .detail-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
  }

  .detail-toolbar-left-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .detail-tool-btn {
    min-height: 44px;
    justify-content: center;
    padding-inline: 6px;
  }

  .detail-toolbar-divider {
    display: none;
  }

  .detail-social-circles {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .social-circle {
    width: 44px;
    height: 44px;
  }

  .detail-title-canva {
    font-size: 1.28rem;
  }

  .detail-price-row-canva {
    flex-wrap: wrap;
  }

  .detail-price-current-canva {
    font-size: 1.55rem;
  }

  .detail-desc-section-canva {
    margin-top: 20px;
  }

  .detail-desc-tab-active,
  .detail-desc-content-canva {
    padding: 14px;
  }

  .detail-specs-table-canva td {
    padding: 10px;
    overflow-wrap: anywhere;
  }

  .detail-specs-table-canva td.spec-label {
    width: 38%;
    min-width: 0;
  }

  /* Account dashboard becomes a clear single-column flow. */
  #accountDashboardView {
    padding: 12px !important;
  }

  .account-dashboard-layout {
    flex-direction: column;
    gap: 12px !important;
  }

  .account-dashboard-sidebar,
  .account-dashboard-content {
    width: 100% !important;
    min-width: 0;
  }

  .account-dashboard-sidebar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
  }

  .account-dashboard-sidebar > div {
    min-width: 0;
    border-radius: 12px !important;
  }

  .account-dashboard-sidebar > div:first-child,
  .account-dashboard-sidebar > div:last-child {
    grid-column: 1 / -1;
  }

  .account-dashboard-sidebar > div:first-child {
    padding: 12px !important;
  }

  .account-dashboard-sidebar > div:first-child > div:first-child {
    margin-bottom: 8px !important;
  }

  .account-dashboard-sidebar > div:first-child > div:last-child {
    padding-top: 8px !important;
    overflow-wrap: anywhere;
  }

  .account-dashboard-sidebar > div:nth-child(2),
  .account-dashboard-sidebar > div:nth-child(3) {
    padding-block: 10px !important;
  }

  .account-dashboard-sidebar > div:nth-child(2) > div:first-child,
  .account-dashboard-sidebar > div:nth-child(3) > div:first-child {
    padding: 0 12px 6px !important;
    font-size: 13px !important;
  }

  .account-dashboard-content {
    min-height: 360px !important;
  }

  #dashContentHeader,
  #dashContentArea {
    padding: 16px !important;
  }

  .dash-nav-item {
    min-height: 44px;
    gap: 8px !important;
    padding: 9px 12px !important;
    font-size: 12.5px !important;
  }

  .icon-btn {
    min-width: 40px;
    min-height: 40px;
  }

  #authModal,
  #verifyPasswordModal,
  #forgotPasswordModal,
  #editProfileModal,
  #editPrivacyModal {
    align-items: flex-end !important;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  }

  #authModal > div:last-child,
  #verifyPasswordModal > div:last-child,
  #forgotPasswordModal > div:last-child,
  #editProfileModal > div:last-child,
  #editPrivacyModal > div:last-child {
    width: 100% !important;
    max-width: none !important;
    max-height: calc(100dvh - 16px) !important;
    overflow-y: auto !important;
    border-radius: 18px 18px 12px 12px !important;
    padding: 22px 18px !important;
    overscroll-behavior: contain;
  }

  #editProfileModal > div:last-child,
  #editPrivacyModal > div:last-child {
    padding: 0 !important;
  }

  #editProfileModal > div:last-child > div:last-child,
  #editPrivacyModal > div:last-child > div:last-child {
    padding: 18px !important;
  }

  #editProfileModal div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  #editProfileDate {
    width: 100% !important;
  }

  .warranty-modal {
    align-items: flex-end;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  }

  .warranty-panel {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 18px 18px 12px 12px;
  }

  .warranty-head,
  .warranty-body {
    padding: 16px;
  }

  .warranty-head strong {
    padding-right: 8px;
    font-size: 14px;
  }

  .w-input-group {
    flex-direction: column;
    border: 0;
    overflow: visible;
    gap: 8px;
  }

  .w-input-group input {
    border: 1.5px solid var(--line-color);
    border-radius: 10px;
  }

  .w-input-group button {
    min-height: 44px;
    border-radius: 10px;
  }

  .phone-modal-panel {
    width: calc(100% - 24px);
  }

  .toast {
    bottom: max(14px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-width: 420px;
    white-space: normal;
    text-align: center;
  }

  .float-contact {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .contact-toggle {
    width: 52px;
    height: 52px;
  }

  .live-chat-window {
    right: 8px;
    bottom: calc(68px + env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    max-width: none;
    height: min(560px, calc(100dvh - 84px));
    max-height: none;
    border-radius: 14px;
  }

  #liveChatInput {
    min-width: 0;
  }

  #liveChatImageBtn,
  #liveChatAttachBtn,
  #liveChatSendBtn,
  #closeLiveChatBtn {
    min-width: 40px;
    min-height: 40px;
  }
}

@media (max-width: 380px) {
  .brand small {
    display: none;
  }

  .brand > span:last-child {
    font-size: 13px;
  }

  .pp-type-grid,
  .pp-brand-logos {
    grid-template-columns: 1fr;
  }

  .detail-tool-btn span {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Promotion campaign refresh */
.promo-hero {
  min-height: 520px;
  background: #081933;
  isolation: isolate;
}
.promo-hero::before,
.promo-hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}
.promo-hero::before {
  width: 520px;
  height: 520px;
  right: -130px;
  top: -240px;
  border: 1px solid rgba(112, 212, 255, .24);
  box-shadow: 0 0 0 60px rgba(112, 212, 255, .045), 0 0 0 120px rgba(112, 212, 255, .025);
}
.promo-hero::after {
  width: 360px;
  height: 360px;
  left: -180px;
  bottom: -220px;
  background: rgba(0, 179, 255, .16);
  filter: blur(14px);
}
.promo-hero-bg {
  background: radial-gradient(circle at 83% 47%, rgba(29, 174, 255, .32), transparent 26%), radial-gradient(circle at 16% 12%, rgba(0, 210, 178, .16), transparent 25%), linear-gradient(117deg, #06152e 0%, #0b2b5c 56%, #071a38 100%);
}
.promo-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image: linear-gradient(rgba(158, 215, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(158, 215, 255, .12) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 38%, #000 100%);
}
.promo-hero-content { max-width: 1180px; padding: 58px 32px 64px; gap: 48px; }
.promo-hero-left { max-width: 570px; }
.promo-back-btn { background: rgba(255, 255, 255, .08); border-color: rgba(173, 225, 255, .25); padding: 9px 16px; margin-bottom: 22px; }
.promo-hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #87e8ff; font-size: .72rem; font-weight: 800; letter-spacing: .16em; margin-bottom: 13px; }
.promo-hero-pulse { width: 8px; height: 8px; border-radius: 50%; background: #36e7b8; box-shadow: 0 0 0 5px rgba(54, 231, 184, .16), 0 0 16px #36e7b8; }
.promo-hero-title { font-size: clamp(2.4rem, 4.4vw, 4.15rem); letter-spacing: -1.8px; margin-bottom: 14px; }
.promo-hero-title span { color: #53d9ff; text-shadow: 0 0 28px rgba(83, 217, 255, .35); }
.promo-hero-desc { font-size: 1rem; max-width: 520px; }
.promo-hero-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.promo-hero-list li { font-size: .82rem; line-height: 1.35; margin: 0; align-items: flex-start; }
.promo-check { width: 20px; height: 20px; color: #53d9ff; border-color: rgba(83, 217, 255, .36); }
.promo-trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.promo-trust-row span { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .86); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .13); padding: 7px 10px; border-radius: 8px; font-size: .76rem; }
.promo-trust-row strong { color: #70ecce; font-size: .88rem; }
.promo-trust-row i { color: #65d8ff; }
.promo-btn-primary { background: linear-gradient(135deg, #16b7ec, #0877da); border: 0; box-shadow: 0 12px 28px rgba(2, 118, 216, .32); padding: 13px 21px; }
.promo-btn-primary:hover { background: linear-gradient(135deg, #34c7f6, #1688ee); transform: translateY(-2px); }
.promo-hero-right { flex-basis: 430px; }
.promo-laptop-wrap { width: 420px; height: 292px; border: 1px solid rgba(173, 228, 255, .36); border-radius: 22px 22px 4px 4px; background: #06152d; box-shadow: 0 30px 70px rgba(0, 0, 0, .38), 0 0 60px rgba(38, 182, 255, .18); }
.promo-laptop-wrap::after { background: #0e376b; border-color: rgba(173, 228, 255, .25); }
.promo-laptop-screen { background: linear-gradient(135deg, #047dd4, #102b75 54%, #071f4a); }
.promo-laptop-screen::before { background: radial-gradient(circle at 80% 14%, rgba(84, 235, 198, .4), transparent 28%), linear-gradient(135deg, transparent 36%, rgba(255, 255, 255, .09) 36.5%, transparent 37%); }
.promo-sale-banner { min-width: 230px; padding: 24px 28px; background: rgba(4, 19, 57, .52); border-color: rgba(173, 235, 255, .35); box-shadow: 0 16px 30px rgba(0,0,0,.18); }
.promo-sale-best { color: #8ceaff; }
.promo-sale-text { font-size: 4.3rem; background: linear-gradient(180deg, #fff, #80e5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.promo-sale-sub { background: #15c89e; color: #06243a; border-radius: 999px; }
.promo-products-section { position: relative; scroll-margin-top: 110px; background: linear-gradient(180deg, #f4f8ff 0, #fff 50%); padding: 70px 0 82px; }
.promo-section-title { font-size: clamp(1.8rem, 3vw, 2.35rem); margin-bottom: 7px; }
.promo-section-title span { color: #0878d7; }
.promo-section-sub { margin: 0 0 31px; }
.promo-grid { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 22px; }
.promo-card--modern.aib-card { padding: 16px; border-radius: 16px; border: 1px solid #dce8f5; box-shadow: 0 8px 22px rgba(18, 68, 120, .06); }
.promo-card--modern.aib-card:hover { transform: translateY(-6px); border-color: #96d7f4; box-shadow: 0 20px 38px rgba(18, 88, 150, .15); }
.promo-card--modern .promo-card-img { height: 208px; margin-top: 22px; padding: 2px; }
.promo-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 9px; color: #1683d9; font-size: .64rem; font-weight: 800; letter-spacing: .09em; }
.promo-card-discount { color: #d9462b; background: #fff0ed; border-radius: 999px; padding: 4px 7px; font-size: .64rem; letter-spacing: 0; white-space: nowrap; }
.promo-card-discount--deal { color: #0878d7; background: #e8f7ff; }
.promo-card-name { font-size: .9rem; line-height: 1.45; }
.promo-card-price { color: #076bc6; font-size: 1.18rem; }
.promo-card--modern .promo-card-btn { min-height: 42px; border-radius: 10px; transition: transform .2s ease, box-shadow .2s ease; }
.promo-card--modern .promo-card-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 15px rgba(6, 199, 85, .24); }
@media (max-width: 860px) {
  .promo-hero { min-height: auto; }
  .promo-hero-content { align-items: flex-start; gap: 34px; padding: 42px 20px 52px; }
  .promo-hero-left { max-width: none; }
  .promo-hero-list { max-width: 610px; }
  .promo-hero-right { display: none; }
}
@media (max-width: 560px) {
  .promo-hero-title { font-size: 2.5rem; letter-spacing: -1px; }
  .promo-hero-list { grid-template-columns: 1fr; gap: 9px; }
  .promo-trust-row { gap: 6px; }
  .promo-trust-row span { padding: 6px 8px; font-size: .7rem; }
  .promo-products-section { padding-top: 64px; }
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .promo-card--modern.aib-card { padding: 11px; border-radius: 13px; }
  .promo-card--modern .promo-card-img { height: 142px; margin-top: 24px; }
  .promo-card-topline { display: block; line-height: 1.7; }
  .promo-card-discount { display: inline-block; padding: 2px 6px; }
  .promo-card-name { font-size: .76rem; }
  .promo-card-price { font-size: .95rem; }
  .promo-card--modern .promo-card-btn { font-size: .7rem; min-height: 36px; }
}

