/* AVD Design Pro v3 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --d: #080C14;
  --dp: #0D1422;
  --card: #141D2E;
  --card2: #1A2540;
  --b1: rgba(255, 255, 255, .07);
  --b2: rgba(255, 255, 255, .13);
  --gold: #C8A46E;
  --goldlt: #E8C990;
  --golddk: #9B7A45;
  --cyan: #38BDF8;
  --green: #22C55E;
  --red: #EF4444;
  --t1: #F0F4FF;
  --t2: #A0AFCA;
  --t3: #5A6882;
  --bg: var(--d);
  --bgcard: var(--card);
  --bginput: var(--dp);
  --bin: var(--b2);
  --gg: linear-gradient(135deg, #C8A46E, #E8C990, #C8A46E);
  --gc: linear-gradient(145deg, #141D2E, #1A2540);
  --fd: 'Roboto', 'Kanit', sans-serif;
  --fb: 'Roboto', 'Kanit', sans-serif;
  --cw: 1300px;
  --r: 12px;
  --rl: 18px;
  --tr: .26s cubic-bezier(.4, 0, .2, 1)
}

[data-theme=light] {
  --d: #fff;
  --dp: #F3F6FA;
  --card: #fff;
  --card2: #F8FAFD;
  --b1: rgba(0, 0, 0, .08);
  --b2: rgba(0, 0, 0, .13);
  --t1: #0F172A;
  --t2: #475569;
  --t3: #94A3B8;
  --bg: #F3F6FA;
  --bgcard: #fff;
  --bginput: #fff;
  --bin: rgba(0, 0, 0, .16);
  --gc: linear-gradient(145deg, #fff, #F3F6FA)
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--fb);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s
}

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

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

ul {
  list-style: none
}

.container {
  max-width: var(--cw);
  margin: 0 auto;
  padding: 0 2rem
}

::-webkit-scrollbar {
  width: 5px
}

::-webkit-scrollbar-thumb {
  background: var(--golddk);
  border-radius: 3px
}

/* HEADER */
.avd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 0 2rem;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s
}

.avd-header.scrolled {
  background: rgba(8, 12, 20, .95);
  backdrop-filter: blur(24px);
  border-color: var(--b1)
}

[data-theme=light] .avd-header.scrolled {
  background: rgba(255, 255, 255, .96)
}

.hdr-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 80px;
  position: relative;
}

.avd-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0
}

.logo-mark {
  background: var(--gg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--fd);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em
}

.logo-text {
  font-family: var(--fd);
  font-size: .88rem;
  font-weight: 600;
  color: var(--t1)
}

.logo-text em {
  font-style: normal;
  color: var(--gold)
}

/* DESKTOP NAV - click based */
.avd-nav {
  flex: 1;
  display: flex;
  justify-content: center
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  /* ป้องกันตัวอักษรตัดบรรทัด */
}

.nav-link:hover,
.nav-link.active {
  color: var(--t1);
  background: rgba(255, 255, 255, .06)
}

[data-theme=light] .nav-link:hover,
[data-theme=light] .nav-link.active {
  background: rgba(0, 0, 0, .05)
}

.nav-arr {
  font-size: .55rem;
  opacity: .55;
  transition: transform var(--tr);
  display: inline-block;
  margin-left: 1px
}

.has-dd {
  position: relative
}

.has-dd.open>.nav-link .nav-arr {
  transform: rotate(180deg)
}

.nav-dd {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bgcard);
  border: 1px solid var(--b2);
  border-radius: var(--rl);
  padding: .5rem;
  min-width: 215px;
  display: none;
  z-index: 999;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .45)
}

.has-dd.open .nav-dd {
  display: block;
  animation: ddIn .18s ease
}

@keyframes ddIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px)
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
  }
}

/* Hover fallback for desktop (click is primary, handled above) */
@media(min-width:769px){
  .has-dd:hover .nav-dd {
    display: block;
    animation: ddIn .18s ease;
  }
}

.dd-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .5;
  flex-shrink: 0
}

/* MEGA MENU */
.nav-dd.mega {
  width: 900px;
  /* กำหนดความกว้างให้พอดี */
  padding: 25px;
}

.mega-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* แบ่งเป็น 3 คอลัมน์ */
  gap: 25px;
}

.mega-col-title {
  font-size: .63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  padding: .45rem .82rem .2rem
}

.mega-footer {
  display: flex;
  gap: .45rem;
  padding: .65rem .45rem .25rem;
  border-top: 1px solid var(--b1);
  margin-top: .5rem
}

.mega-btn {
  flex: 1;
  text-align: center;
  padding: .42rem;
  border-radius: 8px;
  font-size: .73rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: background var(--tr)
}

.mb-gold {
  background: rgba(200, 164, 110, .12);
  color: var(--gold)
}

.mb-gold:hover {
  background: rgba(200, 164, 110, .22)
}

.mb-cyan {
  background: rgba(56, 189, 248, .08);
  color: var(--cyan)
}

.mb-cyan:hover {
  background: rgba(56, 189, 248, .15)
}

.mb-gray {
  background: rgba(255, 255, 255, .05);
  color: var(--t2)
}

.mb-gray:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--t1)
}

/* HEADER ACTIONS */
.hdr-actions {
  display: flex;
  align-items: center;
  gap: .38rem;
  flex-shrink: 0
}

.hbtn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--t2);
  transition: all var(--tr);
  border: none;
  cursor: pointer;
  background: transparent;
  font-size: .88rem
}

.hbtn:hover {
  color: var(--t1);
  background: rgba(255, 255, 255, .07)
}

[data-theme=light] .hbtn:hover {
  background: rgba(0, 0, 0, .06)
}

.hbtn svg {
  width: 17px;
  height: 17px
}

.lang-btn {
  padding: .28rem .58rem;
  border-radius: 8px;
  border: 1px solid var(--b2);
  font-size: .68rem;
  font-weight: 600;
  color: var(--t2);
  cursor: pointer;
  background: transparent;
  transition: all var(--tr)
}

.lang-btn:hover {
  border-color: var(--gold);
  color: var(--gold)
}

.btn-partner {
  padding: .38rem .9rem;
  background: var(--gg);
  color: #080C14;
  font-size: .74rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: opacity var(--tr)
}

.btn-partner:hover {
  opacity: .88
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px
}

.hamburger span {
  width: 21px;
  height: 2px;
  background: var(--t2);
  border-radius: 2px;
  transition: var(--tr);
  display: block
}

/* MOBILE NAV */
.mob-nav {
  display: none;
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 800;
  overflow-y: auto;
  padding: .75rem 1rem
}

.mob-nav.open {
  display: block
}

.mob-item {
  display: block;
  padding: .68rem .9rem;
  font-size: .9rem;
  color: var(--t2);
  border-radius: 8px;
  transition: all var(--tr)
}

.mob-item:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--t1)
}

[data-theme=light] .mob-item:hover {
  background: rgba(0, 0, 0, .05)
}

.mob-sep {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--t3);
  padding: .75rem .9rem .2rem;
  margin-top: .4rem
}

.mob-sub {
  display: block;
  padding: .52rem .9rem .52rem 1.6rem;
  font-size: .83rem;
  color: var(--t3);
  border-radius: 8px;
  transition: all var(--tr)
}

.mob-sub:hover {
  color: var(--gold)
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: .68rem 1.55rem;
  background: var(--gg);
  color: #080C14;
  font-family: var(--fd);
  font-size: .84rem;
  font-weight: 700;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: opacity var(--tr), transform var(--tr), box-shadow var(--tr);
  text-decoration: none
}

.btn-primary:hover {
  opacity: .9;
  transform: translateY(-2px);
  box-shadow: 0 7px 26px rgba(200, 164, 110, .28)
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: .68rem 1.55rem;
  background: transparent;
  color: var(--t1);
  font-family: var(--fd);
  font-size: .84rem;
  font-weight: 500;
  border-radius: var(--r);
  border: 1px solid var(--b2);
  cursor: pointer;
  transition: all var(--tr);
  text-decoration: none
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .05)
}

.btn-sm {
  padding: .4rem .85rem;
  font-size: .76rem
}

.btn-gold-out {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: .5rem 1rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(200, 164, 110, .4);
  border-radius: var(--r);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
  text-decoration: none
}

.btn-gold-out:hover {
  background: rgba(200, 164, 110, .1)
}

.btn-danger {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .25);
  color: var(--red);
  border-radius: 8px;
  padding: .38rem .8rem;
  font-size: .76rem;
  cursor: pointer;
  transition: all var(--tr);
  font-family: var(--fb)
}

.btn-danger:hover {
  background: rgba(239, 68, 68, .2)
}

/* SECTION */
.sec-label {
  display: block;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--gg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .28rem
}

.sec-title {
  font-family: var(--fd);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--t1)
}

.sec-hdr {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: .75rem;
  flex-wrap: wrap
}

.sec-hdr.center {
  flex-direction: column;
  align-items: center;
  text-align: center
}

.sec-link {
  font-size: .78rem;
  color: var(--gold);
  margin-bottom: .1rem;
  transition: opacity var(--tr)
}

.sec-link:hover {
  opacity: .7
}

/* PAGE HERO */
.page-hero {
  padding: 7.5rem 0 2.75rem;
  background: radial-gradient(ellipse at top, rgba(29, 111, 164, .12), transparent 60%);
  border-bottom: 1px solid var(--b1)
}

.page-hero h1 {
  font-family: var(--fd);
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  font-weight: 800;
  margin-bottom: .55rem
}

.page-hero p {
  color: var(--t2);
  font-size: .92rem;
  max-width: 520px
}

.breadcrumb {
  font-size: .72rem;
  color: var(--t3);
  margin-bottom: .75rem
}

.breadcrumb a {
  color: var(--gold)
}

/* HERO */
.avd-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 7rem max(2rem, calc((100vw - 1300px)/2 + 2rem)) 4rem;
  position: relative;
  overflow: hidden
}

.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent)
}

[data-theme=light] .hero-grid {
  background-image: linear-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .04) 1px, transparent 1px)
}

.hero-glow1 {
  position: absolute;
  width: 600px;
  height: 450px;
  background: radial-gradient(circle, rgba(29, 111, 164, .18), transparent 70%);
  top: 5%;
  right: 0;
  filter: blur(100px);
  border-radius: 50%
}

