/* =========================================================================
   Chubby Chair — Homepage sections
   Mirrors app/page.tsx + app/components/hero-section.tsx
   Mobile-first, then @media (min-width: 768px). RTL-first.
   ========================================================================= */

/* ============================================================ HERO ===== */
.cc-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 720px;
	overflow-x: clip;
}
@media (min-width: 768px) {
	.cc-hero {
		height: calc(100vh - 92px); /* leave room for the fixed header band */
		max-height: 1080px;
		min-height: 640px;
	}
}

.cc-hero__inner {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
}

.cc-hero__blob {
	position: absolute;
	left: -8rem;
	top: 4rem;
	z-index: 0;
	width: 920px;
	overflow: visible;
	pointer-events: none;
}
@media (min-width: 768px) {
	.cc-hero__blob {
		left: -6rem;
		top: 3rem;
		width: 1080px;
	}
}

.cc-hero__grid {
	position: relative;
	z-index: 10;
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding-top: 1rem;
	padding-bottom: 1.5rem;
}
@media (min-width: 768px) {
	.cc-hero__grid {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
		padding-top: 1.5rem;
		padding-bottom: 2rem;
	}
}

/* ----- text side (DOM first -> right in RTL) ----- */
.cc-hero__text {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
	text-align: right;
}
@media (min-width: 768px) {
	.cc-hero__text { padding-top: 2rem; }
}

.cc-hero__title {
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1.25;
}
@media (min-width: 768px) {
	.cc-hero__title {
		font-size: 3rem;
		line-height: 1.15;
	}
}

.cc-hero__buy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}

