/* Mai Anh Concrete — Hệ thống kiểu dáng kiến trúc vật liệu
   Bảng màu: Porcelain (#ffffff), Fog (#f4f6f3), Concrete (#dce1db), Emerald (#235a45), Graphite (#192b24), Mineral (#9a8058)
*/

:root {
  --color-bg: #ffffff;
  --color-surface: #f7f9f6;
  --color-surface-soft: #f0f3ee;
  --color-surface-tint: #e6ece3;
  --color-text: #192b24;
  --color-text-muted: #536259;
  --color-text-subtle: #7a8880;
  --color-border: #dbe0d7;
  --color-border-light: #eaede7;
  --color-emerald: #235a45;
  --color-emerald-dark: #194333;
  --color-emerald-light: #2e7358;
  --color-mineral: #9a8058;
  --color-mineral-dark: #7a6442;
  --color-mineral-soft: #faf6f0;
  --color-error: #b3392a;
  --color-error-bg: #fdf2f0;
  --color-success: #1e6b47;
  --color-success-bg: #edf7f1;

  --font-serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 1px 3px rgba(25, 43, 36, 0.05);
  --shadow-md: 0 4px 16px rgba(25, 43, 36, 0.08);
  --shadow-lg: 0 12px 32px rgba(25, 43, 36, 0.12);

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --header-height: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-emerald);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-emerald-dark);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-emerald);
  outline-offset: 3px;
}

:target {
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-emerald-dark);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==================== HEADER & NAV ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  color: var(--color-text);
}

.brand-wordmark:hover {
  color: var(--color-emerald-dark);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-slogan {
  font-size: 0.75rem;
  color: var(--color-mineral);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-emerald);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-emerald);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  width: 2.75rem;
  height: 2.75rem;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==================== BUTTONS & BADGES ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background: var(--color-emerald);
  color: #ffffff;
  border-color: var(--color-emerald);
}

.btn-primary:hover {
  background: var(--color-emerald-dark);
  color: #ffffff;
  border-color: var(--color-emerald-dark);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface-soft);
  border-color: var(--color-text-muted);
}

.btn-outline {
  background: transparent;
  color: var(--color-emerald);
  border-color: var(--color-emerald);
}

.btn-outline:hover {
  background: var(--color-emerald);
  color: #ffffff;
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-accent {
  background: var(--color-mineral);
  color: #ffffff;
  border-color: var(--color-mineral);
}

.btn-accent:hover {
  background: var(--color-mineral-dark);
  border-color: var(--color-mineral-dark);
  color: #ffffff;
}

.btn-zalo {
  background: #0068ff;
  color: #ffffff;
  border-color: #0068ff;
}

.btn-zalo:hover {
  background: #0052cc;
  border-color: #0052cc;
  color: #ffffff;
}

.btn-block {
  width: 100%;
}

.btn-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-emerald);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-text:hover {
  color: var(--color-emerald-dark);
}

.btn-card-quote {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  background: var(--color-surface);
  transition: all 0.2s ease;
}

.btn-card-quote:hover {
  background: var(--color-emerald);
  color: #ffffff;
  border-color: var(--color-emerald);
}

.category-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm);
}

.scene-caption-tag {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(25, 43, 36, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb-nav {
  padding: 1.25rem 0 0.5rem;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}

.breadcrumb li+li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--color-border);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-emerald);
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text);
  font-weight: 500;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-surface) 100%);
  border-bottom: 1px solid var(--color-border-light);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-mineral);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-emerald-dark);
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 1.25rem;
  align-items: flex-end;
}

.hero-material-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #ffffff;
  border: 1px solid var(--color-border);
  aspect-ratio: 1 / 1;
}

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

.material-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(25, 43, 36, 0.85) 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.badge-code {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-scene-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  aspect-ratio: 3 / 4;
}

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

/* ==================== GENERAL SECTIONS ==================== */
.section {
  padding: 5rem 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-mineral);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.section-action-center {
  text-align: center;
  margin-top: 3rem;
}

