/* laptopkontum.com — bento layout, gradient mesh, mobile-first */
:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-alt: #f1efe8;
  --ink: #14151a;
  --ink-muted: #6b6d76;
  --border: #e7e5e0;
  --accent: #0f9d70;
  --accent-2: #6366f1;
  --accent-dark: #067a56;
  --accent-soft: #e3f5ec;
  --dark-bg: #0a0b0d;
  --display: 'Space Grotesk', var(--sans);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--bg); line-height: 1.5; }
h1, h2, h3, .logo, .btn-cta, .stat-num, .price-big, .bento-value, .shelf-head h2 { font-family: var(--display); }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* Scroll reveal — mặc định luôn hiện; chỉ ẩn khi JS xác nhận chạy được */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i,0) * 40ms); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* Nav */
nav { position: sticky; top: 0; z-index: 20; background: rgba(247,246,243,.78); backdrop-filter: blur(10px) saturate(160%); border-bottom: 1px solid var(--border); padding: 14px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
nav .logo { color: var(--ink); font-weight: 700; font-size: 1.2em; letter-spacing: -.01em; }
nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
nav ul li a { color: var(--ink-muted); text-decoration: none; padding: 6px 10px; border-radius: 999px; font-size: .82em; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
nav ul li.active a, nav ul li a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-phone { border: 1px solid var(--accent); color: var(--accent-dark); padding: 7px 16px; border-radius: 999px; font-weight: 700; white-space: nowrap; font-size: .88em; text-decoration: none; font-family: var(--sans); }
.btn-phone:hover { background: var(--accent); color: white; text-decoration: none; }

/* Main */
main { max-width: 1160px; margin: 0 auto; padding: 48px 20px 48px; }

/* Hero (dark, full-bleed, gradient mesh) */
.hero-dark { position: relative; overflow: hidden; background: var(--dark-bg); color: #f4f4f5; padding: 72px 20px 88px; }
.hero-mesh { position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 38% at 18% 22%, rgba(15,157,112,.38), transparent 70%),
    radial-gradient(34% 34% at 86% 18%, rgba(99,102,241,.32), transparent 70%),
    radial-gradient(46% 46% at 60% 92%, rgba(15,157,112,.18), transparent 70%);
  filter: blur(50px);
  animation: meshDrift 24s ease-in-out infinite alternate;
}
@keyframes meshDrift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-3%,3%,0) scale(1.1); } }
.hero-inner { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; }
.hero-inner .eyebrow { color: #6ee7b7; font-size: .82em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.hero-inner h1 { font-weight: 700; font-size: clamp(2.1em, 5.2vw, 3.5em); line-height: 1.12; letter-spacing: -.01em; max-width: 15ch; }
.grad-text { background: linear-gradient(90deg,#34d399,#818cf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 20px; color: rgba(244,244,245,.72); max-width: 56ch; line-height: 1.7; font-size: 1.05em; }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(244,244,245,.28); color: #f4f4f5; font-weight: 600; font-size: .95em; font-family: var(--sans); }
.btn-ghost:hover { background: rgba(244,244,245,.08); text-decoration: none; }
.stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 44px; max-width: 560px; }
.stat-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); border-radius: 16px; padding: 16px 18px; }
.stat-num { display: block; font-size: 1.7em; font-weight: 700; background: linear-gradient(90deg,#fff,#d7f7ea); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: .78em; color: rgba(244,244,245,.65); }

/* Eyebrow — dùng cả ở trang danh mục */
.eyebrow { color: var(--accent-dark); font-size: .82em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }

/* CTA button */
.btn-cta { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(90deg,var(--accent),var(--accent-2)); color: #05140f; font-weight: 700; padding: 12px 26px; border-radius: 999px; font-size: .98em; box-shadow: 0 8px 24px -8px rgba(15,157,112,.5); transition: transform .2s ease, box-shadow .2s ease; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(15,157,112,.6); text-decoration: none; }

/* Grid (trang danh mục) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 20px; margin: 16px 0; }

/* Card */
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(20,21,26,.28); border-color: transparent; }
.card a { display: block; color: inherit; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.card:hover .card-media img { transform: scale(1.08); }
.price-badge { position: absolute; left: 12px; bottom: 12px; background: rgba(10,11,13,.82); backdrop-filter: blur(6px); color: #fff; font-weight: 700; font-family: var(--display); padding: 6px 12px; border-radius: 999px; font-size: .82em; }
.card-body { padding: 14px 16px 18px; }
.card h3 { font-family: var(--sans); font-weight: 600; font-size: .92em; line-height: 1.4; margin-bottom: 4px; }
.card .specs { font-size: .8em; color: var(--ink-muted); }

/* Shelf (trang chủ — cuộn ngang theo danh mục) */
.shelf { margin-bottom: 56px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.shelf-head h2 { font-weight: 700; font-size: 1.4em; }
.shelf-head h2 a { color: var(--ink); }
.shelf-head h2 a:hover { color: var(--accent-dark); }
.shelf-count { font-family: var(--sans); font-weight: 500; font-size: .5em; color: var(--ink-muted); margin-left: 10px; letter-spacing: normal; vertical-align: middle; }
.shelf-see-all { font-size: .88em; font-weight: 600; white-space: nowrap; }
.shelf-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 10px; margin: 0 -2px; }
.shelf-track .card { flex: 0 0 250px; scroll-snap-align: start; }
.shelf-track::-webkit-scrollbar { height: 6px; }
.shelf-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* Bento about */
.bento-about h2 { font-weight: 700; font-size: 1.5em; margin-bottom: 20px; }
.bento-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.bento-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 120px; transition: border-color .2s, transform .2s; }
.bento-tile:hover { border-color: var(--accent); transform: translateY(-3px); }
.bento-tile.large { background: linear-gradient(155deg,var(--accent-soft),var(--surface) 70%); min-height: 220px; }
.bento-kicker { font-size: .72em; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); font-weight: 600; }
.bento-value { font-weight: 700; font-size: 1.3em; color: var(--ink); }
.bento-desc { font-size: .85em; color: var(--ink-muted); font-family: var(--sans); }

/* Category page */
.cat-intro { color: var(--ink-muted); margin-bottom: 24px; line-height: 1.7; max-width: 70ch; }

/* Product page */
.breadcrumb { font-size: .85em; color: var(--ink-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--accent-dark); }
.product { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
@media (min-width: 760px) { .product { grid-template-columns: 1.15fr 1fr; align-items: start; } .product-info { position: sticky; top: 88px; } }
.pgallery-main { border-radius: 20px; overflow: hidden; background: var(--surface-alt); aspect-ratio: 4/3; }
.pgallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgallery-empty { display: flex; align-items: center; justify-content: center; }
.pgallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pthumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; background: none; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pthumb.active, .pthumb:hover { opacity: 1; border-color: var(--accent); }
.product-info { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; }
.product-info h1 { font-weight: 700; font-size: 1.5em; line-height: 1.3; }
.price-big { font-weight: 700; font-size: 2.1em; background: linear-gradient(90deg,var(--accent-dark),var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 14px 0 18px; }
.price-unknown { color: var(--ink-muted); margin-bottom: 18px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { background: var(--accent-soft); color: var(--accent-dark); font-size: .85em; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: .93em; }
.specs-table th, .specs-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.specs-table th { width: 110px; color: var(--ink-muted); font-weight: 500; }
.benefits { list-style: none; margin-bottom: 22px; display: grid; gap: 8px; }
.benefits li { color: var(--ink); font-size: .95em; padding-left: 22px; position: relative; }
.benefits li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }
.note-location { background: var(--surface); border: 1px solid var(--border); padding: 28px; border-radius: 20px; }
.note-location h2 { margin-bottom: 14px; font-size: 1.15em; font-weight: 700; }
.note-location p { line-height: 1.7; color: var(--ink-muted); }
.no-photo { color: var(--ink-muted); font-style: italic; padding: 20px 0; }
.sticky-cta { display: none; }

/* Footer */
footer { background: var(--ink); color: #b8b6b0; padding: 32px 24px; margin-top: 48px; font-size: .88em; }
footer a { color: #d8d6ce; }
.footer-main { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; }
.footer-brand { font-family: var(--display); font-weight: 700; font-size: 1.1em; color: white; }
.footer-info { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.footer-info .divider { opacity: .4; }
.footer-copy { max-width: 1160px; margin: 16px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); opacity: .7; }

@media (max-width: 700px) {
  nav ul { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-dark { padding: 56px 20px 64px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); max-width: none; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-tile.large { grid-column: span 2; }
  .footer-main { flex-direction: column; align-items: flex-start; }
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--border); padding: 12px 16px; box-shadow: 0 -8px 24px rgba(0,0,0,.1); }
  .sticky-cta .btn-cta { flex: 1; justify-content: center; }
  main { padding-bottom: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}
