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

:root {
  --white: #ffffff;
  --off-white: #f8f8f6;
  --gray-50: #f4f4f2;
  --gray-100: #ebebea;
  --gray-200: #d4d4d2;
  --gray-400: #9e9e9b;
  --gray-600: #5c5c5a;
  --gray-800: #2a2a28;
  --black: #111110;
  --red: #d94f3a;
  --green: #2e7d52;
  --blue: #1a56a0;
  --gold: #c8a84b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --radius: 10px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ══ NAV ══ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-100);
  padding: 0 32px;
  display: flex; align-items: center; gap: 24px;
  height: 60px;
}
.nav-logo {
  font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800;
  font-size: 20px; color: var(--black);
  text-decoration: none; white-space: nowrap;
}
.nav-logo span { color: var(--red); }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  text-decoration: none; color: var(--gray-600);
  font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--gray-50); color: var(--black); }
.nav-search {
  flex: 1; max-width: 280px;
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: 8px; padding: 7px 12px;
}
.nav-search input {
  border: none; background: transparent; outline: none;
  font-family: inherit; font-size: 14px; color: var(--black); width: 100%;
}
.nav-search input::placeholder { color: var(--gray-400); }
.nav-actions { display: flex; gap: 8px; margin-left: auto; }

/* ══ BUTTONS ══ */
.btn {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px; font-weight: 500;
  padding: 8px 18px; border-radius: 8px;
  border: none; cursor: pointer;
  transition: all .15s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-ghost { background: transparent; color: var(--gray-600); border: 1px solid var(--gray-200); }
.btn-ghost:hover { background: var(--gray-50); color: var(--black); border-color: var(--gray-400); }
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--gray-800); color: var(--white); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { opacity: .88; }
.btn-sm { font-size: 13px; padding: 5px 12px; border-radius: 7px; }

/* ══ CATEGORY STRIP ══ */
.category-strip {
  background: var(--white); border-bottom: 1px solid var(--gray-100);
  padding: 0 32px; display: flex; gap: 2px; overflow-x: auto;
  scrollbar-width: none;
}
.category-strip::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; padding: 9px 14px; font-size: 13px; font-weight: 500;
  color: var(--gray-600); border-bottom: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.cat-chip:hover { color: var(--black); }
.cat-chip.active { color: var(--black); border-color: var(--black); }

/* ══ ALERTS ══ */
.alert-success-bar {
  background: #e6f4ee; color: var(--green); border-bottom: 1px solid #c3e4d2;
  padding: 10px 32px; font-size: 14px; font-weight: 500;
}
.alert-error-bar {
  background: #fde8e8; color: var(--red); border-bottom: 1px solid #f5c6c6;
  padding: 10px 32px; font-size: 14px; font-weight: 500;
}
.alert-error-inline {
  background: #fde8e8; color: var(--red); border: 1px solid #f5c6c6;
  border-radius: 8px; padding: 12px 16px; margin-bottom: 16px;
  font-size: 14px;
}

/* ══ HERO ══ */
.hero {
  padding: 64px 32px 48px; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-label {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--red); margin-bottom: 16px;
}
.hero-title {
  font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800;
  font-size: clamp(34px,4vw,52px); line-height: 1.1;
   color: var(--black); margin-bottom: 18px;
}
.hero-title em { font-style: italic; color: var(--gray-600); }
.hero-desc { font-size: 16px; color: var(--gray-600); line-height: 1.7; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 36px;
  padding-top: 28px; border-top: 1px solid var(--gray-100);
}
.hero-stat-n { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 28px; color: var(--black); line-height: 1; }
.hero-stat-l { font-size: 13px; color: var(--gray-400); margin-top: 4px; }

