/* ===== HNKicks — custom styles (plain CSS, không cần build) ===== */
:root {
  --neon: #ff1e3c;
  --ink: #0a0a0a;
  --blaze: #ff4d00;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

.preserve-3d { transform-style: preserve-3d; }

/* ---------- WebGL canvas (giày 3D) ---------- */
#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 40;          /* trên nội dung, dưới nav (z-50) */
  pointer-events: none;
}

/* ---------- Hero ---------- */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  animation: blob 18s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6vw, -4vw) scale(1.1); }
  66% { transform: translate(-4vw, 5vw) scale(.92); }
}
.grid-floor {
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}
.text-outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, .22);
}
.badge {
  padding: .75rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}

/* ---------- Buttons / chips ---------- */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 9999px;
  padding: .9rem 1.6rem;
  font-weight: 800;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn-primary { background: var(--neon); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 30px -10px var(--neon); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

.chip {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, .15);
  padding: .5rem 1.1rem;
  font-size: .875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .7);
  transition: all .2s;
}
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.chip.is-active { background: #fff; color: var(--ink); border-color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--neon);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; }

.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--neon); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
#nav.is-scrolled { background: rgba(10, 10, 10, .75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }

/* ---------- Marquee ---------- */
.marquee { animation: marquee 22s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Exploded view ---------- */
.part-item {
  display: flex; gap: .9rem; align-items: center;
  padding: .55rem .9rem; border-radius: .9rem;
  color: rgba(255, 255, 255, .4);
  border: 1px solid transparent;
  transition: all .35s var(--ease);
}
.part-item span { font-size: .7rem; color: rgba(255, 255, 255, .3); }
.part-item.is-active { color: #fff; border-color: rgba(255,30,60, .35); background: rgba(255,30,60, .06); transform: translateX(8px); }
.part-item.is-active span { color: var(--neon); }
/* ---------- Product cards ---------- */
.card-wrap { perspective: 1000px; }
.card {
  position: relative;
  transform-style: preserve-3d;
  border-radius: 1.75rem;
  padding: 1.25rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .5s var(--ease), border-color .3s;
  will-change: transform;
}
.card:hover { border-color: rgba(255, 255, 255, .2); }
.card.is-tilting { transition: transform .08s linear, border-color .3s; }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .12), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::after { opacity: 1; }
.card-glow {
  position: absolute; inset: 12% 10% auto; height: 55%; border-radius: 50%;
  filter: blur(40px); opacity: .55; transform: translateZ(-20px);
}
.card-body { transform: translateZ(30px); }
.card.is-hidden { display: none; }
.dot { width: .8rem; height: .8rem; border-radius: 9999px; border: 2px solid rgba(255, 255, 255, .2); }

/* ---------- Studio ---------- */
.studio-stage {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255,30,60, .12), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 40px 40px,
    #0f0f0f;
}
.studio-stage:active { cursor: grabbing; }
.panel-title { display: flex; align-items: center; gap: .6rem; font-weight: 800; }
.panel-title span {
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 9999px;
  background: rgba(255, 255, 255, .1); font-size: .75rem;
}
.swatch {
  aspect-ratio: 1; border-radius: 9999px; border: 2px solid rgba(255, 255, 255, .15);
  transition: transform .2s, box-shadow .2s;
}
.swatch:hover { transform: scale(1.12); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--neon); }
.mat {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  border-radius: .9rem; border: 1px solid rgba(255, 255, 255, .15);
  padding: .7rem .5rem; font-weight: 700; transition: all .2s;
}
.mat small { font-size: .7rem; color: rgba(255, 255, 255, .45); font-weight: 600; }
.mat.is-active { border-color: var(--neon); background: rgba(255,30,60, .08); }
.preset {
  display: flex; align-items: center; gap: .4rem;
  border-radius: 9999px; padding: .35rem .75rem .35rem .4rem;
  background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .12);
  font-size: .75rem; font-weight: 700; backdrop-filter: blur(8px);
}
.preset i { width: 1rem; height: 1rem; border-radius: 9999px; display: block; }
.preset:hover { border-color: var(--neon); }
.preset { flex: none; white-space: nowrap; }
/* Dải mẫu có sẵn trên khung 3D: 1 hàng vuốt ngang trên mobile để không che giày */
.preset-row {
  display: flex; gap: .5rem; padding: 0 1rem; overflow-x: auto; touch-action: pan-x;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.preset-row::-webkit-scrollbar { display: none; }
/* Mobile: chỉ hiện 5 mẫu đầu; tablet/desktop hiện đủ */
@media (max-width: 767px) { #presetRow .preset:nth-child(n+6) { display: none; } }
@media (min-width: 768px) { .preset-row { flex-wrap: wrap; overflow: visible; padding: 0 1.25rem; } }
.print-slider { display: grid; gap: .15rem; }
.print-slider input { width: 100%; height: 1.75rem; }

/* ---------- Process stack ---------- */
.stack-card {
  position: sticky;
  transform-origin: center top;
  margin-bottom: 8vh;
  border-radius: 2rem;
  overflow: hidden;
  min-height: 62vh;
  will-change: transform;
}
.stack-dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }

/* ---------- Lookbook ---------- */
.look-card {
  position: relative;
  flex: none;
  width: clamp(260px, 32vw, 440px);
  aspect-ratio: 4 / 5;
  border-radius: 2rem;
  padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  will-change: transform;
}

/* ---------- Misc ---------- */
.stat { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.5rem; }
.quote {
  border-radius: 1.75rem; padding: 1.75rem;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
}
.quote blockquote { font-size: 1.1rem; font-weight: 600; line-height: 1.5; }
.quote figcaption { display: flex; align-items: center; gap: .6rem; font-size: .875rem; color: rgba(255, 255, 255, .6); }
.quote figcaption b { color: #fff; }
.avatar { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 9999px; font-weight: 900; color: var(--ink); }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(10, 10, 10, .12) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}
.footer-h { font-weight: 800; margin-bottom: 1rem; }
.footer-list { display: grid; gap: .55rem; font-size: .875rem; color: rgba(255, 255, 255, .55); }
.footer-list a:hover { color: var(--neon); }
.social {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, .15); font-size: .7rem; font-weight: 800;
}
.social:hover { background: var(--neon); color: var(--ink); border-color: var(--neon); }
.grain {
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
#toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Thành phần dùng chung cho các trang con
   ========================================================= */
.no-scroll { overflow: hidden; }
.icon-btn {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, .15); transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .05); }
.badge-count {
  position: absolute; right: -.25rem; top: -.25rem; display: grid; place-items: center;
  height: 1.25rem; min-width: 1.25rem; padding: 0 .25rem; border-radius: 9999px;
  background: var(--neon); color: var(--ink); font-size: 10px; font-weight: 800;
}
#cartCount { color: #fff; }
.nav-link.is-current::after { transform: scaleX(1); }