.cc-hero__prices {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.cc-hero__old {
	font-size: 1.5rem;
	opacity: .3;
}
.cc-hero__prices .cc-amount__num { font-size: 1.5rem; }

.cc-hero__cta {
	display: inline-flex;
	align-items: center;
	direction: ltr;
	gap: 0;
	width: 218px;
	height: 56px;
	padding: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	white-space: nowrap;
}
.cc-hero__cta-arrow {
	display: grid;
	place-items: center;
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 44px;
	background: #000;
	color: #fff;
}
.cc-hero__cta-arrow svg {
	display: block;
	width: 16px;
	height: 12px;
}
.cc-hero__cta-button {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 162px;
	width: 162px;
	height: 56px;
	padding: 10px 20px;
	border-radius: 44px;
	background: #000;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 23px;
}
.cc-hero__cta:hover { opacity: 1; }
.cc-hero__cta-image {
	display: block;
	width: 218px;
	height: 56px;
	max-width: none;
}

/* ----- image side (DOM second -> left in RTL) ----- */
.cc-hero__media {
	position: relative;
	display: flex;
	min-height: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.cc-hero__stage {
	position: relative;
	display: flex;
	width: 100%;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
}

.cc-hero__chair-frame {
	position: relative;
	z-index: 10;
	width: min(366.04px, 78vw);
	aspect-ratio: 366.04 / 602.52;
	transform: scaleX(-1);
	overflow: visible;
}
.cc-hero__chair {
	position: absolute;
	left: 0;
	top: 0;
	width: 102.0544%;
	height: 102.0544%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	transition: filter .5s ease;
}

.cc-hero__tags {
	position: absolute;
	right: 1rem;
	top: 28%;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: .5rem;
}
@media (min-width: 768px) {
	.cc-hero__tags { right: 0; }
}
.cc-hero__tag {
	position: relative;
	display: block;
	height: 76px;
	color: #fff;
}
.cc-hero__tag--a { width: 171px; }
.cc-hero__tag--b { width: 220px; height: 83px; }
.cc-hero__tag--c { width: 221px; height: 71px; }
.cc-hero__tag-shape {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}
.cc-hero__tag-text {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Pelak", var(--font-sans);
	font-size: 16px;
	font-weight: 800;
	line-height: normal;
	white-space: nowrap;
}
.cc-hero__tag-text > span {
	display: block;
	direction: rtl;
	text-align: left;
}
.cc-hero__tag-complete {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
}
.cc-hero__group-overlay {
	display: none;
}

.cc-hero__dots {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-bottom: .5rem;
}

/* ----- bottom-right thumbnails ----- */
.cc-hero__thumbs {
	position: absolute;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 30;
	display: flex;
	align-items: flex-end;
	gap: .75rem;
	pointer-events: none;
}
@media (min-width: 768px) {
	.cc-hero__thumbs {
		bottom: 2rem;
		right: 2.5rem;
	}
}
.cc-hero__thumb {
	position: relative;
	display: grid;
	place-items: center;
	height: 96px;
	width: 96px;
	border-radius: var(--radius);
	background: #fff;
	pointer-events: auto;
}
.cc-hero__thumb:hover { opacity: 1; }
.cc-hero__thumb--chair { border: 2px solid var(--brand-blue); }
.cc-hero__thumb--table {
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
	transition: box-shadow .2s ease;
}
.cc-hero__thumb--table:hover { box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }

.cc-hero__thumb-img {
	position: absolute;
	bottom: 4px;
	left: 50%;
	transform: translateX(-50%);
	width: auto;
	height: 112px;
	object-fit: contain;
	transition: filter .5s ease;
}
.cc-hero__thumb-img--table {
	position: static;
	transform: none;
	height: 56px;
	opacity: .8;
}

/* ===================================================== LIFESTYLE ====== */
.cc-home-lifestyle {
	padding-block: 3rem;
}
.cc-home-lifestyle__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}
@media (min-width: 768px) {
	.cc-home-lifestyle__grid {
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: 380px 320px;
	}
}

.cc-home-lifestyle__photo {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: #fff;
}

.cc-home-lifestyle__photo--tall {
	--cc-lifestyle-mask: url('../img/masks/lifestyle-mask-1.png');
}

.cc-home-lifestyle__photo--top-a {
	--cc-lifestyle-mask: url('../img/masks/lifestyle-mask-2.png');
}

.cc-home-lifestyle__photo--top-b {
	--cc-lifestyle-mask: url('../img/masks/lifestyle-mask-3.png');
}

@supports ((-webkit-mask-image: url('')) or (mask-image: url(''))) {
	.cc-home-lifestyle__photo {
		border-radius: 0;
		-webkit-mask-image: var(--cc-lifestyle-mask);
		mask-image: var(--cc-lifestyle-mask);
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-position: center;
		mask-position: center;
		-webkit-mask-size: 100% 100%;
		mask-size: 100% 100%;
		mask-mode: alpha;
	}
}

@supports not ((-webkit-mask-image: url('')) or (mask-image: url(''))) {
	.cc-home-lifestyle__photo--tall {
		clip-path: polygon(6% 0, 100% 0, 100% 96%, 94% 100%, 0 100%, 0 8%);
	}

	.cc-home-lifestyle__photo--top-a {
		clip-path: polygon(10% 0, 100% 0, 96% 100%, 0 100%, 0 14%);
	}

	.cc-home-lifestyle__photo--top-b {
		clip-path: polygon(0 0, 100% 0, 100% 84%, 92% 100%, 6% 100%, 0 88%);
	}
}
.cc-home-lifestyle__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.cc-home-lifestyle__photo--top-a,
.cc-home-lifestyle__photo--top-b {
	height: 260px;
}
@media (min-width: 768px) {
	.cc-home-lifestyle__photo--tall {
		grid-column-start: 1;
		grid-row: span 2 / span 2;
	}
	.cc-home-lifestyle__photo--top-a {
		grid-column-start: 2;
		grid-row-start: 1;
		height: auto;
	}
	.cc-home-lifestyle__photo--top-b {
		grid-column-start: 3;
		grid-row-start: 1;
		height: auto;
	}
}

.cc-home-lifestyle__band {
	position: relative;
	border-radius: var(--radius-lg);
	background: var(--brand-blue-soft);
	padding: 2.5rem;
	text-align: right;
	overflow: hidden;
}
.cc-home-lifestyle__title,
.cc-home-lifestyle__body {
	position: relative;
	z-index: 1;
}
@media (min-width: 768px) {
	.cc-home-lifestyle__band {
		grid-column: 2 / span 2;
		grid-row-start: 2;
	}
}
.cc-home-lifestyle__title {
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.375;
}
@media (min-width: 768px) {
	.cc-home-lifestyle__title { font-size: 2.25rem; }
}
.cc-home-lifestyle__body {
	margin-top: 1.5rem;
	font-size: 1rem;
	line-height: 1.75;
	opacity: .8;
	direction: rtl;
	text-align: justify;
	text-justify: inter-word;
}
@media (min-width: 768px) {
	.cc-home-lifestyle__body {
		font-size: 1.125rem;
		line-height: 2;
	}
}

/* ================================================= PRODUCT CARDS ====== */
.cc-home-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	padding-block: 3rem;
}
@media (min-width: 768px) {
	.cc-home-cards { grid-template-columns: 1fr 1fr; }
}