.hero-featured {
  background: var(--off-white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-img-area {
  background: linear-gradient(135deg,#f0f0ee,#e4e4e0);
  height: 220px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-img-icon { font-size: 80px; }
.score-badge {
  position: absolute; bottom: 16px; right: 16px;
  background: var(--white); border-radius: 10px;
  padding: 8px 14px; box-shadow: var(--shadow-md);
  font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 24px; color: var(--black); line-height: 1;
}
.score-badge small { font-family: 'Be Vietnam Pro', sans-serif; font-size: 11px; color: var(--gray-400); display: block; }
.hero-card-body { padding: 20px 24px 24px; }
.hero-card-tag { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.hero-card-name { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 22px; color: var(--black); margin-bottom: 6px; }
.stars { color: var(--gold); font-size: 14px; margin-bottom: 4px; }
.hero-card-meta { font-size: 13px; color: var(--gray-400); }

/* ══ SECTIONS ══ */
.section { padding: 48px 32px; max-width: 1200px; margin: 0 auto; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 26px; color: var(--black);  }
.section-link { font-size: 13px; color: var(--gray-400); text-decoration: none; }
.section-link:hover { color: var(--black); }
.section-divider { height: 1px; background: var(--gray-100); margin: 0 32px; }

/* ══ PRODUCT GRID ══ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 18px; }
.product-card-link { text-decoration: none; color: inherit; display: block; }
.product-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s; cursor: pointer;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-img {
  background: var(--gray-50); height: 150px;
  display: flex; align-items: center; justify-content: center; font-size: 52px;
}
.product-body { padding: 14px 16px 16px; }
.product-cat { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--gray-400); margin-bottom: 4px; }
.product-name { font-weight: 600; font-size: 15px; color: var(--black); margin-bottom: 8px; }
.product-score-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.score-pill {
  font-size: 12px; font-weight: 700; padding: 3px 9px;
  border-radius: 20px; color: var(--white); background: var(--gray-600);
}
.score-pill.high { background: var(--green); }
.score-pill.mid { background: var(--gold); }
.score-pill.low { background: var(--red); }
.review-count { font-size: 12px; color: var(--gray-400); }
.price-range { font-size: 13px; color: var(--gray-600); font-weight: 500; }

/* ══ REVIEWS ══ */
.reviews-grid { display: flex; flex-direction: column; gap: 16px; }
.review-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 22px;
  transition: box-shadow .2s;
}
.review-card:hover { box-shadow: var(--shadow-md); }
.review-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gray-100); display: flex; align-items: center;
  justify-content: center; font-size: 16px; flex-shrink: 0;
}
.reviewer-name { font-weight: 600; font-size: 14px; color: var(--black); }
.review-date { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.review-score {
  margin-left: auto; font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800;
  font-size: 26px; color: var(--black); line-height: 1; text-align: right;
}
.review-score small { font-family: 'Be Vietnam Pro', sans-serif; font-size: 12px; color: var(--gray-400); display: block; }
.review-product-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: 6px; padding: 4px 10px; margin-bottom: 10px;
  font-size: 13px; color: var(--gray-600); font-weight: 500; text-decoration: none;
}
.review-title { font-weight: 600; font-size: 15px; color: var(--black); margin-bottom: 8px; }
.review-excerpt { font-size: 14px; color: var(--gray-600); line-height: 1.7; margin-bottom: 14px; }
.review-footer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.like-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--gray-400); background: none;
  border: none; cursor: pointer; padding: 5px 10px; border-radius: 6px;
  transition: color .15s, background .15s; font-family: inherit;
}
.like-btn:hover, .like-btn.liked { color: var(--red); background: #fde8e8; }
.like-count { font-size: 13px; color: var(--gray-400); }
.comment-list { margin: 10px 0 14px; padding-left: 16px; border-left: 2px solid var(--gray-100); }
.comment-item { font-size: 13px; margin-bottom: 6px; }
.comment-author { font-weight: 600; color: var(--black); margin-right: 6px; }
.comment-text { color: var(--gray-600); }
.comment-date { color: var(--gray-400); font-size: 11px; margin-left: 8px; }
.reject-reason {
  background: #fde8e8; color: var(--red); border-radius: 6px;
  padding: 8px 12px; font-size: 13px; margin-bottom: 12px;
}

/* ══ FILTERS ══ */
.filter-bar { margin-bottom: 24px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-label { font-size: 13px; color: var(--gray-400); }
.filter-chip {
  padding: 6px 14px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--gray-200); border-radius: 20px;
  background: var(--white); color: var(--gray-600);
  cursor: pointer; text-decoration: none; transition: all .15s;
}
.filter-chip:hover, .filter-chip.active { background: var(--black); color: var(--white); border-color: var(--black); }
.filter-select {
  padding: 7px 12px; font-size: 13px; font-family: inherit;
  border: 1px solid var(--gray-200); border-radius: 8px;
  background: var(--white); color: var(--black); outline: none; cursor: pointer;
}

/* ══ DETAIL PAGE ══ */
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.product-detail-img {
  background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); height: 280px;
  display: flex; align-items: center; justify-content: center;
  font-size: 96px; margin-bottom: 24px;
}
.product-meta-tag { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.product-detail-name { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 30px; color: var(--black);  margin-bottom: 6px; }
.product-date { font-size: 13px; color: var(--gray-400); margin-bottom: 12px; }
.product-desc { font-size: 15px; color: var(--gray-600); line-height: 1.7; margin-top: 8px; }
.breadcrumb { font-size: 13px; color: var(--gray-400); margin-bottom: 24px; }
.breadcrumb a { color: var(--gray-400); text-decoration: none; }
.breadcrumb a:hover { color: var(--black); }

.spec-section { margin-bottom: 32px; }
.spec-section-title { font-weight: 600; font-size: 15px; color: var(--black); margin-bottom: 12px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.spec-row { padding: 10px 14px; background: var(--gray-50); border-radius: 4px; }
.spec-row-full { grid-column: span 2; }
.spec-key { color: var(--gray-400); font-size: 12px; margin-bottom: 2px; }
.spec-val { font-weight: 500; font-size: 14px; color: var(--black); }

.price-section { margin-bottom: 32px; }
.price-section-title { font-weight: 600; font-size: 15px; color: var(--black); margin-bottom: 12px; }
.price-table-wrap { border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th { background: var(--gray-50); padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--gray-600); border-bottom: 1px solid var(--gray-100); }
.price-table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--gray-50); }
.price-store { font-weight: 500; color: var(--black); }
.price-amount { font-weight: 700; color: var(--black); font-size: 15px; }
.price-date { color: var(--gray-400); font-size: 13px; }
.price-note { color: var(--blue); font-size: 13px; text-decoration: none; }
.price-note:hover { text-decoration: underline; }
.price-warn {
  background: #fffbe6; border: 1px solid #f0e0a0; border-radius: 8px;
  padding: 9px 14px; font-size: 13px; color: #7a6010; margin-bottom: 4px;
}

