:root {
  --blue: #0057d9;
  --blue-dark: #0046c7;
  --text: #111318;
  --muted: #5e626b;
  --line: rgba(20, 24, 32, 0.12);
  --surface: #f5f5f7;
  --card: rgba(255, 255, 255, 0.78);
  --dark: #030405;
  --dark-2: #0b0d10;
  --dark-card: rgba(255, 255, 255, 0.055);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: var(--sans);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  align-items: center;
  min-height: 84px;
  padding: env(safe-area-inset-top, 0) 52px 0;
  padding-left: max(52px, env(safe-area-inset-left));
  padding-right: max(52px, env(safe-area-inset-right));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px);
}

.site-header[data-theme="dark"] {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(2, 3, 5, 0.86);
}

.brand {
  font-family: var(--serif);
  font-size: clamp(28px, 2.3vw, 42px);
  letter-spacing: 0;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(34px, 5vw, 86px);
  font-size: 18px;
}

.main-nav a {
  position: relative;
  padding: 30px 0 28px;
  white-space: nowrap;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  position: absolute;
  right: 0;
  bottom: 9px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  color: white;
  font-weight: 650;
  padding: 0 18px;
  white-space: nowrap;
}

.contact-button.zalo {
  background: #0068ff;
}

.contact-button.messenger {
  background: #111318;
}

.icon-button {
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
}

.icon-search,
.icon-heart,
.heart-button,
.filter-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
}

.icon-search::before {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 50%;
  content: "";
}

.icon-search::after {
  position: absolute;
  width: 10px;
  height: 3px;
  transform: translate(16px, 19px) rotate(45deg);
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.icon-heart::before,
.heart-button::before {
  content: "♡";
  font-size: 31px;
  line-height: 22px;
}

.heart-button.active::before {
  color: #d6485a;
  content: "♥";
}

.buy-button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #0667f3, var(--blue-dark));
  color: white;
  box-shadow: 0 12px 28px rgba(0, 86, 216, 0.24);
  font-weight: 600;
  min-width: 140px;
  min-height: 50px;
  padding: 0 24px;
}

.buy-button:hover {
  background: linear-gradient(180deg, #1474ff, #004dcf);
}

.buy-button.big {
  min-width: 214px;
  min-height: 58px;
  font-size: 19px;
}

.buy-button.small {
  min-width: 90px;
  min-height: 40px;
  padding: 0 15px;
  font-size: 15px;
}

.screen {
  display: none;
  min-height: 100vh;
  scroll-margin-top: 84px;
}

.screen.is-active {
  display: block;
}

.seo-page .screen {
  display: block;
}

.message-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border-bottom: 1px solid rgba(20, 24, 32, 0.08);
  background: rgba(255, 255, 255, 0.74);
  color: #30343b;
  font-size: 17px;
}

.message-strip a {
  color: var(--blue);
}

.sparkle {
  font-size: 18px;
}

.screen-home {
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 26%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(180deg, #f8f8fa 0%, #f6f6f7 72%, #fff 100%);
}

.home-hero {
  position: relative;
  min-height: calc(100vh - 138px);
  padding: 38px 0 0;
}

/* Full-bleed variant — chỉ ảnh, không có text/CTA overlay (chữ baked vào ảnh) */
.home-hero-fullbleed {
  min-height: 0;
  padding: 0;
  margin: 0;
}
.home-hero-fullbleed .home-hero-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 86vh;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
}
.home-hero-fullbleed .home-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 86vh;
  object-fit: cover;
  object-position: center;
}