.hero-glow2 {
  position: absolute;
  width: 380px;
  height: 280px;
  background: radial-gradient(circle, rgba(200, 164, 110, .1), transparent 70%);
  bottom: 20%;
  left: 5%;
  filter: blur(80px);
  border-radius: 50%
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp .8s ease both
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 164, 110, .08);
  border: 1px solid rgba(200, 164, 110, .2);
  padding: .3rem .78rem;
  border-radius: 100px;
  font-size: .69rem;
  color: var(--goldlt);
  margin-bottom: 1.35rem;
  letter-spacing: .04em
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
  flex-shrink: 0
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

.hero-title {
  font-family: var(--fd);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 1rem
}

.hero-grad {
  background: var(--gg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent
}

.hero-sub {
  font-size: .91rem;
  color: var(--t2);
  line-height: 1.72;
  margin-bottom: 1.75rem;
  max-width: 430px
}

.hero-cta {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.6rem
}

.stat-num {
  font-family: var(--fd);
  font-size: 1.65rem;
  font-weight: 700;
  background: var(--gg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1
}

.stat-lbl {
  font-size: .68rem;
  color: var(--t3);
  margin-top: 1px
}

.stat-div {
  width: 1px;
  height: 34px;
  background: var(--b2)
}

.hero-vis {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center
}

.hero-device {
  background: linear-gradient(145deg, #1A2640, #0E1520);
  border: 1px solid rgba(56, 189, 248, .2);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .5);
  width: 250px;
  animation: float 4s ease-in-out infinite
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-15px)
  }
}

.dev-screen {
  background: #060A10;
  border-radius: 8px;
  padding: .9rem;
  margin-bottom: .9rem;
  border: 1px solid rgba(56, 189, 248, .1);
  position: relative
}

.dev-line {
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  margin-bottom: .45rem;
  border-radius: 1px;
  animation: scan 2s ease-in-out infinite
}

.dev-line:nth-child(2) {
  animation-delay: .3s;
  width: 70%
}

.dev-line:nth-child(3) {
  animation-delay: .6s;
  width: 45%
}

@keyframes scan {

  0%,
  100% {
    opacity: .2
  }

  50% {
    opacity: .65
  }
}

.dev-badge {
  position: absolute;
  top: .45rem;
  right: .45rem;
  background: var(--gg);
  color: #080C14;
  font-size: .56rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px
}

.dev-ports {
  display: flex;
  gap: 5px
}

.dev-port {
  width: 26px;
  height: 9px;
  background: #0A1220;
  border: 1px solid rgba(56, 189, 248, .15);
  border-radius: 3px
}

.hero-float {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--b2);
  border-radius: 11px;
  padding: .6rem .85rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
  animation: fadeUp .6s ease both
}

.hero-float strong {
  display: block;
  font-family: var(--fd);
  font-size: .8rem;
  color: var(--gold)
}

.hero-float span {
  font-size: .66rem;
  color: var(--t3)
}

.hf1 {
  top: -1.25rem;
  right: -1.25rem;
  animation-delay: .2s
}

.hf2 {
  bottom: .5rem;
  left: -1.75rem;
  animation-delay: .4s
}

/* CATEGORY */
.cat-mega-wrap {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1.1rem;
  align-items: start
}

.cat-sidebar {
  background: var(--bgcard);
  border: 1px solid var(--b1);
  border-radius: var(--rl);
  overflow: hidden
}

.cat-sb-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: .75rem 1rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  font-size: .82rem;
  color: var(--t2);
  transition: all var(--tr)
}

.cat-sb-item:hover {
  background: rgba(255, 255, 255, .04);
  color: var(--t1)
}

[data-theme=light] .cat-sb-item:hover {
  background: rgba(0, 0, 0, .03)
}

.cat-sb-item.active {
  background: rgba(200, 164, 110, .07);
  border-left-color: var(--gold);
  color: var(--t1)
}

.cat-sb-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 164, 110, .08);
  border-radius: 7px;
  color: var(--gold);
  flex-shrink: 0;
  font-size: .8rem
}

.cat-sb-cnt {
  margin-left: auto;
  font-size: .63rem;
  background: var(--b1);
  padding: 1px 5px;
  border-radius: 100px;
  color: var(--t3)
}

.cat-panel-wrap {
  background: var(--bgcard);
  border: 1px solid var(--b1);
  border-radius: var(--rl);
  padding: 1.35rem;
  min-height: 350px
}

.cat-panel {
  display: none
}

.cat-panel.active {
  display: block
}

.cat-panel-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--b1)
}

.cat-panel-title {
  font-family: var(--fd);
  font-size: 1rem;
  font-weight: 700
}

.sub-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .6rem
}

.sub-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem .6rem;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--tr);
  text-decoration: none;
  color: var(--t2)
}

[data-theme=light] .sub-cat-card {
  background: rgba(0, 0, 0, .02)
}

.sub-cat-card:hover {
  border-color: rgba(200, 164, 110, .3);
  background: rgba(200, 164, 110, .05);
  color: var(--t1);
  transform: translateY(-2px)
}

.sub-cat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 164, 110, .07);
  border-radius: 9px;
  margin-bottom: .6rem;
  color: var(--gold);
  font-size: .78rem;
  transition: background var(--tr)
}

.sub-cat-card:hover .sub-cat-icon {
  background: rgba(200, 164, 110, .15)
}

.sub-cat-name {
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.3
}

.sub-cat-cnt {
  font-size: .63rem;
  color: var(--t3);
  margin-top: .18rem
}

.brand-filter-row {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  padding-top: .9rem;
  margin-top: .9rem;
  border-top: 1px solid var(--b1)
}

.brand-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: .28rem .65rem;
  border-radius: 100px;
  border: 1px solid var(--b2);
  font-size: .7rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--t2);
  transition: all var(--tr);
  text-decoration: none
}

.brand-pill:hover {
  border-color: rgba(200, 164, 110, .3);
  color: var(--gold)
}

.brand-pill.avd {
  background: rgba(200, 164, 110, .08);
  border-color: rgba(200, 164, 110, .25);
  color: var(--gold)
}

.bp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0
}

.bp-dot.cyan {
  background: var(--cyan)
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem
}

.product-card {
  background: var(--gc);
  border: 1px solid var(--b1);
  border-radius: var(--rl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr)
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 164, 110, .28);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .28)
}

.prod-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none
}

.prod-img {
  aspect-ratio: 4/3;
  background: var(--dp);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden
}

[data-theme=light] .prod-img {
  background: #EEF2F8
}

.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .85rem;
  transition: transform .34s ease
}

.product-card:hover .prod-img img {
  transform: scale(1.05)
}

.prod-img-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--t3);
  opacity: .35
}

.prod-badge {
  position: absolute;
  top: .58rem;
  left: .58rem;
  background: var(--gg);
  color: #080C14;
  font-size: .57rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: .03em
}

.prod-badge.new-badge {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #fff
}

.prod-brand-tag {
  position: absolute;
  top: .58rem;
  right: .58rem;
  font-size: .57rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px
}

.pbt-avd {
  background: rgba(200, 164, 110, .15);
  border: 1px solid rgba(200, 164, 110, .3);
  color: var(--gold)
}

.pbt-other {
  background: rgba(56, 189, 248, .1);
  border: 1px solid rgba(56, 189, 248, .25);
  color: var(--cyan)
}

.prod-info {
  padding: .95rem;
  flex: 1;
  display: flex;
  flex-direction: column
}

.prod-brand {
  font-size: .63rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .22rem
}

.prod-name {
  font-family: var(--fd);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .22rem;
  color: var(--t1)
}

.prod-model {
  font-size: .66rem;
  color: var(--t3);
  margin-bottom: .32rem
}

.prod-desc {
  font-size: .75rem;
  color: var(--t2);
  line-height: 1.6;
  flex: 1
}

.prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .75rem;
  padding-top: .65rem;
  border-top: 1px solid var(--b1)
}

.prod-price {
  font-size: .71rem;
  color: var(--t3);
  font-style: italic
}

.prod-view {
  font-size: .71rem;
  color: var(--gold);
  font-weight: 600
}

/* PRODUCT DETAIL */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
  align-items: start;
  padding: 2.5rem 0
}

.pd-gallery {
  position: sticky;
  top: 80px
}

.gallery-main {
  background: var(--bgcard);
  border: 1px solid var(--b1);
  border-radius: var(--rl);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: zoom-in;
  margin-bottom: .6rem
}

.gallery-main img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  transition: opacity .22s
}

.gallery-zoom-btn {
  position: absolute;
  bottom: .6rem;
  right: .6rem;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, .5);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  border: none;
  font-size: .78rem
}

.gallery-thumbs {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap
}

.gallery-thumb {
  width: 65px;
  height: 65px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--b1);
  cursor: pointer;
  transition: border-color var(--tr);
  background: var(--bgcard);
  display: flex;
  align-items: center;
  justify-content: center
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--gold)
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px
}

.pd-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .65rem
}

.pd-brand-avd {
  background: rgba(200, 164, 110, .12);
  border: 1px solid rgba(200, 164, 110, .25);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 6px
}

.pd-brand-other {
  background: rgba(56, 189, 248, .08);
  border: 1px solid rgba(56, 189, 248, .2);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 6px
}

.pd-name {
  font-family: var(--fd);
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: .42rem
}

.pd-model {
  font-size: .78rem;
  color: var(--t3);
  margin-bottom: 1.1rem
}

.pd-desc {
  font-size: .88rem;
  color: var(--t2);
  line-height: 1.78;
  margin-bottom: 1.4rem
}

.pd-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem
}

.pd-feats h4 {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--t3);
  margin-bottom: .65rem
}

.pd-feats ul {
  display: flex;
  flex-direction: column;
  gap: .35rem
}

.pd-feats li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .83rem;
  color: var(--t2)
}

.pd-feats li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px
}

.spec-section {
  margin-bottom: 2.25rem
}

.spec-title {
  font-family: var(--fd);
  font-size: .92rem;
  font-weight: 700;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 7px
}

.specs-table {
  width: 100%;
  border-collapse: collapse
}

