/* ================================================
   T.P.P Supply Engineering — Custom Styles
   Theme: Royal Navy #0D1F3C | Gold #C9A227 | White
   Font: Prompt (Google Fonts)
   ================================================ */

:root {
  --primary:        #14315C;
  --primary-dark:   #0B1E3A;
  --primary-light:  #eef3f9;
  --primary-mid:    #1E4478;
  --accent:         #C9A227;
  --accent-dark:    #A8841C;
  --dark:           #0A1729;
  --dark-nav:       #0D1F3C;
  --dark-footer:    #060F1D;
  --dark-card:      #0D1F3C;
  --gray-100:       #f5f8fc;
  --gray-200:       #e3e9f2;
  --text-dark:      #0A1729;
  --text-muted:     #64748B;
  --border:         #dbe3ee;
  --gold:           #C9A227;
  --white:          #ffffff;
  --shadow-sm:      0 2px 12px rgba(11,30,58,.10);
  --shadow-md:      0 6px 24px rgba(11,30,58,.18);
  --shadow-lg:      0 10px 40px rgba(11,30,58,.24);
  --shadow-red:     0 4px 20px rgba(201,162,39,.40);
  --radius:         14px;
  --radius-sm:      8px;
  --transition:     all 0.25s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Prompt', sans-serif;
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== SELECTION ===== */
::selection { background: var(--primary); color: #fff; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--text-dark); }

/* ===== LINKS ===== */
a { color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
  background: #0D1F3C;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0px solid #FFF;
  transition: var(--transition);
  padding: 3px 0;
  z-index: 1050;
}
#mainNav.scrolled {
  padding: 6px 0;
  box-shadow: 0 4px 20px rgba(201,162,39,.2);
}
#mainNav .navbar-brand { font-size: 1.2rem; }
#mainNav .navbar-brand img { height: 55px; width: auto; object-fit: contain; }

#mainNav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 7px 14px !important;
  border-radius: 6px;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: #000 !important;
  background: var(--accent);
}
#mainNav .navbar-toggler {
  border-color: rgba(201,162,39,0.5);
}
#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== NAVBAR PHONE BUTTON ===== */
.btn-nav-phone {
  background: var(--primary);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  padding: 7px 16px !important;
  font-size: 0.85rem;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-nav-phone:hover {
  background: transparent !important;
  border-color: var(--primary);
  color: var(--primary) !important;
  transform: translateY(-1px);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}
.btn-outline-primary-custom {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-outline-primary-custom:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   COVER BANNER
   ============================================================ */
.cover-banner-wrap {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: #111;
}
.cover-banner-img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-section {
  position: relative;
  height: calc(100vh - 80px);
  min-height: 560px;
  max-height: 800px;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.08);
  transition: transform 8s ease-out;
  filter: brightness(0.45);
}
.carousel-item.active .hero-bg { transform: scale(1.0); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.75) 0%,
    rgba(13,31,60,0.35) 50%,
    rgba(0,0,0,0.55) 100%
  );
}

/* Decorative shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: floatShape 6s ease-in-out infinite;
}
.hero-shape.s1 {
  width: 400px; height: 400px;
  background: var(--primary);
  top: -150px; right: -80px;
  animation-delay: 0s;
}
.hero-shape.s2 {
  width: 200px; height: 200px;
  background: #fff;
  bottom: 80px; left: 5%;
  animation-delay: 2s;
}
.hero-shape.s3 {
  width: 120px; height: 120px;
  background: var(--primary);
  top: 40%; right: 15%;
  animation-delay: 4s;
}
@keyframes floatShape {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(180deg); }
}

/* Hero Body */
.hero-body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}
.hero-row-height { min-height: inherit; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}
.hero-title span { color: var(--gold); }

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  font-weight: 300;
  line-height: 1.6;
}

/* Hero Action Buttons */
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 12px 28px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: var(--transition);
  border: 2px solid var(--primary);
}
.btn-hero-primary:hover {
  background: var(--primary-dark); border-color: var(--primary-dark);
  color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-red);
}
.btn-hero-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff;
  padding: 12px 28px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: var(--transition);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.15); border-color: #fff;
  color: #fff; transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.stat-num {
  display: block; font-size: 1.8rem; font-weight: 800; color: var(--gold);
  line-height: 1;
}
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* Hero Controls (arrows, dots) */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(201,162,39,0.7); border: none;
  color: #fff; width: 44px; height: 44px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: var(--transition); backdrop-filter: blur(4px);
}
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-arrow:hover { background: var(--primary); transform: translateY(-50%) scale(1.1); }

/* Hero Controls Bar */
.hero-controls {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; align-items: center; gap: 16px;
}
.hero-counter { color: rgba(255,255,255,0.7); font-size: 0.8rem; min-width: 40px; }
.hero-counter .cur-slide { color: var(--gold); font-weight: 700; font-size: 1.1rem; }
.hero-counter .sep { color: rgba(255,255,255,0.4); margin: 0 2px; }