.home-copy {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 4vw;
  text-align: center;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

.home-copy h1 {
  font-family: var(--serif);
  font-size: clamp(58px, 5.2vw, 92px);
  font-weight: 400;
  line-height: 1.02;
}

.home-copy p {
  max-width: 760px;
  margin: 24px auto 0;
  color: #343841;
  font-size: clamp(21px, 1.65vw, 27px);
  line-height: 1.35;
}

.home-copy p span {
  display: block;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-top: 30px;
}

.outline-link {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  border: 1.5px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  font-weight: 600;
  padding: 0 36px;
}

.slab-showcase {
  position: relative;
  min-height: 560px;
  margin: 10px auto 0;
  width: min(1500px, 100%);
}

/* Home hero photo — full-bleed (no rounded corners, no side padding) to match
   mockup. Image sits flush below the title block with minimal gap. */
.home-hero-photo {
  position: relative;
  width: 100%;
  height: clamp(430px, 54vh, 590px);
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  z-index: 1;
}
.home-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* Category hero photo — replaces mini-slab CSS gradients */
.category-hero-photo {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 8px;
}
.category-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Product card visual — img replaces CSS scene-* gradients */
img.product-visual {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-position: center;
  border-radius: 8px 8px 0 0;
}

.slab,
.mini-slab,
.size-icon,
.hero-slab,
.viewer-slab {
  background-color: #e9e5de;
  box-shadow: inset -8px 0 16px rgba(0, 0, 0, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.slab-marble {
  background-image:
    linear-gradient(115deg, transparent 10%, rgba(172, 148, 110, 0.42) 11%, transparent 14%),
    linear-gradient(132deg, transparent 38%, rgba(82, 84, 86, 0.25) 39%, transparent 43%),
    linear-gradient(107deg, transparent 55%, rgba(185, 163, 128, 0.48) 56%, transparent 60%),
    linear-gradient(180deg, #fcfbf8, #ede9e2);
}

.slab-travertine {
  background-image:
    repeating-linear-gradient(112deg, rgba(128, 104, 75, 0.16) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #dfd3c3, #bda990);
}

.slab-graphite {
  background-image:
    linear-gradient(122deg, transparent 18%, rgba(225, 225, 220, 0.28) 19%, transparent 21%),
    linear-gradient(47deg, transparent 58%, rgba(210, 210, 205, 0.18) 59%, transparent 62%),
    linear-gradient(180deg, #6f7373, #3f4143);
}

.slab-wood {
  background-image:
    repeating-linear-gradient(34deg, rgba(255, 255, 255, 0.12) 0 3px, transparent 3px 18px),
    repeating-linear-gradient(112deg, rgba(83, 51, 27, 0.22) 0 2px, transparent 2px 16px),
    linear-gradient(180deg, #b88f69, #805d3e);
}

.slab-showcase .slab {
  position: absolute;
  bottom: 0;
  border-radius: 2px;
}

.slab-showcase .tall {
  width: clamp(190px, 15vw, 260px);
  height: clamp(350px, 31vw, 500px);
}

.slab-showcase .short {
  width: clamp(230px, 19vw, 310px);
  height: clamp(210px, 19vw, 300px);
}

.slab-showcase .left {
  left: 12%;
}

.slab-showcase .front {
  left: 24%;
  z-index: 3;
  transform: translateY(38px);
}

.slab-showcase .center {
  left: 43%;
  z-index: 2;
}

.slab-showcase .right {
  right: 21%;
  z-index: 3;
}

.slab-showcase .wood {
  right: 10%;
  z-index: 1;
  transform: rotate(-5deg);
}

.home-showcase {
  display: grid;
  gap: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border-top: 0;
  background: #f5f5f7;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.home-feature {
  overflow: hidden;
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 380px;
  border: 1px solid rgba(20, 24, 32, 0.08);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 54px rgba(17, 19, 24, 0.055);
}

.home-feature-large {
  grid-template-columns: 430px 1fr;
  min-height: 460px;
}

.home-feature-copy {
  align-self: center;
  padding: 54px;
}

.home-feature-copy span {
  font-family: var(--serif);
  font-size: clamp(46px, 4vw, 72px);
  line-height: 1.02;
}

.home-feature-copy p {
  max-width: 390px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.home-feature-copy strong {
  color: var(--blue);
  font-weight: 600;
}

.home-feature-copy strong::after {
  content: "  ›";
}

.home-feature-art {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.14), transparent 48%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(135deg, #d0d1ce, #f5f3ed);
  background-size: auto, 160px 120px, 160px 120px, auto;
}

/* Modifier: photo bao phủ thay cho CSS gradient + slab silhouette */
.home-feature-art.has-photo {
  background: #f5f3ed;
  overflow: hidden;
}
.home-feature-art.has-photo::after {
  display: none !important;
}
.home-feature-art.has-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Empty placeholder — khi ảnh chưa upload */
.home-feature-art.is-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.025) 0px, rgba(0, 0, 0, 0.025) 12px, transparent 12px, transparent 24px),
    linear-gradient(135deg, #faf9f6 0%, #ece8e1 100%);
  color: rgba(20, 24, 32, 0.45);
  text-align: center;
  font-family: var(--serif);
}
.home-feature-art.is-empty::before {
  content: attr(data-feature-label);
  font-size: clamp(48px, 5vw, 86px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(20, 24, 32, 0.5);
}
.home-feature-art.is-empty::after {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  background: rgba(0, 102, 255, 0.12) !important;
  border: 0 !important;
  padding: 6px 16px !important;
  border-radius: 999px !important;
  color: var(--blue) !important;
  font-family: var(--sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  content: "Sắp cập nhật ảnh" !important;
  box-shadow: none !important;
}

/* Modifier: ảnh có chữ baked in — bỏ text card bên trái, ảnh full width */
.home-feature.home-feature-full {
  grid-template-columns: 1fr;
  min-height: 0;
  /* Break out of .home-showcase padding để full viewport */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.home-feature.home-feature-full .home-feature-art {
  min-height: 0;
  aspect-ratio: 2 / 1;
  border-radius: 0;
}
.home-feature.home-feature-full .home-feature-art img {
  object-fit: cover;
  object-position: center;
}
/* Large variant: vẫn dùng aspect 2:1 để khớp file 1600×800 / 2000×1000 */
.home-feature-large.home-feature-full .home-feature-art {
  aspect-ratio: 2 / 1;
}

/* Mobile — cho phép ảnh full viewport luôn */
@media (max-width: 760px) {
  .home-feature.home-feature-full {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
}

.home-feature-art::after {
  position: absolute;
  right: 9%;
  bottom: 0;
  width: 46%;
  height: 72%;
  border-radius: 3px 3px 0 0;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.18);
  content: "";
}

.floor-scene::after,
.wall-scene::after,
.collection-scene::after {
  background-image:
    linear-gradient(115deg, transparent 14%, rgba(172, 148, 110, 0.44) 15%, transparent 19%),
    linear-gradient(132deg, transparent 46%, rgba(82, 84, 86, 0.2) 47%, transparent 52%),
    linear-gradient(180deg, #fffdfa, #ece8e1);
}

.wall-scene {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 46%),
    linear-gradient(180deg, #eee8df, #d8cec1);
}

.garden-scene {
  background:
    radial-gradient(circle at 82% 18%, rgba(89, 116, 80, 0.34), transparent 25%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    linear-gradient(145deg, #5f6b61, #c7c1b6 62%, #716c63);
  background-size: auto, 130px 130px, 130px 130px, auto;
}

.garden-scene::after {
  background-image:
    linear-gradient(122deg, transparent 18%, rgba(225, 225, 220, 0.2) 19%, transparent 22%),
    linear-gradient(180deg, #767b78, #4b4f4c);
}

.wood-scene {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 45%),
    linear-gradient(180deg, #d8c0a5, #a27a58);
}

.wood-scene::after {
  background-image:
    repeating-linear-gradient(34deg, rgba(255, 255, 255, 0.12) 0 3px, transparent 3px 18px),
    repeating-linear-gradient(112deg, rgba(83, 51, 27, 0.24) 0 2px, transparent 2px 16px),
    linear-gradient(180deg, #bd946d, #765437);
}

.collection-scene {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 48%),
    linear-gradient(135deg, #262627, #e8e5df 44%, #8a7b69);
}

.screen-category {
  padding-bottom: 70px;
  background:
    linear-gradient(180deg, #fff 0%, #f5f5f7 56%, #f7f7f8 100%);
}

.category-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 740px;
  align-items: center;
  min-height: 310px;
  padding: 54px 7vw 38px;
}

.category-hero h1 {
  font-family: var(--serif);
  font-size: clamp(64px, 6vw, 105px);
  font-weight: 400;
}

.category-hero p {
  margin: 16px 0 0;
  color: #4d515b;
  font-size: 24px;
}

.category-slabs {
  position: relative;
  height: 260px;
}

.mini-slab {
  position: absolute;
  bottom: 0;
  width: 145px;
  height: 245px;
  border-radius: 2px;
}

.mini-slab:nth-child(1) {
  left: 120px;
}

.mini-slab:nth-child(2) {
  left: 270px;
  height: 220px;
}

.mini-slab:nth-child(3) {
  left: 420px;
  height: 210px;
}

.mini-slab:nth-child(4) {
  left: 570px;
  transform: rotate(-3deg);
}

.size-rail {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0;
  max-width: 1720px;
  margin: -16px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(20, 24, 32, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 70px rgba(17, 19, 24, 0.08);
  overflow-x: auto;
}
@media (max-width: 760px) {
  .size-rail {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .size-rail a { flex: 0 0 96px; scroll-snap-align: start; }
}

.size-rail button,
.size-rail a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 135px;
  border: 0;
  border-right: 1px solid rgba(20, 24, 32, 0.1);
  background: transparent;
  color: #3b3e45;
  font-size: 17px;
}

.size-rail button:last-child,
.size-rail a:last-child {
  border-right: 0;
}

.size-rail button.active,
.size-rail a.active {
  border-right-color: transparent;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1.5px var(--blue);
  color: var(--blue);
}

.size-icon {
  border-radius: 2px;
  object-fit: cover;
  object-position: center;
  background-color: #e9e5de;
}

.size-icon.vertical {
  width: 34px;
  height: 76px;
}

.size-icon.vertical.slim {
  width: 32px;
  height: 64px;
}

.size-icon.vertical.medium {
  width: 42px;
  height: 72px;
}

.size-icon.square {
  width: 62px;
  height: 62px;
}

.size-icon.square.small {
  width: 52px;
  height: 52px;
}

.size-icon.square.tiny {
  width: 45px;
  height: 45px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  max-width: 1720px;
  margin: 30px auto 20px;
}

.section-title-row h2 {
  font-size: clamp(34px, 3vw, 45px);
  font-weight: 700;
}

.section-title-row a,
.product-info a,
.panel-copy a {
  color: var(--blue);
  font-weight: 500;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1720px;
  margin: 0 auto;
}

.product-card {
  position: relative;
  overflow: hidden;
  display: block;
  border: 1px solid rgba(20, 24, 32, 0.09);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 44px rgba(17, 19, 24, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(17, 19, 24, 0.1);
}

.heart-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  border: 0;
  color: white;
  background: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
}

.product-visual {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-position: center;
  background-size: cover;
}

.scene-marble,
.scene-travertine,
.scene-graphite,
.scene-wood {
  position: relative;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent 42%),
    linear-gradient(180deg, #e8e2da, #f8f6f2);
}

.scene-marble::after,
.scene-travertine::after,
.scene-graphite::after,
.scene-wood::after {
  position: absolute;
  right: 12%;
  bottom: 0;
  width: 54%;
  height: 74%;
  border-radius: 3px 3px 0 0;
  box-shadow: -15px 0 36px rgba(0, 0, 0, 0.18);
  content: "";
}

.scene-marble::after {
  background-image:
    linear-gradient(115deg, transparent 15%, rgba(172, 148, 110, 0.45) 16%, transparent 19%),
    linear-gradient(132deg, transparent 48%, rgba(82, 84, 86, 0.24) 49%, transparent 52%),
    linear-gradient(180deg, #fffdfa, #ede9e2);
}

.scene-travertine::after {
  background-image:
    repeating-linear-gradient(112deg, rgba(128, 104, 75, 0.16) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #dfd3c3, #bea88d);
}

.scene-graphite::after {
  background-image:
    linear-gradient(122deg, transparent 18%, rgba(225, 225, 220, 0.25) 19%, transparent 22%),
    linear-gradient(180deg, #6e7273, #3c3f41);
}

.scene-wood::after {
  background-image:
    repeating-linear-gradient(34deg, rgba(255, 255, 255, 0.12) 0 3px, transparent 3px 18px),
    repeating-linear-gradient(112deg, rgba(83, 51, 27, 0.22) 0 2px, transparent 2px 16px),
    linear-gradient(180deg, #bd946d, #765437);
}

.product-info {
  padding: 24px 24px 26px;
}

.product-info h3 {
  margin: 0;
  font-size: 26px;
}

.product-info p {
  margin: 8px 0 14px;
  color: #4e535c;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.badges span {
  border: 1px solid rgba(20, 24, 32, 0.16);
  border-radius: 7px;
  padding: 6px 12px;
  color: #333740;
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
}

.product-info a::after,
.section-title-row a::after,
.message-strip a::after,
.panel-copy a::after {
  content: "  ›";
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 920px;
  margin: 28px 0 0 calc((100vw - min(1720px, 100vw)) / 2);
}

.filter-row button {
  min-height: 48px;
  border: 1px solid rgba(20, 24, 32, 0.12);
  border-radius: 8px;
  background: white;
  padding: 0 26px;
}

.filter-row .filter-icon {
  position: relative;
  width: 70px;
  height: 58px;
}

.filter-row .filter-icon::before {
  content: "☷";
  font-size: 28px;
}

.category-page {
  background: #f6f7f9;
}

.category-page .site-header {
  grid-template-columns: 250px 1fr 280px;
  min-height: 70px;
  padding: 0 66px;
  background: rgba(255, 255, 255, 0.92);
}

.category-page .brand {
  font-size: clamp(32px, 2.2vw, 40px);
}

.category-page .main-nav {
  gap: clamp(28px, 3.6vw, 62px);
  font-size: 17px;
}

.category-page .main-nav a {
  padding: 24px 0 22px;
}

.category-page .main-nav a.active::after,
.category-page .main-nav a:hover::after {
  bottom: 5px;
  height: 1.5px;
}

.category-page .header-actions {
  gap: 20px;
}

.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 44px;
  color: #05070a;
}

.search-icon::before {
  width: 19px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 999px;
  content: "";
}

.search-icon::after {
  position: absolute;
  right: 5px;
  bottom: 10px;
  width: 10px;
  height: 2px;
  transform: rotate(45deg);
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.heart-icon::before,
.favorite-mark::before {
  content: "♡";
  font-family: var(--sans);
  line-height: 1;
}

.heart-icon::before {
  font-size: 34px;
}

.category-page .header-buy {
  min-width: 142px;
  min-height: 48px;
  font-size: 17px;
}

.category-page .message-strip {
  min-height: 48px;
  border-bottom: 1px solid rgba(20, 24, 32, 0.06);
  background: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.category-page .screen-category {
  padding-bottom: 44px;
  background:
    radial-gradient(circle at 76% 19%, rgba(210, 214, 218, 0.38), transparent 21%),
    linear-gradient(180deg, #f8f9fb 0%, #f4f5f7 47%, #f6f7f9 100%);
}

.category-page .category-hero {
  align-items: start;
  min-height: 250px;
  padding: 40px 7vw 0;
}

.category-page .category-hero h1 {
  font-size: clamp(76px, 5.5vw, 96px);
  line-height: 0.95;
}

.category-page .category-hero > div:first-child {
  padding-top: 20px;
}

.category-page .category-hero p {
  margin-top: 22px;
  color: #4e535c;
  font-size: 21px;
}

.category-hero-stage {
  position: relative;
  height: 210px;
  margin-top: -50px;
  isolation: isolate;
}

.category-hero-image {
  position: relative;
  height: 250px;
  margin-top: -36px;
  overflow: hidden;
  border-radius: 0;
}

.category-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: saturate(0.98) contrast(1.02);
}

.category-hero-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 249, 251, 0.95) 0%, rgba(248, 249, 251, 0.64) 34%, rgba(248, 249, 251, 0.08) 62%, transparent 100%);
  content: "";
  pointer-events: none;
}

/* ── Full-bleed hero variant — ảnh đã có chữ baked in, ẩn text card ── */
.category-hero.has-feature-image {
  display: block;
  padding: 0;
  margin: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.category-hero.has-feature-image > div:not(.category-hero-image) {
  /* Hide H1 + description card visually nhưng giữ cho SEO/screen reader */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.category-hero.has-feature-image .category-hero-image {
  position: relative;
  height: auto;
  max-height: 86vh;
  margin: 0;
  overflow: hidden;
}
.category-hero.has-feature-image .category-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 86vh;
  object-fit: contain;
  object-position: center;
}
/* Bỏ gradient overlay vì ảnh có chữ riêng */
.category-hero.has-feature-image .category-hero-image::after {
  display: none;
}

/* Empty placeholder khi hero chưa upload */
.category-hero.has-feature-image .category-hero-image.is-empty {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 280px;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.025) 0px, rgba(0, 0, 0, 0.025) 12px, transparent 12px, transparent 24px),
    linear-gradient(135deg, #faf9f6 0%, #ece8e1 100%);
  color: rgba(20, 24, 32, 0.5);
  text-align: center;
  font-family: var(--serif);
}
.category-hero.has-feature-image .category-hero-image.is-empty::before {
  content: attr(data-hero-label);
  font-size: clamp(48px, 5vw, 86px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(20, 24, 32, 0.5);
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  inset: auto !important;
  pointer-events: none !important;
}
.category-hero.has-feature-image .category-hero-image.is-empty::after {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  background: rgba(0, 102, 255, 0.12) !important;
  border: 0 !important;
  padding: 6px 16px !important;
  border-radius: 999px !important;
  color: var(--blue) !important;
  font-family: var(--sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  content: "Sắp cập nhật ảnh" !important;
  inset: auto !important;
}

.category-hero-stage::before {
  position: absolute;
  right: -7vw;
  bottom: -1px;
  left: -8vw;
  height: 132px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(235, 237, 240, 0.72)),
    repeating-linear-gradient(0deg, rgba(20, 24, 32, 0.04) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(20, 24, 32, 0.035) 0 1px, transparent 1px 88px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  content: "";
  z-index: -2;
}

.category-hero-stage::after {
  position: absolute;
  top: -10px;
  right: -5vw;
  width: 770px;
  height: 170px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(20, 24, 32, 0.08), transparent 62%),
    repeating-linear-gradient(74deg, transparent 0 24px, rgba(80, 84, 90, 0.045) 25px 26px, transparent 27px 54px);
  filter: blur(0.2px);
  opacity: 0.58;
  content: "";
  z-index: -1;
}

.hero-display-slab {
  position: absolute;
  bottom: 21px;
  width: 152px;
  height: 246px;
  border-radius: 2px;
  transform-origin: bottom center;
  box-shadow:
    -24px 18px 38px rgba(40, 42, 46, 0.14),
    inset -10px 0 14px rgba(0, 0, 0, 0.12),
    inset 1px 0 0 rgba(255, 255, 255, 0.65);
}

.hero-slab-1 {
  right: 430px;
  width: 164px;
  height: 254px;
  z-index: 4;
}

.hero-slab-2 {
  right: 344px;
  height: 252px;
  z-index: 3;
}

.hero-slab-3 {
  right: 210px;
  width: 166px;
  height: 242px;
  z-index: 2;
}

.hero-slab-4 {
  right: 64px;
  width: 156px;
  height: 242px;
  z-index: 1;
}

.hero-floor-slab {
  position: absolute;
  right: 408px;
  bottom: 0;
  width: 320px;
  height: 84px;
  transform: perspective(600px) rotateX(64deg) skewX(-22deg);
  transform-origin: center bottom;
  border-radius: 2px;
  box-shadow:
    0 24px 48px rgba(34, 36, 40, 0.2),
    inset 0 -8px 12px rgba(0, 0, 0, 0.08);
  z-index: 5;
}

.hero-wall .hero-slab-2 {
  width: 132px;
}

.hero-wall .hero-slab-4 {
  width: 170px;
}

.hero-outdoor::before {
  background:
    linear-gradient(180deg, rgba(245, 248, 246, 0.9), rgba(214, 222, 216, 0.78)),
    repeating-linear-gradient(0deg, rgba(92, 104, 96, 0.08) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(92, 104, 96, 0.075) 0 1px, transparent 1px 88px);
}

.hero-outdoor::after {
  background:
    radial-gradient(circle at 18% 55%, rgba(68, 104, 76, 0.24), transparent 18%),
    radial-gradient(ellipse at 50% 50%, rgba(20, 24, 32, 0.09), transparent 62%),
    repeating-linear-gradient(74deg, transparent 0 24px, rgba(80, 100, 82, 0.06) 25px 26px, transparent 27px 54px);
}

.hero-outdoor .hero-floor-slab {
  right: 390px;
  width: 360px;
  background-image:
    linear-gradient(122deg, transparent 18%, rgba(225, 225, 220, 0.25) 19%, transparent 22%),
    linear-gradient(180deg, #7f8782, #515751);
}

.hero-outdoor .hero-slab-1 {
  width: 180px;
  height: 202px;
}

.hero-outdoor .hero-slab-2,
.hero-outdoor .hero-slab-3 {
  height: 214px;
}

.hero-wood::before {
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.88), rgba(226, 210, 192, 0.68)),
    repeating-linear-gradient(0deg, rgba(117, 78, 43, 0.06) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(117, 78, 43, 0.055) 0 1px, transparent 1px 88px);
}

.hero-wood::after {
  background:
    radial-gradient(circle at 86% 44%, rgba(78, 112, 72, 0.18), transparent 18%),
    radial-gradient(ellipse at 50% 50%, rgba(83, 51, 27, 0.09), transparent 62%),
    repeating-linear-gradient(74deg, transparent 0 24px, rgba(117, 78, 43, 0.06) 25px 26px, transparent 27px 54px);
}

.hero-wood .hero-slab-1 {
  width: 162px;
  height: 238px;
  transform: rotate(-2deg);
}

.hero-wood .hero-slab-2 {
  width: 152px;
  height: 246px;
}

.hero-wood .hero-slab-3 {
  width: 132px;
  height: 224px;
}

.hero-wood .hero-slab-4 {
  width: 180px;
  height: 254px;
  transform: rotate(2deg);
}

.hero-size .hero-slab-1 {
  height: 260px;
}

.hero-size .hero-slab-2 {
  height: 226px;
}

.hero-size .hero-slab-3 {
  height: 208px;
}

.hero-size .hero-slab-4 {
  height: 238px;
}

.category-page .size-rail {
  position: relative;
  z-index: 5;
  max-width: 1640px;
  margin-top: -2px;
  padding: 8px 24px;
  border-color: rgba(20, 24, 32, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 24px 60px rgba(17, 19, 24, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
}

.category-page .size-rail a {
  min-height: 112px;
  gap: 12px;
  font-size: 16px;
}

.category-page .size-rail a.active {
  box-shadow: inset 0 0 0 1.5px #0057e8;
}

.category-page .section-title-row,
.category-page .product-grid {
  max-width: 1640px;
}

.category-page .section-title-row {
  margin-top: 14px;
  margin-bottom: 16px;
}

.category-page .section-title-row h2 {
  font-size: clamp(29px, 2vw, 35px);
}

.category-page .section-title-row a {
  font-size: 18px;
}

.category-page .product-grid {
  gap: 26px;
}

.category-page .product-card {
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(17, 19, 24, 0.07);
}

.product-card-link {
  position: relative;
  display: block;
}

.category-page .product-visual {
  aspect-ratio: 4 / 3;
  border-radius: 14px 14px 0 0;
}

.product-scene {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 11% 28%, rgba(70, 88, 66, 0.3), transparent 14%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 34%),
    linear-gradient(180deg, #ebe7df 0 58%, #d7d2ca 58% 100%);
}

.product-scene::before {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 42%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.36) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.32) 0 1px, transparent 1px 88px);
  content: "";
}

.product-scene::after {
  position: absolute;
  right: 13%;
  bottom: 0;
  width: 61%;
  height: 78%;
  border-radius: 2px 2px 0 0;
  box-shadow:
    -20px 0 34px rgba(0, 0, 0, 0.18),
    inset -8px 0 14px rgba(0, 0, 0, 0.12),
    inset 1px 0 0 rgba(255, 255, 255, 0.72);
  content: "";
}

.product-scene-marble {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 43%),
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(94, 71, 47, 0.24) 13px 17px, transparent 17px 29px),
    linear-gradient(180deg, #d7d2c8 0 58%, #eeeae4 58% 100%);
}

.product-scene-marble::after {
  background-image:
    linear-gradient(115deg, transparent 14%, rgba(172, 148, 110, 0.46) 15%, transparent 20%),
    linear-gradient(134deg, transparent 44%, rgba(82, 84, 86, 0.2) 45%, transparent 51%),
    linear-gradient(108deg, transparent 62%, rgba(185, 163, 128, 0.5) 63%, transparent 69%),
    linear-gradient(180deg, #fffefa, #e9e5dd);
}

.product-scene-travertine {
  background:
    linear-gradient(90deg, rgba(75, 56, 39, 0.22), transparent 42%),
    linear-gradient(180deg, #cfc5b8 0 58%, #eee9e1 58% 100%);
}

.product-scene-travertine::after {
  background-image:
    repeating-linear-gradient(112deg, rgba(128, 104, 75, 0.2) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #e0d4c5, #bda990);
}

.product-scene-graphite {
  background:
    radial-gradient(circle at 10% 24%, rgba(70, 106, 66, 0.38), transparent 18%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 44%),
    linear-gradient(180deg, #424542 0 58%, #dce2df 58% 100%);
}

.product-scene-graphite::after {
  background-image:
    linear-gradient(122deg, transparent 18%, rgba(225, 225, 220, 0.25) 19%, transparent 22%),
    linear-gradient(47deg, transparent 58%, rgba(210, 210, 205, 0.18) 59%, transparent 63%),
    linear-gradient(180deg, #707475, #3d4042);
}

.product-scene-wood {
  background:
    radial-gradient(circle at 91% 53%, rgba(82, 114, 78, 0.28), transparent 13%),
    linear-gradient(90deg, rgba(50, 33, 22, 0.2), transparent 40%),
    linear-gradient(180deg, #c6b5a5 0 58%, #9a7b60 58% 100%);
}

.product-scene-wood::after {
  width: 68%;
  transform: skewX(-3deg);
  background-image:
    repeating-linear-gradient(34deg, rgba(255, 255, 255, 0.13) 0 3px, transparent 3px 18px),
    repeating-linear-gradient(112deg, rgba(83, 51, 27, 0.24) 0 2px, transparent 2px 16px),
    linear-gradient(180deg, #bd946d, #765437);
}

.favorite-mark {
  position: absolute;
  top: 12px;
  right: 13px;
  z-index: 2;
  color: white;
  font-size: 32px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.36);
}

.favorite-mark.active {
  color: #5ab7af;
}

.category-page .product-info {
  padding: 18px 22px 14px;
}

.category-page .product-info h3 {
  font-size: 22px;
}

.category-page .product-info p {
  margin: 6px 0 10px;
  font-size: 14px;
}

.category-page .badges {
  gap: 8px;
}

.category-page .badges span {
  padding: 5px 10px;
  font-size: 13px;
}

.category-page .card-actions {
  margin-top: 13px;
}

.category-page .card-actions .buy-button {
  min-width: 86px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.category-page .filter-row {
  max-width: 720px;
  margin-top: 16px;
  gap: 18px;
}

.category-page .filter-row button {
  min-height: 48px;
  border-radius: 13px;
  padding: 0 25px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(17, 19, 24, 0.04);
}

.screen-product {
  color: white;
  background: var(--dark);
}

.product-shell {
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #040506 0%, #060708 100%);
}

.product-subnav {
  position: sticky;
  top: 84px;
  z-index: 40;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(7, 8, 10, 0.88);
  backdrop-filter: blur(20px);
  transition: top 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* When the main site-header is hidden on scroll, slide subnav up to viewport top */
body.header-hidden .product-subnav {
  top: 0;
}
/* On desktop, hide brand text + Mua hàng in subnav — both are present in the hero/header */
.product-subnav strong {
  display: none;
}
.product-subnav .buy-button.small {
  display: none;
}
/* Hide-on-scroll for the main site-header (Apple-style) */
.site-header {
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
body.header-hidden .site-header {
  transform: translateY(-100%);
}

.product-subnav nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.product-subnav a {
  position: relative;
  padding: 22px 0;
}

.product-subnav a.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--blue);
  content: "";
}

.product-hero {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 34px;
  align-items: center;
  min-height: 760px;
  padding: 70px 72px 44px;
}

.product-copy h1 {
  font-family: var(--serif);
  font-size: clamp(72px, 6vw, 112px);
  font-weight: 400;
  line-height: 1.05;
}

.product-copy p {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 23px;
  line-height: 1.45;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.58);
}

.product-meta span:not(:last-child)::after {
  margin-left: 13px;
  content: "·";
}

.dark-actions {
  justify-content: flex-start;
  gap: 32px;
  margin-top: 52px;
}

.dark-actions a {
  color: #2383ff;
}

.product-copy small {
  display: block;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.56);
  line-height: 1.6;
}

.feature-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 86px;
}

.feature-pills span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

.dark-slab-stage {
  position: relative;
  min-height: 650px;
  perspective: 900px;
}

.hero-slab {
  position: absolute;
  bottom: 16px;
  width: 260px;
  height: 560px;
  border-radius: 3px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.55), inset -12px 0 14px rgba(0, 0, 0, 0.22);
}

.hero-slab.main {
  left: 42%;
  width: 360px;
  height: 620px;
  transform: translateX(-50%) rotateY(-8deg);
}

.hero-slab.side {
  left: 20%;
  transform: rotateY(36deg) rotateZ(-5deg);
}

.hero-slab.right {
  left: auto;
  right: 5%;
  transform: rotateY(-16deg);
}

.lifestyle-panel,
.video-panel {
  overflow: hidden;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 34px;
  max-width: 1960px;
  margin: 26px auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: var(--dark-card);
}

.panel-copy {
  padding: 68px 58px;
}

.panel-copy h2,
.viewer-copy h2,
.style-heading h2,
.feature-section h2 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
}

.panel-copy p,
.viewer-copy p,
.style-heading p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  line-height: 1.7;
}

.interior-scene,
.video-frame,
.style-image {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 44%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(135deg, #171412, #d8d0c5 48%, #362d27);
  background-size: auto, 180px 130px, 180px 130px, auto;
}

.interior-scene {
  min-height: 445px;
}

.video-frame {
  position: relative;
  min-height: 360px;
  margin: 34px;
  border: 0;
  border-radius: 8px;
  color: white;
  text-align: left;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.play-button::after {
  position: absolute;
  top: 25px;
  left: 32px;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 23px solid #222;
  content: "";
}

.video-frame > span:not(.play-button) {
  position: absolute;
  bottom: 24px;
  left: 24px;
}

.video-frame small {
  position: absolute;
  right: 22px;
  bottom: 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 12px;
}

.viewer-section {
  max-width: 1960px;
  margin: 24px auto;
}

.viewer-card {
  display: grid;
  grid-template-columns: 330px 1fr 260px;
  gap: 24px;
  min-height: 700px;
  border: 1.5px solid #005be0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 56% 40%, rgba(255, 255, 255, 0.12), transparent 24%),
    #010203;
  padding: 60px 52px;
}

.viewer-controls {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.viewer-controls button {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  text-align: left;
  padding: 0 26px;
}

.viewer-controls button.active {
  box-shadow: inset 18px 0 0 var(--blue);
}

.viewer-stage {
  position: relative;
  min-height: 560px;
}

.viewer-slab {
  position: absolute;
  top: 36px;
  left: 50%;
  width: 270px;
  height: 520px;
  transform: translateX(-50%) rotateY(-18deg) rotateZ(5deg);
  border-radius: 3px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
}

.rotate-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.82);
}

.zoom-controls {
  position: absolute;
  right: 28%;
  bottom: 18px;
  display: flex;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.zoom-controls button {
  width: 52px;
  height: 42px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.viewer-specs {
  display: grid;
  align-content: center;
  gap: 20px;
}

.viewer-specs span {
  display: flex;
  align-items: center;
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 0 26px;
}

.style-section,
.feature-section {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 24px;
}

.style-heading {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 28px;
}

/* Vertical stack — one full-width row per style, smooth scroll-fade */
.style-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 28px;
  scroll-behavior: smooth;
}

.style-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 420ms ease;
}

.style-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.style-image {
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover;
}

.style-image.minimal {
  filter: brightness(1.15) saturate(0.8);
}

.style-image.classic {
  filter: sepia(0.15) brightness(1.08);
}

.style-image.indochine {
  filter: sepia(0.35) contrast(1.02);
}

.style-image.japandi {
  filter: saturate(0.75) brightness(1.05);
}

.style-image.luxury {
  filter: contrast(1.18) brightness(0.84);
}

.style-grid strong {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 32px 8px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.style-grid strong span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Subtitle — staff fills this with room / application text (e.g. "Phòng khách 80m²",
   "Phòng vệ sinh", "Penthouse Q.2"). Bigger and more prominent than before. */
.style-grid p {
  margin: 0 32px 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.55;
  max-width: 760px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 22px;
  padding-bottom: 90px;
}

.feature-grid article {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 30px;
}

.feature-grid h3 {
  margin: 0;
}

.feature-grid p {
  color: rgba(255, 255, 255, 0.62);
}

.asset-stage {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.asset-stage img {
  width: 100%;
  height: 560px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.45);
}

.asset-stage img:nth-child(2) {
  height: 650px;
}

.section-asset,
.asset-video img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.asset-video {
  overflow: hidden;
  padding: 0;
}

.viewer-slab-img {
  position: absolute;
  top: 36px;
  left: 50%;
  width: 300px;
  height: 520px;
  transform: translateX(-50%) rotateY(-18deg) rotateZ(5deg);
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
}

.style-grid img.style-image {
  display: block;
  width: 100%;
  object-fit: cover;
}

.hero-slab-gallery {
  position: relative;
  min-height: 680px;
  perspective: 1500px;
  transform-style: preserve-3d;
  overflow: hidden;
}

.hero-slab-gallery::before {
  position: absolute;
  right: 2%;
  bottom: 0;
  left: 3%;
  height: 210px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.11), transparent 58%);
  opacity: 0.8;
  content: "";
}

.hero-slab-gallery::after {
  position: absolute;
  right: 4%;
  bottom: 12px;
  left: 5%;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.82), transparent 70%);
  filter: blur(18px);
  content: "";
}

.gallery-slab {
  position: absolute;
  bottom: 58px;
  transform-style: preserve-3d;
  opacity: 0;
  animation-duration: 1180ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
}

.gallery-face {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.2), transparent 26%, rgba(255, 255, 255, 0.2) 58%, transparent 74%),
    var(--tile-texture) center / cover no-repeat;
  box-shadow:
    0 40px 95px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset -12px 0 24px rgba(0, 0, 0, 0.22);
  transform: translateZ(18px);
}

.gallery-face::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(104deg, transparent 0 36%, rgba(255, 255, 255, 0.42) 45%, transparent 55% 100%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-55%);
  animation: gallerySheen 4800ms ease-in-out 1250ms infinite;
  content: "";
}

.gallery-edge {
  position: absolute;
  display: block;
  background: linear-gradient(180deg, #d2cdc3, #6f6a63);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.32);
}

.gallery-edge-right {
  top: 0;
  right: -18px;
  width: 36px;
  height: 100%;
  transform: rotateY(90deg);
  transform-origin: left center;
}

.gallery-edge-bottom {
  right: 0;
  bottom: -18px;
  width: 100%;
  height: 36px;
  transform: rotateX(90deg);
  transform-origin: top center;
}

.gallery-slab-left {
  z-index: 1;
  left: 7%;
  width: 230px;
  height: 510px;
  transform: translate3d(-110px, 60px, -220px) rotateY(36deg) rotateZ(-4deg) scale(0.86);
  animation-name: slabLeftEnter;
  animation-delay: 120ms;
}

.gallery-slab-main {
  z-index: 3;
  left: 34%;
  width: 330px;
  height: 625px;
  transform: translate3d(0, 0, 0) rotateY(-8deg);
  animation-name: slabMainEnter;
  animation-delay: 0ms;
}

.gallery-slab-right {
  z-index: 2;
  right: 4%;
  width: 275px;
  height: 590px;
  transform: translate3d(90px, 45px, -120px) rotateY(-16deg);
  animation-name: slabRightEnter;
  animation-delay: 210ms;
}

@keyframes slabMainEnter {
  0% {
    opacity: 0;
    transform: translate3d(130px, 60px, -360px) rotateY(-34deg) scale(0.76);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(-8deg) scale(1);
    filter: blur(0);
  }
}

@keyframes slabLeftEnter {
  0% {
    opacity: 0;
    transform: translate3d(80px, 70px, -420px) rotateY(12deg) rotateZ(-7deg) scale(0.72);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translate3d(-110px, 60px, -220px) rotateY(36deg) rotateZ(-4deg) scale(0.86);
    filter: blur(0);
  }
}

@keyframes slabRightEnter {
  0% {
    opacity: 0;
    transform: translate3d(-20px, 70px, -380px) rotateY(-38deg) scale(0.74);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translate3d(90px, 45px, -120px) rotateY(-16deg) scale(1);
    filter: blur(0);
  }
}

@keyframes gallerySheen {
  0%,
  18% {
    opacity: 0;
    transform: translateX(-60%);
  }
  38% {
    opacity: 0.5;
  }
  64%,
  100% {
    opacity: 0;
    transform: translateX(75%);
  }
}

.hero-3d-stage {
  position: relative;
  min-height: 680px;
  perspective: 1400px;
  transform-style: preserve-3d;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-3d-stage::before {
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.18), transparent 24%),
    radial-gradient(circle at 64% 56%, rgba(0, 87, 217, 0.18), transparent 28%);
  filter: blur(8px);
  content: "";
}

.hero-3d-orbit {
  position: relative;
  width: min(720px, 82vw);
  height: 650px;
  transform-style: preserve-3d;
  animation: heroProductEnter 1300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tile-3d {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 330px;
  height: 610px;
  transform-style: preserve-3d;
  transform-origin: center center;
}

.tile-primary {
  z-index: 2;
  transform: translateX(-52%) rotateY(-22deg) rotateX(4deg) rotateZ(-1deg);
  animation: heroTileFloat 6200ms ease-in-out 1300ms infinite;
}

.tile-secondary {
  z-index: 1;
  width: 260px;
  height: 500px;
  opacity: 0.72;
  transform: translateX(38%) translateZ(-120px) rotateY(-34deg) rotateX(3deg) rotateZ(2deg);
  filter: brightness(0.8);
  animation: heroTileFloatSecondary 7200ms ease-in-out 1450ms infinite;
}

.tile-face {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.28), transparent 28%, rgba(255, 255, 255, 0.14) 58%, transparent 72%),
    var(--tile-texture) center / cover no-repeat;
  box-shadow:
    0 44px 120px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset -12px 0 22px rgba(0, 0, 0, 0.18);
  transform: translateZ(18px);
}

.tile-face::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 0 40%, rgba(255, 255, 255, 0.42) 47%, transparent 58% 100%);
  mix-blend-mode: screen;
  opacity: 0.55;
  transform: translateX(-55%);
  animation: heroTileSheen 4200ms ease-in-out 1200ms infinite;
  content: "";
}

.tile-edge {
  position: absolute;
  display: block;
  background: linear-gradient(180deg, #c7c0b4, #69645e);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.3);
}

.tile-edge-right {
  top: 0;
  right: -18px;
  width: 36px;
  height: 100%;
  transform: rotateY(90deg);
  transform-origin: left center;
}

.tile-edge-bottom {
  right: 0;
  bottom: -18px;
  width: 100%;
  height: 36px;
  transform: rotateX(90deg);
  transform-origin: top center;
}

.hero-3d-shadow {
  position: absolute;
  right: 13%;
  bottom: 68px;
  width: 560px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.78), transparent 68%);
  filter: blur(16px);
  opacity: 0;
  animation: heroShadowEnter 1300ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.hero-3d-caption {
  position: absolute;
  right: 9%;
  bottom: 22px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

@keyframes heroProductEnter {
  0% {
    opacity: 0;
    transform: translate3d(220px, 80px, -520px) rotateY(-58deg) scale(0.72);
    filter: blur(10px);
  }
  58% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
    filter: blur(0);
  }
}

@keyframes heroTileFloat {
  0%,
  100% {
    transform: translateX(-52%) translateY(0) rotateY(-22deg) rotateX(4deg) rotateZ(-1deg);
  }
  50% {
    transform: translateX(-52%) translateY(-18px) rotateY(-14deg) rotateX(5deg) rotateZ(1deg);
  }
}

@keyframes heroTileFloatSecondary {
  0%,
  100% {
    transform: translateX(38%) translateY(0) translateZ(-120px) rotateY(-34deg) rotateX(3deg) rotateZ(2deg);
  }
  50% {
    transform: translateX(38%) translateY(-12px) translateZ(-120px) rotateY(-28deg) rotateX(4deg) rotateZ(1deg);
  }
}

@keyframes heroTileSheen {
  0%,
  18% {
    transform: translateX(-60%);
    opacity: 0;
  }
  38% {
    opacity: 0.5;
  }
  62%,
  100% {
    transform: translateX(70%);
    opacity: 0;
  }
}

@keyframes heroShadowEnter {
  0% {
    opacity: 0;
    transform: scale(0.55);
  }
  100% {
    opacity: 0.78;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-3d-orbit,
  .tile-primary,
  .tile-secondary,
  .tile-face::after,
  .hero-3d-shadow,
  .gallery-slab,
  .gallery-face::after {
    animation: none;
    opacity: 1;
  }
}

/* ============ Three.js viewer + GSAP enhancements ============ */

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.viewer-stage.has-canvas {
  min-height: 600px;
}

.viewer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  outline: none;
}

.viewer-canvas:active {
  cursor: grabbing;
}

.viewer-stage.has-canvas .viewer-slab,
.viewer-stage.has-canvas .viewer-slab-img {
  display: none;
}

.viewer-stage.has-canvas .rotate-hint,
.viewer-stage.has-canvas .zoom-controls {
  z-index: 3;
}

.viewer-stage.is-loading::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  letter-spacing: 0.04em;
  content: "Đang tải 3D…";
}

/* GSAP-friendly hidden initial state for reveal-on-scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  will-change: transform, opacity;
}

.reveal-ready .reveal-on-scroll,
.no-anim .reveal-on-scroll {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* Polished interior + style images replace CSS gradient placeholders */
img.interior-scene,
img.video-poster,
.style-grid img.style-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  background: #1a1816;
}

.lifestyle-panel img.interior-scene {
  min-height: 445px;
}

/* Product page hero — Unsplash photo replaces CSS slab */
.hero-slab-gallery.uses-photo .gallery-face {
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.18), transparent 26%, rgba(255, 255, 255, 0.18) 58%, transparent 74%),
    var(--tile-texture) center / cover no-repeat;
}

/* Sub-nav active state for ScrollSpy */
.product-subnav a.sub-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--blue);
  content: "";
}

/* Lead modal success state */
.lead-modal[data-state="success"] form > *:not(.lead-success) {
  display: none;
}

.lead-success {
  display: none;
  padding: 16px 0;
  text-align: center;
}

.lead-modal[data-state="success"] .lead-success {
  display: block;
}

.lead-success strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 26px;
}

.lead-success span {
  color: var(--muted);
  font-size: 15px;
}

/* Video play hover effect */
.video-frame:hover .play-button,
.asset-video:hover .play-button {
  transform: translate(-50%, -50%) scale(1.08);
  transition: transform 240ms ease;
}

.play-button {
  transition: transform 240ms ease;
}

/* Viewer button micro hover */
.viewer-controls button {
  transition: background 200ms ease, transform 200ms ease;
}

.viewer-controls button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

/* Product card hover lift smoothed by GSAP — fall back nicely without */
.product-card:focus-visible {
  outline-offset: 4px;
}

/* Native HTML5 video for "Video công năng sản phẩm" section */
.video-player-frame {
  position: relative;
  min-height: 360px;
  margin: 34px;
  padding: 0;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.video-player-frame video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 60vh;
  object-fit: cover;
  border-radius: inherit;
  background: #000;
}

/* ============================================================ */
/* Apple-style horizontal HIGHLIGHTS CAROUSEL (Calacatta Royal) */
/* ============================================================ */

.highlights-section {
  max-width: 1960px;
  margin: 50px auto;
  padding: 50px 0 70px;
}

.highlights-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 72px;
  margin-bottom: 40px;
}
.highlights-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.highlights-watch {
  color: #2383ff;
  font-size: 16px;
  font-weight: 500;
}
.highlights-watch:hover {
  text-decoration: underline;
}

