/* ══════════════════════════════════════════════════════════════════
   VETT BOOKS — HỆ THỐNG THIẾT KẾ (DESIGN SYSTEM) v2.0
   Website bán sách ôn thi THPT — trang chủ, danh mục, chi tiết,
   giỏ hàng, checkout, tra cứu đơn hàng, admin, campaign landing page
   Quy ước class: tiền tố "v-" (Vett) theo hướng BEM rút gọn.
   ══════════════════════════════════════════════════════════════════ */

/* ─── 1. DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
  /* Màu thương hiệu — tông đỏ cam đặc trưng VETT */
  --v-brand-50:  #FFF1EC;
  --v-brand-100: #FFDCCF;
  --v-brand-400: #F1552F;
  --v-brand-500: #E8391F;   /* màu chính: CTA, giá, điểm nhấn */
  --v-brand-600: #C22C13;   /* hover/active */
  --v-brand-700: #9B220E;

  /* Màu phụ — sắc xanh ngọc cho công cụ trực tuyến */
  --v-teal-50:  #E4F7F5;
  --v-teal-400: #17B3A5;
  --v-teal-500: #00A99D;
  --v-teal-600: #048577;

  /* Màu vàng — ưu đãi, combo, huy hiệu */
  --v-gold-50:  #FFF6E0;
  --v-gold-400: #FFC94A;
  --v-gold-500: #FFB020;
  --v-gold-600: #E0910A;

  /* Nền & bề mặt — ấm như trang giấy */
  --v-paper:    #FFF9F2;
  --v-paper-2:  #FFF2E4;
  --v-white:    #FFFFFF;
  --v-line:     #F0E4D6;

  /* Chữ */
  --v-ink-900:  #241B15;   /* tiêu đề */
  --v-ink-700:  #4A3F37;   /* thân bài đậm */
  --v-ink-500:  #7A6F65;   /* thân bài phụ */
  --v-ink-300:  #B5A99C;   /* placeholder, chú thích nhẹ */

  /* Font */
  --v-font-display: 'Sora', 'Be Vietnam Pro', system-ui, sans-serif;
  --v-font-body:    'Be Vietnam Pro', system-ui, sans-serif;

  /* Bo góc */
  --v-radius-sm:   8px;
  --v-radius-md:   14px;
  --v-radius-lg:   22px;
  --v-radius-xl:   32px;
  --v-radius-pill: 999px;
  --v-container:   1200px;

  /* Đổ bóng */
  --v-shadow-sm: 0 1px 2px rgba(36,27,21,.06), 0 1px 1px rgba(36,27,21,.04);
  --v-shadow-md: 0 8px 24px rgba(36,27,21,.08), 0 2px 6px rgba(36,27,21,.05);
  --v-shadow-lg: 0 20px 48px rgba(36,27,21,.16), 0 6px 16px rgba(36,27,21,.08);
  --v-shadow-xl: 0 32px 64px rgba(36,27,21,.20), 0 12px 24px rgba(36,27,21,.10);

  /* Transition */
  --v-ease: cubic-bezier(.22,.75,.28,1);
  --v-transition: .18s var(--v-ease);

  /* Z-index */
  --v-z-header:  40;
  --v-z-fab:     50;
  --v-z-overlay: 60;
  --v-z-drawer:  61;
  --v-z-modal:   70;
  --v-z-toast:   80;
}

/* ─── 2. RESET & BASE ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--v-font-body);
  color: var(--v-ink-700);
  background: var(--v-paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
}

main, #main-content {
  display: block;
  width: 100%;
  overflow: visible !important;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
input, select, textarea { font-family: inherit; }

:focus-visible {
  outline: 2.5px solid var(--v-teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4, .v-font-display {
  font-family: var(--v-font-display);
  color: var(--v-ink-900);
  font-weight: 700;
  letter-spacing: -.01em;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--v-paper-2); }
::-webkit-scrollbar-thumb { background: var(--v-line); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--v-ink-300); }

/* ─── 3. LAYOUT ────────────────────────────────────────────────────── */
.v-container { width: 100%; max-width: var(--v-container); margin: 0 auto; padding: 0 20px; }
.v-section { padding: 72px 0; }
.v-section--tight { padding: 44px 0; }
.v-section--alt { background: var(--v-paper-2); }
.v-section-head { max-width: 100%; margin: 0 0 40px; }

.v-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--v-brand-600); margin: 0 0 12px;
}
.v-eyebrow::before {
  content: ''; width: 18px; height: 2px;
  background: var(--v-brand-500); border-radius: 2px;
}

.v-h1 { font-size: clamp(30px, 4.5vw, 52px); line-height: 1.08; }
.v-h2 { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.15; }
.v-h3 { font-size: clamp(18px, 2.2vw, 26px); line-height: 1.25; }
.v-sub { color: var(--v-ink-500); font-size: 16px; margin-top: 12px; }

.v-grid { display: grid; gap: 20px; }
.v-grid--2 { grid-template-columns: repeat(2, 1fr); }
.v-grid--3 { grid-template-columns: repeat(3, 1fr); }
.v-grid--4 { grid-template-columns: repeat(4, 1fr); }
.v-grid--5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }

@media (max-width: 1280px) {
  .v-grid--5 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (max-width: 980px) {
  .v-grid--3, .v-grid--4, .v-grid--5 { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  .v-container { padding: 0 12px; }
  .v-grid--2, .v-grid--3, .v-grid--4, .v-grid--5 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .v-product__body { padding: 8px 8px 10px; }
  .v-product__name { font-size: 12.5px; min-height: 34px; line-height: 1.35; }
  .v-product__price { font-size: 15px; }
  .v-product__price-old { font-size: 11px; }
  .v-product__actions { gap: 4px; }
  .v-product__actions .v-btn { padding: 6px 4px; font-size: 11px; }
}

/* ─── 4. BUTTON ────────────────────────────────────────────────────── */
.v-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--v-font-body); font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: var(--v-radius-pill);
  border: 1.5px solid transparent;
  transition: transform var(--v-transition), box-shadow var(--v-transition),
              background var(--v-transition), color var(--v-transition);
  white-space: nowrap; cursor: pointer; text-decoration: none;
}
.v-btn:active { transform: scale(.97); }

.v-btn--primary { background: var(--v-brand-500); color: #fff; box-shadow: var(--v-shadow-sm); }
.v-btn--primary:hover { background: var(--v-brand-600); box-shadow: var(--v-shadow-md); }
.v-btn--ghost { background: transparent; border-color: var(--v-ink-900); color: var(--v-ink-900); }
.v-btn--ghost:hover { background: var(--v-ink-900); color: #fff; }
.v-btn--teal { background: var(--v-teal-500); color: #fff; }
.v-btn--teal:hover { background: var(--v-teal-600); }
.v-btn--soft { background: var(--v-brand-50); color: var(--v-brand-600); border-color: var(--v-brand-100); }
.v-btn--soft:hover { background: var(--v-brand-100); }
.v-btn--gold { background: var(--v-gold-500); color: var(--v-ink-900); }
.v-btn--gold:hover { background: var(--v-gold-600); }
.v-btn--white { background: #fff; color: var(--v-ink-900); box-shadow: var(--v-shadow-md); }
.v-btn--white:hover { box-shadow: var(--v-shadow-lg); }
.v-btn--sm { padding: 9px 18px; font-size: 13.5px; }
.v-btn--lg { padding: 17px 36px; font-size: 17px; }
.v-btn--block { width: 100%; }
.v-btn--icon { padding: 11px; border-radius: 50%; }
.v-btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ─── 5. BADGE / CHIP / TAG ────────────────────────────────────────── */
.v-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; padding: 4px 10px;
  border-radius: var(--v-radius-pill);
}
.v-badge--brand  { background: var(--v-brand-50);  color: var(--v-brand-600); }
.v-badge--teal   { background: var(--v-teal-50);   color: var(--v-teal-600); }
.v-badge--gold   { background: var(--v-gold-50);   color: var(--v-gold-600); }
.v-badge--dark   { background: var(--v-ink-900);   color: #fff; }
.v-badge--green  { background: #dcfce7; color: #166534; }
.v-badge--red    { background: #fee2e2; color: #991b1b; }

.v-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--v-radius-pill);
  border: 1.5px solid var(--v-line); background: var(--v-white);
  font-size: 14px; font-weight: 600; color: var(--v-ink-700);
  transition: all var(--v-transition); cursor: pointer;
}
.v-chip:hover { border-color: var(--v-brand-400); color: var(--v-brand-600); }
.v-chip.active,
.v-chip[aria-selected="true"] {
  background: var(--v-ink-900); border-color: var(--v-ink-900); color: #fff;
}

/* ─── 6. CARD ──────────────────────────────────────────────────────── */
.v-card {
  background: var(--v-white); border-radius: var(--v-radius-md);
  border: 1px solid var(--v-line);
  transition: transform var(--v-transition), box-shadow var(--v-transition),
              border-color var(--v-transition);
}

/* Thẻ sản phẩm — Compact Grid Mode */
.v-product { display: flex; flex-direction: column; overflow: hidden; position: relative; transition: transform var(--v-transition), box-shadow var(--v-transition), border-color var(--v-transition); }
.v-product:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); border-color: var(--v-brand-200); }

/* ─── Bìa sách: Tỉ lệ 1:1 Vuông chuẩn, ảnh tràn hết khung ─── */
.v-product__cover {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  border-radius: var(--v-radius-md) var(--v-radius-md) 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--v-line);
}
.v-product__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  transition: transform .25s ease;
  position: relative;
  z-index: 1;
}
.v-product:hover .v-product__cover-img {
  transform: scale(1.04);
}
/* Fallback khi không có ảnh — tô màu từ MauBia */
.v-product__cover-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 14px 16px;
  background-size: cover; background-position: center;
}
.v-product__cover-content::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.55) 100%);
}
.v-product__cover-tag {
  position: relative; z-index: 1;
  font-family: var(--v-font-display); font-size: 10px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.8);
}
.v-product__cover-title {
  position: relative; z-index: 1;
  font-family: var(--v-font-display); font-size: 15px; font-weight: 700;
  color: #fff; line-height: 1.25;
}
.v-product__ribbon { position: absolute; top: 8px; left: 8px; z-index: 3; }

/* ─── Body: Thông tin & Nút bấm vừa vặn ─── */
.v-product__body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.v-product__meta { font-size: 10.5px; color: var(--v-ink-300); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-product__name {
  font-size: 13.5px; font-weight: 700; color: var(--v-ink-900); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 36px;
}
.v-product__rating { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--v-ink-500); }
.v-product__stars { color: var(--v-gold-500); font-size: 11px; letter-spacing: -1px; }
.v-product__price-row { display: flex; align-items: center; gap: 5px; margin-top: 2px; flex-wrap: wrap; }
.v-product__price { font-family: var(--v-font-display); font-size: 16.5px; font-weight: 700; color: #d9381e; }
.v-product__price-old { font-size: 11.5px; color: var(--v-ink-300); text-decoration: line-through; }
.v-product__discount { font-size: 10px; font-weight: 700; color: #fff; background: #d9381e; padding: 1px 5px; border-radius: var(--v-radius-pill); }

/* Nút bấm thu gọn vừa khít khung thẻ sản phẩm */
.v-product__actions { display: flex; gap: 5px; margin-top: auto; padding-top: 8px; width: 100%; }
.v-product__actions .v-btn {
  padding: 7px 8px;
  font-size: 12px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Grid mode: info & price stack dọc tự nhiên trong flex column */
.v-product__info { display: flex; flex-direction: column; gap: 4px; }
.v-product__price-row-wrap { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 4px; }



/* Thẻ tính năng */
.v-feature { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.v-feature__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--v-teal-50); color: var(--v-teal-600);
  flex-shrink: 0;
}
.v-feature__title { font-size: 18px; font-weight: 700; color: var(--v-ink-900); }
.v-feature__desc { font-size: 14.5px; color: var(--v-ink-500); line-height: 1.7; }
.v-feature__link {
  font-size: 14px; font-weight: 700; color: var(--v-teal-600);
  display: inline-flex; align-items: center; gap: 5px; margin-top: auto;
  transition: gap var(--v-transition);
}
.v-feature__link:hover { gap: 10px; }

.v-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) {
  .v-features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .v-features-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

/* Thẻ combo cao cấp */
.v-combo {
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--v-white);
  border: 1.5px solid var(--v-line);
  border-radius: var(--v-radius-lg);
  box-shadow: var(--v-shadow-sm);
  transition: transform var(--v-transition), box-shadow var(--v-transition), border-color var(--v-transition);
}
.v-combo:hover {
  transform: translateY(-4px);
  box-shadow: var(--v-shadow-lg);
  border-color: var(--v-brand-300);
}
.v-combo--feat {
  border: 2px solid var(--v-brand-500);
  background: linear-gradient(180deg, #FFF9F5 0%, #FFFFFF 100%);
  box-shadow: 0 8px 30px rgba(232, 57, 31, 0.12);
}
.v-combo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.v-combo__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--v-brand-50);
  color: var(--v-brand-600);
  border: 1px solid var(--v-brand-100);
  padding: 3px 10px;
  border-radius: var(--v-radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.v-combo--feat .v-combo__badge {
  background: var(--v-brand-500);
  color: #ffffff;
  border-color: var(--v-brand-500);
}
.v-combo__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--v-ink-900);
  line-height: 1.25;
  margin-bottom: 4px;
}
.v-combo__desc {
  font-size: 13px;
  color: var(--v-ink-500);
  line-height: 1.45;
  margin-bottom: 10px;
  min-height: 38px;
}