.specs-table tr {
  border-bottom: 1px solid var(--b1);
  transition: background var(--tr)
}

.specs-table tr:hover {
  background: rgba(255, 255, 255, .025)
}

[data-theme=light] .specs-table tr:hover {
  background: rgba(0, 0, 0, .025)
}

.specs-table td {
  padding: .58rem .85rem;
  font-size: .8rem
}

.specs-table td:first-child {
  color: var(--t3);
  width: 42%;
  border-right: 1px solid var(--b1)
}

.specs-table td:last-child {
  color: var(--t1)
}

.dl-list {
  display: flex;
  flex-direction: column;
  gap: .5rem
}

.dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem .95rem;
  background: var(--bgcard);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  transition: border-color var(--tr)
}

.dl-item:hover {
  border-color: rgba(200, 164, 110, .28)
}

.dl-info {
  display: flex;
  align-items: center;
  gap: .65rem
}

.dl-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0
}

.ic-pdf {
  background: linear-gradient(135deg, #EF4444, #DC2626)
}

.ic-fw {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED)
}

.ic-sw {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8)
}

.ic-doc {
  background: linear-gradient(135deg, #F59E0B, #D97706)
}

.dl-name {
  font-size: .81rem;
  font-weight: 600;
  color: var(--t1)
}

.dl-meta {
  font-size: .68rem;
  color: var(--t3)
}

.dl-btn {
  padding: .28rem .75rem;
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 600;
  border: 1px solid rgba(200, 164, 110, .3);
  color: var(--gold);
  background: rgba(200, 164, 110, .06);
  cursor: pointer;
  transition: all var(--tr);
  text-decoration: none;
  display: inline-block
}

.dl-btn:hover {
  background: rgba(200, 164, 110, .15)
}

.vid-wrap {
  aspect-ratio: 16/9;
  border-radius: var(--rl);
  overflow: hidden;
  background: var(--dp)
}

.vid-wrap iframe {
  width: 100%;
  height: 100%;
  border: none
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: .7rem;
  margin-top: .8rem
}

.app-card {
  padding: .85rem;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  text-align: center;
  font-size: .77rem;
  color: var(--t2);
  transition: all var(--tr)
}

[data-theme=light] .app-card {
  background: rgba(0, 0, 0, .025)
}

.app-card:hover {
  border-color: rgba(200, 164, 110, .25);
  color: var(--t1)
}

.app-icon {
  font-size: 1.35rem;
  margin-bottom: .38rem
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all .22s
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible
}

.modal-box {
  background: var(--card);
  border: 1px solid var(--b2);
  border-radius: var(--rl);
  padding: 1.6rem;
  width: 100%;
  max-width: 530px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(18px);
  transition: transform .22s
}

.modal-overlay.open .modal-box {
  transform: translateY(0)
}

.modal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem
}

.modal-title {
  font-family: var(--fd);
  font-size: 1rem;
  font-weight: 700
}

.modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: none;
  background: rgba(255, 255, 255, .07);
  color: var(--t2);
  cursor: pointer;
  font-size: .95rem;
  transition: all var(--tr)
}

.modal-close:hover {
  background: rgba(255, 255, 255, .14)
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .93);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all .22s
}

.lightbox.open {
  opacity: 1;
  visibility: visible
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px
}

.lb-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  border: none;
  font-size: 1rem
}

.lb-close:hover {
  background: rgba(255, 255, 255, .2)
}

/* SHOP */
.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0 4rem
}

.shop-sidebar {
  position: sticky;
  top: 80px;
  background: var(--bgcard);
  border: 1px solid var(--b1);
  border-radius: var(--rl);
  padding: 1rem
}

.filt-section {
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--b1)
}

.filt-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none
}

.filt-title {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--t3);
  margin-bottom: .55rem
}

.filt-list {
  display: flex;
  flex-direction: column;
  gap: .12rem
}

.filt-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .35rem .55rem;
  border-radius: 7px;
  font-size: .79rem;
  color: var(--t2);
  transition: all var(--tr)
}

.filt-list a:hover {
  background: rgba(255, 255, 255, .05);
  color: var(--t1)
}

[data-theme=light] .filt-list a:hover {
  background: rgba(0, 0, 0, .05)
}

.filt-list a.active {
  background: rgba(200, 164, 110, .08);
  color: var(--gold);
  font-weight: 600
}

.filt-cnt {
  font-size: .63rem;
  background: var(--b1);
  padding: 1px 5px;
  border-radius: 100px
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  gap: .65rem;
  flex-wrap: wrap
}

.shop-cnt {
  font-size: .81rem;
  color: var(--t3)
}

.pagination {
  display: flex;
  gap: .3rem;
  justify-content: center;
  margin-top: 2.25rem;
  flex-wrap: wrap
}

.pg-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--b2);
  font-size: .8rem;
  color: var(--t2);
  cursor: pointer;
  transition: all var(--tr);
  text-decoration: none
}

.pg-btn:hover {
  border-color: rgba(200, 164, 110, .3);
  color: var(--gold)
}

.pg-btn.active {
  background: var(--gg);
  color: #080C14;
  border-color: transparent;
  font-weight: 700
}

/* BRAND BAR */
.brand-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap
}

.brand-tab {
  padding: .42rem 1rem;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--b2);
  color: var(--t2);
  background: transparent;
  transition: all var(--tr);
  font-family: var(--fb)
}

.brand-tab:hover {
  border-color: rgba(200, 164, 110, .3);
  color: var(--t1)
}

.brand-tab.active {
  background: var(--gg);
  color: #080C14;
  border-color: transparent;
  font-weight: 700
}

.brand-tab.active.other-tab {
  background: linear-gradient(135deg, #1D6FA4, #38BDF8);
  color: #fff
}

.brand-div {
  height: 18px;
  width: 1px;
  background: var(--b2)
}

.search-bar {
  display: flex;
  gap: .55rem;
  flex: 1;
  max-width: 360px;
  margin-left: auto
}

.search-input {
  flex: 1;
  padding: .44rem .85rem;
  background: var(--bginput);
  border: 1px solid var(--bin);
  border-radius: 8px;
  color: var(--t1);
  font-family: var(--fb);
  font-size: .82rem;
  outline: none;
  transition: border-color var(--tr)
}

.search-input:focus {
  border-color: rgba(200, 164, 110, .42)
}

.search-input::placeholder {
  color: var(--t3)
}

/* FORMS */
.avd-form {
  background: var(--bgcard);
  border: 1px solid var(--b1);
  border-radius: var(--rl);
  padding: 1.6rem
}

.form-group {
  margin-bottom: 1rem
}

.form-label {
  display: block;
  font-size: .75rem;
  color: var(--t2);
  margin-bottom: .28rem
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: .6rem .9rem;
  background: var(--bginput);
  border: 1px solid var(--bin);
  border-radius: 8px;
  color: var(--t1);
  font-family: var(--fb);
  font-size: .84rem;
  outline: none;
  transition: border-color var(--tr)
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(200, 164, 110, .44)
}

.form-textarea {
  resize: vertical;
  min-height: 100px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem
}

.form-ok {
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .3);
  border-radius: 8px;
  padding: .75rem .95rem;
  font-size: .82rem;
  color: var(--green);
  display: none;
  margin-bottom: .9rem
}

.form-ok.show {
  display: block
}

.form-err {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
  border-radius: 8px;
  padding: .75rem .95rem;
  font-size: .82rem;
  color: var(--red);
  display: none;
  margin-bottom: .9rem
}

.form-err.show {
  display: block
}

/* OEM */
.oem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center
}

.oem-desc {
  font-size: .88rem;
  color: var(--t2);
  margin: 1rem 0 1.4rem;
  line-height: 1.76
}

.oem-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.6rem
}

.oem-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  color: var(--t2)
}

.ck {
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0
}

.oem-cta {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap
}

.oem-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem
}

.oem-card {
  background: var(--gc);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 1.25rem;
  transition: all var(--tr)
}

.oem-card:hover {
  border-color: rgba(200, 164, 110, .22);
  transform: translateY(-2px)
}

.oem-card.gold {
  border-top: 2px solid var(--gold)
}

.oem-card-ico {
  font-size: 1.5rem;
  margin-bottom: .6rem
}

.oem-card strong {
  display: block;
  font-family: var(--fd);
  font-size: .84rem;
  margin-bottom: .22rem
}

.oem-card p {
  font-size: .74rem;
  color: var(--t2)
}

/* TESTIMONIALS */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem
}

.testi-card {
  background: var(--gc);
  border: 1px solid var(--b1);
  border-radius: var(--rl);
  padding: 1.25rem;
  transition: all var(--tr)
}

.testi-card:hover {
  border-color: rgba(200, 164, 110, .2);
  transform: translateY(-2px)
}

.testi-stars {
  color: var(--gold);
  font-size: .78rem;
  margin-bottom: .6rem
}

.testi-text {
  font-size: .79rem;
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: .85rem;
  font-style: italic
}

.testi-author {
  display: flex;
  align-items: center;
  gap: .6rem
}

.testi-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1D6FA4, var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .76rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0
}

.testi-name {
  font-weight: 700;
  font-size: .78rem
}

.testi-co {
  font-size: .68rem;
  color: var(--t3)
}

/* WHY */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem
}

.why-card {
  padding: 1.5rem 1.25rem;
  background: var(--gc);
  border: 1px solid var(--b1);
  border-radius: var(--rl);
  transition: all var(--tr)
}

.why-card:hover {
  border-color: rgba(200, 164, 110, .2);
  transform: translateY(-2px)
}

.why-num {
  font-family: var(--fd);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: .3;
  margin-bottom: .8rem;
  line-height: 1
}

.why-card h3 {
  font-family: var(--fd);
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: .45rem
}

.why-card p {
  font-size: .77rem;
  color: var(--t2);
  line-height: 1.65
}

/* CERTS */
.cert-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  flex-wrap: wrap;
  margin: 1.85rem 0 1.1rem
}

.cert-badge {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  background: var(--bgcard);
  border: 1px solid var(--b2);
  border-radius: var(--r);
  font-family: var(--fd);
  font-size: .76rem;
  font-weight: 700;
  color: var(--t2);
  transition: all var(--tr)
}