.reviews-section { margin-top: 8px; }
.reviews-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form .form-input { flex: 1; min-width: 140px; }

/* ══ SIDEBAR ══ */
.sidebar-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.sidebar-card-title { font-weight: 600; font-size: 14px; color: var(--black); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-100); }
.score-display { text-align: center; padding: 12px 0; }
.score-big { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 52px; color: var(--black); line-height: 1; }
.score-out { font-size: 20px; color: var(--gray-400); }
.score-stars { color: var(--gold); font-size: 18px; margin: 6px 0; }
.score-count { font-size: 13px; color: var(--gray-400); }
.related-item {
  display: flex; gap: 12px; align-items: center; padding: 10px 0;
  border-bottom: 1px solid var(--gray-100); text-decoration: none; color: inherit;
  transition: background .15s; border-radius: 6px;
}
.related-item:last-child { border-bottom: none; }
.related-item:hover { color: var(--black); }
.related-icon { font-size: 28px; flex-shrink: 0; }
.related-name { font-weight: 500; font-size: 14px; color: var(--black); }
.related-meta { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* ══ FORMS ══ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--gray-600); margin-bottom: 6px; }
.form-input, .form-textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--gray-200);
  border-radius: 8px; font-family: inherit; font-size: 14px;
  color: var(--black); outline: none; transition: border-color .15s;
  background: var(--white);
}
.form-input:focus, .form-textarea:focus { border-color: var(--gray-600); }
.form-textarea { resize: vertical; min-height: 100px; }
.score-slider-row { display: flex; align-items: center; gap: 12px; }
.score-slider {
  flex: 1; -webkit-appearance: none; height: 4px;
  background: var(--gray-200); border-radius: 4px; outline: none; cursor: pointer;
}
.score-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--black); cursor: pointer; }
.score-num { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 24px; color: var(--black); min-width: 28px; text-align: center; }
.form-check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-600); margin-bottom: 8px; }
.form-card {
  background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 24px;
}

