/**
 * Strona główna — layout mockup screen-home.jsx
 */

/* —— Section headers —— */
.pi-section-head {
	margin-bottom: 50px;
}

.pi-section-head--center {
	text-align: center;
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
}

.pi-section-head--center .pi-eyebrow--center {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.pi-section-head--center .pi-eyebrow--center::before {
	content: "";
	width: 24px;
	height: 1px;
	background: var(--pi-gold);
	flex-shrink: 0;
}

.pi-section-head .pi-display {
	font-size: clamp(2rem, 4.5vw, 3.5rem);
	font-weight: 400;
	line-height: 1.08;
	margin: 16px 0 0;
}

.pi-section-head .pi-script {
	color: var(--pi-gold-deep);
	font-size: clamp(2.5rem, 5.5vw, 4.375rem);
	display: inline-block;
}

.pi-section-head__break {
	display: block;
}

/* —— USP bar —— */
.pi-usp-bar {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
	padding: 22px clamp(20px, 4vw, 56px);
	border-bottom: 1px solid var(--pi-line);
	font-size: 12.5px;
	background: var(--pi-bg);
}

.pi-usp-bar__item {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--pi-ink-soft);
	letter-spacing: 0.04em;
}

.pi-usp-bar__item .pi-icon {
	color: var(--pi-gold-deep);
	flex-shrink: 0;
}

/* —— Shared home section container —— */
.pi-home-section__inner {
	width: 100%;
	max-width: 1328px;
	margin-inline: auto;
}

/* —— Categories bento —— */
.pi-home-categories {
	padding: 100px clamp(20px, 4vw, 56px);
}

.pi-home-categories__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	grid-template-rows: minmax(280px, 320px);
	gap: 18px;
}

.pi-cat-tile {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: 100%;
	text-decoration: none;
	color: var(--pi-bg);
	background: var(--pi-bg-deep);
}

.pi-cat-tile--featured {
	grid-row: auto;
	grid-column: auto;
}

.pi-cat-tile__photo {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: var(--pi-bg-deep);
}

.pi-cat-tile__media,
.pi-cat-tile__img {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	transform: translate(-50%, -50%) scale(1);
	transform-origin: center center;
}

.pi-cat-tile__placeholder {
	position: absolute;
	inset: 0;
}

.pi-cat-tile__placeholder--warm {
	background: linear-gradient(135deg, #f5efe3 0%, #e8dfcb 100%);
}

.pi-cat-tile__placeholder--gold {
	background: linear-gradient(135deg, #f3e9d0 0%, #e8d49a 100%);
}

.pi-cat-tile__placeholder--deep {
	background: linear-gradient(135deg, #1a1814 0%, #2a2622 100%);
}

.pi-cat-tile__photo,
.pi-cat-tile__img,
.pi-cat-tile__placeholder {
	transition: transform 0.9s var(--pi-ease);
	transform-origin: center center;
	will-change: transform;
}

.pi-cat-tile:hover .pi-cat-tile__img {
	transform: translate(-50%, -50%) scale(1.05);
}

.pi-cat-tile:hover .pi-cat-tile__placeholder {
	transform: scale(1.03);
}

.pi-cat-tile__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.55) 100%);
	pointer-events: none;
}

.pi-cat-tile__frame {
	position: absolute;
	inset: 14px;
	border: 1px solid rgba(201, 162, 74, 0.6);
	pointer-events: none;
	opacity: 0.7;
	transition: opacity 0.3s var(--pi-ease);
}

.pi-cat-tile:hover .pi-cat-tile__frame {
	opacity: 1;
}

.pi-cat-tile__overlay {
	position: absolute;
	left: 22px;
	right: auto;
	bottom: 22px;
	top: auto;
	display: block;
	padding: 0;
	z-index: 2;
	pointer-events: none;
}

.pi-cat-tile__icon {
	position: absolute;
	top: 18px;
	left: 18px;
	color: rgba(250, 246, 238, 0.85);
}

.pi-cat-tile__count {
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: none;
	color: rgba(250, 246, 238, 0.7);
}

