/* ═══════════════════════════════════════════════════════════
   TAC DESIGN SYSTEM — SHARED COMPONENTS
   Trust bar, navbar, breadcrumb, cards, footer, floating WA
═══════════════════════════════════════════════════════════ */

/* ── TRUST BAR ─────────────────────────────────────────── */
.trust-bar {
  background: var(--bg1);
  border-bottom: .5px solid var(--br);
  padding: 0 24px; overflow: hidden;
}
.trust-bar-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center;
  gap: 28px; height: 38px;
}
.trust-item {
  display: flex; align-items: center;
  gap: 6px; font-size: 11.5px; color: var(--t2);
  white-space: nowrap; flex-shrink: 0;
}
.trust-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
}
.trust-dot-g { background: var(--price); }
.trust-dot-a { background: var(--gold); }
.trust-bar-right {
  margin-left: auto; font-size: 11px;
  color: var(--t3); flex-shrink: 0;
}

/* ── NAVBAR ────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: .5px solid var(--br);
  transition: box-shadow .3s, transform .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px; height: 56px;
  display: flex; align-items: center; gap: 6px;
}
.nav-logo {
  font-family: var(--font-d);
  font-size: 16px; font-weight: 400;
  color: var(--t1); margin-right: 10px;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 30px; height: 30px; border-radius: 6px;
  object-fit: contain; flex-shrink: 0;
}
.nav-logo-mark {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--t1);
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 13px; height: 13px; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link,
.nl {
  font-size: 13.5px; color: var(--t2);
  padding: 6px 10px; border-radius: 6px;
  cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
  transition: background .15s, color .15s;
  border: none; background: none; font-family: var(--font-b);
}
.nav-link:hover,
.nl:hover { background: var(--bg2); color: var(--t1); }
.nav-link-shop,
.nl-shop { font-weight: 500; color: var(--t1); }
.nl-active { background: var(--bg2); color: var(--t1); font-weight: 500; }
.nav-link-destiny,
.nl-destiny {
  font-weight: 500; color: var(--gold-dim);
  background: var(--gold-l) !important;
}
.nav-link-destiny:hover,
.nl-destiny:hover { background: #f0e8c8 !important; }
.nav-caret {
  width: 10px; height: 10px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; opacity: .5;
}
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-search {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--t3);
  background: var(--bg2); border: .5px solid var(--br);
  border-radius: 7px; padding: 5px 11px;
  cursor: pointer; min-width: 136px;
  font-family: var(--font-b);
}
.nav-search svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.nav-cart {
  position: relative;
  width: 38px; height: 38px;
  background: transparent; border: .5px solid var(--br);
  border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.nav-cart:hover { background: var(--bg2); border-color: var(--br-md); }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 16px; height: 16px; border-radius: 8px;
  background: var(--gold); color: #fff;
  font-size: 9px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1;
}
.nav-account {
  position: relative;
  width: 38px; height: 38px;
  background: transparent; border: .5px solid var(--br);
  border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
  text-decoration: none;
}
.nav-account:hover { background: var(--bg2); border-color: var(--br-md); }

/* ── NAV DROPDOWNS ─────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  display: none; position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--bg0); border: .5px solid var(--br);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: 20px; min-width: 420px; z-index: 110;
  margin-top: 4px;
}
.nav-dropdown:hover .nav-dropdown-panel { display: flex; gap: 24px; }
.nav-dropdown-panel::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.nav-dd-col { min-width: 120px; }
.nav-dd-heading {
  font-size: 10.5px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--t3); margin-bottom: 10px;
}
.nav-dd-link {
  display: block; font-size: 13px; color: var(--t2);
  padding: 5px 0; transition: color .15s; text-decoration: none;
}
.nav-dd-link:hover { color: var(--t1); }
.nav-dd-link-bold { font-weight: 500; color: var(--t1); }
.nav-dd-link-gold { color: var(--gold-dim); font-weight: 500; }
.nav-dd-link-gold:hover { color: var(--gold); }

/* ── HAMBURGER BUTTON (mobile only) ───────────────────── */
.nav-hamburger {
  display: none;
  width: 34px; height: 34px;
  background: transparent; border: .5px solid var(--br);
  border-radius: 7px; cursor: pointer;
  align-items: center; justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--bg2); }