/* ══ AUTH ══ */
.auth-page { display: flex; justify-content: center; align-items: flex-start; padding: 60px 16px; min-height: calc(100vh - 120px); }
.auth-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 20px; color: var(--black); margin-bottom: 24px; }
.auth-logo span { color: var(--red); }
.auth-title { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 26px; color: var(--black); margin-bottom: 8px; }
.auth-desc { font-size: 14px; color: var(--gray-400); margin-bottom: 24px; line-height: 1.6; }
.auth-footer { text-align: center; font-size: 14px; color: var(--gray-400); margin-top: 20px; }
.auth-footer a { color: var(--black); font-weight: 500; }
.auth-demo {
  margin-top: 20px; padding: 14px; background: var(--gray-50);
  border: 1px solid var(--gray-100); border-radius: 8px; font-size: 13px;
}
.auth-demo-title { font-weight: 600; color: var(--gray-600); margin-bottom: 8px; }
.auth-demo-row { margin-bottom: 4px; color: var(--gray-400); }
.auth-demo-row code { background: var(--white); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--gray-200); font-size: 12px; color: var(--black); }

/* ══ PROFILE ══ */
.profile-header {
  background: var(--gray-50); border-bottom: 1px solid var(--gray-100);
  padding: 36px 32px; display: flex; align-items: center; gap: 24px;
}
.profile-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--gray-200); display: flex; align-items: center;
  justify-content: center; font-size: 28px; flex-shrink: 0;
}
.profile-name { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 24px; color: var(--black); }
.profile-role { font-size: 13px; color: var(--gray-400); margin-top: 4px; }
.profile-stats { display: flex; gap: 24px; margin-top: 10px; }
.profile-stat { font-size: 13px; color: var(--gray-600); }
.profile-stat strong { color: var(--black); }
.profile-nav { display: flex; gap: 12px; flex-wrap: wrap; }
.profile-nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: var(--radius); font-size: 14px; font-weight: 500;
  color: var(--black); text-decoration: none; transition: all .15s;
}
.profile-nav-item:hover { background: var(--gray-100); }

/* ══ STATUS BADGES ══ */
.status-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.status-pending { background: #fff3e0; color: #e07020; }
.status-approved { background: #e6f4ee; color: var(--green); }
.status-rejected { background: #fde8e8; color: var(--red); }

/* ══ EMPTY STATE ══ */
.empty-state { text-align: center; padding: 60px 32px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-title { font-size: 16px; color: var(--gray-400); }

/* ══ FOOTER ══ */
.site-footer { border-top: 1px solid var(--gray-100); margin-top: 48px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-logo { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 18px; color: var(--black); margin-bottom: 10px; }
.footer-logo span { color: var(--red); }
.footer-desc { font-size: 13px; color: var(--gray-400); line-height: 1.7; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-800); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--gray-400); text-decoration: none; margin-bottom: 8px; }
.footer-col a:hover { color: var(--black); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 18px 32px;
  border-top: 1px solid var(--gray-100);
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--gray-400);
}

/* ══ ADMIN ══ */
.admin-body { background: var(--gray-50); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--black); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-brand {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.1); text-decoration: none;
}
.admin-brand-logo { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 17px; color: var(--white); }
.admin-brand-logo em { color: var(--red); font-style: normal; }
.admin-badge { font-size: 10px; font-weight: 700; background: var(--red); color: var(--white); padding: 2px 7px; border-radius: 10px; letter-spacing: .5px; }
.admin-nav { padding: 12px 0; flex: 1; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.6); text-decoration: none;
  transition: color .15s, background .15s; border-radius: 0;
}
.admin-nav-item:hover { color: var(--white); background: rgba(255,255,255,.06); }
.admin-nav-item.active { color: var(--white); background: rgba(255,255,255,.1); }
.admin-sidebar-footer { border-top: 1px solid rgba(255,255,255,.1); padding: 12px 0; }
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  background: var(--white); border-bottom: 1px solid var(--gray-100);
  padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.admin-topbar-title { font-weight: 600; font-size: 16px; color: var(--black); }