.cert-badge:hover {
  border-color: var(--gold);
  color: var(--gold)
}

/* PARTNER CTA */
.partner-cta {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, #152038, #1A2A4A, #152038);
  border-top: 1px solid var(--b1);
  border-bottom: 1px solid var(--b1)
}

.partner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap
}

.partner-text h2 {
  font-family: var(--fd);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 700;
  margin-bottom: .5rem
}

.partner-text p {
  font-size: .86rem;
  color: var(--t2);
  max-width: 420px
}

.partner-btns {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  flex-shrink: 0
}

/* FOOTER */
.avd-footer {
  padding: 4rem 0 1.5rem;
  background: var(--dp);
  border-top: 1px solid var(--b1)
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.25rem;
  margin-bottom: 2.25rem
}

.footer-tagline {
  font-size: .76rem;
  color: var(--t3);
  line-height: 1.72;
  margin-bottom: 1rem
}

.footer-social {
  display: flex;
  gap: .38rem;
  margin-bottom: 1.1rem
}

.footer-social a {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--b1);
  border-radius: 7px;
  font-size: .63rem;
  font-weight: 700;
  color: var(--t3);
  transition: all var(--tr)
}

.footer-social a:hover {
  color: var(--gold);
  border-color: rgba(200, 164, 110, .3)
}

.footer-nap {
  font-size: .74rem;
  color: var(--t3);
  line-height: 1.85
}

.footer-nap strong {
  color: var(--t2)
}

.footer-nap a {
  color: var(--gold)
}

.footer-col h4 {
  font-family: var(--fd);
  font-size: .78rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: .75rem
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .32rem
}

.footer-col ul a {
  font-size: .74rem;
  color: var(--t3);
  transition: color var(--tr)
}

.footer-col ul a:hover {
  color: var(--gold)
}

.footer-bottom {
  padding-top: 1.35rem;
  border-top: 1px solid var(--b1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem
}

.footer-bottom p {
  font-size: .71rem;
  color: var(--t3)
}

/* ADMIN */
.admin-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 100vh
}

.admin-sb {
  background: var(--dp);
  border-right: 1px solid var(--b1);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto
}

.admin-sb-logo {
  padding: 1.1rem 1.1rem .85rem;
  border-bottom: 1px solid var(--b1)
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: .58rem 1rem;
  font-size: .8rem;
  color: var(--t2);
  transition: all var(--tr);
  border-left: 3px solid transparent
}

.admin-nav a:hover,
.admin-nav a.active {
  color: var(--gold);
  background: rgba(200, 164, 110, .07);
  border-left-color: var(--gold)
}

.admin-nav .nav-sep {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--t3);
  padding: .7rem 1rem .2rem;
  margin-top: .35rem
}

.admin-main {
  padding: 1.6rem;
  background: var(--bg);
  overflow-x: hidden
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
  gap: .75rem
}

.admin-page-title {
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 700
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem;
  margin-bottom: 1.5rem
}

.stat-card {
  background: var(--bgcard);
  border: 1px solid var(--b1);
  border-radius: var(--rl);
  padding: 1.25rem;
  transition: border-color var(--tr)
}

.stat-card:hover {
  border-color: rgba(200, 164, 110, .22)
}

.stat-val {
  font-family: var(--fd);
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--gg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1
}

.stat-lbl2 {
  font-size: .73rem;
  color: var(--t3);
  margin-top: .28rem
}

.admin-card {
  background: var(--bgcard);
  border: 1px solid var(--b1);
  border-radius: var(--rl);
  overflow: hidden;
  margin-bottom: 1.1rem
}

.admin-card-hdr {
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--b1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .45rem
}

.admin-card-hdr h3 {
  font-family: var(--fd);
  font-size: .88rem;
  font-weight: 700
}

.admin-table {
  width: 100%;
  border-collapse: collapse
}

.admin-table th {
  text-align: left;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--t3);
  padding: .58rem .95rem;
  border-bottom: 1px solid var(--b1);
  white-space: nowrap
}

.admin-table td {
  padding: .7rem .95rem;
  border-bottom: 1px solid var(--b1);
  font-size: .81rem;
  color: var(--t2);
  vertical-align: middle
}

.admin-table tr:last-child td {
  border-bottom: none
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, .02)
}

[data-theme=light] .admin-table tr:hover td {
  background: rgba(0, 0, 0, .02)
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: .64rem;
  font-weight: 600
}

.badge-green {
  background: rgba(34, 197, 94, .12);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, .25)
}

.badge-red {
  background: rgba(239, 68, 68, .12);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, .25)
}

.badge-blue {
  background: rgba(56, 189, 248, .1);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, .2)
}

.badge-gold {
  background: rgba(200, 164, 110, .12);
  color: var(--gold);
  border: 1px solid rgba(200, 164, 110, .25)
}

.badge-gray {
  background: rgba(255, 255, 255, .06);
  color: var(--t2);
  border: 1px solid var(--b1)
}

.admin-actions {
  display: flex;
  gap: .38rem;
  flex-wrap: wrap
}

.img-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--dp)
}

/* CONTENT PAGES */
.content-page {
  max-width: 840px;
  padding: 2.5rem 0 5rem
}

.content-page h2 {
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1.85rem 0 .6rem;
  color: var(--t1)
}

.content-page h3 {
  font-family: var(--fd);
  font-size: 1rem;
  font-weight: 700;
  margin: 1.4rem 0 .45rem;
  color: var(--t1)
}

.content-page p {
  font-size: .86rem;
  color: var(--t2);
  line-height: 1.8;
  margin-bottom: .85rem
}

.content-page ul {
  margin-bottom: .85rem;
  padding-left: 1.25rem
}

.content-page ul li {
  font-size: .86rem;
  color: var(--t2);
  line-height: 1.8;
  margin-bottom: .3rem;
  list-style: disc
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: .9rem;
  margin-bottom: 1.85rem
}

.info-card {
  padding: 1.2rem;
  background: var(--bgcard);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  transition: all var(--tr)
}

.info-card:hover {
  border-color: rgba(200, 164, 110, .25)
}

.info-card-ico {
  font-size: 1.4rem;
  margin-bottom: .55rem
}

.info-card h4 {
  font-family: var(--fd);
  font-size: .86rem;
  font-weight: 700;
  margin-bottom: .35rem
}

.info-card p {
  font-size: .76rem;
  color: var(--t2)
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.fade-up {
  animation: fadeUp .48s ease both
}

/* RESPONSIVE */
@media(max-width:1100px) {
  .testi-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .oem-grid {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .cat-mega-wrap {
    grid-template-columns: 1fr
  }

  .pd-grid {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .pd-gallery {
    position: static
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .admin-wrap {
    grid-template-columns: 1fr
  }

  .admin-sb {
    display: none
  }
}

@media(max-width:900px) {
  .avd-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 6rem 1.5rem 3.5rem
  }

  .hero-vis {
    display: none
  }

  .shop-layout {
    grid-template-columns: 1fr
  }

  .shop-sidebar {
    position: static
  }
}

@media(max-width:768px){
  .avd-nav{display:none}
  .hamburger{display:flex}
  .btn-partner{display:none}
  .testi-grid{grid-template-columns:1fr}
  .why-grid{grid-template-columns:1fr}
  .product-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
  .partner-inner{flex-direction:column;text-align:center}
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-bottom{flex-direction:column;text-align:center;gap:.6rem}
  .form-row{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:1fr 1fr}
  .cat-mega-wrap{grid-template-columns:1fr}
  .cat-sidebar{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}
  .cat-sb-item{flex:0 0 auto;scroll-snap-align:start;border-left:0;border-bottom:3px solid transparent}
  .cat-sb-item.active{border-left:0;border-bottom-color:var(--gold)}
  .hero-title{font-size:2rem}
  .hero-sub{font-size:.9rem}
  .oem-grid{grid-template-columns:1fr}
  .sec-title{font-size:1.35rem}
  .brand-bar{flex-wrap:wrap}
  .page-hero h1{font-size:1.6rem}
}
@media(max-width:480px) {
  .container {
    padding: 0 1rem
  }

  .btn-primary,
  .btn-ghost {
    padding: .6rem 1rem;
    font-size: .8rem
  }
}

@media (min-width: 992px) {

  .mob-nav,
  .hamburger {
    display: none !important;
  }
}

/* ── ADDITIONAL STYLES ────────────────────────────────── */
/* Ensure dropdown stays open on hover for desktop as fallback */
@media(min-width:769px) {

  /* Dropdown arrow transition */
  .nav-arr {
    display: inline-block;
    transition: transform .22s
  }

  /* Make sure dropdown visible when .open class */
  .has-dd.open .nav-dd {
    display: block !important
  }
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  padding: 3rem 0 5rem
}

@media(max-width:900px) {
  .contact-grid {
    grid-template-columns: 1fr
  }
}

/* Marquee animation */
@keyframes marquee {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-33.33%)
  }
}

/* Gallery no-img placeholder */
.prod-img-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--t3);
  opacity: .35
}

/* Sticky gallery fix */
@media(min-width:1101px) {
  .pd-gallery {
    position: sticky;
    top: 82px
  }
}