.hero-progress-track {
  width: 80px; height: 3px; background: rgba(255,255,255,0.2); border-radius: 3px; overflow: hidden;
}
.hero-progress-bar {
  height: 100%; background: var(--primary); border-radius: 3px;
  width: 0; transition: width 5.5s linear;
}

.hero-dots { display: flex; gap: 6px; }
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: var(--transition); padding: 0;
}
.hero-dot.active { background: var(--primary); transform: scale(1.3); }

/* Scroll Down Indicator */
.hero-scroll-down {
  position: absolute; bottom: 20px; right: 24px; z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.7rem;
  transition: var(--transition);
}
.hero-scroll-down:hover { color: var(--gold); }
.scroll-mouse {
  width: 22px; height: 36px; border: 2px solid rgba(255,255,255,0.4);
  border-radius: 11px; position: relative;
}
.scroll-wheel {
  width: 4px; height: 8px; background: var(--primary);
  border-radius: 2px; position: absolute;
  top: 5px; left: 50%; transform: translateX(-50%);
  animation: scrollDown 1.5s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { top: 5px; opacity: 1; }
  100% { top: 18px; opacity: 0; }
}

/* Navbar padding offset */
.navbar-offset { padding-top: 68px; }
@media (max-width: 991px) { .navbar-offset { padding-top: 68px; } }

/* ============================================================
   INFO BAR
   ============================================================ */
.info-bar {
  background: linear-gradient(135deg, var(--dark) 0%, #060F1D 100%);
  border-bottom: 1px solid rgba(201,162,39,0.3);
  color: #fff;
}
.info-bar .info-icon { color: var(--gold); font-size: 1.3rem; flex-shrink: 0; }
.info-bar strong { color: #fff; }
.info-bar .small { color: rgba(255,255,255,0.55); }

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section-pad { padding: 80px 0; }
@media (max-width: 767px) { .section-pad { padding: 52px 0; } }

.section-header { margin-bottom: 48px; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.section-subtitle { color: var(--text-muted); font-size: 1rem; }

/* Divider */
.divider-line {
  width: 60px; height: 4px;
  background: var(--primary); border-radius: 2px;
  margin: 12px auto;
}
.divider-line.left { margin-left: 0; }

.divider-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0; }
.divider-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}
.divider-dots span:nth-child(2) {
  width: 24px; border-radius: 4px;
}
.divider-dots.light span { background: rgba(255,255,255,0.6); }
.divider-dots.light span:nth-child(2) { background: #fff; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.82rem; font-weight: 600;
  padding: 5px 14px; border-radius: 30px; margin-bottom: 14px;
  border: 1px solid rgba(201,162,39,0.2);
}
.about-list { list-style: none; padding: 0; margin: 0; }
.about-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
}
.about-list li:last-child { border-bottom: none; }
.about-list li i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.about-img { height: 620px; object-fit: cover; }
@media (max-width: 991.98px) {
  .about-img {
    height: auto;
    aspect-ratio: 1 / 1;
    width: 100%;
  }
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 991px) { .social-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px)  { .social-grid { grid-template-columns: repeat(2, 1fr); } }
.social-pill {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 12px; border-radius: 10px;
  font-size: .83rem; font-weight: 600; text-decoration: none;
  color: #fff; background: var(--sc, #333);
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.social-pill:hover { opacity: .85; transform: translateY(-2px); color: #fff; }

/* ============================================================
   PRODUCT CARDS (Modern · Minimal · Luxe)
   ============================================================ */
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(11,30,58,.06);
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  border: 1px solid rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.product-card::after {
  content:'';
  position:absolute; inset:0;
  border-radius:inherit;
  pointer-events:none;
  box-shadow: inset 0 0 0 1px rgba(201,162,39,0);
  transition: box-shadow .35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11,30,58,.16);
  border-color: transparent;
}
.product-card:hover::after { box-shadow: inset 0 0 0 1.5px rgba(201,162,39,.55); }

.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f8fc 0%, #e3e9f2 100%);
  aspect-ratio: 1/1;
}
.product-img-wrap::before {
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,23,41,.18) 100%);
  opacity:0;
  transition: opacity .35s ease;
  z-index: 1;
  pointer-events: none;
}
.product-card:hover .product-img-wrap::before { opacity: 1; }
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

