/* ==========================================================================
   DECAL TẤN KIỆT - GIAO DIỆN "TEM ĐUA" (sport.css)
   Nạp sau style.css + theme.css. Gồm 2 phần:
   A. Nền tảng & các sửa lỗi đã kiểm tra (tương phản, vùng bấm, căn lề, thang chữ…)
   B. Giao diện mới: năng động, thể thao cho 9x / Gen Z (cuối file)
   Bản giao diện trước: redesign.css (đã sao lưu ở thư mục Web_tinh_backup_20261114).
   ========================================================================== */

/* ==========================================================================
   DECAL TẤN KIỆT - LỚP GIAO DIỆN MỚI (redesign)
   Nạp SAU style.css và theme.css. Chỉ đổi phần nhìn (font, màu, khoảng cách,
   nút, thẻ, tiêu điểm bàn phím), không đổi cấu trúc HTML hay chức năng.
   Muốn quay lại giao diện cũ: bỏ dòng <link href="redesign.css"> trong index.html.

   Hướng thiết kế:
   - Phong cách: hiện đại, kỹ thuật, hợp ngành dán decal xe; nền xám than + nhấn cyan.
   - Font: Chakra Petch (tiêu đề, có tiếng Việt) + Be Vietnam Pro (nội dung).
     Font tiêu đề cũ (Outfit) KHÔNG có dấu tiếng Việt nên chữ có dấu bị lệch nét.
   - Cỡ chữ & khoảng cách co giãn theo màn hình (clamp), không nhảy cỡ đột ngột.
   - Nút cao tối thiểu 44px (dễ bấm trên điện thoại), viền tiêu điểm rõ khi dùng bàn phím.
   - Tôn trọng "giảm chuyển động" của hệ điều hành.
   ========================================================================== */

/* ---------- Token ---------- */
:root {
  --font-heading: 'Chakra Petch', 'Be Vietnam Pro', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --space-section: clamp(56px, 7vw, 96px);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.25), 0 10px 28px -10px rgba(0, 0, 0, 0.55);
  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.2), 0 6px 18px -8px rgba(0, 0, 0, 0.45);
}

/* Giao diện sáng: cùng tông cyan với giao diện tối cho thống nhất thương hiệu.
   gold = nền nút/nhãn (chữ tối đè lên vẫn đủ tương phản),
   gold-soft = màu chữ nhấn trên nền trắng (tương phản ~5:1). */
:root[data-theme="light"] {
  --rgb-gold: 8, 145, 178;       /* cyan-600 */
  --rgb-gold-soft: 14, 116, 144; /* cyan-700 */
  --rgb-gold-dark: 14, 116, 144;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 28px -12px rgba(15, 23, 42, 0.2);
  --shadow-subtle: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 18px -10px rgba(15, 23, 42, 0.16);
}