/* Admin mobile fallback */
@media(max-width:1100px) {
  .admin-wrap {
    grid-template-columns: 1fr
  }

  .admin-sb {
    display: none
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

/* Form select dark mode */
.form-select option {
  background: var(--bginput);
  color: var(--t1)
}

/* Btn partner link fix */
a.btn-partner {
  display: inline-flex;
  align-items: center
}

/* Search input clear */
.search-input::-webkit-search-cancel-button {
  display: none
}

/* Table overflow */
.admin-table-wrap {
  overflow-x: auto
}

/* Badge active nav */
.nav-link.active {
  color: var(--t1) !important;
  background: rgba(255, 255, 255, .07) !important
}

[data-theme=light] .nav-link.active {
  background: rgba(0, 0, 0, .06) !important
}

/* Hero mobile */
@media(max-width:768px) {
  .avd-hero {
    padding: 5.5rem 1.25rem 3rem
  }

  .hero-title {
    font-size: 2.4rem
  }

  .hero-stats {
    gap: 1.1rem
  }

  .hero-cta {
    gap: .65rem
  }
}

/* Footer mobile */
@media(max-width:480px) {
  .footer-grid {
    gap: 1.5rem
  }

  .footer-bottom {
    gap: .35rem
  }
}

/* Upload preview */
img#imgPreview,
img#logoPreview,
img#imgPrev2 {
  border-radius: 8px;
  border: 1px solid var(--b1);
  background: var(--dp)
}

/* Testimonial grid tablet */
@media(max-width:900px) {
  .testi-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:600px) {
  .testi-grid {
    grid-template-columns: 1fr
  }
}

/* Why grid tablet */
@media(max-width:900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:600px) {
  .why-grid {
    grid-template-columns: 1fr
  }
}

/* Section padding mobile */
@media(max-width:768px) {
  [style*="padding:5rem"] {
    padding: 3.5rem 0 !important
  }

  [style*="padding:4rem"] {
    padding: 3rem 0 !important
  }
}


/* ── Nav list ensure ────────────────────────────────── */
.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* ── Header inner layout ────────────────────────────── */
.hdr-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* ======================================================
   AVD v5 ADDITIONS — modern Thai font, new header effects,
   image slider, promo badges, brand buttons, 360 viewer
   ====================================================== */

/* --- Modern Thai/TH font import --- */


html[lang="th"], html[lang="th"] body,
body:lang(th){
  font-family:'IBM Plex Sans Thai','Prompt','Noto Sans Thai','DM Sans',sans-serif;
}
body{ font-family:'IBM Plex Sans Thai','Prompt','DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
h1,h2,h3,h4,h5,h6,
.sec-title,.hero-title,.logo-text,
.admin-page-title,.form-label{ font-family:'Prompt','IBM Plex Sans Thai','Syne',sans-serif; }
.avd-logo .logo-mark{ font-family:'Syne','Prompt',sans-serif; }

/* --- Header menu v5: blink/pulse effects, badges, icons --- */
.nav-link .nav-ico, .dd-ico{ margin-right:.35rem; font-size:.95em; }
.nav-link .nav-badge{
  display:inline-block; background:linear-gradient(135deg,#ef4444,#f59e0b);
  color:#fff; font-size:.58rem; font-weight:800; letter-spacing:.04em;
  padding:.12rem .4rem; border-radius:8px; margin-left:.35rem; vertical-align:middle;
  text-transform:uppercase;
}
.nav-eff-blink{ animation: avd-blink 1.1s ease-in-out infinite; position:relative; }
@keyframes avd-blink{
  0%,100%{ color:#ef4444; text-shadow:0 0 8px rgba(239,68,68,.6),0 0 12px rgba(245,158,11,.3); }
  50%    { color:#f59e0b; text-shadow:0 0 14px rgba(245,158,11,.9),0 0 24px rgba(239,68,68,.5); }
}
.nav-eff-blink .nav-badge{ animation: avd-badge-pulse 1.2s ease-in-out infinite alternate; }
@keyframes avd-badge-pulse{
  from{ transform:scale(1); box-shadow:0 0 0 0 rgba(239,68,68,.55); }
  to  { transform:scale(1.08); box-shadow:0 0 0 6px rgba(239,68,68,0); }
}
.nav-eff-pulse{ animation: avd-pulse 1.6s ease-in-out infinite; }
@keyframes avd-pulse{ 0%,100%{opacity:1}50%{opacity:.55} }
.nav-eff-glow{ text-shadow:0 0 10px rgba(212,175,55,.7); color:var(--gold); }

/* --- Hero slider --- */
.hero-slider{ position:relative; width:100%; max-height:620px; overflow:hidden; border-radius:14px; margin:2rem 0; background:var(--b1); }
.hero-slider .slides{ position:relative; aspect-ratio: 21/9; min-height:320px; }
.hero-slider .slide{
  position:absolute; inset:0; opacity:0; transition:opacity .9s ease;
  background-size:cover; background-position:center;
  display:flex; align-items:center; justify-content:flex-start;
}
.hero-slider .slide.active{ opacity:1; }
.hero-slider .slide .overlay{
  position:absolute; inset:0;
  background:linear-gradient(90deg,rgba(8,12,22,.72) 0%, rgba(8,12,22,.35) 55%, rgba(8,12,22,0) 100%);
}
.hero-slider .slide-inner{
  position:relative; z-index:2; max-width:60%; padding:2.5rem 3rem; color:#fff;
}
.hero-slider .slide-title{ font-family:'Prompt','Syne',sans-serif; font-size:clamp(1.6rem,3.2vw,2.6rem); font-weight:700; line-height:1.15; margin-bottom:.8rem; }
.hero-slider .slide-sub  { font-size:clamp(.9rem,1.3vw,1.05rem); opacity:.92; margin-bottom:1.25rem; line-height:1.5; max-width:46ch; }
.hero-slider .slide-btn  { display:inline-block; padding:.75rem 1.6rem; background:linear-gradient(135deg,#d4af37,#f6d265); color:#0c0f18; font-weight:700; border-radius:8px; text-decoration:none; transition:transform .2s; }
.hero-slider .slide-btn:hover{ transform:translateY(-2px); }
.hero-slider .slide.no-img{ background:linear-gradient(135deg,#0f172a 0%,#1e293b 50%,#312e81 100%); }
.hero-slider .dots{ position:absolute; bottom:14px; left:50%; transform:translateX(-50%); display:flex; gap:.5rem; z-index:3; }
.hero-slider .dot{ width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.45); cursor:pointer; transition:all .3s; border:none; }
.hero-slider .dot.active{ background:var(--gold); width:28px; border-radius:5px; }
.hero-slider .slider-arrow{
  position:absolute; top:50%; transform:translateY(-50%); width:42px; height:42px;
  background:rgba(0,0,0,.5); color:#fff; border:none; border-radius:50%;
  cursor:pointer; font-size:1.2rem; z-index:3; transition:background .2s;
  display:flex; align-items:center; justify-content:center;
}
.hero-slider .slider-arrow:hover{ background:rgba(212,175,55,.9); color:#0c0f18; }
.hero-slider .prev{ left:14px; } .hero-slider .next{ right:14px; }
@media(max-width:768px){ .hero-slider .slide-inner{ max-width:90%; padding:1.2rem 1rem; } }

/* --- Promo badge on product cards --- */
.prod-promo-badge{
  position:absolute; top:10px; left:10px; z-index:2;
  background:linear-gradient(135deg,#ef4444,#f59e0b);
  color:#fff; font-size:.62rem; font-weight:800; letter-spacing:.06em;
  padding:.3rem .55rem; border-radius:6px; text-transform:uppercase;
  box-shadow:0 4px 12px rgba(239,68,68,.4);
  animation: promo-shine 2.4s ease-in-out infinite;
}
@keyframes promo-shine{
  0%,100%{ box-shadow:0 4px 12px rgba(239,68,68,.4); }
  50%    { box-shadow:0 6px 18px rgba(245,158,11,.7); }
}
.prod-price-box{
  display:flex; flex-direction:column; align-items:flex-start; gap:.15rem;
}
.prod-price-now{ font-family:'Prompt',sans-serif; font-size:1.05rem; font-weight:700; color:var(--gold); }
.prod-price-old{ font-size:.78rem; color:var(--t3); text-decoration:line-through; }
.prod-price-save{ font-size:.68rem; color:#10b981; font-weight:600; }
.prod-installment{ font-size:.7rem; color:#8b5cf6; font-weight:600; margin-top:.15rem; }

/* --- AVD logo overlay on own-brand product images --- */
.prod-logo-overlay{
  position:absolute; bottom:8px; right:8px; z-index:2;
  padding:.25rem .55rem; background:rgba(212,175,55,.95); color:#0c0f18;
  font-family:'Syne','Prompt',sans-serif; font-weight:800; font-size:.65rem;
  letter-spacing:.08em; border-radius:5px; backdrop-filter:blur(6px);
  box-shadow:0 2px 6px rgba(0,0,0,.25);
}

/* --- Brand buttons / Solutions grid v5 --- */
.solutions-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:1.1rem; margin-top:2rem;
}
.solution-card{
  position:relative; display:flex; flex-direction:column; gap:.6rem;
  padding:1.5rem 1.25rem; background:var(--b1); border:1px solid var(--b2);
  border-radius:12px; text-decoration:none; color:var(--t1);
  transition:all .25s ease; overflow:hidden; min-height:160px;
}
.solution-card::before{
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg,transparent,var(--sol-color,var(--gold)),transparent);
  opacity:0; transition:opacity .3s;
}
.solution-card:hover{ transform:translateY(-4px); border-color:var(--sol-color,var(--gold)); box-shadow:0 14px 28px rgba(0,0,0,.2); }
.solution-card:hover::before{ opacity:1; }
.solution-card .sol-icon{ font-size:1.9rem; line-height:1; }
.solution-card .sol-logo{ max-width:100%; max-height:48px; object-fit:contain; margin-bottom:.3rem; }
.solution-card .sol-title{ font-family:'Prompt','Syne',sans-serif; font-weight:700; font-size:1rem; color:var(--t1); }
.solution-card .sol-desc{ font-size:.78rem; color:var(--t3); line-height:1.45; }
.solution-card .sol-arrow{ align-self:flex-end; margin-top:auto; color:var(--sol-color,var(--gold)); font-weight:700; }
.solution-card.is-brand{ background:linear-gradient(135deg,var(--b1),rgba(212,175,55,.04)); }
.solution-card.is-brand .sol-title{ color:var(--sol-color,var(--gold)); }

/* --- Blog posts preview on homepage --- */
.blog-preview-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:1.25rem; margin-top:2rem;
}
.blog-card{
  background:var(--b1); border:1px solid var(--b2); border-radius:12px;
  overflow:hidden; text-decoration:none; color:var(--t1);
  transition:transform .25s, box-shadow .25s;
}
.blog-card:hover{ transform:translateY(-4px); box-shadow:0 14px 30px rgba(0,0,0,.2); }
.blog-card .bc-img{ aspect-ratio:16/9; background:linear-gradient(135deg,#1e293b,#334155); overflow:hidden; }
.blog-card .bc-img img{ width:100%; height:100%; object-fit:cover; }
.blog-card .bc-body{ padding:1rem 1.1rem; }
.blog-card .bc-cat { display:inline-block; font-size:.68rem; font-weight:700; color:var(--gold); letter-spacing:.06em; text-transform:uppercase; margin-bottom:.4rem; }
.blog-card .bc-title{ font-family:'Prompt','Syne',sans-serif; font-weight:600; font-size:1rem; line-height:1.35; margin-bottom:.45rem; color:var(--t1); }
.blog-card .bc-date { font-size:.72rem; color:var(--t3); }
.blog-card .bc-excerpt{ font-size:.82rem; color:var(--t2); line-height:1.5; margin-top:.5rem; }

/* --- 360 viewer --- */
.viewer-360{
  position:relative; aspect-ratio:1/1; max-width:520px; margin:0 auto;
  background:var(--b1); border-radius:12px; overflow:hidden; border:1px solid var(--b2);
  cursor:grab; user-select:none;
}
.viewer-360.dragging{ cursor:grabbing; }
.viewer-360 img{ width:100%; height:100%; object-fit:contain; display:block; pointer-events:none; }
.viewer-360 .v360-hint{
  position:absolute; bottom:10px; left:50%; transform:translateX(-50%);
  background:rgba(0,0,0,.65); color:#fff; font-size:.72rem; padding:.35rem .8rem;
  border-radius:14px; backdrop-filter:blur(4px); pointer-events:none;
}
.yt-embed-box{ position:relative; aspect-ratio:16/9; max-width:900px; margin:1.25rem auto; border-radius:12px; overflow:hidden; border:1px solid var(--b2); }
.yt-embed-box iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.product-media-tabs{ display:flex; gap:.5rem; margin-bottom:1rem; flex-wrap:wrap; }
.product-media-tab{ padding:.55rem 1.1rem; background:var(--b1); border:1px solid var(--b2); border-radius:8px; cursor:pointer; font-size:.85rem; color:var(--t2); transition:all .2s; }
.product-media-tab.active{ background:var(--gold); color:#0c0f18; border-color:var(--gold); font-weight:600; }
.product-media-pane{ display:none; }
.product-media-pane.active{ display:block; }

/* --- Admin v5 tweaks: Thai font + modern settings tabs --- */
.admin-sb, .admin-main{ font-family:'IBM Plex Sans Thai','Prompt','DM Sans',sans-serif; }
.admin-page-title, .admin-nav, .admin-card-hdr h3{ font-family:'Prompt','IBM Plex Sans Thai','Syne',sans-serif; }
.settings-tabs{ display:flex; gap:.35rem; flex-wrap:wrap; padding:.75rem 1rem; border-bottom:1px solid var(--b1); background:var(--b1); }
.settings-tab{ padding:.55rem .9rem; background:transparent; border:1px solid transparent; border-radius:7px; color:var(--t2); cursor:pointer; font-size:.82rem; font-weight:500; }
.settings-tab:hover{ background:var(--b2); color:var(--t1); }
.settings-tab.active{ background:var(--gold); color:#0c0f18; border-color:var(--gold); font-weight:700; }
.settings-pane{ display:none; padding:1.25rem; }
.settings-pane.active{ display:block; }
.settings-field-group{ border:1px solid var(--b2); border-radius:10px; padding:1rem 1.1rem; margin-bottom:1.25rem; background:var(--b0); }
.settings-field-group > h4{ font-family:'Prompt',sans-serif; font-size:.9rem; font-weight:700; color:var(--gold); margin:0 0 .85rem; padding-bottom:.45rem; border-bottom:1px solid var(--b1); }

/* Bilingual side-by-side inputs */
.bilingual-row{ display:grid; grid-template-columns:1fr 1fr; gap:.75rem; }
.bilingual-row label{ display:block; font-size:.72rem; color:var(--t3); margin-bottom:.3rem; text-transform:uppercase; letter-spacing:.04em; }
.bilingual-row .lang-flag{ display:inline-block; padding:.1rem .4rem; border-radius:4px; background:var(--b2); font-size:.62rem; font-weight:700; margin-right:.3rem; }
@media(max-width:640px){ .bilingual-row{ grid-template-columns:1fr; } }

/* "Coming soon" empty state */
.empty-card{ padding:2rem 1.5rem; text-align:center; color:var(--t3); border:1px dashed var(--b2); border-radius:10px; background:var(--b0); }

/* Price tag big display */
.price-display{ font-family:'Prompt',sans-serif; font-weight:700; font-size:1.6rem; color:var(--gold); }
.price-display-small{ font-family:'Prompt',sans-serif; font-weight:600; font-size:1.1rem; color:var(--gold); }
.price-row{ display:flex; align-items:baseline; gap:.8rem; flex-wrap:wrap; padding:.85rem 1.1rem; background:rgba(212,175,55,.08); border:1px solid rgba(212,175,55,.25); border-radius:10px; margin:1rem 0; }
.price-save-pct{ font-size:.75rem; color:#10b981; background:rgba(16,185,129,.12); padding:.25rem .6rem; border-radius:14px; font-weight:600; }

/* Ensure dropdown widths */
.has-dd .nav-dd{ min-width:280px; }


/* ==================== v5.1 FIXES ==================== */

/* Inline hero slider (when placed in hero-vis) */
.hero-slider-inline{
  position:relative; width:100%; aspect-ratio:4/3; min-height:360px;
  max-height:500px; margin:0; border-radius:16px;
  background:linear-gradient(135deg,#0f172a,#1e293b);
  box-shadow:0 20px 50px rgba(0,0,0,.45);
  overflow:hidden;
}
.hero-slider-inline .slides{ position:absolute; inset:0; aspect-ratio:auto; min-height:0; }
.hero-slider-inline .slide-inner{ max-width:80%; padding:1.5rem 1.75rem; }
.hero-slider-inline .slide-title{ font-size:clamp(1.1rem,1.5vw,1.5rem); margin-bottom:.5rem; }
.hero-slider-inline .slide-sub{ font-size:clamp(.78rem,1vw,.88rem); margin-bottom:.85rem; }
.hero-slider-inline .slide-btn{ padding:.55rem 1.1rem; font-size:.78rem; }
.hero-slider-inline .slider-arrow{ width:34px; height:34px; font-size:1rem; }
.hero-slider-inline .hero-float{ position:absolute; z-index:4; }
.hero-slider-inline .hero-float.hf1{ top:14px; right:14px; }
.hero-slider-inline .hero-float.hf2{ bottom:50px; left:14px; }
@media(max-width:900px){ .hero-slider-inline{ aspect-ratio:16/9; min-height:240px; } }

/* Force-assert grid rules in case earlier rules override */
.solutions-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap:1.1rem !important;
  margin-top:2rem;
}
.blog-preview-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap:1.25rem !important;
  margin-top:2rem;
}

/* Hero slider (standalone version, retained if used elsewhere) */
.hero-slider:not(.hero-slider-inline){ aspect-ratio:21/9; min-height:320px; }

/* Brand card fallback logo text — better sizing */
.solution-card.is-brand .sol-icon{
  font-size:1.6rem; font-weight:800; letter-spacing:-.02em;
  background:linear-gradient(135deg,var(--sol-color,#d4af37),rgba(255,255,255,.6));
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.solution-card{
  display:flex !important; flex-direction:column !important; gap:.6rem;
}

/* ==================== v5.2 — New Solutions layout ==================== */
.cat-title-row{
  display:flex; align-items:baseline; justify-content:space-between;
  margin:2rem 0 1.25rem; padding-bottom:.6rem; border-bottom:1px solid var(--b1);
}
.cat-subtitle{
  font-family:'Prompt','Syne',sans-serif; font-size:1.05rem; font-weight:700;
  color:var(--t1); margin:0;
}
.view-all-link{
  font-size:.85rem; font-weight:500; color:var(--t2); text-decoration:none;
  transition:color .2s;
}
.view-all-link:hover{ color:var(--gold); }

/* Circular category thumbnails */
.cat-circle-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fill, minmax(130px, 1fr)) !important;
  gap:1.25rem; margin-top:1rem;
}
.cat-circle{
  display:flex; flex-direction:column; align-items:center; gap:.6rem;
  text-decoration:none; color:var(--t1); transition:transform .25s;
  padding:.5rem;
}
.cat-circle:hover{ transform:translateY(-4px); }
.cat-circle-thumb{
  width:96px; height:96px; border-radius:50%;
  background:linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--b2);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  transition:all .3s ease;
  position:relative;
}
.cat-circle:hover .cat-circle-thumb{
  border-color:var(--cat-color,var(--gold));
  box-shadow:0 8px 24px -8px var(--cat-color,var(--gold));
  transform:scale(1.04);
}
[data-theme=light] .cat-circle-thumb{
  background:linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-color:#e2e8f0;
}
.cat-circle-thumb img{
  max-width:72%; max-height:72%; object-fit:contain; filter:drop-shadow(0 2px 6px rgba(0,0,0,.15));
}
.cat-circle-icon{
  font-size:2.4rem;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.2));
}
.cat-circle-label{
  font-size:.78rem; font-weight:500; color:var(--t2);
  text-align:center; line-height:1.35; max-width:120px;
}
.cat-circle:hover .cat-circle-label{ color:var(--cat-color,var(--gold)); }

/* Brand logo grid (rectangular white cards) */
.brand-logo-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap:.9rem; margin-top:1rem;
}
.brand-card{
  display:flex; align-items:center; justify-content:center;
  min-height:95px; padding:1rem 1.25rem;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  text-decoration:none;
  transition:all .25s ease;
  position:relative;
}
[data-theme=dark] .brand-card{
  background:#fafafa;
  border-color:var(--b2);
}
.brand-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px -8px rgba(0,0,0,.25);
  border-color:var(--brand-color,var(--gold));
}
.brand-logo-img{
  max-width:80%; max-height:55px; object-fit:contain;
}
.brand-logo-text{
  font-family:'Syne','Prompt',sans-serif;
  font-weight:800;
  font-size:1.15rem;
  letter-spacing:-.01em;
  text-align:center;
  line-height:1.1;
}

/* Product-detail social contact block */
.pd-contact-block{
  margin-top:1.5rem; padding:1.25rem 1.3rem;
  background:linear-gradient(135deg, rgba(212,175,55,.05), rgba(6,182,212,.04));
  border:1px solid var(--b2); border-radius:12px;
}
.pd-contact-title{
  font-family:'Prompt','Syne',sans-serif; font-size:.92rem; font-weight:700;
  color:var(--t1); margin:0 0 .85rem;
  display:flex; align-items:center; gap:.5rem;
}
.pd-contact-row{
  display:flex; flex-wrap:wrap; gap:.65rem; align-items:center;
}
.pd-contact-btn{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.6rem 1rem; border-radius:10px;
  text-decoration:none; font-size:.82rem; font-weight:600;
  transition:all .2s; color:#fff;
}
.pd-contact-btn:hover{ transform:translateY(-2px); }
.pd-contact-btn.c-fb   { background:#1877f2; }
.pd-contact-btn.c-yt   { background:#ff0000; }
.pd-contact-btn.c-line { background:#06c755; }
.pd-contact-btn.c-ig   { background:linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.pd-contact-btn.c-li   { background:#0a66c2; }
.pd-contact-btn.c-email{ background:#374151; }
.pd-contact-btn.c-phone{ background:#10b981; }
.pd-contact-btn svg{ width:16px; height:16px; fill:currentColor; }
.pd-contact-btn.c-fb,.pd-contact-btn.c-yt,.pd-contact-btn.c-line,.pd-contact-btn.c-ig,.pd-contact-btn.c-li,.pd-contact-btn.c-email,.pd-contact-btn.c-phone{ color:#fff; }

/* Ensure the admin settings page card doesn't collapse */
.admin-card{ background:var(--b1); border:1px solid var(--b2); border-radius:12px; overflow:hidden; }
.admin-card-hdr{ padding:1rem 1.25rem; border-bottom:1px solid var(--b2); background:var(--b0); }
.admin-card-hdr h3{ margin:0; font-family:'Prompt','Syne',sans-serif; font-size:1rem; color:var(--t1); }
.settings-pane{ min-height:200px; }

/* Fallback for the hero slider if aspect-ratio unsupported */
.hero-slider-inline{ min-height:360px; }
.hero-slider-inline .slides{ position:absolute; inset:0; }

/* ==================== v5.3 — SaaS-grade header dropdowns ==================== */

/* Main nav container — slightly elevated */
.avd-header{ backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%); }
.avd-nav .nav-list > li { position: relative; }

/* Top-level nav links — refined spacing + hover indicator */
.avd-nav .nav-link{
  display:inline-flex !important; align-items:center; gap:.4rem;
  padding:.65rem 1rem !important; border-radius:10px;
  color:#d1d5db; font-weight:500; font-size:.88rem;
  transition:all .25s cubic-bezier(.4,0,.2,1);
  position:relative;
}
.avd-nav .nav-link:hover{
  color:#fff;
  background:linear-gradient(135deg, rgba(212,175,55,.14), rgba(6,182,212,.08));
}
.avd-nav .nav-link .nav-arr{
  font-size:.55em; opacity:.6; transition:transform .25s, opacity .25s;
  margin-left:.15rem;
}
.avd-nav .has-dd:hover .nav-link .nav-arr{ transform:rotate(180deg); opacity:1; }

/* Dropdown menus — SaaS polish: frosted glass, gradient border, deep shadow */
.avd-nav .nav-dd,
.avd-nav .nav-dd.mega{
  position:absolute;
  top:calc(100% + 10px) !important; left:0;
  min-width:280px;
  padding:.75rem !important;
  background:linear-gradient(180deg,
    rgba(17,24,39,.96) 0%,
    rgba(11,18,32,.98) 100%) !important;
  backdrop-filter:blur(24px) saturate(160%);
  -webkit-backdrop-filter:blur(24px) saturate(160%);
  border:1px solid rgba(212,175,55,.22) !important;
  border-radius:16px !important;
  box-shadow:
    0 20px 50px -8px rgba(0,0,0,.55),
    0 8px 20px -8px rgba(212,175,55,.15),
    inset 0 1px 0 rgba(255,255,255,.06) !important;
  opacity:0; visibility:hidden; transform:translateY(8px) scale(.98);
  transition:opacity .28s cubic-bezier(.4,0,.2,1), transform .28s cubic-bezier(.4,0,.2,1), visibility .28s;
  z-index:1000;
  list-style:none;
}
.avd-nav .has-dd:hover > .nav-dd,
.avd-nav .has-dd:hover > .nav-dd.mega,
.avd-nav .has-dd:focus-within > .nav-dd,
.avd-nav .has-dd:focus-within > .nav-dd.mega{
  opacity:1; visibility:visible; transform:translateY(0) scale(1);
}

/* Gradient accent bar on top of dropdown */
.avd-nav .nav-dd::before,
.avd-nav .nav-dd.mega::before{
  content:''; position:absolute; top:-1px; left:20%; right:20%; height:1px;
  background:linear-gradient(90deg, transparent, rgba(212,175,55,.6), transparent);
  border-radius:2px;
}

/* Individual dropdown items — card-like hover */
.avd-nav .nav-dd li{ list-style:none; margin:0; }
.avd-nav .nav-dd a,
.avd-nav .nav-dd.mega a{
  display:flex !important; align-items:center; gap:.75rem;
  padding:.7rem .85rem !important;
  border-radius:10px !important;
  color:#e5e7eb; font-size:.83rem; font-weight:500;
  text-decoration:none;
  transition:all .2s cubic-bezier(.4,0,.2,1);
  position:relative;
  border:1px solid transparent;
}
.avd-nav .nav-dd a:hover,
.avd-nav .nav-dd.mega a:hover{
  background:linear-gradient(135deg,
    rgba(212,175,55,.12) 0%,
    rgba(6,182,212,.06) 100%) !important;
  border-color:rgba(212,175,55,.2);
  color:#fff;
  transform:translateX(3px);
}

/* Bullet dots — redesigned as gradient orbs */
.avd-nav .nav-dd .dd-dot,
.avd-nav .nav-dd.mega .dd-dot{
  width:8px !important; height:8px !important; border-radius:50%;
  background:linear-gradient(135deg, #d4af37, #f6d265);
  flex-shrink:0;
  box-shadow:0 0 0 1px rgba(212,175,55,.25), 0 0 12px rgba(212,175,55,.35);
  transition:all .2s;
}
.avd-nav .nav-dd a:hover .dd-dot{
  transform:scale(1.4);
  box-shadow:0 0 0 3px rgba(212,175,55,.18), 0 0 18px rgba(212,175,55,.6);
}

/* Submenu icons — boxed */
.avd-nav .nav-dd a .dd-ico,
.avd-nav .nav-dd.mega a .dd-ico{
  width:28px; height:28px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, rgba(212,175,55,.14), rgba(212,175,55,.06));
  border:1px solid rgba(212,175,55,.2);
  border-radius:8px; font-size:.9rem; flex-shrink:0;
  transition:all .2s;
}
.avd-nav .nav-dd a:hover .dd-ico{
  background:linear-gradient(135deg, rgba(212,175,55,.25), rgba(212,175,55,.12));
  border-color:rgba(212,175,55,.4);
  transform:scale(1.05);
}

/* Mega menu (Products) — 3-col layout polish */
.avd-nav .nav-dd.mega{ min-width:620px !important; padding:1.25rem !important; }
.avd-nav .mega-cols{ display:grid !important; grid-template-columns:repeat(3, 1fr) !important; gap:1.25rem !important; }
.avd-nav .mega-col-title{
  font-family:'Prompt','Syne',sans-serif; font-size:.72rem !important;
  font-weight:700 !important; text-transform:uppercase; letter-spacing:.08em !important;
  color:#d4af37 !important;
  padding:0 .85rem .5rem !important;
  border-bottom:1px solid rgba(212,175,55,.2);
  margin-bottom:.4rem !important;
}
.avd-nav .mega-footer{
  margin-top:1rem; padding-top:1rem;
  border-top:1px solid rgba(255,255,255,.06);
  display:flex; gap:.6rem; flex-wrap:wrap;
}
.avd-nav .mega-btn{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.55rem 1rem !important; border-radius:9px !important;
  font-size:.78rem; font-weight:600 !important; text-decoration:none;
  transition:all .2s;
}
.avd-nav .mega-btn.mb-gold{
  background:linear-gradient(135deg,#d4af37,#f6d265);
  color:#0c0f18 !important;
  box-shadow:0 4px 12px rgba(212,175,55,.3);
}
.avd-nav .mega-btn.mb-cyan{ background:linear-gradient(135deg,#06b6d4,#0ea5e9); color:#fff !important; }
.avd-nav .mega-btn.mb-gray{ background:rgba(255,255,255,.06); color:#e5e7eb !important; border:1px solid var(--b2); }
.avd-nav .mega-btn:hover{ transform:translateY(-1px); filter:brightness(1.1); }

/* Badge on nav (HOT etc.) — refined gradient */
.nav-badge{
  background:linear-gradient(135deg, #ef4444, #f97316) !important;
  box-shadow:0 2px 8px rgba(239,68,68,.35), inset 0 1px 0 rgba(255,255,255,.2) !important;
  font-size:.6rem !important;
  padding:.15rem .45rem !important;
  letter-spacing:.05em !important;
}

/* Language switcher — pill button */
.lang-btn{
  background:rgba(255,255,255,.05) !important;
  border:1px solid var(--b2) !important;
  color:#d1d5db !important;
  padding:.45rem .85rem !important;
  border-radius:8px !important;
  font-size:.78rem; font-weight:500; text-decoration:none;
  transition:all .2s;
}
.lang-btn:hover{ background:rgba(212,175,55,.15) !important; border-color:rgba(212,175,55,.4) !important; color:#fff !important; }

/* Partner CTA button — premium gold */
.btn-partner{
  background:linear-gradient(135deg, #d4af37, #f6d265) !important;
  color:#0c0f18 !important;
  padding:.55rem 1.1rem !important;
  border-radius:10px !important;
  font-weight:700 !important; font-size:.82rem !important;
  text-decoration:none; display:inline-flex; align-items:center;
  box-shadow:0 6px 18px rgba(212,175,55,.35), inset 0 1px 0 rgba(255,255,255,.3);
  transition:all .25s;
}
.btn-partner:hover{ transform:translateY(-1px); filter:brightness(1.08); box-shadow:0 10px 24px rgba(212,175,55,.5); }

/* Header action buttons (theme, search, account) — matched pill */
.hbtn{
  width:36px; height:36px;
  display:inline-flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.04);
  border:1px solid var(--b2);
  border-radius:10px;
  color:#d1d5db;
  transition:all .2s;
  cursor:pointer;
}
.hbtn:hover{ background:rgba(212,175,55,.1); border-color:rgba(212,175,55,.3); color:#d4af37; }


/* ==================== v5.3.3 — Gallery integrated 360 + YouTube ==================== */
.gallery-main{ position:relative; width:100%; aspect-ratio:1/1; max-height:560px; border-radius:14px; overflow:hidden; background:var(--b1); border:1px solid var(--b2); }
.gallery-main .gm-pane{ position:absolute !important; inset:0; width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.gallery-main .gm-pane.active{ display:flex !important; }
.gallery-main .gm-pane:not(.active){ display:none !important; }
.gallery-main .gm-pane-img img{ max-width:92%; max-height:92%; object-fit:contain; }
.gallery-main .gm-pane-360{ background:#0f172a; }
.gallery-main .gm-pane-360 .viewer-360{ width:100% !important; height:100% !important; aspect-ratio:auto !important; max-width:none !important; border:0 !important; border-radius:0 !important; background:transparent; }
.gallery-main .gm-pane-360 .viewer-360 img{ max-width:92%; max-height:92%; }
.gallery-main .gm-pane-yt{ background:#000; }
.gallery-main .gm-pane-yt iframe{ width:100%; height:100%; border:0; display:block; }

/* Gallery thumbs — special chips for 360 / YT */
.gallery-thumb.gt-360, .gallery-thumb.gt-yt{
  display:flex !important; flex-direction:column; align-items:center; justify-content:center;
  gap:.15rem;
  background:linear-gradient(135deg,#0f172a,#1e293b) !important;
  border:1px solid var(--b2) !important;
  cursor:pointer;
  transition:all .2s;
}
.gallery-thumb.gt-360{ color:#06b6d4; }
.gallery-thumb.gt-360:hover, .gallery-thumb.gt-360.active{ border-color:#06b6d4 !important; box-shadow:0 0 0 2px rgba(6,182,212,.2); }
.gallery-thumb.gt-yt{ color:#ef4444; }
.gallery-thumb.gt-yt:hover, .gallery-thumb.gt-yt.active{ border-color:#ef4444 !important; box-shadow:0 0 0 2px rgba(239,68,68,.2); }
.gallery-thumb .gt-label{ font-size:.6rem; font-weight:800; letter-spacing:.05em; }

/* ==================== v5.3.4 — TH Sarabun + tighter header + downloads modal ==================== */

/* Thai font: TH Sarabun New (more professional / familiar to Thai readers) */
html[lang="th"] body, body:lang(th){
  font-family:'TH Sarabun New','Sarabun','IBM Plex Sans Thai','Noto Sans Thai','DM Sans',sans-serif !important;
  font-size: 1.05rem; /* TH Sarabun is naturally smaller, so bump up */
}
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3,
html[lang="th"] .sec-title, html[lang="th"] .hero-title{
  font-family:'TH Sarabun New','Sarabun','Prompt','Syne',sans-serif !important;
}

/* Tighter header — reduce nav gap + padding */
.avd-header .hdr-inner{ padding:.65rem 1.5rem !important; }
.avd-nav .nav-list{ gap:.1rem !important; }
.avd-nav .nav-list > li{ margin:0 !important; }
.avd-nav .nav-link{ padding:.55rem .8rem !important; font-size:.84rem !important; gap:.3rem !important; }
.hdr-actions{ gap:.4rem !important; }

/* Downloads modal popup — SaaS polish */
.dl-modal{
  max-width: 560px; width: 92%; padding: 0;
  margin: auto !important;  /* fall-back centering */
  position: fixed !important;
  top: 50% !important; left: 50% !important;
  transform: translate(-50%, -50%) !important;
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(17,24,39,.98), rgba(11,18,32,.98));
  color: #e5e7eb;
  box-shadow: 0 30px 60px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04) inset;
  z-index: 9999;
}
.dl-modal::backdrop{ background: rgba(0,0,0,.65); backdrop-filter: blur(6px); }
.dl-modal-hdr{
  display:flex; align-items:center; justify-content:space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(212,175,55,.06), transparent);
}
.dl-modal-close{
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.06); color: #e5e7eb;
  font-size: 1rem; cursor: pointer; transition: all .2s;
}
.dl-modal-close:hover{ background: rgba(239,68,68,.2); color: #ef4444; }
.dl-modal-body{ padding: .85rem 1rem 1.25rem; max-height: 60vh; overflow-y: auto; }

.dl-modal-row{
  display:flex; justify-content:space-between; align-items:center;
  padding: .75rem 1rem;
  margin-bottom: .5rem;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: all .2s ease;
}
.dl-modal-row:hover{
  background: rgba(212,175,55,.08);
  border-color: rgba(212,175,55,.3);
  transform: translateX(2px);
}
.dl-modal-row-left{ display:flex; align-items:center; gap:.7rem; min-width:0; flex:1; }
.dl-modal-ext{
  width: 44px; height: 44px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 8px;
  font-family: 'Syne','Prompt',monospace; font-weight: 800; font-size: .68rem;
  background: linear-gradient(135deg,#ef4444,#b91c1c);
  color: #fff;
  flex-shrink: 0;
  letter-spacing: .04em;
}
.dl-modal-row-name{ font-weight:600; color:#fff; font-size:.88rem; word-break:break-word; }
.dl-modal-row-meta{ font-size:.72rem; color:#94a3b8; margin-top:.15rem; }
.dl-modal-row-btn{
  display:inline-flex; align-items:center; gap:.35rem;
  padding: .45rem .85rem;
  background: linear-gradient(135deg,#d4af37,#f6d265);
  color: #0c0f18 !important;
  border-radius: 8px;
  font-size: .76rem; font-weight: 700;
  flex-shrink: 0;
}
.dl-modal-row:hover .dl-modal-row-btn{ filter: brightness(1.1); }

/* Group items on the product detail downloads list */
.dl-item.dl-item-group{
  background: rgba(255,255,255,.02);
  border: 1px solid var(--b1);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
  transition: all .25s;
}
.dl-item.dl-item-group:hover{
  background: rgba(212,175,55,.05);
  border-color: rgba(212,175,55,.25);
  transform: translateX(3px);
}

/* ==================== v5.3.5 — Modern banner animation ==================== */
.hero-slider-inline .slide.slide-link{
  display:block !important;
  text-decoration:none !important;
  position:absolute !important; inset:0 !important;
  overflow:hidden;
  cursor:pointer;
}
.hero-slider-inline .slide-link:hover .slide-bg-layer{ transform:scale(1.06); }
.hero-slider-inline .slide-bg-layer{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  transition:transform 6s ease-out;
}
.hero-slider-inline .slide-link.active .slide-bg-layer{
  animation: slideKenBurns 8s ease-in-out infinite alternate;
}
@keyframes slideKenBurns{
  0%   { transform:scale(1)   translate(0,0); }
  100% { transform:scale(1.08) translate(-1.5%, -1%); }
}

/* Animated cyber grid overlay */
.slide-grid-anim{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(212,175,55,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 60%, transparent, black 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 60%, transparent, black 80%);
  opacity: .6;
  animation: gridDrift 20s linear infinite;
  pointer-events:none;
}
@keyframes gridDrift{
  from { background-position: 0 0, 0 0; }
  to   { background-position: 32px 32px, 32px 32px; }
}

/* Pulse glow corner */
.slide-glow{
  position:absolute; top:-50px; right:-50px;
  width:280px; height:280px;
  background: radial-gradient(circle, rgba(212,175,55,.35), transparent 65%);
  filter: blur(40px);
  pointer-events:none;
  animation: glowPulse 4.5s ease-in-out infinite alternate;
}
@keyframes glowPulse{
  0%   { opacity:.4; transform: scale(1);   }
  100% { opacity:.85;transform: scale(1.18); }
}

/* Diagonal scan line */
.slide-scan{
  position:absolute; inset:0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.08) 48%, transparent 60%);
  background-size: 200% 200%;
  pointer-events:none;
  animation: scanSweep 6s ease-in-out infinite;
}
@keyframes scanSweep{
  0%   { background-position: -100% 0; }
  60%  { background-position:  100% 0; }
  100% { background-position:  100% 0; }
}

/* Eyebrow pill */
.slide-eyebrow{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.32rem .85rem;
  background: rgba(212,175,55,.15);
  border: 1px solid rgba(212,175,55,.4);
  border-radius: 999px;
  color: #d4af37 !important;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .85rem;
  backdrop-filter: blur(6px);
  animation: eyebrowSlideIn .8s ease-out both;
}
.slide-dot{
  width:6px; height:6px; border-radius:50%;
  background:#d4af37;
  box-shadow:0 0 10px rgba(212,175,55,.8);
  animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse{ 0%,100%{opacity:.5;transform:scale(.8)} 50%{opacity:1;transform:scale(1.2)} }

/* Slide content reveal */
.hero-slider-inline .slide-link.active .slide-eyebrow{ animation: eyebrowSlideIn .7s .1s ease-out both; }
.hero-slider-inline .slide-link.active .slide-title{ animation: slideUpFade .8s .25s ease-out both; }
.hero-slider-inline .slide-link.active .slide-sub  { animation: slideUpFade .8s .45s ease-out both; }
@keyframes slideUpFade { from{opacity:0; transform:translateY(20px)} to{opacity:1; transform:translateY(0)} }
@keyframes eyebrowSlideIn { from{opacity:0; transform:translateX(-12px)} to{opacity:1; transform:translateX(0)} }

/* Dot indicators — modern bar style */
.hero-slider .dot{ background:rgba(255,255,255,.25) !important; transition:all .3s; }
.hero-slider .dot.active{ background:linear-gradient(90deg,#d4af37,#f6d265) !important; width:32px !important; box-shadow: 0 0 12px rgba(212,175,55,.6); }

/* Hover state for slide */
.slide-link:hover .slide-glow{ animation-duration: 2s; }