/* Floating "view" hint on image hover */
.product-img-wrap .product-quick-view {
  position: absolute;
  bottom: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.product-card:hover .product-quick-view {
  opacity: 1; transform: translateY(0);
  background: var(--accent); color: #0A1729;
}

.badge-promo,
.badge-popular {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.68rem; font-weight: 700;
  padding: 4px 11px; border-radius: 30px;
  letter-spacing: 0.6px; text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}
.badge-promo {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(11,30,58,.25);
}
.badge-popular {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0A1729;
  box-shadow: 0 4px 12px rgba(201,162,39,.35);
}

.product-body {
  padding: 18px 18px 20px;
  display: flex; flex-direction: column; flex: 1;
}
.cat-badge {
  display: inline-block;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  margin-bottom: 8px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  position: relative;
  padding-left: 14px;
}
.cat-badge::before {
  content:'';
  position:absolute; left:0; top:50%;
  transform: translateY(-50%);
  width:8px; height:1.5px;
  background: var(--accent);
}
.product-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  letter-spacing: 0.1px;
  transition: color .25s ease;
}
.product-card:hover .product-title { color: var(--primary-dark); }
.product-brand {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.product-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 14px;
}

/* Refined CTA inside card */
.product-card .btn-primary-custom {
  background: transparent;
  color: var(--primary-dark);
  border: 1.5px solid var(--border);
  padding: 8px 14px;
  font-size: .82rem;
  letter-spacing: .3px;
  border-radius: 10px;
  font-weight: 600;
}
.product-card:hover .btn-primary-custom {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

/* ============================================================
   CATEGORY CARDS (Homepage)
   ============================================================ */
.category-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: inherit;
}
.category-icon {
  width: 64px; height: 64px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 14px; transition: var(--transition);
}
.category-card:hover .category-icon {
  background: var(--primary); color: #fff;
}
.category-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.category-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: var(--transition);
}
.category-card:hover .category-img {
  transform: scale(1.05);
}
.category-name {
  font-weight: 700; font-size: 0.88rem; color: var(--text-dark);
  margin: 0;
}

/* ============================================================
   FILTER TABS (modern pill bar)
   ============================================================ */
.filter-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(11,30,58,.05);
  width: fit-content;
  margin: 0 auto;
  max-width: 100%;
  overflow-x: auto;
}
.filter-btn {
  background: transparent; border: none;
  color: var(--text-muted); font-weight: 500; font-size: 0.82rem;
  padding: 8px 18px; border-radius: 999px;
  cursor: pointer; transition: all .25s ease;
  font-family: 'Prompt', sans-serif;
  white-space: nowrap;
  letter-spacing: .2px;
}
.filter-btn:hover { color: var(--primary-dark); background: var(--primary-light); }
.filter-btn.active {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11,30,58,.25);
}

/* Modern search bar in product list */
.products-search {
  max-width: 520px; margin: 0 auto;
  position: relative;
}
.products-search .form-control {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 12px 56px 12px 22px;
  font-size: .92rem;
  box-shadow: 0 2px 14px rgba(11,30,58,.05);
  transition: all .25s ease;
}
.products-search .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(11,30,58,.12);
}
.products-search .btn-search {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary-dark);
  color: #fff;
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: all .25s ease;
}
.products-search .btn-search:hover {
  background: var(--accent); color: #0A1729;
  transform: translateY(-50%) rotate(-8deg);
}

/* Result toolbar */
.result-toolbar {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.result-count {
  font-size: .85rem;
  color: var(--text-muted);
  letter-spacing: .2px;
}
.result-count strong { color: var(--text-dark); font-weight: 700; }

/* ============================================================
   ORDER / CHANNEL SECTION
   ============================================================ */
.order-section {
  background: linear-gradient(135deg, var(--dark) 0%, #060F1D 100%);
  position: relative;
  overflow: hidden;
}
.order-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,162,39,0.15) 0%, transparent 60%);
}
.channel-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px 20px;
  color: #fff;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.channel-card:hover {
  background: rgba(201,162,39,0.2);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.channel-card i { color: var(--gold); }
.channel-card h5 { color: #fff; font-weight: 700; margin-bottom: 8px; }
.channel-card p { color: rgba(255,255,255,0.75); font-size: 0.88rem; margin: 0; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.contact-info-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 2px 14px rgba(11,30,58,.06);
  border: 1px solid rgba(0,0,0,.04);
  height: 100%;
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.contact-info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(11,30,58,.14);
  border-color: transparent;
}
.contact-info-card:hover::before { transform: scaleX(1); }
.contact-info-card i {
  font-size: 1.4rem;
  color: var(--primary);
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  display: inline-flex !important;
  align-items: center; justify-content: center;
  margin-bottom: 14px;
  transition: all .35s ease;
}
.contact-info-card:hover i {
  background: var(--primary-dark);
  color: var(--accent);
  transform: rotate(-6deg) scale(1.05);
}
.contact-info-card h6 {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.contact-info-card p {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}
.contact-info-card p a { color: var(--text-dark); }
.contact-info-card p a:hover { color: var(--primary-dark); }

/* Contact page header / intro */
.contact-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 36px;
}
.contact-intro .eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  padding: 0 18px;
}
.contact-intro .eyebrow::before,
.contact-intro .eyebrow::after {
  content:'';
  position:absolute; top:50%;
  width:14px; height:1.5px;
  background: var(--accent);
}
.contact-intro .eyebrow::before { right: 100%; }
.contact-intro .eyebrow::after  { left:  100%; }
.contact-intro h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.contact-intro p { color: var(--text-muted); font-size: .95rem; }