/* ---------- Nền tảng chữ ---------- */
body {
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4,
.hero-title, .section-title, .subpage-title, .choice-title {
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p, .section-subtitle, .subpage-desc, .hero-desc {
  text-wrap: pretty;
}

.section-title {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
}

.subpage-title {
  font-size: clamp(1.8rem, 1.15rem + 2.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
}

.section-subtitle,
.subpage-desc {
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.08rem);
  line-height: 1.7;
}

/* Nhãn nhỏ trên tiêu đề mục */
.section-tag {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

/* Vạch nhấn dưới tiêu đề mục căn giữa */
.section-header.text-center .section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: rgb(var(--rgb-gold));
}

/* ---------- Nhịp khoảng cách giữa các mục ---------- */
.section-services-selector,
.section-features,
.section-store-highlight,
.section-detail-services,
.section-custom-sticker-form,
.section-about-content {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.subpage-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
  background:
    radial-gradient(ellipse 70% 120% at 50% -20%, rgba(var(--rgb-gold), 0.14) 0%, transparent 60%),
    repeating-linear-gradient(135deg, rgba(var(--rgb-border), 0.025) 0 2px, transparent 2px 14px);
}

/* ---------- Nút ---------- */
.btn {
  min-height: 44px;
  border-radius: var(--radius-md);
  letter-spacing: 0.01em;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    filter 0.2s ease;
}

.btn-primary {
  background: rgb(var(--rgb-gold));
  box-shadow: 0 8px 20px -8px rgba(var(--rgb-gold), 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 12px 26px -10px rgba(var(--rgb-gold), 0.75);
}
.btn-primary:active,
.btn-secondary:active,
.btn-outline:active {
  transform: translateY(0) scale(0.98);
}

.btn-sm {
  min-height: 40px;
}

/* ---------- Thẻ (card) ---------- */
.choice-card,
.feature-item,
.service-detail-card,
.custom-form-card,
.contact-tile,
.about-storefront,
.store-highlight-container {
  border-radius: var(--radius-lg);
}

.feature-item,
.contact-tile {
  box-shadow: var(--shadow-subtle);
}

.choice-card {
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
}
.choice-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(var(--rgb-gold), 0.45);
}

.feature-item {
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-item:hover {
  transform: translateY(-4px);
}

.feature-icon {
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--rgb-gold), 0.25);
}

.service-detail-card {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-detail-card:hover {
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(var(--rgb-gold), 0.35);
}

/* Ô thông số trong thẻ dịch vụ: tách khỏi nền thẻ rõ hơn ở cả sáng & tối */
.service-specs-grid {
  background: rgba(var(--rgb-bg-elevated), 0.55);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
:root[data-theme="light"] .service-specs-grid {
  background: rgb(var(--rgb-bg-main));
}

/* ---------- Thanh menu ---------- */
.site-header {
  box-shadow: 0 1px 0 rgba(var(--rgb-border), 0.04), 0 8px 24px -16px rgba(0, 0, 0, 0.6);
}

.nav-tab-btn {
  border-radius: var(--radius-sm);
}

/* ---------- Tiêu điểm bàn phím (luôn thấy rõ) ---------- */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgb(var(--rgb-gold));
  outline-offset: 3px;
}

button,
[role="button"],
label[for],
select,
summary {
  cursor: pointer;
}

/* ---------- Ảnh ---------- */
.choice-bg-img,
.service-detail-media img,
.about-storefront > img,
.hero-main-img {
  background: rgb(var(--rgb-bg-elevated));
}

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   BƯỚC 2: PHẦN ĐẦU TRANG CHỦ GỌN HƠN + DẢI ĐIỂM MẠNH
   ========================================================================== */
.hero-section {
  padding-top: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(32px, 5vw, 64px);
}
.hero-title { margin-bottom: 16px; }
.hero-desc {
  max-width: 560px;
  margin-bottom: 26px;
}
.hero-cta-group { margin-bottom: 28px; }

/* Điện thoại / máy tính bảng dọc: chữ + nút lên trước, ảnh xuống sau */
@media (max-width: 860px) {
  .hero-media-wrapper { order: 1; }
  .hero-content { order: 0; }
  .hero-desc { margin-bottom: 20px; }
  .hero-cta-group { margin-bottom: 22px; }
}

/* Dải điểm mạnh */
.value-strip {
  padding: 0 0 clamp(8px, 2vw, 16px);
}
.value-strip-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
}
.value-item { display: flex; }
.value-item,
.value-item-btn {
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  min-width: 0;
}
.value-item-btn {
  display: flex;
  width: 100%;
  margin: -12px -14px;
  font: inherit;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  transition: background-color 0.2s ease;
}
.value-item-btn:hover { background: rgba(var(--rgb-gold), 0.1); }
.value-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: rgb(var(--rgb-gold));
  background: rgba(var(--rgb-gold), 0.12);
  border: 1px solid rgba(var(--rgb-gold), 0.25);
  font-size: 1rem;
}
.value-text { display: flex; flex-direction: column; min-width: 0; }
.value-text strong {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.value-text small {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

@media (max-width: 960px) {
  .value-strip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .value-item,
  .value-item-btn { gap: 10px; padding: 10px; }
  .value-item-btn { margin: -10px; }
  .value-icon { width: 36px; height: 36px; }
  .value-text strong { font-size: 0.9rem; }
  .value-text small { font-size: 0.76rem; }
}

/* Khung "Liên hệ ngay" luôn nằm trên ảnh (ảnh có hiệu ứng nên tạo lớp xếp chồng riêng) */
.hero-media-wrapper .hero-badge-float { z-index: 2; }

/* ==========================================================================
   BƯỚC 4: SỬA LỖI SAU KHI KIỂM TRA (tương phản chữ, vùng bấm)
   Chuẩn: chữ thường ≥ 4.5:1, chữ lớn ≥ 3:1, vùng bấm ≥ 44×44px.
   ========================================================================== */

/* --- Tương phản: giao diện tối --- */
:root {
  --rgb-text-muted: 158, 160, 168;  /* trước 128,128,136 chỉ đạt ~3.4:1 trên nền thẻ */
  --zalo-text: #7ab4ff;             /* chữ xanh Zalo trên nền tối */
  --fb-text: #8fbcff;
  --fb-solid: #0f63d6;              /* nền nút Facebook, chữ trắng ≥ 4.5:1 */
}
.spec-name { color: var(--text-secondary); }

/* --- Tương phản: giao diện sáng ---
   Cyan dùng làm CHỮ được đổi sang cyan-700 (5.4:1 trên nền trắng);
   cyan-600 vẫn giữ làm NỀN nút (chữ tối đè lên vẫn đạt). */
:root[data-theme="light"] {
  --accent-gold: rgb(14, 116, 144);
  --rgb-gold-soft: 21, 94, 117;
  --zalo-text: #0050c8;
  --fb-text: #1453b8;
}
:root[data-theme="light"] .section-tag { color: rgb(14, 116, 144); }
:root[data-theme="light"] .service-badge { color: #0369a1; background: rgba(3, 105, 161, 0.1); }
:root[data-theme="light"] .service-badge.gold { color: rgb(14, 116, 144); }
:root[data-theme="light"] .choice-btn { color: #0369a1; }
:root[data-theme="light"] .subpage-breadcrumbs a,
:root[data-theme="light"] .footer-bottom-inner p { color: rgb(71, 85, 105); }
:root[data-theme="light"] .about-text-content strong { color: rgb(17, 24, 39); }

/* Badge Best Seller ở giao diện sáng: nền cyan đậm, chữ trắng */
:root[data-theme="light"] .best-seller-badge,
:root[data-theme="light"] .footer-best-seller {
  background: linear-gradient(135deg, rgb(14, 116, 144) 0%, rgb(21, 94, 117) 100%);
  color: #fff;
}
:root[data-theme="light"] .best-seller-badge i,
:root[data-theme="light"] .footer-links .footer-best-seller i { color: #fff; }

/* Chữ xanh Zalo / Facebook trên nền nhạt hoặc nền tối */
.price-zalo-link,
.contact-tile-btn-zalo { color: var(--zalo-text); }
.price-fb-link,
.contact-tile-btn-fb { color: var(--fb-text); }

/* Nút nền Facebook: xanh đậm hơn một chút để chữ trắng đủ tương phản */
.plate-fb-btn,
.drawer-social-btn.fb-btn {
  background: var(--fb-solid);
  border-color: var(--fb-solid);
}

/* Nhãn đỏ trên ảnh */
.featured-ribbon { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); }

/* Nhãn xanh lá trên ảnh thẻ dịch vụ */
.choice-badge { background: rgba(4, 120, 87, 0.92); }

/* Ghi chú nhỏ ở tab Biển số */
.plate-quote-note { color: var(--text-secondary); }

/* --- Vùng bấm tối thiểu 44×44px --- */
.header-action-group .btn,
.mobile-menu-toggle,
.drawer-close,
.f-social-icon {
  min-width: 44px;
  min-height: 44px;
}
.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.drawer-social-btn,
.contact-peek-pill {
  min-height: 44px;
}
/* Công tắc sáng/tối: phần nhìn giữ nguyên, vùng bấm nới ra ≥ 44px chiều cao */
.theme-switch::after {
  content: "";
  position: absolute;
  inset: -8px -2px; /* 32+16 = 48px máy tính, 28+16 = 44px điện thoại */
}
/* Link trong footer: tăng chiều cao vùng bấm, không đổi giao diện */
.footer-links a {
  padding-block: 10px;
}
.footer-links li { margin-bottom: 0; }

/* Lượt sửa thứ 2 sau khi đo lại */
.choice-badge.choice-badge-gold { background: rgba(var(--rgb-gold), 0.95); color: #17181b; }
:root[data-theme="light"] .section-tag { color: rgb(21, 94, 117); }
:root[data-theme="light"] .stat-label { color: var(--text-secondary); }
.about-storefront figcaption strong { color: #a5f3fc; } /* luôn nằm trên lớp phủ tối của ảnh */
.contact-tile-btn { min-height: 44px; }
.footer-links a { padding-block: 11px; }
.subpage-breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ==========================================================================
   BƯỚC 5: SỬA LỖI KHỔ MÁY TÍNH
   ========================================================================== */

/* 1. Dòng chữ nhỏ dưới tên tiệm không bị rớt dòng */
.brand-subtitle { white-space: nowrap; }

/* 2. Ảnh đầu trang không bị cụm nút Zalo/Facebook nổi (cố định bên phải) che mất.
   Cụm nút chiếm ~70px mép phải; khi màn hình chưa đủ rộng thì chừa chỗ cho nó. */
@media (min-width: 1025px) and (max-width: 1279px) {
  .hero-media-wrapper { margin-right: 88px; }
}
/* Từ 1280px khung trang đã có lề hai bên: chỉ chừa đúng phần còn thiếu (về 0 từ ~1424px) */
@media (min-width: 1280px) {
  .hero-media-wrapper { margin-right: clamp(0px, calc(712px - 50vw), 88px); }
}

/* 3. Khung "Liên hệ ngay" nằm gọn trong ảnh, không đè lên đường cắt nét đứt */
@media (min-width: 861px) {
  .hero-media-wrapper .hero-badge-float {
    top: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
  }
}


/* ==========================================================================
   BƯỚC 6: CĂN LỀ & PHÔNG CHỮ
   Thang cỡ chữ cố định (trước có ~20 cỡ lẻ như 13.1, 14.7, 15.4, 16.8…):
     12 nhãn · 13 chú thích · 14 chữ phụ · 16 nội dung · 18 tiêu đề nhỏ
     · 24 tiêu đề thẻ · 32 tiêu đề mục · tiêu đề trang co giãn
   Không chữ nào dưới 12px. Dòng chữ dài tối đa ~70 ký tự.
   ========================================================================== */
:root {
  --fs-label: 0.75rem;    /* 12 */
  --fs-caption: 0.8125rem;/* 13 */
  --fs-small: 0.875rem;   /* 14 */
  --fs-body: 1rem;        /* 16 */
  --fs-h4: 1.125rem;      /* 18 */
  --fs-h3: 1.5rem;        /* 24 */
}

/* Nội dung chính: 16px, dòng ≤ ~70 ký tự */
.hero-desc,
.section-subtitle,
.subpage-desc,
.choice-desc,
.service-detail-info p,
.form-intro p,
.about-text-content p {
  font-size: var(--fs-body);
  max-width: 68ch;
}
.section-subtitle,
.subpage-desc { margin-left: auto; margin-right: auto; }

/* Chữ phụ: 14px */
.feature-item p,
.choice-features-list li,
.spec-val,
.footer-about-text,
.footer-links a,
.footer-contact-list li,
.value-text small {
  font-size: var(--fs-small);
}
.footer-about-text { max-width: 60ch; }

/* Chú thích: 13px */
.stat-label,
.spec-name,
.plate-quote-note,
.plate-preview-note,
.choice-warranty-note,
.contact-tile-label,
.caption {
  font-size: var(--fs-caption);
}

/* Nhãn nhỏ: tối thiểu 12px */
.brand-subtitle,
.footer-brand-sub,
.footer-best-seller,
.service-badge,
.choice-badge,
.featured-ribbon,
.section-tag {
  font-size: var(--fs-label);
}
.section-tag { font-size: var(--fs-caption); }

/* Tiêu đề: cùng một thang */
.feature-item h4,
.footer-heading,
.value-text strong {
  font-size: var(--fs-h4);
}
.choice-title,
.service-detail-info h3,
.about-text-content h3,
.store-contact-title {
  font-size: clamp(1.25rem, 1rem + 1vw, var(--fs-h3));
  line-height: 1.25;
}
.service-detail-card.featured h3 {
  font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.75rem);
}

/* --- Căn lề --- */
/* Màn hình ≤ 860px: phần đầu trang chủ thẳng mép trái với các mục bên dưới
   (trước bị căn giữa trong khung 640px nên thụt vào ~30px so với phần còn lại) */
@media (max-width: 860px) {
  .hero-content,
  .hero-media-wrapper {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Thẻ "Chất lượng tạo nên uy tín": 2 cột từ 560px để dòng chữ không quá dài */
@media (min-width: 560px) and (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Gom nốt các cỡ chữ lẻ về thang */
:root { --fs-button: 0.9375rem; /* 15: riêng cho nút */ }

.announcement-bar,
.announcement-bar a,
.announcement-bar span,
.footer-bottom-inner p,
.about-storefront figcaption small,
.hero-badge span,
.best-seller-badge span,
.contact-tile-note {
  font-size: var(--fs-caption);
}

.subpage-breadcrumbs,
.subpage-breadcrumbs a,
.contact-tile-btn,
.form-group label,
.calc-step-label,
.plate-quote-label,
.plate-quote-value,
.price-contact,
.about-points li,
.nav-tab-btn,
.perk-row span,
.hero-badge-float strong {
  font-size: var(--fs-small);
}

.btn { font-size: var(--fs-button); }
.btn-lg { font-size: var(--fs-body); }
.btn-sm { font-size: var(--fs-small); }

.store-desc,
.ppf-variant-list li {
  font-size: var(--fs-body);
}
.store-desc { max-width: 68ch; }

.contact-tile-value,
strong.plate-quote-value {
  font-size: var(--fs-h4);
}

.stat-number { font-size: 1.75rem; }
.form-intro h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.75rem); }
.plate-quote-note { max-width: 68ch; }

/* Máy tính: 2 cột phần đầu trang luôn lấp đủ bề rộng khung (thẳng mép phải với các mục dưới) */
@media (min-width: 1025px) {
  .hero-container { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

/* Điện thoại: chữ nhỏ dưới tên tiệm được xuống dòng để không đẩy nút menu ra ngoài màn hình */
@media (max-width: 600px) {
  .brand-logo-link,
  .brand-text-block { min-width: 0; }
  .brand-subtitle {
    white-space: normal;
    line-height: 1.25;
  }
}

/* ==========================================================================
   B. GIAO DIỆN "TEM ĐUA" — năng động, thể thao, cho 9x / Gen Z (không lố)
   Ý tưởng: cả trang như một bộ tem đua (racing livery) của chính tiệm:
   - Nền carbon, nhấn VÀNG TẤN KIỆT (màu logo & biển hiệu), cyan làm màu phụ.
   - Chữ tiêu đề Barlow Condensed (hẹp, đậm, nghiêng ở tiêu đề lớn) = chữ số đua.
   - Họa tiết duy nhất lặp lại: 3 sọc chéo vàng – cyan – trắng (sọc tem đua).
   - Chuyển động: chỉ 1 lần lúc mở trang (tiêu đề lướt vào), còn lại yên tĩnh.
   ========================================================================== */

/* ---------- Token ---------- */
:root {
  --font-heading: 'Barlow Condensed', 'Be Vietnam Pro', sans-serif;

  /* Nền carbon */
  --rgb-bg-main: 21, 23, 26;        /* #15171A */
  --rgb-bg-surface: 31, 34, 38;     /* #1F2226 */
  --rgb-bg-elevated: 43, 47, 53;    /* #2B2F35 */
  --rgb-bg-input: 26, 28, 32;
  --rgb-bg-deep: 14, 15, 18;

  /* Nhấn chính: vàng Tấn Kiệt */
  --rgb-gold: 255, 210, 31;         /* #FFD21F */
  --rgb-gold-soft: 255, 224, 102;
  --rgb-gold-dark: 230, 176, 0;
  --accent-gold: rgb(var(--rgb-gold));
  --accent-gold-soft: rgb(var(--rgb-gold-soft));

  /* Nhấn phụ: cyan */
  --rgb-cyan: 34, 211, 238;
  --cyan: rgb(var(--rgb-cyan));

  --ink: #111418;                   /* chữ trên nền vàng */
  --stripes: linear-gradient(90deg,
    rgb(var(--rgb-gold)) 0 44%, transparent 44% 52%,
    rgb(var(--rgb-cyan)) 52% 74%, transparent 74% 82%,
    #f5f6f7 82% 100%);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

:root[data-theme="light"] {
  --rgb-bg-main: 243, 244, 246;
  --rgb-bg-surface: 255, 255, 255;
  --rgb-bg-elevated: 233, 236, 240;
  --rgb-bg-input: 248, 249, 250;
  --rgb-bg-deep: 229, 232, 236;

  --rgb-gold: 255, 200, 0;          /* nền nút vàng, chữ mực đè lên */
  --rgb-gold-soft: 122, 90, 0;      /* vàng đậm dùng làm CHỮ trên nền sáng (~6:1) */
  --rgb-gold-dark: 214, 160, 0;
  --accent-gold: rgb(122, 90, 0);
  --accent-gold-soft: rgb(122, 90, 0);
  --rgb-cyan: 14, 116, 144;
  --stripes: linear-gradient(90deg,
    rgb(255, 200, 0) 0 44%, transparent 44% 52%,
    rgb(14, 116, 144) 52% 74%, transparent 74% 82%,
    #111418 82% 100%);
}

/* ---------- Chữ ---------- */
h1, h2, h3, h4,
.hero-title, .section-title, .subpage-title, .choice-title,
.service-detail-info h3, .feature-item h4, .footer-heading,
.stat-number, .value-text strong, .store-contact-title, .contact-tile-value {
  font-family: var(--font-heading);
  letter-spacing: 0;
}

.section-title {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.02;
}
.subpage-title {
  font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.8rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1;
}
.choice-title,
.service-detail-info h3,
.about-text-content h3,
.store-contact-title {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
}
.service-detail-card.featured h3 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.2rem); }
.feature-item h4,
.footer-heading,
.value-text strong { font-size: 1.3rem; font-weight: 700; line-height: 1.15; }
.stat-number { font-size: 2.4rem; font-weight: 800; font-style: italic; color: rgb(var(--rgb-gold)); }
:root[data-theme="light"] .stat-number { color: var(--ink); }
.brand-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; font-style: italic; letter-spacing: 0.01em; }
.footer-brand-title { font-family: var(--font-heading); font-weight: 800; font-style: italic; }

/* Sọc tem đua dưới tiêu đề mục (thay vạch nét đứt cũ) */
.section-header.text-center .section-title::after,
.footer-heading::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  margin: 16px auto 0;
  border: 0;
  border-radius: 0;
  background: var(--stripes);
  transform: skewX(-20deg);
}
.footer-heading::after { position: static; margin-left: 2px; width: 56px; height: 5px; }

/* Nhãn nhỏ trên tiêu đề: 1 vạch vàng nghiêng phía trước, không khung */
.section-tag {
  background: none;
  border: 0;
  padding: 0;
  gap: 10px;
  color: var(--accent-gold);
  font-weight: 700;
  font-size: var(--fs-small);
}
.section-tag::before {
  content: "";
  width: 18px;
  height: 4px;
  background: rgb(var(--rgb-gold));
  transform: skewX(-20deg);
}
.section-tag i { display: none; }
:root[data-theme="light"] .section-tag { color: var(--accent-gold); }

/* ---------- Nền ---------- */
body { background: rgb(var(--rgb-bg-main)); }

/* ---------- Nút: góc nhỏ, chữ hẹp đậm như chữ số đua ---------- */
.btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
}
.btn-sm { font-size: 1rem; }
.btn-lg { font-size: 1.2rem; }
.btn-primary {
  background: rgb(var(--rgb-gold));
  color: var(--ink);
  box-shadow: 0 6px 0 -2px rgba(var(--rgb-gold-dark), 0.55);
}
.btn-primary:hover {
  filter: none;
  background:
    repeating-linear-gradient(-60deg, rgba(0, 0, 0, 0.07) 0 6px, transparent 6px 14px),
    rgb(var(--rgb-gold));
  box-shadow: 0 8px 0 -2px rgba(var(--rgb-gold-dark), 0.65);
}
.btn-secondary {
  background: transparent;
  border: 2px solid rgba(var(--rgb-border), 0.22);
  color: var(--text-primary);
  backdrop-filter: none;
}
.btn-secondary:hover {
  background: rgba(var(--rgb-border), 0.06);
  border-color: rgb(var(--rgb-gold));
  color: var(--text-primary);
}
.btn-outline { border-width: 2px; }

/* ---------- Thanh menu ---------- */
.site-header {
  background: rgba(var(--rgb-bg-deep), 0.92);
  box-shadow: none;
  border-bottom: 1px solid rgba(var(--rgb-border), 0.08);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, rgb(var(--rgb-gold)) 0 33%, rgb(var(--rgb-cyan)) 33% 66%, transparent 66%);
  opacity: 0.9;
}
.nav-tab-btn {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
}
.nav-tab-btn.active {
  background: rgb(var(--rgb-gold));
  color: var(--ink);
  box-shadow: none;
}
.announcement-bar { background: rgb(var(--rgb-bg-deep)); }

/* ---------- PHẦN ĐẦU TRANG CHỦ ---------- */
.hero-section {
  position: relative;
  background-color: rgb(var(--rgb-bg-main));
  background-image:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(var(--rgb-gold), 0.10), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 6px);
  overflow: hidden;
}
:root[data-theme="light"] .hero-section {
  background-image:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(255, 200, 0, 0.18), transparent 70%),
    repeating-linear-gradient(45deg, rgba(17, 20, 24, 0.025) 0 2px, transparent 2px 6px);
}
/* 3 sọc đua chạy chéo phía sau ảnh */
.hero-section::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -8%;
  width: 46%;
  height: 140%;
  background: linear-gradient(90deg,
    rgba(var(--rgb-gold), 0.9) 0 22%, transparent 22% 30%,
    rgba(var(--rgb-cyan), 0.75) 30% 42%, transparent 42% 50%,
    rgba(245, 246, 247, 0.5) 50% 56%, transparent 56%);
  transform: skewX(-24deg);
  opacity: 0.16;
  pointer-events: none;
}
.hero-container { position: relative; z-index: 1; }

.hero-badge {
  background: transparent;
  border: 1px solid rgba(var(--rgb-border), 0.18);
  font-weight: 600;
}

/* Tiêu đề: 2 dòng chữ đua nghiêng, dòng 2 nằm trên dải vàng nghiêng */
.hero-title--race {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08em;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 0.4rem + 4.5vw, 4rem);
  font-weight: 800;
  font-style: italic;
  line-height: 0.98;
  letter-spacing: -0.005em;
  margin-bottom: 26px;
}
.race-line {
  display: inline-block;
  white-space: nowrap;
  animation: raceIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.race-line--accent {
  position: relative;
  isolation: isolate;
  color: var(--ink);
  padding: 0.04em 0.28em 0.08em 0.22em;
  margin-left: 0.06em;
  animation-delay: 0.12s;
}
.race-line--accent::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(var(--rgb-gold));
  transform: skewX(-14deg);
  border-radius: 3px;
}
.race-line--accent::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  right: -0.42em;
  width: 0.22em;
  background: rgb(var(--rgb-cyan));
  transform: skewX(-14deg);
}
@keyframes raceIn {
  from { opacity: 0; transform: translateX(-0.6em); }
  to { opacity: 1; transform: none; }
}