.pi-cat-tile__title {
	margin: 4px 0 0;
	font-family: var(--pi-serif);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.15;
	color: var(--pi-bg);
}

.pi-cat-tile--featured .pi-cat-tile__title {
	font-size: 1.5rem;
}

.pi-cat-tile__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--pi-gold);
}

/* —— Bestsellers —— */
.pi-home-bestsellers {
	padding: 60px clamp(20px, 4vw, 56px) 100px;
	background: var(--pi-bg-warm);
}

.pi-home-bestsellers__layout {
	display: grid;
	grid-template-columns: minmax(220px, 1.15fr) repeat(4, minmax(0, 1fr));
	gap: 26px;
	align-items: start;
}

.pi-home-bestsellers__intro-col {
	grid-column: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-top: 4px;
}

.pi-home-bestsellers .pi-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.pi-home-bestsellers .pi-eyebrow::before {
	content: "";
	width: 24px;
	height: 1px;
	background: var(--pi-gold);
	flex-shrink: 0;
}

.pi-home-bestsellers__intro-col .pi-display {
	font-size: clamp(1.75rem, 2.2vw, 2.75rem);
	margin: 12px 0 24px;
	font-weight: 400;
	line-height: 1.08;
}

.pi-home-bestsellers__products {
	grid-column: 2 / -1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
	min-width: 0;
}

.pi-home-bestsellers__link {
	margin-top: 0;
	text-decoration: none;
}

.pi-home-bestsellers__nav {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 28px;
}

.pi-home-bestsellers__nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--pi-line);
	background: var(--pi-paper);
	color: var(--pi-ink);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pi-home-bestsellers__nav-btn:hover,
.pi-home-bestsellers__nav-btn.is-active {
	background: var(--pi-ink);
	border-color: var(--pi-ink);
	color: var(--pi-bg);
}

/* —— Home product card (mockup ProductCard) —— */
.pi-home-product-card {
	position: relative;
}

.pi-home-product-card__visual {
	position: relative;
}

.pi-home-product-card__wishlist {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--pi-ink);
	cursor: pointer;
	transition: background 0.2s var(--pi-ease), color 0.2s var(--pi-ease);
}

.pi-home-product-card__wishlist:hover {
	background: var(--pi-paper);
	color: var(--pi-gold-deep);
}

.pi-home-product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--pi-bg-warm);
	text-decoration: none;
}

.pi-home-product-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--pi-ease);
	transform-origin: center;
}

.pi-home-product-card:hover .pi-home-product-card__img {
	transform: scale(1.05);
}

.pi-home-product-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f5efe3, #e8dfcb);
}

.pi-home-product-card__badges {
	position: absolute;
	top: 14px;
	left: 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 2;
}

.pi-home-product-card__badges .pi-badge-ghost {
	background: rgba(255, 255, 255, 0.92);
	color: var(--pi-ink);
	border-color: var(--pi-line);
}

.pi-home-product-card__quick {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 14px;
	padding: 11px 14px;
	background: rgba(14, 14, 15, 0.92);
	color: var(--pi-bg);
	border: none;
	font-family: var(--pi-sans);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 600;
	text-align: center;
	opacity: 0;
	transition: opacity 0.25s var(--pi-ease);
	pointer-events: none;
	z-index: 2;
}

.pi-home-product-card__media:hover .pi-home-product-card__quick {
	opacity: 1;
}

.pi-home-product-card__body {
	padding-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pi-home-product-card__brand {
	margin: 0;
	font-size: 10.5px;
	color: var(--pi-gold-deep);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 600;
}

.pi-home-product-card__title {
	margin: 0;
	font-family: var(--pi-serif);
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.25;
}

.pi-home-product-card__title a {
	color: var(--pi-ink);
	text-decoration: none;
}

.pi-home-product-card__title a:hover {
	color: var(--pi-gold-deep);
}

.pi-home-product-card__rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
}

.pi-home-product-card__rating .star-rating {
	margin: 0;
	font-size: 13px;
}