/* Quick action big buttons */
.contact-cta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-dark);
  transition: all .3s ease;
  box-shadow: 0 2px 10px rgba(11,30,58,.05);
}
.contact-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(11,30,58,.14);
  color: var(--text-dark);
}
.contact-cta-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: #fff;
}
.contact-cta-icon.call { background: var(--primary-dark); }
.contact-cta-icon.line { background: #06c755; }
.contact-cta-icon.fb   { background: #1877F2; }
.contact-cta-label {
  display: block;
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-cta-value {
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .2px;
}

/* Form Styles */
.form-control, .form-select {
  border-color: var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Prompt', sans-serif;
  font-size: 0.9rem;
  padding: 10px 14px;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}
.form-label { font-weight: 600; font-size: 0.88rem; }

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex; flex-direction: column;
  height: 100%;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.article-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9; background: var(--gray-100);
}
.article-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.5s ease;
}
.article-card:hover .article-img-wrap img { transform: scale(1.06); }
.article-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-cat-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.article-title {
  font-size: 1rem; font-weight: 700; color: var(--text-dark);
  line-height: 1.45; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.article-excerpt {
  font-size: 0.84rem; color: var(--text-muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 14px; flex: 1;
}
.article-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: auto;
}
.article-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 0.85rem;
  text-decoration: none; transition: var(--transition);
}
.article-read-more:hover { color: var(--primary-dark); gap: 10px; }

/* Article Detail Page */
.article-content {
  font-size: 1rem; line-height: 1.9; color: var(--text-dark);
}
.article-content h2 {
  font-size: 1.4rem; font-weight: 800; color: var(--dark);
  margin: 2em 0 0.8em;
  padding-left: 14px; border-left: 4px solid var(--primary);
}
.article-content h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--dark);
  margin: 1.5em 0 0.6em;
}
.article-content p { margin-bottom: 1.2em; }
.article-content ul, .article-content ol {
  padding-left: 1.5em; margin-bottom: 1.2em;
}
.article-content li { margin-bottom: 0.4em; }
.article-content strong { color: var(--dark); }
.article-content table { margin-bottom: 1.5em; font-size: 0.9rem; }

/* ============================================================
   BRAND LOGOS SECTION
   ============================================================ */
.brand-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.brand-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-weight: 800; font-size: 1.05rem;
  color: var(--text-dark);
  transition: var(--transition);
  letter-spacing: 0.5px;
  min-width: 110px; text-align: center;
}
.brand-item:hover {
  border-color: var(--primary); color: var(--primary);
  box-shadow: var(--shadow-red); transform: translateY(-2px);
}

/* ============================================================
   TESTIMONIALS SLIDER
   ============================================================ */
.testimonial-slider-wrap { overflow: hidden; position: relative; padding: 8px 4px; }
.testimonial-track {
  display: flex; gap: 24px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.testimonial-slide {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
}
@media (max-width: 991px) { .testimonial-slide { flex: 0 0 calc(50% - 12px); } }
@media (max-width: 575px)  { .testimonial-slide { flex: 0 0 100%; } }

.testimonial-card {
  background: #fff; border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  height: 100%;
}
.testimonial-quote {
  font-size: 2rem; color: var(--primary); opacity: .25;
  line-height: 1; margin-bottom: 4px;
}
.testimonial-stars { color: var(--gold); font-size: 0.9rem; }
.testimonial-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; flex: 1; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-role { font-size: 0.75rem; color: var(--text-muted); }

/* Arrows */
.rev-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: all .2s;
  font-size: 1rem; color: var(--dark);
}
.rev-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.rev-prev { left: -20px; }
.rev-next { right: -20px; }
@media (max-width: 575px) { .rev-prev { left: 0; } .rev-next { right: 0; } }

/* Dots */
.rev-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.rev-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  transition: all .25s; padding: 0;
}
.rev-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ============================================================
   STATS / COUNTER BAR
   ============================================================ */
