/*
Theme Name:  NVA Personal
Theme URI:   https://yoursite.com
Description: Theme cá nhân NVA — Blog, Đồ cũ, Dự án, Hợp tác
Author:      Draco Katie
Version:     2.3.3
License:     GNU General Public License v2
Text Domain: nva-theme
*/

/* ===== RESET & ROOT ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Kinetic Heritage Design System ── */
  --bg:      #fcf9f3;   /* background / surface */
  --bg2:     #f6f3ed;   /* surface-container-low */
  --bg3:     #ebe8e2;   /* surface-container-high */
  --bg4:     #e5e2dc;   /* surface-container-highest / surface-variant */
  --fg:      #1c1c18;   /* on-surface */
  --fg2:     #3a2520;   /* on-surface-variant */
  --fg3:     #8c716b;   /* outline */
  --accent:  #a93119;   /* primary */
  --accent2: #835100;   /* tertiary (marigold/warning) */
  --accent3: #176b50;   /* secondary (green / in-stock) */
  --border:  #e0bfb8;   /* outline-variant */
  --border2: rgba(28,28,24,0.18);
  --card:    #ffffff;   /* surface-container-lowest */
  --nav-h:   80px;
  --font-display: 'Anton', sans-serif;
  --font-body:    'Manrope', sans-serif;
  --font-serif:   'Playfair Display', serif;
  --r:    12px;  /* rounded-lg = card radius */
  --r-xl: 24px;  /* rounded-2xl */
  --r-full: 9999px;
  --shadow:  0 2px 16px rgba(26,24,20,0.06);
  --shadow2: 0 4px 20px rgba(0,0,0,0.05);
  --shadow3: 0 8px 32px rgba(26,24,20,0.12);
}

[data-theme="dark"] {
  --bg: #13120f;
  --bg2: #1c1b17;
  --bg3: #25231e;
  --fg: #f0ece4;
  --fg2: #b8b4ac;
  --fg3: #7a7670;
  --border: rgba(240,236,228,0.1);
  --border2: rgba(240,236,228,0.18);
  --card: #1c1b17;
  --shadow: 0 2px 16px rgba(0,0,0,0.3);
  --shadow2: 0 6px 32px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.75;
  font-size: 18px;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* ===== CONTAINER ===== */
.container,
.section-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ===== NAV ===== */
#site-navigation {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  height: 100%;
  display: flex; align-items: center;
  gap: 40px;
}
#site-navigation.scrolled { box-shadow: var(--shadow); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

/* WordPress menu override */
#primary-menu {
  display: flex; gap: 4px;
  list-style: none;
  flex: 1;
  margin: 0; padding: 0;
}
#primary-menu a {
  font-size: 13px; font-weight: 500;
  color: var(--fg2);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  display: block;
}
#primary-menu a:hover,
#primary-menu .current-menu-item > a { color: var(--fg); background: var(--bg3); }

/* Fix: trang chủ không active khi ở trang khác */
body:not(.home):not(.front-page) #primary-menu .menu-item-home.current-menu-item > a,
body:not(.home):not(.front-page) #primary-menu .current-menu-ancestor > a {
  color: var(--fg2); background: transparent;
}

.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  transition: all 0.2s;
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar input {
  border: none; background: none; outline: none;
  font-family: var(--font-body);
  font-size: 13px; color: var(--fg); width: 160px;
}
.search-bar input::placeholder { color: var(--fg3); }

.theme-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--fg2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}
.theme-btn:hover { background: var(--bg3); color: var(--fg); }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--fg);
  border-radius: 2px; transition: all 0.3s;
  display: block;
}

/* Mobile nav */
#mobile-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 16px 24px; z-index: 99; flex-direction: column; gap: 4px;
  list-style: none; margin: 0;
}
#mobile-nav.open { display: flex; }
#mobile-nav a {
  font-size: 15px; font-weight: 500; color: var(--fg2);
  text-decoration: none; padding: 10px 12px; border-radius: 8px;
  transition: all 0.2s; display: block;
}
#mobile-nav a:hover { background: var(--bg3); color: var(--fg); }

/* ===== MAIN LAYOUT ===== */
#page { padding-top: var(--nav-h); }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  font-size: 14px; color: var(--fg3);
  margin-bottom: 28px; line-height: 1.5;
}
.breadcrumbs a {
  color: var(--fg3); text-decoration: none; transition: color .2s;
}
.breadcrumbs a:hover { color: var(--accent); }
.bc-sep { color: var(--border2); font-size: 14px; margin: 0 2px; }
.bc-current { display: none; }

/* ===== SECTIONS SHARED ===== */
.site-section { padding: 80px 0; }

.section-header { margin-bottom: 48px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 0;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 56px);
  letter-spacing: 0; line-height: 1.1; color: var(--fg);
  text-transform: uppercase;
}
.section-desc { margin-top: 16px; font-size: 16px; color: var(--fg2); max-width: 540px; line-height: 1.7; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  height: 56px; padding: 0 32px; border-radius: var(--r-full);
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(169,49,25,0.25);
}
.btn-primary:hover { background: #8b2b14; transform: scale(0.98); opacity: 0.95; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg2); color: var(--fg);
  height: 56px; padding: 0 32px; border-radius: var(--r-full);
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--border); cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--bg3); transform: scale(0.98); }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.filter-chip {
  font-size: 13px; font-weight: 500; padding: 6px 16px;
  border: 1px solid var(--border); border-radius: 20px;
  background: none; color: var(--fg2); cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body);
  text-decoration: none; display: inline-block;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active,
.filter-chip.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== BLOG ARCHIVE ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
/* Dalam layout có sidebar: list 1 cột compact */
.blog-layout-main .blog-grid { grid-template-columns: 1fr; gap: 16px; }

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  cursor: pointer;
  align-items: stretch;
}
.blog-card:hover { transform: translateY(0); box-shadow: var(--shadow2); }

/* Archive page: list layout (ảnh trái, content phải) */
.blog-layout-main .blog-card {
  flex-direction: row;
}