.admin-topbar-user { font-size: 14px; color: var(--gray-600); }
.admin-content { padding: 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
.admin-stat-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 20px;
}
.admin-stat-icon { font-size: 24px; margin-bottom: 8px; }
.admin-stat-n { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 32px; color: var(--black); line-height: 1; margin-bottom: 4px; }
.admin-stat-l { font-size: 13px; color: var(--gray-400); }
.admin-section-title { font-weight: 600; font-size: 15px; color: var(--black); margin-bottom: 14px; }
.table-wrap { border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; background: var(--white); margin-bottom: 24px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--gray-50); padding: 11px 16px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--gray-600); border-bottom: 1px solid var(--gray-100); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); font-size: 14px; vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .detail-layout { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { width: 180px; }
}
@media (max-width: 640px) {
  .site-nav { padding: 0 16px; }
  .nav-links, .nav-search { display: none; }
  .hero { padding: 32px 16px 24px; }
  .section { padding: 28px 16px; }
  .section-divider { margin: 0 16px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { display: none; }
  .footer-inner { grid-template-columns: 1fr; padding: 28px 16px; }
  .footer-bottom { flex-direction: column; gap: 4px; padding: 16px; }
  .spec-list { grid-template-columns: 1fr; }
}

/* ══ WRITE REVIEW PAGE ══ */
.write-review-page { background: var(--off-white); min-height: calc(100vh - 120px); }
.write-review-header {
  background: var(--white); border-bottom: 1px solid var(--gray-100);
  padding: 32px 0;
}
.wr-header-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.wr-back { font-size: 13px; color: var(--gray-400); text-decoration: none; display: block; margin-bottom: 10px; }
.wr-back:hover { color: var(--black); }
.wr-title { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 28px; color: var(--black); margin-bottom: 4px; }
.wr-subtitle { font-size: 14px; color: var(--gray-400); }

.wr-layout {
  max-width: 1100px; margin: 0 auto; padding: 32px;
  display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start;
}
.wr-main {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 32px;
}
.wr-section { margin-bottom: 28px; }
.wr-section-title {
  font-weight: 700; font-size: 14px; color: var(--black);
  margin-bottom: 12px; letter-spacing: -.1px;
}
.wr-sp-select { font-size: 15px; padding: 12px 14px; }
.wr-tieude { font-size: 18px; font-weight: 500; padding: 12px 14px; }
.wr-char-count { text-align: right; font-size: 12px; color: var(--gray-400); margin-top: 4px; }

/* Score stars */
.wr-score-row { display: flex; align-items: center; gap: 16px; }
.wr-score-stars { display: flex; gap: 3px; cursor: pointer; }
.star {
  font-size: 26px; color: var(--gray-200); transition: color .1s, transform .1s;
  user-select: none; line-height: 1;
}
.star.active, .star.hover { color: var(--gold); transform: scale(1.1); }
.wr-score-num {
  font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 36px; color: var(--black);
  line-height: 1; min-width: 52px;
}
.wr-score-num small { font-family: 'Be Vietnam Pro', sans-serif; font-size: 14px; color: var(--gray-400); }
.wr-score-label {
  background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: 8px; padding: 6px 14px; font-size: 14px; font-weight: 600;
  color: var(--gray-600);
}

/* Quill editor */
.wr-editor-wrap {
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden;
}
.wr-editor-wrap .ql-toolbar {
  border: none; border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50); padding: 10px 12px;
}
.wr-editor-wrap .ql-container {
  border: none; font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15px; line-height: 1.8;
}
.wr-editor-wrap .ql-editor {
  min-height: 400px; padding: 20px 24px;
  color: var(--black);
}
.wr-editor-wrap .ql-editor.ql-blank::before {
  color: var(--gray-400); font-style: normal; font-size: 15px;
}
.wr-editor-wrap .ql-editor img {
  max-width: 100%; border-radius: 8px; margin: 12px 0;
  box-shadow: var(--shadow-md); display: block;
}
.wr-editor-wrap .ql-editor h1 { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 24px; margin: 20px 0 10px; }
.wr-editor-wrap .ql-editor h2 { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 20px; margin: 18px 0 8px; }
.wr-editor-wrap .ql-editor h3 { font-size: 17px; font-weight: 700; margin: 14px 0 6px; }
.wr-editor-wrap .ql-editor blockquote {
  border-left: 3px solid var(--gray-200); padding-left: 16px;
  color: var(--gray-600); margin: 12px 0; font-style: italic;
}
.wr-editor-hint { font-size: 13px; color: var(--gray-400); margin-top: 8px; }