/* Track — horizontal scroll-snap */
.highlights-carousel {
  position: relative;
}
.highlights-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0 calc((100vw - min(820px, 88vw)) / 2);
  scroll-padding-inline: calc((100vw - min(820px, 88vw)) / 2);
  scrollbar-width: none;
}
.highlights-track::-webkit-scrollbar {
  display: none;
}

/* Card */
.highlight-card {
  flex: 0 0 min(820px, 88vw);
  scroll-snap-align: center;
  border-radius: 18px;
  overflow: hidden;
  background: #141414;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
}
.highlight-card[data-card-active="true"] {
  /* slight emphasis on the centered card */
  transform: none; /* keep flat — Apple doesn't scale */
}

/* Media area */
.highlight-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0a0a0a;
  overflow: hidden;
}
.highlight-media img,
.highlight-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* "VIDEO" badge on video cards */
.video-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  backdrop-filter: blur(4px);
}

/* Caption */
.highlight-caption {
  padding: 28px 36px 32px;
  color: rgba(255, 255, 255, 0.92);
}
.highlight-caption h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
}
.highlight-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  line-height: 1.45;
}

/* Bottom controls */
.highlights-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  padding: 0 24px;
}
.carousel-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 180ms ease;
}
.carousel-arrow:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}
.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.highlights-dots {
  display: flex;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.highlights-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  padding: 0;
  cursor: pointer;
  transition: all 220ms ease;
}
.highlights-dots button[aria-selected="true"] {
  width: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
}
.highlights-dots button:hover:not([aria-selected="true"]) {
  background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 760px) {
  .highlights-header {
    padding: 0 22px;
    margin-bottom: 26px;
  }
  .highlight-caption {
    padding: 22px 22px 26px;
  }
  .highlight-caption h3 {
    font-size: 22px;
  }
  .highlight-caption p {
    font-size: 14px;
  }
  /* Compact carousel controls on mobile (Apple-style: rely on swipe) */
  .highlights-controls {
    gap: 10px;
    margin-top: 16px;
    padding: 0 18px;
  }
  .carousel-arrow {
    width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    font-size: 14px;
    border-width: 1px;
  }
  .highlights-dots {
    gap: 5px;
    padding: 5px 9px;
  }
  .highlights-dots button {
    width: 6px !important;
    height: 6px !important;
    min-height: 6px !important;
  }
  .highlights-dots button[aria-selected="true"] {
    width: 16px !important;
    border-radius: 3px;
  }
}