/* Dải ảnh bìa sách thật trong Combo */
.v-combo__covers-wrap {
  position: relative;
  background: #F8FAFC;
  border: 1px solid var(--v-line);
  border-radius: var(--v-radius-md);
  padding: 10px 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.v-combo__covers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.v-combo__cover-thumb {
  position: relative;
  width: 74px;
  height: 74px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.08);
  flex-shrink: 0;
  transition: transform var(--v-transition), box-shadow var(--v-transition);
  background: #ffffff;
  cursor: pointer;
}
.v-combo__cover-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.v-combo__cover-thumb:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 8px 20px rgba(0,0,0,.20);
  z-index: 2;
}

/* ─── HỆ THỐNG HIỂN THỊ ẢNH SÁCH CHUẨN TỈ LỆ 1:1 DÙNG CHUNG TOÀN TRANG ─── */
.v-book-cover {
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 8px;
  border: 1px solid var(--v-line, rgba(0,0,0,0.08));
  background: #f8fafc;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.v-book-cover--sm { width: 56px !important; height: 56px !important; border-radius: 6px; }
.v-book-cover--md { width: 64px !important; height: 64px !important; border-radius: 8px; }
.v-book-cover--lg { width: 76px !important; height: 76px !important; border-radius: 8px; }
.v-book-cover--fluid { width: 100% !important; height: 100% !important; border-radius: inherit; }

/* Quyền lợi đính kèm */
.v-combo__perks {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 7px 10px;
  background: var(--v-paper);
  border-radius: var(--v-radius-sm);
  margin-bottom: 10px;
  font-size: 11.5px;
  color: var(--v-ink-600);
}
.v-combo__perk-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

/* Khối Giá & Tiết kiệm thu hút thị giác */
.v-combo__price-box {
  margin-top: auto;
  padding: 10px 12px;
  background: #fafafa;
  border-radius: var(--v-radius-md);
  border: 1px solid var(--v-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v-combo__price-row { display: flex; align-items: baseline; gap: 8px; }
.v-combo__price { font-family: var(--v-font-display); font-size: 22px; font-weight: 800; color: #d9381e; }
.v-combo__price-old { font-size: 13px; color: var(--v-ink-400); text-decoration: line-through; }
.v-combo__save-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 700; color: #b91c1c;
  background: #fef2f2; border: 1px dashed #fca5a5;
  padding: 3px 8px; border-radius: var(--v-radius-pill);
  width: fit-content;
}
.v-combo__save-tag strong { font-weight: 800; font-size: 12px; color: #991b1b; }

@media (max-width: 980px) {
  .v-grid--combo {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .v-grid--combo {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .v-combo {
    padding: 18px 16px;
  }
  .v-combo__cover-thumb {
    width: 72px;
    height: 72px;
    aspect-ratio: 1 / 1;
  }
}

/* Thẻ đánh giá */
.v-review { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.v-review__stars { display: flex; gap: 2px; color: var(--v-gold-500); font-size: 15px; }
.v-review__text { font-size: 14.5px; color: var(--v-ink-700); line-height: 1.7; }
.v-review__who { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.v-review__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--v-brand-50); color: var(--v-brand-600);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.v-review__name { font-size: 13.5px; font-weight: 700; color: var(--v-ink-900); }
.v-review__role { font-size: 12px; color: var(--v-ink-300); }
.v-review__score { font-size: 12px; font-weight: 700; color: var(--v-teal-600); margin-top: 2px; }

/* Swiper cho đánh giá sách */
.book-reviews-swiper {
  width: 100%;
  overflow: hidden;
}
.book-reviews-swiper .swiper-slide {
  height: auto;
  display: flex;
}
.book-reviews-swiper .v-review {
  width: 100%;
}

/* ─── 7. VÉ ĐẾM NGƯỢC (SIGNATURE COMPONENT) ───────────────────────── */
.v-ticket {
  position: relative; display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 28px;
  background: var(--v-ink-900); border-radius: var(--v-radius-lg);
  padding: 30px 40px; color: #fff; overflow: visible;
  background-image: radial-gradient(circle at 80% 50%, rgba(232,57,31,.15) 0%, transparent 60%);
}
.v-ticket::before, .v-ticket::after {
  content: ''; position: absolute; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; background: var(--v-paper); border-radius: 50%;
}
.v-ticket::before { left: -14px; }
.v-ticket::after { right: -14px; }
.v-ticket__perf {
  position: absolute; top: 0; bottom: 0; left: 68%;
  border-left: 2px dashed rgba(255,255,255,.2);
}
.v-ticket__label {
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--v-gold-400); margin-bottom: 8px;
}
.v-ticket__title { font-family: var(--v-font-display); font-size: 22px; font-weight: 700; line-height: 1.3; }
.v-ticket__note { font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 8px; }
.v-ticket__count { display: flex; gap: 12px; padding-left: 28px; }
.v-ticket__unit { text-align: center; min-width: 58px; }
.v-ticket__num {
  font-family: var(--v-font-display); font-size: 32px; font-weight: 700;
  line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.75) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.v-ticket__unit-label {
  font-size: 10.5px; color: rgba(255,255,255,.5); margin-top: 6px;
  text-transform: uppercase; letter-spacing: .06em;
}
@media (max-width: 760px) {
  .v-ticket { grid-template-columns: 1fr; gap: 20px; padding: 24px 28px; }
  .v-ticket__perf { display: none; }
  .v-ticket__count { padding-left: 0; justify-content: space-between; }
}

/* ─── 8. HEADER & ĐIỀU HƯỚNG ───────────────────────────────────────── */
.v-topbar {
  background: var(--v-ink-900); color: rgba(255,255,255,.85); font-size: 13px;
}
.v-topbar .v-container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; padding-bottom: 8px; gap: 16px;
}
.v-topbar__msg {
  display: flex; align-items: center; gap: 8px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v-topbar__right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.v-topbar__right a {
  display: flex; align-items: center; gap: 6px; opacity: .9;
  transition: opacity var(--v-transition); white-space: nowrap;
}
.v-topbar__right a:hover { opacity: 1; color: var(--v-gold-400); }
@media (max-width: 640px) {
  .v-topbar .v-container { padding-top: 6px; padding-bottom: 6px; gap: 10px; }
  .v-topbar__msg { font-size: 11.5px; }
  .v-topbar__right { gap: 8px; font-size: 11.5px; }
  .v-topbar__right a { padding: 4px 6px; min-height: 32px; display: inline-flex; align-items: center; }
  .v-topbar__right a span { display: none; }
}
@media (max-width: 480px) {
  .v-topbar__msg svg { display: none; }
}

.v-header {
  position: sticky; top: 0; z-index: var(--v-z-header);
  background: rgba(255,249,242,.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--v-line);
  transition: transform 0.3s cubic-bezier(0.22, 0.75, 0.28, 1), box-shadow var(--v-transition);
}
.v-header.scrolled { box-shadow: var(--v-shadow-sm); }
.v-header .v-container {
  display: flex; align-items: center; gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
}
.v-header__logo img { height: 40px; }
.v-header__logo:hover { opacity: .85; }
.v-nav { display: flex; align-items: center; gap: 26px; margin-left: 4px; flex: 1; }
.v-nav a {
  font-size: 14.5px; font-weight: 600; color: var(--v-ink-700);
  position: relative; padding: 4px 0;
  transition: color var(--v-transition);
}
.v-nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--v-brand-500); border-radius: 1px;
  transform: scaleX(0); transition: transform var(--v-transition);
}
.v-nav a:hover { color: var(--v-brand-600); }
.v-nav a:hover::after, .v-nav a.active::after { transform: scaleX(1); }
.v-nav a.active { color: var(--v-brand-600); }

.v-header__actions { display: flex; align-items: center; gap: 10px; }
.v-icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--v-ink-900); background: var(--v-white);
  border: 1px solid var(--v-line);
  transition: all var(--v-transition); cursor: pointer;
}
.v-icon-btn:hover { border-color: var(--v-brand-500); color: var(--v-brand-600); }
.v-icon-btn__count {
  position: absolute; top: -4px; right: -4px;
  background: var(--v-brand-500); color: #fff;
  font-size: 10.5px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  border: 1.5px solid var(--v-paper);
}
.v-header__burger { display: none; }
@media (max-width: 980px) {
  .v-nav { display: none; }
  .v-header__burger { display: flex; flex-shrink: 0; }
  .v-header .v-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 12px;
  }
  .v-header__logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin: 0 auto;
    text-align: center;
  }
  .v-header__logo img {
    height: 36px;
    width: auto;
  }
  .v-header__actions {
    flex-shrink: 0;
  }
}

/* Mobile menu */
.v-mobile-menu {
  position: fixed; inset: 0; z-index: calc(var(--v-z-overlay) + 1);
  background: var(--v-paper); overflow-y: auto;
  transform: translateX(-100%); transition: transform .3s var(--v-ease);
}
.v-mobile-menu.open { transform: translateX(0); }
.v-mobile-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--v-line);
}
.v-mobile-menu__nav { padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.v-mobile-menu__nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--v-radius-md);
  font-size: 16px; font-weight: 600; color: var(--v-ink-900);
  transition: background var(--v-transition);
}
.v-mobile-menu__nav a:hover { background: var(--v-paper-2); color: var(--v-brand-600); }