.pi-home-product-card__price {
	margin-top: 6px;
	font-family: var(--pi-serif);
	font-size: 1.1875rem;
	font-weight: 400;
	color: var(--pi-ink);
}

.pi-home-product-card__price .amount {
	color: inherit;
	font-family: inherit;
	font-weight: inherit;
}

.pi-home-product-card__price del {
	font-size: 0.85em;
	color: var(--pi-muted);
}

.pi-home-product-card__price ins {
	text-decoration: none;
}

.pi-home-product-card__omnibus {
	margin-top: 2px;
	font-family: var(--pi-sans, inherit);
	font-size: 0.6875rem;
	font-weight: 400;
	color: var(--pi-muted);
}

/* —— Why us —— */
.pi-home-why {
	padding: 100px clamp(20px, 4vw, 56px);
	background: var(--pi-bg);
}

.pi-home-why__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--pi-line);
	border-bottom: 1px solid var(--pi-line);
}

.pi-home-why__item {
	padding: 50px 30px;
	text-align: center;
	border-right: 1px solid var(--pi-line);
}

.pi-home-why__item:last-child {
	border-right: 0;
}

.pi-home-why__item .pi-icon {
	color: var(--pi-gold-deep);
	margin: 0 auto;
}

.pi-home-why__title {
	margin: 20px 0 12px;
	font-family: var(--pi-serif);
	font-size: 1.375rem;
	font-weight: 500;
	color: var(--pi-ink);
}

.pi-home-why__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--pi-muted);
}

/* —— Concierge —— */
.pi-home-concierge {
	padding: 0 clamp(20px, 4vw, 56px) 0 0;
	background: var(--pi-bg-deep);
	color: var(--pi-bg);
	overflow: hidden;
}

.pi-home-concierge__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 0;
	align-items: stretch;
	max-width: none;
	margin: 0;
	min-height: clamp(360px, 42vw, 520px);
}

.pi-home-concierge__media {
	position: relative;
	min-height: 100%;
	align-self: stretch;
	overflow: hidden;
	background: var(--pi-bg-deep);
}

.pi-home-concierge__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to right,
		transparent 0%,
		transparent 50%,
		color-mix(in srgb, var(--pi-bg-deep) 30%, transparent) 62%,
		var(--pi-bg-deep) 82%,
		var(--pi-bg-deep) 100%
	);
	pointer-events: none;
}

.pi-home-concierge__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 520px;
	padding: clamp(56px, 7vw, 100px) clamp(16px, 3vw, 32px) clamp(56px, 7vw, 100px) clamp(24px, 4vw, 48px);
}

.pi-home-concierge__media img,
.pi-home-concierge__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: clamp(360px, 42vw, 520px);
	object-fit: cover;
	object-position: center left;
}

.pi-home-concierge__eyebrow {
	color: var(--pi-gold);
}

.pi-home-concierge__title {
	font-size: clamp(2rem, 4vw, 3.375rem);
	line-height: 1.05;
	margin: 20px 0 16px;
	color: var(--pi-bg);
	font-weight: 400;
}

.pi-home-concierge__title .pi-script {
	color: var(--pi-gold);
	font-size: 1.15em;
}

.pi-home-concierge__text {
	color: rgba(250, 246, 238, 0.72);
	font-size: 16px;
	line-height: 1.7;
	max-width: 480px;
	margin: 0;
}

.pi-home-concierge__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}

.pi-home-concierge .pi-btn-ghost {
	border-color: rgba(250, 246, 238, 0.45);
	color: var(--pi-bg);
}

.pi-home-concierge .pi-btn-ghost:hover {
	border-color: var(--pi-gold);
	color: var(--pi-gold);
	background: transparent;
}

/* —— Reviews + Instagram —— */
.pi-home-social {
	padding: 100px clamp(20px, 4vw, 56px);
}

.pi-home-social__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 80px;
	align-items: start;
	max-width: 1280px;
	margin: 0 auto;
}

.pi-home-social__grid--reviews-only,
.pi-home-social__grid--instagram-only {
	grid-template-columns: minmax(0, 1fr);
	max-width: 720px;
}

.pi-home-social__grid--instagram-only {
	max-width: 640px;
}