/* ==================== PRODUCT GRID ==================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.product-grid-featured {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}

.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  overflow: hidden;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.03);
}

.product-card-media .category-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-code {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-emerald);
  margin-bottom: 0.25rem;
}

.product-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.product-card-title a {
  color: var(--color-text);
}

.product-card-title a:hover {
  color: var(--color-emerald);
}

.product-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border-light);
}

/* ==================== SPECS SECTION ==================== */
.section-specs {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.spec-card {
  background: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.spec-icon {
  font-size: 1.5rem;
  color: var(--color-mineral);
  margin-bottom: 1rem;
}

.spec-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.spec-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==================== SPACES PREVIEW ==================== */
.spaces-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.space-preview-card {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.space-preview-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-soft);
}

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

.space-preview-info {
  padding: 1.5rem;
}

.space-preview-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.space-preview-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==================== CTA BANNER ==================== */
.cta-banner {
  padding: 4rem 0;
}

.cta-card {
  background: var(--color-emerald-dark);
  color: #ffffff;
  padding: 3.5rem 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==================== COLLECTION PAGE ==================== */
.page-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--color-border-light);
  background: #ffffff;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.page-intro {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 800px;
  line-height: 1.6;
}

.collection-toolbar {
  background: var(--color-surface);
  padding: 1.5rem 0;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.toolbar-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.toolbar-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.search-input-wrap {
  flex-grow: 1;
  max-width: 480px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 3px rgba(35, 90, 69, 0.15);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.filter-btn.is-active {
  background: var(--color-emerald);
  color: #ffffff;
  border-color: var(--color-emerald);
}

.toolbar-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.btn-reset-filters {
  background: transparent;
  border: none;
  color: var(--color-emerald);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
}

.btn-reset-filters:hover {
  color: var(--color-emerald-dark);
}

.empty-state {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
  grid-column: 1 / -1;
}

.empty-state h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* ==================== PRODUCT DETAIL ==================== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  padding: 2.5rem 0 4rem;
  align-items: flex-start;
}

.detail-media {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.detail-image-box {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

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

.btn-zoom {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-zoom:hover {
  background: #ffffff;
  border-color: var(--color-emerald);
  color: var(--color-emerald);
}

.detail-media-note {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  margin-top: 0.75rem;
  text-align: center;
}

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-code {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-emerald);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.detail-name {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.detail-badge-wrap {
  margin-bottom: 1.25rem;
}

.detail-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.spec-table-wrap {
  margin-bottom: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.spec-table-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.spec-table th,
.spec-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--color-border-light);
  text-align: left;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table th {
  width: 38%;
  font-weight: 600;
  color: var(--color-text);
  background: #fafbfa;
}

.spec-table td {
  color: var(--color-text-muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-not-found {
  padding: 5rem 2rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.product-not-found h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.product-not-found p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ==================== DIALOG VIEWER ==================== */
.image-dialog {
  border: none;
  border-radius: var(--radius-md);
  padding: 0;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  overflow: hidden;
}

.image-dialog::backdrop {
  background: rgba(25, 43, 36, 0.75);
  backdrop-filter: blur(4px);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.dialog-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.dialog-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.dialog-close:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.dialog-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: calc(90vh - 5rem);
  overflow-y: auto;
}

.dialog-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.dialog-caption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ==================== APPLICATIONS PAGE ==================== */
.application-item {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.application-item:last-of-type {
  border-bottom: none;
}

.application-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.application-grid.is-reversed {
  grid-template-columns: 1fr 1fr;
}

.application-grid.is-reversed .application-media {
  order: 2;
}

.application-grid.is-reversed .application-info {
  order: 1;
}

.application-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  aspect-ratio: 3 / 4;
  background: var(--color-surface-soft);
}

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

.application-info {
  display: flex;
  flex-direction: column;
}

.application-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-mineral);
  margin-bottom: 0.5rem;
}

.application-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.application-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.application-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.application-points li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.application-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-emerald);
  font-weight: 700;
}

/* ==================== CONTACT & QUOTE PAGE ==================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  padding: 3rem 0 5rem;
  align-items: flex-start;
}

.contact-panel {
  background: var(--color-surface);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-subtle);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 1.05rem;
  color: var(--color-text);
}

.contact-value strong {
  font-weight: 600;
}

.contact-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.policy-box {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
}

.policy-box h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.policy-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.policy-box li {
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.5;
}

.policy-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-mineral);
  font-weight: 700;
}

.quote-builder-panel {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.quote-lead {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.quote-param-notice {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}

.quote-param-notice.is-info {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-color: rgba(30, 107, 71, 0.2);
}

.quote-param-notice.is-warning {
  background: var(--color-error-bg);
  color: var(--color-error);
  border-color: rgba(179, 57, 42, 0.2);
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.required {
  color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 3px rgba(35, 90, 69, 0.15);
}

.form-input.is-invalid,
.form-select.is-invalid {
  border-color: var(--color-error);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  margin-top: 0.35rem;
}

.form-error {
  font-size: 0.8rem;
  color: var(--color-error);
  margin-top: 0.35rem;
}

.quote-result-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.quote-result-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.quote-result-instruction {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.quote-output {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  resize: vertical;
  margin-bottom: 1.25rem;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.copy-status {
  font-size: 0.875rem;
  margin-top: 0.75rem;
  min-height: 1.25rem;
}

.copy-status.is-success {
  color: var(--color-success);
  font-weight: 500;
}

.copy-status.is-manual {
  color: var(--color-mineral-dark);
  font-weight: 500;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: #15221c;
  color: #d1d8d3;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid #23352c;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.footer-slogan {
  font-size: 0.85rem;
  color: var(--color-mineral);
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.footer-about {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #a4b2a8;
}

.footer-heading {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  color: #a4b2a8;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-contact p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: #a4b2a8;
}

.footer-contact strong {
  color: #ffffff;
}

.footer-contact a {
  color: #ffffff;
}

.footer-contact a:hover {
  color: var(--color-mineral);
}

.footer-note {
  font-size: 0.8rem !important;
  color: #7d8d82 !important;
  margin-top: 1rem;
  line-height: 1.5 !important;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #23352c;
  font-size: 0.85rem;
  color: #7d8d82;
  text-align: center;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
  }

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

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

  .spaces-preview-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .detail-media {
    position: static;
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 4rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 1.5rem 1.5rem 2rem;
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .nav-link {
    font-size: 1.05rem;
    display: block;
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .application-grid,
  .application-grid.is-reversed {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .application-grid.is-reversed .application-media {
    order: 0;
  }

  .application-grid.is-reversed .application-info {
    order: 1;
  }

  .application-media {
    max-width: 480px;
    margin: 0 auto;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-card {
    padding: 2.5rem 1.5rem;
  }

  .contact-panel,
  .quote-builder-panel {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-visual {
    grid-template-columns: 1fr;
  }

  .hero-scene-card {
    display: none;
  }

  .product-grid-featured,
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-actions,
  .quote-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ==================== ACCESSIBILITY & PREFERS-REDUCED-MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Keep malformed product URLs readable at every viewport. */
.product-not-found { grid-column: 1 / -1; min-width: 0; }
.product-not-found p, .quote-param-notice { overflow-wrap: anywhere; }

/* A material-led opening and quiet editorial surfaces. */
[hidden] { display: none !important; }
.hero-section { padding: 4.5rem 0 5rem; background: #f0f2ee; }
.hero-container { max-width: 1320px; grid-template-columns: .9fr 1.1fr; gap: 5rem; }
.hero-title { font-size: clamp(3.2rem, 4.6vw, 4.5rem); font-weight: 500; max-width: 12ch; }
.hero-lead { font-size: 1.05rem; max-width: 31rem; }
.hero-kicker, .section-kicker, .metric-label, .contact-label { text-transform: none; letter-spacing: .03em; }
.hero-visual { display: block; width: 100%; max-width: none; margin: 0; }
.hero-material-card { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.hero-scene-card { position: absolute; right: -1rem; bottom: -2rem; width: 30%; border: 5px solid white; border-radius: 0; }
.material-badge { padding: 1.75rem 1.25rem 1rem; }
.hero-visual .material-badge { flex-direction: column; align-items: flex-start; padding-right: 32%; gap: .25rem; }
.scene-caption-tag { font-size: .7rem; }
.hero-actions { gap: .75rem; margin-bottom: 2rem; }
.hero-actions .btn { padding-left: 1.1rem; padding-right: 1.1rem; }
.product-card { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.product-card:hover { box-shadow: none; transform: none; }
.product-card-media { border-radius: 0; }
.product-card-media > a { display: block; width: 100%; height: 100%; }
.product-card-body { padding: 1.25rem 0; }
.product-card-desc { font-size: .9rem; }
.spec-card { border: 0; border-top: 1px solid var(--color-border); border-radius: 0; box-shadow: none; background: transparent; }
.section-title { font-weight: 500; }
.contact-sub { margin-bottom: 1.75rem; }
.application-item { padding: 0; margin-bottom: 5rem; }
.contact-layout, .quote-builder-panel, .contact-panel, .detail-layout { min-width: 0; }
.quote-builder-panel, .contact-panel { border-radius: 0; }
.form-select { min-width: 0; max-width: 100%; }
@media (max-width: 1024px) {
 .hero-container { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
 .hero-title { font-size: 3rem; }
 .hero-scene-card { display: none; }
 .hero-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
 .hero-section { padding: 2.5rem 0 3rem; }
 .hero-container { grid-template-columns: 1fr; gap: 2rem; }
 .hero-title { font-size: 2.8rem; max-width: 13ch; }
 .hero-metrics { display: none; }
 .hero-actions { margin-bottom: 0; }
 .hero-visual { max-width: 600px; margin: auto; }
 .hero-material-card { aspect-ratio: 6 / 5; }
 .section { padding: 3.5rem 0; }
 .application-item { margin-bottom: 3rem; }
 .contact-layout { padding: 0; }
}

/* Garden inspiration leads the home page; material samples remain below. */
.hero-landscape { position: relative; min-width: 0; width: 100%; margin: 0; aspect-ratio: 4 / 5; max-height: 660px; overflow: hidden; background: #dce1d7; }
.hero-landscape > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; }
.hero-landscape > figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .5rem .75rem; background: rgba(24, 42, 32, .88); color: #fff; font-size: .75rem; letter-spacing: .02em; }
@media (max-width: 768px) {
 .hero-landscape { max-width: 600px; max-height: none; margin: auto; aspect-ratio: 6 / 5; }
}

/* Additional landscape scenes from the supplied visual collection. */
.space-preview-link { display: block; }
.scene-library { background: var(--color-surface); }
.scene-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; align-items: start; }
.scene-gallery-card { min-width: 0; scroll-margin-top: 6rem; }
.scene-gallery-image-link { display: block; position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--color-surface-soft); }
.scene-gallery-image-link > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.scene-gallery-card h3 { margin: 1.1rem 0 .5rem; font-family: var(--font-serif); font-size: 1.45rem; font-weight: 500; }
.scene-gallery-card p { color: var(--color-text-muted); margin-bottom: .75rem; line-height: 1.65; }
.scene-card-wide { grid-column: span 2; }
.scene-card-wide .scene-gallery-image-link { aspect-ratio: 1000 / 563; }
.spaces-preview-grid .space-preview-img { object-position: center 60%; }
@media (min-width: 641px) and (max-width: 1024px) { .spaces-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
@media (max-width: 1000px) { .scene-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .scene-gallery-grid { grid-template-columns: 1fr; gap: 2.5rem; } .scene-card-wide { grid-column: auto; } }
