/* ===== P.A Phương Anh – style chung ===== */
:root {
  --bg: #0c0d10;
  --bg-2: #14161b;
  --card: #1a1d24;
  --line: #2a2e38;
  --text: #f2f3f5;
  --muted: #9aa0ad;
  --accent: #ff4d2e;
  --accent-2: #ffb020;
  --zalo: #0068ff;
  --radius: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ----- Nút ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, background .2s, border-color .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #ff6a4f; }
.btn-outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); }
.btn-zalo { background: var(--zalo); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ----- Header ----- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 13, 16, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; font-size: 15px; color: #fff; letter-spacing: -.5px;
}
.logo small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 600; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active { position: relative; }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.menu-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }

/* ----- Hero ----- */
.hero { position: relative; overflow: hidden; padding: 90px 0 100px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255, 77, 46, .28), transparent 65%);
  pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; position: relative; }
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 77, 46, .12); color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: .5px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.1; font-weight: 800; letter-spacing: -1.5px; }
.hero p { color: var(--muted); font-size: 18px; margin: 20px 0 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 28px; font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: 14px; }

/* Loa minh họa bằng CSS (thay bằng ảnh thật sau) */
.speaker-art { position: relative; display: grid; place-items: center; }
.speaker {
  width: min(340px, 80vw); aspect-ratio: 3 / 4; border-radius: 28px;
  background: linear-gradient(160deg, #2b2f39, #121419);
  border: 1px solid #3a3f4b; box-shadow: 0 40px 80px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; padding: 24px;
}
.speaker .knobs { display: flex; gap: 12px; }
.speaker .knobs i { width: 18px; height: 18px; border-radius: 50%; background: #3d4250; border: 2px solid #555b6b; }
.speaker .knobs i:nth-child(odd) { animation: blink 1.6s infinite; }
.speaker .tweeter { width: 28%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #6b7080 10%, #1d2027 60%); border: 3px solid #444a57; }
.speaker .woofer {
  width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #555b6b 8%, #23262e 22%, #16181d 60%, #2c3039 62%, #16181d 70%);
  border: 4px solid #4a5060; animation: bass .5s ease-in-out infinite alternate;
}
@keyframes bass { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes blink { 50% { background: var(--accent); border-color: var(--accent-2); } }

/* ----- Section ----- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -1px; line-height: 1.2; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }

/* ----- Tính năng ----- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--accent); transform: translateY(-4px); }
.feature .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 77, 46, .12); color: var(--accent); margin-bottom: 18px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ----- Sản phẩm ----- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.product:hover { transform: translateY(-6px); border-color: #3d4250; }
.product-img { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 40%, #2a2e38, #121419); display: grid; place-items: center; }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.product-img .ph { font-size: 44px; font-weight: 800; color: #3a3f4b; letter-spacing: -1px; }
.badge { position: absolute; top: 14px; left: 14px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-cat { color: var(--accent-2); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.product h3 { font-size: 21px; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; }
.specs span { background: var(--bg-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.price { font-size: 22px; font-weight: 800; color: var(--accent); }
.price small { display: block; font-size: 13px; color: var(--muted); text-decoration: line-through; font-weight: 400; }

/* Bộ lọc */
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filters button { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 600; font-family: inherit; font-size: 14px; cursor: pointer; transition: all .2s; }
.filters button.active, .filters button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ----- Đánh giá ----- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.stars { color: var(--accent-2); letter-spacing: 2px; margin-bottom: 12px; }
.review p { color: #d0d3da; font-size: 15px; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; font-weight: 800; }
.review-author span { display: block; color: var(--muted); font-size: 13px; }

/* ----- CTA ----- */
.cta { border-radius: 24px; padding: 56px 40px; text-align: center; background: linear-gradient(135deg, #ff4d2e, #ff8a1f); position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -1px; }
.cta p { margin: 12px auto 28px; max-width: 520px; opacity: .92; font-size: 17px; }
.cta .btn-primary { background: #fff; color: var(--accent); }
.cta .btn-outline { border-color: rgba(255, 255, 255, .6); color: #fff; }

/* ----- Page hero (trang con) ----- */
.page-hero { padding: 70px 0 50px; text-align: center; background: radial-gradient(ellipse at top, rgba(255, 77, 46, .18), transparent 60%); }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 50px); font-weight: 800; letter-spacing: -1.2px; }
.page-hero p { color: var(--muted); margin-top: 10px; font-size: 17px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--accent); }

/* ----- Giới thiệu ----- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-grid h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.8px; margin-bottom: 16px; }
.about-grid p { color: var(--muted); margin-bottom: 14px; }
.about-visual { aspect-ratio: 1; border-radius: 24px; background: linear-gradient(160deg, #22252d, #121419); border: 1px solid var(--line); display: grid; place-items: center; font-size: 64px; font-weight: 800; color: #2f333d; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 16px; }
.stats strong { display: block; font-size: 36px; font-weight: 800; color: var(--accent); }
.stats span { color: var(--muted); font-size: 15px; }
.timeline { max-width: 720px; margin: 0 auto; border-left: 2px solid var(--line); padding-left: 30px; }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before { content: ""; position: absolute; left: -38px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.timeline-item b { color: var(--accent-2); }
.timeline-item h3 { font-size: 19px; margin: 4px 0 6px; }
.timeline-item p { color: var(--muted); }

/* ----- Liên hệ ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact-item .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 77, 46, .12); color: var(--accent); }
.contact-item h3 { font-size: 16px; }
.contact-item p, .contact-item a { color: var(--muted); font-size: 15px; }
.contact-item a:hover { color: var(--accent); }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; }
.form h2 { font-size: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font-family: inherit; font-size: 15px; transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 14px; color: #4ade80; display: none; }
.form-note.show { display: block; }
.map { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 360px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) invert(.9) hue-rotate(180deg); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* ----- Modal sản phẩm ----- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .75); display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal-box { background: var(--card); border: 1px solid var(--line); border-radius: 20px; max-width: 820px; width: 100%; max-height: 90vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.modal-box .product-img { aspect-ratio: auto; min-height: 300px; }
.modal-content { padding: 30px; }
.modal-content h3 { font-size: 26px; margin: 6px 0 14px; }
.modal-content table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 14px; }
.modal-content td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.modal-content td:first-child { color: var(--muted); width: 45%; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg-2); color: var(--text); font-size: 20px; cursor: pointer; z-index: 2; }

/* ----- Footer ----- */
.footer { border-top: 1px solid var(--line); padding: 60px 0 30px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-size: 16px; margin-bottom: 16px; }
.footer p, .footer li { color: var(--muted); font-size: 14px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; }

/* ----- Nút Zalo nổi ----- */
.float-zalo { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--zalo); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 104, 255, .5); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 104, 255, .55); } 50% { box-shadow: 0 0 0 14px rgba(0, 104, 255, 0); } }

/* Hiện dần khi cuộn */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .products, .reviews { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 20px; width: 100%; border-top: 1px solid var(--line); }
  .nav a.active::after { display: none; }
  .nav .btn { margin: 14px 20px; width: calc(100% - 40px); justify-content: center; }
  .hero { padding: 50px 0 70px; }
  .hero .container, .about-grid, .contact-grid, .modal-box { grid-template-columns: 1fr; }
  .speaker-art { order: -1; }
  .speaker { width: min(240px, 70vw); }
  .products, .reviews, .features { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta { padding: 40px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
