/* MEGASHARK – website bán sỉ PETG Coobeen. Trang tĩnh, không cần máy chủ đặc biệt. */
:root {
  /* Màu lấy theo logo MEGASHARK (Canva "LOGO MEGASHARK") */
  --navy: #1f2a78;
  --navy-2: #2c3892;
  --teal: #1aa7dc;
  --accent: #ff7a1a;
  --accent-dark: #e0620a;
  --ink: #1b2430;
  --muted: #5b6776;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --ok: #138a4b;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(13, 42, 74, .10);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.25; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section.soft { background: var(--bg-soft); }
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.small { font-size: .9rem; color: var(--muted); }

/* Đầu trang */
.topbar { background: var(--navy); color: #fff; font-size: .9rem; }
.topbar .wrap { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
header.site { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; }
.logo img { height: 48px; width: auto; }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
nav.main a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
nav.main a:hover, nav.main a[aria-current="page"] { background: var(--bg-soft); color: var(--navy-2); }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 12px; font-size: 1rem; font-weight: 700; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  nav.main { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; padding: 8px 16px 16px; }
  nav.main a { padding: 12px; font-size: 1.05rem; }
}

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--navy-2); color: var(--navy-2); background: #fff; }
.btn-outline:hover { background: var(--bg-soft); }
.btn-zalo { background: #0068ff; color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Khối đầu trang chủ */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1b6fb0 100%); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { color: #fff; }
.hero .lead { color: #d6e4f2; }
.hero img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.slogan { display: inline-block; background: rgba(255,255,255,.12); padding: 6px 14px; border-radius: 999px; font-weight: 600; margin-bottom: 16px; font-size: .95rem; }
.hero-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 6px; }
.hero-points li::before { content: "✓ "; color: #7fe3c8; font-weight: 800; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Lưới thẻ */
.grid { display: grid; gap: 20px; }
.grid > *, .product > *, .hero .wrap > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card .icon { font-size: 1.8rem; margin-bottom: 6px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 62px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center; }

/* Bảng */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--navy); color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--bg-soft); }
td.price { font-weight: 800; color: var(--navy); font-size: 1.1rem; white-space: nowrap; }
tr.highlight td { background: #fff4ea !important; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; vertical-align: middle; margin-left: 6px; }

/* Bảng màu */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sw { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .92rem; }
.sw i { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.sw i.clear { background-image: linear-gradient(45deg, rgba(255,255,255,.55) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.55) 75%, transparent 75%); background-size: 8px 8px; }
.sw i.metal { box-shadow: inset -4px -4px 8px rgba(0,0,0,.25), inset 4px 4px 8px rgba(255,255,255,.6); }

/* Ảnh thật từng màu */
.colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.colors a { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.colors a:hover { border-color: var(--accent); }
.colors img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.colors span { display: block; padding: 6px 8px; font-size: .9rem; font-weight: 600; text-align: center; }
@media (max-width: 480px) { .colors { grid-template-columns: repeat(2, 1fr); } }

/* Ghi chú */
.note { border-left: 4px solid var(--teal); background: #eefaf9; padding: 14px 18px; border-radius: 8px; }
.note.warn { border-color: var(--accent); background: #fff4ea; }

/* Biểu mẫu */
form.box { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid #c8d1dc; border-radius: 10px; background: #fff; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(10,163,163,.3); border-color: var(--teal); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.form-result { display: none; }
.form-result.show { display: block; }
.form-result textarea { width: 100%; min-height: 140px; font: inherit; padding: 10px; border-radius: 10px; border: 1px solid var(--line); }

/* Cài đặt in */
.settings td:first-child { font-weight: 600; }
.settings td:nth-child(2) { font-weight: 800; color: var(--navy); white-space: nowrap; }

/* Trang sản phẩm */
.prod-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.prod-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; background: #fff; }
.prod-nav a:hover { border-color: var(--navy-2); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.gallery .main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; aspect-ratio: 1; }
.gallery .main img, .gallery .main video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff; aspect-ratio: 1; position: relative; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.active { border-color: var(--accent); }
.thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(31,42,120,.55); color: #fff; font-weight: 800; font-size: .8rem; }
.price-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.price-mini div { background: var(--bg-soft); border-radius: 10px; padding: 10px; text-align: center; font-size: .85rem; color: var(--muted); }
.price-mini b { display: block; font-size: 1.1rem; color: var(--navy); }
@media (max-width: 480px) { .price-mini { grid-template-columns: repeat(2, 1fr); } }
.prod-card img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.prod-card h3 { margin: 12px 0 4px; font-size: 1.05rem; }
.prod-card { text-decoration: none; color: inherit; display: block; }

/* Chân trang */
footer.site { background: var(--navy); color: #c9d6e4; padding: 40px 0 90px; font-size: .95rem; }
footer.site a { color: #fff; }
footer.site h3 { color: #fff; font-size: 1.05rem; }
footer.site .grid { grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { footer.site .grid { grid-template-columns: 1fr; } }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* Nút nổi Zalo / gọi */
.float-contact { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: 10px; }
.float-contact a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; font-weight: 800; box-shadow: 0 6px 18px rgba(0,0,0,.25); font-size: .8rem; }
.float-contact .fz { background: #0068ff; }
.float-contact .fp { background: var(--ok); font-size: 1.5rem; }
