:root {
	--bg: #fffaf4;
	--surface: #ffffff;
	--ink: #2f2a26;
	--ink-soft: #6d635b;
	--line: #ecdfd2;
	--accent: #e8795a;
	--accent-ink: #ffffff;
	--mint: #7fb6a4;
	--sky: #8fb8d9;
	--radius: 16px;
	--shadow: 0 1px 2px rgba(47, 42, 38, 0.05), 0 8px 24px rgba(47, 42, 38, 0.07);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 16px/1.6 ui-rounded, "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.shell {
	width: min(1120px, 100% - 2.5rem);
	margin-inline: auto;
}

a { color: inherit; }

/* ------------------------------- header ------------------------------- */

.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 10;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
	flex-wrap: wrap;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
}

.brand-mark {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	flex: none;
	background:
		radial-gradient(circle at 30% 30%, var(--accent) 0 38%, transparent 39%),
		radial-gradient(circle at 70% 68%, var(--mint) 0 30%, transparent 31%),
		linear-gradient(135deg, #fde6d8, #e6f0ea);
	border: 1px solid var(--line);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.05rem; letter-spacing: 0.01em; }
.brand-text small { color: var(--ink-soft); font-size: 0.78rem; }

.lang {
	font-size: 0.85rem;
	padding: 0.32rem 0.7rem;
	border-radius: 999px;
	border: 1px solid var(--line);
	text-decoration: none;
	color: var(--ink-soft);
	background: var(--surface);
	white-space: nowrap;
}

.lang:hover { border-color: var(--accent); color: var(--accent); }


/* -------------------------------- hero -------------------------------- */

.hero { padding: 3rem 0 2rem; max-width: 46rem; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.15; margin: 0 0 0.6rem; }
.hero p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

/* -------------------------------- grid -------------------------------- */

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.4rem;
	padding-bottom: 3rem;
}

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(47, 42, 38, 0.1); }

.card-image { display: block; aspect-ratio: 4 / 3; background: #f6efe8; }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-body { padding: 0.95rem 1.05rem 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.05rem; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { color: var(--accent); }

.tagline { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }
.tagline-lg { font-size: 1.1rem; color: var(--ink); }

.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }

.price { font-weight: 700; color: var(--accent); }
.price-lg { font-size: 1.4rem; margin: 0.4rem 0 0.8rem; }

/* ------------------------------- buttons ------------------------------ */

