:root {
  --canon-red: #c40012;
  --ink: #151515;
  --muted: #5d626b;
  --line: #e6e2dc;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --aqua: #0e7886;
  --gold: #b87918;
  --shadow: 0 18px 48px rgba(20, 20, 20, 0.12);
  --radius: 8px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

img {
  display: block;
  max-width: 100%;
}

.section {
  padding-inline: clamp(20px, 10vw, 220px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, 100%);
  min-height: 72px;
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 32px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: auto;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: clamp(12px, 3vw, 30px);
  color: #333;
  font-weight: 650;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-links a,
.language-switch button,
.btn,
.text-link {
  min-height: 44px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--canon-red);
}

.nav-item.has-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  min-width: 160px;
  margin-top: 6px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(21, 21, 21, 0.12);
  list-style: none;
  z-index: 30;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
}

.nav-caret {
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.nav-item.has-dropdown:hover .nav-caret,
.nav-item.has-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  display: flex;
}

.nav-dropdown li a {
  display: flex;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  white-space: nowrap;
  color: #333;
}

.nav-dropdown li a:hover,
.nav-dropdown li a:focus-visible {
  background: var(--theme-soft, rgba(196, 0, 18, 0.08));
  color: var(--canon-red);
}

.language-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}

.language-switch button {
  min-width: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.language-switch button.active {
  background: var(--ink);
  color: #fff;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100dvh - 72px);
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.88) 46%, rgba(251, 250, 247, 0.5) 100%),
    url("https://s7d1.scene7.com/is/image/canon/5539C001_selphy-cp1500-black_primary?fmt=webp-alpha&hei=1200&wid=1200")
      right 12% center / min(54vw, 640px) no-repeat,
    #f7f1e9;
}

.hero-product-list {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  bottom: clamp(80px, 12vw, 140px);
  display: flex;
  flex-direction: row;
  gap: 8px;
  z-index: 2;
}

.hero-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(20, 20, 20, 0.08);
}

.hero-product-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-product-model {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
}

.hero-product-color {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  padding-block: clamp(72px, 12vh, 128px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--canon-red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.product-card h3 {
  font-size: clamp(1.42rem, 2.2vw, 1.8rem);
}

.hero-copy,
.section-heading p,
.about-copy p,
.footer-intro p {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.hero-copy {
  width: min(580px, 100%);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: safe center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
}

.btn.primary {
  background: var(--canon-red);
  color: #fff;
  box-shadow: 0 12px 24px rgba(196, 0, 18, 0.22);
}

.btn.secondary {
  border-color: rgba(21, 21, 21, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.btn:focus-visible,
.text-link:focus-visible,
.language-switch button:focus-visible,
.nav-links a:focus-visible {
  outline: 3px solid rgba(14, 120, 134, 0.5);
  outline-offset: 3px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(520px, 100%);
}

.hero-metrics div {
  padding: 16px;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.92rem;
}

.products-section,
.about-section,
.ink-section,
.community-section,
.site-footer {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-block: clamp(58px, 9vw, 104px);
}

.ink-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(320px, 46vw, 460px);
  margin: 36px 0 20px;
  overflow: hidden;
  isolation: isolate;
}

.ink-carousel::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 28%, rgba(31, 63, 115, 0.55), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(238, 182, 196, 0.6), transparent 45%),
    radial-gradient(circle at 45% 85%, rgba(7, 81, 91, 0.45), transparent 48%),
    radial-gradient(circle at 75% 65%, rgba(196, 0, 18, 0.35), transparent 42%),
    radial-gradient(circle at 20% 75%, rgba(184, 121, 24, 0.4), transparent 42%),
    linear-gradient(135deg, #e9e5df, #cfc9bf);
  filter: blur(38px) saturate(1.15);
  transform: scale(1.05);
}

.ink-carousel-track {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.ink-slide {
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 50%;
  width: min(560px, 78%);
  cursor: pointer;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.ink-slide.active {
  cursor: default;
}

.ink-slide-card {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 0;
  background: var(--surface);
  box-shadow: 0 20px 45px rgba(21, 21, 21, 0.15);
}

.ink-slide-visual {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 16px;
}

div.ink-slide-visual {
  opacity: 0.85;
}

.ink-slide-swatch {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 650;
}

.ink-slide-swatch i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.ink-carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: rgba(120, 116, 108, 0.35);
  color: #3d3d3d;
  font-size: 1.4rem;
  transform: translateY(-50%);
  cursor: pointer;
}

.ink-carousel-nav:hover,
.ink-carousel-nav:focus-visible {
  background: rgba(120, 116, 108, 0.55);
  color: var(--ink);
}

.ink-carousel-prev {
  left: clamp(4px, 4vw, 32px);
}

.ink-carousel-next {
  right: clamp(4px, 4vw, 32px);
}

.ink-carousel-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto 32px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(120, 116, 108, 0.35);
}

.ink-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 50%;
  border: 1px solid rgba(61, 61, 61, 0.4);
  background: transparent;
  cursor: pointer;
}

.ink-dot.active {
  background: #fff;
  border-color: #fff;
}

.ink-info {
  width: min(560px, 100%);
  margin: 0 auto;
  text-align: center;
}

.ink-detail-list {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
  text-align: left;
}

.ink-detail-list dt {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.ink-detail-list dd {
  margin: 0;
  font-weight: 600;
}

.products-section,
.ink-section,
.community-section {
  width: min(1440px, 100%);
  padding-block: clamp(42px, 7vw, 78px);
}

.community-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0 auto 44px;
  color: var(--ink);
}

.community-heading svg {
  flex-shrink: 0;
  color: var(--ink);
}

.community-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}

.community-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.community-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--line);
}

