/* Domani catalog — mobile first. The render is the hero; everything else stays out of its way. */
:root {
	--ink: #151412;
	--ink-2: #5d5953;
	--paper: #f6f3ee;
	--card: #ffffff;
	--line: #e4ded4;
	--accent: #8a6a43;
	--wa: #1f8f4e;
	--radius: 14px;
	--gutter: 16px;
	--top: 52px;
	--chips: 48px;
	--ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.dc {
	margin: 0;
	font-family: Assistant, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.5;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
.dc a { color: inherit; }
.dc img { display: block; max-width: 100%; }
.dc button { font: inherit; color: inherit; }
.dc svg { width: 20px; height: 20px; flex: none; }

/* ---------- top bar + chips ---------- */
.dc-top {
	position: sticky; top: 0; z-index: 20;
	height: var(--top);
	display: flex; align-items: center; justify-content: space-between;
	padding: 0 var(--gutter);
	background: var(--paper);
}
.dc-brand { text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: .2px; display: flex; align-items: center; }
.dc-brand img { height: 28px; width: auto; }
.dc-site { font-size: 15px; color: var(--ink-2); text-decoration: none; }

.dc-chips {
	position: sticky; top: var(--top); z-index: 19;
	display: flex; gap: 8px;
	padding: 6px var(--gutter) 10px;
	overflow-x: auto; scrollbar-width: none;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.dc-chips::-webkit-scrollbar { display: none; }
.dc-chips a {
	flex: none;
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
	background: var(--card);
}
.dc-chips a.k-space { border-style: dashed; }
.dc-chips a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- grid ---------- */
.dc-grid-wrap { padding: 20px var(--gutter) 96px; max-width: 1280px; margin: 0 auto; }
.dc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dc-head h1 { margin: 0; font-size: 31px; line-height: 1.15; }
.dc-count { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.dc-copy {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 14px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--card); cursor: pointer;
	font-size: 15px; white-space: nowrap;
}
.dc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .dc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .dc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dc-card { display: block; text-decoration: none; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.dc-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--line); }
.dc-card-meta { display: flex; flex-direction: column; padding: 10px 12px 12px; }
.dc-card-meta b { font-size: 17px; letter-spacing: .3px; direction: ltr; text-align: right; }
.dc-card-meta small { font-size: 15px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-empty { color: var(--ink-2); }

/* ---------- view switch: grid / renders ---------- */
.dc-modes { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.dc-modes a { padding: 6px 16px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.dc-modes a.is-on { background: var(--ink); color: #fff; }
.dc-modes small { font-size: 15px; font-weight: 400; opacity: .7; }

/* ---------- WhatsApp ---------- */
.dc-wa {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--wa); color: #fff !important; text-decoration: none;
	border-radius: 999px; padding: 12px 20px; font-weight: 600;
}
.dc-wa--float {
	position: fixed; z-index: 30;
	bottom: max(16px, env(safe-area-inset-bottom));
	inset-inline-start: var(--gutter);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

/* ---------- viewer: the render owns the screen ---------- */
body.dc--viewer { background: var(--ink); color: #fff; overflow: hidden; }
body.dc--viewer .dc-top,
body.dc--viewer .dc-chips {
	position: fixed; inset-inline: 0;
	background: transparent; border: 0;
}
body.dc--viewer .dc-top { top: 0; background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,0)); color: #fff; }
body.dc--viewer .dc-site { color: rgba(255,255,255,.85); }
body.dc--viewer .dc-chips { top: var(--top); }
body.dc--viewer .dc-chips a { background: rgba(0,0,0,.35); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
body.dc--viewer .dc-chips a.is-on { background: #fff; color: var(--ink); }

.dc-viewer { position: relative; height: 100vh; height: 100dvh; }
.dc-track {
	display: flex; height: 100%;
	overflow-x: auto; overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	outline: none;
}
.dc-track::-webkit-scrollbar { display: none; }
.dc-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; overflow: hidden; }
.dc-hero { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

.dc-bar {
	position: absolute; inset-inline: 0; bottom: 0;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
	padding: 48px var(--gutter) max(18px, env(safe-area-inset-bottom));
	background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.6));
}
.dc-id { display: flex; flex-direction: column; min-width: 0; }
.dc-id b { font-size: 23px; line-height: 1.1; direction: ltr; text-align: right; letter-spacing: .4px; }
.dc-id span { font-size: 15px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-actions { display: flex; gap: 8px; flex: none; }
.dc-btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 44px; min-width: 44px; padding: 0 16px;
	border-radius: 999px; border: 0; cursor: pointer;
	text-decoration: none; font-weight: 600; font-size: 17px;
}
.dc-btn--spec { background: #fff; color: var(--ink) !important; }
.dc-btn--wa { background: var(--wa); color: #fff !important; padding: 0; width: 44px; }
.dc-btn--icon { background: rgba(255,255,255,.18); color: #fff; padding: 0; width: 44px; backdrop-filter: blur(6px); }

.dc-nav {
	display: none;
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px; border-radius: 50%;
	border: 0; background: rgba(0,0,0,.35); color: #fff; font-size: 31px; line-height: 1; cursor: pointer;
}
.dc-nav--prev { inset-inline-start: 16px; }
.dc-nav--next { inset-inline-end: 16px; }
@media (hover: hover) and (min-width: 900px) { .dc-nav { display: block; } }
.dc-pos {
	position: absolute; top: calc(var(--top) + var(--chips) + 8px); inset-inline-end: var(--gutter);
	margin: 0; font-size: 15px; padding: 2px 10px; border-radius: 999px; background: rgba(0,0,0,.35);
}

/* A model without a room render: the swatch as a clean tile, never stretched to the screen. */
.dc-slide.is-swatch { background: radial-gradient(120% 80% at 50% 35%, #2a2723, var(--ink)); }
.dc-slide.is-swatch .dc-hero {
	inset: auto; top: calc(var(--top) + var(--chips) + 48px); left: 50%; transform: translateX(-50%);
	width: min(78vw, 56vh, 560px); height: auto; aspect-ratio: 1 / 1; object-fit: cover;
	border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

/* Slideshow (renders): arrows on every screen, a back-to-grid pill and fullscreen. */
.dc-viewer--slides .dc-nav { display: block; width: 44px; height: 44px; font-size: 27px; }
.dc-slidebar { position: absolute; z-index: 5; top: calc(var(--top) + var(--chips) + 8px); inset-inline-start: var(--gutter); display: flex; gap: 8px; }
.dc-pill { padding: 4px 14px; border-radius: 999px; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 15px; text-decoration: none; cursor: pointer; backdrop-filter: blur(6px); }
html:fullscreen .dc-chips, html:fullscreen .dc-top { display: none; }

/* ---------- spec sheet: rises from below, the render stays visible above ---------- */
.dc-sheet { position: fixed; inset: 0; z-index: 40; visibility: hidden; pointer-events: none; color: var(--ink); }
.dc-sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.25); opacity: 0; transition: opacity .25s var(--ease); }
.dc-sheet-panel {
	position: absolute; inset-inline: 0; bottom: 0;
	max-height: 62vh; overflow-y: auto; overscroll-behavior: contain;
	background: var(--card);
	border-radius: 20px 20px 0 0;
	padding: 10px var(--gutter) max(20px, env(safe-area-inset-bottom));
	transform: translateY(100%);
	transition: transform .3s var(--ease);
}
.dc-sheet:target, .dc-sheet.is-open { visibility: visible; pointer-events: auto; }
.dc-sheet:target .dc-sheet-scrim, .dc-sheet.is-open .dc-sheet-scrim { opacity: 1; }
.dc-sheet:target .dc-sheet-panel, .dc-sheet.is-open .dc-sheet-panel { transform: translateY(0); }
.dc-grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 10px; }
.dc-sheet header { display: flex; align-items: center; gap: 12px; }
.dc-sheet header > div { flex: 1; min-width: 0; }
.dc-sheet h2 { margin: 0; font-size: 23px; direction: ltr; text-align: right; }
.dc-sheet header p { margin: 0; color: var(--ink-2); font-size: 15px; }
.dc-swatch { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.dc-x { width: 44px; height: 44px; display: grid; place-items: center; font-size: 31px; text-decoration: none; color: var(--ink-2); }
.dc-desc { margin: 12px 0 0; }
.dc-badges { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dc-badges li { font-size: 15px; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--accent); font-weight: 600; }
.dc-spec { margin: 14px 0 0; border-top: 1px solid var(--line); }
.dc-spec div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dc-spec dt { color: var(--ink-2); }
.dc-spec dd { margin: 0; font-weight: 600; text-align: left; }
.dc-sheet .dc-wa { width: 100%; margin-top: 16px; }
.dc-note { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); }

@media (min-width: 900px) {
	.dc-sheet-panel { inset-inline-start: auto; inset-inline-end: 0; top: 0; max-height: none; width: 420px; border-radius: 0; transform: translateX(-100%); }
	[dir="rtl"] .dc-sheet-panel { transform: translateX(-100%); }
	.dc-sheet:target .dc-sheet-panel, .dc-sheet.is-open .dc-sheet-panel { transform: translateX(0); }
	.dc-grip { display: none; }
}

/* ---------- toast ---------- */
.dc-toast {
	position: fixed; z-index: 60; left: 50%; bottom: 96px; transform: translateX(-50%);
	background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
	.dc-sheet-panel, .dc-sheet-scrim { transition: none; }
	.dc-track { scroll-behavior: auto; }
}