.stats-bar {
  background: var(--primary);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, transparent 60%);
}
.stat-box { text-align: center; position: relative; z-index: 1; }
.stat-box .number {
  display: block; font-size: 2.5rem; font-weight: 800; color: #fff; line-height: 1;
}
.stat-box .label { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-top: 4px; }
.stat-sep { width: 1px; height: 60px; background: rgba(255,255,255,0.25); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-section {
  background: var(--dark-footer);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-section h5, .footer-section h6 {
  color: #fff; font-weight: 700; margin-bottom: 20px;
}
.footer-logo-text { font-size: 1.3rem; font-weight: 800; color: #fff; }
.footer-logo-text span { color: var(--gold); }
.footer-desc { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.65); text-decoration: none;
  font-size: 0.88rem; transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem; margin-bottom: 10px; color: rgba(255,255,255,0.7);
}
.footer-contact li i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--transition);
  text-decoration: none; border: 1px solid rgba(255,255,255,0.08);
}
.social-btn:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.footer-tag-badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  font-size: 0.75rem; padding: 3px 10px;
  border-radius: 20px; margin: 2px 2px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.footer-tag-badge:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }

/* Visitor Stats Bar */
.visitor-stats-bar {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  align-items: center; justify-content: center;
  padding: 12px 0; font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}
.vstat-item strong { color: var(--gold); }
.vstat-sep { color: rgba(255,255,255,0.2); }
.vstat-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 4px; vertical-align: middle;
}
.online-dot { background: #22c55e; box-shadow: 0 0 6px #22c55e; animation: pulseDot 1.5s infinite; }
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Footer Bottom */
.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 14px 0;
  margin-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.floating-btns {
  position: fixed; bottom: 24px; right: 20px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 999;
}
.float-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; text-decoration: none; color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: var(--transition);
}
.float-btn:hover { transform: scale(1.12); color: #fff; }
.float-call  { background: var(--primary); }
.float-line  { background: #06c755; }
.float-call:hover  { background: var(--primary-dark); }
.float-line:hover  { background: #04a347; }

/* ============================================================
   PAGE HERO (subpages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #060F1D 100%);
  padding: 80px 0 50px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; right: -100px; top: -100px;
  width: 400px; height: 400px;
  border-radius: 50%; background: rgba(201,162,39,0.08);
}
.page-hero-title { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 800; color: #fff; }
.breadcrumb { background: transparent; padding: 0; margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; }
.breadcrumb-item.active { color: var(--primary); font-size: 0.85rem; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* ============================================================
   PDPA BANNER
   ============================================================ */
.pdpa-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(17,17,17,0.97);
  border-top: 3px solid var(--primary);
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: translateY(0);
}
.pdpa-banner.pdpa-hidden { transform: translateY(100%); opacity: 0; }
.pdpa-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.pdpa-icon { font-size: 1.6rem; color: var(--primary); flex-shrink: 0; }
.pdpa-content { flex: 1; min-width: 200px; }
.pdpa-title { font-weight: 700; color: #fff; font-size: 0.9rem; margin-bottom: 4px; }
.pdpa-text { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin: 0; }
.pdpa-link { color: var(--primary); }
.pdpa-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-pdpa-accept {
  background: var(--primary); color: #fff;
  border: none; border-radius: 8px;
  padding: 8px 20px; font-weight: 700; font-size: 0.85rem;
  cursor: pointer; font-family: 'Prompt', sans-serif;
  transition: var(--transition);
}
.btn-pdpa-accept:hover { background: var(--primary-dark); }
.btn-pdpa-reject {
  background: transparent; color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
  padding: 8px 16px; font-size: 0.82rem;
  cursor: pointer; font-family: 'Prompt', sans-serif;
  transition: var(--transition);
}
.btn-pdpa-reject:hover { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.4); }

/* ============================================================
   ADMIN STYLES
   ============================================================ */
.admin-sidebar {
  background: var(--dark); min-height: 100vh;
  width: 240px; position: fixed;
  top: 0; left: 0; z-index: 100;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.admin-content { margin-left: 240px; }
.admin-nav-link {
  color: rgba(255,255,255,0.65) !important;
  font-size: 0.88rem; padding: 10px 20px !important;
  border-radius: 0; transition: var(--transition);
  display: flex; align-items: center; gap: 10px;
  border-left: 3px solid transparent;
}
.admin-nav-link:hover, .admin-nav-link.active {
  color: #fff !important;
  background: rgba(201,162,39,0.15);
  border-left-color: var(--primary);
}
.admin-nav-link i { font-size: 1.1rem; width: 20px; }
.admin-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden;
}
.admin-stat-card {
  background: #fff; border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}
.admin-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.bg-dark-custom { background: var(--dark) !important; }
.border-primary-custom { border-color: var(--primary) !important; }

.rounded-custom { border-radius: var(--radius); }
.shadow-custom { box-shadow: var(--shadow-md); }

/* Back to top */
#backToTop {
  position: fixed; bottom: 90px; right: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--dark); color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  display: none; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; z-index: 998;
  transition: var(--transition);
}
#backToTop:hover { background: var(--primary); color: #fff; }
#backToTop.show { display: flex; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .hero-section { height: 70vh; min-height: 480px; }
  .hero-title { font-size: 1.8rem; }
  .hero-stats { gap: 12px; }
  .stat-num { font-size: 1.4rem; }
  .section-pad { padding: 52px 0; }
  .admin-sidebar { width: 60px; }
  .admin-sidebar .nav-label { display: none; }
  .admin-content { margin-left: 60px; }
}
@media (max-width: 767px) {
  .hero-section { height: 60vh; min-height: 400px; }
  .hero-title { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .btn-hero-primary, .btn-hero-outline { justify-content: center; padding: 11px 20px; }
  .hero-scroll-down { display: none; }
  .pdpa-inner { flex-direction: column; align-items: flex-start; }
  .stats-bar .stat-sep { display: none; }
  .contact-form-card { padding: 20px; }
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; }
}

