/*
 * AMTEC storefront — styles cắt từ <style> trong <head> của theme (dich-vu.html, chung cho mọi trang).
 * Tiện ích Tailwind đến từ Tailwind CDN + js/tailwind-config.js; file này chỉ giữ phần CSS viết tay.
 */
body, button, input, select, textarea {
  font-family: 'Montserrat', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.reveal-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-from-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-from-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-from-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-from-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

/*
 * Bảng thông số sản phẩm. Bảng là mô tả sản phẩm soạn trong admin (HTML đã qua sanitizer, không giữ
 * class Tailwind), nên kiểu của bảng gốc trong theme được viết lại ở đây theo selector.
 */
.amtec-specs table {
  width: 100%;
  text-align: left;
  font-size: 0.75rem;
  line-height: 1rem;
  border-collapse: collapse;
}
.amtec-specs tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s;
}
.amtec-specs tr:last-child {
  border-bottom: 0;
}
.amtec-specs tr:hover {
  background-color: #f8fafc;
}
.amtec-specs td,
.amtec-specs th {
  padding: 0.75rem 1rem;
  color: #475569;
  font-weight: 500;
}
.amtec-specs td:first-child,
.amtec-specs th:first-child {
  width: 33.333%;
  font-weight: 700;
  color: #334155;
  background-color: rgb(248 250 252 / 0.7);
}
@media (min-width: 640px) {
  .amtec-specs td:first-child,
  .amtec-specs th:first-child {
    width: 25%;
  }
}

/*
 * Nội dung bài viết / trang chính sách soạn trong admin. Tailwind preflight xoá kiểu mặc định của
 * h2, ul, a…; chỉ trả lại cho phần tử không mang class, để bài cắt từ theme (đã có class) giữ nguyên.
 */
.amtec-prose h2:not([class]) { font-size: 1.5rem; line-height: 2rem; font-weight: 800; color: #0f172a; }
.amtec-prose h3:not([class]) { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; color: #0f172a; }
.amtec-prose h4:not([class]) { font-size: 1.125rem; font-weight: 700; color: #0f172a; }
.amtec-prose p:not([class]) { line-height: 1.75; }
.amtec-prose a:not([class]) { color: #dc2626; font-weight: 600; text-decoration: underline; }
.amtec-prose ul:not([class]) { list-style: disc; padding-left: 1.5rem; }
.amtec-prose ol:not([class]) { list-style: decimal; padding-left: 1.5rem; }
.amtec-prose img:not([class]) { border-radius: 1rem; }
.amtec-prose table:not([class]) { width: 100%; border-collapse: collapse; }
.amtec-prose table:not([class]) td, .amtec-prose table:not([class]) th { border: 1px solid #e2e8f0; padding: 0.5rem 0.75rem; }
