/* ============================================================================
   HOME.CSS — stylowanie strony głównej
   ============================================================================ */

/* ----------------------------------------------------------------------------
   Home: shared section header
   ---------------------------------------------------------------------------- */
.home-section-header {
	text-align: center;
	max-width: 48rem;
	margin: 0 auto 3rem;
}
.home-section-header__eyebrow {
	display: inline-block;
	color: hsl(var(--oak));
	font-weight: 500;
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}
.home-section-header__eyebrow--on-dark {
	color: hsl(var(--oak));
}
.home-section-header__title {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 600;
	color: hsl(var(--foreground));
	margin: 0;
}

/* ----------------------------------------------------------------------------
   HERO
   ---------------------------------------------------------------------------- */
.home-hero {
	position: relative;
	min-height: 90vh;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.home-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.home-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 35%;
}
.home-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right,
		hsl(var(--background) / 0.96),
		hsl(var(--background) / 0.85) 35%,
		hsl(var(--background) / 0.4) 65%,
		hsl(var(--background) / 0) 100%);
}
.home-hero__inner {
	position: relative;
	z-index: 1;
	padding-top: 3rem;
	padding-bottom: 3rem;
	width: 100%;
}
.home-hero__content {
	max-width: 36rem;
}
.home-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: hsl(var(--pine) / 0.3);
	border-radius: var(--radius);
	margin-bottom: 2rem;
	font-size: 0.875rem;
	font-weight: 500;
}
.home-hero__badge svg { color: hsl(var(--oak)); }
.home-hero__title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 5vw, 3.75rem);
	font-weight: 600;
	color: hsl(var(--foreground));
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 1.5rem;
}
.home-hero__title-accent { color: hsl(var(--oak)); }
.home-hero__description {
	font-size: clamp(1rem, 2vw, 1.25rem);
	color: hsl(var(--muted-foreground));
	line-height: 1.6;
	margin: 0 0 2.5rem;
	max-width: 32rem;
}
.home-hero__ctas {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 3rem;
}
@media (min-width: 640px) {
	.home-hero__ctas { flex-direction: row; }
}
.home-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	padding-top: 2rem;
	border-top: 1px solid hsl(var(--border));
}
.home-hero__trust-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.875rem;
}
.home-hero__trust-item strong {
	display: block;
	font-weight: 500;
	color: hsl(var(--foreground));
	line-height: 1.2;
}
.home-hero__trust-item small {
	display: block;
	color: hsl(var(--muted-foreground));
	font-size: 0.8125rem;
}
.home-hero__trust-icon {
	width: 2.5rem;
	height: 2.5rem;
	background: hsl(var(--pine) / 0.5);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	color: hsl(var(--oak));
	flex-shrink: 0;
}

/* ----------------------------------------------------------------------------
   CATEGORIES
   ---------------------------------------------------------------------------- */
.home-categories {
	background: hsl(var(--background));
}
.home-categories__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
@media (min-width: 768px) {
	.home-categories__grid { grid-template-columns: repeat(3, 1fr); }
}
.category-card {
	display: block;
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--radius);
}
.category-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms var(--transition-base);
}
.category-card:hover .category-card__image { transform: scale(1.1); }
.category-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top,
		hsl(var(--ebony) / 0.9),
		hsl(var(--ebony) / 0.3) 50%,
		transparent 100%);
}
.category-card__content {
	position: absolute;
	inset: 0;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: hsl(var(--background));
}
.category-card__content > div:first-child {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
}
.category-card__name {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 600;
	color: hsl(var(--background));
	margin: 0 0 0.25rem;
}
.category-card__desc {
	color: hsl(var(--background) / 0.7);
	font-size: 0.875rem;
	margin: 0;
}
.category-card__count {
	color: hsl(var(--oak));
	font-size: 0.875rem;
	font-weight: 500;
	margin: 0.5rem 0 0;
}
.category-card__arrow {
	width: 2.5rem;
	height: 2.5rem;
	background: hsl(var(--oak));
	color: hsl(var(--background));
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translateY(0.5rem);
	opacity: 0;
	transition: transform var(--transition-base), opacity var(--transition-base);
	flex-shrink: 0;
}
.category-card:hover .category-card__arrow {
	transform: translateY(0);
	opacity: 1;
}