/* ─── 9. HERO ──────────────────────────────────────────────────────── */
.v-hero {
  padding: 56px 0 48px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--v-paper) 0%, var(--v-paper-2) 100%);
}
.v-hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,57,31,.06) 0%, transparent 70%);
  pointer-events: none;
}
.v-hero .v-container {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}
.v-hero__title { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.1; }
.v-hero__title em { font-style: normal; color: var(--v-brand-500); }
.v-hero__desc {
  font-size: 17px; color: var(--v-ink-500); margin-top: 18px;
  max-width: 480px; line-height: 1.7;
}
.v-hero__cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.v-hero__trust { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.v-hero__trust-num {
  font-family: var(--v-font-display); font-size: 26px; font-weight: 700; color: var(--v-ink-900);
}
.v-hero__trust-label { font-size: 12.5px; color: var(--v-ink-500); margin-top: 2px; }
.v-hero__trust-divider {
  width: 1px; background: var(--v-line); align-self: stretch; margin: 4px 0;
}

.v-hero__art { position: relative; height: 460px; }
.v-hero__book {
  position: absolute; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.22);
  display: flex; align-items: flex-end; overflow: hidden;
  animation: float 6s ease-in-out infinite; border: 1px solid rgba(255,255,255,.5);
}
.v-hero__book-img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px;
}
.v-hero__book:nth-child(2) { animation-delay: -2s; z-index: 2; }
.v-hero__book:nth-child(3) { animation-delay: -4s; }
.v-hero__book span { font-family: var(--v-font-display); font-weight: 700; color: #fff; font-size: 15px; line-height: 1.3; position: relative; z-index: 1; padding: 16px; }
.v-hero__badge {
  position: absolute; background: var(--v-white); border-radius: var(--v-radius-md);
  padding: 12px 16px; box-shadow: var(--v-shadow-md);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; color: var(--v-ink-900);
  border: 1px solid var(--v-line);
}

@keyframes float {
  0%, 100% { transform: var(--float-transform, rotate(0deg)) translateY(0); }
  50% { transform: var(--float-transform, rotate(0deg)) translateY(-10px); }
}

@media (max-width: 980px) {
  .v-hero .v-container { grid-template-columns: 1fr; }
  .v-hero__art { height: 300px; }
}

/* ─── 10. TABS ──────────────────────────────────────────────────────── */
.v-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }

/* ─── 11. FORM ELEMENTS (CHUẨN HÓA ĐỒNG NHẤT TOÀN HỆ THỐNG VETT) ─────────── */
/* Class chuẩn .v-input áp dụng trực tiếp cho input, select, textarea */
.v-input,
input.v-input,
select.v-input,
textarea.v-input {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--v-radius-md);
  border: 1.5px solid var(--v-line);
  background: #ffffff;
  font-family: var(--v-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--v-ink-900);
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--v-transition), box-shadow var(--v-transition), background-color var(--v-transition);
  appearance: none;
  -webkit-appearance: none;
}

/* Tùy biến icon mũi tên cho select dropdown */
select.v-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Textarea tự do co giãn chiều cao */
textarea.v-input {
  height: auto;
  min-height: 84px;
  padding: 10px 14px;
  line-height: 1.6;
  resize: vertical;
}

/* Hover state */
.v-input:hover,
input.v-input:hover,
select.v-input:hover,
textarea.v-input:hover {
  border-color: var(--v-ink-300);
}

/* Focus state - Viền thương hiệu VETT sang trọng */
.v-input:focus,
input.v-input:focus,
select.v-input:focus,
textarea.v-input:focus {
  border-color: var(--v-brand-500);
  box-shadow: 0 0 0 3.5px rgba(232, 57, 31, 0.14);
  background: #ffffff;
  outline: none;
}

/* Placeholder */
.v-input::placeholder,
input.v-input::placeholder,
textarea.v-input::placeholder {
  color: var(--v-ink-400);
  font-size: 13.5px;
  font-weight: 400;
}

/* Disabled */
.v-input:disabled,
.v-input[disabled] {
  background: var(--v-paper-2);
  color: var(--v-ink-400);
  cursor: not-allowed;
  opacity: 0.75;
}

/* Kích thước biến thể (Variants) */
.v-input--sm {
  height: 34px !important;
  padding: 0 10px !important;
  font-size: 12.5px !important;
  border-radius: 6px !important;
}

.v-input--lg {
  height: 48px !important;
  padding: 0 16px !important;
  font-size: 15px !important;
  border-radius: var(--v-radius-lg) !important;
}

.v-input--pill {
  border-radius: var(--v-radius-pill) !important;
}

.v-input--search {
  padding-left: 38px !important;
}

/* Trạng thái lỗi (Validation Error) */
.v-input--error,
.v-input.is-invalid,
.v-input--error input,
.v-input--error select {
  border-color: #dc2626 !important;
}
.v-input--error:focus,
.v-input.is-invalid:focus {
  box-shadow: 0 0 0 3.5px rgba(220, 38, 38, 0.14) !important;
}
.v-input__error { font-size: 12.5px; color: #dc2626; margin-top: 4px; }
.v-input__hint { font-size: 12.5px; color: var(--v-ink-400); margin-top: 4px; }

/* Hỗ trợ ngược cho cấu trúc wrapper: <div class="v-input"><label>...</label><input></div> */
div.v-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: auto;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
div.v-input label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--v-ink-800);
}
div.v-input > input,
div.v-input > select,
div.v-input > textarea {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--v-radius-md);
  border: 1.5px solid var(--v-line);
  background: #ffffff;
  font-family: var(--v-font-body);
  font-size: 14px;
  color: var(--v-ink-900);
  transition: border-color var(--v-transition), box-shadow var(--v-transition);
  outline: none;
  box-sizing: border-box;
}
div.v-input > textarea {
  height: auto;
  min-height: 84px;
  padding: 10px 14px;
}
div.v-input > input:focus,
div.v-input > select:focus,
div.v-input > textarea:focus {
  border-color: var(--v-brand-500);
  box-shadow: 0 0 0 3.5px rgba(232, 57, 31, 0.14);
}

.v-qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--v-line); border-radius: var(--v-radius-pill);
  overflow: hidden;
}
.v-qty button {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; font-size: 16px; color: var(--v-ink-700);
  transition: background var(--v-transition);
}
.v-qty button:hover { background: var(--v-paper-2); color: var(--v-brand-600); }
.v-qty span {
  min-width: 36px; text-align: center; font-size: 14px; font-weight: 700;
  padding: 0 4px;
}

/* ─── 12. ACCORDION FAQ ─────────────────────────────────────────────── */
.v-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .v-faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.v-faq-list { border-top: 1px solid var(--v-line); }
.v-faq { border-bottom: 1px solid var(--v-line); }
.v-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; font-weight: 700; font-size: 15.5px; color: var(--v-ink-900);
  cursor: pointer;
}
.v-faq__q svg { flex-shrink: 0; transition: transform .25s var(--v-ease); color: var(--v-brand-500); }
.v-faq.open .v-faq__q svg { transform: rotate(180deg); }
.v-faq__a { overflow: hidden; max-height: 0; transition: max-height .35s var(--v-ease); }
.v-faq.open .v-faq__a { max-height: 500px; }
.v-faq__a-inner { font-size: 14.5px; color: var(--v-ink-500); line-height: 1.75; padding-bottom: 20px; padding-right: 32px; }

/* ─── 13. STEPS ──────────────────────────────────────────────────────── */
.v-steps { display: grid; gap: 24px; }
.v-step { display: flex; gap: 18px; align-items: flex-start; }
.v-step__num {
  font-family: var(--v-font-display); font-size: 15px; font-weight: 700;
  color: var(--v-brand-600); background: var(--v-brand-50);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 2px solid var(--v-brand-100);
}
.v-step__content { flex: 1; }
.v-step__title { font-size: 17px; font-weight: 700; color: var(--v-ink-900); }
.v-step__desc { font-size: 14px; color: var(--v-ink-500); line-height: 1.65; margin-top: 6px; }

/* ─── 14. GIỎ HÀNG — MINI CART DRAWER ─────────────────────────────── */
.v-overlay {
  position: fixed; inset: 0;
  background: rgba(36,27,21,.45); z-index: var(--v-z-overlay);
  animation: fadeIn .2s ease;
}
.v-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw); max-width: 100vw; background: var(--v-white);
  z-index: var(--v-z-drawer); display: flex; flex-direction: column;
  box-shadow: var(--v-shadow-xl);
  transform: translateX(100%); transition: transform .3s var(--v-ease);
  pointer-events: none;
}
.v-drawer:not(.open) {
  display: none !important;
}
.v-drawer.open {
  display: flex !important;
  transform: translateX(0);
  pointer-events: auto;
}
.v-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--v-line);
}
.v-drawer__title { font-family: var(--v-font-display); font-size: 18px; font-weight: 700; }
.v-drawer__body {
  flex: 1; overflow-y: auto; padding: 18px 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.v-drawer__empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  color: var(--v-ink-300); text-align: center; padding: 40px;
}
.v-drawer__empty svg { color: var(--v-ink-300); opacity: .5; }

.v-cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--v-line);
  align-items: center;
}
.v-cart-item:last-child { border-bottom: none; }
.v-cart-item__cover {
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid var(--v-line);
}
.v-cart-item__cover-placeholder {
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.v-cart-item__info {
  flex: 1;
  min-width: 0;
  height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.v-cart-item__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--v-ink-900);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.v-cart-item__name:hover { color: var(--v-brand-600); }
.v-cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.v-cart-item__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.v-cart-item__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--v-line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--v-paper-2);
}
.v-cart-item__qty button {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--v-ink-700);
  transition: background 0.15s ease;
}
.v-cart-item__qty button:hover { background: var(--v-line); }
.v-cart-item__qty span {
  min-width: 20px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  padding: 0 4px;
}
.v-cart-item__remove {
  background: none;
  border: none;
  padding: 4px;
  color: var(--v-ink-400);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s ease;
  line-height: 1;
}
.v-cart-item__remove:hover {
  color: #dc2626;
  background: #fee2e2;
}
.v-cart-item__price {
  font-size: 14px;
  color: var(--v-brand-600);
  font-weight: 700;
  white-space: nowrap;
}

.v-drawer__ship-progress {
  background: var(--v-paper-2); border-radius: var(--v-radius-md);
  padding: 14px 16px; margin-top: 4px;
}
.v-drawer__ship-text { font-size: 13px; color: var(--v-ink-700); font-weight: 600; margin-bottom: 8px; }
.v-drawer__ship-bar { height: 6px; background: var(--v-line); border-radius: 3px; overflow: hidden; }
.v-drawer__ship-fill { height: 100%; background: var(--v-teal-500); border-radius: 3px; transition: width .4s var(--v-ease); }

.v-drawer__voucher {
  display: flex; gap: 8px; margin-top: 4px;
}
.v-drawer__voucher input {
  flex: 1; padding: 10px 14px; border-radius: var(--v-radius-pill);
  border: 1.5px solid var(--v-line); font-size: 14px; color: var(--v-ink-900);
  transition: border-color var(--v-transition);
}
.v-drawer__voucher input:focus { border-color: var(--v-brand-500); outline: none; }
.v-drawer__voucher button {
  padding: 10px 18px; border-radius: var(--v-radius-pill);
  background: var(--v-ink-900); color: #fff; font-weight: 700; font-size: 13.5px;
  transition: background var(--v-transition);
}
.v-drawer__voucher button:hover { background: var(--v-brand-600); }

.v-drawer__foot {
  padding: 20px 22px; border-top: 1px solid var(--v-line);
  background: var(--v-paper-2);
}
.v-drawer__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--v-ink-500); margin-bottom: 6px; }
.v-drawer__row strong { color: var(--v-teal-600); }
.v-drawer__total {
  display: flex; justify-content: space-between;
  font-family: var(--v-font-display); font-size: 20px; font-weight: 700;
  color: var(--v-ink-900); margin: 10px 0 16px;
}