.hero-desc { color: var(--text-secondary); }
.hero-desc strong { color: var(--text-primary); }

/* Ảnh đầu trang: cắt mép chéo bên trái như tấm tem, không viền trắng */
.hero-media-wrapper::before { content: none; }
.hero-main-img {
  border: 0;
  border-radius: var(--radius-md);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: none;
  animation: none;
}
.hero-media-wrapper::after {
  content: "";
  position: absolute;
  left: 2%;
  bottom: -14px;
  width: 58%;
  height: 8px;
  background: var(--stripes);
  transform: skewX(-24deg);
  pointer-events: none;
}
.hero-badge-float {
  background: rgba(var(--rgb-bg-deep), 0.9);
  border: 1px solid rgba(var(--rgb-gold), 0.45);
  border-radius: var(--radius-md);
}
:root[data-theme="light"] .hero-badge-float { background: rgba(255, 255, 255, 0.94); }
@media (min-width: 861px) {
  .hero-media-wrapper .hero-badge-float { left: auto; right: 14px; top: 14px; }
}

/* Dải số liệu */
.hero-stats { border-top: 0; padding-top: 0; }
.stat-label { color: var(--text-secondary); }

/* ---------- Dải điểm mạnh: thanh đen như bảng số liệu xe đua ---------- */
.value-strip-list {
  background: rgb(var(--rgb-bg-deep));
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: none;
  border-left: 6px solid rgb(var(--rgb-gold));
}
.value-icon {
  border: 0;
  background: transparent;
  color: rgb(var(--rgb-gold));
  font-size: 1.25rem;
  width: 32px;
}
:root[data-theme="light"] .value-strip-list { background: #fff; }
:root[data-theme="light"] .value-icon { color: var(--accent-gold); }

/* ---------- Thẻ ---------- */
.choice-card,
.feature-item,
.service-detail-card,
.custom-form-card,
.contact-tile,
.store-highlight-container {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--rgb-border), 0.09);
  box-shadow: none;
}
.choice-card:hover,
.service-detail-card:hover,
.feature-item:hover,
.contact-tile:hover {
  border-color: rgba(var(--rgb-gold), 0.6);
  box-shadow: none;
}
/* Thẻ ưu điểm: vạch vàng nghiêng ở mép trên */
.feature-item { position: relative; overflow: hidden; }
.feature-item::before {
  content: "";
  position: absolute;
  top: 0; left: 18px;
  width: 44px; height: 4px;
  background: rgb(var(--rgb-gold));
  transform: skewX(-20deg);
}
.feature-icon {
  background: rgba(var(--rgb-gold), 0.12);
  border: 0;
  color: rgb(var(--rgb-gold));
}
:root[data-theme="light"] .feature-icon { color: var(--accent-gold); }

