/**
 * home.css — Homepage route-scoped styles.
 *
 * Loaded only on pages using the "Greek Product — Homepage" template
 * (see includes/enqueue.php). Depends on core.css for design tokens,
 * .gp-container, and global utility classes.
 *
 * @package woodmart-child
 */

/* ============================================================ *
 * 1. WoodMart content-wrapper reset for full-bleed homepage layout
 * ============================================================ */
.gp-home-template .wd-page-content,
.gp-home-template .wd-content-layout {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: visible !important;
	display: block !important;
	float: none !important;
}

.gp-home {
	background: var(--gp-paper);
}

/* ============================================================ *
 * 2. Hero
 * ============================================================ */
.gp-home-hero {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	min-height: min(80vh, 600px);
	overflow: hidden;
}

.gp-home-hero__content {
	background: var(--gp-paper);
	padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 80px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 28px;
}

.gp-home-hero__title {
	font-family: var(--gp-serif);
	font-size: var(--gp-h1);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -.022em;
	color: var(--gp-ink);
	margin: 0;
}

.gp-home-hero__title em {
	font-style: italic;
	color: var(--gp-sea);
}

.gp-home-hero__sub {
	font-family: var(--gp-sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--gp-ink-soft);
	max-width: 440px;
	margin: 0;
}

.gp-home-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Right panel */
.gp-home-hero__panel {
	background: var(--gp-sea);
	position: relative;
	overflow: hidden;
}

/* Decorative sun circle */
.gp-home-hero__sun {
	position: absolute;
	width: 75%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--gp-sun);
	opacity: .15;
	top: -12%;
	right: -18%;
	pointer-events: none;
}

.gp-home-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gp-home-hero__img-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, var(--gp-sea) 55%, var(--gp-sea-soft));
	min-height: 320px;
}

/* ============================================================ *
 * 3. Trust strip
 * ============================================================ */
.gp-home-trust {
	background: var(--gp-paper-warm);
	padding: 28px var(--gp-pad-x) 18px;
	border-bottom: 1px solid var(--gp-line);
}

.gp-home-trust__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: space-evenly;
	flex-wrap: wrap;
	gap: 20px 48px;
}

.gp-home-trust__item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.gp-home-trust__icon {
	color: var(--gp-sea);
	flex: none;
	display: flex;
    padding: 15px;
    background-color: rgb(255, 255, 255);
    border-radius: 50%;
    border: 1px solid var(--gp-border);
}

.gp-home-trust__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.gp-home-trust__text strong {
	font-family: var(--gp-sans);
	font-size: 13px;
	font-weight: 600;
	color: var(--gp-ink);
}

.gp-home-trust__text span {
	font-family: var(--gp-mono);
	font-size: 11px;
	letter-spacing: .04em;
	color: var(--gp-ink-soft);
}

/* ============================================================ *
 * 4. Categories
 * ============================================================ */
.gp-home-cats {
	background: var(--gp-paper);
	padding: 72px 0;
}

.gp-home-cats__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	margin-top: 40px;
}

.gp-home-cats__item {
	list-style: none;
}

.gp-home-cats__tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: 4 / 5;
	width: 100%;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	transition: transform .2s var(--gp-ease), box-shadow .2s var(--gp-ease);
}

.gp-home-cats__tile:hover {
	transform: translateY(-5px);
	box-shadow: 0 14px 32px rgba(19, 41, 61, .18);
}

.gp-home-cats__tile::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 50%);
	pointer-events: none;
}

.gp-home-cats__media {
	position: absolute;
	inset: 0;
}

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

.gp-home-cats__media-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--cat-color, var(--gp-sea));
	color: #fff;
}

.gp-home-cats__name {
	position: relative;
	z-index: 1;
	padding: 16px 14px;
	font-family: var(--gp-serif);
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	line-height: 1.3;
}

/* ============================================================ *
 * 5. Bestsellers
 * ============================================================ */
.gp-home-best {
	background: var(--gp-cream);
	padding: 80px 0;
}

.gp-home-best__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
	margin-top: 40px;
}

.gp-home-best__more {
	text-align: center;
	margin-top: 40px;
}

/* Product card */
.gp-product-card {
	background: var(--gp-surface);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--gp-line);
	transition: box-shadow .2s var(--gp-ease), transform .2s var(--gp-ease);
}

.gp-product-card:hover {
	box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
	transform: translateY(-2px);
}

.gp-product-card__img-wrap {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--gp-cream);
}

.gp-product-card__img-wrap img,
.gp-product-card__img-wrap .gp-product-card__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .32s var(--gp-ease);
}

.gp-product-card:hover .gp-product-card__img-wrap img,
.gp-product-card:hover .gp-product-card__img-wrap .gp-product-card__thumb {
	transform: scale(1.04);
}

.gp-product-card__no-img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	background: var(--gp-cream);
}

