:root {
	--loom-bg: #e3c9c0;
	--loom-bg-soft: rgba(227, 201, 192, 0.95);
	--loom-card: #f5eee9;
	--loom-text: #2e1f1a;
	--loom-muted: rgba(46, 31, 26, 0.7);
	--loom-subtle: rgba(46, 31, 26, 0.6);
	--loom-accent: #2e1f1a;
	--loom-accent-dark: #241712;
	--loom-accent-soft: #d2bcb3;
	--loom-accent-light: #e9d7d0;
	--loom-white: #ffffff;
	--loom-white-soft: rgba(255, 255, 255, 0.95);
	--loom-border: rgba(46, 31, 26, 0.12);
	--loom-border-soft: rgba(210, 188, 179, 0.2);
	--loom-border-light: rgba(233, 215, 208, 0.2);
	--loom-shadow-card: 0 8px 12px rgba(46, 31, 26, 0.12);
	--loom-shadow-header: 0 2px 5px rgba(0, 0, 0, 0.1);
	--loom-shadow-header-scrolled: 0 1px 3px rgba(0, 0, 0, 0.2);
	--loom-shadow-cta: 0 10px 20px rgba(46, 31, 26, 0.18);
	--loom-shadow-logo: 0 10px 18px rgba(46, 31, 26, 0.18);
	--loom-footer-gradient: linear-gradient(135deg, var(--loom-accent) 0%, var(--loom-accent-dark) 100%);
	--loom-status-instock-bg: rgba(46, 31, 26, 0.08);
	--loom-status-low-bg: rgba(210, 188, 179, 0.06);
	--loom-status-out-bg: rgba(233, 215, 208, 0.06);
	--loom-header-height: 180px;
	--loom-header-shrink-height: 64px;
	--loom-content-max: 1320px;
	--loom-section-gap: 44px;
	--loom-radius-card: 16px;
	--loom-radius-img: 16px;
	--loom-radius-btn: 12px;
	--loom-radius-pill: 999px;
	--loom-font-main: "Georgia", "Times New Roman", serif;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--loom-white);
	color: var(--loom-text);
	font-family: var(--loom-font-main);
	text-rendering: optimizeLegibility;
}

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--loom-header-height);
	background-color: var(--loom-white);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	transition: height 0.4s ease-in-out, background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.site-header.scrolled {
	height: var(--loom-header-shrink-height);
	background-color: var(--loom-bg-soft);
	box-shadow: var(--loom-shadow-header-scrolled);
}

.site-header .header-inner {
	max-width: var(--loom-content-max);
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.logo-container {
	position: relative;
	height: 100%;
	width: min(520px, 90vw);
	display: flex;
	justify-content: center;
	align-items: center;
}

.logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 100%;
	height: auto;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.logo.active {
	opacity: 1;
}

.logo-large {
	max-height: 200px;
}

.logo-small {
	max-height: 40px;
}

#sticky-header.scrolled #logo-large {
	opacity: 0;
}

#sticky-header.scrolled #logo-small.active {
	opacity: 1;
}

.page {
	max-width: var(--loom-content-max);
	padding: calc(var(--loom-header-height) + 32px) 20px 64px;
	margin: 0 auto;
}

.intro {
	text-align: center;
	margin-bottom: var(--loom-section-gap);
}

h1 {
	margin: 0 0 12px;
	font-size: clamp(30px, 4vw, 44px);
	letter-spacing: 0.01em;
	font-weight: normal;
}

.subtitle {
	margin: 0 0 var(--loom-section-gap);
	color: var(--loom-muted);
	font-size: 18px;
	line-height: 1.6;
}

.grid {
	display: grid;
	gap: 22px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1200px) {
	.grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.grid .card {
	background: var(--loom-card);
	border-radius: var(--loom-radius-card);
	overflow: hidden;
	text-align: center;
	padding: 0 0 20px;
	transition: box-shadow 180ms ease;
	border: 1px solid var(--loom-border);
	cursor: pointer;
}

.grid .card:hover {
	box-shadow: var(--loom-shadow-card);
}

.image-wrap {
	position: relative;
	overflow: hidden;
}

.image-wrap img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	display: block;
	transition: transform 500ms ease-out;
}

.grid .card:hover .image-wrap img {
	transform: scale(1.03);
}

.name {
	margin: 16px 0 6px;
	font-size: 18px;
	letter-spacing: 0.01em;
	font-weight: normal;
}

.note {
	margin: 0 0 10px;
	color: var(--loom-muted);
	font-size: 15px;
}

.price {
	margin: 0;
	font-size: 16px;
	font-weight: normal;
}

.footer {
	text-align: center;
	margin-top: 48px;
	color: var(--loom-muted);
	font-size: 14px;
	line-height: 1.7;
}

.product {
	display: grid;
	gap: 30px;
	grid-template-columns: 1fr;
	align-items: start;
	margin-top: var(--loom-section-gap);
}

@media (min-width: 960px) {
	.product {
		grid-template-columns: 1.1fr 0.9fr;
	}
}