.choice-icon-wrap {
  background: rgb(var(--rgb-gold));
  color: var(--ink);
  border-radius: var(--radius-sm);
  transform: skewX(-10deg);
}
.choice-icon-wrap i { transform: skewX(10deg); }
.choice-btn { font-family: var(--font-heading); font-size: 1.12rem; font-weight: 700; }

/* Thẻ dịch vụ: tiêu đề "Loại 1/2/3" nghiêng như số đua */
.service-detail-info h3 { font-style: italic; }
.service-badge {
  border-radius: 3px;
  font-weight: 700;
  transform: skewX(-10deg);
}
.service-specs-grid {
  background: rgba(var(--rgb-bg-deep), 0.6);
  border: 0;
  border-left: 4px solid rgb(var(--rgb-gold));
  border-radius: var(--radius-sm);
}
:root[data-theme="light"] .service-specs-grid { background: rgb(var(--rgb-bg-main)); }

/* Thẻ PPF nổi bật: viền vàng + sọc đua ở cạnh trên */
.service-detail-card.featured {
  border: 2px solid rgb(var(--rgb-gold));
  background: rgb(var(--rgb-bg-surface));
  box-shadow: none;
  animation: none;
}
.service-detail-card.featured::before {
  content: "";
  position: absolute;
  top: 0; right: 24px;
  width: 120px; height: 8px;
  background: var(--stripes);
  transform: skewX(-24deg);
  z-index: 2;
}
.service-detail-card.featured h3 {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--text-primary);
}
.best-seller-badge,
.footer-best-seller {
  background: rgb(var(--rgb-gold));
  color: var(--ink);
  border-radius: 3px;
  transform: skewX(-10deg);
  box-shadow: none;
}
:root[data-theme="light"] .best-seller-badge,
:root[data-theme="light"] .footer-best-seller { background: rgb(255, 200, 0); color: var(--ink); }
.best-seller-badge::after { content: none; }
.best-seller-badge i,
.footer-links .footer-best-seller i,
:root[data-theme="light"] .best-seller-badge i,
:root[data-theme="light"] .footer-links .footer-best-seller i { color: var(--ink); }
.best-seller-badge .fa-fire,
:root[data-theme="light"] .best-seller-badge .fa-fire { color: #b91c1c; }
.featured-ribbon { border-radius: 3px; transform: skewX(-10deg); }
.matte-note {
  border: 1px solid rgba(var(--rgb-gold), 0.35);
  border-left: 6px solid rgb(var(--rgb-gold));
}
.ppf-variant-list i { color: rgb(var(--rgb-gold)); }
:root[data-theme="light"] .ppf-variant-list i { color: var(--accent-gold); }

/* ---------- Đầu các trang con ---------- */
.subpage-hero {
  text-align: left;
  background:
    radial-gradient(ellipse 50% 90% at 100% 0%, rgba(var(--rgb-gold), 0.12), transparent 70%),
    rgb(var(--rgb-bg-deep));
  border-bottom: 0;
  position: relative;
  overflow: hidden;
}
.subpage-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: 0;
  width: 260px;
  height: 10px;
  background: var(--stripes);
  transform: skewX(-24deg);
}
.subpage-breadcrumbs { justify-content: flex-start; }
.subpage-desc { margin-left: 0; margin-right: 0; }

/* ---------- Footer ---------- */
.site-footer { background: rgb(var(--rgb-bg-deep)); border-top: 0; position: relative; }
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgb(var(--rgb-gold)) 0 50%, rgb(var(--rgb-cyan)) 50% 75%, #f5f6f7 75%);
}
.footer-featured a {
  border: 2px solid rgb(var(--rgb-gold));
  background: rgba(var(--rgb-gold), 0.08);
  box-shadow: none;
}
.footer-featured-name { color: var(--text-primary); font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }

/* ---------- Công tắc sáng/tối ---------- */
:root[data-theme="dark"] .theme-switch-moon svg { fill: rgb(var(--rgb-gold)); }

/* ---------- Điện thoại ---------- */
@media (max-width: 860px) {
  .hero-title--race { font-size: clamp(1.6rem, 8.4vw, 3.6rem); }
  .hero-section::before { width: 80%; right: -40%; opacity: 0.12; }
  .hero-media-wrapper::after { bottom: -12px; }
  .hero-main-img { clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%); }
}
@media (max-width: 600px) {
  .brand-title { font-size: 1.2rem; }
  .brand-text-block { overflow: hidden; }
  .subpage-hero::after { width: 160px; height: 8px; }
  .value-strip-list { border-left-width: 4px; }
}

/* ---------- Sửa lỗi sau khi kiểm tra lại (bản "tem đua") ---------- */

/* 1. Thẻ dịch vụ 1 cột (≤ 860px): cột không được rộng hơn thẻ.
   Trước đây chữ trên nút (không xuống dòng) đẩy cột rộng ra, phần bên phải bị cắt ở màn 320px. */
@media (max-width: 860px) {
  .service-detail-card,
  .service-detail-card.reverse { grid-template-columns: minmax(0, 1fr); }
  .service-detail-info .btn,
  .send-actions .btn,
  .store-action-buttons .btn,
  .plate-actions .btn {
    white-space: normal;
    text-align: center;
  }
}