.nav-hamburger svg { width: 18px; height: 18px; stroke: var(--t1); }

/* ── MOBILE DRAWER ────────────────────────────────────── */
.mob-drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.4); z-index: 9998;
  opacity: 0; transition: opacity .25s;
}
.mob-drawer-overlay.open { display: block; opacity: 1; }

.mob-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 300px; max-width: 85vw;
  background: var(--bg0); z-index: 9999;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mob-drawer.open { transform: translateX(0); }

.mob-drawer-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 20px; border-bottom: .5px solid var(--br);
  flex-shrink: 0;
}
.mob-drawer-title {
  font-family: var(--font-d);
  font-size: 16px; font-weight: 400; color: var(--t1);
}
.mob-drawer-close {
  width: 32px; height: 32px;
  font-size: 22px; line-height: 1;
  background: none; border: none; cursor: pointer;
  color: var(--t2); display: flex;
  align-items: center; justify-content: center;
  border-radius: 6px; transition: background .15s;
}
.mob-drawer-close:hover { background: var(--bg2); }

.mob-drawer-body { padding: 8px 0; flex: 1; }

/* Accordion */
.mob-accordion { border-bottom: .5px solid var(--br); }
.mob-accordion-toggle {
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%; padding: 14px 20px;
  font-size: 14px; font-weight: 500;
  font-family: var(--font-b);
  color: var(--t1); background: none;
  border: none; cursor: pointer;
  transition: background .15s;
}
.mob-accordion-toggle:hover { background: var(--bg2); }
.mob-accordion-chevron {
  width: 10px; height: 10px;
  transition: transform .25s; flex-shrink: 0;
}
.mob-accordion.open .mob-accordion-chevron { transform: rotate(180deg); }

.mob-accordion-panel {
  display: none; padding: 0 20px 14px;
}
.mob-accordion.open .mob-accordion-panel { display: block; }

.mob-dd-heading {
  font-size: 10px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--t3); margin-bottom: 6px; margin-top: 4px;
}
.mob-dd-link {
  display: block; font-size: 13.5px; color: var(--t2);
  padding: 6px 0; transition: color .15s;
}
.mob-dd-link:hover { color: var(--t1); }
.mob-dd-link-bold { font-weight: 500; color: var(--t1); }

/* Direct drawer links */
.mob-drawer-link {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; font-size: 14px;
  font-weight: 500; color: var(--t1);
  border-bottom: .5px solid var(--br);
  transition: background .15s;
}
.mob-drawer-link:hover { background: var(--bg2); }
.mob-drawer-link svg { flex-shrink: 0; }
.mob-drawer-link-gold { color: var(--gold-dim); }

/* Mega menu — wider variant for Shop dropdown */
.nav-dropdown-panel.nav-mega { min-width: 680px; left: 0; transform: none; }
.nav-mega-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 1024px) {
  .nav-dropdown-panel.nav-mega { min-width: 480px; }
  .nav-mega-grid { grid-template-columns: 1fr 1fr; }
}

/* Navbar hide on scroll */
.navbar--hidden { transform: translateY(-100%); pointer-events: none; }

/* Mobile nav tap feedback */
.mobile-nav-item:active { transform: scale(.92); }

