:root {
  --bg: #f4f7fb;
  --bg-deep: #1e3358;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --text: #23334d;
  --muted: #7b8698;
  --line: rgba(44, 81, 143, 0.12);
  --accent: #2c518f;
  --accent-soft: #b2b2b1;
  --shadow: 0 24px 60px rgba(33, 58, 103, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --transition: 220ms ease;
}

.app-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 24px;
}

.app-loading__spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(44, 81, 143, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: app-loading-spin 0.8s linear infinite;
}

@keyframes app-loading-spin {
  to { transform: rotate(360deg); }
}

.app-loading__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(44, 81, 143, 0.12), transparent 24%),
    radial-gradient(circle at right center, rgba(178, 178, 177, 0.18), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f1f4f9 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(44, 81, 143, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 81, 143, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 70%);
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.section,
.product-preview,
.brand-masthead,
.type-showcase {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.section,
.product-preview {
  position: relative;
}

.brand-masthead {
  margin-bottom: 26px;
  padding: 28px 32px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(44, 81, 143, 0.07), rgba(255, 255, 255, 0.92)),
    var(--panel-strong);
  border: 1px solid rgba(44, 81, 143, 0.1);
  box-shadow: var(--shadow);
}

.brand-masthead__main {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 28px;
  align-items: center;
}

.brand-masthead__main--logo-only {
  grid-template-columns: 1fr;
  justify-items: center;
}

.brand-masthead__identity {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.brand-masthead__logo {
  width: min(340px, 55vw);
  max-width: 340px;
  height: 110px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
}

.brand-masthead__portfolio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 0;
  padding: 0;
  border-left: 0;
  color: var(--accent);
  font-size: clamp(0.82rem, 1.25vw, 1.04rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-masthead__portfolio::before,
.brand-masthead__portfolio::after {
  content: "";
  width: clamp(32px, 7vw, 72px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44, 81, 143, 0.34));
}

.brand-masthead__portfolio::after {
  background: linear-gradient(90deg, rgba(44, 81, 143, 0.34), transparent);
}

.brand-masthead__eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-masthead__title {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 1.05;
  color: var(--accent);
}

.brand-masthead__text {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow,
.section-tag,
.product-preview__brand,
.type-showcase__label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  color: var(--accent);
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  line-height: 1.08;
  font-weight: 800;
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
}

h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  margin-bottom: 0;
}

.section-heading p,
#type-description,
#preview-description {
  color: var(--muted);
  line-height: 1.7;
  max-width: 62ch;
}

button {
  font: inherit;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.primary-btn,
.ghost-btn,
.brand-card,
.type-pill,
.product-card {
  transition:
    transform var(--transition),
    border-color var(--transition),
    color var(--transition),
    opacity var(--transition);
}

.primary-btn,
.ghost-btn {
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #2c518f, #3c6bc0);
  box-shadow: 0 18px 40px rgba(44, 81, 143, 0.24);
}

.ghost-btn {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(44, 81, 143, 0.12);
}

.product-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.product-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 1.08rem;
}

.section {
  padding: 34px;
  border: 1px solid rgba(44, 81, 143, 0.08);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  margin-top: 26px;
}

.section-heading {
  margin-bottom: 28px;
}

.detail-page {
  padding: 28px;
}

.detail-page__back {
  margin-bottom: 24px;
}

.detail-page h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  max-width: 100%;
  line-height: 1.1;
}

.detail-page__hero {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.detail-page__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-page__text {
  color: var(--muted);
  line-height: 1.7;
  max-width: 58ch;
}

.detail-page__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.detail-page__meta div,
.detail-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(44, 81, 143, 0.09);
  box-shadow: 0 18px 36px rgba(44, 81, 143, 0.08);
}

.detail-page__meta span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.detail-page__meta strong {
  display: block;
  margin-top: 8px;
}

.detail-page__surface {
  min-height: 340px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(44, 81, 143, 0.09);
  box-shadow: var(--shadow);
}

.detail-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.detail-card h2 {
  margin-bottom: 16px;
}

.detail-card__image,
.detail-card__fallback {
  width: 100%;
  min-height: 300px;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(44, 81, 143, 0.09);
  background-color: rgba(246, 249, 255, 0.9);
}