/* ─── 15. FREESHIP PROGRESS BAR ─────────────────────────────────────── */
.v-freeship {
  text-align: center; font-size: 13px; padding: 10px 18px;
  background: var(--v-teal-50); color: var(--v-teal-600); font-weight: 600;
  border-radius: var(--v-radius-pill);
}
.v-freeship--done { background: var(--v-teal-500); color: #fff; }

/* ─── 16. CHECKOUT ──────────────────────────────────────────────────── */
.v-checkout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
@media (max-width: 860px) { .v-checkout { grid-template-columns: 1fr; } }

.v-checkout__section { background: var(--v-white); border-radius: var(--v-radius-lg); border: 1px solid var(--v-line); overflow: hidden; }
.v-checkout__section-head {
  padding: 20px 24px; border-bottom: 1px solid var(--v-line);
  font-family: var(--v-font-display); font-weight: 700; font-size: 17px; color: var(--v-ink-900);
  display: flex; align-items: center; gap: 10px;
}
.v-checkout__section-head svg { color: var(--v-brand-500); }
.v-checkout__section-body { padding: 24px; display: flex; flex-direction: column; gap: 20px; }

.v-payment-option {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; border-radius: var(--v-radius-md); border: 2px solid var(--v-line);
  cursor: pointer; transition: border-color var(--v-transition), background var(--v-transition);
}
.v-payment-option:hover { border-color: var(--v-brand-400); }
.v-payment-option.selected { border-color: var(--v-brand-500); background: var(--v-brand-50); }
.v-payment-option__icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--v-brand-50); color: var(--v-brand-600);
}
.v-payment-option.selected .v-payment-option__icon { background: var(--v-brand-500); color: #fff; }
.v-payment-option__title { font-weight: 700; font-size: 15px; color: var(--v-ink-900); }
.v-payment-option__desc { font-size: 13px; color: var(--v-ink-500); margin-top: 3px; }

/* QR Payment */
.v-qr-box {
  text-align: center; padding: 28px;
  background: var(--v-paper-2); border-radius: var(--v-radius-lg);
  border: 1px solid var(--v-line);
}
.v-qr-box__title { font-size: 17px; font-weight: 700; color: var(--v-ink-900); margin-bottom: 6px; }
.v-qr-box__sub { font-size: 13.5px; color: var(--v-ink-500); margin-bottom: 20px; }
.v-qr-box__img {
  width: 200px; height: 200px; border-radius: var(--v-radius-md);
  border: 4px solid var(--v-white); box-shadow: var(--v-shadow-md);
  margin: 0 auto 20px;
}
.v-qr-box__countdown { font-family: var(--v-font-display); font-size: 24px; font-weight: 700; color: var(--v-brand-600); }
.v-qr-box__countdown-label { font-size: 12.5px; color: var(--v-ink-300); margin-top: 4px; }
.v-qr-box__amount {
  font-family: var(--v-font-display); font-size: 28px; font-weight: 700;
  color: var(--v-brand-600); margin: 16px 0 4px;
}
.v-qr-box__note { font-size: 13px; color: var(--v-ink-500); }
.v-qr-box__status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--v-radius-pill);
  font-weight: 700; font-size: 14px; margin-top: 16px;
}
.v-qr-box__status--pending { background: var(--v-gold-50); color: var(--v-gold-600); }
.v-qr-box__status--success { background: #dcfce7; color: #166534; }

/* ─── 17. SIDEBAR SUMMARY ───────────────────────────────────────────── */
.v-order-summary {
  background: var(--v-white); border-radius: var(--v-radius-lg);
  border: 1px solid var(--v-line); padding: 24px;
  position: sticky; top: 90px;
}
.v-order-summary h3 { font-size: 17px; font-weight: 700; margin-bottom: 20px; }
.v-order-summary__item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--v-line); }
.v-order-summary__item:last-of-type { border-bottom: none; }
.v-order-summary__item-cover {
  width: 50px; height: 66px; border-radius: 8px; flex-shrink: 0;
}
.v-order-summary__item-name { font-size: 13.5px; font-weight: 700; color: var(--v-ink-900); }
.v-order-summary__item-price { font-size: 14px; color: var(--v-brand-600); font-weight: 700; margin-top: 4px; }
.v-order-summary__row {
  display: flex; justify-content: space-between;
  font-size: 14px; color: var(--v-ink-500); padding: 6px 0;
}
.v-order-summary__row strong { color: var(--v-teal-600); }
.v-order-summary__total {
  display: flex; justify-content: space-between;
  font-family: var(--v-font-display); font-size: 20px; font-weight: 700;
  color: var(--v-ink-900); padding: 16px 0 0; border-top: 2px solid var(--v-ink-900);
  margin-top: 8px;
}

/* ─── 18. MODAL ─────────────────────────────────────────────────────── */
.v-modal-backdrop {
  position: fixed; inset: 0; z-index: var(--v-z-modal);
  background: rgba(36,27,21,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.v-modal {
  background: var(--v-white); border-radius: var(--v-radius-xl);
  box-shadow: var(--v-shadow-xl); max-width: 560px; width: 100%; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.v-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--v-line);
}
.v-modal__head h3 { font-size: 18px; font-weight: 700; }
.v-modal__body { flex: 1; overflow-y: auto; padding: 24px; }
.v-modal__foot { padding: 16px 24px; border-top: 1px solid var(--v-line); }

/* PDF Viewer trong modal */
.v-pdf-viewer {
  width: 100%; height: 500px; border: 1px solid var(--v-line);
  border-radius: var(--v-radius-md); overflow: hidden;
}

/* ── Modal Đọc Thử Sách: Tối ưu không gian hiển thị rộng rãi & Fullscreen Mobile ── */
.v-modal-backdrop--doc-thu {
  padding: 24px;
}
.v-modal--doc-thu {
  max-width: 1020px;
  width: 100%;
  height: 92vh;
  max-height: 92vh;
  border-radius: var(--v-radius-lg);
  display: flex;
  flex-direction: column;
}
.v-modal__head--doc-thu {
  padding: 10px 16px;
  background: var(--v-surface, #fff);
  border-bottom: 1px solid var(--v-line);
  flex-shrink: 0;
}
.v-modal__body--doc-thu {
  flex: 1 1 0%;
  min-height: 0;
  padding: 0 !important;
  display: flex;
  background: #525659;
  overflow: hidden;
}
.v-pdf-viewer--doc-thu {
  width: 100%;
  height: 100%;
  border: none !important;
  border-radius: 0 !important;
  display: block;
}
@media (max-width: 768px) {
  .v-modal-backdrop--doc-thu {
    padding: 0 !important;
  }
  .v-modal--doc-thu {
    max-width: 100% !important;
    width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
  }
  .v-modal__head--doc-thu {
    padding: 8px 12px;
  }
  .v-doc-thu-subnote {
    display: none !important;
  }
}

/* ─── 19. TOAST / NOTIFICATION ─────────────────────────────────────── */
.v-toast-stack {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--v-z-toast);
  display: flex; flex-direction: column; gap: 10px; max-width: 340px;
}
.v-toast {
  background: var(--v-ink-900); color: #fff; border-radius: var(--v-radius-md);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--v-shadow-lg);
  animation: slideInRight .3s var(--v-ease);
}
.v-toast--success { background: #166534; }
.v-toast--error { background: #991b1b; }
.v-toast--info { background: var(--v-teal-600); }
.v-toast__icon { flex-shrink: 0; }
.v-toast__msg { font-size: 14px; font-weight: 600; }

/* ─── 20. FOOTER ───────────────────────────────────────────────────── */
.v-footer {
  background: var(--v-ink-900); color: rgba(255,255,255,.7);
  padding: 64px 0 28px; margin-top: 40px;
}
.v-footer .v-container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.v-footer__logo { height: 36px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.v-footer__desc { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.5); max-width: 280px; }
.v-footer__badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; }
.v-footer__badge-item {
  background: rgba(255,255,255,.08); border-radius: 8px; padding: 8px 12px;
  font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px;
}
.v-footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.v-footer ul { display: flex; flex-direction: column; gap: 11px; }
.v-footer a { font-size: 13.5px; color: rgba(255,255,255,.6); transition: color var(--v-transition); }
.v-footer a:hover { color: var(--v-gold-400); }
.v-footer__contact { display: flex; flex-direction: column; gap: 12px; }
.v-footer__contact-item { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.v-footer__bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: 12px;
}
.v-social { display: flex; gap: 12px; align-items: center; }
.v-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--v-transition);
  background: transparent;
}
.v-social a:hover { transform: translateY(-2px); }
.v-social a img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
@media (max-width: 900px) { .v-footer .v-container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .v-footer .v-container { grid-template-columns: 1fr; } }

/* ─── 21. FLOATING ACTIONS ──────────────────────────────────────────── */
.v-fab-stack {
  position: fixed; right: 22px; bottom: 22px;
  display: flex; flex-direction: column; gap: 12px; z-index: var(--v-z-fab);
}
.v-fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--v-shadow-md); color: #fff; cursor: pointer;
  transition: transform var(--v-transition), box-shadow var(--v-transition);
  overflow: hidden;
}
.v-fab:hover { transform: scale(1.08); box-shadow: var(--v-shadow-lg); }
.v-fab img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.v-fab--zalo { background: transparent; }
.v-fab--cart { background: var(--v-brand-500); }

@media (max-width: 768px) {
  .v-fab-stack { right: 14px; bottom: 16px; gap: 10px; }
  .v-fab { width: 46px; height: 46px; }
  .v-fab svg { width: 20px; height: 20px; }
}

/* ─── 21.1 MOBILE SMART BOTTOM NAVIGATION & STICKY BUY BAR ────────── */
.v-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--v-brand-500) 0%, #ff7a45 100%);
  z-index: 9999;
  transition: width 0.08s ease-out;
  pointer-events: none;
}

.v-bottom-bar,
.v-product-sticky-bar,
.v-cart-sticky-bar,
.v-checkout-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  /* Tự động trượt ẩn Header lên trên khi cuộn xuống trên mobile */
  .v-header--hidden {
    transform: translateY(-100%) !important;
    box-shadow: none !important;
  }

  /* Ẩn FAB nổi trên mobile vì đã có Bottom Bar / Sticky Bar */
  .v-fab-stack {
    display: none !important;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  /* Khi trang có Sticky Bar chuyên biệt (Sách, Giỏ hàng, Thanh toán) thì ẩn Bottom Bar 5 tab */
  body:has(.v-product-sticky-bar) .v-bottom-bar,
  body:has(.v-cart-sticky-bar) .v-bottom-bar,
  body:has(.v-checkout-sticky-bar) .v-bottom-bar {
    display: none !important;
  }

  /* Khi ở trang xác nhận đơn thanh toán không có sticky bar thì không chừa padding */
  body.is-checkout-page:not(:has(.v-checkout-sticky-bar)) {
    padding-bottom: 0 !important;
  }
  body.is-checkout-page .v-bottom-bar,
  body.is-checkout-page .v-product-sticky-bar,
  body.is-checkout-page .v-fab-stack {
    display: none !important;
  }

  /* 1. Thanh điều hướng đáy (5 tabs) */
  .v-bottom-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--v-z-fab, 50);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--v-line);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transition: transform 0.3s cubic-bezier(0.22, 0.75, 0.28, 1), opacity 0.25s ease;
    transform: translateY(0);
    opacity: 1;
  }

  /* Kịch bản 4: Tự động trượt ẩn khi cuộn xuống đọc bài */
  .v-bottom-bar--hidden {
    transform: translateY(120%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .v-bottom-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 58px;
    padding: 0 4px;
    max-width: 520px;
    margin: 0 auto;
  }

  .v-bottom-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--v-ink-500);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 2px;
    font-family: var(--v-font-body);
    transition: color var(--v-transition);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .v-bottom-tab:active,
  .v-bottom-tab.active {
    color: var(--v-brand-600);
  }

  .v-bottom-tab__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform var(--v-transition);
  }

  .v-bottom-tab.active .v-bottom-tab__icon svg {
    stroke: var(--v-brand-600);
    stroke-width: 2.3;
    transform: scale(1.08);
  }

  .v-bottom-tab__label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
  }

  .v-bottom-tab.active .v-bottom-tab__label {
    color: var(--v-brand-600);
    font-weight: 700;
  }

  .v-bottom-tab__badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: var(--v-radius-pill);
    background: var(--v-brand-500);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1.5px solid #fff;
  }

  /* 2. Thanh chốt đơn Sticky Buy Bar trên Chi tiết sách, Giỏ hàng & Thanh toán */
  .v-product-sticky-bar,
  .v-cart-sticky-bar,
  .v-checkout-sticky-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--v-z-fab, 50);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--v-line);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .v-product-sticky-bar__inner,
  .v-cart-sticky-bar__inner,
  .v-checkout-sticky-bar__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    height: 60px;
    max-width: 520px;
    margin: 0 auto;
  }

  .v-sticky-btn-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 6px;
    color: var(--v-ink-500);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 44px;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .v-sticky-btn-icon:hover,
  .v-sticky-btn-icon:active {
    color: var(--v-brand-600);
  }

  .v-sticky-btn-cart {
    flex: 1;
    padding: 8px 6px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    height: 42px;
    border-color: var(--v-brand-500) !important;
    color: var(--v-brand-600) !important;
    background: var(--v-brand-50) !important;
    border-radius: var(--v-radius-pill) !important;
    white-space: nowrap;
    gap: 4px;
    -webkit-tap-highlight-color: transparent;
  }

  .v-sticky-btn-buy {
    flex: 1.35;
    padding: 8px 10px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    height: 42px;
    border-radius: var(--v-radius-pill) !important;
    white-space: nowrap;
    background: var(--v-brand-500) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(232, 57, 31, 0.25) !important;
    -webkit-tap-highlight-color: transparent;
  }

  /* 3. Nút tiến hành đặt hàng trên trang Giỏ hàng */
  .v-sticky-btn-checkout {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: var(--v-radius-pill) !important;
    background: var(--v-brand-500) !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(232, 57, 31, 0.28) !important;
    -webkit-tap-highlight-color: transparent;
  }

  /* 4. Thanh tổng tiền & hoàn tất trên trang Thanh toán */
  .v-checkout-sticky-total {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }
  .v-checkout-sticky-total__label {
    font-size: 11px;
    color: var(--v-ink-500);
    line-height: 1.2;
  }
  .v-checkout-sticky-total__amount {
    font-size: 18.5px;
    font-weight: 800;
    color: var(--v-brand-600);
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .v-checkout-sticky-btn {
    flex-shrink: 0;
    padding: 10px 20px !important;
    height: 44px;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    border-radius: var(--v-radius-pill) !important;
    background: var(--v-brand-500) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(232, 57, 31, 0.28) !important;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    border: none;
  }
}