.blog-layout-main .blog-img {
  width: 132px; height: 132px; min-width: 132px;
}

.blog-img {
  width: 100%; height: auto;
  background: var(--bg3);
  position: relative; overflow: hidden;
  border-radius: 0;
  margin-bottom: 0;
  aspect-ratio: 16 / 9;
}
.blog-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s;
}
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  transition: transform 0.4s;
}
.blog-card:hover .blog-img-placeholder { transform: scale(1.08); }
.blog-cat-badge {
  display: none;
  position: absolute; top: 12px; left: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(255,255,255,0.92); color: var(--accent);
}

.blog-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.blog-date { font-size: 11px; color: var(--fg3); }
.blog-read-time { font-size: 11px; color: var(--fg3); }
.blog-title {
  font-family: 'Merriweather', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-excerpt { font-size: 14px; color: var(--fg2); line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 0; border-top: none; }
.blog-tags { display: none; }
.blog-tag { font-size: 11px; color: var(--fg3); background: var(--bg2); padding: 2px 8px; border-radius: 4px; font-weight: 500; text-decoration: none; }
.blog-arrow { color: var(--accent); font-size: 14px; font-weight: 700; transition: transform 0.2s; }
.blog-card:hover .blog-arrow { transform: translateX(4px); }

/* ===== SINGLE POST ===== */
.single-post-wrap { max-width: 740px; margin: 0 auto; padding: 60px 40px; }

.post-hero-img {
  height: 380px; background: var(--bg2);
  border-radius: var(--r); overflow: hidden; margin-bottom: 40px;
}
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.post-hero-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 80px;
}

.post-cat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; text-decoration: none; }
.post-title { font-family: 'Merriweather', serif; font-size: clamp(26px, 4vw, 38px); font-weight: 700; line-height: 1.3; color: var(--fg); margin-bottom: 20px; }
.post-meta { display: flex; gap: 20px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.post-meta span { font-size: 13px; color: var(--fg); font-weight: 600; }

.post-content { font-size: 18px; line-height: 1.6; color: var(--fg); }
.post-content h2 { font-family: 'Manrope', sans-serif; font-size: 32px; color: var(--fg); margin: 40px 0 16px; letter-spacing: 0.5px; font-weight: 700; }
.post-content h3 { font-family: 'Manrope', sans-serif; font-size: 24px; color: var(--fg); margin: 28px 0 12px; letter-spacing: 0.5px; font-weight: 700; }
.post-content p { margin-bottom: 20px; }
.post-content a { color: var(--accent); }
.post-content img { width: 100%; border-radius: var(--r); margin: 20px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.post-content th { background: var(--bg3); padding: 10px 14px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--fg2); }
.post-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.post-content blockquote { border-left: 3px solid var(--accent); padding: 12px 20px; background: var(--bg2); border-radius: 0 8px 8px 0; margin: 24px 0; font-style: italic; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 20px; }
.post-content li { margin-bottom: 8px; }

.post-tags-bar { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; }

/* Facebook comments */
.fb-comments-wrap { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.fb-comments-wrap h4 { font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 16px; }

/* Post navigation */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.post-nav-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 20px; text-decoration: none; transition: all 0.2s; display: block; }
.post-nav-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-nav-label { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--fg3); margin-bottom: 6px; }
.post-nav-title { font-size: 14px; font-weight: 600; color: var(--fg); line-height: 1.3; }
.post-nav-next { text-align: right; }

/* ===== WOO — SHOP ARCHIVE ===== */
.shop-bg { background: var(--bg2); }

/* Grid: 3 cột desktop, 2 cột tablet, 1 cột mobile */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card: <div> — không thể bị WooCommerce CSS override display */
.shop-card {
  position: relative;              /* cần cho overlay link */
  display: flex;                   /* div, không phải <a> — immune với mọi external CSS */
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.shop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow3); }
.shop-card.is-sold { opacity: 0.72; }

/* Overlay link — phủ toàn card để click được, z-index thấp */
.shop-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  display: block;
}

/* Nội dung nổi trên overlay để hiển thị — nhưng click xuyên qua overlay */
.shop-img,
.shop-body,
.shop-status,
.shop-negotiate {
  position: relative;
  z-index: 1;
  pointer-events: none;   /* click rơi xuống overlay → điều hướng vào trang sản phẩm */
}

/* Nút Hỏi mua — click riêng biệt, không điều hướng vào trang sản phẩm */
.shop-contact-btn {
  pointer-events: auto;   /* override pointer-events: none kế thừa từ .shop-body */
  position: relative;
  z-index: 2;
}

/* Ảnh — aspect-ratio thay fixed height */
.shop-img {
  aspect-ratio: 4 / 3;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; position: relative; overflow: hidden;
}
.shop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.shop-card:hover .shop-img img { transform: scale(1.06); }
.shop-img-placeholder { font-size: 56px; }