/* ============================================================ */
/* Blog & Article pages (/tin-tuc/) */
/* ============================================================ */

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 5vw 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb a {
  color: var(--blue);
  font-weight: 500;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span:not([aria-current]) {
  color: rgba(20, 24, 32, 0.3);
}
.breadcrumb [aria-current="page"] {
  color: var(--text);
}

/* ---- Blog index ---- */
.blog-page {
  background: linear-gradient(180deg, #fff 0%, #f5f5f7 100%);
}

.blog-hero {
  padding: 60px 5vw 40px;
  text-align: center;
}
.blog-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.blog-hero .eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 13px;
  text-transform: uppercase;
}
.blog-hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 20px;
}
.blog-hero .hero-lead {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5vw 40px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 1px solid rgba(20, 24, 32, 0.12);
  border-radius: 999px;
  background: white;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 180ms ease;
}
.filter-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.filter-pill.active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5vw 80px;
}
.article-card {
  background: white;
  border: 1px solid rgba(20, 24, 32, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(17, 19, 24, 0.08);
}
.article-card-link {
  display: block;
  color: inherit;
}
.article-card-image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.article-card:hover .article-card-image img {
  transform: scale(1.05);
}
.article-card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.article-card-body {
  padding: 22px 24px 26px;
}
.article-card-body time {
  color: var(--muted);
  font-size: 13px;
}
.article-card-body h2 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
}
.article-card-body p {
  margin: 0 0 14px;
  color: #4d525b;
  font-size: 15px;
  line-height: 1.55;
}
.article-read-time {
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
}