/* ─── 22. ADMIN ─────────────────────────────────────────────────────── */
.v-admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.v-admin-sidebar {
  background: var(--v-ink-900); padding: 0; position: sticky; top: 0;
  height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
}
.v-admin-sidebar__logo {
  padding: 20px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.v-admin-sidebar__logo img { height: 32px; filter: brightness(0) invert(1); }
.v-admin-nav { padding: 16px 12px; flex: 1; }
.v-admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: var(--v-radius-md); font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.65); transition: all var(--v-transition); margin-bottom: 4px;
}
.v-admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.v-admin-nav a.active { background: var(--v-brand-500); color: #fff; }

.v-admin-main { background: #F1F5F9; overflow-y: auto; }
.v-admin-topbar {
  background: #fff; border-bottom: 1px solid #E2E8F0;
  padding: 16px 28px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.v-admin-page { padding: 28px; }
.v-admin-page-title { font-size: 24px; font-weight: 700; color: var(--v-ink-900); margin-bottom: 24px; }

.v-stat-card {
  background: #fff; border-radius: var(--v-radius-md); border: 1px solid #E2E8F0;
  padding: 20px 24px; display: flex; align-items: flex-start; gap: 16px;
}
.v-stat-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.v-stat-card__num { font-family: var(--v-font-display); font-size: 28px; font-weight: 700; color: var(--v-ink-900); }
.v-stat-card__label { font-size: 13.5px; color: var(--v-ink-500); margin-top: 3px; }
.v-stat-card__change { font-size: 12.5px; font-weight: 700; margin-top: 6px; }

.v-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--v-radius-md); overflow: hidden; border: 1px solid #E2E8F0; }
.v-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--v-ink-500); background: #F8FAFC; border-bottom: 1px solid #E2E8F0; }
.v-table td { padding: 14px 16px; font-size: 14px; color: var(--v-ink-700); border-bottom: 1px solid #F1F5F9; }
.v-table tr:last-child td { border-bottom: none; }
.v-table tr:hover td { background: #F8FAFC; }

@media (max-width: 768px) {
  .v-admin-layout { grid-template-columns: 1fr; }
  .v-admin-sidebar { height: auto; position: relative; }
}

/* ─── 23. LANDING PAGE (CAMPAIGN) ──────────────────────────────────── */
.v-lp { background: var(--v-ink-900); color: #fff; }
.v-lp-hero {
  padding: 64px 0; text-align: center;
  background: linear-gradient(135deg, #1a0f0b 0%, #241B15 50%, #1a0f0b 100%);
}
.v-lp-hero__title { font-size: clamp(28px, 5vw, 56px); font-weight: 700; line-height: 1.1; }
.v-lp-hero__title span { color: var(--v-gold-400); }
.v-lp-countdown { display: flex; gap: 16px; justify-content: center; margin: 32px 0; }
.v-lp-countdown__unit {
  background: rgba(255,255,255,.1); border-radius: var(--v-radius-md);
  padding: 16px 20px; text-align: center; min-width: 80px;
}
.v-lp-countdown__num { font-family: var(--v-font-display); font-size: 36px; font-weight: 700; }
.v-lp-countdown__label { font-size: 11px; text-transform: uppercase; opacity: .6; letter-spacing: .05em; }

/* ─── 24. UTILITIES ─────────────────────────────────────────────────── */
.hidden { display: none !important; }
.v-flex { display: flex; align-items: center; }
.v-gap-4  { gap: 4px; }  .v-gap-8  { gap: 8px; }
.v-gap-12 { gap: 12px; } .v-gap-16 { gap: 16px; }
.v-gap-24 { gap: 24px; }
.v-mt-0 { margin-top: 0 !important; }
.v-text-center { text-align: center; margin-left: auto; margin-right: auto; }
.v-text-right { text-align: right; }
.v-w-full { width: 100%; }
.v-divider { border: none; border-top: 1px solid var(--v-line); margin: 24px 0; }

/* Scroll reveal */
.v-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--v-ease), transform .6s var(--v-ease); }
.v-reveal.is-in { opacity: 1; transform: translateY(0); }

/* Screen reader only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Skeleton loading */
.v-skeleton {
  background: linear-gradient(90deg, var(--v-paper-2) 25%, var(--v-line) 50%, var(--v-paper-2) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--v-radius-sm);
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* Swiper tweaks */
.swiper-pagination-bullet { background: var(--v-ink-300) !important; opacity: .5; }
.swiper-pagination-bullet-active { background: var(--v-brand-500) !important; opacity: 1; }
.swiper-button-next, .swiper-button-prev { color: var(--v-ink-900) !important; }
.swiper-button-next:after, .swiper-button-prev:after { font-size: 16px !important; }

/* ─── 25. TRACKING PAGE ─────────────────────────────────────────────── */
.v-tracking-search-card .v-search-field {
  flex: 1 1 auto !important;
  width: 100% !important;
  display: flex !important;
}
.v-tracking-search-card .v-search-field > div {
  width: 100% !important;
  flex: 1 1 100% !important;
  display: flex !important;
}
.v-tracking-search-card .v-tracking-custom-input {
  width: 100% !important;
  flex: 1 1 100% !important;
  box-sizing: border-box !important;
}

/* Layout 2 cột chi tiết đơn hàng: Cố định tỷ lệ, chống tràn khi tên sách dài */
.v-tracking-details-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important;
  gap: 24px !important;
  align-items: start !important;
}
.v-tracking-details-grid > div {
  min-width: 0 !important;
}

/* Tên đầu sách hiển thị tối đa 2 dòng chuẩn mực, không làm vỡ layout */
.v-tracking-book-title,
.v-tracking-details-grid .v-book-cover--md + div > div:first-child {
  font-weight: 600;
  font-size: 14px;
  color: var(--v-ink-900);
  line-height: 1.38;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
  white-space: normal !important;
}

/* Căn top hàng sách khi tên sách có 2 dòng */
.v-tracking-details-grid .v-book-cover--md {
  align-self: flex-start !important;
}

.v-tracking-steps { display: flex; position: relative; margin: 28px 0; }
.v-tracking-steps::before {
  content: ''; position: absolute; top: 18px; left: 18px; right: 18px;
  height: 2px; background: var(--v-line); z-index: 0;
}
.v-tracking-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.v-tracking-step__dot {
  width: 36px; height: 36px; border-radius: 50%; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--v-line); color: var(--v-ink-300); font-size: 14px; font-weight: 700;
  border: 3px solid var(--v-paper);
}
.v-tracking-step.done .v-tracking-step__dot { background: var(--v-teal-500); color: #fff; }
.v-tracking-step.current .v-tracking-step__dot { background: var(--v-brand-500); color: #fff; border-color: var(--v-brand-100); }
.v-tracking-step__label { font-size: 12px; color: var(--v-ink-300); font-weight: 600; }
.v-tracking-step.done .v-tracking-step__label,
.v-tracking-step.current .v-tracking-step__label { color: var(--v-ink-900); }

/* ─── 26. BREADCRUMB & CATALOG / DANH MỤC SÁCH ─────────────────────── */
.v-breadcrumb {
  display: flex;
  align-items: center;
  margin: 14px 0 16px;
  font-size: 13.5px;
}
.v-breadcrumb ol,
.v-breadcrumb ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.v-breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: var(--v-ink-500);
  font-weight: 500;
}
.v-breadcrumb li a {
  color: var(--v-ink-500);
  text-decoration: none;
  transition: color var(--v-transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.v-breadcrumb li a:hover {
  color: var(--v-brand-600);
}
.v-breadcrumb li[aria-current="page"] {
  color: var(--v-ink-900);
  font-weight: 600;
}
.v-breadcrumb li + li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-top: 1.5px solid var(--v-ink-300);
  border-right: 1.5px solid var(--v-ink-300);
  transform: rotate(45deg);
  margin-right: 8px;
  opacity: 0.7;
}

/* Catalog Hero Banner — Nổi bật, Tràn đầy năng lượng, Gọn gàng */
.v-catalog-header {
  position: relative;
  background: linear-gradient(135deg, #E8391F 0%, #D42B10 40%, #9B1B05 100%);
  border-radius: var(--v-radius-lg);
  padding: 24px 28px 22px;
  margin-bottom: 20px;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 10px 30px -8px rgba(232, 57, 31, 0.35);
}
.v-catalog-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 74, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.v-catalog-header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 25%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.v-catalog-header__content {
  position: relative;
  z-index: 1;
}
.v-catalog-header__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.v-catalog-header__badge-2k9 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 201, 74, 0.22);
  border: 1px solid rgba(255, 201, 74, 0.55);
  color: #FFE599;
  padding: 4px 12px;
  border-radius: var(--v-radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.v-catalog-header__badge-2k9 span {
  color: #fff;
  background: #E8391F;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}
.v-catalog-header__tag-gdpt {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}
.v-catalog-header__title {
  font-family: var(--v-font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.v-catalog-header__desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  max-width: 800px;
  margin-bottom: 16px;
}
.v-catalog-header__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.v-catalog-header__feature-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: var(--v-radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
}
.v-catalog-header__feature-item svg {
  color: #FFC94A;
  flex-shrink: 0;
}

/* Catalog Filter Toolbar */
.v-catalog-toolbar {
  background: var(--v-white);
  border: 1px solid var(--v-line);
  border-radius: var(--v-radius-md);
  padding: 12px 16px;
  margin-bottom: 24px;
  box-shadow: var(--v-shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.v-catalog-toolbar__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.v-catalog-toolbar__search {
  position: relative;
  min-width: 220px;
  flex: 1 1 220px;
}
.v-catalog-toolbar__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--v-ink-400);
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 2;
}
.v-catalog-toolbar__search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border-radius: var(--v-radius-pill);
  border: 1.5px solid var(--v-line);
  background: var(--v-paper);
  font-size: 13.5px;
  color: var(--v-ink-900);
  transition: all var(--v-transition);
}
.v-catalog-toolbar__search input:focus {
  border-color: var(--v-brand-500);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(232,57,31,.12);
  outline: none;
}
.v-catalog-toolbar__filters {
  display: flex;
  align-items: center;
  gap: 10px;
}
.v-catalog-toolbar__select-wrap {
  position: relative;
  min-width: 145px;
}
.v-catalog-toolbar__select-wrap select {
  width: 100%;
  height: 40px;
  padding: 0 32px 0 14px;
  border-radius: var(--v-radius-pill);
  border: 1.5px solid var(--v-line);
  background: var(--v-paper);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--v-ink-700);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all var(--v-transition);
}
.v-catalog-toolbar__select-wrap select:focus {
  border-color: var(--v-brand-500);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(232,57,31,.12);
  outline: none;
}
.v-catalog-toolbar__select-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--v-ink-500);
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 2;
}
.v-catalog-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.v-catalog-toolbar__btn-submit {
  height: 40px;
  padding: 0 20px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--v-radius-pill);
  background: var(--v-brand-500);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--v-transition);
}
.v-catalog-toolbar__btn-submit:hover {
  background: var(--v-brand-600);
  box-shadow: var(--v-shadow-sm);
  transform: translateY(-1px);
}
.v-catalog-toolbar__btn-reset {
  height: 40px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--v-radius-pill);
  background: transparent;
  color: var(--v-ink-500);
  border: 1.5px solid var(--v-line);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--v-transition);
  text-decoration: none;
  box-sizing: border-box;
}
.v-catalog-toolbar__btn-reset:hover {
  background: var(--v-paper-2);
  color: var(--v-ink-900);
  border-color: var(--v-ink-300);
}
.v-catalog-toolbar__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--v-ink-500);
  white-space: nowrap;
}
.v-catalog-toolbar__count-badge {
  background: var(--v-brand-50);
  color: var(--v-brand-600);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--v-radius-pill);
  font-size: 12.5px;
}