/* Badges trên ảnh */
.shop-status {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px;
  backdrop-filter: blur(4px);
}
.shop-status.available { background: rgba(23,107,80,0.85); color: #fff; }
.shop-status.sold      { background: rgba(169,49,25,0.85);  color: #fff; }
.shop-status.hold      { background: rgba(131,81,0,0.85);   color: #fff; }
.shop-negotiate {
  position: absolute; bottom: 10px; left: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  background: rgba(232,160,32,0.92); color: #3a2000;
  padding: 3px 10px; border-radius: 4px;
}

/* Info block */
.shop-body {
  padding: 16px; flex: 1;
  display: flex; flex-direction: column;
}
.shop-cat-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--fg3); margin-bottom: 6px;
}
.shop-name {
  font-size: 16px; font-weight: 700; color: var(--fg);
  line-height: 1.35; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.shop-condition {
  font-size: 13px; color: var(--fg3); margin-bottom: 10px;
}
.shop-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.shop-price { font-family: var(--font-display); font-size: 22px; color: var(--accent); letter-spacing: 0.5px; }
.shop-contact-btn {
  font-size: 11px; font-weight: 600; padding: 5px 12px;
  background: var(--accent); color: #fff; border: none;
  border-radius: 6px; cursor: pointer; font-family: var(--font-body);
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
.shop-contact-btn:hover { background: #b03a20; }
.shop-contact-btn.disabled { background: var(--bg3); color: var(--fg3); pointer-events: none; }

/* ===== WOO — SINGLE PRODUCT ===== */
.product-wrap { max-width: 1080px; margin: 0 auto; padding: 60px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.product-gallery { position: sticky; top: calc(var(--nav-h) + 20px); }
/* ═══ PRODUCT IMAGE — Khung vuông 1/1 (Shopee/Tiki style) ═══ */
.product-main-img,
.woocommerce-product-gallery__image {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  background-color: #f7f5f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 8px;
  margin-bottom: 12px;
  position: relative;
  border: 1px solid var(--border);
}

/* Ảnh bên trong khung — contain để giữ tỷ lệ gốc, center position */
.product-main-img img,
.woocommerce-product-gallery__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transition: opacity 0.2s ease-in-out;
}
.product-thumbs { display: flex; gap: 8px; }
.product-thumb { width: 72px; height: 72px; border-radius: 8px; background: var(--bg3); border: 2px solid transparent; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 28px; transition: all 0.2s; }
.product-thumb.active-thumb, .product-thumb:hover { border-color: var(--accent); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info {}
.product-cat-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg3); margin-bottom: 10px; display: block; text-decoration: none; }
.product-title { font-family: var(--font-display); font-size: 32px; color: var(--fg); letter-spacing: 0.5px; line-height: 1.1; margin-bottom: 16px; }
.product-status-row { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.product-price { font-family: var(--font-display); font-size: 40px; color: var(--accent); letter-spacing: 1px; }
.product-desc { font-size: 15px; color: var(--fg2); line-height: 1.8; margin-bottom: 24px; }
.product-details-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; font-size: 14px; }
.product-details-table td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.product-details-table td:first-child { color: var(--fg3); width: 140px; font-weight: 500; }
.product-contact-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.product-zalo-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 13px 24px; border-radius: var(--r);
  font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.2s;
}
.product-zalo-btn:hover { background: #b03a20; }
.product-messenger-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--fg2);
  padding: 13px 24px; border-radius: var(--r);
  font-size: 14px; font-weight: 500; border: 1px solid var(--border2); text-decoration: none; transition: all 0.2s;
}
.product-messenger-btn:hover { background: var(--bg2); }

/* ===== PROJECTS ===== */
.projects-bg { background: var(--bg); }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: all 0.3s;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow2); }

.project-header {
  padding: 28px 28px 20px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.project-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.icon-sport { background: rgba(200,71,42,0.1); }
.icon-event { background: rgba(42,102,72,0.1); }
.icon-community { background: rgba(232,160,32,0.12); }
.icon-media { background: rgba(90,80,200,0.1); }

.project-status-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px; flex-shrink: 0; margin-top: 4px;
}
.status-active { background: rgba(42,102,72,0.12); color: var(--accent3); }
.status-done { background: rgba(26,24,20,0.08); color: var(--fg3); }
.status-ongoing { background: rgba(232,160,32,0.15); color: #b87a00; }

.project-body { padding: 0 28px 20px; flex: 1; }
.project-title { font-family: var(--font-display); font-size: 22px; color: var(--fg); letter-spacing: 0.5px; margin-bottom: 8px; }
.project-desc { font-size: 13px; color: var(--fg2); line-height: 1.7; }

.project-stack { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 28px 16px; }
.stack-tag { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 4px; background: var(--bg2); color: var(--fg3); }

.project-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: flex-end;
}
.project-detail-link { font-size: 12px; color: var(--fg3); text-decoration: none; transition: color 0.2s; }
.project-detail-link:hover { color: var(--accent); }

/* ===== ABOUT ===== */
.about-bg { background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start; }
.about-avatar {
  width: 100%; aspect-ratio: 1; border-radius: 20px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; position: relative; max-width: 260px; overflow: hidden;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-avatar::after {
  content: ''; position: absolute; inset: -8px; border-radius: 24px;
  border: 2px dashed var(--border2);
}
.about-name { font-family: var(--font-display); font-size: 40px; color: var(--fg); letter-spacing: 1px; margin-bottom: 6px; }
.about-role { font-size: 14px; color: var(--accent); font-weight: 600; letter-spacing: 1px; margin-bottom: 20px; }
.about-bio { font-size: 15px; color: var(--fg2); line-height: 1.9; }

/* ===== COLLAB ===== */
.collab-bg { background: var(--bg2); }
.collab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.collab-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px 24px; transition: all 0.3s;
}
.collab-card:hover { transform: translateY(-3px); box-shadow: var(--shadow2); }
.collab-icon { font-size: 32px; margin-bottom: 14px; }
.collab-title { font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 10px; }
.collab-desc { font-size: 13px; color: var(--fg2); line-height: 1.75; }
.collab-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--border); }
.collab-cta-text { font-size: 14px; color: var(--fg2); font-weight: 500; }
.collab-contacts { display: flex; gap: 10px; flex-wrap: wrap; }
.collab-contact-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; padding: 9px 18px;
  border-radius: 8px; border: 1px solid; text-decoration: none;
  font-family: var(--font-body); transition: all 0.2s;
}
.collab-contact-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

/* ===== FOOTER ===== */
#colophon {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 0;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 60px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 32px;
  min-height: 100px;
}
/* Override old grid */
.footer-grid { display: none; }
.footer-brand { display: none; }
.footer-col { display: none; }

/* New footer layout */
.footer-logo {
  font-family: var(--font-display);
  font-size: 28px; letter-spacing: -0.02em;
  color: var(--accent); text-decoration: none;
}
.footer-logo:hover { color: var(--accent); opacity: 0.85; }
.footer-bottom {
  border: none; padding: 0; margin: 0;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg3);
  opacity: 0.6;
}
.footer-bottom p { font-size: 11px; }
.footer-rss { display: none; }