.detail-card__image--surface {
  object-fit: contain;
  background:
    radial-gradient(circle at top left, rgba(44, 81, 143, 0.08), transparent 28%),
    rgba(246, 249, 255, 0.96);
}

.detail-card--showroom .detail-card__image,
.detail-card--showroom .detail-card__fallback {
  width: 100%;
  max-width: none;
  height: clamp(300px, 38vw, 460px);
  object-fit: cover;
}

.detail-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.brand-slider {
  position: relative;
}

.brand-slider__nav {
  display: none;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.brand-card {
  padding: 22px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  box-shadow: 0 12px 26px rgba(44, 81, 143, 0.08);
  min-height: 166px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.brand-card__logo {
  display: block;
  width: 100%;
  max-width: 250px;
  height: 100px;
  margin: 12px auto 0;
  object-fit: contain;
  object-position: center;
}

.brand-card small,
.brand-card__index {
  color: var(--muted);
}

.brand-card__label {
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.brand-card.is-active,
.type-pill.is-active,
.product-card.is-active {
  border-color: rgba(44, 81, 143, 0.55);
  background: var(--panel-strong);
  box-shadow: 0 0 0 3px rgba(44, 81, 143, 0.14), 0 18px 30px rgba(44, 81, 143, 0.14);
  position: relative;
}

.product-card.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}

.type-pill.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.type-switch {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.type-pill {
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  border: 1px solid rgba(44, 81, 143, 0.08);
  font-weight: 700;
  white-space: nowrap;
}

.type-pill.is-disabled,
.type-pill:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.type-showcase {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 20px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(44, 81, 143, 0.08);
}

.feature-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.type-showcase__size {
  margin: 10px 0 0;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.type-showcase__material {
  min-height: 320px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background: #eef3fa;
  border: 1px solid rgba(44, 81, 143, 0.1);
  display: grid;
  place-items: center;
}

.type-showcase__material::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 62%, rgba(27, 41, 67, 0.12) 100%);
  z-index: 1;
}

.type-showcase__image {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.material-chip {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(35, 51, 77, 0.14);
  font-weight: 700;
}

.catalog-type-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.catalog-type-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(44, 81, 143, 0.2);
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.catalog-type-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(44, 81, 143, 0.06);
}

.catalog-type-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.catalog-type-btn.is-unavailable {
  opacity: 0.3;
  cursor: not-allowed;
}

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.products-header h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.products-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  align-items: start;
}

.product-list {
  display: grid;
  gap: 14px;
  contain: layout style;
}

.product-empty {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(44, 81, 143, 0.08);
}

.product-empty h3 {
  margin-bottom: 10px;
}

.product-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-card {
  width: 100%;
  text-align: left;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(44, 81, 143, 0.08);
}

.product-card__top,
.product-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.product-card__brand,
.product-card__type {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.product-card h3 {
  font-size: 1.35rem;
  margin: 8px 0;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-card__media {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(44, 81, 143, 0.08);
  background: rgba(248, 251, 255, 0.9);
}

.product-card__thumb {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.product-card__swatches {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.product-card__code {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(44, 81, 143, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card__epaisseur {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(107, 114, 128, 0.1);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.swatch,
.swatch-row span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 16px rgba(34, 20, 13, 0.14);
}

.product-preview {
  padding: 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(44, 81, 143, 0.09);
  box-shadow: var(--shadow);
  position: sticky;
  top: 18px;
  isolation: isolate;
}

.product-preview--empty {
  min-height: 260px;
}

.product-preview__empty-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  gap: 8px;
}

.product-preview__empty-icon {
  color: var(--accent-soft);
  margin-bottom: 8px;
  opacity: 0.5;
}

.product-preview__surface {
  position: relative;
  border-radius: 26px;
  min-height: 360px;
  padding: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #2c518f, #537abc, #b2b2b1);
  transition: background 320ms ease;
}

.product-preview__surface-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 320ms ease;
  z-index: 0;
}

.product-preview__hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.product-preview__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 26%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 20%, rgba(0, 0, 0, 0.06) 40%, transparent 58%);
}

.preview-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.84);
  font-size: 0.8rem;
  font-weight: 800;
}

.swipe-arrows {
  display: none;
}

@media (max-width: 720px) {
  .swipe-arrows {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    padding: 0 6px;
  }

  .swipe-arrows__btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    animation: swipe-hint 2s ease-in-out infinite;
  }

  .swipe-arrows__btn--left {
    animation-name: swipe-hint-left;
  }

  .swipe-arrows__btn--right {
    animation-name: swipe-hint-right;
  }

  @keyframes swipe-hint-left {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(-4px); opacity: 1; }
  }

  @keyframes swipe-hint-right {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(4px); opacity: 1; }
  }
}

