:root {
  --bg: #ffffff;
  --surface: #f4f7fb;
  --ink: #0c1b2e;
  --muted: #526277;
  --border: #dce4ef;
  --gold: #b68c38;
  --gold-hover: #977126;
  --dark: #061b38;
  --font-sans: "Be Vietnam Pro", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--ink); line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.container { width: min(1220px, 92%); margin: 0 auto; }

/* Top Utility Strip */
.top-strip {
  background: #04152c; border-bottom: 1px solid #0e294b;
  text-align: center; padding: 7px 0; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; color: #e2be72;
}

/* Header (Hải Triều centered storefront layout) */
.header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 14px 0; }
.header-left { display: flex; align-items: center; gap: 12px; }
.logo { display: flex; flex-direction: column; align-items: center; text-align: center; }
.logo-main { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 700; letter-spacing: 0.12em; color: var(--dark); line-height: 1.05; }
.logo-sub { font-size: 0.64rem; color: var(--gold); letter-spacing: 0.14em; font-weight: 600; margin-top: 2px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.search-box { width: min(290px, 100%); }
.search-box input {
  width: 100%; padding: 8px 14px; border: 1px solid #e5e7eb; border-radius: 999px;
  font-family: inherit; font-size: 0.82rem; background: #f3f4f6; color: var(--ink);
}
.search-box input:focus { background: #fff; border-color: var(--gold); }
.hotline-link { font-size: 0.8rem; font-weight: 600; color: var(--dark); }
.hotline-link:hover { color: var(--gold); }
.saved-btn {
  display: inline-flex; align-items: center; gap: 6px; position: relative;
  background: transparent; color: var(--dark); border: 1px solid var(--border);
  padding: 7px 11px; border-radius: 999px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 0.8rem;
}
.saved-btn:hover { border-color: var(--dark); }
.saved-count { background: var(--dark); color: #fff; padding: 1px 6px; border-radius: 999px; font-size: 0.7rem; }
.mobile-menu-btn { display: none; background: transparent; border: 1px solid var(--border); padding: 6px 11px; border-radius: 4px; font-size: 1.05rem; cursor: pointer; }

.subnav { border-top: 1px solid #f1f3f5; background: #fff; }
.subnav-inner { display: flex; justify-content: center; gap: 28px; padding: 10px 0; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.nav-link { padding-bottom: 2px; border-bottom: 1.5px solid transparent; }
.nav-link:hover, .nav-link.active { color: var(--dark); border-bottom-color: var(--gold); }

/* Full-Bleed Widescreen Retail Banner */
.hero.hero-image-only {
  position: relative; display: block; width: 100%; overflow: hidden;
  background: linear-gradient(90deg, #02142b 0%, #011c3e 50%, #011530 100%); min-height: 0;
}
.hero-banner-link { position: relative; display: block; width: 100%; max-width: 1220px; margin: 0 auto; }
.hero-banner-img { width: 100%; height: auto; display: block; filter: contrast(1.04) saturate(1.03); }
.hero-banner-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, transparent 48%, rgba(2, 18, 42, 0.45) 62%, rgba(2, 18, 42, 0.65) 100%);
}
.hero-banner-copy {
  position: absolute; top: 50%; right: 4%; width: 42%; transform: translateY(-50%);
  text-align: center; color: #fff; pointer-events: none;
}
.hb-brand { font-family: var(--font-serif); font-size: clamp(1rem, 2.2vw, 1.85rem); font-weight: 700; letter-spacing: 0.22em; color: #f8fafc; }
.hb-rule { width: 46%; height: 1.5px; margin: 8px auto 12px; background: linear-gradient(90deg, transparent, #f0c975, transparent); }
.hb-sub { font-size: clamp(0.62rem, 1.05vw, 0.92rem); font-weight: 600; letter-spacing: 0.14em; color: #e2e8f0; margin-bottom: 6px; }
.hero .hb-title, .hb-title {
  font-family: var(--font-serif); font-size: clamp(1.35rem, 3.6vw, 3.1rem); font-weight: 700; line-height: 1.08;
  background: linear-gradient(180deg, #fff3cc 0%, #f2cb75 48%, #c7953b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.45)); margin-bottom: 12px;
}
.hb-contact { font-size: clamp(0.62rem, 1vw, 0.9rem); font-weight: 500; color: #f5dfb0; letter-spacing: 0.03em; }
.js-ready .hero-banner-img { animation: fadeInSimple 500ms var(--ease-lux) both; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 28% 55%, rgba(56, 128, 214, 0.28) 0%, transparent 52%),
    radial-gradient(circle at 75% 45%, rgba(166, 124, 46, 0.14) 0%, transparent 50%);
}
.hero-wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 36px; padding: 34px 0; }
.hero-trio { display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: center; gap: 12px; }
.hero-watch {
  position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12); background: #0a1422;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.hero-watch-side { transform: scale(0.92); opacity: 0.94; }
.hero-watch-center { transform: scale(1.03); z-index: 2; border-color: rgba(216, 178, 110, 0.45); }
.hero-watch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-content { max-width: 520px; }
.hero-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; color: #e2be7b; margin-bottom: 10px; }
.hero h1 { font-family: var(--font-serif); font-size: clamp(2rem, 3.6vw, 2.85rem); font-weight: 700; line-height: 1.12; margin-bottom: 12px; color: #fff; }
.hero p { font-size: 0.92rem; color: #d6deea; margin-bottom: 22px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Quick Category Icon Grid */
.quick-cats { background: #fff; padding: 28px 0 8px; }
.quick-cats-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.quick-cat-item {
  background: transparent; border: none; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 4px;
}
.quick-cat-box {
  width: 68px; height: 68px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--dark);
  transition: border-color 180ms var(--ease-lux), background-color 180ms var(--ease-lux), transform 180ms var(--ease-lux);
}
.quick-cat-box svg { width: 26px; height: 26px; }
.quick-cat-item span:last-child { font-size: 0.74rem; font-weight: 500; color: var(--muted); line-height: 1.3; }
.quick-cat-item:hover .quick-cat-box { border-color: var(--gold); background: #fff; color: var(--dark); transform: translateY(-2px); }
.quick-cat-item:hover span:last-child { color: var(--dark); font-weight: 600; }

/* Bento Showcase & 4 Mini Promos */
.bento-showcase { padding: 24px 0 10px; background: #fff; }
.bento-divider { height: 1px; background: var(--border); margin-bottom: 24px; }
.bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bento-right { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.bento-top-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bento-card {
  position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
  background: #061b38; cursor: pointer; padding: 0; text-align: left; display: block; width: 100%; min-height: 190px;
}
.bento-hero { min-height: 396px; }
.bento-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; transition: transform 300ms var(--ease-lux); }
.bento-card:hover img { transform: scale(1.03); }
.bento-scrim {
  position: absolute; inset: 0; padding: 18px;
  background: linear-gradient(180deg, rgba(4, 21, 44, 0.05) 35%, rgba(4, 21, 44, 0.88) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
}
.bento-scrim-center { align-items: center; text-align: center; padding-bottom: 24px; }
.bento-eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; color: #e2be72; margin-bottom: 4px; }
.bento-scrim strong { font-size: 1.08rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.25; }
.bento-hero .bento-scrim strong { font-size: 1.35rem; }
.bento-cta { font-size: 0.76rem; color: #e2be72; font-weight: 600; margin-top: 4px; }

.mini-promos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.mini-promo-card {
  background: transparent; border: none; cursor: pointer; padding: 0; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.mini-promo-img {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); background: #061b38;
}
.mini-promo-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms var(--ease-lux); }
.mini-promo-card:hover .mini-promo-img img { transform: scale(1.04); }
.mini-promo-card span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--dark); }
.mini-promo-card:hover span { color: var(--gold); }

/* Buttons (sharp 4px) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border-radius: 4px; font-size: 0.84rem; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s; font-family: inherit;
}
.btn-sm { padding: 7px 12px; font-size: 0.8rem; }
.btn-primary { background: var(--dark); color: #fff; }
.btn-primary:hover { background: var(--gold); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-hover); }
.btn-secondary { background: #fff; color: var(--dark); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--dark); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.full { width: 100%; }

/* Sections & Catalog */
.section { padding: 44px 0; }
.section-line { border-top: 1px solid var(--border); }
.section-label { font-size: 1.15rem; font-weight: 700; margin-bottom: 18px; color: var(--dark); }
.catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.catalog-head h2 { font-size: 1.55rem; font-weight: 700; color: var(--dark); }
.section-desc { font-size: 0.84rem; color: var(--muted); margin-top: 4px; }
.sort-wrap { display: flex; gap: 8px; align-items: center; }
.mobile-filter-btn { display: none; }

.filter-panel {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.filter-select {
  padding: 7px 10px; border: 1px solid var(--border); border-radius: 4px;
  font-family: inherit; font-size: 0.82rem; background: #fff; color: var(--ink);
}
.filter-summary { font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; }

/* Product Grid: 4 cols desktop, 2 cols mobile */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: 4px;
  display: flex; flex-direction: column; overflow: hidden;
}
.product-card:hover { border-color: #9ca3af; }
.product-img { position: relative; aspect-ratio: 4/3; background: #141619; overflow: hidden; cursor: pointer; }
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-placeholder {
  width: 100%; height: 100%; background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px; text-align: center; color: var(--muted);
}
.photo-placeholder span { font-size: 0.78rem; font-weight: 600; color: var(--dark); }
.photo-placeholder small { font-size: 0.72rem; margin-top: 4px; }

.product-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; text-align: left; }
.product-title { font-size: 0.96rem; font-weight: 700; color: var(--dark); line-height: 1.3; }
.product-ref { font-size: 0.76rem; color: var(--muted); font-weight: 500; }
.product-spec { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.product-price { font-size: 1rem; font-weight: 700; color: var(--dark); margin-top: auto; padding-top: 10px; }
.product-status { font-size: 0.72rem; color: var(--gold); font-weight: 500; }
.product-actions { display: flex; gap: 8px; margin-top: 10px; }
.product-actions .btn-primary { flex: 1; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.page-btn {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 4px;
  border: 1px solid var(--border); background: #fff; color: var(--ink);
  font-family: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;
}
.page-btn.active { background: var(--dark); color: #fff; border-color: var(--dark); }

.empty-state { text-align: center; padding: 40px 20px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.empty-state p { margin-bottom: 12px; color: var(--muted); }

/* Collections (4 sharp cards) */
.iconic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.iconic-card {
  position: relative; aspect-ratio: 16/10; border-radius: 4px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); background: #141619; text-align: left; padding: 0;
}
.iconic-card img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.82; }
.iconic-overlay {
  position: absolute; inset: 0; padding: 14px;
  background: linear-gradient(90deg, rgba(17,19,21,0.88) 0%, rgba(17,19,21,0.35) 65%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
}
.iconic-overlay strong { font-family: var(--font-serif); font-size: 1.2rem; }
.iconic-overlay span { font-size: 0.74rem; color: #e5e7eb; }

/* Journal */
.journal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.journal-card { border: 1px solid var(--border); border-radius: 4px; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.journal-ep { font-size: 0.7rem; color: var(--gold); font-weight: 600; letter-spacing: 0.06em; }
.journal-card h3 { font-size: 0.96rem; color: var(--dark); font-weight: 700; }
.journal-card p { font-size: 0.8rem; color: var(--muted); flex: 1; }
.journal-card a { color: var(--dark); font-size: 0.8rem; font-weight: 600; text-decoration: underline; margin-top: 4px; }

/* Footer */
.footer { border-top: 1px solid #0e294b; background: #04152c; color: #cbd5e1; padding: 42px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.footer-brand { font-family: var(--font-serif); font-size: 1.35rem; color: #e2be72; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 8px; }
.footer-text, .footer p { font-size: 0.82rem; color: #cbd5e1; margin-bottom: 5px; }
.footer h4 { font-size: 0.86rem; color: #fff; margin-bottom: 8px; }
.footer a { color: #e2e8f0; }
.footer a:hover { color: #e2be72; }
.footer-copy { text-align: center; font-size: 0.76rem; color: #94a3b8; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }

/* Saved Drawer & PDP Specs */
.hidden { display: none !important; }
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 92%); z-index: 2; background: #fff; display: flex; flex-direction: column; padding: 20px; border-left: 1px solid var(--border); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.close-btn { background: transparent; border: none; font-size: 1.15rem; cursor: pointer; color: var(--muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.cart-item { border: 1px solid var(--border); border-radius: 4px; padding: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.drawer-note { font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }
.drawer-foot { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }

.spec-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.84rem; }
.spec-table td { padding: 7px 0; border-bottom: 1px solid var(--border); }
.spec-table td:first-child { color: var(--muted); width: 42%; }

/* Compact Zalo & Back-to-Top */
.zalo-float {
  position: fixed; bottom: 16px; right: 16px; z-index: 50;
  background: var(--dark); color: #fff; border: 1px solid var(--gold);
  padding: 8px 14px; border-radius: 4px; font-size: 0.8rem; font-weight: 600;
}
.back-to-top {
  position: fixed; bottom: 56px; right: 16px; z-index: 50;
  width: 36px; height: 36px; border-radius: 4px; background: #fff; color: var(--dark);
  border: 1px solid var(--border); font-size: 1rem; cursor: pointer;
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .iconic-grid, .journal-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-cats-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-wrap { grid-template-columns: 1fr; gap: 22px; padding: 28px 0; }
}

@media (max-width: 768px) {
  .top-strip { font-size: 0.64rem; padding: 5px 8px; }
  .header-inner { grid-template-columns: auto 1fr; gap: 10px; padding: 10px 0; }
  .header-left { order: 1; }
  .logo { order: 2; align-items: flex-start; text-align: left; }
  .logo-main { font-size: 1.2rem; }
  .header-actions { order: 3; grid-column: 1 / -1; justify-content: space-between; }
  .search-box { flex: 1; width: auto; }
  .hotline-link { display: none; }
  .mobile-menu-btn { display: inline-block; }
  .subnav { display: none; }
  .subnav.open { display: block; }
  .subnav-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 0; }
  .hero { min-height: auto; }
  .hero-trio { gap: 8px; }
  .quick-cats { padding: 20px 0 4px; }
  .quick-cats-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .quick-cat-box { width: 54px; height: 54px; }
  .quick-cat-box svg { width: 22px; height: 22px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-hero { min-height: 240px; }
  .bento-right { grid-template-rows: auto auto; }
  .bento-top-pair { gap: 10px; }
  .bento-card { min-height: 155px; }
  .mini-promos-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .iconic-grid, .journal-grid, .footer-grid { grid-template-columns: 1fr; }
  .mobile-filter-btn { display: inline-flex; }
  .filter-panel { display: none; }
  .filter-panel.open { display: flex; }
  .product-actions { flex-direction: column; }
}

/* --- Luxury Motion System (v22) --- */
:root { --ease-lux: cubic-bezier(0.22, 1, 0.36, 1); }

.header { transition: box-shadow 200ms var(--ease-lux); }
.header.scrolled { box-shadow: 0 2px 14px rgba(17, 19, 21, 0.06); }
.header-inner { transition: padding 200ms var(--ease-lux); }
.header.scrolled .header-inner { padding: 10px 0; }

.nav-link { position: relative; border-bottom: none; padding-bottom: 4px; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 160ms var(--ease-lux);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Hero entrance (runs once if JS adds .anim-ready, stays visible if JS fails) */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.js-ready .hero-content h1 { animation: heroRise 450ms var(--ease-lux) both; }
.js-ready .hero-content p { animation: heroRise 450ms var(--ease-lux) 100ms both; }
.js-ready .hero-content .hero-btns { animation: heroRise 450ms var(--ease-lux) 200ms both; }
.js-ready .hero-bg { animation: fadeInSimple 500ms var(--ease-lux) both; }
@keyframes fadeInSimple { from { opacity: 0.7; } to { opacity: 1; } }

/* Product card hover (desktop pointer only) */
@media (hover: hover) {
  .product-img img { transition: transform 300ms var(--ease-lux); }
  .product-card:hover .product-img img { transform: scale(1.03); }
  .product-title { transition: color 180ms var(--ease-lux); }
  .product-card:hover .product-title { color: var(--gold); }
}

/* Filter list transition */
.product-grid { transition: opacity 160ms var(--ease-lux); }
.product-grid.filtering { opacity: 0.55; }

/* First-time stagger reveal (max 40ms/item) */
.card-reveal { opacity: 0; transform: translateY(10px); transition: opacity 320ms var(--ease-lux), transform 320ms var(--ease-lux); }
.card-reveal.in-view { opacity: 1; transform: translateY(0); }

/* Button feedback */
.btn:active, .page-btn:active, .saved-btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* Drawer & Modal smooth transition */
.drawer { transition: opacity 220ms var(--ease-lux); }
.drawer .drawer-panel { transition: transform 240ms var(--ease-lux); transform: translateX(0); }
.drawer.hidden .drawer-panel { transform: translateX(24px); }

/* Non-obstructive top-right toast */
.save-toast {
  position: fixed; top: 76px; right: 18px; z-index: 75;
  background: var(--dark); color: #fff; border: 1px solid var(--gold);
  padding: 8px 14px; border-radius: 4px; font-size: 0.8rem; font-weight: 500;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 180ms var(--ease-lux), transform 180ms var(--ease-lux);
}
.save-toast.show { opacity: 1; transform: translateY(0); }

/* Zalo subtle hover */
.zalo-float { transition: background-color 160ms var(--ease-lux), color 160ms var(--ease-lux); }
.zalo-float:hover { background: var(--gold); border-color: var(--gold); }

/* Lightbox for product.html */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(11, 17, 32, 0.92);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 220ms var(--ease-lux);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: 4px; transition: transform 240ms var(--ease-lux); cursor: zoom-in; }
.lightbox img.zoomed { transform: scale(1.35); cursor: zoom-out; }
.lightbox-close {
  position: fixed; top: 18px; right: 22px; background: rgba(255,255,255,0.12);
  color: #fff; border: 1px solid rgba(255,255,255,0.3); width: 38px; height: 38px;
  border-radius: 4px; font-size: 1.1rem; cursor: pointer;
}
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25);
  width: 40px; height: 40px; border-radius: 4px; font-size: 1.1rem; cursor: pointer;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .product-card:hover .product-img img, .lightbox img.zoomed { transform: none !important; }
  .card-reveal { opacity: 1; transform: none; }
}


/* --- Upgraded Luxury Motion (v38) --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70;
  background: linear-gradient(90deg, #b68c38, #f2cb75);
  transform-origin: left; transform: scaleX(0); pointer-events: none;
}
@keyframes ruleExpand {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}
.js-ready .hb-brand { animation: heroRise 420ms var(--ease-lux) 40ms both; }
.js-ready .hb-rule { animation: ruleExpand 420ms var(--ease-lux) 120ms both; }
.js-ready .hb-sub { animation: heroRise 420ms var(--ease-lux) 180ms both; }
.js-ready .hb-title { animation: heroRise 460ms var(--ease-lux) 240ms both; }
.js-ready .hb-contact { animation: heroRise 420ms var(--ease-lux) 320ms both; }

.quick-cat-box svg { transition: transform 200ms var(--ease-lux); }
.quick-cat-item:hover .quick-cat-box svg { transform: scale(1.08); }

.bento-cta { display: inline-block; transition: transform 220ms var(--ease-lux); }
@media (hover: hover) {
  .bento-card:hover .bento-cta { transform: translateX(4px); }
}
.bento-reveal { opacity: 0; transform: translateY(14px); transition: opacity 380ms var(--ease-lux), transform 380ms var(--ease-lux); }
.bento-reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none !important; }
  .bento-reveal { opacity: 1; transform: none; transition: none; }
}


/* --- GetLayers-Inspired Polish (v39) --- */
.hero.hero-image-only::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 72% 45%, rgba(226, 190, 114, 0.16) 0%, transparent 52%);
}
.hero-banner-link { border-left: 1px solid rgba(226, 190, 114, 0.14); border-right: 1px solid rgba(226, 190, 114, 0.14); }
.hb-cta-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  padding: 7px 8px 7px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 190, 114, 0.45); color: #fff;
  font-size: clamp(0.68rem, 0.95vw, 0.82rem); font-weight: 600; letter-spacing: 0.03em;
  transition: background 220ms var(--ease-lux), border-color 220ms var(--ease-lux), transform 220ms var(--ease-lux);
}
.hb-cta-icon {
  width: 24px; height: 24px; border-radius: 999px;
  background: linear-gradient(135deg, #f2cb75, #b68c38); color: #04152c;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem;
  transition: transform 220ms var(--ease-lux);
}
.hero-banner-link:hover .hb-cta-btn { background: rgba(255, 255, 255, 0.16); border-color: #f2cb75; }
.hero-banner-link:hover .hb-cta-icon { transform: translateX(3px); }

.title-light { font-weight: 400; color: var(--muted); }

.pill-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill-btn {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--muted); font-family: inherit; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all 180ms var(--ease-lux);
}
.pill-btn:hover { border-color: var(--gold); color: var(--dark); }
.pill-btn.active { background: var(--dark); color: #fff; border-color: var(--dark); }

@media (hover: hover) {
  .product-card { transition: border-color 220ms var(--ease-lux), box-shadow 220ms var(--ease-lux); }
  .product-card:hover { border-color: rgba(182, 140, 56, 0.65); box-shadow: 0 8px 24px rgba(6, 27, 56, 0.06); }
}

@media (max-width: 768px) {
  .hb-cta-btn { display: none; }
}


/* --- Magic UI Pure CSS/JS Effects (v40) --- */
@keyframes magicShimmer {
  0%, 65% { transform: translateX(-140%) skewX(-20deg); }
  100% { transform: translateX(220%) skewX(-20deg); }
}
.hb-cta-btn, .pdp-cta-main { position: relative; overflow: hidden; }
.hb-cta-btn::after, .pdp-cta-main::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 243, 204, 0.35), transparent);
  transform: translateX(-140%) skewX(-20deg);
  animation: magicShimmer 4s var(--ease-lux) infinite; pointer-events: none;
}

@keyframes shinyText {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.bento-eyebrow {
  background: linear-gradient(90deg, #e2be72 0%, #fff6d6 45%, #e2be72 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: shinyText 5s linear infinite;
}

/* Border Beam on Bento Hero */
@keyframes borderBeam {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.bento-hero { position: relative; }
.bento-hero::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from 0deg, transparent 70%, #f2cb75 86%, #fff3cc 92%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 3; opacity: 0.85;
}

/* Blur Fade */
.bento-reveal, .card-reveal { filter: blur(4px); }
.bento-reveal.in-view, .card-reveal.in-view { filter: blur(0); }

/* Magic Card Glare Hover (desktop pointer) */
@media (hover: hover) and (pointer: fine) {
  .product-card { position: relative; }
  .product-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(182, 140, 56, 0.12), transparent 70%);
    transition: opacity 220ms var(--ease-lux); z-index: 2;
  }
  .product-card:hover::after { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-cta-btn::after, .pdp-cta-main::after, .bento-eyebrow { animation: none !important; }
  .bento-reveal, .card-reveal { filter: none !important; }
}