@media (max-width: 768px) {
  .v-catalog-header {
    padding: 16px 14px;
    border-radius: var(--v-radius-md);
  }
  .v-catalog-header__top-row {
    gap: 6px;
    margin-bottom: 6px;
  }
  .v-catalog-header__title {
    font-size: 20px;
    margin-bottom: 6px;
  }
  .v-catalog-header__desc {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 12px;
  }
  .v-catalog-header__features {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .v-catalog-header__feature-item {
    font-size: 11.5px;
    padding: 4px 10px;
  }

  .v-catalog-toolbar {
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .v-catalog-toolbar__form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .v-catalog-toolbar__search {
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .v-catalog-toolbar__filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .v-catalog-toolbar__select-wrap {
    width: 100%;
    min-width: 0;
  }
  .v-catalog-toolbar__select-wrap select {
    font-size: 12.5px;
    padding: 0 24px 0 10px;
  }
  .v-catalog-toolbar__actions {
    display: flex;
    gap: 8px;
    width: 100%;
  }
  .v-catalog-toolbar__btn-submit {
    flex: 1;
    width: auto;
  }
  .v-catalog-toolbar__btn-reset {
    flex-shrink: 0;
  }
  .v-catalog-toolbar__meta {
    justify-content: center;
    width: 100%;
    font-size: 12.5px;
    padding-top: 4px;
    border-top: 1px dashed var(--v-line);
  }
}

/* ─── 26. TRANG TĨNH & GIỚI THIỆU & CHÍNH SÁCH ────────────────────────── */
.v-page-header {
  background: linear-gradient(180deg, #F8FAFC 0%, var(--v-bg) 100%);
  padding: 32px 0 24px; border-bottom: 1px solid var(--v-line); margin-bottom: 32px;
}
.v-breadcrumb {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--v-ink-400);
  margin-bottom: 12px; flex-wrap: wrap;
}
.v-breadcrumb a { color: var(--v-ink-500); transition: color var(--v-transition); }
.v-breadcrumb a:hover { color: var(--v-brand-600); }
.v-breadcrumb__sep { color: var(--v-ink-300); }
.v-breadcrumb__curr { color: var(--v-ink-800); font-weight: 600; }
.v-page-title {
  font-family: var(--v-font-display); font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700; color: var(--v-ink-900); line-height: 1.25;
}
.v-page-subtitle {
  font-size: 15px; color: var(--v-ink-500); margin-top: 8px; max-width: 680px; line-height: 1.5;
}
.v-page-body { padding-bottom: 60px; }

.v-static-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start;
}
.v-article-main {
  background: #fff; border-radius: var(--v-radius-lg); border: 1px solid var(--v-line);
  padding: 36px; box-shadow: var(--v-shadow-sm);
}

/* Typography chuẩn mực cho bài viết & trang tĩnh */
.v-article-content {
  font-family: var(--v-font-body); font-size: 16px; line-height: 1.82; color: #2D3748;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  max-width: 100%;
}
.v-article-content > :first-child:is(h1, h2, h3) { margin-top: 0; }
.v-article-content h2 {
  font-family: var(--v-font-display); font-size: 22px; font-weight: 700; color: #1A202C;
  margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 2px solid #F1F5F9;
  word-break: break-word;
}
.v-article-content h3 {
  font-family: var(--v-font-display); font-size: 18px; font-weight: 700; color: #1A202C;
  margin: 26px 0 12px;
  word-break: break-word;
}
.v-article-content h4 {
  font-size: 16px; font-weight: 700; color: #2D3748; margin: 20px 0 8px;
  word-break: break-word;
}
.v-article-content p { margin-bottom: 18px; }
.v-article-content ul, .v-article-content ol { margin-bottom: 20px; padding-left: 24px; }
.v-article-content li { margin-bottom: 8px; line-height: 1.7; }
.v-article-content strong, .v-article-content b { color: #1A202C; font-weight: 600; }
.v-article-content img {
  max-width: 100% !important; height: auto !important; border-radius: 12px; margin: 24px auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06); display: block; box-sizing: border-box;
}
.v-article-content blockquote {
  background: #FFF7ED; border-left: 4px solid var(--v-brand-500); padding: 16px 20px;
  margin: 24px 0; border-radius: 0 8px 8px 0; font-style: italic;
  color: #9A3412;
}
.v-article-content table {
  width: 100% !important; max-width: 100% !important; border-collapse: collapse; margin: 24px 0; font-size: 14.5px;
  display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.v-article-content table th, .v-article-content table td {
  border: 1px solid var(--v-line); padding: 10px 14px; text-align: left;
}
.v-article-content table th {
  background: #F8FAFC; font-weight: 700; color: var(--v-ink-900);
}
.v-article-content iframe,
.v-article-content embed,
.v-article-content object,
.v-article-content video {
  max-width: 100% !important;
  box-sizing: border-box;
}
.v-article-content pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.v-article-callout {
  background: #FFF7ED; border-left: 4px solid var(--v-brand-500); padding: 18px 20px;
  border-radius: 0 var(--v-radius-md) var(--v-radius-md) 0; margin: 24px 0; font-size: 14.5px;
}
.v-article-callout strong { color: var(--v-brand-700); }

.v-article-cta {
  margin-top: 40px; padding: 24px; background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%);
  border-radius: var(--v-radius-md); border: 1px solid #FED7AA; display: flex;
  align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.v-article-cta__text h4 { font-size: 16px; font-weight: 700; color: var(--v-ink-900); margin-bottom: 4px; }
.v-article-cta__text p { font-size: 13.5px; color: var(--v-ink-600); margin: 0; }

.v-sidebar-static { display: flex; flex-direction: column; gap: 24px; }
.v-sidebar-card {
  background: #fff; border-radius: var(--v-radius-lg); border: 1px solid var(--v-line);
  padding: 24px; box-shadow: var(--v-shadow-sm);
}
.v-sidebar-card__title {
  font-family: var(--v-font-display); font-size: 16px; font-weight: 700; color: var(--v-ink-900);
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--v-line);
}
.v-company-info { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.v-company-info li { display: flex; flex-direction: column; gap: 2px; }
.v-company-info strong { color: var(--v-ink-500); font-size: 12px; text-transform: uppercase; }
.v-company-info span, .v-company-info a { color: var(--v-ink-800); }

.v-policy-links { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.v-policy-links a { color: var(--v-ink-700); transition: color var(--v-transition); display: block; }
.v-policy-links a:hover { color: var(--v-brand-600); transform: translateX(3px); }

.v-policy-nav { display: flex; flex-direction: column; gap: 6px; }
.v-policy-nav li a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--v-radius-md);
  color: var(--v-ink-700); font-size: 14px; font-weight: 500; transition: all var(--v-transition);
}
.v-policy-nav li a:hover { background: #F8FAFC; color: var(--v-brand-600); }
.v-policy-nav li.active a { background: #FFF7ED; color: var(--v-brand-600); font-weight: 700; }

/* ─── 27. MODULE BÀI VIẾT (BLOG & MARKETING) ───────────────────────── */
.v-container--blog {
  max-width: 1320px;
}

.v-blog-categories-wrapper {
  position: relative;
  margin-bottom: 24px;
}
.v-blog-categories {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; margin-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.v-blog-categories::-webkit-scrollbar {
  display: none; width: 0; height: 0;
}
.v-blog-pill {
  padding: 8px 18px; border-radius: var(--v-radius-pill); font-size: 13.5px; font-weight: 600;
  background: #fff; border: 1px solid var(--v-line); color: var(--v-ink-700);
  white-space: nowrap; transition: all var(--v-transition); text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03); display: inline-flex; align-items: center;
}
.v-blog-pill:hover { border-color: var(--v-brand-500); color: var(--v-brand-600); background: #FFF7ED; }
.v-blog-pill.active { background: var(--v-brand-500); border-color: var(--v-brand-500); color: #fff; box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25); }

.v-blog-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start;
  min-width: 0; max-width: 100%;
}
@media (max-width: 991px) {
  .v-blog-layout { grid-template-columns: 1fr; gap: 36px; }
}
.v-blog-main {
  min-width: 0; max-width: 100%;
}

.v-blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 1120px) and (min-width: 641px) {
  .v-blog-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 640px) {
  .v-blog-grid { grid-template-columns: 1fr; gap: 16px; }
}

.v-post-card {
  background: #fff; border-radius: var(--v-radius-lg); border: 1px solid var(--v-line);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); height: 100%;
}
.v-post-card:hover {
  transform: translateY(-4px); box-shadow: 0 12px 28px rgba(234, 88, 12, 0.12); border-color: rgba(234, 88, 12, 0.35);
}
.v-post-card__thumb {
  position: relative; aspect-ratio: 16/9.5; overflow: hidden; background: #F1F5F9; display: block;
}
.v-post-card__thumb img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--v-ease);
}
.v-post-card:hover .v-post-card__thumb img { transform: scale(1.06); }
.v-post-card__cat {
  position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px); color: var(--v-brand-600); font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12); border: 1px solid rgba(234, 88, 12, 0.15);
}
.v-post-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.v-post-card__meta {
  display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--v-ink-400); margin-bottom: 8px;
}
.v-post-card__meta span { display: flex; align-items: center; gap: 4px; }
.v-post-card__title {
  font-family: var(--v-font-display); font-size: 15px; font-weight: 700; line-height: 1.42;
  color: var(--v-ink-900); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 42px;
}
.v-post-card__title a { color: inherit; text-decoration: none; transition: color var(--v-transition); }
.v-post-card__title a:hover { color: var(--v-brand-600); }
.v-post-card__summary {
  font-size: 13px; color: var(--v-ink-500); line-height: 1.55; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; min-height: 58px;
}
.v-post-card__readmore {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700;
  color: var(--v-brand-600); text-decoration: none; transition: gap var(--v-transition); margin-top: auto;
}
.v-post-card__readmore:hover { gap: 7px; color: var(--v-brand-700); }