.preview-room {
  position: absolute;
  inset: auto 24px 24px 24px;
  height: 220px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 242, 250, 0.98));
  box-shadow: inset 0 0 0 1px rgba(44, 81, 143, 0.08);
}

.preview-room__wall {
  position: absolute;
  inset: 0 0 68px;
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.98), rgba(236, 226, 214, 1));
}

.preview-room__cabinet {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: 200px;
  height: 132px;
  transform: translateX(-50%);
  border-radius: 18px 18px 12px 12px;
  box-shadow: 0 16px 26px rgba(44, 81, 143, 0.18);
  background: linear-gradient(135deg, #2c518f, #537abc, #b2b2b1);
}

.preview-room__cabinet::before,
.preview-room__cabinet::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.preview-room__cabinet::before {
  left: 50%;
}

.preview-room__cabinet::after {
  left: 25%;
}

.preview-room__shelf {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 18px;
  height: 12px;
  border-radius: 999px;
  background: rgba(44, 81, 143, 0.18);
}

.product-preview__info {
  padding-top: 20px;
}

.product-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-preview__brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.product-preview__brand-wrap .product-preview__brand {
  margin-bottom: 0;
}

.product-preview__brand-logo {
  width: 104px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}

.product-preview__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  flex-shrink: 0;
}

.product-preview__reference {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(44, 81, 143, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-preview__color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(34, 20, 13, 0.18);
  flex-shrink: 0;
}

.product-preview__header + h3 {
  margin-top: 10px;
}

.product-preview__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}