/* 2. Nhãn nhỏ không viết IN HOA (dễ đọc hơn với chữ tiếng Việt có dấu) */
.section-tag,
.service-badge,
.featured-ribbon,
.choice-badge,
.contact-tile-label,
.best-seller-badge,
.footer-best-seller {
  text-transform: none;
  letter-spacing: 0.01em;
}

/* 4. Dải điểm mạnh: 1 cột trên điện thoại nhỏ để tiêu đề không ngắt dòng gượng */
@media (max-width: 480px) {
  .value-strip-list { grid-template-columns: 1fr; }
}

/* 5. Vùng bấm ≥ 44px: tab menu máy tính và 2 link ở thanh thông tin trên cùng
   (link nới vùng bấm bằng padding + margin âm nên thanh không cao thêm) */
.nav-tab-btn { min-height: 44px; }
.announcement-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -12px;
}

/* 6. Viền khi dùng bàn phím: cùng một màu cyan ở mọi nút/link (rõ trên cả nền sáng lẫn tối) */
:root a:focus-visible,
:root button:focus-visible,
:root input:focus-visible,
:root select:focus-visible,
:root textarea:focus-visible,
:root [tabindex]:focus-visible {
  outline: 2px solid rgb(var(--rgb-cyan));
  outline-offset: 3px;
}
:root .theme-switch-input:focus-visible + .theme-switch-slider { outline-color: rgb(var(--rgb-cyan)); }

/* 3. Chữ dưới các nút liên hệ nổi (Zalo 1, Zalo 2, Facebook, Tư vấn): tối thiểu 12px */
.floating-contact-cluster .float-btn-text { font-size: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  .race-line { animation: none; }
}

/* Ảnh phim cách nhiệt (ảnh dọc): canh khung vào thợ đang dán và kính lái */
.service-detail-media img.media-focus-heat { object-position: 40% 42%; }

/* Ảnh dán PPF (ảnh dọc): canh khung vào thợ và đầu xe đang dán */
.service-detail-media img.media-focus-ppf { object-position: 50% 52%; }

/* ==========================================================================
   KHUNG ẢNH TỰ CHUYỂN (thẻ PPF): nhiều ảnh thi công thật, mờ dần sang ảnh kế
   - Tự chuyển mỗi 4 giây, dừng khi rê chuột / chạm / dùng bàn phím trong khung.
   - Có nút trước/sau, chấm chọn ảnh, vuốt trái/phải trên điện thoại.
   - Máy bật "giảm chuyển động": không tự chuyển, chỉ đổi khi khách bấm.
   ========================================================================== */
.media-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
}
.media-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 4.6s ease-out;
}
.media-slider .slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Nút trước / sau */
.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(14, 15, 18, 0.55);
  backdrop-filter: blur(4px);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.media-slider:hover .slider-btn,
.media-slider:focus-within .slider-btn { opacity: 1; }
.slider-btn:hover { background: rgba(14, 15, 18, 0.8); }
@media (hover: none) {
  .slider-btn { opacity: 1; }
}

/* Chấm chọn ảnh: dạng vạch nghiêng như sọc tem đua */
.slider-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}
.slider-dot {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}
.slider-dot::before {
  content: "";
  width: 22px;
  height: 5px;
  background: rgba(255, 255, 255, 0.55);
  transform: skewX(-24deg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: background-color 0.2s ease, width 0.2s ease;
}
.slider-dot[aria-current="true"]::before {
  width: 34px;
  background: rgb(var(--rgb-gold));
}

/* Lớp tối nhẹ phía dưới để chấm luôn thấy rõ trên mọi ảnh */
.media-slider::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
  pointer-events: none;
}

/* Nhãn "Cao cấp nhất" nằm trên khung ảnh */
.service-detail-media .featured-ribbon { z-index: 4; }

@media (prefers-reduced-motion: reduce) {
  .media-slider .slide { transition: opacity 0.01ms; transform: none; }
}

/* ==========================================================================
   HIỆU ỨNG "GẠT PHIM" (thẻ phim cách nhiệt) — khác với kiểu mờ dần của thẻ PPF
   Ảnh mới được "dán" lên ảnh cũ bằng một mép chéo chạy ngang khung,
   đi kèm một vạch vàng như thanh gạt nước khi dán phim kính.
   ========================================================================== */
.media-slider[data-effect="wipe"] .slide {
  opacity: 1;
  transform: none;
  transition: none;
  clip-path: inset(0 100% 0 0);
  z-index: 0;
}
.media-slider[data-effect="wipe"] .slide.is-prev {
  clip-path: inset(0);
  z-index: 1;
}
.media-slider[data-effect="wipe"] .slide.is-active {
  clip-path: inset(0);
  z-index: 2;
}
.media-slider[data-effect="wipe"][data-animated] .slide.is-active {
  animation: filmWipeNext 0.9s cubic-bezier(0.65, 0, 0.35, 1) both;
}
.media-slider[data-effect="wipe"][data-animated][data-dir="back"] .slide.is-active {
  animation-name: filmWipeBack;
}
@keyframes filmWipeNext {
  from { clip-path: polygon(0 0, 0 0, -18% 100%, 0 100%); }
  to   { clip-path: polygon(0 0, 118% 0, 100% 100%, 0 100%); }
}
@keyframes filmWipeBack {
  from { clip-path: polygon(100% 0, 100% 0, 118% 100%, 100% 100%); }
  to   { clip-path: polygon(100% 0, -18% 0, 0 100%, 100% 100%); }
}