/* ----------------------------------------------------------------------------
   FEATURED PRODUCTS
   ---------------------------------------------------------------------------- */
.home-featured {
	background: hsl(var(--background));
}
.home-featured__header {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 3rem;
}
@media (min-width: 768px) {
	.home-featured__header {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}
}
.home-featured__description {
	color: hsl(var(--muted-foreground));
	margin-top: 1rem;
	max-width: 32rem;
}
.home-featured__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}
@media (min-width: 640px) { .home-featured__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .home-featured__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .home-featured__grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

.product-card {
	background: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	overflow: hidden;
	transition: all 300ms var(--transition-base);
	box-shadow: var(--shadow-sm);
}
.product-card:hover {
	box-shadow: var(--shadow-lg);
	border-color: hsl(var(--oak) / 0.3);
}
.product-card__link {
	display: block;
	color: inherit;
}
.product-card__media {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: hsl(var(--muted));
}
.product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms var(--transition-base);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }

/* MOCKUP — delikatna scena: tło + cień pod miniaturą + miniatura wycentrowana w skali ~70% */
.product-card__media--mockup {
	background: linear-gradient(180deg, #f7f6f3 0%, #ece9e1 100%);
}
.product-card__media--mockup .product-card__mockup-stage {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10% 12%;
}
.product-card__media--mockup img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 16px 24px rgba(0,0,0,0.16)) drop-shadow(0 4px 8px rgba(0,0,0,0.10));
	transition: transform 500ms var(--transition-base);
}
.product-card:hover .product-card__media--mockup img {
	transform: scale(1.04);
}