/* ============================================================
   PROMO BANNER (multi-card swiper)
   ============================================================ */
.promo-banner-section { background: var(--gray-100); }
.promo-swiper-wrap { padding: 8px 0 48px; }
.promoBannerSwiper { overflow: hidden; padding: 12px 4px 44px; }

.promoBannerSwiper .swiper-slide {
  height: auto;
  display: flex;
  transition: transform .35s ease, opacity .35s ease;
  opacity: 0.7;
  transform: scale(0.94);
}
.promoBannerSwiper .swiper-slide-active,
.promoBannerSwiper .swiper-slide-duplicate-active {
  opacity: 1;
  transform: scale(1);
}

.promo-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 6px 20px rgba(11,30,58,.08);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(11,30,58,.18);
  color: var(--text-dark);
}
.promo-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-200);
}
.promo-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.promo-card:hover .promo-card-img img { transform: scale(1.06); }

.promo-card-body {
  padding: 18px 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.promo-card-title {
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-card-arrow {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--primary);
  transition: var(--transition);
  font-size: 1rem;
}
.promo-card:hover .promo-card-arrow {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Navigation arrows */
.promo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(11,30,58,.15);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
}
.promo-nav:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.promo-nav-prev { left: -8px; }
.promo-nav-next { right: -8px; }
.promo-nav.swiper-button-disabled { opacity: 0.4; cursor: default; }

/* Pagination dots */
.promoBannerSwiper .swiper-pagination {
  bottom: 0 !important;
}
.promoBannerSwiper .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: var(--border);
  opacity: 1;
  transition: var(--transition);
}
.promoBannerSwiper .swiper-pagination-bullet-active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .promo-nav-prev { left: 4px; }
  .promo-nav-next { right: 4px; }
  .promo-nav { width: 38px; height: 38px; font-size: 1rem; }
}

/* ============================================================
   CONTACT QR CODE CARD
   ============================================================ */
.qr-card {
  background: linear-gradient(180deg, #fff 0%, var(--gray-100) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px 32px;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(11,30,58,.10);
  transition: var(--transition);
  position: relative;
}
.qr-card::before {
  content: '\F4D7';
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #06c755;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(6,199,85,.35);
}
.qr-card:hover {
  box-shadow: 0 14px 40px rgba(11,30,58,.16);
  transform: translateY(-2px);
}
.qr-image {
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px;
}

/* ============================================================
   POPULAR / BESTSELLERS — editorial header
   ============================================================ */
.popular-section {
  background: linear-gradient(180deg, #fff 0%, var(--gray-100) 100%);
  position: relative;
}
.popular-section::before {
  content:'';
  position:absolute;
  top: 60px; right: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--primary-light) 0%, transparent 70%);
  pointer-events: none;
  opacity: .6;
  z-index: 0;
}
.popular-section .container { position: relative; z-index: 1; }

.popular-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.popular-header-left { max-width: 640px; }

.section-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.popular-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -.5px;
  color: var(--text-dark);
}
.popular-subtitle {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}

.popular-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--primary-dark);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  transition: all .3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.popular-view-all:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateX(2px);
}
.popular-view-all i {
  transition: transform .3s ease;
}
.popular-view-all:hover i {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .popular-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .popular-view-all { display: none; }
  .popular-section::before { display: none; }
}

/* ============================================================
   PRODUCT MATCH TAGS (search highlight)
   ============================================================ */
.product-match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.match-tag {
  display: inline-block;
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  letter-spacing: .2px;
  font-weight: 500;
}

/* ============================================================
   PRODUCTS — LEFT FILTER SIDEBAR
   ============================================================ */
.filter-sidebar {
  position: sticky;
  top: 90px;
}

.fs-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.fs-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 .85rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
}
.fs-title .bi { color: var(--gold); }