/* ── BREADCRUMB ────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--bg0);
  border-bottom: .5px solid var(--br);
  padding: 0 24px;
}
.breadcrumb {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center;
  gap: 6px; height: 40px;
  font-size: 12px; color: var(--t3);
}
.breadcrumb a { color: var(--t2); transition: color .15s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { opacity: .4; }
.breadcrumb-current { color: var(--t1); font-weight: 500; }

/* ── PRODUCT CARD (amulet-card) ────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.p-card {
  background: var(--bg0);
  border: .5px solid var(--br);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  cursor: pointer;
  display: flex; flex-direction: column; height: 100%;
}
.p-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.p-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg2);
}
.p-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.p-card:hover .p-card-img img { transform: scale(1.04); }
.p-card-badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; gap: 4px; flex-wrap: wrap; z-index: 2;
}
.badge {
  font-size: 10px; font-weight: 500;
  padding: 3px 7px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 3px;
  line-height: 1;
}
.badge-cert { background: var(--gold-l); color: var(--gold-dim); }
.badge-new  { background: #F0FDF4; color: #166534; }
.badge-sold { background: var(--sold-bg); color: var(--sold); }
.badge-ancient { background: #FEF9C3; color: #854D0E; }
.p-card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.p-card-meta {
  font-size: 10.5px; color: var(--t3);
  margin-bottom: 4px; display: flex; gap: 6px;
}
.p-card-name {
  font-size: 13.5px; font-weight: 500;
  color: var(--t1); line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.p-card-monk {
  font-size: 11.5px; color: var(--t2);
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 1;
  -webkit-box-orient: vertical; overflow: hidden;
}
.p-card-foot {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
  margin-top: auto;
}
.p-card-price {
  font-size: 14px; font-weight: 600;
  color: var(--price);
}
.p-card-price-sold {
  font-size: 12px; font-weight: 600;
  color: var(--sold);
}
.p-card-price-group { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.p-card-price--sale { color: var(--gold); font-weight: 600; }
.p-card-price-strike { font-size: 12px; color: var(--discount-strike); text-decoration: line-through; font-weight: 400; }
/* ═══════════════════════════════════════════════════════════
   Shared discount pill — single source of truth for ALL surfaces
   (listing card, detail page price block, sidebar).
   Two variants: --percent (Gloock uppercase) + --label (Lora italic).
═══════════════════════════════════════════════════════════ */
/* Pin all visual properties to specific values so context-wide rules
   (e.g. `.sidebar-price span`, `.something > span`) cannot override. */
span.tac-discount-pill,
.tac-discount-pill {
  display: inline-block !important;
  background: var(--discount) !important;
  color: #FAF5E4 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  line-height: 14px !important;
  height: 20px !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.15) !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}
