/**
 * Wave Furniture — Homepage (Front Page) Stylesheet
 * SofaGenie.in Reference Direction & Structural Alignment
 *
 * @package WaveFurniture
 * @version 3.1.0
 */

/* ==========================================================================
   1. Fluid Full-Width Hero Slider
   ========================================================================== */
.hero-slider-section {
	position: relative;
	width: 100%;
	background-color: #111111;
	overflow: hidden;
}

.hero-slider {
	position: relative;
	width: 100%;
	height: clamp(520px, 44vw, 720px);
}

.hero-slides-viewport {
	position: relative;
	width: 100%;
	height: 100%;
}

.hero-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	visibility: hidden;
	transform: scale(1.02);
	transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.85s;
	display: flex;
	align-items: center;
}

.hero-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
	z-index: 2;
}

.hero-slide-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(13, 7, 16, 0.85) 0%, rgba(13, 7, 16, 0.5) 48%, rgba(13, 7, 16, 0.2) 100%);
	z-index: 1;
}

.hero-slide-container {
	position: relative;
	z-index: 2;
	width: 100%;
}

.hero-slide-content {
	max-width: 660px;
	color: #ffffff;
	padding: var(--wave-space-xl) 0;
}

.hero-slide-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #ffffff;
	background: rgba(123, 44, 80, 0.88);
	backdrop-filter: blur(8px);
	padding: 6px 16px;
	border-radius: var(--wave-radius-pill, 9999px);
	margin-bottom: 18px;
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-slide-title {
	font-family: var(--wave-font-sans);
	font-size: clamp(30px, 3.8vw, 52px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: #ffffff;
	margin-bottom: 16px;
}

.hero-slide-subtitle {
	font-size: clamp(15px, 1.2vw, 17.5px);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 28px;
	max-width: 560px;
}

.hero-slide-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.hero-prev-btn,
.hero-next-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hero-prev-btn:hover,
.hero-next-btn:hover {
	background-color: var(--wf-color-berry, #7B2C50);
	border-color: var(--wf-color-berry, #7B2C50);
	transform: translateY(-50%) scale(1.05);
}

.hero-prev-btn { left: 24px; }
.hero-next-btn { right: 24px; }

.hero-dots {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.hero-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-dot.is-active {
	width: 32px;
	border-radius: 6px;
	background: #ffffff;
}

/* ==========================================================================
   2. Shop by Collection (SofaGenie exact style)
   ========================================================================== */
.section-fetched-collections {
	position: relative;
}

.fc-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.fc-card {
	position: relative;
	border-radius: var(--wave-radius-md, 12px);
	overflow: hidden;
	background: var(--wf-color-ivory, #F2F0EC);
	display: flex;
	flex-direction: column;
	text-decoration: none;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	border: 1px solid #EAEAEA;
}

.fc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
	border-color: #D6D6D6;
}

.fc-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #F2F0EC;
}

.fc-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fc-card:hover .fc-card-media img {
	transform: scale(1.08);
}

.fc-card-title-wrap {
	padding: 16px 12px;
	text-align: center;
	background: #ffffff;
	border-top: 1px solid #EAEAEA;
}

.fc-card-title {
	font-family: var(--wave-font-sans);
	font-size: clamp(16px, 1.3vw, 19px);
	font-weight: 700;
	color: #111111;
	margin: 0;
	transition: color 0.2s ease;
}

.fc-card:hover .fc-card-title {
	color: var(--wf-color-berry);
}

/* ==========================================================================
   3. Editorial Image + Text Section
   ========================================================================== */
.imagetext-wrapper {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: clamp(32px, 4.5vw, 56px);
	align-items: center;
	background: #ffffff;
	border-radius: var(--wave-radius-lg, 16px);
	overflow: hidden;
	border: 1px solid var(--wf-color-border, #EAEAEA);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.imagetext-media {
	height: 100%;
	min-height: 480px;
	overflow: hidden;
}

.imagetext-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.imagetext-wrapper:hover .imagetext-media img {
	transform: scale(1.03);
}

.imagetext-content {
	padding: 44px 44px 44px 16px;
}

.imagetext-title {
	font-size: clamp(24px, 2.5vw, 36px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #111111;
	margin-bottom: 16px;
}

.imagetext-body {
	font-size: 16px;
	line-height: 1.7;
	color: #444444;
	margin-bottom: 24px;
}

.imagetext-benefits {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.imagetext-benefit-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: var(--wf-color-cream-soft, #F8F7F5);
	border-radius: var(--wave-radius-pill, 9999px);
	font-size: 13px;
	font-weight: 600;
	color: var(--wf-color-berry);
	border: 1px solid rgba(123, 44, 80, 0.16);
}

.imagetext-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

/* ==========================================================================
   4. Curated Product Collections & Grids (Balanced Card Heights)
   ========================================================================== */
.cps-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.wave-product-card {
	background: #ffffff;
	border: 1px solid #EAEAEA;
	border-radius: var(--wave-radius-md, 12px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.wave-product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
	border-color: #D6D6D6;
}

.product-thumb-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #F8F7F5;
}

.product-thumb-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wave-product-card:hover .product-thumb-wrap img {
	transform: scale(1.06);
}

.product-badge-overlay {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
}

.product-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.product-category-label {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wf-color-berry);
	margin-bottom: 6px;
}

.product-category-label a {
	color: var(--wf-color-berry);
	text-decoration: none;
}

.product-title {
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 8px 0;
	color: #111111;
	min-height: 2.7em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.product-title a {
	color: #111111;
	text-decoration: none;
	transition: color 0.15s ease;
}

.product-title a:hover {
	color: var(--wf-color-berry);
}

.product-pricing-wrap,
.product-body .price {
	font-size: 16.5px;
	font-weight: 800;
	color: #111111;
	margin-bottom: 14px;
}

.product-pricing-wrap ins,
.product-body .price ins {
	text-decoration: none;
	color: #111111;
}

.product-pricing-wrap del,
.product-body .price del {
	font-size: 13.5px;
	color: #888888;
	margin-right: 6px;
}

.product-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #F0F0F0;
}

.btn-card-wa {
	padding: 8px 14px;
	font-size: 12.5px;
	border-radius: var(--wave-radius-pill, 9999px);
}

.btn-text-details {
	font-size: 13px;
	font-weight: 700;
	color: var(--wf-color-berry);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.btn-text-details:hover {
	color: var(--wf-color-berry-dark);
}

/* ==========================================================================
   5. Top-Bottom Showcase Section
   ========================================================================== */
.itb-heading {
	font-size: clamp(26px, 3.2vw, 38px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #111111;
	margin-bottom: 14px;
}

.itb-body {
	font-size: 16.5px;
	line-height: 1.65;
	color: #444444;
	max-width: 720px;
	margin: 0 auto 24px;
}

.itb-media-wrap {
	max-width: 1120px;
	margin: 0 auto;
	border-radius: var(--wave-radius-xl, 18px);
	overflow: hidden;
	box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
	border: 1px solid #EAEAEA;
	aspect-ratio: 16 / 9;
	max-height: 520px;
}

.itb-media-wrap img {
	width: 100%;
	height: 100%;
	max-height: 520px;
	object-fit: cover;
	object-position: center;
	display: block;
}

@media (max-width: 768px) {
	.itb-media-wrap {
		aspect-ratio: 16 / 10;
		max-height: 320px;
	}
	.itb-media-wrap img {
		height: 320px;
		max-height: 320px;
	}
}

/* ==========================================================================
   6. Shipping & Trust Benefits
   ========================================================================== */
.shipping-benefits-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.shipping-benefit-card {
	background: #ffffff;
	border: 1px solid #EAEAEA;
	border-radius: var(--wave-radius-md, 14px);
	padding: 24px 20px;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shipping-benefit-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
	border-color: #D6D6D6;
}

.benefit-icon-circle {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--wf-color-berry-light, #F8F1F4);
	color: var(--wf-color-berry, #7B2C50);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.benefit-heading {
	font-size: 16px;
	font-weight: 700;
	color: #111111;
	margin-bottom: 4px;
}

.benefit-desc {
	font-size: 13px;
	line-height: 1.5;
	color: #666666;
	margin: 0;
}

/* ==========================================================================
   7. Unified Bespoke Commission & Workshop Spotlight
   ========================================================================== */
.bespoke-unified-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: clamp(32px, 4.5vw, 56px);
	align-items: start;
}

.bespoke-form-card {
	background: #ffffff;
	border: 1px solid #EAEAEA;
	border-radius: var(--wave-radius-lg, 16px);
	padding: clamp(24px, 3.5vw, 40px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.bespoke-card-title {
	font-size: clamp(20px, 2vw, 24px);
	font-weight: 700;
	color: #111111;
	margin: 0 0 8px 0;
}

.bespoke-card-desc {
	font-size: 14.5px;
	color: #666666;
	line-height: 1.6;
	margin-bottom: 24px;
}

.workshop-spotlight-card {
	background: #ffffff;
	border: 1px solid #EAEAEA;
	border-radius: var(--wave-radius-lg, 16px);
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
}

.workshop-spotlight-media {
	position: relative;
	width: 100%;
	height: 260px;
	overflow: hidden;
	background: #F8F7F5;
}

.workshop-spotlight-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.workshop-spotlight-badge {
	position: absolute;
	bottom: 16px;
	left: 16px;
	background: rgba(13, 7, 16, 0.85);
	backdrop-filter: blur(8px);
	color: #ffffff;
	padding: 6px 14px;
	border-radius: var(--wave-radius-pill, 9999px);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.workshop-spotlight-body {
	padding: clamp(24px, 3.5vw, 36px);
	display: flex;
	flex-direction: column;
	flex: 1;
}

.workshop-spotlight-title {
	font-size: clamp(20px, 2vw, 24px);
	font-weight: 700;
	color: #111111;
	margin: 0 0 10px 0;
}

.workshop-spotlight-desc {
	font-size: 14.5px;
	line-height: 1.65;
	color: #555555;
	margin-bottom: 24px;
}

.workshop-direct-details {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px;
	background: var(--wf-color-cream-soft, #F8F7F5);
	border: 1px solid #EAEAEA;
	border-radius: var(--wave-radius-md, 12px);
	margin-bottom: 28px;
}

.workshop-detail-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.detail-icon-circle {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid rgba(123, 44, 80, 0.18);
	color: var(--wf-color-berry);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.detail-text strong {
	display: block;
	font-size: 13px;
	color: #111111;
	margin-bottom: 2px;
}

.detail-text span {
	font-size: 13.5px;
	color: #555555;
	line-height: 1.5;
}

.detail-text a {
	color: var(--wf-color-berry);
	text-decoration: none;
	font-weight: 600;
}

.workshop-spotlight-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: auto;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
	.fc-grid,
	.cps-grid,
	.shipping-benefits-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	.imagetext-wrapper,
	.bespoke-unified-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.imagetext-content {
		padding: 32px;
	}
}

/* Tablet & Mobile Breakpoint (768px and below) */
@media (max-width: 768px) {
	/* Section 8: Shipping & Workshop Trust Benefits */
	.section-shipping-benefits {
		padding-top: 40px !important;
		padding-bottom: 40px !important;
	}

	.shipping-benefits-grid {
		grid-template-columns: 1fr !important;
		gap: 12px !important;
	}

	.shipping-benefit-card {
		padding: 14px 16px !important;
		gap: 14px !important;
		align-items: center !important;
		border-radius: 12px !important;
	}

	.benefit-icon-circle {
		width: 42px !important;
		height: 42px !important;
		min-width: 42px !important;
	}

	.benefit-icon-circle svg {
		width: 20px !important;
		height: 20px !important;
	}

	.benefit-heading {
		font-size: 15px !important;
		font-weight: 700 !important;
		margin-bottom: 2px !important;
	}

	.benefit-desc {
		font-size: 12.5px !important;
		line-height: 1.4 !important;
		color: #666666 !important;
	}

	/* Section 9: Bespoke Commissions & Workshop Access */
	.section-bespoke-unified {
		padding-top: 44px !important;
		padding-bottom: 48px !important;
	}

	.section-bespoke-unified .section-header {
		margin-bottom: 24px !important;
	}

	.section-bespoke-unified .section-title {
		font-size: clamp(22px, 5.5vw, 30px) !important;
		line-height: 1.2 !important;
		margin-bottom: 10px !important;
	}

	.section-bespoke-unified .section-subtext {
		font-size: 14px !important;
		line-height: 1.55 !important;
		margin-bottom: 0 !important;
	}

	.bespoke-unified-grid {
		grid-template-columns: 1fr !important;
		gap: 24px !important;
	}

	.bespoke-form-card {
		padding: 24px 18px !important;
		border-radius: 14px !important;
	}

	.bespoke-card-title {
		font-size: 19px !important;
		line-height: 1.3 !important;
		margin-bottom: 6px !important;
	}

	.bespoke-card-desc {
		font-size: 13.5px !important;
		line-height: 1.5 !important;
		margin-bottom: 18px !important;
	}

	/* Fix form rows gap bug on mobile */
	.bespoke-form-card .form-row.grid-2 {
		display: flex !important;
		flex-direction: column !important;
		gap: 14px !important;
		margin-bottom: 0 !important;
	}

	.bespoke-form-card .form-group {
		margin-bottom: 14px !important;
	}

	.bespoke-form-card .form-label {
		font-size: 12px !important;
		margin-bottom: 6px !important;
	}

	.bespoke-form-card .form-input,
	.bespoke-form-card .form-select,
	.bespoke-form-card .form-textarea {
		font-size: 16px !important; /* Prevents iOS auto-zoom */
		padding: 12px 14px !important;
		border-radius: 8px !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.bespoke-form-card input[type="file"].form-input {
		padding: 10px 12px !important;
		font-size: 13px !important;
		background: #FAF8F5 !important;
	}

	/* Fix submit button horizontal overflow */
	.bespoke-form-card button[type="submit"] {
		width: 100% !important;
		white-space: normal !important;
		text-align: center !important;
		justify-content: center !important;
		padding: 14px 18px !important;
		font-size: 15px !important;
		line-height: 1.35 !important;
		display: flex !important;
		align-items: center !important;
		word-break: normal !important;
		box-sizing: border-box !important;
	}

	.bespoke-form-card input[type="checkbox"] {
		flex-shrink: 0 !important;
		width: 18px !important;
		height: 18px !important;
		margin-top: 2px !important;
	}

	/* Workshop Spotlight Card */
	.workshop-spotlight-card {
		border-radius: 14px !important;
	}

	.workshop-spotlight-media {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 16 / 9 !important;
		max-height: 220px !important;
	}

	.workshop-spotlight-badge {
		bottom: 12px !important;
		left: 12px !important;
		padding: 5px 12px !important;
		font-size: 11px !important;
	}

	.workshop-spotlight-body {
		padding: 22px 18px !important;
	}

	.workshop-spotlight-title {
		font-size: 19px !important;
		line-height: 1.3 !important;
		margin-bottom: 8px !important;
	}

	.workshop-spotlight-desc {
		font-size: 13.5px !important;
		line-height: 1.55 !important;
		margin-bottom: 18px !important;
	}

	.workshop-direct-details {
		padding: 14px 12px !important;
		gap: 12px !important;
		margin-bottom: 18px !important;
		border-radius: 10px !important;
	}

	.workshop-detail-item {
		gap: 10px !important;
		align-items: center !important;
	}

	.detail-icon-circle {
		width: 32px !important;
		height: 32px !important;
		min-width: 32px !important;
	}

	.detail-icon-circle svg {
		width: 16px !important;
		height: 16px !important;
	}

	.detail-text {
		min-width: 0 !important;
		word-break: break-word !important;
	}

	.detail-text strong {
		font-size: 12px !important;
		margin-bottom: 2px !important;
	}

	.detail-text span {
		font-size: 13px !important;
	}

	.detail-text a {
		color: #121315 !important;
		text-decoration: underline !important;
		font-weight: 600 !important;
	}

	.workshop-spotlight-actions {
		display: flex !important;
		flex-direction: column !important;
		gap: 10px !important;
		width: 100% !important;
		margin-top: 0 !important;
	}

	.workshop-spotlight-actions .btn {
		width: 100% !important;
		justify-content: center !important;
		text-align: center !important;
		padding: 13px 18px !important;
		font-size: 14.5px !important;
		border-radius: 8px !important;
		white-space: normal !important;
	}
}

/* Mobile Small Devices (640px and below) */
@media (max-width: 640px) {
	.hero-slider {
		height: 480px;
	}
	.hero-prev-btn { left: 10px; width: 38px; height: 38px; }
	.hero-next-btn { right: 10px; width: 38px; height: 38px; }
	.hero-slide-actions {
		gap: 10px;
	}
	.hero-slide-actions .btn {
		padding: 12px 18px;
		font-size: 14px;
	}
	.fc-grid,
	.cps-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 12px !important;
	}
	.product-body {
		padding: 12px;
	}
	.product-title {
		font-size: 13.5px;
	}
	.product-pricing-wrap,
	.product-body .price {
		font-size: 15px;
	}
}

/* Ultra-Compact Phones (480px and below) */
@media (max-width: 480px) {
	.bespoke-form-card,
	.workshop-spotlight-body {
		padding: 18px 14px !important;
	}
	.shipping-benefit-card {
		padding: 12px 14px !important;
		gap: 12px !important;
	}
	.bespoke-card-title,
	.workshop-spotlight-title {
		font-size: 18px !important;
	}
	.workshop-spotlight-media {
		max-height: 180px !important;
	}
}