.product-preview__nav {
  position: relative;
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-preview__nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-preview__nav::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.product-preview__nav:first-child::before {
  transform: rotate(-135deg);
}

.product-preview__nav:last-child::before {
  transform: rotate(45deg);
}

.product-preview__counter {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-preview__image-wrap {
  margin: 18px 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(44, 81, 143, 0.09);
  box-shadow: 0 18px 36px rgba(44, 81, 143, 0.12);
}

.product-preview__image {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.swatch-row {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}

.product-meta {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.detail-cta {
  display: block;
  width: 100%;
  margin-top: 18px;
  text-align: center;
  font-size: 0.92rem;
}

@media (hover: hover) {
  .primary-btn:hover,
  .ghost-btn:hover,
  .brand-card:hover,
  .type-pill:hover,
  .product-card:hover {
    transform: translateY(-4px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms cubic-bezier(0.22, 1, 0.36, 1), transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-18px) rotate(5deg);
  }
}

@media (max-width: 1080px) {
  .brand-masthead__main,
  .products-layout,
  .type-showcase,
  .detail-page__hero,
  .detail-page__grid {
    grid-template-columns: 1fr;
  }

  .brand-masthead__logo {
    max-width: 280px;
    height: 92px;
  }

  .brand-masthead__identity {
    gap: 18px;
  }

  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-preview {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 16px, 1240px);
    padding: 14px 0 44px;
  }

  .brand-masthead {
    margin-bottom: 18px;
    padding: 24px 16px 18px;
    border-radius: 24px;
  }

  .brand-masthead__identity {
    gap: 18px;
    justify-content: center;
  }

  .brand-masthead__portfolio {
    gap: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .section {
    margin-top: 18px;
    padding: 20px 16px;
    border-radius: 24px;
  }

  .detail-page {
    padding: 18px 12px;
  }

  .detail-page__back {
    margin-bottom: 16px;
    padding: 12px 16px;
  }

  .detail-page__hero {
    gap: 18px;
  }

  .detail-page h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 12vw, 3.35rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .detail-page__text {
    margin: 12px 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .detail-page__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
  }

  .detail-page__meta div {
    min-height: 86px;
    padding: 14px;
    border-radius: 18px;
  }

  .detail-page__meta span {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .detail-page__meta strong {
    font-size: 0.92rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
  }

  .detail-page__surface {
    min-height: 238px;
    border-radius: 24px;
  }

  .detail-page__grid {
    margin-top: 18px;
  }

  .detail-card {
    padding: 16px;
    border-radius: 22px;
  }

  .detail-card h2 {
    margin-bottom: 14px;
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .detail-card--showroom .detail-card__image,
  .detail-card--showroom .detail-card__fallback {
    height: clamp(240px, 64vw, 340px);
    border-radius: 18px;
  }

  .detail-card p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .brand-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 78%);
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 2px 30px 10px;
    margin: 0 -14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    touch-action: pan-x;
  }

  .brand-grid::-webkit-scrollbar,
  .type-switch::-webkit-scrollbar {
    display: none;
  }

  .brand-slider__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(44, 81, 143, 0.14);
    color: var(--accent);
    font-size: 1.4rem;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(44, 81, 143, 0.14);
  }

  .brand-slider__nav--prev {
    left: -2px;
  }

  .brand-slider__nav--next {
    right: -2px;
  }

  .brand-card {
    min-height: 134px;
    padding: 18px 16px;
    border-radius: 22px;
    scroll-snap-align: center;
  }

  .brand-card__logo {
    max-width: 190px;
    height: 74px;
    margin-top: 8px;
  }

  .brand-card__index {
    align-self: flex-start;
    font-size: 0.92rem;
  }

  .type-switch {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 16px;
    scroll-snap-type: x proximity;
  }

  .type-pill {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 12px 18px;
    scroll-snap-align: start;
  }

  .type-showcase {
    gap: 16px;
    padding: 16px;
  }

  .type-showcase__panel {
    order: 2;
  }

  .type-showcase__material {
    order: 1;
    min-height: 220px;
    border-radius: 22px;
  }

  .type-showcase__image {
    object-position: center center;
  }

  .material-chip {
    right: 12px;
    bottom: 12px;
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  .products-layout {
    gap: 16px;
  }

  .product-preview {
    order: 2;
    top: auto;
    padding: 18px;
    border-radius: 24px;
    touch-action: pan-y;
  }

  .product-preview__surface {
    min-height: 250px;
    padding: 14px;
    border-radius: 22px;
  }

  .preview-badge {
    padding: 7px 11px;
    font-size: 0.76rem;
  }

  .product-preview__header {
    align-items: flex-start;
    gap: 10px;
  }

  .product-preview__summary {
    gap: 8px;
  }

  .product-preview__brand-logo {
    width: 88px;
    height: 42px;
  }

  .product-preview__reference {
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .product-preview__color-dot {
    width: 20px;
    height: 20px;
  }

  .product-preview__header + h3 {
    margin-top: 8px;
    font-size: 1.35rem;
    line-height: 1.12;
  }

  .product-preview__controls {
    display: flex;
  }

  .product-preview__nav {
    display: none;
  }

  .product-preview__counter {
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
  }

  .product-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }

  .product-meta div:last-child {
    grid-column: 1 / -1;
  }

  .product-card {
    padding: 16px;
    border-radius: 22px;
  }

  .product-card h3 {
    font-size: 1.12rem;
  }

  .product-card__thumb {
    height: 120px;
  }

  .product-card__code {
    font-size: 0.72rem;
  }

  .product-empty {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .preview-room__cabinet {
    width: 150px;
    height: 110px;
  }
}

@media (max-width: 480px) {
  .brand-grid {
    grid-auto-columns: minmax(210px, 86%);
  }

  .brand-masthead__logo {
    width: min(220px, 72vw);
    max-width: 220px;
    height: 62px;
  }

  .brand-masthead__portfolio {
    gap: 8px;
    font-size: 0.64rem;
    letter-spacing: 0.13em;
  }

  .brand-masthead__portfolio::before,
  .brand-masthead__portfolio::after {
    width: 28px;
  }

  .section-heading h2 {
    font-size: 1.08rem;
  }

  .detail-page {
    padding: 16px 10px;
  }

  .detail-page__meta {
    grid-template-columns: 1fr;
  }

  .detail-page__meta div {
    min-height: auto;
  }

  .type-showcase__material {
    min-height: 196px;
  }

  .product-preview__surface {
    min-height: 220px;
  }

  .product-preview__controls {
    flex-wrap: wrap;
  }

  .product-preview__counter {
    order: -1;
    width: 100%;
  }

  .product-meta {
    grid-template-columns: 1fr;
  }

  .product-meta div:last-child {
    grid-column: auto;
  }
}