.community-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}

.community-username {
  font-weight: 700;
  font-size: 0.95rem;
}

.community-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.tag-pill-inspic {
  background: rgba(238, 182, 196, 0.45);
  color: #a3134a;
}

.tag-pill-selphy {
  background: rgba(14, 120, 134, 0.16);
  color: #0e7886;
}

.tag-pill-pr {
  background: rgba(93, 98, 107, 0.14);
  color: var(--muted);
}

@media (max-width: 900px) {
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .community-grid {
    grid-template-columns: 1fr;
  }
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: end;
  margin-bottom: 26px;
}

.section-heading > p {
  margin-bottom: 8px;
}

.title-stack .eyebrow {
  margin-bottom: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  --selected-color: var(--theme);
  --theme: var(--canon-red);
  --theme-soft: rgba(196, 0, 18, 0.12);
  --theme-deep: #86000b;
  cursor: pointer;
}

.product-card.theme-gold {
  --theme: #b87918;
  --theme-soft: rgba(184, 121, 24, 0.14);
  --theme-deep: #6f4308;
}

.product-card.theme-teal {
  --theme: #0e7886;
  --theme-soft: rgba(14, 120, 134, 0.14);
  --theme-deep: #07515b;
}

.product-card.theme-blue {
  --theme: #355f9f;
  --theme-soft: rgba(53, 95, 159, 0.14);
  --theme-deep: #1f3f73;
}

.product-card.theme-violet {
  --theme: #7652a7;
  --theme-soft: rgba(118, 82, 167, 0.14);
  --theme-deep: #4e3472;
}

.product-card:focus-visible {
  outline: 3px solid rgba(14, 120, 134, 0.5);
  outline-offset: 4px;
}

.product-media {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  height: 360px;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 26% 22%, color-mix(in srgb, var(--selected-color) 34%, transparent), transparent 28%),
    radial-gradient(circle at 80% 20%, var(--theme-soft), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #f1ede7 100%);
}