/* ---- search field ---- */
.fs-search { position: relative; }
.fs-search .form-control {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .55rem 2.6rem .55rem .8rem;
  font-size: .9rem;
}
.fs-search .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20,49,92,.12);
}
.fs-search-btn {
  position: absolute;
  top: 50%; right: 5px;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.fs-search-btn:hover { background: var(--gold); color: var(--dark); }

.fs-clear-inline {
  display: inline-block;
  margin-top: .6rem;
  font-size: .8rem;
  color: var(--text-muted);
  text-decoration: none;
}
.fs-clear-inline:hover { color: var(--primary); }

/* ---- filter lists ---- */
.fs-list { list-style: none; margin: 0; padding: 0; }
.fs-list li + li { margin-top: 2px; }
.fs-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem .7rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  line-height: 1.4;
}
.fs-list a > span:first-child {
  display: flex; align-items: center; min-width: 0;
}
.fs-list a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.fs-list a.active {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}
.fs-list a.active .bi { color: var(--gold); }

.fs-count {
  flex: 0 0 auto;
  min-width: 24px;
  text-align: center;
  font-size: .72rem;
  font-weight: 600;
  padding: .1rem .45rem;
  border-radius: 999px;
  background: var(--gray-200);
  color: var(--text-muted);
}
.fs-list a.active .fs-count { background: var(--gold); color: var(--dark); }
.fs-list a:hover .fs-count  { background: var(--white); }

/* ---- sidebar CTA ---- */
.fs-cta {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-footer) 100%);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  color: var(--white);
}
.fs-cta .bi { color: var(--gold); }
.fs-cta-btn {
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  border: none;
}
.fs-cta-btn:hover { background: var(--white); color: var(--dark); }

/* ---- active filter chips ---- */
.active-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}
.active-chip:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.active-chip .bi { font-size: .9rem; opacity: .7; }

@media (max-width: 991.98px) {
  .filter-sidebar { position: static; }
}

/* ============================================================
   PRODUCT DETAIL (rich text)
   ============================================================ */
.product-detail-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.product-detail-heading {
  margin: 0;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-footer) 100%);
}
.product-detail-heading .bi { color: var(--gold); }

.product-detail-body { padding: 1.5rem; }
.product-detail-body h2,
.product-detail-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 .9rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gold);
}
.product-detail-body h4,
.product-detail-body h5 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.6rem 0 .7rem;
}
.product-detail-body p {
  font-size: .95rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: .9rem;
}
.product-detail-body ul,
.product-detail-body ol { padding-left: 1.1rem; margin-bottom: 1rem; }
.product-detail-body li {
  font-size: .95rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: .3rem;
}
.product-detail-body ul { list-style: none; padding-left: 0; }
.product-detail-body ul li { position: relative; padding-left: 1.5rem; }
.product-detail-body ul li::before {
  content: "";
  position: absolute;
  left: .35rem; top: .72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.product-detail-body em { color: var(--text-muted); font-size: .9rem; }
.product-detail-body table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.product-detail-body th,
.product-detail-body td { border: 1px solid var(--border); padding: .55rem .75rem; font-size: .9rem; }
.product-detail-body th { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }

/* ---- article keyword badge / lead border (navy+gold) ---- */
.article-kw-badge {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border);
  font-weight: 500;
}
.article-lead-border { border-color: var(--gold) !important; }

/* ============================================================
   HOME — PRODUCT SHOWCASE (overlay style)
   คลาสแยกจาก .product-card เดิม เพราะหน้า products.php ยังใช้ตัวเดิมอยู่
   ============================================================ */

/* ---- แถบกรอง: เส้นใต้ทอง แทนปุ่มเม็ดยาในกล่อง ---- */
.pfilter-wrap {
  margin: 0 0 2rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.pfilter-wrap::-webkit-scrollbar { display: none; }
.pfilter {
  display: flex;
  gap: .35rem;
  min-width: max-content;
  padding-bottom: 1px;
  margin: 0 auto;
}
.pfilter .filter-btn {
  position: relative;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  padding: .7rem 1rem 1rem;
  border-radius: 0;
  white-space: nowrap;
  transition: color .2s ease;
}
.pfilter .filter-btn::after {
  content: '';
  position: absolute;
  left: .8rem; right: .8rem; bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.pfilter .filter-btn:hover { color: var(--primary); background: transparent; }
.pfilter .filter-btn.active {
  color: var(--primary-dark);
  font-weight: 700;
  background: transparent;
}
.pfilter .filter-btn.active::after { transform: scaleX(1); }
.pfilter-count {
  display: inline-block;
  margin-left: .3rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--gray-200);
  border-radius: 999px;
  padding: .05rem .42rem;
  vertical-align: 1px;
}
.pfilter .filter-btn.active .pfilter-count { background: var(--gold); color: var(--dark); }

/* ---- การ์ดสินค้า: รูปเต็มใบ ข้อความทับบนรูป ---- */
.pcard {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.pcard-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--gray-100);
}
.pcard-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s ease;
}
.pcard:hover .pcard-media img { transform: scale(1.07); }