.info {
	padding: 4px 0;
}

.hero img {
	width: 100%;
	height: min(64vh, 640px);
	object-fit: cover;
	display: block;
	border-radius: var(--loom-radius-img);
}

.title {
	margin: 0 0 6px;
	font-size: clamp(28px, 4vw, 38px);
	letter-spacing: 0.01em;
	font-weight: normal;
}

.subtitle-product {
	margin: 0 0 var(--loom-section-gap);
	color: var(--loom-muted);
	font-size: 18px;
	line-height: 1.5;
}

.meta {
	margin: 0 0 12px;
	font-size: 16px;
	color: var(--loom-text);
}

.price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
}

.badge {
	display: inline-block;
	padding: 6px 10px;
	border-radius: var(--loom-radius-pill);
	font-size: 14px;
	border: 1px solid var(--loom-border);
	background: var(--loom-white);
	color: var(--loom-text);
}

.status.in_stock {
	color: var(--loom-accent);
	border-color: var(--loom-border);
	background: var(--loom-status-instock-bg);
}

.status.low_stock {
	color: var(--loom-accent-soft);
	border-color: var(--loom-border-soft);
	background: var(--loom-status-low-bg);
}

.status.out_stock {
	color: var(--loom-accent-light);
	border-color: var(--loom-border-light);
	background: var(--loom-status-out-bg);
}

.pill {
	background: var(--loom-white);
	border: 1px solid var(--loom-border);
	border-radius: var(--loom-radius-pill);
	padding: 6px 12px;
	font-size: 14px;
	color: var(--loom-text);
	display: inline-block;
}

.divider {
	height: 1px;
	width: 100%;
	background: var(--loom-border);
	margin: 18px 0;
}

.actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 10px 0 6px;
}

.qty-input {
	width: 82px;
	padding: 10px 12px;
	border: 1px solid var(--loom-accent-soft);
	border-radius: 10px;
	font-size: 16px;
	font-family: var(--loom-font-main);
	color: var(--loom-text);
	background: var(--loom-white);
}

.cta {
	padding: 12px 18px;
	background: var(--loom-accent);
	color: var(--loom-white);
	border: none;
	border-radius: var(--loom-radius-btn);
	font-size: 16px;
	font-family: var(--loom-font-main);
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.cta:hover {
	transform: translateY(-1px);
	box-shadow: var(--loom-shadow-cta);
}

.cta:active {
	transform: translateY(0);
	box-shadow: none;
}

.back-inline {
	margin: 24px 0 0;
	text-align: center;
	font-size: 15px;
}

.back-inline a {
	color: var(--loom-text);
	text-decoration: none;
	border-bottom: 1px solid var(--loom-text);
}

.longdesc p {
	margin: 0 0 14px;
	color: var(--loom-text);
	line-height: 1.7;
	font-size: 16px;
}

.longdesc p:last-child {
	margin-bottom: 0;
}

.not-found {
	text-align: center;
	padding: 60px 24px;
	background: var(--loom-card);
	border-radius: var(--loom-radius-card);
	border: 1px solid var(--loom-border);
}

.not-found h2 {
	margin: 0 0 12px;
	font-weight: normal;
}

.not-found a {
	color: var(--loom-text);
	text-decoration: none;
	border-bottom: 1px solid var(--loom-text);
}

.site-footer {
	margin-top: var(--loom-section-gap);
	background: var(--loom-bg);
	color: var(--loom-text);
}

.site-footer .footer-inner {
	max-width: var(--loom-content-max);
	margin: 0 auto;
	padding: 40px 20px 44px;
	display: grid;
	gap: 32px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	align-items: flex-start;
}

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

.footer-logo {
	width: 210px;
	max-width: 100%;
	height: auto;
	filter: drop-shadow(var(--loom-shadow-logo));
}

.company-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
	color: var(--loom-text);
}

.social-links {
	display: flex;
	gap: 12px;
	margin-top: 4px;
}

.social-links a {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: transparent;
	transition: transform 160ms ease, opacity 160ms ease;
}

.social-links svg {
	width: 18px;
	height: 18px;
	fill: var(--loom-accent);
}

.social-links a:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}

.footer-col h3 {
	margin: 0 0 10px;
	font-size: 18px;
	letter-spacing: 0.01em;
	color: var(--loom-text);
}

.footer-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.footer-col a {
	display: block;
	color: var(--loom-text);
	text-decoration: none;
	font-size: 15px;
	margin: 6px 0;
}

.footer-col a:hover {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.site-footer .footer-inner {
		text-align: center;
	}

	.footer-brand,
	.footer-col {
		align-items: center;
	}

	.social-links {
		justify-content: center;
	}
}

.coming-card {
	text-align: center;
	padding: 48px 36px;
	display: grid;
	place-items: center;
}

.coming-logo {
	width: 710px;
	max-width: 100%;
	height: auto;
	margin: 0 auto 26px;
	display: block;
	filter: drop-shadow(var(--loom-shadow-logo));
}

.coming-en {
	font-size: 24px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--loom-subtle);
}