/* ---------- Overlay: drawer, tìm kiếm, modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; transition: visibility 0s .45s; }
.overlay.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.overlay-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.overlay.is-open .overlay-bg { opacity: 1; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%);
  display: flex; flex-direction: column; background: #111; border-left: 1px solid rgba(255, 255, 255, .1);
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.overlay.is-open .drawer-panel { transform: none; }
.search-panel, .modal-panel {
  background: #111; border: 1px solid rgba(255, 255, 255, .1); border-radius: 1.75rem; padding: 1.5rem;
  opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.search-panel { position: relative; margin: 10vh auto 0; width: min(760px, calc(100% - 2rem)); transform: translateY(-20px) scale(.98); }
.modal-panel { position: absolute; left: 50%; top: 50%; width: min(460px, calc(100% - 2rem)); translate: -50% -50%; transform: scale(.95); }
.overlay.is-open .search-panel, .overlay.is-open .modal-panel { opacity: 1; transform: none; }

/* ---------- Ảnh thu nhỏ render từ 3D ---------- */
.thumb {
  position: relative; flex: none; overflow: hidden; border-radius: 1rem;
  background: radial-gradient(circle at 50% 65%, rgba(255, 255, 255, .09), transparent 70%), #1a1a1a;
}
.thumb::before {
  content: ""; position: absolute; inset: 32% 18%; border-radius: 50%;
  background: var(--sw); filter: blur(14px); opacity: .55; transition: opacity .4s;
}
.thumb.is-loaded::before { opacity: .18; }
.thumb img { position: relative; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .4s; }
.thumb.is-loaded img { opacity: 1; }