.gp-product-card__body {
	padding: 16px 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.gp-product-card__name {
	font-family: var(--gp-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.35;
	margin: 0;
	height: calc(1.35em * 3);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gp-product-card__name a {
	color: var(--gp-ink);
	text-decoration: none;
}

.gp-product-card__name a:hover {
	color: var(--gp-sea);
}

.gp-product-card__price {
	font-family: var(--gp-sans);
	font-size: 16px;
	font-weight: 700;
	color: var(--gp-ink);
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
}

.gp-product-card__price .woocommerce-Price-amount {
	color: inherit;
	font-weight: inherit;
	font-size: inherit;
}

.gp-product-card__price del .woocommerce-Price-amount {
	font-size: 13px;
	font-weight: 400;
	color: var(--gp-ink-soft);
}

.gp-product-card__cta {
	margin-top: auto;
}

/* ============================================================ *
 * 6. Story
 * ============================================================ */
.gp-home-story {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 520px;
}

.gp-home-story__content {
	background: var(--gp-ink);
	padding: clamp(48px, 6vw, 80px) clamp(28px, 5vw, 80px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 24px;
}

.gp-home-story__content .gp-eyebrow {
	color: var(--gp-sun);
}

.gp-home-story__content .gp-eyebrow::before {
	background: var(--gp-sun);
}

.gp-home-story__title {
	font-family: var(--gp-serif);
	font-size: var(--gp-h2);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: var(--gp-cream);
	margin: 0;
}

.gp-home-story__title em {
	font-style: italic;
	color: var(--gp-sun);
}

.gp-home-story__body {
	font-family: var(--gp-sans);
	font-size: 16px;
	line-height: 1.7;
	color: rgba(245, 239, 226, .75);
	margin: 0;
	max-width: 460px;
}

.gp-home-story__media {
	position: relative;
	overflow: hidden;
	background: var(--gp-sea);
}

.gp-home-story__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gp-home-story__img-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, var(--gp-sea) 55%, var(--gp-sea-soft));
	min-height: 320px;
}

/* ============================================================ *
 * 7. Promo
 * ============================================================ */
.gp-home-promo {
	background: var(--gp-paper-warm);
	padding: 72px 0;
}

.gp-home-promo__inner {
	display: flex;
	align-items: center;
	gap: 56px;
}

.gp-home-promo__copy {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.gp-home-promo__title {
	font-family: var(--gp-serif);
	font-size: var(--gp-h2);
	font-weight: 400;
	line-height: 1.06;
	letter-spacing: -.02em;
	color: var(--gp-ink);
	margin: 0;
}

.gp-home-promo__sub {
	font-family: var(--gp-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--gp-ink-soft);
	margin: 0;
	max-width: 380px;
}

.gp-home-promo__imgs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 14px;
	flex: none;
}

.gp-home-promo__imgs li {
	width: 176px;
	flex: none;
}

.gp-home-promo__imgs img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

/* ============================================================ *
 * 8. Instagram
 * ============================================================ */
.gp-home-ig {
	background: var(--gp-paper);
	padding: 80px 0;
}

.gp-home-ig__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
	margin-top: 40px;
}

.gp-home-ig__item {
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 10px;
}

.gp-home-ig__link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
}

.gp-home-ig__link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s var(--gp-ease);
}

.gp-home-ig__link:hover img {
	transform: scale(1.06);
}

.gp-home-ig__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 52, 122, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	opacity: 0;
	transition: opacity .25s var(--gp-ease);
}

.gp-home-ig__link:hover .gp-home-ig__overlay,
.gp-home-ig__link:focus .gp-home-ig__overlay {
	opacity: 1;
}

.gp-home-ig__follow {
	text-align: center;
	margin-top: 32px;
}

/* ============================================================ *
 * 9. Responsive
 * ============================================================ */
@media (max-width: 1100px) {
	.gp-home-cats__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.gp-home-best__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.gp-home-ig__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 860px) {
	.gp-home-hero {
		grid-template-columns: 1fr;
	}

	.gp-home-hero__content {
		padding: 48px var(--gp-pad-x);
	}

	.gp-home-hero__panel {
		min-height: 280px;
	}

	.gp-home-story {
		grid-template-columns: 1fr;
	}

	.gp-home-story__media {
		min-height: 280px;
	}

	.gp-home-promo__inner {
		flex-direction: column;
		gap: 32px;
		align-items: flex-start;
	}

	.gp-home-promo__imgs {
		overflow-x: auto;
		padding-bottom: 8px;
		width: 100%;
	}
}

@media (max-width: 640px) {
	.gp-home-trust__list {
		gap: 16px;
		justify-content: flex-start;
	}

	.gp-home-cats__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.gp-home-best__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

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

	.gp-home-promo__imgs li {
		width: 140px;
	}
}