/* Vạch gạt vàng chạy theo mép ảnh mới */
.media-slider[data-effect="wipe"]::before {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -12%;
  width: 7px;
  z-index: 3;
  background: rgb(var(--rgb-gold));
  box-shadow: 0 0 18px rgba(var(--rgb-gold), 0.65), 0 0 2px rgba(0, 0, 0, 0.4);
  transform: skewX(-10deg);
  opacity: 0;
  pointer-events: none;
}
.media-slider[data-effect="wipe"].is-wiping::before {
  animation: squeegeeNext 0.9s cubic-bezier(0.65, 0, 0.35, 1) both;
}
.media-slider[data-effect="wipe"].is-wiping[data-dir="back"]::before {
  animation-name: squeegeeBack;
}
@keyframes squeegeeNext {
  0%   { left: -12%; opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 112%; opacity: 0; }
}
@keyframes squeegeeBack {
  0%   { left: 112%; opacity: 1; }
  90%  { opacity: 1; }
  100% { left: -12%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .media-slider[data-effect="wipe"][data-animated] .slide.is-active,
  .media-slider[data-effect="wipe"].is-wiping::before { animation: none; }
}

/* ---------- Header 6 tab: thu gọn khoảng cách để không lố khung ---------- */
@media (min-width: 1041px) {
  .header-container { gap: 14px; }
  .nav-tab-btn { padding: 8px 11px; }
}
@media (min-width: 1041px) and (max-width: 1300px) {
  .nav-tab-btn { padding: 8px 7px; font-size: 1.02rem; }
}
@media (min-width: 1041px) {
  .brand-logo-link { flex-shrink: 0; }
  .header-action-group { gap: 8px; }
}

/* Ảnh mặt tiền: khung cao hơn để thấy cả bảng hiệu lẫn dàn xe khách đang chờ dán */
.about-storefront { aspect-ratio: 1 / 1; }
.store-front-img { height: auto; aspect-ratio: 6 / 5; }
.about-storefront > img,
.store-front-img { object-position: 50% 0; }

/* ---------- Ảnh phiếu bảo hành thật: khung nhỏ cạnh icon của ô "Thẻ bảo hành độc quyền" ---------- */
.feature-proof-img {
  position: absolute;
  top: 14px;
  right: 20px;
  width: 110px;
  height: auto;
  aspect-ratio: 720 / 474;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(var(--rgb-gold), 0.45);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transform: rotate(3deg);
  z-index: 1;
}


/* ---------- Thẻ combo phim cách nhiệt: làm nổi 2 combo + nhãn BEST ---------- */
.spec-combo {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(var(--rgb-gold), 0.45);
  background: rgba(var(--rgb-gold), 0.08);
}
.spec-combo .spec-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-gold);
}
.spec-combo .spec-val {
  font-size: 1.05rem;
  line-height: 1.45;
}
.spec-combo-best {
  border-width: 2px;
  border-color: rgb(var(--rgb-gold));
  background: rgba(var(--rgb-gold), 0.14);
}
.best-burst {
  display: inline-grid;
  place-items: center;
  width: 3em;
  height: 1.8em;
  margin-left: 1px;
  vertical-align: 1em;
  line-height: 1;
  background: #FFD21F;
  color: #D7141A;
  font-family: var(--font-heading);
  font-size: 0.55em;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.04em;
  clip-path: polygon(100.0% 50.0%, 89.4% 56.9%, 97.0% 67.1%, 84.6% 70.0%, 88.3% 82.1%, 75.7% 80.6%, 75.0% 93.3%, 63.7% 87.6%, 58.7% 99.2%, 50.0% 90.0%, 41.3% 99.2%, 36.3% 87.6%, 25.0% 93.3%, 24.3% 80.6%, 11.7% 82.1%, 15.4% 70.0%, 3.0% 67.1%, 10.6% 56.9%, 0.0% 50.0%, 10.6% 43.1%, 3.0% 32.9%, 15.4% 30.0%, 11.7% 17.9%, 24.3% 19.4%, 25.0% 6.7%, 36.3% 12.4%, 41.3% 0.8%, 50.0% 10.0%, 58.7% 0.8%, 63.7% 12.4%, 75.0% 6.7%, 75.7% 19.4%, 88.3% 17.9%, 84.6% 30.0%, 97.0% 32.9%, 89.4% 43.1%);
  transform: rotate(-8deg);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.nowrap { white-space: nowrap; }

/* ---------- Dòng nhắc "Cần tư vấn xe?" ---------- */
.cluster-hint {
  animation-iteration-count: 3;           /* nhấp nháy vài lần rồi đứng yên, không gây rối mắt */
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cluster-hint.is-tucked {                 /* đang xem chân trang: ẩn để không che địa chỉ, số Zalo */
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.hint-close {
  min-width: 32px;
  min-height: 32px;
  margin: -6px -8px -6px 0;
  display: inline-grid;
  place-items: center;
}

/* ---------- Số liệu hero trên điện thoại: 3 cột ngang hàng, không để "100%" rớt dòng một mình ---------- */
@media (max-width: 480px) {
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }
  .hero-stats .stat-divider { display: none; }
  .hero-stats .stat-item { min-width: 0; }
  .hero-stats .stat-number { font-size: clamp(1.6rem, 8vw, 2rem); }
  .hero-stats .stat-label { font-size: 0.75rem; line-height: 1.35; }
}

/* ---------- Thẻ dịch vụ cuối cùng của mỗi trang: bỏ khoảng trống thừa trước phần kế tiếp ---------- */
.section-detail-services .service-detail-card:last-child { margin-bottom: 0; }
/* Trên điện thoại dòng nhắc được canh giữa bằng translate riêng, để hiệu ứng nhấp nhô
   (dùng transform) không đẩy nó lệch sang phải và bị cắt mép màn hình. */
@media (max-width: 768px) {
  .cluster-hint {
    transform: none;
    translate: -50% 0;
    max-width: calc(100vw - 24px);
  }
}

/* ---------- Thanh tab: nút đầu và nút cuối bo theo đường cong của nền, không lòi góc ra ngoài ---------- */
.nav-tab-item:first-child .nav-tab-btn { border-top-left-radius: 9999px; border-bottom-left-radius: 9999px; padding-left: 14px; }
.nav-tab-item:last-child .nav-tab-btn { border-top-right-radius: 9999px; border-bottom-right-radius: 9999px; padding-right: 14px; }

/* ---------- Dải điểm mạnh 5 mục ---------- */
.value-strip-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .value-strip-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .value-strip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-strip-list > .value-item:last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .value-strip-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   VIDEO ĐẦU TRANG CHỦ: khung reel dọc 9:16 (kiểu TikTok / Reels)
   - Video tự chạy không tiếng, lặp lại; có nút dừng và bật tiếng.
   - Vạch tiến độ vàng chạy dưới đáy khung.
   - Khung "Liên hệ ngay" dán chồng lên mép video như miếng sticker.
   ========================================================================== */
.hero-media-wrapper--reel {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
}
.hero-media-wrapper--reel::after { content: none; }  /* vạch sọc chuyển xuống dưới khung reel */

.hero-reel {
  position: relative;
  margin: 0;
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  max-height: min(78vh, 680px);
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 6px rgba(var(--rgb-gold), 0.95),
    0 24px 50px -20px rgba(0, 0, 0, 0.6);
  transform: rotate(1.5deg);
}
.hero-reel::after {               /* vạch sọc tem đua dưới khung */
  content: "";
  position: absolute;
  left: -6%;
  bottom: -26px;
  width: 70%;
  height: 8px;
  background: var(--stripes);
  transform: skewX(-24deg);
  pointer-events: none;
}
.hero-reel-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Vạch tiến độ */
.hero-reel-progress {
  position: absolute;
  left: 12px; right: 12px; top: 12px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  z-index: 2;
}
.hero-reel-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: rgb(var(--rgb-gold));
}

/* Nút điều khiển */
.hero-reel-controls {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}
.hero-reel-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 15, 18, 0.62);
  backdrop-filter: blur(6px);
  color: #fff;
  font: 700 0.875rem/1 var(--font-body, inherit);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.hero-reel-btn:hover { background: rgba(14, 15, 18, 0.85); }
.hero-reel-sound[aria-pressed="true"] { background: rgb(var(--rgb-gold)); color: #111418; }

/* Khung "Liên hệ ngay" dán chồng lên mép trái video */
@media (min-width: 861px) {
  .hero-media-wrapper--reel .hero-badge-float {
    position: absolute;
    top: auto; right: auto;
    left: max(0px, calc(50% - 300px));
    bottom: 12%;
    width: 280px;
    max-width: 280px;
    z-index: 3;
    transform: rotate(-3deg);
    box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.55);
  }
  .hero-media-wrapper--reel .hero-badge-float strong { white-space: normal; }
}

/* Điện thoại / tablet dọc: khung thấp hơn để không chiếm cả màn hình */
@media (max-width: 860px) {
  .hero-media-wrapper--reel { margin-top: 8px; padding-bottom: 18px; }
  .hero-reel {
    width: min(100%, 420px);
    aspect-ratio: 4 / 5;
    max-height: none;
    transform: none;
  }
  .hero-reel::after { bottom: -18px; }
  .hero-media-wrapper--reel .hero-badge-float {
    position: relative;
    inset: auto;
    order: 2;
    width: min(100%, 420px);
    max-width: none;
    margin-top: 28px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reel { transform: none; }
}

/* ---------- Hộp chọn xe máy / ô tô (dùng lại khung của hộp chọn Zalo) ---------- */
.vehicle-option-icon {
  background: rgb(var(--rgb-gold));
  color: #111418;
  font-size: 1.1rem;
}
.vehicle-picker .zalo-option > .fa-arrow-right { transition: transform 0.2s ease; }
.vehicle-picker .zalo-option:hover > .fa-arrow-right,
.vehicle-picker .zalo-option:focus-visible > .fa-arrow-right { transform: translateX(3px); }

/* ---------- Thanh tab sau khi đổi tên dài hơn ("Dịch vụ xe máy", "Tem theo yêu cầu"): thu gọn thêm ---------- */
@media (min-width: 1041px) {
  .header-container { gap: 10px; }
  .nav-tab-btn { padding: 8px 8px; font-size: 1rem; }
}
@media (min-width: 1041px) and (max-width: 1200px) {
  .nav-tab-btn { padding: 8px 5px; font-size: 0.94rem; }
}
@media (min-width: 1201px) and (max-width: 1280px) {
  .nav-tab-btn { padding: 8px 5px; font-size: 0.94rem; }
}

/* ==========================================================================
   THẺ "DÁN PPF Ô TÔ TẬN NHÀ"
   - Cụm 4 ảnh: 2 ảnh dán tại nhà khách (to, viền vàng, có con dấu "Dán tận nhà"),
     2 ảnh dán tại tiệm (nhỏ hơn) để khách thấy rõ hai nơi dán.
   ========================================================================== */
.ppf-home-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.ppf-home-media {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  padding: 14px;
  background: rgb(var(--rgb-bg-elevated));
}
.ppf-home-group {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ppf-shot {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  background: #000;
}
.ppf-shot--tall { aspect-ratio: 3 / 4; }
.ppf-shot img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Ảnh tận nhà: viền vàng để tách khỏi ảnh tại tiệm */
.ppf-home-group--home .ppf-shot { box-shadow: 0 0 0 3px rgb(var(--rgb-gold)); }

/* Con dấu tròn "Dán tận nhà" đóng chồng giữa 2 ảnh */
.ppf-home-stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 112px;
  margin: -56px 0 0 -56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  text-align: center;
  background: rgb(var(--rgb-gold));
  color: #111418;
  border: 4px solid #fff;
  outline: 2px dashed rgba(17, 20, 24, 0.55);
  outline-offset: -12px;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.6);
  transform: rotate(-10deg);
  z-index: 2;
  pointer-events: none;
}
.ppf-home-stamp i { font-size: 1.25rem; }
.ppf-home-stamp b {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.05;
  font-weight: 800;
}

/* Nhãn nhỏ cho biết ảnh chụp ở đâu */
.ppf-shot-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(14, 15, 18, 0.78);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.ppf-shot-tag i { color: rgb(var(--rgb-gold)); }
.ppf-shot-tag--shop { background: rgba(14, 15, 18, 0.62); }

.ppf-home-card .service-detail-info h3 { margin-top: 2px; }
.ppf-home-benefit { color: var(--text-secondary); }

/* 3 bước đặt thợ (là trình tự thật nên có số) */
.ppf-home-steps {
  list-style: none;
  counter-reset: hs;
  margin: 4px 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ppf-home-steps li {
  counter-increment: hs;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-primary);
}
.ppf-home-steps li::before {
  content: counter(hs);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(var(--rgb-gold));
  color: #111418;
  font-family: var(--font-heading);
  font-weight: 800;
}