.product-image {
  position: relative;
  display: block;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.image-preview-zone {
  position: absolute;
  inset: 18px 0;
  z-index: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.image-preview-zone img {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: min(72%, 300px);
  max-height: calc(100% - 28px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(21, 21, 21, 0.14));
}

.angle-rail {
  position: static;
  z-index: 4;
  display: grid;
  align-self: center;
  align-content: center;
  gap: 8px;
  max-height: min(236px, calc(100% - 32px));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 12px 12px 8px;
  border-left: 1px solid rgba(21, 21, 21, 0.08);
  background: rgba(255, 255, 255, 0.34);
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.angle-thumb {
  display: grid;
  width: 58px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 4px;
  box-shadow: 0 8px 18px rgba(21, 21, 21, 0.08);
}

.angle-thumb.active {
  border-color: var(--theme);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--theme) 18%, transparent),
    0 8px 18px rgba(21, 21, 21, 0.1);
}

.angle-thumb img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  filter: none;
}

.angle-thumb:focus-visible {
  outline: 3px solid rgba(14, 120, 134, 0.5);
  outline-offset: 2px;
}

.product-image::before {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 0;
  width: min(68%, 280px);
  height: 12px;
  border-radius: 999px;
  background: var(--selected-color);
  content: "";
  opacity: 0.38;
  transform: translateX(-50%);
  filter: blur(8px);
}

.image-preview-zone::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(21, 21, 21, 0.22);
  backdrop-filter: blur(4px);
  content: "";
  opacity: 0;
  transition: opacity 160ms ease;
}

.image-preview-zone:hover::after,
.image-preview-zone:focus-within::after {
  opacity: 1;
}