/* Chi tiết bài viết */
.v-post-detail {
  background: #fff; border-radius: var(--v-radius-lg); border: 1px solid var(--v-line);
  padding: 36px 40px; box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  min-width: 0; max-width: 100%; box-sizing: border-box;
}
@media (max-width: 768px) {
  .v-post-detail { padding: 24px 18px; }
}
@media (max-width: 640px) {
  .v-post-detail { padding: 20px 14px !important; }
}
.v-post-detail__header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--v-line); }
.v-post-detail__category {
  display: inline-flex; align-items: center; background: #FFF7ED; color: var(--v-brand-600); font-size: 12px;
  font-weight: 700; padding: 4px 12px; border-radius: var(--v-radius-pill); margin-bottom: 12px;
  border: 1px solid rgba(234, 88, 12, 0.2); text-decoration: none;
}
.v-post-detail__title {
  font-family: var(--v-font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 800;
  color: var(--v-ink-900); line-height: 1.35; margin-bottom: 16px;
  word-break: break-word; overflow-wrap: break-word;
}
.v-post-detail__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0;
}
@media (max-width: 640px) {
  .v-post-detail__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
.v-post-detail__author-box { display: flex; align-items: center; gap: 12px; }
.v-author-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #FFF7ED; border: 1px solid rgba(234, 88, 12, 0.2);
  display: flex; align-items: center; justify-content: center; color: var(--v-brand-600);
}
.v-author-name { display: block; font-size: 14px; font-weight: 700; color: var(--v-ink-900); }
.v-post-date { display: block; font-size: 12px; color: var(--v-ink-400); }
.v-post-detail__sapo {
  font-size: 16px; font-weight: 500; line-height: 1.65; color: var(--v-ink-800);
  background: #F8FAFC; border-left: 4px solid var(--v-brand-500); padding: 18px 22px;
  border-radius: 0 10px 10px 0; margin-top: 20px;
  word-break: break-word; overflow-wrap: break-word;
}

