/* ==========================================================================
   Thăng Long Kim Việt – Site template CSS (standalone, no external dependency)
   ========================================================================== */

:root {
  --tlkv-primary: #8b1d1d;
  --tlkv-primary-dark: #6b1515;
  --tlkv-gold: #c5a44e;
  --tlkv-gold-light: #e8d9a0;
  --tlkv-text: #18181b;
  --tlkv-text-muted: #71717a;
  --tlkv-bg: #fff;
  --tlkv-border: #e4e4e7;
  --tlkv-radius: 10px;
}

/* Reset & base */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--tlkv-text);
  background: var(--tlkv-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tlkv-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

ul { list-style: none; }

.list-unstyle { list-style: none; padding: 0; margin: 0; }

/* ==========================================================================
   HEADER – Desktop
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--tlkv-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.header-pc {
  display: block;
}

.header--inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.header-gr { flex: 1 1 0; }
.header-gr.left-gr { display: flex; justify-content: flex-start; }
.header-gr.right-gr { display: flex; justify-content: flex-end; }

.header-gr-top {
  display: flex;
  gap: 4px;
  margin-bottom: 2px;
}

.header-gr-bot {
  display: flex;
  gap: 4px;
}

.header-gr-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.12);
  text-decoration: none;
}
.nav-link.link-w-ic img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Header logo */
.header-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-logo .logo { display: block; }

/* Submenu (product dropdown) – desktop */
.has-submenu { position: relative; }
.sanpham-subheader {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  padding-top: 8px;
  z-index: 100;
}
.has-submenu:hover .sanpham-subheader { display: block; }

.sanpham-category {
  background: #fff;
  border-radius: var(--tlkv-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  padding: 20px 24px;
  color: var(--tlkv-text);
}
.sanpham-category-item {}
.category-name {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tlkv-text-muted);
  margin: 0 0 8px;
  font-weight: 600;
}
.category-link {
  display: block;
  padding: 6px 0;
  color: var(--tlkv-text);
  font-size: 14px;
}
.category-link:hover { color: var(--tlkv-primary); text-decoration: none; }

/* ==========================================================================
   HEADER – Mobile
   ========================================================================== */
.header-mb { display: none; }

.header-mb-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.mb-ham {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.mb-ham span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .25s;
}

.mb-logo { display: block; }

/* Mobile menu overlay */
.menu-mb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
}
.menu-mb.open { display: block; }

.menu-mb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.menu-mb-wrap {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 80vw);
  background: var(--tlkv-primary);
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
}
.menu-mb-header {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
}
.close-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: background .2s;
}
.close-menu:hover { background: rgba(255,255,255,.12); }

.menu-mb-body { padding: 0 16px 24px; }

.menu-mb-section {
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu-mb-section > li { border-bottom: 1px solid rgba(255,255,255,.1); }
.menu-mb-section > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 500;
}
.menu-mb-section > li > a:hover {
  color: #fff;
  text-decoration: none;
}

.icon-right,
.icon-left {
  display: inline-flex;
  align-items: center;
}

/* Mobile mega submenu */
.menu-subs.menu-mega { display: none; }
.menu-subs.menu-mega.open { display: block; }

.mega-subs-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 600;
}
.mega-subs-title:hover { color: #fff; text-decoration: none; }

.list-item { padding: 0 0 8px 8px; }
.list-item .title {
  display: block;
  padding: 6px 0;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  font-size: 14px;
}
.list-item .title:hover { color: #fff; text-decoration: none; }
.list-item ul {
  margin: 0;
  padding: 0 0 0 12px;
  list-style: none;
}
.list-item ul li a {
  display: block;
  padding: 5px 0;
  color: rgba(255,255,255,.75);
  font-size: 13px;
}
.list-item ul li a:hover { color: #fff; text-decoration: none; }

/* Responsive: switch between desktop / mobile header */
@media (max-width: 768px) {
  .header-pc { display: none; }
  .header-mb { display: block; }
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.master-wrapper { min-height: 60vh; }

/* ==========================================================================
   HOME BANNER
   ========================================================================== */
.home-banner { margin-bottom: 0; }

/* ==========================================================================
   FLASHSALE ROW
   ========================================================================== */
.flashsale-row-container {
  background: var(--tlkv-primary);
  color: #fff;
  padding: 10px 0;
}
.flashsale-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.flashsale-item.flashsale-text p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
}
.flashsale-item.flashsale-text span {
  color: var(--tlkv-gold-light);
  font-weight: 700;
}

/* ==========================================================================
   GOLD RATE COMPONENT (bảng giá vàng)
   ========================================================================== */
.gold-rate-component {
  padding: 40px 0 32px;
}

.chart-container-row {
  display: flex;
  gap: 24px;
}
.chart-container.container-l { flex: 1 1 60%; min-width: 0; }
.chart-container.container-r { flex: 1 1 40%; min-width: 280px; }

.chart-title.title-w-deco {
  margin-bottom: 16px;
}
.chart-title h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--tlkv-primary);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 6px;
}
.title-deco {
  width: 48px;
  height: 3px;
  background: var(--tlkv-gold);
  border-radius: 2px;
}

.chart-body { margin-bottom: 16px; }

.gold-title {
  font-size: 16px;
  color: var(--tlkv-primary);
  margin: 0 0 8px;
  font-weight: 500;
}
.gold-title.bold {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}

.unit {
  font-size: 13px;
  color: var(--tlkv-text-muted);
  margin-bottom: 12px;
}

/* Gold table */
.gold-table { margin-bottom: 0; }

.gold-table-content {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--tlkv-radius);
  overflow: hidden;
  font-size: 14px;
  border: 1px solid var(--tlkv-border);
}

.gold-table-content thead th {
  background: var(--tlkv-primary);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 14px;
  text-align: center;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.2);
}
.gold-table-content thead th:first-child {
  border-top-left-radius: var(--tlkv-radius);
}
.gold-table-content thead th:last-child {
  border-top-right-radius: var(--tlkv-radius);
  border-right: none;
}

.gold-table-content tbody td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid var(--tlkv-border);
  border-right: 1px solid var(--tlkv-border);
  vertical-align: middle;
}
.gold-table-content tbody td:last-child { border-right: none; }
.gold-table-content tbody tr:last-child td { border-bottom: none; }

/* Chart footer */
.chart-footer {
  margin-top: 12px;
}
.chart-footer .note {
  font-size: 12px;
  color: var(--tlkv-text-muted);
  margin-bottom: 8px;
}
.gold-page-detail-link a {
  font-size: 13px;
  color: var(--tlkv-primary);
  font-weight: 600;
}
.gold-page-detail-link a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .chart-container-row { flex-direction: column; }
  .chart-container.container-l,
  .chart-container.container-r { flex: none; width: 100%; }
  .gold-title.bold { font-size: 18px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--tlkv-primary-dark);
  color: rgba(255,255,255,.85);
  padding: 40px 0 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 24px;
}

.footer-gr.gr-left { flex: 1 1 300px; }

.footer-info {}

.footer-logo {
  display: inline-block;
  margin-bottom: 12px;
}

.info-name {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}

.footer-info ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-info ul li {
  padding: 3px 0;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}
.footer-info ul li span {
  font-weight: 600;
  color: #fff;
}

.footer-credit {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 16px 0;
  text-align: center;
}
.footer-credit h5 {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,.55);
  margin: 0;
}

@media (max-width: 576px) {
  .footer { padding: 24px 0 0; }
  .footer-content { gap: 20px; }
}

/* ==========================================================================
   MISC HELPERS
   ========================================================================== */
.list-title { margin-bottom: 4px; }