.tac-discount-pill--percent {
  font-family: var(--font-d); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
}
.tac-discount-pill--label {
  font-family: var(--font-i); font-style: italic; font-weight: 500;
  letter-spacing: .01em;
}
/* Card-specific positioning overrides */
.p-card-discount-flag {
  position: absolute; top: 8px; right: 8px; z-index: 2;
}
.p-card-discount-label {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  max-width: 65%;
  text-overflow: ellipsis; overflow: hidden;
}
.p-card-wa {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--wa); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.p-card-wa:hover { background: var(--wa-dark); }
.p-card-wa svg { width: 14px; height: 14px; fill: #fff; }

/* ── MONK CARD ─────────────────────────────────────────── */
.monk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.m-card {
  display: flex; gap: 14px;
  padding: 14px; border-radius: var(--r-lg);
  border: .5px solid var(--br);
  background: var(--bg0);
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.m-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}
.m-card-portrait {
  width: 72px; height: 96px;
  border-radius: var(--r);
  overflow: hidden; flex-shrink: 0;
  background: var(--bg2);
}
.m-card-portrait img {
  width: 100%; height: 100%; object-fit: cover;
}
.m-card-ph {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; background: var(--bg2);
}
.m-card-info { flex: 1; min-width: 0; }
.m-card-name {
  font-size: 14px; font-weight: 500;
  color: var(--t1); margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-card-thai {
  font-size: 11px; color: var(--t3);
  margin-bottom: 6px;
}
.m-card-temple {
  font-size: 11.5px; color: var(--t2);
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-card-count {
  font-size: 10.5px; color: var(--t3);
}

/* ── TEMPLE CARD ───────────────────────────────────────── */
.temple-card {
  border-radius: var(--r-lg);
  border: .5px solid var(--br);
  overflow: hidden; background: var(--bg0);
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.temple-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}
.temple-card-img {
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--bg2);
}
.temple-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.temple-card-body { padding: 14px; }
.temple-card-name {
  font-size: 14px; font-weight: 500;
  color: var(--t1); margin-bottom: 4px;
}
.temple-card-province {
  font-size: 12px; color: var(--t2);
}

/* ── ARTICLE CARD ──────────────────────────────────────── */
.article-card {
  border-radius: var(--r-lg);
  border: .5px solid var(--br);
  overflow: hidden; background: var(--bg0);
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.article-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}
.article-card-img {
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--bg2);
}
.article-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.article-card-body { padding: 14px; }
.article-card-cat {
  font-size: 10.5px; font-weight: 500;
  color: var(--gold); text-transform: uppercase;
  letter-spacing: .04em; margin-bottom: 4px;
}
.article-card-title {
  font-size: 14px; font-weight: 500;
  color: var(--t1); line-height: 1.35;
}

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--bg1);
  border-top: .5px solid var(--br);
  padding: 56px 0 24px;
}
.footer-trust {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-bottom: 36px; margin-bottom: 36px;
  border-bottom: .5px solid var(--br);
}
.footer-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--t2);
  background: var(--bg0); border: .5px solid var(--br);
  border-radius: 6px; padding: 5px 11px;
}
.footer-badge svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 36px;
}
.footer-brand-name {
  font-family: var(--font-d);
  font-size: 16px; color: var(--t1);
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.footer-brand-desc {
  font-size: 12.5px; color: var(--t2);
  line-height: 1.65; margin-bottom: 16px; max-width: 210px;
}
.footer-wa {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--wa); color: #fff;
  font-size: 12.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 7px;
  border: none; cursor: pointer;
  font-family: var(--font-b);
  transition: background .15s;
}
.footer-wa:hover { background: var(--wa-dark); }
.footer-wa svg { width: 13px; height: 13px; fill: #fff; flex-shrink: 0; }
.footer-col-title {
  font-size: 11.5px; font-weight: 500;
  color: var(--t1); margin-bottom: 12px;
}
.footer-link {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--t2);
  padding: 3px 0; cursor: pointer; line-height: 1.5;
  transition: color .15s;
}
.footer-link:hover { color: var(--t1); }
.footer-link svg {
  width: 11px; height: 11px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; opacity: .45;
}
.footer-link-hi { font-weight: 500; color: var(--t1); }
.footer-link-new {
  display: inline-block; font-size: 9px; font-weight: 600;
  padding: 1px 5px; background: #F0FDF4; color: #166534;
  border-radius: 3px; margin-left: 4px; vertical-align: middle;
}
.footer-col-sub {
  font-size: 10.5px; font-weight: 500;
  color: var(--t1); margin: 14px 0 8px;
}
.footer-social { display: flex; gap: 6px; margin-top: 12px; }
.soc-btn {
  width: 30px; height: 30px; border-radius: 6px;
  border: .5px solid var(--br);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .15s;
}
.soc-btn:hover { transform: translateY(-1px); }
.soc-fb { background: #1877F2; }
.soc-ca { background: #F74040; }
.soc-yt { background: #FF0000; }
.soc-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.soc-tg { background: #229ED9; }
.soc-btn svg { width: 14px; height: 14px; fill: #fff; }

/* ============= Telegram CTAs ============= */

/* Footer brand-column compact CTA (matches .footer-wa pattern) */
.footer-tg {
	display: inline-flex; align-items: center; gap: 7px;
	margin-top: 8px;
	padding: 8px 12px;
	background: #229ED9; color: #fff;
	border-radius: 6px;
	font-size: 12px; font-weight: 500;
	text-decoration: none;
	transition: background 0.15s;
}
.footer-tg:hover { background: #1c84b8; color: #fff; }
.footer-tg svg { flex-shrink: 0; fill: #fff; }

/* Mini inline CTA — single line, used at end of posts inside callout */
.tac-tg-mini {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 14px;
	background: #f0f9fd; color: #1c84b8;
	border: 1px solid #c0e2f0;
	border-radius: 6px;
	font-size: 13px; font-weight: 500;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
}
.tac-tg-mini:hover {
	background: #e4f2fa; border-color: #229ED9; color: #1c84b8;
}
.tac-tg-mini svg { flex-shrink: 0; fill: #229ED9; }

/* Full inline card — for /learn/ hero and amulet single page */
.tac-tg-cta {
	display: flex; align-items: center; gap: 16px;
	padding: 18px 22px;
	background: linear-gradient(135deg, #229ED9 0%, #1c84b8 100%);
	border-radius: 10px;
	color: #fff;
	margin: 28px 0;
	box-shadow: 0 2px 8px rgba(34, 158, 217, 0.18);
}
.tac-tg-cta__icon {
	flex-shrink: 0;
	width: 56px; height: 56px;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
}
.tac-tg-cta__body { flex: 1; min-width: 0; }
.tac-tg-cta__h {
	font-size: 17px; font-weight: 600; margin: 0 0 4px; color: #fff; line-height: 1.2;
}
.tac-tg-cta__sub {
	font-size: 13px; line-height: 1.5;
	margin: 0; color: rgba(255, 255, 255, 0.92);
}
.tac-tg-cta__btn {
	flex-shrink: 0;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 18px;
	background: #fff; color: #1c84b8;
	border-radius: 6px;
	font-size: 13px; font-weight: 600;
	text-decoration: none;
	transition: background 0.15s, transform 0.15s;
	white-space: nowrap;
}
.tac-tg-cta__btn:hover {
	background: #f0f9fd; color: #1c84b8;
	transform: translateY(-1px);
}

/* Mobile responsive — stack vertically */
@media (max-width: 600px) {
	.tac-tg-cta {
		flex-direction: column; align-items: stretch; text-align: center;
		padding: 18px 16px; gap: 12px;
	}
	.tac-tg-cta__icon { margin: 0 auto; }
	.tac-tg-cta__btn { justify-content: center; width: 100%; }
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  padding-top: 20px; border-top: .5px solid var(--br);
}
.footer-copy { font-size: 11.5px; color: var(--t3); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 11.5px; color: var(--t3); transition: color .15s; }
.footer-legal a:hover { color: var(--t2); }

/* ── GHOST BUTTON (shared: monk, temple, history) ─────── */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--t2); font-size: 13.5px; padding: 10px 16px;
  border-radius: var(--r-lg); border: .5px solid var(--br-md);
  background: transparent; transition: background .15s, color .15s;
  cursor: pointer; font-family: var(--font-b);
}
.btn-ghost:hover { background: var(--bg2); color: var(--t1); }
.btn-ghost svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ── IDENTITY STRIP (shared: monk, temple, history) ───── */
.id-item { font-size: 13px; color: var(--t2); display: flex; flex-direction: column; gap: 2px; padding: 0 16px; }
.id-item:first-child { padding-left: 0; }
.id-label { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--t3); }
.id-value { font-weight: 500; color: var(--t1); font-size: 13.5px; }
.id-value-gold { color: var(--gold-dim); }
.id-value-link { color: var(--t1); border-bottom: 1px solid var(--br-md); transition: color .15s; }
.id-value-link:hover { color: var(--gold); }
.id-div { width: .5px; background: var(--br); align-self: stretch; margin: 4px 0; }

/* ── FAQ ACCORDION (shared: product, history) ─────────── */
.faq-wrap { margin: 28px 0; }
.faq-section-title { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--t3); text-transform: uppercase; margin-bottom: 14px; }
.faq-item { border: 1px solid var(--br); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 8px; }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: 14px; font-weight: 500; color: var(--t1); cursor: pointer; background: var(--bg0); gap: 12px; transition: background .15s; border: none; width: 100%; text-align: left; font-family: var(--font-b); }
.faq-q:hover { background: var(--bg1); }
.faq-q svg { width: 16px; height: 16px; color: var(--t3); flex-shrink: 0; transition: transform .2s; stroke: currentColor; fill: none; stroke-width: 2; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 18px 16px; font-size: 13.5px; color: var(--t2); line-height: 1.75; border-top: 1px solid var(--br); padding-top: 14px; }
.faq-item.open .faq-a { display: block; }
.faq-readmore { display: inline-block; color: var(--gold); font-size: 12.5px; margin-top: 8px; text-decoration: none; font-weight: 500; }
.faq-readmore:hover { text-decoration: underline; }

/* ── FLOATING WHATSAPP ─────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--wa); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.40);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37,211,102,.50);
}
.wa-float svg { width: 26px; height: 26px; fill: #fff; }

/* ── MOBILE BOTTOM NAV ─────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9990;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: .5px solid var(--br);
  padding: 6px 0 env(safe-area-inset-bottom, 4px);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.mobile-nav-inner {
  display: flex; justify-content: space-around;
  align-items: center; max-width: 400px; margin: 0 auto;
}
.mobile-nav-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  font-size: 9.5px; color: var(--t3);
  padding: 4px 8px; border: none; background: none;
  cursor: pointer; text-decoration: none;
}
.mobile-nav-item.active { color: var(--t1); }
.mobile-nav-item svg { width: 20px; height: 20px; }
.mobile-nav-chatbot {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #C8A96E 0%, #b4955a 100%);
  border: none;
  display: flex; align-items: center; justify-content: center;
  margin-top: -18px; box-shadow: 0 2px 8px rgba(200,169,110,.45);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.mobile-nav-chatbot:active { transform: scale(.92); }
.mobile-nav-chatbot svg { width: 22px; height: 22px; fill: #fff; }

/* ── RESPONSIVE — identity strip ──────────────────────── */
@media (max-width: 860px) {
  .id-item { padding: 0 10px; }
}
@media (max-width: 600px) {
  .id-div { display: none; }
  .id-item { padding: 0; flex-direction: row; gap: 6px; align-items: center; }
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .monk-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .monk-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .trust-bar-right { display: none; }
  .nav-link-destiny { display: none; }
  .mobile-nav { display: block; }
  .wa-float { display: none; }
  #cbw-fab, #cbw-tooltip { display: none !important; } /* Chatbot FAB hidden — use bottom nav chatbot button */
  body { padding-bottom: 64px; } /* Space for mobile nav */

  /* Navbar mobile adjustments */
  .nav-inner { padding: 0 12px; gap: 4px; }
  .nav-logo { font-size: 14px; min-width: 0; flex-shrink: 0; }
  .nav-logo-text { display: none; }
  .nav-right { gap: 6px; flex-shrink: 0; margin-left: auto; }
  .nav-right .btn-wa { display: none; }
  .nav-right .btn-tg { display: none; }
  .nav-search { display: flex; min-width: 0; padding: 5px 8px; border-radius: 7px; }
  .nav-search span { display: none; }
  .footer-wa { display: none; }
  .nav-cart, .nav-account { width: 34px; height: 34px; flex-shrink: 0; }
  .nav-hamburger { display: flex; }

  /* Mobile dropdowns — tap to toggle instead of hover */
  .nav-dropdown:hover .nav-dropdown-panel { display: none; }
  .nav-dropdown-panel {
    display: none !important;
    position: fixed; top: 56px; left: 0; right: 0;
    transform: none; min-width: 0; width: 100%;
    border-radius: 0; border-left: none; border-right: none;
    margin-top: 0; max-height: 70vh; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
  }
  .nav-dropdown.mob-open .nav-dropdown-panel { display: flex !important; }
  .nav-mega-grid { grid-template-columns: 1fr; gap: 16px; }
  .nav-dropdown-panel.nav-mega { min-width: 0; left: 0; }

  /* Section spacing mobile */
  .section { padding: 40px 0; }
  .section-sm { padding: 28px 0; }
  .section-title { font-size: 20px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .container { padding: 0 16px; }
}

/* === Card CTA Buttons === */
.card-cta {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: center;
    font-family: var(--font-b);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--r);
    text-decoration: none;
    transition: all 0.2s;
}

.card-cta.cta-buy {
    background: var(--gold);
    color: var(--bg0);
}

.card-cta.cta-buy:hover {
    background: var(--gold-dim);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.2);
}

.card-badge.badge-sold {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: center;
    background: var(--bg2);
    color: var(--sold);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--r);
}

.card-price {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--price);
    margin: 8px 0;
}

.card-price-request {
    color: var(--t2);
    font-size: 14px;
    font-weight: 400;
}

/* === BUG-021: Mobile mega menu fixes === */
@media (max-width: 1024px) {
  .mega-menu {
    width: 100vw;
    left: 0;
    right: 0;
    max-width: none;
  }
  .mega-menu .menu-content {
    padding: 20px;
    display: block;
  }
  .mega-menu .menu-col {
    width: 100%;
    margin-bottom: 24px;
  }
  .mega-menu .menu-col:last-child {
    margin-bottom: 0;
  }
}

/* === Buy Now button on amulet cards === */
.p-card-buy {
  font-size: 11.5px; font-weight: 600;
  font-family: var(--font-b);
  color: var(--gold-dim); background: var(--gold-l);
  border: none; border-radius: 6px;
  padding: 5px 12px; cursor: pointer;
  white-space: nowrap; transition: background .15s, color .15s;
}
.p-card-buy:hover { background: var(--gold); color: #fff; }
.p-card-sold-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: rgba(28,25,23,.45);
  display: flex; align-items: center; justify-content: center;
}
.p-card-sold-overlay span {
  font-size: 14px; font-weight: 700; letter-spacing: .08em;
  color: #fff; text-transform: uppercase;
}

/* === Search Overlay === */
.search-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(28,25,23,.6); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 80px;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay-inner {
  width: 100%; max-width: 640px;
  background: var(--bg1); border-radius: var(--r-xl);
  box-shadow: 0 24px 48px rgba(0,0,0,.25);
  overflow: hidden; max-height: calc(100vh - 120px);
  display: flex; flex-direction: column;
}
.search-header { padding: 16px 20px; border-bottom: 1px solid var(--br); }
.search-input-wrap {
  display: flex; align-items: center; gap: 10px;
}
.search-icon {
  width: 18px; height: 18px; stroke: var(--t3); fill: none;
  stroke-width: 2; flex-shrink: 0;
}
.search-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 16px; color: var(--t1); font-family: var(--font-b);
}
.search-input::placeholder { color: var(--t3); }
.search-close {
  background: none; border: none; font-size: 24px; color: var(--t3);
  cursor: pointer; padding: 0 4px; line-height: 1;
}
.search-close:hover { color: var(--t1); }
.search-overlay .search-results {
  overflow-y: auto; padding: 12px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  min-height: 0; align-content: start;
}
.search-overlay .search-results:empty { display: none; }
.search-overlay .search-results .p-card { margin: 0; height: auto; overflow: hidden; position: relative; }
.search-overlay .search-results .p-card-img { aspect-ratio: 1; height: auto; overflow: hidden; }
.search-overlay .search-results .p-card-img img { width: 100% !important; height: 100% !important; max-height: none !important; object-fit: cover !important; }
.search-overlay .search-results .p-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 65%, transparent 100%);
  padding: 48px 12px 12px;
}
.search-overlay .search-results .p-card-meta { color: rgba(255,255,255,.6) !important; }
.search-overlay .search-results .p-card-name { color: #fff !important; }
.search-overlay .search-results .p-card-monk { color: rgba(255,255,255,.75) !important; }
.search-overlay .search-results .p-card-price { color: #D4AF37 !important; }
.search-overlay .search-results .p-card-price-sold { color: #ef4444 !important; }
.search-overlay .search-results .p-card-buy { display: none !important; }
.search-overlay .search-results .p-card-sold-overlay { display: none; }
.search-loading, .search-empty {
  grid-column: 1 / -1; text-align: center;
  padding: 40px 20px; color: var(--t3); font-size: 14px;
}
.search-empty a { color: var(--gold); text-decoration: none; }
.search-empty a:hover { text-decoration: underline; }
.search-footer {
  padding: 12px 20px; border-top: 1px solid var(--br); text-align: center;
}
.search-view-all {
  font-size: 13px; color: var(--gold); text-decoration: none; font-weight: 500;
}
.search-view-all:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .search-overlay { padding-top: 20px; }
  .search-overlay-inner { max-width: calc(100% - 24px); border-radius: var(--r); }
  .search-overlay .search-results { grid-template-columns: 1fr; }
}

/* ── RELATED TOPICS (shared: monk, product, guide, temple) ── */
.related-wrap { border-top: 1px solid var(--br); padding-top: 24px; margin-top: 32px; }
.related-title { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--t3); text-transform: uppercase; margin-bottom: 14px; }
.related-links { display: flex; flex-direction: column; gap: 8px; }
.related-link { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--br); border-radius: var(--r-lg); font-size: 14px; color: var(--t1); cursor: pointer; transition: border-color .15s, background .15s; text-decoration: none; background: var(--bg0); }
.related-link:hover { border-color: var(--gold-b); background: var(--gold-l); }
.related-link-icon { width: 18px; height: 18px; color: var(--t3); flex-shrink: 0; }
.related-link-arr { margin-left: auto; color: var(--t3); font-size: 18px; line-height: 1; }