/* Social circles (Figma: w-14 h-14 rounded-full) */
.footer-social-circles {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.footer-social-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg2); text-decoration: none;
  transition: all 0.2s;
}
.footer-social-circle:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.footer-social-circle svg { width: 18px; height: 18px; }

/* Footer links */
.footer-links {
  display: flex; gap: 32px; align-items: center;
}
.footer-links a {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg3);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* Old footer social/btn — hide */
.footer-social { display: none; }
.footer-social-btn { display: none; }

/* ===== TOAST & SCROLL TOP ===== */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--fg); color: var(--bg);
  padding: 14px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow2);
  transform: translateY(80px); opacity: 0; transition: all 0.3s; max-width: 300px;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

.scroll-top {
  position: fixed; bottom: 24px; left: 24px; z-index: 99;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: all 0.3s;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: #b03a20; transform: translateY(-2px); }

/* ===== HERO ===== */
.hero {
  min-height: 85vh;
  position: relative; overflow: hidden;
  background: var(--bg);
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(169,49,25,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 100px 60px 80px;
  display: grid; grid-template-columns: 7fr 5fr;
  align-items: center; gap: 80px;
  position: relative; z-index: 1;
  width: 100%;
}
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 40px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: rgba(169,49,25,0.08);
  padding: 6px 16px; border-radius: var(--r-full);
  border: 1px solid rgba(169,49,25,0.15);
  width: fit-content;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 8.5vw, 110px);
  line-height: 1.0; letter-spacing: -0.01em;
  color: var(--fg); text-transform: uppercase;
  margin: 0;
}
.hero h1 span { color: var(--accent); }
.hero-desc {
  font-size: 18px; color: var(--fg2); max-width: 480px;
  line-height: 1.7; opacity: 0.9;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 48px;
  padding-top: 40px; border-top: 1px solid var(--border);
}
.hero-stat-num { font-family: var(--font-display); font-size: 40px; color: var(--fg); line-height: 1; }
.hero-stat-label { font-size: 12px; color: var(--fg3); font-weight: 500; letter-spacing: 0.5px; margin-top: 4px; }
.hero-runner-banner { display: none; }

