/* ============================================================
   DEALVIET - Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800;900&family=Lexend+Deca:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #FF5722;
  --primary-dark: #E64A19;
  --secondary: #FF9800;
  --accent: #FFC107;
  --shopee: #EE4D2D;
  --tiktok: #010101;
  --tiktok-pink: #FE2C55;
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --surface2: #FAFAFA;
  --border: #EBEBEB;
  --text: #1A1A1A;
  --text-muted: #757575;
  --text-light: #9E9E9E;
  --success: #4CAF50;
  --danger: #F44336;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --transition: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 15px; }

body {
  font-family: 'Lexend', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── HEADER ── */
.header {
  background: var(--shopee);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(238,77,45,.3);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}

.logo {
  font-family: 'Lexend Deca', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }

.search-bar {
  flex: 1;
  display: flex;
  background: #fff;
  border-radius: 24px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  position: relative;
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 20px;
  font-size: .95rem;
  color: var(--text);
  border-radius: 24px;
  min-width: 0;
  background: transparent;
}
.search-bar button { display: none; }

/* Search dropdown */
#search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  z-index: 9999;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid #f0f0f0;
}

.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.header-actions a {
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.3);
  font-size: .85rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.header-actions a:hover { background: rgba(255,255,255,.15); }

/* NAV */
.nav { background: var(--primary-dark); }
.nav-list {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 2px;
  padding: 0 16px;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list a {
  color: rgba(255,255,255,.85);
  padding: 14px 16px;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-list a:hover, .nav-list a.active {
  color: #fff;
  border-bottom-color: var(--accent);
  background: rgba(255,255,255,.08);
}

/* ── HERO BANNER ── */
.hero {
  background: linear-gradient(135deg, var(--shopee) 0%, var(--primary) 50%, var(--secondary) 100%);
  padding: 40px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; display: flex; align-items: center; gap: 32px; }
.hero-text h1 { font-family: 'Lexend Deca', sans-serif; font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.hero-text p { font-size: 1.1rem; opacity: .9; margin-bottom: 24px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .85rem;
  font-weight: 600;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: flex;
  divide: auto;
  padding: 16px 0;
  gap: 0;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item .value { font-family: 'Lexend Deca', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.stat-item .label { font-size: .78rem; color: var(--text-muted); }

/* ── SECTION ── */
.section { padding: 32px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-family: 'Lexend Deca', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .icon { font-size: 1.5rem; }
.view-all {
  color: var(--primary);
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid var(--primary);
  border-radius: 16px;
  transition: var(--transition);
}
.view-all:hover { background: var(--primary); color: #fff; }

/* ── PRODUCT CARD ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.product-card .img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface2);
  position: relative;
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.product-card:hover img { transform: scale(1.05); }

.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--danger);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 1;
}

.platform-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 1;
  letter-spacing: .3px;
}
.platform-badge.shopee { background: var(--shopee); color: #fff; }
.platform-badge.tiktok { background: var(--tiktok); color: #fff; }

.hot-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #FF5722, #FF9800);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 0 0 8px 8px;
  z-index: 2;
}

.product-info { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.product-name {
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  color: var(--text);
  flex: 1;
}
.product-prices { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.price-sale { font-size: 1rem; font-weight: 700; color: var(--danger); }
.price-original { font-size: .78rem; color: var(--text-light); text-decoration: line-through; }
.product-meta { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; color: var(--text-muted); }
.rating { color: #FF9800; }

.btn-buy-card {
  display: block;
  text-align: center;
  background: var(--shopee);
  color: #fff;
  padding: 10px;
  font-weight: 700;
  font-size: .85rem;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: var(--transition);
  margin-top: auto;
}
.btn-buy-card:hover { background: var(--primary-dark); color: #fff; }

/* ── BANNER SECTION ── */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .banner-grid { grid-template-columns: 1fr; } }

.banner-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/7;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
  text-decoration: none;
  color: #fff;
}
.banner-card:hover { transform: translateY(-4px); }
.banner-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.banner-card:hover img { transform: scale(1.05); }
.banner-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}
.banner-card-content {
  position: relative; z-index: 1;
  padding: 16px;
  width: 100%;
}
.banner-card-label {
  font-size: .72rem; font-weight: 700;
  background: var(--shopee); color: #fff;
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; margin-bottom: 6px;
  letter-spacing: .4px; text-transform: uppercase;
}
.banner-card-title {
  font-family: 'Lexend Deca', sans-serif;
  font-size: 1.1rem; font-weight: 800;
  line-height: 1.3; margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.banner-card-desc {
  font-size: .78rem; opacity: .9;
  line-height: 1.4;
}
.banner-card-cta {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px; padding: 5px 14px;
  background: #fff; color: var(--primary);
  border-radius: 20px; font-size: .78rem;
  font-weight: 700; transition: var(--transition);
}
.banner-card:hover .banner-card-cta { background: var(--primary); color: #fff; }

/* ── VOUCHER SECTION ── */
.voucher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

/* ── VOUCHER CARD — Shopee Style ── */
.voucher-card {
  background: var(--surface);
  border-radius: 10px;
  display: flex;
  align-items: stretch;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  overflow: hidden;
  border: 1px solid #eee;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.voucher-card:hover {
  box-shadow: 0 6px 20px rgba(238,77,45,.15);
  transform: translateY(-2px);
}

/* Notch effect trái/phải */
.voucher-card::before,
.voucher-card::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  background: var(--bg);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.voucher-card::before { left: calc(30% - 8px); border: 1px solid #eee; border-left: none; border-top: none; }
.voucher-card::after  { left: calc(30% - 8px); display: none; }

/* Phần trái — màu nền */
.voucher-left {
  width: 30%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  position: relative;
  text-align: center;
}
.voucher-left::after {
  content: '';
  position: absolute;
  right: 0; top: 12px; bottom: 12px;
  width: 1px;
  border-right: 2px dashed rgba(255,255,255,.4);
}

.voucher-left.shopee  { background: linear-gradient(135deg, #EE4D2D 0%, #FF7043 100%); }
.voucher-left.tiktok  { background: linear-gradient(135deg, #010101 0%, #FE2C55 100%); }
.voucher-left.green   { background: linear-gradient(135deg, #00B14F 0%, #1DC071 100%); }
.voucher-left.blue    { background: linear-gradient(135deg, #0084FF 0%, #00C6FF 100%); }
.voucher-left.orange  { background: linear-gradient(135deg, #FF6B35 0%, #F7C59F 100%); }

.voucher-left-label {
  font-size: .65rem;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: .5px;
  background: rgba(0,0,0,.2);
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.voucher-left-value {
  font-family: 'Lexend Deca', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.voucher-left-sub {
  font-size: .68rem;
  color: rgba(255,255,255,.85);
  margin-top: 4px;
  line-height: 1.3;
}

/* Phần phải — nội dung */
.voucher-right {
  flex: 1;
  padding: 12px 14px 12px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.voucher-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  font-weight: 700;
  color: #FF6B35;
  border: 1px solid #FF6B35;
  border-radius: 4px;
  padding: 2px 6px;
  margin-bottom: 4px;
  width: fit-content;
}
.voucher-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.voucher-min {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.voucher-progress-wrap {
  margin-bottom: 6px;
}
.voucher-progress-bar {
  height: 4px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 3px;
}
.voucher-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #EE4D2D, #FF9800);
  border-radius: 4px;
  width: 70%;
}
.voucher-progress-text {
  font-size: .68rem;
  color: var(--danger);
  font-weight: 600;
}
.voucher-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.voucher-expire-small {
  font-size: .7rem;
  color: var(--text-muted);
}
.btn-voucher-get {
  background: #00B14F;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 18px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  flex-shrink: 0;
}
.btn-voucher-get:hover { background: #009940; color: #fff; transform: scale(1.03); }
.btn-voucher-get.shopee-style { background: var(--shopee); }
.btn-voucher-get.shopee-style:hover { background: #d63d1e; }

/* Giữ btn-copy cho backward compat */
.btn-copy {
  background: var(--primary); color: #fff; border: none;
  border-radius: 8px; padding: 8px 14px; font-size: .82rem;
  font-weight: 600; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-copy:hover { background: var(--primary-dark); }
.btn-copy.copied { background: var(--success); }

/* ── BLOG SECTION ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.blog-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--surface2); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-body { padding: 16px; }
.blog-category { font-size: .75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.blog-title { font-size: .95rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { font-size: .78rem; color: var(--text-muted); }

/* ── CATEGORY PILLS ── */
.category-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.category-pills::-webkit-scrollbar { display: none; }
.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 8px 16px;
  white-space: nowrap;
  font-size: .85rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.pill:hover, .pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pill .emoji { font-size: 1.1rem; }

/* ── FILTER BAR ── */
.filter-bar {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: var(--shadow);
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label { font-size: .82rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.filter-group select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: .85rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  cursor: pointer;
  background: #fff;
}
.filter-group select:focus { border-color: var(--primary); }
.filter-results { margin-left: auto; font-size: .82rem; color: var(--text-muted); }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 32px 0; }
.page-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── PRODUCT DETAIL ── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.product-gallery { border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.product-gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 16px; }
.product-sticky { position: sticky; top: 80px; }
.product-platform { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 16px; margin-bottom: 12px; }
.product-platform.shopee { background: #FFF0ED; color: var(--shopee); }
.product-platform.tiktok { background: #FFF0F3; color: var(--tiktok-pink); }
.product-h1 { font-family: 'Lexend Deca', sans-serif; font-size: 1.5rem; font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.price-block { background: #FFF8F7; border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px; }
.price-sale-big { font-size: 2rem; font-weight: 800; color: var(--danger); }
.price-orig-big { font-size: 1rem; color: var(--text-light); text-decoration: line-through; }
.discount-big { background: var(--danger); color: #fff; border-radius: 6px; padding: 2px 8px; font-size: .82rem; font-weight: 700; margin-left: 8px; }
.product-stats { display: flex; gap: 20px; padding: 12px 0; border-top: 1px solid var(--border); margin-top: 12px; }
.product-stat { text-align: center; }
.product-stat .v { font-weight: 700; color: var(--text); }
.product-stat .l { font-size: .75rem; color: var(--text-muted); }

.btn-buy-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
  width: 100%;
  margin-bottom: 12px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(255,87,34,.3);
  text-decoration: none;
}
.btn-buy-main:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,87,34,.4); }

.btn-wishlist {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  background: var(--surface);
}
.btn-wishlist:hover { border-color: var(--primary); color: var(--primary); }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.pros, .cons { background: var(--surface); border-radius: var(--radius-sm); padding: 14px; }
.pros { border-left: 3px solid var(--success); }
.cons { border-left: 3px solid var(--danger); }
.pros h4 { color: var(--success); font-size: .85rem; margin-bottom: 8px; }
.cons h4 { color: var(--danger); font-size: .85rem; margin-bottom: 8px; }
.pros li, .cons li { font-size: .84rem; padding: 3px 0; display: flex; align-items: flex-start; gap: 6px; }
.pros li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.cons li::before { content: '✗'; color: var(--danger); font-weight: 700; flex-shrink: 0; }

/* ── BREADCRUMB ── */
.breadcrumb { padding: 12px 0; font-size: .82rem; color: var(--text-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ── BLOG DETAIL ── */
.blog-content h2 { font-family: 'Lexend Deca', sans-serif; font-size: 1.3rem; font-weight: 800; margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--border); color: var(--text); }
.blog-content h3 { font-size: 1.1rem; font-weight: 700; margin: 20px 0 10px; color: var(--text); }
.blog-content p { margin-bottom: 14px; line-height: 1.75; }
.blog-content ul, .blog-content ol { margin: 12px 0 16px 20px; }
.blog-content li { margin-bottom: 6px; line-height: 1.6; }
.blog-content strong { font-weight: 700; }
.blog-content a { color: var(--primary); border-bottom: 1px solid transparent; transition: var(--transition); }
.blog-content a:hover { border-bottom-color: var(--primary); }

/* ── ADMIN ── */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px;
  background: #1a1a2e;
  color: #fff;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}
.sidebar-logo { padding: 24px 20px; font-family: 'Lexend Deca', sans-serif; font-size: 1.3rem; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-logo span { color: var(--accent); }
.sidebar-menu { padding: 12px 0; }
.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  font-weight: 500;
  transition: var(--transition);
}
.sidebar-item a:hover, .sidebar-item a.active { color: #fff; background: rgba(255,255,255,.08); border-left: 3px solid var(--accent); }
.sidebar-section { padding: 16px 20px 6px; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.35); font-weight: 600; }

.admin-main { margin-left: 240px; flex: 1; padding: 24px; background: var(--bg); min-height: 100vh; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-title { font-family: 'Lexend Deca', sans-serif; font-size: 1.5rem; font-weight: 800; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-card .icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-card .data .v { font-family: 'Lexend Deca', sans-serif; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-card .data .l { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

.admin-table-wrap { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th { background: var(--surface2); padding: 12px 16px; text-align: left; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface2); }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; font-family: inherit; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 5px 10px; font-size: .78rem; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--primary); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

.badge-status { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: .75rem; font-weight: 700; }
.badge-active { background: #E8F5E9; color: var(--success); }
.badge-inactive { background: #FFEBEE; color: var(--danger); }
.badge-new { background: #E3F2FD; color: #1976D2; }
.badge-done { background: #E8F5E9; color: var(--success); }

/* ── FOOTER ── */
.footer { background: #1a1a2e; color: rgba(255,255,255,.7); padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { font-family: 'Lexend Deca', sans-serif; color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.footer a { color: rgba(255,255,255,.6); font-size: .85rem; display: block; margin-bottom: 8px; transition: var(--transition); }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; font-size: .8rem; }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #1a1a2e;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
  max-width: 300px;
  border-left: 3px solid var(--accent);
}
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── LOADING ── */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--surface2) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── COUNTDOWN ── */
.countdown { display: flex; gap: 6px; align-items: center; font-size: .82rem; }
.countdown-unit { background: var(--danger); color: #fff; padding: 3px 8px; border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 32px; text-align: center; }
.countdown-sep { font-weight: 700; color: var(--danger); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header-actions { display: none; }
  .hero-text h1 { font-size: 1.6rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats-inner { display: grid; grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .product-detail { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .sidebar { display: none; }
  .admin-main { margin-left: 0; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .blog-grid { grid-template-columns: 1fr; }
}