.btn {
	display: inline-block;
	border: 1px solid var(--accent);
	background: var(--accent);
	color: var(--accent-ink);
	border-radius: 999px;
	padding: 0.5rem 1.05rem;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.btn:hover { filter: brightness(0.95); }

.btn-quiet { background: transparent; color: var(--accent); }
.btn-danger { background: transparent; border-color: #d1584f; color: #d1584f; }

/* -------------------------------- detail ------------------------------- */

.crumb { margin: 1.6rem 0 0.4rem; font-size: 0.9rem; }
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

.detail {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 2.2rem;
	padding-bottom: 3.5rem;
	align-items: start;
}

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

.detail-media { min-width: 0; }

.detail-image {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface);
	box-shadow: var(--shadow);
}

.detail-image img { width: 100%; display: block; }
.detail-body h1 { margin: 0 0 0.5rem; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.meta { color: var(--ink-soft); margin: 0 0 1rem; font-size: 0.95rem; }

.ai-note { margin-top: 1.4rem; font-size: 0.76rem; color: var(--ink-soft); opacity: 0.85; }

/* -------------------------------- forms -------------------------------- */

.inquiry {
	border-top: 1px solid var(--line);
	padding-top: 1.3rem;
	margin-top: 1.3rem;
}

.inquiry h2 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.inquiry p { margin: 0 0 1rem; color: var(--ink-soft); font-size: 0.95rem; }

label { display: block; margin-bottom: 0.85rem; font-size: 0.86rem; color: var(--ink-soft); }
label > span { display: block; margin-bottom: 0.25rem; }

input[type="text"], input[type="email"], input[type="number"], input[type="file"], textarea, select {
	width: 100%;
	font: inherit;
	font-size: 0.95rem;
	color: var(--ink);
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
}

textarea { resize: vertical; }

input:focus, textarea:focus {
	outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
	outline-offset: 1px;
	border-color: var(--accent);
}

.notice { padding: 0.7rem 0.9rem; border-radius: 10px; margin: 0 0 1rem; font-size: 0.92rem; }
.notice-ok { background: #e8f4ef; border: 1px solid var(--mint); }
.notice-bad { background: #fdecea; border: 1px solid #e0a49e; }

/* -------------------------------- empty -------------------------------- */

.empty {
	text-align: center;
	padding: 4rem 1rem 5rem;
	color: var(--ink-soft);
}

.empty h1, .empty h2 { color: var(--ink); margin: 0 0 0.5rem; }

/* -------------------------------- footer ------------------------------- */

.site-footer {
	border-top: 1px solid var(--line);
	background: var(--surface);
	padding: 1.6rem 0;
	margin-top: auto;
	font-size: 0.88rem;
	color: var(--ink-soft);
}

.site-footer p { margin: 0.15rem 0; }
.muted { color: var(--ink-soft); font-weight: 400; }

/* -------------------------------- admin -------------------------------- */

.admin .who { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--ink-soft); }

.panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.3rem 1.4rem;
	margin: 1.5rem 0;
	box-shadow: var(--shadow);
}

.panel > h2 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.panel > .muted { margin-top: 0; font-size: 0.9rem; }

.row { display: flex; gap: 0.9rem; align-items: flex-end; flex-wrap: wrap; }
.row .grow { flex: 1 1 14rem; }
.row label { margin-bottom: 0.6rem; }
.row.actions { align-items: center; gap: 0.6rem; margin-top: 0.3rem; }
.row.tags { gap: 0.6rem; }
.tag-field { flex: 1 1 15rem; }

label.check { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem; }
label.check > span { margin: 0; }
label.check input { width: auto; }

.admin-frame {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 1.1rem;
	padding: 1.1rem 0;
	border-top: 1px solid var(--line);
	align-items: start;
}

.admin-frame:first-child { border-top: 0; }

@media (max-width: 720px) { .admin-frame { grid-template-columns: 1fr; } }

.admin-thumb {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: #f6efe8;
}

.admin-fields { min-width: 0; }
.slug { font-size: 0.8rem; color: var(--ink-soft); font-family: ui-monospace, monospace; }

.status { font-size: 0.85rem; color: var(--ink-soft); }
.status.ok { color: #2f7d62; }
.status.bad { color: #c0392b; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th, .admin-table td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--ink-soft); font-weight: 600; }
.admin-table .msg { white-space: pre-wrap; max-width: 34rem; }

/* --------------------------- gallery + specs --------------------------- */

.card-image { position: relative; }

.shots {
	position: absolute;
	right: 0.5rem;
	bottom: 0.5rem;
	background: rgba(47, 42, 38, 0.72);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.14rem 0.46rem;
	border-radius: 999px;
	letter-spacing: 0.02em;
}

.no-image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 180px;
	background:
		repeating-linear-gradient(45deg, #f3ebe3 0 10px, #efe6dc 10px 20px);
}

.dims {
	margin: 0;
	font-size: 0.82rem;
	color: var(--ink-soft);
	font-variant-numeric: tabular-nums;
}

.thumbs {
	display: flex;
	gap: 0.55rem;
	margin-top: 0.7rem;
	flex-wrap: wrap;
}

.thumb {
	width: 76px;
	height: 76px;
	padding: 0;
	border: 2px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	background: #f6efe8;
	cursor: pointer;
	flex: none;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.thumb-active { border-color: var(--accent); }

.specs {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.2rem 0.9rem;
	margin: 0 0 1.1rem;
	font-size: 0.93rem;
}

.specs dt { color: var(--ink-soft); }
.specs dd { margin: 0; }
.specs:empty { display: none; }

/* ------------------------ admin photo management ----------------------- */

.admin-frame { grid-template-columns: 220px minmax(0, 1fr); }

@media (max-width: 860px) { .admin-frame { grid-template-columns: 1fr; } }

.admin-media { min-width: 0; }

.shots-list {
	list-style: none;
	margin: 0 0 0.6rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
	gap: 0.45rem;
}

.shot {
	position: relative;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	background: #f6efe8;
	aspect-ratio: 1;
}

.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shot-badge {
	position: absolute;
	left: 0;
	top: 0;
	background: var(--accent);
	color: #fff;
	font-size: 0.6rem;
	font-weight: 700;
	padding: 0.1rem 0.32rem;
	border-bottom-right-radius: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.shot-tools {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	justify-content: center;
	gap: 0.1rem;
	background: rgba(47, 42, 38, 0.68);
	padding: 0.1rem 0;
}

.shot-tools button {
	background: none;
	border: 0;
	color: #fff;
	font: inherit;
	font-size: 0.78rem;
	line-height: 1;
	padding: 0.18rem 0.3rem;
	cursor: pointer;
	border-radius: 4px;
}

.shot-tools button:hover { background: rgba(255, 255, 255, 0.22); }
.shot-tools button:disabled { opacity: 0.45; cursor: default; }

.add-shot { font-size: 0.8rem; margin-bottom: 0; }
.add-shot input { font-size: 0.8rem; padding: 0.35rem 0.4rem; }

select[data-field="unit"], select[name="unit"] { width: auto; min-width: 4.5rem; }

/* ------------------------ enquiry row delete ------------------------- */

.btn-small {
	padding: 0.26rem 0.6rem;
	font-size: 0.8rem;
	border-radius: 7px;
}

.btn-danger:hover { background: #d1584f; color: #fff; }

.admin-table .row-tools {
	width: 1%;
	white-space: nowrap;
	vertical-align: top;
	text-align: right;
}

.btn[disabled] { opacity: 0.5; cursor: default; filter: none; }

#inquiry-status:empty { display: none; }