.product-card__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.25rem 0.625rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: var(--radius);
	color: hsl(var(--background));
	z-index: 1;
}
.product-card__badge--bestseller { background: hsl(var(--oak)); }
.product-card__badge--new { background: hsl(var(--ebony)); }
.product-card__badge--sale { background: #c0392b; color: #fff; }
.product-card__body { padding: 0.875rem 1rem 1rem; }
.product-card__category {
	display: block;
	color: hsl(var(--muted-foreground));
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 0.35rem;
}
.product-card__name {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	color: hsl(var(--foreground));
	margin: 0 0 0.5rem;
	line-height: 1.25;
}
.product-card__price {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: 1rem;
	color: hsl(var(--foreground));
}
.price--old {
	color: hsl(var(--muted-foreground));
	text-decoration: line-through;
	font-size: 0.8125rem;
	font-weight: 500;
}

/* ----------------------------------------------------------------------------
   CRAFT
   ---------------------------------------------------------------------------- */
.home-craft {
	background: hsl(var(--muted) / 0.3);
}
.home-craft__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}
@media (min-width: 1024px) {
	.home-craft__grid {
		grid-template-columns: 1fr 1fr;
		gap: 5rem;
	}
}
.home-craft__media { position: relative; }
.home-craft__frame {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: var(--shadow-frame);
}
.home-craft__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.home-craft__accent {
	position: absolute;
	bottom: -1.5rem;
	right: -1.5rem;
	width: 8rem;
	height: 8rem;
	border: 4px solid hsl(var(--oak) / 0.3);
	border-radius: var(--radius);
	z-index: -1;
}
.home-craft__content {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}
.home-craft__lead {
	color: hsl(var(--muted-foreground));
	line-height: 1.7;
	margin-top: 1.5rem;
}
.home-craft__features {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.home-craft__features li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: hsl(var(--foreground));
}
.home-craft__check {
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: hsl(var(--oak) / 0.15);
	color: hsl(var(--oak));
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* ----------------------------------------------------------------------------
   TESTIMONIALS
   ---------------------------------------------------------------------------- */
.home-testimonials {
	background: hsl(var(--ebony));
	color: hsl(var(--background));
}
.home-testimonials__header {
	text-align: center;
	max-width: 48rem;
	margin: 0 auto 4rem;
}
.home-testimonials__title {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	color: hsl(var(--background));
	margin: 0;
}
.home-testimonials__rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.5rem;
	flex-wrap: wrap;
}
.home-testimonials__stars {
	display: inline-flex;
	gap: 0.25rem;
	color: hsl(var(--oak));
}
.home-testimonials__stars svg {
	fill: hsl(var(--oak));
	stroke: hsl(var(--oak));
}
.home-testimonials__rating-label {
	color: hsl(var(--background) / 0.8);
	font-size: 0.9375rem;
}
.home-testimonials__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}
@media (min-width: 768px) {
	.home-testimonials__grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card {
	background: hsl(var(--background) / 0.05);
	border: 1px solid hsl(var(--background) / 0.1);
	border-radius: var(--radius);
	padding: 2rem;
	position: relative;
}
.testimonial-card__quote {
	position: absolute;
	top: 0.5rem;
	right: 1.5rem;
	font-family: var(--font-display);
	font-size: 5rem;
	line-height: 1;
	color: hsl(var(--oak) / 0.3);
	pointer-events: none;
}
.testimonial-card__stars {
	display: inline-flex;
	gap: 0.25rem;
	margin-bottom: 1.5rem;
	color: hsl(var(--oak));
}
.testimonial-card__stars svg {
	fill: hsl(var(--oak));
	stroke: hsl(var(--oak));
}
.testimonial-card__content {
	color: hsl(var(--background) / 0.8);
	line-height: 1.6;
	margin: 0 0 1.5rem;
	font-size: 0.9375rem;
}
.testimonial-card__author strong {
	display: block;
	color: hsl(var(--background));
	font-weight: 500;
	margin-bottom: 0.25rem;
}
.testimonial-card__author span {
	color: hsl(var(--background) / 0.6);
	font-size: 0.8125rem;
}

/* ----------------------------------------------------------------------------
   CTA
   ---------------------------------------------------------------------------- */
.home-cta {
	background: hsl(var(--pine) / 0.3);
}
.home-cta__inner {
	max-width: 48rem;
	margin: 0 auto;
	text-align: center;
}
.home-cta__icon {
	width: 4rem;
	height: 4rem;
	background: hsl(var(--oak));
	color: hsl(var(--background));
	border-radius: var(--radius);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 2rem;
}
.home-cta__title {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 5vw, 3rem);
	font-weight: 600;
	color: hsl(var(--foreground));
	margin: 0 0 1.5rem;
}
.home-cta__description {
	font-size: 1.125rem;
	color: hsl(var(--muted-foreground));
	margin: 0 auto 2.5rem;
	max-width: 32rem;
	line-height: 1.6;
}
.home-cta__buttons {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	justify-content: center;
}
@media (min-width: 640px) {
	.home-cta__buttons { flex-direction: row; }
}

/* ----------------------------------------------------------------------------
   VARIATION SWATCHES na kartach produktow (v1.5)
   ---------------------------------------------------------------------------- */
.product-card__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0 0 0.5rem;
}
.product-card__swatch {
	display: inline-flex;
	width: 30px;
	height: 30px;
	border: 1.5px solid hsl(var(--border));
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	background: linear-gradient(180deg, #f7f6f3 0%, #ece9e1 100%);
	transition: border-color var(--transition-base), transform var(--transition-base);
	padding: 2px;
	align-items: center;
	justify-content: center;
}
.product-card__swatch img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.product-card__swatch:hover {
	border-color: hsl(var(--oak) / 0.6);
	transform: scale(1.08);
}
.product-card__swatch.is-active {
	border-color: hsl(var(--oak));
	box-shadow: 0 0 0 2px hsl(var(--oak) / 0.2);
}