@media (max-width: 860px) {
  .ppf-home-card { grid-template-columns: minmax(0, 1fr); }
  .ppf-home-media { padding: 10px; gap: 8px; }
  .ppf-home-group { gap: 8px; }
  .ppf-home-stamp { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
  .ppf-home-stamp b { font-size: 0.92rem; }
}

/* ==========================================================================
   HIỆU ỨNG "DÁN TEM" (thẻ tem xe hơi) — khác kiểu mờ dần (PPF) và gạt phim (phim cách nhiệt)
   Ảnh mới trượt vào từ một bên, hơi nghiêng rồi "đáp" phẳng xuống như miếng tem vừa vỗ lên xe;
   ảnh cũ lùi nhẹ ra phía sau.
   ========================================================================== */
.media-slider[data-effect="stick"] .slide {
  opacity: 0;
  transform: none;
  transition: none;
  z-index: 0;
}
.media-slider[data-effect="stick"] .slide.is-active { opacity: 1; z-index: 2; }
.media-slider[data-effect="stick"] .slide.is-prev { opacity: 1; z-index: 1; }
.media-slider[data-effect="stick"][data-animated] .slide.is-active {
  animation: temStickNext 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.12) both;
}
.media-slider[data-effect="stick"][data-animated][data-dir="back"] .slide.is-active { animation-name: temStickBack; }
.media-slider[data-effect="stick"][data-animated] .slide.is-prev {
  animation: temStickAway 0.75s ease both;
}
@keyframes temStickNext {
  0%   { transform: translateX(105%) rotate(7deg) scale(0.96); box-shadow: -18px 0 30px rgba(0,0,0,.45); }
  70%  { transform: translateX(-2%) rotate(-1deg) scale(1.01); }
  100% { transform: none; box-shadow: none; }
}
@keyframes temStickBack {
  0%   { transform: translateX(-105%) rotate(-7deg) scale(0.96); box-shadow: 18px 0 30px rgba(0,0,0,.45); }
  70%  { transform: translateX(2%) rotate(1deg) scale(1.01); }
  100% { transform: none; box-shadow: none; }
}
@keyframes temStickAway {
  from { transform: none; filter: brightness(1); }
  to   { transform: scale(0.92); filter: brightness(0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .media-slider[data-effect="stick"][data-animated] .slide { animation: none; }
}

/* ---------- Thẻ "Biển số": hình minh họa chung, không dùng ảnh biển số thật ---------- */
.plate-media {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(-30deg, transparent 0 22px, rgba(var(--rgb-gold), 0.08) 22px 26px),
    rgb(var(--rgb-bg-elevated));
}
.plate-art { position: relative; display: grid; place-items: center; padding: 32px; }
.plate-art-frame {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 240px;
  padding: 14px 26px 16px;
  background: #fff;
  color: #111418;
  border: 4px solid #111418;
  border-radius: 10px;
  box-shadow: 0 0 0 6px #c9ced6, 0 18px 30px -16px rgba(0, 0, 0, 0.6);
  transform: rotate(-4deg);
}
.plate-art-top { font: 700 0.85rem/1 var(--font-heading); letter-spacing: 0.2em; color: #495261; }
.plate-art-num { font: 800 clamp(2rem, 4vw, 2.8rem)/1.1 var(--font-heading); letter-spacing: 0.04em; }
.plate-art-icon {
  position: absolute;
  right: 10px;
  bottom: 6px;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgb(var(--rgb-gold));
  color: #111418;
  font-size: 1.3rem;
  border: 3px solid #fff;
}
@media (max-width: 860px) {
  .plate-media { min-height: 200px; }
  .plate-art-frame { min-width: 200px; }
}
/* Nền thẻ biển số: ảnh mặt tiền tiệm (đã che biển số), phủ tối để tấm biển minh họa nổi lên */
.plate-media {
  background:
    linear-gradient(rgba(14, 15, 18, 0.45), rgba(14, 15, 18, 0.55)),
    url("assets/bien_so_nen_tiem.jpg") center 38% / cover no-repeat;
}
.plate-media .plate-art-icon { box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.6); }
/* Khung cao hơn + tấm biển dời xuống góc phải để lộ hết chữ "Tấn Kiệt" trên bảng hiệu */
.plate-card .plate-media {
  min-height: 300px;
  background-position: center, center 36%;
  place-items: end end;
}
.plate-card .plate-art { padding: 18px 22px; }
.plate-card .plate-art-frame { min-width: 0; padding: 10px 20px 12px; }
.plate-card .plate-art-num { font-size: clamp(1.5rem, 3vw, 2rem); }
.plate-card .plate-art-icon { width: 44px; height: 44px; font-size: 1.1rem; right: 4px; bottom: 2px; }
@media (max-width: 860px) {
  .plate-card .plate-media { min-height: 240px; max-height: none; }
}
/* Tấm biển đặt vào khoảng trống trước cửa tiệm, dưới bảng hiệu (không che chữ Tấn Kiệt) */
.plate-card .plate-media { position: relative; }
.plate-card .plate-art {
  position: absolute;
  left: 50%;
  top: 66%;
  transform: translate(-50%, -50%);
  padding: 0;
}
.plate-card .plate-art-icon { right: -16px; bottom: -14px; }
@media (max-width: 860px) {
  .plate-card .plate-art { top: 76%; }
}

/* ==========================================================================
   HIỆU ỨNG "CẮT TỪ GIỮA" (thẻ tem rời xe máy) — khác mờ dần, gạt phim và dán tem
   Mỗi lần đổi ảnh, ảnh mới mở ra từ một đường cắt qua tâm, lần lượt: ngang → dọc → chéo phải → chéo trái.
   ========================================================================== */
.media-slider[data-effect="print"] .slide { opacity: 0; transform: none; transition: none; z-index: 0; }
.media-slider[data-effect="print"] .slide.is-active { opacity: 1; z-index: 2; }
.media-slider[data-effect="print"] .slide.is-prev { opacity: 1; z-index: 1; }
.media-slider[data-effect="print"][data-animated] .slide.is-active {
  animation: 0.8s cubic-bezier(0.55, 0, 0.2, 1) both;
}
/* Ngang: đường cắt nằm ngang giữa khung, mở ra trên và dưới */
.media-slider[data-effect="print"][data-animated][data-cut="ngang"] .slide.is-active { animation-name: temCutNgang; }
/* Dọc: đường cắt đứng giữa khung, mở ra trái và phải */
.media-slider[data-effect="print"][data-animated][data-cut="doc"] .slide.is-active { animation-name: temCutDoc; }
/* Chéo phải (/) và chéo trái (\) qua tâm khung */
.media-slider[data-effect="print"][data-animated][data-cut="cheo-phai"] .slide.is-active { animation-name: temCutCheoPhai; }
.media-slider[data-effect="print"][data-animated][data-cut="cheo-trai"] .slide.is-active { animation-name: temCutCheoTrai; }
@keyframes temCutNgang { from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes temCutDoc { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes temCutCheoPhai { from { clip-path: polygon(-50% 150%, 150% -50%, 150% -50%, -50% 150%); } to { clip-path: polygon(10% 210%, 210% 10%, 90% -110%, -110% 90%); } }
@keyframes temCutCheoTrai { from { clip-path: polygon(-50% -50%, 150% 150%, 150% 150%, -50% -50%); } to { clip-path: polygon(10% -110%, 210% 90%, 90% 210%, -110% 10%); } }
@media (prefers-reduced-motion: reduce) {
  .media-slider[data-effect="print"][data-animated] .slide { animation: none; }
}

/* ---------- TikTok: nền đen chữ trắng, viền xanh/hồng như logo TikTok ---------- */
.contact-tile-icon-tiktok,
.tiktok-option-icon {
  color: #fff;
  background: #010101;
  border-color: #010101;
  box-shadow: -2px -2px 0 #25F4EE, 2px 2px 0 #FE2C55;
}
.contact-tile-btn-tiktok {
  color: var(--text-primary);
  background: rgba(1, 1, 1, 0.06);
  border-color: rgba(1, 1, 1, 0.3);
}
:root[data-theme="dark"] .contact-tile-btn-tiktok { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.contact-tile-btn-tiktok:hover { background: #010101; color: #fff; }
.drawer-social-btn.tiktok-btn { background: #010101; color: #fff; border-color: #010101; }
.tiktok-option-icon { font-size: 1.1rem; }
/* Ô TikTok trải hết hàng cuối, chữ và nút nằm ngang cho cân */
.store-contact-grid .contact-tile--tiktok { grid-column: 1 / -1; align-items: center; }
@media (min-width: 640px) {
  .contact-tile--tiktok .contact-tile-body { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
  .contact-tile--tiktok .contact-tile-btn { margin-left: auto; margin-top: 0; }
}

/* ==========================================================================
   KHỐI LIÊN HỆ (trang Cửa hàng)
   - Bên trái: "tấm bảng hiệu" vàng giống bảng hiệu thật của tiệm (chữ đỏ, chữ đen).
   - Bên phải: danh sách kênh nhắn tin, mỗi dòng bấm được cả dòng, có vạch màu của từng kênh.
   ========================================================================== */
.contact-board { margin-top: clamp(32px, 5vw, 56px); }
.contact-board-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 18px;
}
.contact-board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* Tấm bảng hiệu */
.shop-sign {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 16px;
  background: #FFC72C;
  color: #15181D;
  border: 4px solid #15181D;
  box-shadow: 8px 8px 0 #D21F2B;
  overflow: hidden;
}
.shop-sign::after {            /* dải xanh dưới đáy như viền bảng hiệu thật */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  background: #1D3FA8;
}
.shop-sign-kicker {
  margin: 0;
  font-weight: 700;
  color: #D21F2B;
  display: inline-flex; align-items: center; gap: 8px;
}
.shop-sign-address {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.08;
}
.shop-sign-hours, .shop-sign-note { margin: 0; font-weight: 600; line-height: 1.5; }
.shop-sign-hours i { margin-right: 6px; }
.shop-sign-note { font-weight: 500; opacity: 0.85; }
.shop-sign-btn {
  align-self: flex-start;
  margin: 6px 0 10px;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border-radius: 999px;
  background: #15181D; color: #FFC72C;
  font-weight: 700; text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease;
}
.shop-sign-btn:hover { background: #000; }
.shop-sign-btn:active { transform: translateY(1px); }

/* Danh sách kênh nhắn tin */
.channel-panel {
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(18px, 2.4vw, 24px);
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
}
.channel-panel-title { margin: 0; font-weight: 700; color: var(--text-primary); }
.channel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.channel-row {
  --ch: #0068ff;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 16px 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  background: rgb(var(--rgb-bg-elevated));
  border-left: 5px solid var(--ch);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.channel-row:hover { transform: translateX(3px); box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.5); }
.channel-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ch); color: #fff;
  font-weight: 800; font-size: 0.78rem;
}
.channel-text { display: flex; flex-direction: column; min-width: 0; }
.channel-text strong { font-size: 1rem; }
.channel-text span { color: var(--text-secondary); font-size: 0.92rem; overflow-wrap: anywhere; }
.channel-go { color: var(--text-secondary); }
.channel-fb { --ch: #1877f2; }
.channel-tiktok { --ch: #010101; }
.channel-tiktok .channel-icon { box-shadow: -2px -2px 0 #25F4EE, 2px 2px 0 #FE2C55; font-size: 1rem; }
:root[data-theme="dark"] .channel-tiktok { border-left-color: #25F4EE; }
.channel-panel-note { margin: 0; font-size: 0.9rem; color: var(--text-secondary); }

@media (max-width: 860px) {
  .contact-board-grid { grid-template-columns: minmax(0, 1fr); }
  .shop-sign { box-shadow: 6px 6px 0 #D21F2B; margin-right: 6px; }
  .shop-sign-btn { align-self: stretch; justify-content: center; }
}
.shop-sign { justify-content: center; }

/* ---------- Check UI: chữ đỏ trên nền vàng đậm hơn để đủ tương phản (≥ 4.5:1) ---------- */
.shop-sign-kicker { color: #A3121C; }
.best-burst { color: #A3121C; }
.unread-badge { background: #C81E1E; }

/* ==========================================================================
   HIỆU ỨNG "LẬT TRANG" (thẻ tem trùm toàn xe) — phiên bản 2D, không dùng 3D
   Ảnh cũ thu hẹp lại về cạnh bên như tờ giấy được gập; ảnh mới mở rộng từ cạnh đó.
   Mọi ảnh đều nằm gọn trong khung (overflow + contain), nên không tràn ra ngoài thẻ.
   Khác mờ dần (PPF), gạt phim (phim cách nhiệt), dán tem (tem xe hơi), cắt từ giữa (tem rời).
   ========================================================================== */
.media-slider[data-effect="flip"] { contain: paint; }
.media-slider[data-effect="flip"] .slide {
  opacity: 0;
  transform: none;
  transition: none;
  z-index: 0;
}
.media-slider[data-effect="flip"] .slide.is-active { opacity: 1; z-index: 2; }
.media-slider[data-effect="flip"] .slide.is-prev { opacity: 1; z-index: 1; }
.media-slider[data-effect="flip"][data-animated] .slide.is-active {
  transform-origin: left center;
  animation: temFlipIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.media-slider[data-effect="flip"][data-animated] .slide.is-prev {
  transform-origin: right center;
  animation: temFlipOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.media-slider[data-effect="flip"][data-animated][data-dir="back"] .slide.is-active { transform-origin: right center; }
.media-slider[data-effect="flip"][data-animated][data-dir="back"] .slide.is-prev { transform-origin: left center; }
@keyframes temFlipIn {
  from { transform: scaleX(0.02); filter: brightness(0.55); }
  to   { transform: scaleX(1);    filter: brightness(1); }
}
@keyframes temFlipOut {
  from { transform: scaleX(1);    filter: brightness(1); }
  to   { transform: scaleX(0.02); filter: brightness(0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .media-slider[data-effect="flip"][data-animated] .slide { animation: none; }
}

/* ---------- Thẻ "In tem trùm toàn xe": ảnh chụp dọc nên khung ảnh phải cao đủ để thấy cả chiếc xe ---------- */
@media (max-width: 860px) {
  .tem-trum-card .service-detail-media {
    height: auto;
    min-height: 0;
    max-height: 560px;
    aspect-ratio: 4 / 5;
  }
}
@media (min-width: 861px) {
  .tem-trum-card .service-detail-media { min-height: 460px; }
}

/* ---------- Thẻ PPF xe máy: điểm "Công dụng mới" (hạn chế để lại nhựa keo khi tháo keo cũ) ---------- */
.ppf-new-use {
  position: relative;
  margin: 4px 0 20px;
  padding: 18px 18px 16px 20px;
  border-radius: 12px;
  background: rgba(var(--rgb-gold), 0.14);
  border: 2px solid rgb(var(--rgb-gold));
  box-shadow: 0 10px 22px -16px rgba(0, 0, 0, 0.55);
}
.ppf-new-use-tag {
  position: absolute;
  top: -14px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(var(--rgb-gold));
  color: #111418;
  font-size: 0.85rem;
  font-weight: 800;
  transform: rotate(-2deg);
}
.ppf-new-use p {
  margin: 6px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}
.ppf-new-use p strong { color: var(--accent-gold); }

/* ---------- Chân trang: 2 dòng chuyên môn (xe máy / ô tô) + slogan nổi bật ---------- */
.footer-expertise { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; max-width: 60ch; }
.footer-expertise li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--text-secondary); line-height: 1.55; font-size: 0.95rem; }
.footer-expertise i {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(var(--rgb-gold), 0.16);
  color: var(--accent-gold);
  border: 1px solid rgba(var(--rgb-gold), 0.4);
}
.footer-expertise strong { color: var(--text-primary); }
.footer-slogan {
  display: inline-block;
  margin: 0 0 22px;
  padding: 8px 18px 10px;
  border-radius: 10px;
  background: rgb(var(--rgb-gold));
  color: #111418;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.15;
  transform: rotate(-1.5deg);
  box-shadow: 4px 4px 0 #D21F2B;
}
.footer-slogan span { opacity: 0.55; margin: 0 4px; }

/* ---------- Chân trang: link dịch vụ thường nổi lên khỏi nền (nền riêng, viền vàng bên trái, chữ đậm) ---------- */
.footer-links li:not(.footer-featured) { margin-bottom: 8px; }
.footer-links li:not(.footer-featured) a {
  display: flex;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid rgb(var(--rgb-gold));
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 6px 14px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, background-color 0.2s ease;
}
.footer-links li:not(.footer-featured) a:hover { background: rgba(var(--rgb-gold), 0.14); color: var(--text-primary); transform: translateX(3px); }
.footer-links li:not(.footer-featured) a i { color: var(--accent-gold); }

/* ---------- Chân trang: ô Best Seller đặc màu vàng, nổi hơn hẳn hai ô link thường bên dưới ---------- */
.footer-links .footer-featured a,
.footer-featured a {
  background: rgb(var(--rgb-gold));
  border: 3px solid #15181D;
  box-shadow: 5px 5px 0 #D21F2B;
  padding: 14px 16px 16px;
}
.footer-links .footer-featured a:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #D21F2B; }
.footer-featured-name,
.footer-links .footer-featured .footer-featured-name { color: #111418; font-size: 1.3rem; }
.footer-links .footer-featured .footer-best-seller {
  background: #15181D;
  color: rgb(var(--rgb-gold));
  box-shadow: none;
}
.footer-links .footer-featured .footer-best-seller i,
:root[data-theme="light"] .footer-links .footer-featured .footer-best-seller i { color: rgb(var(--rgb-gold)); }
.footer-links .footer-featured .footer-best-seller .fa-fire { color: #FF6B4A; }
.footer-links li.footer-featured { margin-bottom: 22px; }