/* ---- Single article page ---- */
.article-page {
  background: #fff;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 22px 60px;
}

.article-header {
  text-align: center;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(20, 24, 32, 0.08);
}
.article-cat {
  margin: 0 0 14px;
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.article-header h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 20px;
}
.article-lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: #3a3f48;
  line-height: 1.55;
  margin: 0 0 22px;
}
.article-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.article-hero-image {
  margin: 36px -22px;
  border-radius: 12px;
  overflow: hidden;
}
.article-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-toc {
  margin: 36px 0;
  padding: 24px 28px;
  background: #f5f5f7;
  border-radius: 12px;
  border-left: 4px solid var(--blue);
}
.article-toc h2 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.article-toc ol {
  margin: 0;
  padding: 0 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
}
.article-toc a {
  color: var(--text);
}
.article-toc a:hover {
  color: var(--blue);
}

.article-body section {
  margin: 40px 0;
  scroll-margin-top: 100px;
}
.article-body section h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
}
.article-body section h3 {
  font-size: 19px;
  margin: 24px 0 10px;
  color: var(--text);
}
.article-body section p {
  font-size: 17px;
  line-height: 1.7;
  color: #2a2f37;
  margin: 0 0 16px;
}
.article-body section ul,
.article-body section ol {
  font-size: 17px;
  line-height: 1.75;
  color: #2a2f37;
  margin: 0 0 18px;
  padding-left: 22px;
}
.article-body section li {
  margin: 6px 0;
}
.article-body section a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(0, 87, 217, 0.25);
  text-underline-offset: 3px;
}
.article-body section a:hover {
  text-decoration-color: var(--blue);
}
.article-body section strong {
  color: var(--text);
  font-weight: 600;
}

.article-callout {
  display: block;
  margin: 30px -10px;
  padding: 20px 26px;
  background: linear-gradient(135deg, #fff8ed, #fff3df);
  border: 1px solid rgba(208, 167, 91, 0.25);
  border-left: 4px solid #c9a06e;
  border-radius: 10px;
  color: #4d3c1e;
  font-size: 15.5px;
  line-height: 1.6;
}
.article-callout strong {
  color: #2e1d05;
}
.article-callout a {
  color: #a06b34;
  font-weight: 600;
}

.comparison-table {
  margin: 24px -10px;
  overflow-x: auto;
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.comparison-table th,
.comparison-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(20, 24, 32, 0.08);
  text-align: left;
}
.comparison-table thead th {
  background: #f5f5f7;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

.article-related-products {
  margin: 50px 0;
  padding: 28px 24px;
  background: linear-gradient(180deg, #f8f8fa, #f3f3f5);
  border-radius: 12px;
}
.article-related-products h2 {
  margin: 0 0 18px !important;
  font-size: 20px !important;
  font-family: var(--sans) !important;
  font-weight: 700 !important;
}
.related-products-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.related-product {
  display: block;
  padding: 18px 20px;
  background: white;
  border: 1px solid rgba(20, 24, 32, 0.08);
  border-radius: 10px;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 180ms ease;
}
.related-product:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 87, 217, 0.08);
}
.related-product strong {
  display: block;
  color: var(--text) !important;
  font-size: 17px;
  margin-bottom: 4px;
}
.related-product span {
  color: var(--muted);
  font-size: 13px;
}

.article-related {
  max-width: 1280px;
  margin: 60px auto;
  padding: 0 5vw;
}
.article-related h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 24px;
}
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.article-related-card {
  display: block;
  padding: 22px 24px;
  background: white;
  border: 1px solid rgba(20, 24, 32, 0.08);
  border-radius: 12px;
  color: inherit;
  transition: all 200ms ease;
}
.article-related-card:hover {
  border-color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(17, 19, 24, 0.06);
}
.article-related-card .cat {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.article-related-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}

.blog-cta {
  max-width: 1280px;
  margin: 60px auto;
  padding: 0 5vw;
}
.blog-cta-inner {
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, #0a0e15, #1a1f2a);
  border-radius: 16px;
  color: white;
}
.blog-cta-inner h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  margin: 0 0 12px;
}
.blog-cta-inner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 28px;
}
.blog-cta-inner .outline-link {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}
.blog-cta-inner .outline-link:hover {
  border-color: white;
}

/* ---- Footer ---- */
.site-footer {
  margin-top: 60px;
  background: #0a0e15;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 5vw 40px;
}
.footer-brand .brand {
  display: block;
  margin: 0 0 12px;
  color: white;
  font-family: var(--serif);
  font-size: 24px;
}
.footer-brand p:not(.brand) {
  max-width: 280px;
  line-height: 1.55;
  margin: 0;
}
.footer-col h3 {
  margin: 0 0 14px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.65);
  transition: color 150ms ease;
}
.footer-col a:hover {
  color: white;
}
.footer-col address {
  font-style: normal;
  line-height: 1.55;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.65);
}
.footer-hours {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}
.footer-bottom {
  padding: 18px 5vw;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

/* ---- Blog page mobile ---- */
@media (max-width: 760px) {
  .blog-hero {
    padding: 40px 5vw 24px;
  }
  .article-grid {
    grid-template-columns: 1fr;
    padding: 0 5vw 60px;
  }
  .article-body {
    padding: 24px 18px 40px;
  }
  .article-hero-image {
    margin: 28px -18px;
    border-radius: 0;
  }
  .article-callout,
  .comparison-table {
    margin-left: -6px;
    margin-right: -6px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 40px 5vw 28px;
  }
}

/* ============ Polished hero (Calacatta Royal) ============ */

.product-hero.hero-large {
  grid-template-columns: 420px 1fr;
  gap: 56px;
  min-height: 840px;
  padding: 80px 72px 70px;
}

.product-hero.hero-large .product-copy h1 {
  font-size: clamp(72px, 6.6vw, 124px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.hero-desc-tight {
  margin-top: 30px !important;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 21px !important;
  line-height: 1.45 !important;
}

.product-meta-compact {
  gap: 10px !important;
  margin-top: 24px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.product-hero.hero-large .dark-actions {
  margin-top: 44px;
}

.product-hero.hero-large small {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.42);
}

/* Hero stage holds gallery + spotlight */
.hero-stage {
  position: relative;
  width: 100%;
  min-height: 780px;
  align-self: stretch;
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--spotlight-x, 60%) var(--spotlight-y, 45%),
    rgba(120, 160, 255, 0.18) 0%,
    rgba(80, 120, 230, 0.08) 18%,
    transparent 42%);
  pointer-events: none;
  transition: opacity 600ms ease;
  z-index: 0;
}

/* Larger slabs for hero-large variant */
.hero-slab-gallery-large {
  min-height: 780px;
  width: 100%;
}

.hero-slab-gallery-large .gallery-slab-main {
  width: 380px;
  height: 720px;
  left: 32%;
}

.hero-slab-gallery-large .gallery-slab-left {
  width: 270px;
  height: 620px;
  left: 4%;
}

.hero-slab-gallery-large .gallery-slab-right {
  width: 310px;
  height: 680px;
  right: 2%;
}

/* Stronger shadow for premium feel */
.hero-slab-gallery-large .gallery-face {
  box-shadow:
    0 50px 120px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset -14px 0 28px rgba(0, 0, 0, 0.24);
}

/* Update entrance keyframes for the larger slabs */
.hero-slab-gallery-large .gallery-slab-main {
  animation-name: slabMainEnterLarge;
}
.hero-slab-gallery-large .gallery-slab-left {
  animation-name: slabLeftEnterLarge;
}
.hero-slab-gallery-large .gallery-slab-right {
  animation-name: slabRightEnterLarge;
}

@keyframes slabMainEnterLarge {
  0% {
    opacity: 0;
    transform: translate3d(160px, 80px, -440px) rotateY(-40deg) scale(0.7);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(-8deg) scale(1);
    filter: blur(0);
  }
}

@keyframes slabLeftEnterLarge {
  0% {
    opacity: 0;
    transform: translate3d(100px, 90px, -500px) rotateY(18deg) rotateZ(-8deg) scale(0.66);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translate3d(-100px, 50px, -220px) rotateY(36deg) rotateZ(-4deg) scale(0.88);
    filter: blur(0);
  }
}

@keyframes slabRightEnterLarge {
  0% {
    opacity: 0;
    transform: translate3d(-40px, 80px, -460px) rotateY(-42deg) scale(0.68);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translate3d(80px, 40px, -120px) rotateY(-16deg) scale(1);
    filter: blur(0);
  }
}

/* Feature pills with inline icons (inside hero left column) */
.feature-pills-icons span {
  justify-content: flex-start;
  gap: 9px;
  padding: 0 12px;
  font-size: 13px;
}

.pill-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* ============ AI-generated hero photo (replaces CSS slabs) ============ */

.hero-stage-photo {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: grid;
  place-items: center;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 680px;
  perspective: 1600px;
  transform-style: preserve-3d;
  border-radius: 8px;
  overflow: hidden;
  will-change: transform;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  filter: brightness(1.04) contrast(1.05);
  will-change: opacity;
}

/* Fly-in animation overlay — 3 clip-pathed copies of the hero image,
   each shaped to one slab. GSAP flies each in from different directions,
   then they crossfade to the static <img>. */
.hero-photo-anim {
  position: absolute;
  inset: 0;
  background-image: var(--hero-photo-src);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(1.04) contrast(1.05);
  pointer-events: none;
  will-change: transform, opacity, filter, clip-path;
  z-index: 2;
}

/* Clip-path approximates each slab's silhouette in the AI photo.
   Slight overlap on edges hides anti-aliasing seams. */
.hero-photo-anim-left {
  clip-path: polygon(7% 16%, 33% 13%, 37% 91%, 4% 93%);
  transform-origin: 20% 50%;
}

.hero-photo-anim-main {
  clip-path: polygon(38% 4%, 63% 4%, 65% 96%, 36% 97%);
  transform-origin: 50% 50%;
  z-index: 3; /* main on top during fly-in for visual hierarchy */
}

.hero-photo-anim-right {
  clip-path: polygon(66% 13%, 91% 16%, 95% 93%, 63% 91%);
  transform-origin: 78% 50%;
}

/* Light sweep across the photo — animated by GSAP once during entrance */
.hero-photo-sweep {
  position: absolute;
  top: 4%;
  left: -15%;
  width: 28%;
  height: 92%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 240, 210, 0.45) 50%,
    transparent 100%);
  filter: blur(24px);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transform: translateX(-100%);
  will-change: transform, opacity;
}

/* Subtle additional glaze layer — boosts "men bóng" beyond what AI baked in */
.hero-photo-glaze {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg,
      rgba(255, 250, 240, 0.04) 0%,
      transparent 22%,
      transparent 78%,
      rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(105deg,
      transparent 0% 42%,
      rgba(255, 255, 255, 0.05) 50%,
      transparent 58% 100%);
  pointer-events: none;
  z-index: 4;
}