/* Hero visual — decorative cards */
.hero-visual { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; }
.hero-card-stack { position: relative; width: 340px; height: 340px; }
.hero-card {
  position: absolute; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow2);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hero-card-1 {
  width: 220px; height: 260px; top: 20px; left: 50px;
  background: linear-gradient(135deg, #c8472a 0%, #e8a020 100%);
  transform: rotate(-4deg);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
}
/* Overlay tối để chữ card-1 nổi rõ hơn */
.hero-card-1::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 55%);
  pointer-events: none;
}
.hero-card-1:hover { transform: rotate(-2deg) scale(1.05); box-shadow: var(--shadow3); }
.hero-card-1 .hc-label {
  position: relative; z-index: 1;
  font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.9); margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hero-card-1 .hc-title {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 24px; color: #fff; letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-card-2 {
  width: 200px; height: 220px; bottom: 10px; right: 30px;
  background: var(--card); border: 1px solid var(--border);
  transform: rotate(3deg);
  padding: 0; display: flex; flex-direction: column;
  overflow: hidden;
}
.hero-card-2:hover { transform: rotate(1deg) scale(1.05); box-shadow: var(--shadow3); }
/* Gradient overlay trên ảnh card-2 để chữ nổi */
.hero-card-2::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 50%, transparent 80%);
  z-index: 0; pointer-events: none;
}
.hero-card-2 .hc-badge {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(42,102,72,0.9); color: #fff;
  padding: 3px 8px; border-radius: 4px;
}
.hero-card-2 .hc-name  { font-weight: 700; font-size: 15px; color: #fff; line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.hero-card-2 .hc-price { font-family: var(--font-display); font-size: 26px; color: #fff; letter-spacing: 1px; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.hero-card-2 .hc-status { font-size: 12px; color: rgba(255,255,255,0.8); }
.hero-card-2 .hc-meta,
.hero-card-2 .hc-meta span {
  color: #fff;
  font-size: 13px; font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  opacity: 0.95;
}

/* ===== TRANG CHỦ — FEATURED PRODUCT CARD ===== */
.hero-featured-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  text-decoration: none; color: inherit;
  transition: all 0.25s;
  margin-top: 24px;
}
.hero-featured-card:hover { box-shadow: var(--shadow2); transform: translateY(-2px); }
.hero-featured-img {
  width: 68px; height: 68px; border-radius: 8px;
  background: var(--bg3); flex-shrink: 0;
  overflow: hidden; position: relative;
}
.hero-featured-img img { width:100%; height:100%; object-fit:cover; }
.hero-featured-badge {
  position: absolute; top: 4px; left: 4px;
  font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 2px 6px; border-radius: 3px;
  background: rgba(42,102,72,0.9); color: #fff;
}
.hero-featured-body { flex: 1; min-width: 0; }
.hero-featured-label { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--fg3); margin-bottom: 3px; }
.hero-featured-name  { font-size: 13px; font-weight: 600; color: var(--fg); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-featured-price { font-family: var(--font-display); font-size: 22px; color: var(--accent); letter-spacing: 0.5px; margin-top: 2px; }

/* ===== TRANG CHỦ — SECTION GIỚI THIỆU TÓM TẮT ===== */
.home-about {
  background: var(--bg2);
  padding: 56px 0;
}
.home-about-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center;
}
.home-about-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; flex-shrink: 0; overflow: hidden;
}
.home-about-avatar img { width:100%; height:100%; object-fit:cover; }
.home-about-title { font-family: var(--font-display); font-size: 28px; color: var(--fg); letter-spacing: 1px; margin-bottom: 10px; }
.home-about-text  { font-size: 14px; color: var(--fg2); line-height: 1.8; margin-bottom: 16px; max-width: 520px; }
.home-about-link  { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.home-about-link:hover { gap: 10px; }

/* ===== TRANG CHỦ — BÀI VIẾT MỚI NHẤT (card ngang) ===== */
.home-posts { background: var(--bg); padding: 56px 0; }
.home-posts-inner { max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.home-posts-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }

.post-card-h {
  display: grid; grid-template-columns: 200px 1fr;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  text-decoration: none; color: inherit; transition: all 0.25s;
}
.post-card-h:hover { box-shadow: var(--shadow2); transform: translateX(4px); }
.post-card-h-img  { height: 140px; background: var(--bg3); position: relative; overflow: hidden; }
.post-card-h-img img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s; }
.post-card-h:hover .post-card-h-img img { transform: scale(1.06); }
.post-card-h-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:40px; }
.post-card-h-badge { position:absolute; top:10px; left:10px; font-size:9px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; padding:3px 8px; border-radius:3px; background:rgba(255,255,255,0.92); color:var(--accent); }
.post-card-h-body { padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.post-card-h-meta { display: flex; gap: 10px; margin-bottom: 6px; }
.post-card-h-meta span { font-size: 11px; color: var(--fg3); }
.post-card-h-title { font-size: 15px; font-weight: 600; color: var(--fg); line-height: 1.4; margin-bottom: 8px; }
.post-card-h-excerpt { font-size: 12px; color: var(--fg2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-posts-more { text-align: center; margin-top: 32px; }

/* ===== TRANG CHỦ — CHỢ ĐỒ CŨ NỔI BẬT ===== */
.home-shop { background: var(--bg2); padding: 64px 0; }
.home-shop-inner { max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.home-shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.shop-card-mini {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: all 0.25s; display: flex; flex-direction: column;
}
.shop-card-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow2); }
.shop-card-img {
  aspect-ratio: 1 / 1; background: var(--bg3); position: relative;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.shop-card-mini:hover .shop-card-img img { transform: scale(1.06); }
.shop-card-body { padding: 14px 14px 12px; }
.shop-card-condition { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--fg3); margin-bottom: 4px; display: block; }
.shop-card-name { font-size: 13px; font-weight: 700; color: var(--fg); line-height: 1.35; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.shop-card-price .price-current { font-family: var(--font-display); font-size: 20px; color: var(--accent); letter-spacing: 0.5px; }
.shop-card-price .price-old { font-size: 12px; font-weight: 400; color: var(--fg3); text-decoration: line-through; opacity: 0.75; }
.home-shop-more { text-align: center; margin-top: 32px; }

.btn-outline-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; padding: 11px 28px;
  border-radius: 28px; border: 1.5px solid var(--border2);
  background: transparent; color: var(--fg2);
  text-decoration: none; font-family: var(--font-body);
  cursor: pointer; transition: all 0.2s;
}
.btn-outline-pill:hover { border-color: var(--accent); color: var(--accent); }

/* ===== DỰ ÁN — CTA banner đỏ ===== */
.collab-cta-banner {
  background: var(--accent);
  border-radius: var(--r);
  padding: 48px 40px;
  text-align: center;
  color: #fff;
  margin-top: 48px;
}
.collab-cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 72px);
  letter-spacing: 1px;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 20px;
}
.collab-cta-banner p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.btn-white-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; padding: 13px 32px;
  border-radius: 28px; border: 2px solid #fff;
  background: transparent; color: #fff;
  text-decoration: none; font-family: var(--font-body);
  transition: all 0.2s;
}
.btn-white-pill:hover { background: #fff; color: var(--accent); }

/* ===== DỰ ÁN — Pull-quote ===== */
.project-quote {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 28px;
  min-height: 200px;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
}
.project-quote-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,24,20,0.7) 0%, rgba(26,24,20,0.4) 100%);
}
.project-quote-bg img { width:100%; height:100%; object-fit:cover; }
.project-quote-text {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 42px);
  color: #fff;
  text-align: center;
  padding: 40px 40px;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

/* ===== DỰ ÁN — Nút xem tất cả + phân trang ===== */
.projects-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 16px;
}
.project-pagination {
  display: flex; align-items: center; gap: 12px;
}
.project-pagination-label { font-size: 13px; color: var(--fg3); font-weight: 500; }
.project-pagination-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border2);
  background: none; color: var(--fg2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; transition: all 0.2s;
  text-decoration: none;
}
.project-pagination-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ===== ĐỒ CŨ — CTA card trong grid ===== */
.shop-cta-card {
  background: var(--accent);
  border-radius: var(--r);
  padding: 24px 20px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  text-decoration: none;
}
.shop-cta-card h3 {
  font-family: var(--font-display);
  font-size: 32px; letter-spacing: 0.5px;
  color: #fff; line-height: 0.95;
  margin-bottom: 10px;
}
.shop-cta-card p { font-size: 12px; color: rgba(255,255,255,0.8); line-height: 1.6; }