/* Social share buttons */
.v-social-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v-share-label { font-size: 12.5px; color: var(--v-ink-500); font-weight: 600; }
.v-share-btn {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; border: 1px solid var(--v-line); background: #fff;
  color: var(--v-ink-600); cursor: pointer; transition: all var(--v-transition); text-decoration: none;
}
.v-share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.v-share-btn--fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.v-share-btn--zalo { font-weight: 800; font-size: 11px; }
.v-share-btn--zalo:hover { background: #0068FF; color: #fff; border-color: #0068FF; }
.v-share-btn--copy:hover { background: var(--v-ink-800); color: #fff; border-color: var(--v-ink-800); }

/* Box CTA Marketing trong bài viết */
.v-article-cta-box {
  margin: 40px 0; background: linear-gradient(135deg, #1C120C 0%, #2E1F16 100%);
  border-radius: var(--v-radius-xl); color: #fff; padding: 32px; position: relative;
  overflow: hidden; border: 1px solid rgba(249,115,22,.2);
  box-sizing: border-box; max-width: 100%;
}
.v-article-cta-box .v-btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.v-article-cta-box .v-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.v-article-cta-box__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.v-cta-tag {
  display: inline-block; background: var(--v-brand-500); color: #fff; font-size: 11px;
  font-weight: 700; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; margin-bottom: 10px;
}
.v-article-cta-box__content h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; word-break: break-word; }
.v-article-cta-box__content p { font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 20px; max-width: 520px; }
.v-article-cta-box__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.v-badge-circle {
  width: 80px; height: 80px; border-radius: 50%; border: 2px dashed rgba(249,115,22,.6);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0; background: rgba(255,255,255,.05);
}
.v-badge-circle strong { font-size: 13px; color: var(--v-gold-400); }
.v-badge-circle span { font-size: 18px; font-weight: 800; color: #fff; }

@media (max-width: 680px) {
  .v-article-cta-box {
    padding: 20px 16px;
    margin: 24px 0;
    border-radius: var(--v-radius-lg);
  }
  .v-article-cta-box__inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
  .v-article-cta-box__actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .v-article-cta-box__actions .v-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 11px 16px;
    box-sizing: border-box;
  }
  .v-badge-circle {
    width: 56px;
    height: 56px;
  }
}

.v-post-tags {
  display: flex; align-items: center; gap: 8px; margin-top: 32px; padding-top: 20px;
  border-top: 1px solid var(--v-line); flex-wrap: wrap;
}
.v-tag-label { font-size: 13px; font-weight: 600; color: var(--v-ink-500); }
.v-tag-item {
  padding: 4px 12px; border-radius: var(--v-radius-pill); background: #F1F5F9; color: var(--v-ink-700);
  font-size: 12.5px; transition: all var(--v-transition); text-decoration: none;
}
.v-tag-item:hover { background: #FFF7ED; color: var(--v-brand-600); }

/* Bài viết liên quan */
.v-related-posts { margin-top: 40px; }
.v-section-title {
  font-family: var(--v-font-display); font-size: 18px; font-weight: 700; color: var(--v-ink-900);
  margin-bottom: 20px;
}
.v-related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px;
}
.v-related-card {
  background: #fff; border-radius: var(--v-radius-md); border: 1px solid var(--v-line);
  overflow: hidden; display: flex; flex-direction: column; transition: all var(--v-transition); text-decoration: none;
}
.v-related-card:hover { transform: translateY(-3px); box-shadow: var(--v-shadow-sm); border-color: var(--v-brand-300); }
.v-related-card__thumb { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.v-related-card__body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.v-related-card__date { font-size: 11.5px; color: var(--v-ink-400); margin-bottom: 4px; }
.v-related-card__title {
  font-size: 13.5px; font-weight: 600; color: var(--v-ink-800); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Sidebar blog & MKT */
.v-blog-sidebar { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) {
  .v-blog-sidebar { position: -webkit-sticky; position: sticky; top: 88px; }
}
.v-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.v-search-field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.v-search-field__icon {
  position: absolute;
  left: 13px;
  color: var(--v-ink-400);
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 2;
}
.v-search-field .v-input {
  padding-left: 38px !important;
  background: #F8FAFC;
}
.v-search-field .v-input:focus {
  background: #ffffff;
}
.v-search-btn {
  height: 42px !important;
  padding: 0 16px !important;
  border-radius: var(--v-radius-md) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(232, 57, 31, 0.2) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all var(--v-transition) !important;
}
.v-search-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(232, 57, 31, 0.3) !important;
}
.v-sidebar-cats { display: flex; flex-direction: column; gap: 6px; }
.v-sidebar-cats li a {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 12px;
  border-radius: var(--v-radius-md); font-size: 13.5px; color: var(--v-ink-700); font-weight: 500;
  transition: all var(--v-transition); text-decoration: none;
}
.v-sidebar-cats li a:hover { background: #F8FAFC; color: var(--v-brand-600); }
.v-sidebar-cats li a.active { background: #FFF7ED; color: var(--v-brand-600); font-weight: 700; border: 1px solid rgba(234, 88, 12, 0.2); }

.v-sidebar-banner-mkt {
  background: linear-gradient(135deg, #1C120C 0%, #382417 100%); border-radius: var(--v-radius-lg);
  padding: 24px; color: #fff; position: relative; overflow: hidden; border: 1px solid rgba(249,115,22,.3);
}
.v-mkt-badge {
  display: inline-block; background: var(--v-brand-500); color: #fff; font-size: 10.5px;
  font-weight: 800; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; margin-bottom: 10px;
}
.v-sidebar-banner-mkt h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.v-sidebar-banner-mkt p { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.v-mkt-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.v-price-current { font-family: var(--v-font-display); font-size: 20px; font-weight: 700; color: var(--v-gold-400); }
.v-price-old { font-size: 13px; text-decoration: line-through; color: rgba(255,255,255,.45); }

.v-sidebar-books { display: flex; flex-direction: column; gap: 12px; }
.v-sidebar-book-item {
  display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--v-line);
}
.v-sidebar-book-item:last-child { border-bottom: none; }
.v-sidebar-book-cover { width: 48px; height: 64px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.v-sidebar-book-title {
  font-size: 13px; font-weight: 600; color: var(--v-ink-800); line-height: 1.35; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.v-sidebar-book-price { display: flex; gap: 6px; font-size: 12.5px; }
.v-book-price { color: var(--v-brand-600); font-weight: 700; }
.v-book-price-old { text-decoration: line-through; color: var(--v-ink-400); }
.v-sidebar-view-all {
  display: block; text-align: center; margin-top: 14px; font-size: 13px; font-weight: 600;
  color: var(--v-brand-600);
}

.v-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

/* Phân trang */
.v-pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 36px;
}
.v-page-btn {
  width: 38px; height: 38px; border-radius: var(--v-radius-md); border: 1px solid var(--v-line);
  background: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px;
  font-weight: 600; color: var(--v-ink-700); transition: all var(--v-transition);
}
.v-page-btn:hover { border-color: var(--v-brand-500); color: var(--v-brand-600); }
.v-page-btn.active { background: var(--v-brand-500); border-color: var(--v-brand-500); color: #fff; }

.v-search-result-bar {
  background: #FFF7ED; border: 1px solid #FED7AA; border-radius: var(--v-radius-md);
  padding: 12px 16px; margin-bottom: 20px; display: flex; justify-content: space-between;
  align-items: center; font-size: 14px;
}
.v-btn-clear-search { font-size: 13px; color: var(--v-brand-600); font-weight: 600; }

/* ─── 28. TRANG LIÊN HỆ ────────────────────────────────────────────── */
.v-contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start;
}
.v-contact-info-card {
  background: #fff; border-radius: var(--v-radius-lg); border: 1px solid var(--v-line);
  padding: 36px; box-shadow: var(--v-shadow-sm);
}
.v-contact-info-card h2 {
  font-family: var(--v-font-display); font-size: 20px; font-weight: 700; color: var(--v-ink-900);
  margin-bottom: 12px; line-height: 1.35;
}
.v-contact-desc { font-size: 14.5px; color: var(--v-ink-600); margin-bottom: 28px; line-height: 1.6; }
.v-contact-list { display: flex; flex-direction: column; gap: 20px; }
.v-contact-item { display: flex; gap: 16px; align-items: flex-start; font-size: 14px; }
.v-contact-icon {
  width: 44px; height: 44px; border-radius: 12px; background: #FFF7ED; color: var(--v-brand-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.v-contact-item strong { display: block; color: var(--v-ink-900); margin-bottom: 2px; font-weight: 600; }
.v-contact-item span { color: var(--v-ink-600); line-height: 1.5; }
.v-contact-link { color: var(--v-brand-600); font-weight: 600; }
.v-contact-social { display: flex; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--v-line); flex-wrap: wrap; }
.v-contact-map-card {
  background: #fff; border-radius: var(--v-radius-lg); border: 1px solid var(--v-line);
  padding: 12px; box-shadow: var(--v-shadow-sm); overflow: hidden;
}

@media (max-width: 900px) {
  .v-static-layout, .v-blog-layout, .v-contact-grid {
    grid-template-columns: 1fr; gap: 32px;
  }
  .v-article-main, .v-post-detail, .v-contact-info-card {
    padding: 24px;
  }
}
@media (max-width: 640px) {
  .v-article-main, .v-post-detail, .v-contact-info-card {
    padding: 18px 14px;
  }
}


/* Layout chi tiết sản phẩm */
.v-product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.v-product-detail__info {
  min-width: 0;
}
.v-product-detail__meta {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--v-ink-700);
  line-height: 1.5;
  white-space: normal;
}
@media (max-width: 900px) {
  .v-product-detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .v-product-detail__media {
    max-width: 270px;
    margin: 0 auto 12px;
    width: 100%;
  }
  .v-product-detail__media .v-product__cover {
    box-shadow: 0 12px 32px -4px rgba(36,27,21,.20);
    border: 1px solid rgba(0,0,0,.06);
  }
  .v-product-detail__info {
    width: 100%;
    min-width: 0;
  }
  .v-product-detail__info .v-h2 {
    font-size: 22px;
    line-height: 1.25;
  }
  .v-product-detail__meta,
  .v-product-detail__info .v-product__meta {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    text-transform: none !important;
    font-size: 13.5px !important;
    color: var(--v-ink-700) !important;
    line-height: 1.5;
  }
  .v-product-detail__price-box {
    padding: 16px !important;
    margin-bottom: 20px !important;
  }
  .v-product-detail__price-box .v-product__price {
    font-size: 26px !important;
  }
  .v-product-detail__desc {
    font-size: 14.5px;
    margin-bottom: 24px !important;
  }
  .v-product-detail__actions {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100%;
  }
  .v-product-detail__actions .v-btn {
    width: 100% !important;
    flex: none !important;
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* Hỗ trợ HTML markup trong đoạn mô tả ngắn */
.v-product-detail__desc p {
  margin: 0 0 8px;
  line-height: 1.6;
}
.v-product-detail__desc p:last-child {
  margin-bottom: 0;
}
.v-product-detail__desc ul, .v-product-detail__desc ol {
  margin: 0 0 8px 20px;
  padding: 0;
}
.v-product-detail__desc li {
  margin-bottom: 4px;
}

/* Chi tiết sách - Lưới sách gợi ý & các tiện ích */
.v-grid--suggested {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (min-width: 981px) {
  .v-grid--suggested {
    grid-template-columns: repeat(5, 1fr) !important;
  }
  .v-hide-desktop {
    display: none !important;
  }
}
@media (max-width: 980px) {
  .v-grid--suggested {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}
@media (max-width: 640px) {
  .v-grid--suggested {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Star rating picker in modal */
.v-star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}
.v-star-rating input {
  display: none;
}
.v-star-rating label {
  cursor: pointer;
  font-size: 26px;
  color: var(--v-ink-200);
  transition: color .15s ease;
}
.v-star-rating label:hover,
.v-star-rating label:hover ~ label,
.v-star-rating input:checked ~ label {
  color: #f59e0b;
}

/* Typography cho vùng mô tả chi tiết */
.v-rich-text {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--v-ink-800);
}
.v-rich-text p {
  margin-bottom: 14px;
}
.v-rich-text h3, .v-rich-text h4 {
  font-weight: 700;
  color: var(--v-ink-900);
  margin-top: 20px;
  margin-bottom: 10px;
}
.v-rich-text ul, .v-rich-text ol {
  padding-left: 24px;
  margin-bottom: 14px;
}
.v-rich-text li {
  margin-bottom: 6px;
}
.v-rich-text img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}

/* Layout giỏ hàng & thanh toán */
.v-cart-layout, .v-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .v-cart-layout, .v-checkout-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Tra cứu đơn hàng responsive */
.v-tracking-form {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--v-ink-50);
  margin-bottom: 40px;
  align-items: center;
}
.v-tracking-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--v-line);
  border-radius: var(--v-radius-sm);
  background: var(--v-white);
  font-size: 14px;
}
.v-tracking-btn {
  padding: 12px 28px;
  white-space: nowrap;
}
@media (max-width: 680px) {
  .v-tracking-form {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 18px 16px !important;
  }
  .v-tracking-input, .v-tracking-btn {
    width: 100% !important;
  }
}

/* Bảng giỏ hàng responsive trên mobile */
.cart-items {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
  .cart-items table th, .cart-items table td {
    padding: 12px 6px !important;
    font-size: 13px;
  }
}

/* ─── V-FILTER-TABS: WRAP XUỐNG DÒNG TOÀN BỘ TỦ SÁCH, TỐI ƯU GỌN TRÊN MOBILE ─── */
.v-filter-tabs-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
}

.v-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.v-filter-tabs .v-btn {
  white-space: nowrap !important;
  border-radius: var(--v-radius-pill) !important;
  text-decoration: none !important;
  flex-shrink: 0;
  transition: all var(--v-transition);
}

@media (max-width: 768px) {
  .v-filter-tabs-wrapper {
    margin-bottom: 16px;
  }
  .v-filter-tabs {
    gap: 6px 8px;
  }
  .v-filter-tabs .v-btn {
    font-size: 12.5px !important;
    padding: 6px 12px !important;
    line-height: 1.25 !important;
  }
}

/* ─── 31. TRANG KHUYẾN MÃI & KHO VOUCHER (RESPONSIVE OPTIMIZATION) ──── */
.v-voucher-page {
  margin-top: 36px;
  margin-bottom: 64px;
}
@media (max-width: 640px) {
  .v-voucher-page {
    margin-top: 18px;
    margin-bottom: 40px;
  }
}

/* Banner Hero Khuyến mãi */
.v-voucher-hero {
  background: linear-gradient(135deg, #1a0f0b 0%, var(--v-ink-900) 100%);
  border-radius: var(--v-radius-xl);
  padding: 36px 40px;
  color: #fff;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.v-voucher-hero__title {
  color: #fff;
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  margin: 10px 0 12px;
  line-height: 1.25;
}
.v-voucher-hero__desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: 24px;
}
.v-voucher-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .v-voucher-hero {
    padding: 22px 18px;
    border-radius: var(--v-radius-lg);
    margin-bottom: 28px;
  }
  .v-voucher-hero__title {
    font-size: 20px;
    margin: 8px 0 10px;
  }
  .v-voucher-hero__desc {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  .v-voucher-hero__actions {
    flex-direction: column;
    gap: 10px;
  }
  .v-voucher-hero__actions .v-btn {
    width: 100%;
    padding: 12px 18px;
    font-size: 14.5px;
    justify-content: center;
  }
}

/* Voucher Section Head */
.v-voucher-section-head {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 768px) {
  .v-voucher-section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 18px;
  }
  .v-voucher-section-head .v-filter-tabs-wrapper {
    margin-bottom: 0;
  }
}

/* Voucher Grid: 3 cols trên desktop, 2 cols tablet, 1 col trên mobile */
.v-voucher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
@media (max-width: 1024px) {
  .v-voucher-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .v-voucher-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 40px;
  }
}

/* Voucher Ticket Card */
.v-voucher-card {
  position: relative;
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1.5px dashed var(--v-voucher-border, var(--v-line));
  background-color: var(--v-voucher-bg, #fff);
  box-shadow: 0 2px 10px rgba(36, 27, 21, 0.04);
  transition: transform 0.2s var(--v-ease), box-shadow 0.2s var(--v-ease);
  overflow: hidden;
}
.v-voucher-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(36, 27, 21, 0.08);
}

/* Notches trái & phải phong cách vé voucher */
.v-voucher-card::before,
.v-voucher-card::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--v-paper, #FFF9F2);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
.v-voucher-card::before {
  left: -8px;
  box-shadow: inset -1px 0 0 var(--v-voucher-border, var(--v-line));
}
.v-voucher-card::after {
  right: -8px;
  box-shadow: inset 1px 0 0 var(--v-voucher-border, var(--v-line));
}

/* Các biến màu theo loại voucher */
.v-voucher-card--ship {
  --v-voucher-border: var(--v-teal-400);
  --v-voucher-bg: #F0FDF4;
}
.v-voucher-card--percent {
  --v-voucher-border: var(--v-gold-400);
  --v-voucher-bg: #FFFDF5;
}
.v-voucher-card--fixed {
  --v-voucher-border: var(--v-brand-400);
  --v-voucher-bg: #FFF8F6;
}

.v-voucher-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.v-voucher-card__expiry {
  font-size: 12.5px;
  color: var(--v-ink-500);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.v-voucher-card__code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.88);
  border: 1px dashed rgba(36, 27, 21, 0.15);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.v-voucher-card__code {
  font-family: var(--v-font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--v-ink-900);
  user-select: all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v-voucher-card__copy-btn {
  background: transparent;
  border: 1px solid rgba(36, 27, 21, 0.15);
  color: var(--v-ink-700);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.v-voucher-card__copy-btn:hover {
  background: var(--v-ink-900);
  color: #fff;
  border-color: var(--v-ink-900);
}

.v-voucher-card__desc {
  font-size: 14px;
  color: var(--v-ink-700);
  line-height: 1.5;
  margin-bottom: 16px;
}
.v-voucher-card__desc strong {
  color: var(--v-ink-900);
}

.v-voucher-card__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}
.v-voucher-card__btn-save {
  flex: 1.4;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 14px;
  min-height: 40px;
  white-space: nowrap;
}
.v-voucher-card__btn-save.is-saved {
  background: #ffffff !important;
  color: var(--v-teal-600) !important;
  border-color: var(--v-teal-500) !important;
}
.v-voucher-card__btn-use {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 14px;
  min-height: 40px;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 640px) {
  .v-voucher-card {
    padding: 16px 16px 16px 20px;
    border-radius: 14px;
  }
  .v-voucher-card__header {
    margin-bottom: 10px;
  }
  .v-voucher-card__header .v-badge {
    font-size: 11.5px;
    padding: 4px 8px;
  }
  .v-voucher-card__expiry {
    font-size: 12px;
  }
  .v-voucher-card__code-box {
    padding: 7px 10px;
    margin-bottom: 10px;
  }
  .v-voucher-card__code {
    font-size: 16.5px;
  }
  .v-voucher-card__copy-btn {
    padding: 4px 8px;
    font-size: 11.5px;
  }
  .v-voucher-card__desc {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 14px;
  }
  .v-voucher-card__actions {
    gap: 8px;
  }
  .v-voucher-card__btn-save {
    padding: 9px 8px;
    font-size: 13px;
    min-height: 38px;
  }
  .v-voucher-card__btn-use {
    padding: 9px 8px;
    font-size: 13px;
    min-height: 38px;
  }
}

/* Fallback & compatibility rules cho #voucher-grid & #voucher-filter-tabs */
#voucher-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  margin-bottom: 56px !important;
}
@media (max-width: 1024px) {
  #voucher-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}
@media (max-width: 640px) {
  #voucher-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 40px !important;
  }
  #voucher-filter-tabs {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    padding-bottom: 8px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    width: 100% !important;
  }
  #voucher-filter-tabs .v-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  #voucher-grid .voucher-item {
    padding: 16px 18px !important;
    border-radius: 14px !important;
  }
  #voucher-grid .voucher-item > div:first-child > div:nth-child(2) {
    font-size: 17px !important;
    margin-bottom: 6px !important;
  }
  #voucher-grid .voucher-item > div:first-child > p {
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin-bottom: 14px !important;
  }
  #voucher-grid .voucher-item > div:last-child {
    gap: 8px !important;
  }
  #voucher-grid .voucher-item .btn-save-voucher {
    flex: 1.3 !important;
    font-size: 13px !important;
    padding: 9px 8px !important;
    min-height: 38px !important;
    white-space: nowrap !important;
  }
  #voucher-grid .voucher-item a.v-btn {
    flex: 1 !important;
    font-size: 13px !important;
    padding: 9px 8px !important;
    min-height: 38px !important;
    white-space: nowrap !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* ─── 32. TỐI ƯU GIAO DIỆN GIỎ HÀNG TRÊN MOBILE ───────────────────── */
@media (max-width: 640px) {
  .cart-item-row {
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding-bottom: 16px !important;
  }
  .cart-item-row > a:first-child {
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0 !important;
  }
  .cart-item-row > a:first-child img,
  .cart-item-row > a:first-child .v-book-cover {
    width: 60px !important;
    height: 60px !important;
  }
  .cart-item-row > div:nth-child(2) {
    flex: 1 1 calc(100% - 76px) !important;
    min-width: 0 !important;
  }
  .cart-item-row > div:nth-child(2) a {
    font-size: 14px !important;
    line-height: 1.35 !important;
    margin-bottom: 4px !important;
  }
  .cart-item-row > div:last-child {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 10px !important;
    border-top: 1px dashed var(--v-line, #F0E4D6) !important;
    gap: 12px !important;
  }
}

/* ─── 33. TỐI ƯU GIAO DIỆN THANH TOÁN (CHECKOUT) TRÊN MOBILE ──────── */
@media (max-width: 640px) {
  .checkout-form .v-grid--2 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .checkout-form .v-card {
    padding: 16px !important;
  }
}
body:has(#checkout-form) .v-fab--cart {
  display: none !important;
}