@media (max-width: 1200px) {
  .hero-stage-photo,
  .hero-photo-frame {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .hero-stage-photo,
  .hero-photo-frame {
    min-height: 380px;
  }
}

/* ============ Glossy glaze ("men bóng") overlay for slab faces ============ */
/* Active when the gallery has `.hero-slab-gallery-glossy` class. */

.hero-slab-gallery-glossy .gallery-face {
  background:
    /* Sky reflection at the very top — bright specular catch */
    linear-gradient(180deg,
      rgba(255, 252, 245, 0.55) 0%,
      rgba(255, 250, 240, 0.22) 6%,
      rgba(255, 250, 240, 0.05) 14%,
      transparent 24%),
    /* Diagonal wet/mirror sheen */
    linear-gradient(112deg,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(255, 255, 255, 0.12) 14%,
      transparent 28%,
      rgba(255, 255, 255, 0.32) 56%,
      rgba(255, 255, 255, 0.08) 64%,
      transparent 76%),
    /* The marble texture itself */
    var(--tile-texture) center / cover no-repeat;
  box-shadow:
    0 40px 95px rgba(0, 0, 0, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.9),         /* sharp top edge highlight */
    inset -14px 0 26px rgba(0, 0, 0, 0.26),         /* right edge in shadow */
    inset 14px 0 28px rgba(255, 255, 255, 0.1),     /* left edge soft fill */
    inset 0 -40px 60px rgba(0, 0, 0, 0.18);         /* bottom darkens for grounded feel */
}

/* Stronger animated sheen on glossy variant — feels "wet polished" */
.hero-slab-gallery-glossy .gallery-face::after {
  background: linear-gradient(104deg,
    transparent 0 30%,
    rgba(255, 255, 255, 0.55) 40%,
    rgba(255, 255, 255, 0.25) 47%,
    rgba(255, 255, 255, 0.55) 53%,
    transparent 60% 100%);
  filter: blur(1px);
}

/* Extra "reflection from sun" spot — radial highlight on each face */
.hero-slab-gallery-glossy .gallery-face::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 20%;
  width: 60%;
  height: 35%;
  background: radial-gradient(ellipse,
    rgba(255, 250, 235, 0.32) 0%,
    rgba(255, 250, 235, 0.12) 30%,
    transparent 65%);
  filter: blur(8px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

/* ============ Sunlight + cast shadows for the 3-slab gallery ============ */

/* Overhead warm sun glow — lights the gallery from above like studio key light */
.gallery-sun {
  position: absolute;
  top: -8%;
  left: 18%;
  right: 18%;
  height: 55%;
  background:
    radial-gradient(ellipse at 50% 0%,
      rgba(255, 238, 210, 0.28) 0%,
      rgba(255, 225, 180, 0.16) 16%,
      rgba(255, 210, 160, 0.06) 32%,
      transparent 56%),
    radial-gradient(ellipse at 50% 0%,
      rgba(255, 250, 235, 0.4) 0%,
      transparent 12%);
  filter: blur(6px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

/* Each slab projects its own elliptical cast shadow on the "floor" */
.gallery-floor-shadow {
  position: absolute;
  bottom: 40px;
  height: 90px;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.5) 32%,
    rgba(0, 0, 0, 0.22) 58%,
    transparent 78%);
  filter: blur(16px);
  pointer-events: none;
  z-index: 0;
}

.gallery-floor-shadow-main {
  left: 28%;
  width: 420px;
  height: 110px;
  bottom: 30px;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 32%,
    rgba(0, 0, 0, 0.22) 58%,
    transparent 80%);
}

.gallery-floor-shadow-left {
  left: 1%;
  width: 320px;
  /* Slightly offset to match the slab's tilt direction */
  transform: skewX(-6deg);
}

.gallery-floor-shadow-right {
  right: -2%;
  width: 360px;
  transform: skewX(8deg);
}

/* Floor reflective sheen — a glossy plane beneath the slabs */
.gallery-floor-sheen {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(255, 245, 220, 0.04) 30%,
      rgba(255, 245, 220, 0.08) 55%,
      rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Stronger ambient halo on the existing ::before (Codex) — keeps the floor lit */
.hero-slab-gallery::before {
  height: 240px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 240, 215, 0.06) 50%, transparent 100%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 235, 200, 0.12), transparent 65%);
  opacity: 1;
}

/* Stronger collective shadow on ::after — backup if individual shadows aren't visible */
.hero-slab-gallery::after {
  height: 120px;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.6), transparent 72%);
  filter: blur(24px);
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-sun {
    opacity: 0.7;
  }
}

/* Light sweep — animated by GSAP once across the 3 slabs during entrance */
.gallery-light-sweep {
  position: absolute;
  top: 4%;
  left: 0;
  width: 28%;
  height: 92%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 240, 210, 0.22) 25%,
    rgba(255, 240, 210, 0.55) 50%,
    rgba(255, 240, 210, 0.22) 75%,
    transparent 100%);
  filter: blur(22px);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  transform: translateX(-120%);
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-light-sweep {
    display: none;
  }
}

@media (max-width: 1200px) {
  .product-hero.hero-large {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 60px 32px;
    gap: 40px;
  }
  .hero-stage,
  .hero-slab-gallery-large {
    min-height: 560px;
  }
  .hero-pills-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-pills-strip {
    padding: 22px 24px 4px;
  }
}

@media (max-width: 760px) {
  .product-hero.hero-large {
    padding: 42px 20px;
  }
  .hero-stage,
  .hero-slab-gallery-large {
    min-height: 460px;
  }
  .hero-slab-gallery-large .gallery-slab-main {
    width: 220px;
    height: 420px;
    left: 30%;
  }
  .hero-slab-gallery-large .gallery-slab-left {
    width: 160px;
    height: 360px;
    left: 4%;
  }
  .hero-slab-gallery-large .gallery-slab-right {
    width: 180px;
    height: 380px;
    right: 0%;
  }
  .hero-pills-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-pills-inner span {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .hero-pills-inner span:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-spotlight {
    display: none;
  }
}

/* ============ Apple-style cinema hero (Calacatta Royal) ============ */

.product-hero.hero-cinema {
  display: block;
  grid-template-columns: none;
  position: relative;
  text-align: center;
  min-height: 100vh;
  padding: 36px 24px 70px;
  background: #000;
  overflow: hidden;
  align-items: initial;
  gap: 0;
}

/* Atmospheric vignette + soft top-down spotlight */
.product-hero.hero-cinema::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 220, 180, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  pointer-events: none;
}

.product-hero.hero-cinema::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.hero-code-strip {
  position: relative;
  z-index: 2;
  margin: 6px auto 26px;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.62);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(11px, 0.95vw, 13px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hero-code-strip::-webkit-scrollbar {
  display: none;
}

.hero-code-strip span {
  display: inline-block;
}

.hero-code-strip em {
  font-style: normal;
  margin: 0 14px;
  color: rgba(255, 255, 255, 0.28);
}

/* Subtle "Calacatta Royal" watermark — placed off-center, behind slab */
.hero-watermark {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translate(-58%, 0);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-weight: 300;
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
}

.hero-watermark em {
  font-style: italic;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 48px);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

.hero-watermark span {
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 110px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg,
    rgba(248, 224, 184, 0.18) 0%,
    rgba(216, 168, 116, 0.12) 50%,
    rgba(98, 61, 24, 0.06) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cinema-stage {
  position: relative;
  z-index: 3;
  margin: 30px auto 0;
  width: min(460px, 82vw);
  height: 640px;
  perspective: 2200px;
  transform-style: preserve-3d;
  pointer-events: auto;
}

.cinema-spotlight {
  position: absolute;
  top: -14%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 40%;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(255, 235, 210, 0.55) 0%,
    rgba(255, 220, 180, 0.22) 22%,
    rgba(255, 200, 150, 0.08) 45%,
    transparent 72%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  filter: blur(1px);
}

.cinema-slab {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.48) 0%,
      rgba(255, 255, 255, 0.1) 14%,
      transparent 26%,
      transparent 72%,
      rgba(0, 0, 0, 0.55) 100%),
    var(--tile-texture, linear-gradient(180deg, #fcfbf8, #ede9e2)) center / cover no-repeat;
  box-shadow:
    0 110px 260px rgba(0, 0, 0, 0.95),
    0 50px 120px rgba(0, 0, 0, 0.55),
    0 8px 40px rgba(255, 200, 150, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  /* Tilted 20° on X (top toward viewer) + 8° on Y (right side shows depth)
     Combined gives visible top edge + right edge thickness. */
  transform: perspective(2000px) rotateY(-8deg) rotateX(-20deg);
  transform-origin: center bottom;
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 3;
}

/* Static glossy reflection — like light caught by polished glaze (men bóng) */
.cinema-slab-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg,
    transparent 0% 30%,
    rgba(255, 255, 255, 0.32) 40%,
    rgba(255, 255, 255, 0.14) 48%,
    transparent 56% 100%);
  border-radius: inherit;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

.cinema-slab-glow {
  /* Top edge under the studio light — the rectified edge catches the brightest light */
  position: absolute;
  top: -3px;
  left: 6px;
  right: 6px;
  height: 12px;
  background: linear-gradient(180deg,
    rgba(255, 248, 230, 1) 0%,
    rgba(255, 240, 210, 0.85) 35%,
    rgba(255, 220, 180, 0.4) 70%,
    transparent 100%);
  border-radius: 5px 5px 0 0;
  filter: blur(2px);
  box-shadow: 0 -4px 30px rgba(255, 230, 200, 0.65);
  z-index: 5;
  pointer-events: none;
}

/* Light sweep overlay — animated by GSAP one-time during entrance, then static. */
.cinema-slab-sweep {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 245, 215, 0.4) 30%,
    rgba(255, 245, 215, 0.7) 50%,
    rgba(255, 245, 215, 0.4) 70%,
    transparent 100%);
  border-radius: inherit;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  z-index: 4;
  transform: translateY(-100%);
  filter: blur(6px);
}

/* 3D edge faces — visible thickness on top + right sides */
.cinema-slab-edge {
  position: absolute;
  background: linear-gradient(180deg, #f3e2c4 0%, #c4a474 35%, #6a4d2a 100%);
  pointer-events: none;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
}

.cinema-slab-edge-top {
  /* Top edge — the rectified cut visible due to slab tilt */
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  transform: rotateX(90deg);
  transform-origin: bottom center;
  background: linear-gradient(180deg,
    #fff5dc 0%,
    #e6c79a 35%,
    #b58e5e 75%,
    #7a5933 100%);
  box-shadow:
    inset 0 -2px 6px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cinema-slab-edge-right {
  /* Right edge — visible due to slab rotateY(-8deg) */
  top: 0;
  right: 0;
  width: 14px;
  height: 100%;
  transform: rotateY(90deg);
  transform-origin: left center;
  background: linear-gradient(180deg,
    #d2b88e 0%,
    #a48455 50%,
    #5f4429 100%);
  box-shadow:
    inset -2px 0 6px rgba(0, 0, 0, 0.55),
    inset 1px 0 0 rgba(255, 255, 255, 0.25);
}

.cinema-slab-shadow {
  /* Floor shadow under the tilted slab */
  position: absolute;
  bottom: -36px;
  left: 6%;
  right: 6%;
  height: 90px;
  background: radial-gradient(ellipse at center top, rgba(0, 0, 0, 0.85), transparent 65%);
  filter: blur(22px);
  z-index: 1;
  pointer-events: none;
}

.cinema-actions {
  position: relative;
  z-index: 4;
  margin: 68px auto 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.cinema-actions a {
  color: #2383ff;
  font-weight: 500;
}

.cinema-disclaimer {
  position: relative;
  z-index: 4;
  display: block;
  color: rgba(255, 255, 255, 0.42);
  font-size: 14px;
}

@media (max-width: 1200px) {
  .product-hero.hero-cinema {
    padding: 30px 20px 60px;
  }
  .cinema-stage {
    width: min(380px, 86vw);
    height: 520px;
    margin-top: 24px;
  }
}

@media (max-width: 760px) {
  .product-hero.hero-cinema {
    min-height: 92vh;
    padding: 24px 16px 50px;
  }
  .hero-code-strip {
    letter-spacing: 0.18em;
    font-size: 10px;
    margin-bottom: 18px;
  }
  .hero-code-strip em {
    margin: 0 6px;
  }
  .hero-watermark {
    top: 24%;
    transform: translate(-52%, 0);
  }
  .hero-watermark em {
    font-size: 18px;
  }
  .hero-watermark span {
    font-size: clamp(40px, 11vw, 70px);
  }
  .cinema-stage {
    width: min(280px, 76vw);
    height: 420px;
    margin-top: 20px;
  }
  .cinema-actions {
    flex-direction: column;
    gap: 14px;
    margin-top: 48px;
  }
  /* Hide right edge on mobile (less visible at narrow width) */
  .cinema-slab-edge-right {
    display: none;
  }
}

.admin-page {
  background: #f5f5f7;
  color: var(--text);
}

.admin-shell {
  max-width: 1540px;
  margin: 0 auto;
  padding: 52px 28px 90px;
}

.admin-login,
.admin-dashboard {
  border: 1px solid rgba(20, 24, 32, 0.1);
  border-radius: 8px;
  background: white;
  box-shadow: 0 24px 70px rgba(17, 19, 24, 0.08);
}

.admin-login {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 40px;
  align-items: center;
  padding: 52px;
}

.admin-eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0;
}

.admin-login h1,
.admin-topbar h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 400;
}

.admin-login p,
.admin-preview small {
  color: var(--muted);
  line-height: 1.6;
}

.admin-login form,
.admin-form fieldset,
.admin-preview {
  display: grid;
  gap: 18px;
}

.admin-login label,
.admin-form label {
  display: grid;
  gap: 8px;
  color: #30343b;
  font-weight: 600;
}

.admin-login input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(20, 24, 32, 0.14);
  border-radius: 8px;
  background: white;
  padding: 0 14px;
}

.admin-form textarea {
  min-height: 110px;
  padding: 14px;
  resize: vertical;
}

/* Helper text under fieldset legend explaining each section */
.admin-form .admin-hint {
  margin: -6px 0 8px;
  padding: 10px 14px;
  border-left: 3px solid var(--blue);
  background: rgba(0, 102, 255, 0.05);
  border-radius: 0 6px 6px 0;
  color: #4a5060;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

/* Small spec hint after each label (e.g. "JPG, 1600×900") */
.admin-form label small {
  display: block;
  margin-top: -2px;
  color: #828b99;
  font-size: 12px;
  font-weight: 400;
}

/* Multi-select checkbox row (e.g. nhóm sản phẩm) */
.admin-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 24, 32, 0.14);
  border-radius: 8px;
  background: white;
}
.admin-checkbox-row label {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 400 !important;
  color: #30343b;
  cursor: pointer;
  margin: 0 !important;
}
.admin-checkbox-row input[type="checkbox"] {
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}

/* Boxed group for each scene slot (image + title + caption) */
.admin-scene-block {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  border: 1px dashed rgba(20, 24, 32, 0.15);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.015);
}