/* ===== FOOTER — Icon tròn social ===== */
.footer-social-icons {
  display: flex; gap: 10px;
  justify-content: center;
  margin: 16px 0;
}
.footer-social-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(240,236,228,0.1);
  border: 1px solid rgba(240,236,228,0.18);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: rgba(240,236,228,0.7);
  transition: all 0.2s;
}
.footer-social-icon:hover { background: rgba(240,236,228,0.2); color: #f0ece4; }
.footer-social-icon svg { width: 16px; height: 16px; }

/* Footer mobile — căn giữa toàn bộ */
.footer-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px 28px;
}
.footer-mobile .footer-logo { font-size: 32px; margin-bottom: 6px; }
.footer-mobile .footer-tagline { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(240,236,228,0.45); margin-bottom: 16px; }
.footer-mobile-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.footer-mobile-links a { font-size: 12px; color: rgba(240,236,228,0.5); text-decoration: none; }
.footer-mobile-links a:hover { color: #f0ece4; }

/* ===== BLOG LAYOUT — 2 CỘT (main + sidebar) ===== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}
.blog-layout-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }

/* Sidebar widget */
.sidebar-widget { margin-bottom: 40px; }
.sidebar-widget-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg); margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Popular post item */
.sidebar-post {
  display: grid; grid-template-columns: 72px 1fr;
  gap: 12px; align-items: start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: opacity .2s;
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post:hover { opacity: 0.8; }
.sidebar-post:hover .sidebar-post-title { color: var(--accent); }

.sidebar-post-thumb {
  width: 72px; height: 54px; border-radius: 8px;
  overflow: hidden; background: var(--bg3); flex-shrink: 0;
}
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-thumb .no-thumb {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center; font-size: 24px;
}
.sidebar-post-title {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  color: var(--fg); transition: color .2s;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-post-date { font-size: 11px; color: var(--fg3); margin-top: 4px; }

/* Categories list */
.sidebar-cat-list { list-style: none; }
.sidebar-cat-list li { border-bottom: 1px solid var(--border); }
.sidebar-cat-list li:last-child { border-bottom: none; }
.sidebar-cat-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; text-decoration: none;
  font-size: 15px; font-weight: 500; color: var(--fg2);
  transition: color .2s;
}
.sidebar-cat-list a:hover { color: var(--accent); }
.sidebar-cat-count {
  font-size: 12px; font-weight: 600;
  background: var(--bg3); color: var(--fg3);
  padding: 2px 8px; border-radius: 20px;
}

/* ===== TRANG CHỦ — GRID CONTAINERS ===== */
.home-store-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.home-projects-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}

/* ===== HERO CARD 2 — nội dung nổi lên trên ảnh nền + gradient overlay ===== */
.hc-card2-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
  padding: 16px;
  justify-content: flex-end;   /* chữ nổi ở phần dưới card */
}

/* ===== TRANG CHỦ — STORE SECTION (4-col product cards, Shopee-style) ===== */
.home-shop-product-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.home-shop-product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow2); }

/* Info block bên dưới ảnh */
.home-shop-card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.home-shop-card-title {
  font-family: 'Merriweather', serif;
  font-size: 14px; font-weight: 700; color: var(--fg);
  line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.home-shop-card-price {
  margin-top: auto;
  font-family: var(--font-display); font-size: 18px; color: var(--accent);
  display: flex; align-items: center; gap: 6px;
}
.home-shop-card-old-price {
  font-family: var(--font-body); font-size: 12px; font-weight: 400;
  color: var(--fg3); text-decoration: line-through;
}

.home-shop-img {
  aspect-ratio: 1 / 1;
  overflow: hidden; background: var(--bg3);
  position: relative; display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 0;   /* card has its own spacing */
}
.home-shop-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s;
}
.home-shop-product-card:hover .home-shop-img img { transform: scale(1.06); }

.home-shop-cond-badge {
  position: absolute; bottom: 10px; left: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px;
  background: rgba(255,255,255,0.92); color: var(--fg2);
  backdrop-filter: blur(4px);
}

/* ===== TRANG CHỦ — PROJECTS SECTION (2-col overlay cards) ===== */
.home-project-card {
  display: block; text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  aspect-ratio: 4 / 3;
  transition: transform 0.4s;
  background: var(--bg3);
  box-shadow: var(--shadow2);
}
.home-project-card:hover { transform: scale(0.985); box-shadow: var(--shadow3); }

.home-project-img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  transition: transform 0.7s;
}
.home-project-card:hover .home-project-img { transform: scale(1.06); }

.home-project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,24,20,0.88) 0%, rgba(26,24,20,0.25) 55%, transparent 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 32px;
  transition: background 0.4s;
}
.home-project-card:hover .home-project-overlay {
  background: linear-gradient(to top, rgba(26,24,20,0.92) 0%, rgba(26,24,20,0.35) 60%, transparent 100%);
}

.home-project-lv {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); margin-bottom: 10px;
  display: block;
}