.cc-home-card {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--neutral-soft);
	display: block;
}
.cc-home-card:hover { opacity: 1; }

.cc-home-card__row {
	position: absolute;
	left: .75rem;
	right: .75rem;
	top: 2%;
	bottom: 26%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	pointer-events: none;
}
.cc-home-card__img {
	width: 31%;
	max-height: 100%;
	object-fit: contain;
}

.cc-home-card__fade {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 14%;
	pointer-events: none;
}
.cc-home-card__fade--left {
	left: 0;
	background: linear-gradient(to right, var(--neutral-soft), rgba(247, 247, 247, 0));
}
.cc-home-card__fade--right {
	right: 0;
	background: linear-gradient(to left, var(--neutral-soft), rgba(247, 247, 247, 0));
}

.cc-home-card__label {
	position: absolute;
	bottom: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	border-radius: var(--radius);
	background: #fff;
	padding: 1.25rem 1.5rem;
	box-shadow: var(--shadow-card);
}
.cc-home-card__meta {
	margin-inline-start: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: .25rem;
	text-align: right;
}
.cc-home-card__title {
	font-size: 1.5rem;
	font-weight: 800;
}
.cc-home-card__price {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: 1.25rem;
	font-weight: 800;
}

/* ==================================================== HOBBY BANNER ==== */
.cc-home-hobby {
	padding-block: 3rem;
}
.cc-home-hobby__panel {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--brand-blue);
}
.cc-home-hobby__pattern {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .9;
}
.cc-home-hobby__stage {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 360px;
	padding: 4rem 1rem;
}
@media (min-width: 768px) {
	.cc-home-hobby__stage { min-height: 520px; padding-block: 6rem; }
}
.cc-home-hobby__text,
.cc-home-hobby__group {
	position: relative;
	width: min(543.434px, 88vw);
	aspect-ratio: 543.434 / 323.053;
	color: #fff;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .15));
}
.cc-home-hobby__group {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
}
.cc-home-hobby__line {
	position: absolute;
	margin: 0;
	font-size: clamp(64px, 18vw, 123.983px);
	font-weight: 800;
	font-variation-settings: "opsz" 14, "wdth" 100;
	line-height: normal;
	text-align: right;
	white-space: nowrap;
	color: #fff;
}
.cc-home-hobby__line--play {
	left: 1.913%;
	top: 6.583%;
	transform: rotate(4deg);
	transform-origin: center;
}
.cc-home-hobby__line--sit {
	left: 52.616%;
	top: 0;
}
.cc-home-hobby__line--smile {
	left: 26.571%;
	top: 54.327%;
	transform: rotate(-8deg);
	transform-origin: center;
}

/* ====================================================== FEATURES ====== */
.cc-home-features {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: 2.5rem;
	padding-block: 5rem;
}
@media (min-width: 768px) {
	.cc-home-features {
		grid-template-columns: 1fr auto 1fr;
	}
}

.cc-home-features__col {
	display: flex;
	flex-direction: column;
	gap: 4rem;
}

.cc-home-features__media {
	order: -1;
	display: flex;
	justify-content: center;
}
@media (min-width: 768px) {
	.cc-home-features__media { order: 0; }
}
.cc-home-features__chair {
	width: 260px;
	height: auto;
	transform: translateX(-24px);
}
@media (min-width: 768px) {
	.cc-home-features__chair { width: 316px; }
}

.cc-home-feature {
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}
.cc-home-feature__head {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: .75rem;
}
.cc-home-feature__title {
	font-size: 1.25rem;
	font-weight: 800;
	direction: rtl;
	text-align: right;
}
@media (min-width: 768px) {
	.cc-home-feature__title { font-size: 1.5rem; }
}
.cc-home-feature__row {
	display: flex;
	width: 100%;
	margin-top: 1rem;
	justify-content: flex-end;
}
.cc-home-feature__row--left,
.cc-home-feature__row--right { justify-content: flex-end; }
.cc-home-feature__body {
	max-width: 280px;
	font-size: 1rem;
	line-height: 1.75;
	opacity: .5;
	direction: rtl;
	text-align: justify;
	text-justify: inter-word;
}