.admin-scene-block strong {
  font-size: 14px;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  padding: 34px 38px;
  border-bottom: 1px solid rgba(20, 24, 32, 0.1);
}

.admin-topbar > div:last-child {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 26px;
  padding: 28px;
}

.admin-form {
  display: grid;
  gap: 24px;
}

.admin-form fieldset {
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(20, 24, 32, 0.1);
  border-radius: 8px;
  background: #fbfbfc;
  padding: 24px;
}

.admin-form legend {
  padding: 0 8px;
  font-weight: 800;
}

.admin-form .full {
  grid-column: 1 / -1;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.admin-preview {
  align-self: start;
  position: sticky;
  top: 24px;
  border: 1px solid rgba(20, 24, 32, 0.1);
  border-radius: 8px;
  background: white;
  padding: 22px;
}

.admin-preview h2 {
  font-size: 34px;
}

.admin-preview img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* Admin tabs (Products / Articles) */
.admin-tabs {
  display: flex;
  gap: 0;
  padding: 0 28px;
  border-bottom: 1px solid rgba(20, 24, 32, 0.1);
  background: white;
}
.admin-tab {
  padding: 14px 22px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all 150ms ease;
}
.admin-tab:hover {
  color: var(--text);
}
.admin-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* SEO preview in article admin */
.seo-preview {
  padding: 12px 0;
  font-family: arial, sans-serif;
}
.seo-preview-url {
  color: #4d5156;
  font-size: 12px;
  margin-bottom: 4px;
}
.seo-preview-title {
  color: #1a0dab;
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 4px;
  cursor: pointer;
}
.seo-preview-title:hover {
  text-decoration: underline;
}
.seo-preview-desc {
  color: #4d5156;
  font-size: 13px;
  line-height: 1.4;
}

.article-preview-excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-style: italic;
}

/* Admin dashboard home page */
.admin-home .admin-topbar a {
  color: var(--blue);
  font-weight: 500;
}

.admin-home-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  padding: 26px 38px 0;
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: linear-gradient(180deg, #fbfbfc, #f4f4f6);
  border: 1px solid rgba(20, 24, 32, 0.08);
  border-radius: 12px;
}
.stat-num {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
}
.stat-label {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.admin-home-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  padding: 26px 38px;
}
.admin-menu-card {
  display: block;
  padding: 30px 28px;
  background: white;
  border: 1px solid rgba(20, 24, 32, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 220ms ease;
}
.admin-menu-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(0, 87, 217, 0.08);
}
.menu-icon {
  font-size: 36px;
  margin-bottom: 10px;
}
.admin-menu-card h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
}
.admin-menu-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.menu-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
}
.menu-link em {
  font-style: normal;
  margin-left: 4px;
}

.admin-home-tips {
  margin: 0 38px 32px;
  padding: 22px 26px;
  background: #fff8ed;
  border: 1px solid rgba(208, 167, 91, 0.2);
  border-left: 4px solid #c9a06e;
  border-radius: 10px;
}
.admin-home-tips h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #4d3c1e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-home-tips ul {
  margin: 0;
  padding-left: 20px;
  color: #4d3c1e;
  font-size: 14px;
  line-height: 1.7;
}
.admin-home-tips a {
  color: #a06b34;
  font-weight: 600;
}

/* Subpage breadcrumb in topbar */
.admin-topbar .admin-eyebrow a {
  color: var(--blue);
  text-decoration: none;
}
.admin-topbar .admin-eyebrow a:hover {
  text-decoration: underline;
}

.admin-url-preview {
  display: block;
  padding: 8px 12px;
  background: #f5f5f7;
  border-radius: 6px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  color: #2a2f37;
  word-break: break-all;
}

@media (max-width: 760px) {
  .admin-home-stats,
  .admin-home-menu,
  .admin-home-tips {
    padding-left: 18px;
    padding-right: 18px;
  }
  .admin-home-tips {
    margin: 0 18px 24px;
  }
}

.lead-modal {
  width: min(460px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  padding: 0;
}

.lead-modal::backdrop {
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
}

.lead-modal form {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 34px;
}

.lead-modal h2 {
  font-size: 34px;
}

.lead-modal p {
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.5;
}

.lead-modal label {
  display: grid;
  gap: 8px;
  color: #343841;
}

.lead-modal input {
  min-height: 52px;
  border: 1px solid rgba(20, 24, 32, 0.14);
  border-radius: 8px;
  padding: 0 14px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
}

.modal-close::before,
.modal-close::after {
  position: absolute;
  top: 14px;
  left: 5px;
  width: 20px;
  height: 2px;
  transform: rotate(45deg);
  background: #20242a;
  content: "";
}

.modal-close::after {
  transform: rotate(-45deg);
}

@media (max-width: 1200px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 0 22px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    order: 3;
    padding-bottom: 10px;
  }

  .main-nav a {
    padding: 0 0 10px;
  }

  .category-hero,
  .product-hero,
  .lifestyle-panel,
  .video-panel,
  .viewer-card {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .style-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .size-rail {
    overflow-x: auto;
    display: flex;
  }

  .size-rail button {
    min-width: 170px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 70px;
  }

  .header-actions {
    gap: 8px;
  }

  .contact-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  .message-strip {
    padding: 10px 18px;
    text-align: center;
    font-size: 14px;
  }

  .home-hero,
  .category-hero,
  .product-hero {
    padding: 42px 20px;
  }

  .home-copy h1,
  .category-hero h1,
  .product-copy h1 {
    font-size: 52px;
  }

  .hero-actions,
  .dark-actions {
    flex-direction: column;
    gap: 14px;
  }

  .slab-showcase {
    min-height: 360px;
  }

  .product-grid,
  .style-grid,
  .feature-grid {
    grid-template-columns: 1fr;
    padding: 0 18px;
  }

  .section-title-row,
  .filter-row {
    margin-right: 18px;
    margin-left: 18px;
  }

  .home-feature,
  .home-feature-large,
  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .product-subnav {
    top: 70px;
    overflow-x: auto;
    padding: 0 18px;
  }

  .product-subnav nav {
    gap: 22px;
    min-width: 620px;
  }

  .viewer-card,
  .lifestyle-panel,
  .video-panel {
    margin-right: 16px;
    margin-left: 16px;
    padding: 28px;
  }

  .hero-3d-stage {
    min-height: 520px;
  }

  .hero-slab-gallery {
    min-height: 520px;
  }

  .gallery-slab-main {
    left: 36%;
    width: 210px;
    height: 410px;
  }

  .gallery-slab-left {
    left: 6%;
    width: 150px;
    height: 330px;
  }

  .gallery-slab-right {
    right: 1%;
    width: 160px;
    height: 360px;
  }

  .hero-3d-orbit {
    width: 100%;
    height: 500px;
  }

  .tile-3d {
    width: 230px;
    height: 430px;
  }

  .tile-secondary {
    width: 180px;
    height: 350px;
  }

  .hero-3d-caption {
    right: 20px;
    left: 20px;
    text-align: center;
  }
}

@media (max-width: 1400px) {
  .category-page .site-header {
    grid-template-columns: 210px 1fr 250px;
    padding: 0 34px;
  }

  .category-page .main-nav {
    gap: 28px;
    font-size: 16px;
  }

  .category-page .category-hero {
    grid-template-columns: 1fr 600px;
  }

  .hero-slab-1 {
    right: 360px;
  }

  .hero-slab-2 {
    right: 288px;
  }

  .hero-slab-3 {
    right: 172px;
  }

  .hero-slab-4 {
    right: 44px;
  }

  .hero-floor-slab {
    right: 320px;
  }
}

@media (max-width: 1200px) {
  .category-page .site-header {
    grid-template-columns: 1fr auto;
    min-height: 70px;
    padding: 0 24px;
  }

  .category-page .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    order: 3;
    padding-bottom: 10px;
  }

  .category-page .category-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 40px;
  }

  .category-hero-stage {
    height: 260px;
  }

  .category-page .size-rail a {
    min-width: 170px;
  }
}