.wr-img-counter {
  background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: 8px; padding: 8px 14px; font-size: 13px;
  font-weight: 600; margin-bottom: 20px; color: var(--gray-600);
}
.wr-submit-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wr-submit-btn { font-size: 15px; padding: 11px 28px; }
.wr-note { font-size: 13px; color: var(--gray-400); margin-left: 8px; }

/* Sidebar tips */
.wr-sidebar { position: sticky; top: 80px; }
.wr-tip-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 20px;
}
.wr-tip-title {
  font-weight: 700; font-size: 14px; color: var(--black);
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-100);
}
.wr-tip-item { margin-bottom: 12px; }
.wr-tip-head { font-weight: 600; font-size: 13px; color: var(--black); margin-bottom: 2px; }
.wr-tip-body { font-size: 13px; color: var(--gray-400); line-height: 1.6; }
.wr-tip-ol { padding-left: 16px; font-size: 13px; color: var(--gray-600); line-height: 2; }

/* ══ REVIEW BODY (full HTML rendering in ChiTiet) ══ */
.review-body {
  font-size: 15px; color: var(--gray-800); line-height: 1.85;
  margin-bottom: 16px;
}
.review-body img {
  max-width: 100%; border-radius: 10px; margin: 16px 0;
  box-shadow: var(--shadow-md); display: block;
  cursor: zoom-in;
}
.review-body h1 { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 22px; margin: 24px 0 10px; color: var(--black); }
.review-body h2 { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 18px; margin: 20px 0 8px; color: var(--black); }
.review-body h3 { font-size: 16px; font-weight: 700; margin: 16px 0 6px; color: var(--black); }
.review-body strong { font-weight: 700; color: var(--black); }
.review-body em { font-style: italic; }
.review-body blockquote {
  border-left: 3px solid var(--gray-200); padding: 4px 0 4px 16px;
  color: var(--gray-600); margin: 12px 0; font-style: italic;
}
.review-body ul, .review-body ol { padding-left: 20px; margin: 8px 0; }
.review-body li { margin-bottom: 4px; }
.review-body a { color: var(--blue); text-decoration: underline; }

/* Image lightbox on click */
.img-lightbox {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.85); align-items: center; justify-content: center;
  cursor: zoom-out;
}
.img-lightbox.open { display: flex; }
.img-lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }

@media (max-width: 860px) {
  .wr-layout { grid-template-columns: 1fr; padding: 16px; }
  .wr-sidebar { position: static; }
  .wr-main { padding: 20px; }
}

/* ══ REVIEWS PAGE - NEWSPAPER GRID ══ */
.reviews-page { background: var(--white); }

.reviews-page-header {
  max-width: 1200px; margin: 0 auto;
  padding: 36px 32px 24px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px;
}
.reviews-page-title {
  font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800;
  font-size: 32px; color: var(--black); line-height: 1.1;
}
.reviews-page-sub { font-size: 14px; color: var(--gray-400); margin-top: 4px; }

.reviews-filter-bar {
  border-bottom: 1px solid var(--gray-100);
  background: var(--white); position: sticky; top: 60px; z-index: 9;
}
.reviews-filter-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
}

/* Featured article */
.reviews-featured-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 28px 32px 0;
}
.review-article-link { text-decoration: none; color: inherit; display: block; }

.review-article--featured {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 0; border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .2s;
}
.review-article--featured:hover { box-shadow: var(--shadow-lg); }

.review-article--featured .review-article-thumb {
  height: 380px;
}
.review-article--featured .review-article-body {
  padding: 32px 28px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--white);
}
.review-article--featured .review-article-title--lg {
  font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800;
  font-size: 22px; line-height: 1.35; color: var(--black);
  margin-bottom: 12px;
}
.review-article--featured .review-article-excerpt {
  font-size: 15px; color: var(--gray-600); line-height: 1.75;
  margin-bottom: 20px;
}

/* Grid articles */
.reviews-grid-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 24px 32px 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-article {
  border: 1px solid var(--gray-100); border-radius: var(--radius);
  overflow: hidden; background: var(--white);
  transition: box-shadow .2s, transform .2s;
}
.review-article:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* Thumbnail */
.review-article-thumb {
  position: relative; overflow: hidden;
  height: 200px; background: var(--gray-50);
  display: flex; align-items: center; justify-content: center;
}
.review-article-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.review-article:hover .review-article-thumb img { transform: scale(1.04); }
.review-article-thumb--placeholder { background: linear-gradient(135deg, var(--gray-50), var(--gray-100)); }
.review-thumb-icon { font-size: 56px; opacity: .7; }