.home-project-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 36px);
  color: #fff; line-height: 1.05;
  text-transform: uppercase; letter-spacing: 0;
  transition: letter-spacing 0.3s;
}
.home-project-card:hover .home-project-title { letter-spacing: 0.02em; }

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 1024px) {
  .container,
  .section-wrap,
  .nav-inner,
  .footer-inner { padding-left: 32px; padding-right: 32px; }
  .blog-grid                    { grid-template-columns: repeat(2, 1fr); }
  .blog-layout-main .blog-grid  { grid-template-columns: 1fr; }
  .shop-grid         { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .collab-grid       { grid-template-columns: 1fr 1fr; }
  .footer-grid       { grid-template-columns: 1fr 1fr; gap: 32px; }
  .product-wrap      { grid-template-columns: 1fr; }
  .product-gallery   { position: static; }
  .home-store-grid   { grid-template-columns: repeat(2, 1fr); }
  .blog-layout       { grid-template-columns: 1fr 260px; gap: 40px; }
  .blog-layout-sidebar { position: static; }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 768px) {

  /* --- Nav --- */
  .nav-inner { padding: 0 16px; gap: 0; }
  #primary-menu { display: none; }
  .search-bar   { display: none; }
  .hamburger    { display: flex; }

  /* Nút Contact nổi bật trên mobile (màn hình 1 & 2) */
  .nav-contact-btn {
    display: inline-flex;
    align-items: center;
    font-size: 13px; font-weight: 600;
    padding: 7px 18px;
    background: var(--accent); color: #fff;
    border-radius: 20px; border: none;
    text-decoration: none; font-family: var(--font-body);
    transition: background 0.2s;
    margin-left: auto; margin-right: 10px;
  }
  .nav-contact-btn:hover { background: #b03a20; }

  /* --- Spacing --- */
  .container,
  .section-wrap,
  .footer-inner { padding-left: 16px; padding-right: 16px; }
  .site-section { padding: 48px 0; }

  /* --- Hero (màn hình 1) --- */
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 40px 16px 32px;
    gap: 32px;
  }
  .hero h1 {
    font-size: clamp(72px, 22vw, 108px);
    line-height: 0.88;
  }
  .hero h1 span { color: var(--accent); }
  .hero-desc    { font-size: 15px; }
  /* Buttons xếp dọc full-width */
  .hero-btns {
    flex-direction: column;
    gap: 10px;
  }
  .hero-btns .btn-primary,
  .hero-btns .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }
  /* Stats chia đều 3 cột */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding-top: 28px;
    border-top: 1px solid var(--border);
  }
  .hero-stat-num   { font-size: 32px; }
  .hero-stat-label { font-size: 11px; }
  /* Ảnh hero visual ẩn trên mobile nhỏ, hiện ở dạng banner dưới cùng hero */
  .hero-visual { display: none; }
  .hero-runner-banner {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--r);
    margin-top: 8px;
  }

  /* --- Blog grid --- */
  .blog-grid { grid-template-columns: 1fr; }
  .blog-img  { height: 200px; }

  /* --- Filter bar cuộn ngang (màn hình 3 & 4) --- */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 12px;
    margin-bottom: 24px;
    gap: 8px;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-chip { flex-shrink: 0; white-space: nowrap; }

  /* --- Shop grid 2 cột mobile --- */
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shop-body { padding: 12px; }
  .shop-name { font-size: 14px; }
  .shop-contact-btn { font-size: 10px; padding: 4px 8px; }

  /* --- Projects grid --- */
  .projects-grid { grid-template-columns: 1fr; }

  /* --- Collab --- */
  .collab-grid { grid-template-columns: 1fr; }
  .collab-cta  { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* --- About (màn hình 2) --- */
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-avatar { max-width: 140px; font-size: 56px; }
  .about-name   { font-size: 32px; }
  /* Role badges — 3 chip riêng thay vì text liền */
  .about-role {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
  }
  .about-role-badge {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 4px 10px; border-radius: 4px;
    background: var(--bg3); color: var(--fg3);
    border: 1px solid var(--border);
  }

  /* --- Footer --- */
  .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* --- Single post --- */
  .single-layout { grid-template-columns: 1fr; padding: 0 16px; }
  .single-toc    { display: none; }
  .single-hero-banner { height: 220px !important; }
  .single-post-wrap   { padding: 32px 0 48px; }
  .post-title    { font-size: clamp(24px, 7vw, 36px); }
  .post-meta     { flex-wrap: wrap; gap: 8px; }
  .post-nav      { grid-template-columns: 1fr; }

  /* --- Product single --- */
  .product-wrap  { padding: 32px 16px; gap: 32px; }
  .product-title { font-size: 24px; }
  .product-price { font-size: 32px; }

  /* --- Trang chủ sections --- */
  .home-about-inner { grid-template-columns: 1fr; gap: 20px; padding: 0 16px; }
  .home-about { padding: 48px 0; }
  .home-posts-inner { padding: 0 16px; }
  .home-posts { padding: 48px 0; }
  .home-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .home-shop-inner { padding: 0 16px; }
  .home-shop { padding: 48px 0; }
  .post-card-h { grid-template-columns: 120px 1fr; }
  .post-card-h-img { height: 110px; }
  .post-card-h-title { font-size: 14px; }

  /* --- Dự án --- */
  .collab-cta-banner { padding: 36px 24px; }
  .project-quote-text { padding: 28px 24px; font-size: 24px; }
  .projects-footer { flex-direction: column; align-items: flex-start; }

  /* --- Trang chủ: store grid 2 cột, project grid 1 cột --- */
  .home-store-grid    { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .home-projects-grid { grid-template-columns: 1fr; }
  .blog-layout        { grid-template-columns: 1fr; }
  .blog-layout-sidebar{ display: none; } /* ẩn sidebar trên mobile */
  .home-project-card  { aspect-ratio: 16 / 9; }
  .home-project-overlay { padding: 20px; }
  .home-project-title { font-size: 20px; }

  /* --- Footer: ẩn desktop, hiện mobile version --- */
  #colophon .footer-inner { display: none; }
  .footer-mobile { display: flex; }
}

/* ===== RESPONSIVE — SMALL MOBILE (≤ 400px) ===== */
@media (max-width: 400px) {
  .shop-grid { grid-template-columns: 1fr; }
  .hero h1   { font-size: 64px; }
  .hero-stats { gap: 4px; }
  .hero-stat-num { font-size: 28px; }
  .collab-contacts { flex-direction: column; }
}

/* ===== ABOUT PAGE — SOCIAL LINKS ===== */
.about-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.social-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 8px;
  border: 1px solid var(--border2); color: var(--fg2);
  text-decoration: none; transition: all 0.2s;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); }

/* ===== WOOCOMMERCE — PRODUCT STATUS NOTICES ===== */
.product-sold-notice,
.product-hold-notice {
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 14px;
  margin-bottom: 16px;
}
.product-sold-notice {
  background: rgba(200,71,42,0.08);
  color: var(--accent);
  border: 1px solid rgba(200,71,42,0.2);
}
.product-hold-notice {
  background: rgba(232,160,32,0.1);
  color: #b87a00;
  border: 1px solid rgba(232,160,32,0.25);
}

/* ===== WOOCOMMERCE — HIDE CART / CHECKOUT ===== */
.woocommerce-cart-form,
.cart-collaterals,
.wc-proceed-to-checkout,
.woocommerce-checkout,
.woocommerce-account,
.added_to_cart,
.wc-forward,
a.button.product_type_simple,
button.single_add_to_cart_button,
.woocommerce a.button.add_to_cart_button,
.woocommerce-info,
.woocommerce-message { display: none !important; }