@media (max-width: 760px) {
  .category-page .site-header {
    min-height: 70px;
    padding: 0 16px;
  }

  .category-page .brand {
    font-size: 28px;
  }

  .category-page .header-actions {
    gap: 10px;
  }

  .category-page .header-buy {
    min-width: 104px;
    min-height: 40px;
    font-size: 14px;
  }

  .icon-button {
    width: 28px;
    height: 38px;
  }

  .heart-icon::before {
    font-size: 28px;
  }

  .category-page .category-hero {
    padding: 42px 18px 36px;
  }

  .category-page .category-hero h1 {
    font-size: 58px;
  }

  .category-page .category-hero p {
    font-size: 18px;
  }

  .category-hero-stage {
    height: 220px;
    margin-right: -18px;
    margin-left: -18px;
    margin-top: 16px;
    overflow: hidden;
  }

  .category-hero-image {
    height: 220px;
    margin: 18px -18px 0;
  }

  .category-hero-image img {
    object-position: center right;
  }

  .category-hero-image::after {
    background: linear-gradient(180deg, rgba(248, 249, 251, 0.88) 0%, rgba(248, 249, 251, 0.22) 38%, transparent 100%);
  }

  .hero-display-slab {
    width: 94px;
    height: 174px;
  }

  .hero-slab-1 {
    right: 228px;
    width: 104px;
    height: 184px;
  }

  .hero-slab-2 {
    right: 172px;
    height: 180px;
  }

  .hero-slab-3 {
    right: 88px;
    width: 102px;
    height: 174px;
  }

  .hero-slab-4 {
    right: 8px;
    width: 96px;
    height: 174px;
  }

  .hero-floor-slab {
    right: 194px;
    width: 210px;
    height: 64px;
  }

  .category-page .size-rail {
    margin-right: 14px;
    margin-left: 14px;
  }

  .category-page .size-rail a {
    min-width: 138px;
  }

  .category-page .product-grid {
    padding: 0 16px;
  }

  .category-page .filter-row {
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

/* ============================================================ */
/* MOBILE OPTIMIZATIONS — Full responsive pass                  */
/* Hamburger menu + 44px tap targets + layout stacks            */
/* ============================================================ */

/* Hamburger toggle (injected by app.js into every header) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--text);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 220ms ease, opacity 220ms ease;
}
.site-header[data-theme="dark"] .nav-toggle { color: white; }

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============= ≤760px: MOBILE LAYOUT ============= */
@media (max-width: 760px) {
  /* --- Header --- */
  .site-header {
    grid-template-columns: auto auto 1fr !important;
    gap: 8px;
    padding: env(safe-area-inset-top, 0) 14px 0 !important;
    min-height: 60px;
  }
  .brand {
    font-size: 20px !important;
    grid-column: 1;
    order: 1;
  }
  .nav-toggle {
    display: inline-flex;
    grid-column: 2;
    order: 2;
  }
  .header-actions {
    grid-column: 3;
    justify-content: flex-end;
    order: 3;
  }
  .header-actions .icon-button { display: none; } /* hide search + heart */
  .header-actions .contact-button.zalo,
  .header-actions .contact-button.messenger { display: none; } /* hide social buttons */
  .header-actions .buy-button {
    min-width: 0;
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
  }

  /* Nav slide-down drawer */
  .main-nav {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 60px) !important;
    grid-column: auto !important;
    order: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 18px 22px 80px !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    transform: translateY(calc(-100% - 80px));
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 49 !important; /* below site-header (z-index 50) so header always visible */
    pointer-events: none;
    overflow-y: auto;
    overflow-x: hidden;
    border-top: 1px solid rgba(20, 24, 32, 0.08);
  }
  .site-header.nav-open .main-nav { pointer-events: auto; }
  .site-header[data-theme="dark"] .main-nav {
    background: rgba(10, 14, 21, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
  }
  .site-header.nav-open .main-nav {
    transform: translateY(0);
  }
  .main-nav a {
    padding: 18px 4px !important;
    font-size: 19px;
    border-bottom: 1px solid rgba(20, 24, 32, 0.06);
    white-space: normal;
    text-align: left;
  }
  .site-header[data-theme="dark"] .main-nav a {
    border-color: rgba(255, 255, 255, 0.08);
  }
  .main-nav a.active::after,
  .main-nav a:hover::after { display: none; }
  body.nav-overlay-on { overflow: hidden; }

  /* --- Touch targets 44px+ --- */
  button,
  .buy-button,
  .filter-row button,
  .size-rail a,
  .size-rail button,
  .filter-pill {
    min-height: 44px;
  }
  /* carousel-arrow stays compact 30px on mobile (handled in highlights media block above) */
  .icon-button {
    width: 44px;
    height: 44px;
  }

  /* --- Body / typography --- */
  body { font-size: 15px; }
  input, textarea, select { font-size: 16px !important; } /* iOS no-zoom on focus */

  /* --- Product subnav → BOTTOM TAB BAR on mobile --- */
  /* Hero appears first; subnav floats at bottom of viewport.
     Brand name "Calacatta Royal 600x1200" moves to a small line below nav links. */
  .product-subnav {
    position: fixed !important;
    top: auto !important;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding: 6px 12px 8px;
    min-height: auto;
    border-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(7, 8, 10, 0.94);
    backdrop-filter: blur(16px);
    z-index: 50;
  }
  .product-subnav nav {
    width: 100%;
    min-width: 0 !important; /* override earlier 620px rule */
    gap: 0;
    overflow-x: visible;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
  }
  .product-subnav a {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    font-size: 12px;
    padding: 10px 4px;
    min-width: 0;
    color: rgba(255, 255, 255, 0.72);
  }
  .product-subnav a.sub-active {
    color: var(--blue);
    font-weight: 600;
  }
  .product-subnav a.sub-active::after {
    bottom: 4px;
    height: 2px;
  }
  /* Hide Mua hàng button in subnav on mobile (it's in hero already) */
  .product-subnav .buy-button.small {
    display: none;
  }
  /* Brand name — small + at the BOTTOM of the bar (per user request) */
  .product-subnav strong {
    order: 2;
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.04em;
    text-align: center;
    margin-top: 2px;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  /* Push page content up so bottom bar doesn't cover the last section */
  .product-page main {
    padding-bottom: 72px;
  }
  .screen-product {
    padding-bottom: 0;
  }

  /* --- Product hero stack: IMAGE FIRST (Apple-style) then compact text --- */
  .product-hero {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    min-height: auto !important;
    padding: 14px 16px 24px !important;
    gap: 18px !important;
  }
  .product-hero .hero-stage,
  .product-hero .hero-stage-photo {
    order: 1 !important;   /* image up top */
  }
  .product-hero .product-copy {
    order: 2 !important;   /* text below */
  }
  .product-copy h1 {
    font-size: 32px !important;
    line-height: 1.06;
    margin-top: 0 !important;
  }
  .product-copy p {
    font-size: 15px !important;
    margin-top: 10px !important;
    color: rgba(255, 255, 255, 0.78);
  }
  .product-meta {
    gap: 6px !important;
    font-size: 11px;
    margin-top: 12px !important;
    flex-wrap: wrap;
  }
  .product-meta span:not(:last-child)::after { margin-left: 6px; }
  .dark-actions {
    margin-top: 16px !important;
    gap: 8px !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .dark-actions .buy-button {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }
  /* Hide redundant in-hero anchor links — same items already in bottom tab bar */
  .dark-actions a { display: none !important; }
  /* Disclaimer can stay but smaller */
  [data-hero-disclaimer] {
    font-size: 12px !important;
    margin-top: 10px !important;
    opacity: 0.6;
  }
  .feature-pills {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 16px !important;
  }
  .feature-pills span {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
  .pill-icon { width: 16px !important; height: 16px !important; }
  /* Hero photo — show FULL image (natural aspect ratio, no crop) */
  .hero-stage-photo,
  .hero-photo-frame {
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    aspect-ratio: auto !important;
    border-radius: 14px;
    overflow: hidden;
    display: block !important;
  }
  .hero-photo {
    display: block;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center;
  }

  /* --- Highlights carousel --- */
  .highlights-section {
    padding: 24px 0 40px;
    margin: 16px auto 24px;
  }
  .highlights-header {
    padding: 0 18px;
    margin-bottom: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .highlights-header h2 { font-size: 26px; }
  .highlight-card {
    flex: 0 0 86vw;
    border-radius: 12px;
  }
  .highlights-track {
    padding: 0 7vw !important;
    scroll-padding-inline: 7vw !important;
    gap: 12px;
  }
  .highlight-caption {
    padding: 18px 18px 22px !important;
  }
  .highlight-caption h3 { font-size: 18px !important; }
  .highlight-caption p { font-size: 13px !important; }

  /* --- 3D viewer mobile (stacked) --- */
  .viewer-section { margin: 14px auto; }
  .viewer-card {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 14px;
    padding: 22px 16px !important;
    min-height: auto !important;
  }
  .viewer-copy h2 { font-size: 24px !important; }
  .viewer-copy p { font-size: 13px !important; }
  .viewer-controls {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }
  .viewer-controls button {
    flex: 1 1 calc(50% - 4px);
    min-width: 0 !important;
    min-height: 44px;
    padding: 0 14px !important;
    font-size: 13px;
    text-align: center;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
  }
  .viewer-controls button.active {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
  }
  .viewer-stage {
    min-height: 320px !important;
  }
  .viewer-stage.has-canvas { min-height: 320px; }
  .viewer-specs {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .viewer-specs span {
    min-height: 48px !important;
    padding: 0 14px !important;
    font-size: 13px;
  }
  .zoom-controls {
    right: 12px !important;
    bottom: 12px !important;
  }
  .rotate-hint { font-size: 13px; bottom: 14px !important; }

  /* --- Style grid (vertical full-width on mobile) --- */
  .style-section { margin: 18px auto; padding: 0 16px; }
  .style-grid {
    gap: 28px !important;
  }
  .style-grid article { border-radius: 12px; }
  .style-grid strong {
    margin: 18px 18px 6px !important;
    font-size: 22px !important;
  }
  .style-grid strong span {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
  }
  .style-grid p {
    margin: 0 18px 20px !important;
    font-size: 14px !important;
  }
  .style-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 14px !important;
  }
  .style-heading h2 { font-size: 24px !important; }
  .style-heading p { font-size: 13px !important; }

  /* --- Footer --- */
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 36px 22px 24px !important;
  }

  /* --- Modal (full-screen feel) --- */
  .lead-modal {
    width: calc(100vw - 20px) !important;
    max-height: 92vh;
    border-radius: 12px;
  }
  .lead-modal form { padding: 22px !important; gap: 14px !important; }
  .lead-modal h2 { font-size: 22px !important; }
  .lead-modal input { min-height: 48px !important; }

  /* --- Home hero --- */
  .home-hero {
    padding: 28px 0 0 !important;
  }
  .home-copy {
    padding: 0 18px 24px !important;
  }
  .home-copy h1 {
    font-size: 42px !important;
  }
  .home-copy p {
    font-size: 16px !important;
    margin-top: 14px !important;
  }
  .home-copy p span { display: inline; }
  .hero-actions {
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 26px !important;
  }
  .hero-actions .buy-button,
  .hero-actions .outline-link {
    width: 100%;
    justify-content: center;
    min-height: 50px;
  }

  /* --- Category hero --- */
  .category-hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding: 28px 18px 22px !important;
    gap: 18px;
  }
  .category-hero h1 { font-size: 42px !important; }
  .category-hero p { font-size: 16px !important; }
  .category-hero-photo,
  .category-hero-image {
    height: 200px !important;
  }
  .category-hero-image img,
  .category-hero-photo img {
    border-radius: 8px;
  }

  /* --- Size rail --- */
  .size-rail {
    display: flex !important;
    overflow-x: auto;
    margin: -8px 14px 0 !important;
    padding: 6px 10px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .size-rail button,
  .size-rail a {
    flex: 0 0 auto;
    min-width: 120px;
    scroll-snap-align: start;
    min-height: 110px;
    font-size: 13px;
    padding: 8px;
  }

  /* --- Section title rows --- */
  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 0 18px;
    margin: 18px auto 12px !important;
  }
  .section-title-row h2 { font-size: 24px !important; }

  /* --- Filter row --- */
  .filter-row {
    overflow-x: auto;
    padding: 0 18px 4px !important;
    margin: 16px 0 0 !important;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    width: 100vw;
    box-sizing: border-box;
  }
  .filter-row button {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 44px;
    font-size: 13px;
    padding: 0 18px;
  }
  .filter-row .filter-icon {
    width: 50px;
    height: 44px;
  }

  /* --- Breadcrumb --- */
  .breadcrumb {
    padding: 12px 18px 0;
    font-size: 12px;
  }

  /* --- Blog hero --- */
  .blog-hero h1 { font-size: 36px !important; }

  /* --- Admin --- */
  .admin-shell { padding: 20px 14px 50px; }
  .admin-login {
    grid-template-columns: 1fr !important;
    padding: 24px 20px !important;
  }
  .admin-grid {
    grid-template-columns: 1fr !important;
    padding: 14px !important;
  }
  .admin-form fieldset {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
  }
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
    padding: 20px 16px !important;
  }
  .admin-tabs {
    padding: 0 14px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  .admin-tab { flex-shrink: 0; }
  .admin-home-stats,
  .admin-home-menu {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .admin-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-actions button,
  .admin-actions a {
    width: 100%;
    text-align: center;
  }

  /* --- Article body --- */
  .article-body {
    padding: 22px 16px 36px;
  }
  .article-header h1 { font-size: 28px !important; }
  .article-body section h2 { font-size: 22px !important; }
  .article-body section p { font-size: 15px !important; }

  /* --- Hide hover effects on touch --- */
  @media (hover: none) {
    .product-card:hover,
    .article-card:hover,
    .article-related-card:hover,
    .home-feature:hover,
    .admin-menu-card:hover,
    .related-product:hover {
      transform: none !important;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    }
    .product-card:hover .article-card-image img {
      transform: none !important;
    }
  }
}

/* ============= ≤480px: very small phones ============= */
@media (max-width: 480px) {
  /* Home/category keep larger hero */
  .home-copy h1,
  .category-hero h1 {
    font-size: 36px !important;
  }
  /* Product hero stays compact — image first then small text */
  .product-copy h1 { font-size: 28px !important; }
  .product-copy p { font-size: 14px !important; }
  .article-header h1 { font-size: 24px !important; }
  .highlight-caption h3 { font-size: 17px !important; }
  .highlight-card { flex: 0 0 90vw; }
  .feature-pills { grid-template-columns: 1fr 1fr !important; }
  .feature-pills span { font-size: 12px !important; padding: 7px 10px !important; }
  .viewer-controls button { flex: 1 1 100%; }
  .product-hero { padding: 12px 14px 20px !important; }
  /* keep hero photo full-aspect on tiny phones too */
  .hero-stage-photo,
  .hero-photo-frame {
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    aspect-ratio: auto !important;
  }
}

/* ============================================================ */
/* Empty state for size pages without products yet              */
/* ============================================================ */
.empty-state {
  display: grid;
  place-items: center;
  gap: 20px;
  margin: 40px auto;
  padding: 80px 32px;
  max-width: 720px;
  border: 1px dashed rgba(20, 24, 32, 0.18);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.015);
  text-align: center;
}
.empty-state-icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 102, 255, 0.02));
  color: var(--blue);
  font-size: 36px;
}
.empty-state h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.empty-state p {
  margin: 0;
  max-width: 480px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.empty-state-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.empty-state-cta .buy-button {
  min-height: 48px;
  padding: 0 22px;
}
.empty-state-cta .outline-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(20, 24, 32, 0.16);
  border-radius: 999px;
  background: white;
  color: #14181f;
  font-weight: 500;
  text-decoration: none;
  transition: all 200ms ease;
}
.empty-state-cta .outline-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
@media (max-width: 760px) {
  .empty-state {
    margin: 24px 16px;
    padding: 56px 22px;
  }
  .empty-state h2 { font-size: 24px; }
  .empty-state p { font-size: 14px; }
  .empty-state-cta { flex-direction: column; width: 100%; }
  .empty-state-cta > * { width: 100%; justify-content: center; }
}

/* ============================================================ */
/* Anti-copy protection — images & videos                       */
/* Toast hiện ra khi user right-click/save/drag ảnh             */
/* ============================================================ */

/* Chặn kéo & select trên mọi ảnh + video (admin trừ ra qua body class) */
body:not(.admin-page) img,
body:not(.admin-page) video {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* iOS long-press menu */
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 360px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(7, 8, 10, 0.94);
  backdrop-filter: blur(20px);
  color: white;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}
.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.copy-toast strong {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.copy-toast span {
  color: rgba(255, 255, 255, 0.75);
}

/* Mobile — toast sát đáy hơn (tránh tab bar) */
@media (max-width: 760px) {
  .copy-toast {
    left: 16px;
    right: 16px;
    max-width: none;
    transform: translateY(20px);
    bottom: 96px; /* nằm trên bottom tab bar product page */
  }
  .copy-toast.is-visible {
    transform: translateY(0);
  }
}