.review-score-overlay {
  position: absolute; top: 10px; right: 10px;
}
.review-score-overlay .score-pill { font-size: 13px; padding: 4px 10px; box-shadow: var(--shadow-sm); }

/* Article body */
.review-article-body { padding: 16px 18px 18px; }
.review-article-category {
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--red); margin-bottom: 7px;
}
.review-article-title {
  font-family: 'Be Vietnam Pro', sans-serif; font-weight: 700;
  font-size: 16px; line-height: 1.45; color: var(--black);
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.review-article-excerpt {
  font-size: 14px; color: var(--gray-600); line-height: 1.65; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.review-article-excerpt--sm { -webkit-line-clamp: 2; }
.review-article-meta {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; border-top: 1px solid var(--gray-100); padding-top: 12px;
}
.review-article-author { display: flex; align-items: center; gap: 6px; }
.author-avatar { font-size: 14px; }
.author-name { font-size: 13px; font-weight: 600; color: var(--black); }
.review-article-date { font-size: 12px; color: var(--gray-400); }
.review-article-stats { font-size: 12px; color: var(--gray-400); margin-left: auto; }

/* Home reviews grid */
.home-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.review-article--home .review-article-thumb { height: 170px; }
.review-article--home .review-article-body { padding: 14px 16px 16px; }

/* ══ GOOGLE BUTTON ══ */
.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 16px; border-radius: 8px; border: 1px solid var(--gray-200);
  background: var(--white); color: var(--gray-800);
  font-family: 'Be Vietnam Pro', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .15s, box-shadow .15s;
}
.btn-google:hover { background: var(--gray-50); box-shadow: var(--shadow-sm); }

/* Auth divider */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--gray-400); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-100);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .reviews-grid-wrap { grid-template-columns: repeat(2, 1fr); }
  .review-article--featured { grid-template-columns: 1fr; }
  .review-article--featured .review-article-thumb { height: 240px; }
  .review-article--featured .review-article-body { padding: 20px; }
}
@media (max-width: 600px) {
  .reviews-page-header { flex-direction: column; align-items: flex-start; }
  .reviews-grid-wrap { grid-template-columns: 1fr; padding: 16px; }
  .reviews-featured-wrap { padding: 16px; }
  .home-reviews-grid { grid-template-columns: 1fr; }
}

/* ══ IMAGE UPLOAD AREA ══ */
.img-upload-area {
  border: 2px dashed var(--gray-200); border-radius: var(--radius);
  min-height: 140px; transition: border-color .2s; cursor: pointer;
  overflow: hidden;
}
.img-upload-area:hover, .img-upload-area.drag-over {
  border-color: var(--black); background: var(--gray-50);
}
.img-upload-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px; gap: 8px; cursor: pointer;
}
.img-upload-icon { font-size: 32px; }
.img-upload-text { font-size: 14px; font-weight: 500; color: var(--black); }
.img-upload-hint { font-size: 12px; color: var(--gray-400); }

.img-preview-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px;
}
.img-preview-item {
  position: relative; aspect-ratio: 1;
  border-radius: 8px; overflow: hidden; border: 1px solid var(--gray-100);
}
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-num {
  position: absolute; top: 4px; left: 4px;
  background: rgba(0,0,0,.55); color: white;
  font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 10px;
}

/* Ảnh hiện tại trong SuaSanPham */
.img-current-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.img-current-item {
  aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--gray-100);
}
.img-current-item img { width: 100%; height: 100%; object-fit: cover; }

/* ══ PRODUCT GALLERY (ChiTiet) ══ */
.sp-gallery { margin-bottom: 24px; }
.sp-gallery-main {
  width: 100%; height: 320px; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--gray-100);
  background: var(--gray-50); margin-bottom: 10px;
}
.sp-gallery-main img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .3s;
}
.sp-gallery-main img:hover { transform: scale(1.03); cursor: zoom-in; }
.sp-gallery-thumbs {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.sp-gallery-thumb {
  width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--gray-200); cursor: pointer;
  transition: border-color .15s;
}
.sp-gallery-thumb:hover, .sp-gallery-thumb.active {
  border-color: var(--black);
}
.sp-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