/* เงาบาง ๆ ทั้งใบ กันรูปสว่างจัดจนขอบการ์ดจม */
.pcard-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(6,15,29,.35) 0%,
    rgba(6,15,29,.08) 35%,
    rgba(6,15,29,0) 60%);
  pointer-events: none;
}
/* กรอบทองบางตอน hover */
.pcard::after {
  content: '';
  position: absolute; inset: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: border-color .3s ease;
  pointer-events: none;
}
.pcard:hover::after { border-color: var(--gold); }

.pcard-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 3rem 1.05rem 1.1rem;
  z-index: 2;
  /* ไล่เฉดอยู่บน caption เอง → สูงตามจำนวนบรรทัดของชื่อสินค้าเสมอ */
  background: linear-gradient(to top,
    rgba(6,15,29,.96) 0%,
    rgba(6,15,29,.90) 40%,
    rgba(6,15,29,.60) 70%,
    rgba(6,15,29,0) 100%);
}
.pcard-cat {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .6px;
  color: var(--gold);
  margin-bottom: .3rem;
}
.pcard-title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-flag {
  position: absolute;
  top: .7rem; left: .7rem;
  z-index: 3;
  background: var(--gold);
  color: var(--dark);
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 999px;
}
/* ปุ่มลูกศรมุมขวาบน — โผล่ตอน hover */
.pcard-go {
  position: absolute;
  top: .7rem; right: .7rem;
  z-index: 3;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.pcard:hover .pcard-go { opacity: 1; transform: translateX(0); }

@media (max-width: 575.98px) {
  .pcard-title { font-size: .86rem; }
  .pcard-caption { padding: .8rem .8rem .9rem; }
  .pcard-go { display: none; }
}

/* ============================================================
   PRODUCTS PAGE — LIST ROW STYLE
   แนวนอนแบบรายการ เหมาะกับหน้าที่มี sidebar และมีคำบรรยายสินค้าจริง
   ============================================================ */
.plist { display: flex; flex-direction: column; gap: .85rem; }

.plist-row {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem;
  text-decoration: none;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
/* แถบทองด้านซ้าย งอกออกมาตอน hover */
.plist-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.plist-row:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}
.plist-row:hover::before { transform: scaleY(1); }

/* ---- รูป ---- */
.plist-media {
  position: relative;
  flex: 0 0 168px;
  width: 168px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-100);
}
.plist-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.plist-row:hover .plist-media img { transform: scale(1.06); }

.plist-flag {
  position: absolute;
  top: .4rem; left: .4rem;
  background: var(--gold);
  color: var(--dark);
  font-size: .68rem;
  font-weight: 700;
  padding: .18rem .55rem;
  border-radius: 999px;
}

/* ---- เนื้อหา ---- */
.plist-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .2rem 0;
}
.plist-cat {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--gold);
  margin-bottom: .25rem;
}
.plist-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.45;
  margin: 0 0 .4rem;
}
.plist-desc {
  font-size: .875rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 .55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.plist-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.plist-tag {
  font-size: .73rem;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .12rem .55rem;
  white-space: nowrap;
}

/* ---- คอลัมน์ขวา ---- */
.plist-action {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: .6rem;
  padding-left: .5rem;
  border-left: 1px dashed var(--border);
  padding-right: .3rem;
  min-width: 158px;
}
.plist-brand { font-size: .76rem; color: var(--text-muted); white-space: nowrap; }
.plist-btn {
  display: inline-flex;
  align-items: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: .42rem .95rem;
  white-space: nowrap;
  transition: var(--transition);
}
.plist-row:hover .plist-btn { background: var(--primary); color: #fff; }
.plist-row:hover .plist-btn i { transform: translateX(3px); }
.plist-btn i { transition: transform .25s ease; }

/* ---- จอเล็ก: คงแนวนอนแต่ย่อรูป แล้วดันปุ่มลงบรรทัดล่าง
       (ถ้าวางเป็นแนวตั้งทั้งใบ รูปจะสูงมาก 20 รายการเลื่อนยาวเกินไป) ---- */
@media (max-width: 767.98px) {
  .plist-row { flex-wrap: wrap; gap: .8rem; padding: .7rem; }
  .plist-media { flex: 0 0 104px; width: 104px; aspect-ratio: 1 / 1; }
  .plist-body { flex: 1 1 0; }
  .plist-title { font-size: .92rem; margin-bottom: .3rem; }
  .plist-desc { font-size: .8rem; line-height: 1.6; margin-bottom: .4rem; }
  .plist-tag { font-size: .68rem; }
  .plist-action {
    flex: 1 0 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-left: none;
    border-top: 1px dashed var(--border);
    padding: .6rem 0 0;
    min-width: 0;
  }
  .plist-btn { padding: .35rem .8rem; font-size: .82rem; }
}