/* ===== WOOCOMMERCE — PAGINATION ===== */
.woocommerce-pagination .page-numbers {
  display: flex; gap: 6px; list-style: none; padding: 0;
  justify-content: center; margin-top: 60px;
}
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 500;
  color: var(--fg2); text-decoration: none;
  transition: all 0.2s;
}
.woocommerce-pagination .page-numbers li a:hover { border-color: var(--accent); color: var(--accent); }
.woocommerce-pagination .page-numbers li span.current {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ===== TABLE OF CONTENTS — Easy ToC / LuckyWP ToC ===== */
#ez-toc-container, .lwptoc {
  background-color: var(--bg2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  padding: 15px !important;
  margin: 20px 0 !important;
}

#ez-toc-container h5,
#ez-toc-container .ez-toc-title,
.lwptoc .lwptoc__title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--fg) !important;
  margin-bottom: 12px !important;
}

#ez-toc-container ul, .lwptoc ul {
  list-style: none !important;
  padding-left: 0 !important;
}

#ez-toc-container li, .lwptoc li {
  margin-bottom: 6px !important;
  padding-left: 0 !important;
}

#ez-toc-container a, .lwptoc a {
  color: var(--fg) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
  font-size: 14px !important;
}

#ez-toc-container a:hover, .lwptoc a:hover {
  color: var(--accent) !important;
}

#ez-toc-container .ez-toc-list-level-2 a,
.lwptoc .lwptoc__list-level-2 a {
  padding-left: 16px !important;
  font-size: 13px !important;
}

#ez-toc-container .ez-toc-list-level-3 a,
.lwptoc .lwptoc__list-level-3 a {
  padding-left: 32px !important;
  font-size: 12px !important;
}

/* ===== SINGLE POST — LAYOUT & TOC ===== */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 48px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: start;
}
.single-hero-banner { margin-bottom: 0; }
.single-post-wrap { padding: 40px 0 60px; }

.single-toc {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  padding: 64px 0 32px;
}
.toc-inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  display: block;
}
.toc-title {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--fg3); margin-bottom: 12px;
}
#toc-nav { display: none; flex-direction: column; gap: 4px; }
.toc-link {
  display: block; font-size: 13px; color: var(--fg3);
  text-decoration: none; padding: 4px 8px; border-radius: 6px;
  border-left: 2px solid transparent; transition: all 0.2s; line-height: 1.4;
}
.toc-link:hover { color: var(--fg); background: var(--bg2); }
.toc-link.active { color: var(--accent); border-left-color: var(--accent); background: rgba(200,71,42,0.06); }
.toc-link.toc-h3 { padding-left: 18px; font-size: 12px; }

/* ===== SINGLE POST — SHARE & COMMENTS ===== */
.post-share {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 32px; padding: 20px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.post-share-label { font-size: 13px; font-weight: 600; color: var(--fg2); }
.post-share-btns { display: flex; gap: 8px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 6px 14px;
  border-radius: 6px; border: 1px solid var(--border);
  text-decoration: none; cursor: pointer; font-family: var(--font-body);
  transition: all 0.2s; background: none; color: var(--fg2);
}
.share-btn:hover { border-color: var(--border2); color: var(--fg); }
.share-fb { color: #1877f2; border-color: rgba(24,119,242,0.3); }
.share-fb:hover { background: rgba(24,119,242,0.08); border-color: #1877f2; }
.fb-comments-wrap { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.fb-comments-title {
  font-size: 15px; font-weight: 600; color: var(--fg);
  margin-bottom: 16px; display: flex; align-items: center;
}

@media (max-width: 900px) {
  .single-layout { grid-template-columns: 1fr; padding: 0 20px; }
  .single-toc { display: none; }
  .single-hero-banner { height: 220px !important; }
}

/* ===== GIÁ CŨ GẠCH NGANG (SALE PRICE) ===== */
/*
 * Concept:
 *   WooCommerce Regular Price  = giá gốc (hiển thị gạch ngang, màu mờ)
 *   WooCommerce Sale Price     = giá hiện tại (hiển thị nổi bật, màu đỏ)
 *   Khi không có sale          = chỉ hiển thị regular price bình thường
 */
.price-current {
  /* Kế thừa màu từ .shop-price (đỏ) hoặc .product-price (đỏ) */
}
.price-old {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--fg3);
  text-decoration: line-through;
  margin-left: 8px;
  opacity: 0.75;
  vertical-align: middle;
}
/* Điều chỉnh kích thước theo ngữ cảnh */
.shop-price .price-old    { font-size: 12px; margin-left: 5px; }
.product-price .price-old { font-size: 18px; font-weight: 400; }

/* Sản phẩm đã bán — toàn bộ giá mờ + gạch ngang */
.is-sold-price                  { color: var(--fg3) !important; }
.is-sold-price .price-current   { text-decoration: line-through; }
.is-sold-price .price-old       { display: none; } /* chỉ giữ 1 giá gạch ngang */

/* ===== TÌNH TRẠNG SẢN PHẨM (badge dưới tên trên card archive) ===== */
.shop-condition {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg3);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.shop-condition::before {
  content: '◈ ';
  font-size: 9px;
  opacity: 0.6;
}

/* ===== FILTER BAR — SEPARATOR & STATUS CHIPS ===== */
/* Đường kẻ dọc ngăn cách chip danh mục và chip trạng thái */
.filter-bar-sep {
  width: 1px;
  align-self: stretch;
  background: var(--border2);
  flex-shrink: 0;
  margin: 2px 4px;
  border-radius: 1px;
}

/* Màu active riêng cho từng loại trạng thái */
.filter-chip-status.available.active {
  background: rgba(42,102,72,0.14);
  color: var(--accent3);
  border-color: var(--accent3);
}
.filter-chip-status.hold.active {
  background: rgba(232,160,32,0.14);
  color: #b87a00;
  border-color: rgba(232,160,32,0.55);
}
.filter-chip-status.sold.active {
  background: rgba(200,71,42,0.1);
  color: var(--accent);
  border-color: rgba(200,71,42,0.35);
}

/* Hover hint khớp màu từng loại */
.filter-chip-status.available:hover { color: var(--accent3); border-color: var(--accent3); }
.filter-chip-status.hold:hover      { color: #b87a00;        border-color: rgba(232,160,32,0.55); }
.filter-chip-status.sold:hover      { color: var(--accent);  border-color: rgba(200,71,42,0.35); }