.image-view-more {
  position: absolute;
  top: calc(50% - 22px);
  left: 50%;
  z-index: 3;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(21, 21, 21, 0.82);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.image-preview-zone:hover .image-view-more,
.image-preview-zone:focus-within .image-view-more {
  opacity: 1;
  transform: translate(-50%, 0);
}

.image-view-more:hover,
.image-view-more:focus-visible {
  background: var(--theme);
  outline: 3px solid rgba(14, 120, 134, 0.5);
  outline-offset: 3px;
}

.image-market-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.condition-price-list {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.image-price {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.image-price b {
  overflow-wrap: anywhere;
  color: var(--theme);
  font-size: clamp(0.98rem, 2vw, 1.14rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.image-price em {
  color: var(--ink);
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.model-visual {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(52%, 190px);
  max-height: calc(100% - 58px);
  aspect-ratio: 1.28;
  place-items: center;
  border: 1px solid rgba(21, 21, 21, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.55)),
    linear-gradient(135deg, var(--selected-color), color-mix(in srgb, var(--selected-color) 42%, white));
  box-shadow: 0 18px 28px rgba(21, 21, 21, 0.14);
  color: #151515;
  text-align: center;
}

.model-visual::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  content: "";
}

.model-visual span,
.model-visual small {
  position: relative;
  z-index: 1;
  display: block;
}

.model-visual span {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.model-visual small {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 850;
  letter-spacing: 0.08em;
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 12px;
}

.product-content h3,
.product-content p {
  margin-bottom: 0;
}

.product-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.control-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.color-picker {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: var(--radius);
  background: #fbfaf7;
}

.color-picker-header {
  display: grid;
  gap: 2px;
}

.color-picker-header span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.color-picker-header strong {
  color: #252525;
  font-size: 0.84rem;
  line-height: 1.25;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch {
  display: inline-flex;
  min-width: 40px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.swatch::before {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 999px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
  content: "";
}

.swatch span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.swatch.active {
  border-color: var(--theme);
  background: var(--theme-soft);
}

.swatch:focus-visible {
  outline: 3px solid rgba(14, 120, 134, 0.5);
  outline-offset: 3px;
}

.product-dropdown {
  margin: 0;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: var(--radius);
  background: #fbfaf7;
}

.product-detail-grid {
  display: grid;
  gap: 8px;
}

.product-dropdown summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

.product-dropdown summary::-webkit-details-marker {
  display: none;
}

.product-dropdown summary span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.product-dropdown summary::after {
  justify-self: end;
  color: var(--theme);
  content: "⌄";
  font-size: 1.2rem;
  font-weight: 900;
}

.product-dropdown[open] summary::after {
  content: "⌃";
}

.dropdown-body {
  padding: 0 10px 10px;
}

.overview-grid {
  display: grid;
  gap: 10px;
}

.overview-block {
  display: grid;
  gap: 6px;
}

.overview-block h4 {
  margin: 0;
  color: var(--theme-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.spec-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 0 0 18px;
  color: #333;
  font-size: 0.88rem;
}

.spec-list li::marker {
  color: var(--theme);
}

.paper-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.paper-tags span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #252525;
  font-size: 0.78rem;
  font-weight: 750;
}

.dropdown-copy {
  margin: 0;
  color: #333;
  font-size: 0.88rem;
  line-height: 1.35;
}

.info-box {
  padding: 8px 10px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-left: 4px solid var(--theme);
  border-radius: var(--radius);
  background: #fbfaf7;
}

.info-box span,
.info-box strong {
  display: block;
}

.info-box span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.info-box strong {
  color: #252525;
  font-size: 0.86rem;
  line-height: 1.35;
}

.compact-info-box {
  align-self: stretch;
}

.text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  color: var(--theme);
  font-weight: 850;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: auto;
}

.gallery-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(21, 21, 21, 0.56);
  overflow-y: auto;
}

.gallery-modal {
  display: grid;
  width: min(1180px, 100%);
  height: min(88dvh, 900px);
  max-height: min(88dvh, 900px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.modal-count {
  color: var(--muted);
  font-weight: 750;
}

.modal-close {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1;
}

.gallery-viewer {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 18px 72px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.72), transparent 34%),
    #f4f1ec;
}

.gallery-hero {
  display: grid;
  width: 100%;
  height: 500px;
  max-height: 500px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  place-items: center;
}

.gallery-hero img {
  width: auto;
  height: 500px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(21, 21, 21, 0.16));
}

.gallery-hero figcaption {
  position: absolute;
  right: 22px;
  bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.72);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 850;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 2rem;
  font-weight: 850;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 10px 24px rgba(21, 21, 21, 0.14);
}

.gallery-prev {
  left: 18px;
}

.gallery-next {
  right: 18px;
}

.gallery-nav:hover,
.gallery-nav:focus-visible,
.modal-close:hover,
.modal-close:focus-visible {
  background: var(--ink);
  color: #fff;
  outline: none;
}

.gallery-thumbnails {
  display: flex;
  min-height: 120px;
  max-height: 120px;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px 28px 32px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.thumb {
  display: inline-grid;
  min-width: 92px;
  width: 92px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: #f4f1ec;
  cursor: pointer;
}

.thumb.active {
  border-color: var(--canon-red);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb:focus-visible {
  outline: 3px solid rgba(14, 120, 134, 0.5);
  outline-offset: 2px;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f1ec;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  gap: 14px;
}

.about-item {
  padding: 22px;
  border-left: 4px solid var(--canon-red);
  border-radius: var(--radius);
  background: var(--surface);
}

.about-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.video-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(280px, 0.48fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-block: clamp(52px, 8vw, 92px);
  border-top: 1px solid var(--line);
}

.video-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  justify-self: center;
  width: min(520px, 100%);
}

.video-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #151515;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.video-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.42));
  content: "";
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: inline-grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 999px;
  background: rgba(196, 0, 18, 0.94);
  color: #fff;
  font-size: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 16px 36px rgba(21, 21, 21, 0.26);
}

.video-play::before {
  width: 0;
  height: 0;
  border-block: 12px solid transparent;
  border-left: 18px solid #fff;
  content: "";
  transform: translateX(2px);
}

.video-frame:hover .video-play,
.video-frame:focus-visible .video-play {
  background: var(--ink);
}

.video-frame:focus-visible {
  outline: 3px solid rgba(14, 120, 134, 0.5);
  outline-offset: 3px;
}

.video-modal {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  max-height: min(88dvh, 920px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius);
  background: #151515;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32);
}

.video-modal iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-intro {
  width: min(760px, 100%);
  margin-bottom: 30px;
}

.footer-intro h2 {
  font-size: clamp(0.85rem, 3.4vw, 2.2rem);
  white-space: nowrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr 0.8fr;
  gap: 16px;
}

.contact-grid > div {
  min-height: 112px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.contact-grid span {
  color: rgba(255, 255, 255, 0.68);
}

.contact-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.social-links p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
}

.social-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  font-weight: 850;
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .product-card {
    grid-template-rows: auto 1fr;
  }

  .product-media {
    height: 300px;
  }

  .product-content {
    padding: 14px;
  }
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px clamp(18px, 4vw, 32px) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(21, 21, 21, 0.12);
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    min-height: 48px;
  }

  .nav-item.has-dropdown {
    display: flex;
    flex-direction: column;
  }

  .nav-dropdown {
    position: static;
    display: flex !important;
    flex-direction: column;
    transform: none;
    width: 100%;
    margin: 0 0 4px;
    padding: 0 0 0 16px;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .nav-dropdown::before {
    display: none;
  }

  .nav-dropdown li a {
    min-height: 42px;
    padding: 0;
  }

  .nav-caret {
    display: none;
  }

  .hero-product-list {
    display: none;
  }

  .hero {
    min-height: 780px;
    align-items: start;
    background:
      linear-gradient(180deg, rgba(251, 250, 247, 1) 0%, rgba(251, 250, 247, 0.9) 58%, rgba(251, 250, 247, 0.58) 100%),
      url("https://s7d1.scene7.com/is/image/canon/5539C001_selphy-cp1500-black_primary?fmt=webp-alpha&hei=900&wid=900")
        center bottom 80px / min(88vw, 560px) no-repeat,
      #f7f1e9;
  }

  .hero::after {
    right: 7vw;
    bottom: 42px;
    width: clamp(112px, 32vw, 220px);
  }

  .hero-content {
    padding-top: 54px;
  }

  .section-heading,
  .about-section,
  .video-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .video-frame {
    justify-self: auto;
  }

  .video-grid {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding-inline: 18px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .nav-links {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 820px;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(2.75rem, 17vw, 4.2rem);
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-metrics,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-media {
    grid-template-columns: none;
    grid-template-rows: minmax(0, 1fr) auto;
    row-gap: 8px;
    height: 400px;
    padding: 12px;
  }

  .product-content,
  .about-item,
  .video-section,
  .contact-grid > div {
    padding: 16px;
  }

  .video-section {
    padding-block: 42px;
  }

  .video-grid {
    width: min(100%, 520px);
    justify-self: center;
  }

  .product-content {
    gap: 8px;
  }

  .product-tagline {
    -webkit-line-clamp: 1;
    font-size: 0.88rem;
  }

  .angle-rail {
    display: flex;
    align-self: end;
    justify-content: flex-start;
    min-height: 66px;
    max-height: none;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 4px 2px;
    border-left: 0;
    border-top: 1px solid rgba(21, 21, 21, 0.08);
    background: transparent;
    gap: 6px;
  }

  .angle-thumb {
    min-width: 76px;
    width: 76px;
    height: 56px;
  }

  .color-picker {
    padding: 8px;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .gallery-modal {
    height: 88dvh;
    max-height: 88dvh;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .modal-header {
    padding: 18px;
  }

  .gallery-viewer {
    min-height: 0;
    padding: 12px 48px;
  }

  .gallery-hero {
    height: min(360px, 100%);
    max-height: 360px;
  }

  .gallery-hero img {
    height: min(360px, 100%);
    max-height: 100%;
  }

  .gallery-nav {
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }

  .gallery-prev {
    left: 8px;
  }

  .gallery-next {
    right: 8px;
  }

  .gallery-thumbnails {
    min-height: 104px;
    max-height: 104px;
    padding: 14px 18px max(28px, calc(18px + env(safe-area-inset-bottom)));
  }

  .thumb {
    min-width: 76px;
    width: 76px;
    height: 60px;
  }

  .image-view-more {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    min-height: 46px;
    padding-inline: 14px;
    opacity: 1;
    transform: none;
  }
}

/* Cart button in header */
.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.cart-button:hover,
.cart-button:focus-visible {
  color: var(--canon-red);
  border-color: var(--canon-red);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--canon-red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

/* Add-to-cart button inside product price tag */
.image-price {
  position: relative;
  padding-right: 34px;
}

.add-to-cart-btn {
  cursor: pointer;
}

.image-price .add-to-cart-btn {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--canon-red);
  font-size: 0;
}

.image-price .add-to-cart-btn::before {
  content: "+";
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.image-price .add-to-cart-btn:hover,
.image-price .add-to-cart-btn:focus-visible {
  background: var(--canon-red);
  color: #fff;
}

/* Ink price row */
.ink-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.ink-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--canon-red);
}

/* Cart modal */
.cart-modal {
  display: grid;
  width: min(1040px, 100%);
  margin-block: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32);
  grid-template-rows: auto auto;
}

.cart-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.cart-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.cart-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cart-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.cart-field input,
.cart-field textarea {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  resize: vertical;
}

.cart-field input:focus-visible,
.cart-field textarea:focus-visible {
  outline: 2px solid var(--canon-red);
  outline-offset: 1px;
}

.cart-payment-note {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-submit {
  width: 100%;
  justify-content: center;
}

.cart-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cart-status-inline {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-status-error {
  color: var(--canon-red);
}

.cart-summary-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.cart-empty {
  color: var(--muted);
}

.cart-item-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 6px 14px;
}

.cart-item img,
.cart-item-noimage {
  grid-row: 1 / 3;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item-info span {
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-item-price {
  grid-column: 3;
  grid-row: 1;
  color: var(--canon-red);
}

.qty-stepper {
  grid-column: 2;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.qty-stepper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}

.qty-stepper button:hover,
.qty-stepper button:focus-visible {
  background: var(--ink);
  color: #fff;
}

.cart-item-remove {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
}

.cart-item-remove:hover,
.cart-item-remove:focus-visible {
  color: var(--canon-red);
}

.cart-summary {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

.cart-summary-total {
  font-size: 1.15rem;
  font-weight: 800;
}

.cart-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 48px 24px;
  text-align: center;
}

@media (max-width: 900px) {
  .cart-columns {
    grid-template-columns: 1fr;
  }

  .cart-summary-column {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .cart-field-row {
    grid-template-columns: 1fr;
  }
}

/* Success state */
.cart-status-success {
  position: relative;
  overflow: hidden;
}

.success-icon {
  flex-shrink: 0;
}

.cart-success-message {
  margin: 0;
  color: #16a34a;
  font-size: 1.15rem;
  font-weight: 800;
}

.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti span {
  position: absolute;
  top: -16px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.9;
  animation: confetti-fall 1.7s ease-in forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(420px) rotate(360deg);
    opacity: 0;
  }
}

/* Zalo consultation card (Coolmate-style) */
.zalo-contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  width: 100%;
  max-width: 640px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
}

.zalo-contact-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zalo-contact-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zalo-contact-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.zalo-contact-avatar img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.zalo-contact-header h4 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.zalo-contact-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.zalo-message-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #0068ff;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.zalo-message-btn:hover,
.zalo-message-btn:focus-visible {
  background: #0052cc;
}

.zalo-contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zalo-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.zalo-contact-row svg {
  flex-shrink: 0;
  color: var(--canon-red);
}

.zalo-contact-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.zalo-contact-qr img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
}

.zalo-contact-qr p {
  margin: 0;
  max-width: 20ch;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 560px) {
  .zalo-contact-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .zalo-contact-header {
    flex-direction: column;
    text-align: center;
  }

  .zalo-message-btn {
    margin: 0 auto;
  }

  .zalo-contact-qr {
    order: -1;
  }
}