.pi-home-reviews__score {
	font-size: clamp(2rem, 4vw, 3rem);
	margin: 12px 0 30px;
	font-weight: 400;
}

.pi-home-reviews__score span {
	font-size: 18px;
	color: var(--pi-muted);
}

.pi-home-reviews__list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pi-home-review {
	padding-bottom: 20px;
	border-bottom: 1px solid var(--pi-line);
}

.pi-home-review__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.pi-home-review__person {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pi-home-review__avatar {
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: var(--pi-gold-glaze);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--pi-serif);
	font-size: 16px;
	color: var(--pi-gold-deep);
	flex-shrink: 0;
}

.pi-home-review__name {
	font-weight: 600;
	font-size: 14px;
}

.pi-home-review__context {
	font-size: 11px;
	color: var(--pi-muted);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pi-home-review__text {
	margin: 0;
	color: var(--pi-ink-soft);
	line-height: 1.7;
}

.pi-home-review__stars {
	color: var(--pi-gold-deep);
	font-size: 14px;
	letter-spacing: 2px;
}

.pi-home-instagram__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 24px;
}

.pi-home-instagram__tile {
	display: block;
	aspect-ratio: 1;
	background: linear-gradient(145deg, var(--pi-bg-warm), var(--pi-line));
	overflow: hidden;
}

.pi-home-instagram__tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Hero title — mockup: jedna linia + skrypt */
.pi-hero__title--mockup .pi-hero__line--serif {
	display: inline;
}

.pi-hero__title--mockup .pi-hero__line--script {
	display: block;
	margin-top: 4px;
}

.pi-hero__heart {
	display: none;
}

@media (min-width: 1101px) {
	.pi-home-bestsellers__nav {
		display: none;
	}
}

@media (max-width: 1100px) {
	.pi-home-categories__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-rows: auto;
	}

	.pi-home-bestsellers__layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.pi-home-bestsellers__products {
		grid-column: 1;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pi-home-bestsellers__nav {
		display: flex;
	}

	.pi-home-why__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pi-home-why__item:nth-child(2) {
		border-right: 0;
	}

	.pi-home-why__item:nth-child(1),
	.pi-home-why__item:nth-child(2) {
		border-bottom: 1px solid var(--pi-line);
	}

	.pi-home-concierge {
		padding: 0 clamp(20px, 4vw, 56px);
	}

	.pi-home-concierge__grid {
		grid-template-columns: 1fr;
		gap: 0;
		min-height: 0;
	}

	.pi-home-concierge__media::after {
		background: linear-gradient(
			to bottom,
			transparent 0%,
			transparent 45%,
			color-mix(in srgb, var(--pi-bg-deep) 40%, transparent) 70%,
			var(--pi-bg-deep) 100%
		);
	}

	.pi-home-concierge__media img,
	.pi-home-concierge__img {
		min-height: clamp(240px, 55vw, 360px);
		object-position: center center;
	}

	.pi-home-concierge__content {
		padding: 40px 0 56px;
		max-width: none;
	}

	.pi-home-social__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

@media (max-width: 768px) {
	.pi-usp-bar {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.pi-home-categories__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pi-cat-tile {
		min-height: 240px;
	}

	.pi-home-bestsellers__products {
		grid-column: 1;
		grid-auto-flow: column;
		grid-auto-columns: calc((100% - 26px) / 2);
		grid-template-columns: unset;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
		padding-bottom: 4px;
	}

	.pi-home-bestsellers__products::-webkit-scrollbar {
		display: none;
	}

	.pi-home-bestsellers__products .pi-home-product-card {
		scroll-snap-align: start;
	}

	.pi-home-why__grid {
		grid-template-columns: 1fr;
	}

	.pi-home-why__item {
		border-right: 0;
		border-bottom: 1px solid var(--pi-line);
		padding: 36px 20px;
	}

	.pi-home-why__item:last-child {
		border-bottom: 0;
	}

	.pi-home-instagram__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.pi-home-bestsellers__products {
		grid-auto-columns: 85%;
	}
}