/* ═══════════════════════════════════════════════════════════
   NOTIFICATION BANNER — site-wide announcement bar above navbar
═══════════════════════════════════════════════════════════ */
.tac-notif-banner {
  width: 100%;
  font-family: var(--font-b);
  font-size: 13.5px;
  line-height: 1.5;
  position: relative;
  z-index: 50;
}
.tac-notif-banner__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 9px 56px 9px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  position: relative;
}
.tac-notif-banner__msg { display: inline-block; }
.tac-notif-banner__msg a { text-decoration: underline; color: inherit; }
.tac-notif-banner__msg a:hover { opacity: .8; }
.tac-notif-banner__close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: .65;
  padding: 4px 8px;
  font-family: inherit;
}
.tac-notif-banner__close:hover { opacity: 1; }

/* Variants — using brand palette */
.tac-notif-banner--info {
  background: var(--gold-l);       /* warm beige #FAF5E4 */
  color: var(--gold-dim);          /* deep gold text */
  border-bottom: 1px solid var(--gold-b);
}
.tac-notif-banner--notice {
  background: var(--discount);     /* temple maroon #6B1F2B */
  color: #FAF5E4;                  /* cream text */
}
.tac-notif-banner--success {
  background: var(--gold);          /* gold solid #B8860B */
  color: #fff;
}

/* Hide when dismissed via JS */
.tac-notif-banner.is-dismissed { display: none; }

@media (max-width: 720px) {
  .tac-notif-banner__inner { padding: 9px 44px 9px 14px; font-size: 12.5px; text-align: left; }
}

/* Content-top image — rendered above article body on single guide/monk/temple/history */
.content-top-image-wrap {
  margin: 0 0 22px;
}
.content-top-image-wrap .content-top-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
@media (max-width: 720px) {
  .content-top-image-wrap { margin-bottom: 16px; }
}