/* ---------- Form & lựa chọn ---------- */
.field {
  width: 100%; border-radius: .9rem; border: 1px solid rgba(255, 255, 255, .15); background: transparent;
  padding: .8rem 1rem; font-weight: 600; outline: none; transition: border-color .2s;
}
.field:focus { border-color: var(--neon); }
.field::placeholder { color: rgba(255, 255, 255, .3); }
.field.is-invalid { border-color: var(--blaze); }
select.field option { background: #111; }
.label { display: block; margin-bottom: .4rem; font-size: .8rem; font-weight: 700; color: rgba(255, 255, 255, .6); }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(255, 255, 255, .15); border-radius: 9999px; }
.qty button { width: 2rem; height: 2rem; font-weight: 800; color: rgba(255, 255, 255, .7); }
.qty button:hover { color: var(--neon); }
.qty span { min-width: 1.5rem; text-align: center; font-size: .875rem; font-weight: 800; }
.size-btn { height: 2.75rem; border-radius: .75rem; border: 1px solid rgba(255, 255, 255, .15); font-weight: 700; transition: all .2s; }
.size-btn:hover:not(:disabled) { border-color: #fff; }
.size-btn.is-active { background: var(--neon); color: var(--ink); border-color: var(--neon); }
.size-btn:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.wish-btn {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9999px;
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); transition: all .2s;
}
.wish-btn:hover { color: #fff; transform: scale(1.1); }
.wish-btn.is-on { background: var(--blaze); color: #fff; }
.wish-btn.is-on svg { fill: currentColor; }
.addon, .opt {
  display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: .9rem;
  border: 1px solid rgba(255, 255, 255, .12); cursor: pointer; font-size: .875rem; font-weight: 600; transition: all .2s;
}
.addon:hover, .opt:hover { border-color: rgba(255, 255, 255, .35); }
.addon .box, .opt .box {
  display: grid; place-items: center; flex: none; width: 1.25rem; height: 1.25rem; border-radius: .35rem;
  border: 1px solid rgba(255, 255, 255, .3); color: transparent; font-size: .7rem; font-weight: 900;
}
.opt .box { border-radius: 9999px; }
.addon:has(input:checked), .opt:has(input:checked) { border-color: var(--neon); background: rgba(255,30,60, .06); }
.addon:has(input:checked) .box, .opt:has(input:checked) .box { background: var(--neon); color: var(--ink); border-color: var(--neon); }
input[type=range] { accent-color: var(--neon); }
input[type=color] { -webkit-appearance: none; appearance: none; border: 0; padding: 0; background: none; cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 2px solid rgba(255, 255, 255, .2); border-radius: 9999px; }

/* ---------- Bố cục trang con ---------- */
.panel { border-radius: 2rem; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .4); }
.crumbs a:hover { color: #fff; }
.crumbs span::before { content: "/"; margin-right: .5rem; opacity: .5; }
.tab { padding: .7rem 1.1rem; border-radius: 9999px; font-weight: 700; font-size: .9rem; color: rgba(255, 255, 255, .55); transition: all .2s; }
.tab:hover { color: #fff; }
.tab.is-active { background: #fff; color: var(--ink); }
.acc { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.acc summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; cursor: pointer; font-weight: 800; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; transition: transform .3s; color: var(--neon); }
.acc[open] summary::after { transform: rotate(45deg); }
.acc p { padding-bottom: 1.2rem; color: rgba(255, 255, 255, .6); line-height: 1.7; }
.table-hnk { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table-hnk th, .table-hnk td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.table-hnk th { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .45); }
.table-hnk tr:hover td { background: rgba(255, 255, 255, .03); }
.prose-hnk p { margin-top: 1.1rem; line-height: 1.85; color: rgba(255, 255, 255, .72); font-size: 1.05rem; }
.prose-hnk h2 { margin-top: 2.4rem; font-size: 1.6rem; font-weight: 900; line-height: 1.25; }
.prose-hnk blockquote { margin-top: 1.8rem; border-left: 3px solid var(--neon); padding: .4rem 0 .4rem 1.2rem; font-size: 1.15rem; font-weight: 700; }
.prose-hnk ul { margin-top: 1rem; display: grid; gap: .5rem; color: rgba(255, 255, 255, .72); }
.prose-hnk li { display: flex; gap: .6rem; }
.prose-hnk li::before { content: "✦"; color: var(--neon); }
.status { display: inline-flex; align-items: center; gap: .4rem; border-radius: 9999px; padding: .25rem .7rem; font-size: .75rem; font-weight: 800; }
.status::before { content: ""; width: .4rem; height: .4rem; border-radius: 9999px; background: currentColor; }
.big-404 { font-size: clamp(8rem, 30vw, 22rem); line-height: .8; }
.timeline-item { position: relative; padding-left: 2rem; }
.timeline-item::before { content: ""; position: absolute; left: 0; top: .45rem; width: .8rem; height: .8rem; border-radius: 9999px; background: var(--neon); box-shadow: 0 0 0 4px rgba(255,30,60, .2); }
.timeline-item::after { content: ""; position: absolute; left: .37rem; top: 1.5rem; bottom: -2.5rem; width: 2px; background: rgba(255, 255, 255, .1); }
.timeline-item:last-child::after { display: none; }
.map-grid {
  background:
    radial-gradient(circle at 60% 45%, rgba(255,30,60, .25), transparent 25%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 32px 32px, #121212;
}

/* ---------- Reveal 3D khi cuộn ---------- */
[data-reveal] {
  opacity: 0;
  transform: perspective(900px) translateY(50px) rotateX(-20deg);
  transform-origin: center top;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }

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

/* ---------- In hình (Custom Studio) ---------- */
.print-zone {
  display: flex; align-items: center; gap: .75rem; padding: .6rem; border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, .12); transition: border-color .2s, background .2s;
}
.print-zone small { font-size: .7rem; color: rgba(255, 255, 255, .45); }
.print-zone:hover { border-color: rgba(255, 255, 255, .35); }
.print-zone.is-active { border-color: var(--neon); background: rgba(255,30,60, .06); }
.print-zone-img, .print-prev {
  background: repeating-conic-gradient(rgba(255, 255, 255, .12) 0 25%, transparent 0 50%) 0 0 / 10px 10px;
}
.print-zone-img {
  display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; overflow: hidden;
  border-radius: .7rem; font-size: 1.25rem; font-weight: 800; color: rgba(255, 255, 255, .5);
}
.print-zone-img img { width: 100%; height: 100%; object-fit: contain; }
.print-drop {
  display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 1rem; cursor: pointer;
  border: 1.5px dashed rgba(255, 255, 255, .2); transition: border-color .2s, background .2s;
}
.print-drop:hover, .print-drop.is-over, .print-drop:focus-within { border-color: var(--neon); background: rgba(255,30,60, .05); }
.print-drop-icon {
  display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 999px;
  background: var(--neon); color: var(--ink); font-weight: 900;
}

/* Phosphor icons: căn theo dòng chữ */
.ph, .ph-fill { vertical-align: -0.125em; }
.icon-btn .ph, .btn-ghost .ph, .btn-primary .ph { font-size: 1.15em; }
