/**
 * FlexiDesignX — Homepage Styles
 *
 * Shopee/Grab-inspired homepage layout.
 *
 * @package FlexiDesignX
 * @since   1.0.0
 */

/* ==========================================================================
   Split Hero
   ========================================================================== */

/* ==========================================================================
   Banner Section (Shopee-style: slider + 2 mini tiles)
   ========================================================================== */

.fdx-banner {
	padding-top: 1rem;
	padding-bottom: 0.5rem;
}

.fdx-banner__layout {
	display: flex;
	gap: 0.625rem;
	height: 280px;
}

.fdx-banner__layout--with-minis .fdx-banner__slider {
	flex: 1;
	min-width: 0;
}

.fdx-banner__slider {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	width: 100%;
}

.fdx-banner__track {
	display: flex;
	transition: transform 0.4s ease;
	height: 100%;
}

.fdx-banner__slide {
	flex: 0 0 100%;
	display: block;
	height: 100%;
}

.fdx-banner__img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.fdx-banner__dots {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 5px;
}

.fdx-banner__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.5);
	cursor: pointer;
	padding: 0;
	transition: all 0.2s;
}

.fdx-banner__dot--active {
	background: #fff;
	width: 20px;
	border-radius: 4px;
}

/* Mini banners (right side) */
.fdx-banner__minis {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	width: 240px;
	flex-shrink: 0;
}

.fdx-banner__mini {
	flex: 1;
	display: block;
	border-radius: 10px;
	overflow: hidden;
}

.fdx-banner__mini-img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

/* Fallback (no banners uploaded) */
.fdx-banner__fallback {
	height: 100%;
	background: linear-gradient(135deg, var(--fdx-accent) 0%, var(--fdx-warm-brown) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.fdx-banner__fallback-content {
	text-align: center;
	color: #fff;
}

.fdx-banner__fallback-heading {
	font-size: 1.75rem;
	font-weight: 800;
	margin: 0 0 0.75rem;
	color: #fff;
}

.fdx-banner__fallback-content p {
	font-size: 0.9rem;
	opacity: 0.85;
	margin: 0 0 1.25rem;
}

/* Desktop: wider minis */
@media (min-width: 1025px) {
	.fdx-banner__layout { height: 320px; }
	.fdx-banner__minis { width: 280px; }
}

/* Tablet */
@media (max-width: 1024px) {
	.fdx-banner__layout { height: 240px; }
	.fdx-banner__minis { width: 200px; }
}

/* Mosaic grid — hidden on desktop, shown on mobile */
.fdx-banner__mosaic {
	display: none;
}

/* Mobile: stack — slider full width, hide desktop minis, show mosaic grid */
@media (max-width: 767px) {
	.fdx-banner__layout {
		flex-direction: column;
		height: auto;
		gap: 0;
	}
	.fdx-banner__slider {
		height: 160px;
		border-radius: 10px;
	}
	.fdx-banner__track {
		height: 160px;
	}
	/* Hide desktop-style minis on mobile */
	.fdx-banner__minis {
		display: none;
	}
	.fdx-banner__dots {
		bottom: 6px;
	}
	.fdx-banner__dot { width: 6px; height: 6px; }
	.fdx-banner__dot--active { width: 14px; }

	/* Shopee-style mosaic grid */
	.fdx-banner__mosaic {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 6px;
		margin-top: 6px;
	}
	.fdx-banner__mosaic-tile {
		display: block;
		border-radius: 8px;
		overflow: hidden;
		aspect-ratio: 16 / 10;
	}
	/* First tile spans full width (large promo) */
	.fdx-banner__mosaic-tile--1 {
		grid-column: 1 / -1;
		aspect-ratio: 2 / 1;
	}
	/* Tiles 2-3 side by side */
	/* Tiles 4-5 side by side */
	/* Tile 6 spans full width if present */
	.fdx-banner__mosaic-tile--6 {
		grid-column: 1 / -1;
		aspect-ratio: 2 / 1;
	}
	.fdx-banner__mosaic-img {
		width: 100%;
		height: 100%;
		display: block;
		object-fit: cover;
	}
}

/* ==========================================================================
   Split Hero (fallback when no banners configured)
   ========================================================================== */

.fdx-hero {
	background: #F9F7F4;
	overflow: hidden;
}

.fdx-hero__inner {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	min-height: 280px;
	padding: 24px 40px;
	gap: 32px;
}

.fdx-hero__content {
	flex: 1;
	max-width: 420px;
}

.fdx-hero__eyebrow {
	display: inline-block;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #C4A882;
	margin-bottom: 12px;
	background: rgba(196,168,130,0.12);
	padding: 0.25rem 0.625rem;
	border-radius: 4px;
}

.fdx-hero__heading {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.15;
	color: var(--fdx-grey-900);
	letter-spacing: -0.02em;
	margin: 0 0 12px;
}

.fdx-hero__desc {
	font-size: 0.85rem;
	line-height: 1.6;
	color: #666;
	margin-bottom: 20px;
	max-width: 380px;
}

.fdx-hero__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.fdx-hero__btn {
	display: inline-flex;
	align-items: center;
	padding: 10px 24px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.25s ease;
}

.fdx-hero__btn--primary {
	background: var(--fdx-accent);
	color: #fff;
}

.fdx-hero__btn--primary:hover {
	background: var(--fdx-accent-hover);
}

.fdx-hero__btn--secondary {
	background: transparent;
	color: var(--fdx-grey-900);
	border: 1.5px solid var(--fdx-accent);
}

.fdx-hero__btn--secondary:hover {
	background: var(--fdx-accent);
	color: #fff;
}

.fdx-hero__image {
	flex: 1;
	max-width: 480px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fdx-hero__img {
	width: 100%;
	height: auto;
	max-height: 240px;
	object-fit: contain;
	border-radius: 12px;
}

/* Tablet */
@media (max-width: 1024px) {
	.fdx-hero__inner {
		padding: 20px 24px;
		min-height: 220px;
		gap: 24px;
	}
	.fdx-hero__heading {
		font-size: 1.75rem;
	}
}

/* Mobile: Shopee-style compact banner */
@media (max-width: 767px) {
	.fdx-hero {
		padding: 0;
	}
	.fdx-hero__inner {
		flex-direction: row;
		text-align: left;
		padding: 16px;
		min-height: auto;
		gap: 12px;
		align-items: center;
	}
	.fdx-hero__content {
		max-width: 55%;
		order: 1;
	}
	.fdx-hero__image {
		max-width: 42%;
		order: 2;
	}
	.fdx-hero__eyebrow {
		display: none;
	}
	.fdx-hero__heading {
		font-size: 1.1rem;
		line-height: 1.25;
		margin-bottom: 6px;
	}
	.fdx-hero__desc {
		font-size: 0.7rem;
		line-height: 1.4;
		margin-bottom: 10px;
		max-width: 100%;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.fdx-hero__actions {
		justify-content: flex-start;
	}
	.fdx-hero__btn {
		padding: 7px 14px;
		font-size: 0.65rem;
		border-radius: 6px;
	}
	.fdx-hero__btn--secondary {
		display: none;
	}
	.fdx-hero__img {
		max-height: 120px;
		border-radius: 8px;
	}
}

/* Old bento hero - kept for reference
   ==========================================================================

.fdx-bento-hero {
	padding: 8px;
	background: var(--fdx-grey-100, #f5f5f5);
}

.fdx-bento {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(3, 180px);
	gap: 8px;
	max-width: var(--fdx-max-width, 1280px);
	margin: 0 auto;
}

.fdx-bento__tile--a { grid-column: 1 / 3; grid-row: 1 / 3; }
.fdx-bento__tile--b { grid-column: 3; grid-row: 1; }
.fdx-bento__tile--c { grid-column: 4; grid-row: 1; }
.fdx-bento__tile--d { grid-column: 3 / 5; grid-row: 2 / 4; }
.fdx-bento__tile--e { grid-column: 1; grid-row: 3; }
.fdx-bento__tile--f { grid-column: 2; grid-row: 3; }

.fdx-bento__tile {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	display: block;
	text-decoration: none;
	color: #fff;
	cursor: pointer;
	background: var(--fdx-grey-200, #e5e5e5);
}

.fdx-bento__tile:hover {
	color: #fff;
}

.fdx-bento__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.fdx-bento__tile:hover .fdx-bento__img {
	transform: scale(1.03);
}

.fdx-bento__placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(145deg, #ebe2dd, #d6ccc6);
}

.fdx-bento__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.55) 0%,
		rgba(0, 0, 0, 0.15) 40%,
		rgba(0, 0, 0, 0.02) 100%
	);
	pointer-events: none;
	z-index: 1;
}

.fdx-bento__label {
	position: absolute;
	bottom: 12px;
	left: 14px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #fff;
	z-index: 2;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	letter-spacing: 0.01em;
}

.fdx-bento__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1.75rem;
	z-index: 2;
}

.fdx-bento__caption--large .fdx-bento__eyebrow {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	padding: 0.3rem 0.7rem;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: 999px;
	margin-bottom: 0.75rem;
}

.fdx-bento__heading {
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 0.75rem;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.fdx-bento__cta-btn {
	display: inline-block;
	background: #fff;
	color: var(--fdx-gold, #C4A882);
	font-size: 0.85rem;
	font-weight: 700;
	padding: 0.55rem 1.4rem;
	border-radius: 999px;
	transition: background 0.2s, transform 0.2s;
	text-shadow: none;
}

.fdx-bento__tile--a:hover .fdx-bento__cta-btn {
	background: var(--fdx-gold, #C4A882);
	color: #fff;
	transform: translateY(-1px);
}

.fdx-bento__tile--promo {
	background: linear-gradient(135deg, var(--fdx-accent) 0%, var(--fdx-accent-hover) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.fdx-bento__promo-content {
	text-align: center;
	padding: 1.5rem;
	z-index: 2;
	position: relative;
}

.fdx-bento__promo-heading {
	display: block;
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: #fff;
	margin-bottom: 0.4rem;
}

.fdx-bento__promo-sub {
	display: block;
	font-size: 0.95rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 1.25rem;
}

.fdx-bento__promo-btn {
	display: inline-block;
	background: #fff;
	color: var(--fdx-gold, #C4A882);
	font-size: 0.85rem;
	font-weight: 700;
	padding: 0.6rem 1.6rem;
	border-radius: 999px;
	transition: background 0.2s, transform 0.2s, color 0.2s;
}

.fdx-bento__tile--promo:hover .fdx-bento__promo-btn {
	background: #3a2821;
	color: #fff;
	transform: translateY(-1px);
}

@media (max-width: 767px) {
	.fdx-bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; gap: 6px; }
	.fdx-bento__tile--a { grid-column: 1 / -1; grid-row: auto; min-height: 220px; }
	.fdx-bento__tile--b { grid-column: 1; grid-row: auto; min-height: 140px; }
	.fdx-bento__tile--c { grid-column: 2; grid-row: auto; min-height: 140px; }
	.fdx-bento__tile--d { grid-column: 1 / -1; grid-row: auto; min-height: 180px; }
	.fdx-bento__tile--e { grid-column: 1; grid-row: auto; min-height: 140px; }
	.fdx-bento__tile--f { grid-column: 2; grid-row: auto; min-height: 140px; }
	.fdx-bento__heading { font-size: 1.35rem; }
	.fdx-bento__caption { padding: 1.25rem; }
	.fdx-bento__promo-heading { font-size: 1.75rem; }
}

@media (min-width: 768px) and (max-width: 1024px) {
	.fdx-bento { grid-template-rows: repeat(3, 160px); }
	.fdx-bento__heading { font-size: 1.5rem; }
	.fdx-bento__promo-heading { font-size: 2rem; }
}

@media (min-width: 1025px) {
	.fdx-bento { grid-template-rows: repeat(3, 200px); }
	.fdx-bento__heading { font-size: 2.25rem; }
	.fdx-bento__promo-heading { font-size: 2.75rem; }
	.fdx-bento__label { font-size: 0.95rem; }
}

   End of old bento hero */

/* ==========================================================================
   Hero Banner (legacy — kept for reference)
   ========================================================================== */

/* Old legacy hero styles - commented out, now using split hero above
.fdx-hero-legacy {
	background: linear-gradient(135deg, var(--fdx-accent) 0%, #a08478 100%);
	color: var(--fdx-white);
	padding: 2.5rem 1rem 2rem;
	text-align: center;
}
*/

.fdx-hero__title {
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 0.5rem;
}

.fdx-hero__subtitle {
	font-size: var(--fdx-font-size-sm);
	opacity: 0.9;
	margin: 0 0 1.25rem;
}

/* Hero search bar — Shopee-style */
.fdx-hero__search {
	margin-bottom: 1.25rem;
}

.fdx-hero__search form {
	display: flex;
	background: var(--fdx-white);
	border-radius: var(--fdx-radius-full);
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.fdx-hero__search-input {
	flex: 1;
	border: none;
	padding: 0.75rem 1rem;
	font-size: var(--fdx-font-size-base);
	color: var(--fdx-grey-900);
	outline: none;
	min-width: 0;
}

.fdx-hero__search-input::placeholder {
	color: var(--fdx-grey-500);
}

.fdx-hero__search-btn {
	background: var(--fdx-accent);
	color: var(--fdx-white);
	border: none;
	padding: 0.75rem 1.25rem;
	font-weight: 700;
	font-size: var(--fdx-font-size-sm);
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s;
}

.fdx-hero__search-btn:hover {
	background: var(--fdx-accent-hover);
}

/* CTA buttons */
.fdx-hero__cta-row {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}

.fdx-btn--lg {
	padding: 0.75rem 1.5rem;
	font-size: var(--fdx-font-size-base);
	border-radius: var(--fdx-radius-full);
}

.fdx-btn--outline {
	background: transparent;
	color: var(--fdx-white);
	border: 2px solid var(--fdx-white);
}

.fdx-btn--outline:hover {
	background: var(--fdx-white);
	color: var(--fdx-accent);
}

.fdx-btn--whatsapp {
	background-color: #25D366;
	color: var(--fdx-white);
	border-radius: var(--fdx-radius-full);
	padding: 0.75rem 1.5rem;
}

.fdx-btn--whatsapp:hover {
	background-color: #1DA851;
	color: var(--fdx-white);
}

/* ==========================================================================
   Section Layout
   ========================================================================== */

.fdx-section {
	padding: 1.5rem 0;
}

.fdx-section--deals {
	background-color: var(--fdx-accent-light);
}

.fdx-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.fdx-section__title {
	font-size: var(--fdx-font-size-xl);
	font-weight: 700;
	color: var(--fdx-grey-900);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.fdx-flash-icon {
	font-size: 1.5rem;
}

.fdx-section__link {
	font-size: var(--fdx-font-size-sm);
	font-weight: 600;
	color: var(--fdx-gold);
	white-space: nowrap;
}

.fdx-section__link:hover {
	color: var(--fdx-gold-hover);
}

/* ==========================================================================
   Category Tiles — Grab-style
   ========================================================================== */

.fdx-category-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
}

.fdx-category-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1.25rem 0.5rem;
	background: var(--fdx-white);
	border-radius: var(--fdx-radius-lg);
	box-shadow: var(--fdx-shadow-sm);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: 2px solid transparent;
}

.fdx-category-tile:hover {
	transform: translateY(-3px);
	box-shadow: var(--fdx-shadow-md);
	border-color: var(--tile-color, var(--fdx-gold));
}

.fdx-category-tile__icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
	display: block;
	width: 56px;
	height: 56px;
	line-height: 56px;
	background: color-mix(in srgb, var(--tile-color, var(--fdx-gold)) 10%, transparent);
	border-radius: var(--fdx-radius-lg);
}

.fdx-category-tile__label {
	font-size: var(--fdx-font-size-sm);
	font-weight: 600;
	color: var(--fdx-grey-900);
	display: block;
}

.fdx-category-tile__count {
	font-size: var(--fdx-font-size-xs);
	color: var(--fdx-grey-500);
	display: block;
	margin-top: 0.125rem;
}

/* ==========================================================================
   Product Grid — Homepage-specific overrides
   Base .fdx-product-card / .fdx-product-grid styles live in fdx-product.css.
   Only homepage layout tweaks (scroll variants, column counts) belong here.
   ========================================================================== */

.fdx-product-grid--scroll {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 0.5rem;
	padding-bottom: 0.5rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.fdx-product-grid--scroll::-webkit-scrollbar {
	display: none;
}

.fdx-product-grid--scroll .fdx-product-card {
	flex: 0 0 42%;
	scroll-snap-align: start;
}

/* Card link helper (homepage card wrappers) */
.fdx-product-card__link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.fdx-product-card__link:hover {
	color: inherit;
}

/* Placeholder image shimmer for cards without images */
.fdx-product-card__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--fdx-grey-100) 0%, var(--fdx-grey-200) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.fdx-product-card__placeholder::after {
	content: '\1FA91';
	font-size: 3rem;
	opacity: 0.3;
}

/* Out-of-stock badge variant */
.fdx-product-card__badge--oos {
	background: var(--fdx-grey-700);
}

/* Price sub-elements (homepage card pricing layout) */
.fdx-product-card__price {
	display: flex;
	align-items: baseline;
	gap: 0.375rem;
	flex-wrap: wrap;
}

.fdx-product-card__current {
	font-size: var(--fdx-font-size-base);
	font-weight: 700;
	color: var(--fdx-accent);
}

.fdx-product-card__current .woocommerce-Price-currencySymbol {
	font-size: 0.75em;
}

.fdx-product-card__original {
	font-size: var(--fdx-font-size-xs);
	color: var(--fdx-grey-500);
	text-decoration: line-through;
}

.fdx-product-card__meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.375rem;
	font-size: var(--fdx-font-size-xs);
	color: var(--fdx-grey-500);
}

.fdx-product-card__stars {
	color: #FBBF24;
}

.fdx-product-card__rating {
	display: flex;
	align-items: center;
	gap: 0.125rem;
}

/* ==========================================================================
   Showroom Banner
   ========================================================================== */

.fdx-showroom-banner {
	background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
	color: var(--fdx-white);
	padding: 2.5rem 0;
}

.fdx-showroom-banner__content {
	text-align: center;
}

.fdx-showroom-banner__content h2 {
	font-size: var(--fdx-font-size-2xl);
	font-weight: 800;
	margin: 0 0 0.5rem;
}

.fdx-showroom-banner__content p {
	margin: 0.25rem 0;
	opacity: 0.8;
	font-size: var(--fdx-font-size-sm);
}

.fdx-showroom-banner__content .fdx-btn {
	margin-top: 1rem;
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (min-width: 768px) {
	.fdx-hero {
		padding: 3.5rem 2rem 3rem;
	}

	.fdx-hero__title {
		font-size: 2.5rem;
	}

	.fdx-hero__subtitle {
		font-size: var(--fdx-font-size-base);
	}

	.fdx-category-tiles {
		grid-template-columns: repeat(3, 1fr);
		gap: 1rem;
	}

	/* Homepage scroll grid: wider cards on tablet */
	.fdx-product-grid--scroll .fdx-product-card {
		flex: 0 0 30%;
	}

	.fdx-section {
		padding: 2rem 0;
	}
}

/* ==========================================================================
   Desktop
   ========================================================================== */

@media (min-width: 1025px) {
	.fdx-hero {
		padding: 4rem 2rem 3.5rem;
	}

	.fdx-hero__title {
		font-size: 3rem;
	}

	.fdx-category-tiles {
		grid-template-columns: repeat(6, 1fr);
	}

	/* Homepage scroll grid: switch to static grid on desktop */
	.fdx-product-grid--scroll {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		overflow: visible;
	}

	.fdx-product-grid--scroll .fdx-product-card {
		flex: none;
	}

	.fdx-section {
		padding: 2.5rem 0;
	}
}

/* ==========================================================================
   Polish pass — v1.1
   Hero with image, category rail, promo banners, refined showroom.
   ========================================================================== */

/* Section rhythm */
.fdx-section { padding: 3rem 0; }
.fdx-section--tight { padding: 1.75rem 0; }
.fdx-section--alt { background: #faf7f5; }
@media (min-width: 1025px){
	.fdx-section { padding: 4.5rem 0; }
	.fdx-section--tight { padding: 2rem 0; }
}

/* Section titles — stronger hierarchy */
.fdx-section__title {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	position: relative;
	padding-left: 14px;
}
.fdx-section__title::before{
	content: "";
	position: absolute;
	left: 0; top: 50%;
	width: 4px; height: 70%;
	border-radius: 4px;
	background: var(--fdx-gold);
	transform: translateY(-50%);
}
@media (min-width:1025px){ .fdx-section__title{ font-size: 1.875rem; } }

/* ---- Hero with image ---- */
.fdx-hero { position: relative; overflow: hidden; padding: 4rem 1rem 3.5rem; text-align: left; }
.fdx-hero--has-image { background-size: cover; background-position: center; }
.fdx-hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(115deg, rgba(26,26,26,0.92) 0%, rgba(26,26,26,0.75) 45%, rgba(196,168,130,0.35) 100%);
}
.fdx-hero:not(.fdx-hero--has-image) .fdx-hero__overlay {
	background: linear-gradient(135deg, var(--fdx-accent) 0%, var(--fdx-accent-hover) 100%);
}
.fdx-hero__content { position: relative; max-width: 640px; margin: 0 auto; padding: 0 1rem; }
.fdx-hero__eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.85);
	padding: 0.4rem 0.85rem;
	background: rgba(255,255,255,0.12);
	backdrop-filter: blur(6px);
	border-radius: 999px;
	margin-bottom: 1.25rem;
}
.fdx-hero__title {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0 0 0.85rem;
	text-shadow: 0 2px 18px rgba(0,0,0,0.18);
}
.fdx-hero__subtitle { font-size: 1rem; opacity: 0.95; margin: 0 0 1.5rem; max-width: 520px; }
.fdx-hero__usps {
	list-style: none;
	padding: 0;
	margin: 1.25rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.95);
}
.fdx-hero__usps li { display: flex; align-items: center; gap: 0.4rem; }
.fdx-hero__usps span {
	width: 18px; height: 18px; border-radius: 50%;
	background: rgba(255,255,255,0.25);
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 0.7rem; font-weight: 700;
}
@media (min-width: 1025px){
	.fdx-hero { padding: 6rem 2rem 5rem; }
	.fdx-hero__title { font-size: 3.5rem; }
	.fdx-hero__subtitle { font-size: 1.15rem; }
	.fdx-hero__search { display: none; }
}

/* ---- Category rail — scrollable + auto-scroll ---- */
.fdx-cat-rail-wrapper {
	overflow-x: auto;
	overflow-y: hidden;
	position: relative;
	padding: 0.5rem 0 1rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;          /* Firefox */
}
.fdx-cat-rail-wrapper::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.fdx-cat-rail {
	display: flex;
	gap: 1.25rem;
	width: max-content;
}
.fdx-cat-rail__item {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--fdx-grey-900);
	min-width: 90px;
}
.fdx-cat-rail__circle {
	width: 80px; height: 80px;
	border-radius: 50%;
	background: linear-gradient(145deg, #f5f0ee, #ebe2dd);
	box-shadow: 0 4px 16px rgba(196,168,130,0.10);
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
	border: 2.5px solid #ebe2dd;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.fdx-cat-rail__circle img { width: 100%; height: 100%; object-fit: cover; }
.fdx-cat-rail__initial {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--fdx-gold);
	line-height: 1;
}
.fdx-cat-rail__initial svg {
	width: 28px;
	height: 28px;
	stroke: var(--fdx-gold);
}
.fdx-cat-rail__item:hover .fdx-cat-rail__circle {
	transform: translateY(-4px);
	box-shadow: 0 10px 28px rgba(196,168,130,0.25);
	border-color: var(--fdx-gold);
}
.fdx-cat-rail__label { font-size: 0.85rem; font-weight: 600; text-align: center; }
.fdx-cat-rail__count { font-size: 0.72rem; color: var(--fdx-grey-500); }
@media (min-width: 1025px){
	.fdx-cat-rail { gap: 2rem; justify-content: center; }
	.fdx-cat-rail__circle { width: 96px; height: 96px; }
	.fdx-cat-rail__initial { font-size: 1.75rem; }
	.fdx-cat-rail__label { font-size: 0.9rem; }
}

/* ---- Promo banners ---- */
.fdx-promo-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}
@media (min-width: 768px){ .fdx-promo-row { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.fdx-promo {
	position: relative;
	display: block;
	border-radius: 18px;
	overflow: hidden;
	min-height: 180px;
	background-size: cover;
	background-position: center;
	background-color: #eee;
	text-decoration: none;
	color: #fff;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 6px 22px rgba(0,0,0,0.08);
}
.fdx-promo::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 100%);
}
.fdx-promo:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,0.18); color: #fff; }
.fdx-promo__content {
	position: relative;
	padding: 1.75rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.fdx-promo__subtitle {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	opacity: 0.85;
}
.fdx-promo__title {
	font-size: 1.75rem;
	font-weight: 800;
	margin: 0.25rem 0 0.75rem;
	letter-spacing: -0.01em;
}
.fdx-promo__cta { font-size: 0.9rem; font-weight: 600; }
@media (min-width: 1025px){
	.fdx-promo { min-height: 220px; }
	.fdx-promo__title { font-size: 2.25rem; }
}

/* ---- Homepage-specific card additions ---- */
/* Note: base .fdx-product-card styles (border-radius, box-shadow, info padding,
   title font-size) are defined in fdx-product.css. Do not duplicate here. */
.fdx-product-card__shipping {
	font-size: 0.68rem;
	color: #2e7d5b;
	background: #e7f5ee;
	padding: 0.15rem 0.45rem;
	border-radius: 4px;
	font-weight: 600;
}
/* GrabPay installment */
.fdx-grabpay {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.68rem;
	color: var(--fdx-grey-500);
	margin-top: 0.35rem;
	flex-wrap: wrap;
}
.fdx-grabpay strong { color: var(--fdx-grey-700); }
.fdx-grabpay__logo {
	height: 14px;
	width: auto;
	display: inline-block;
	vertical-align: middle;
}

/* Flash deals tint softer */
.fdx-section--deals { background: linear-gradient(180deg, #fff 0%, #fff5f0 50%, #fff 100%); }

/* ---- Showroom CTA (new) ---- */
.fdx-showroom {
	position: relative;
	padding: 4.5rem 1rem;
	color: #fff;
	overflow: hidden;
	background-color: #1e293b;
	background-size: cover;
	background-position: center;
}
.fdx-showroom__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(120deg, rgba(20,30,45,0.92) 0%, rgba(30,41,59,0.8) 60%, rgba(196,168,130,0.45) 100%);
}
.fdx-showroom:not(.fdx-showroom--has-image) .fdx-showroom__overlay {
	background: linear-gradient(135deg, #1e293b 0%, #2c3b50 60%, #C4A882 100%);
}
.fdx-showroom__content { position: relative; text-align: center; max-width: 640px; margin: 0 auto; }
.fdx-showroom__eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--fdx-gold);
	margin-bottom: 1rem;
}
.fdx-showroom__title {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 0.75rem;
}
.fdx-showroom__address, .fdx-showroom__hours { margin: 0.25rem 0; opacity: 0.9; font-size: 0.95rem; }
.fdx-showroom__tagline { margin: 1rem 0 1.5rem; opacity: 0.9; }
.fdx-showroom__ctas { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
@media (min-width:1025px){
	.fdx-showroom { padding: 6rem 2rem; }
	.fdx-showroom__title { font-size: 2.75rem; }
}

/* Quick add to cart button on card hover */
.fdx-quick-add {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--fdx-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s, background 0.15s;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.fdx-product-card:hover .fdx-quick-add {
    opacity: 1;
    transform: translateY(0);
}
.fdx-quick-add:hover { background: var(--fdx-accent-hover); }
.fdx-quick-add:active { transform: scale(0.9); }

/* Quick view eye icon for variable products */
.fdx-quick-view {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--fdx-grey-700);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.fdx-product-card:hover .fdx-quick-view {
    opacity: 1;
    transform: translateY(0);
}

/* Trust badges */
.fdx-trust-badges {
    padding: 1.5rem 0;
    background: #fff;
    border-bottom: 1px solid #f0ece9;
}
.fdx-trust-badges__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 768px) {
    .fdx-trust-badges__grid { grid-template-columns: repeat(4, 1fr); }
}
.fdx-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
}
.fdx-trust-badge__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--fdx-gold-light);
    color: var(--fdx-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fdx-trust-badge__text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fdx-grey-900);
}
.fdx-trust-badge__text span {
    display: block;
    font-size: 0.72rem;
    color: var(--fdx-grey-500);
    margin-top: 0.1rem;
}

/* Sold progress bar */
.fdx-sold-bar {
    position: relative;
    height: 16px;
    background: #fde8e0;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.4rem;
}
.fdx-sold-bar__fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, #ee4d2d, #ff6b4a);
    border-radius: 8px;
    min-width: 20%;
}
.fdx-sold-bar__text {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    line-height: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Fade-in on scroll */
@media (prefers-reduced-motion: no-preference){
	.fdx-section, .fdx-hero, .fdx-showroom { animation: fdxFadeUp 0.6s ease both; }
	@keyframes fdxFadeUp {
		from { opacity: 0; transform: translateY(16px); }
		to { opacity: 1; transform: translateY(0); }
	}
}

/* ==========================================================================
   Flash Sale Countdown Timer
   ========================================================================== */

.fdx-countdown {
	display: flex;
	flex-direction: row;
	gap: 4px;
	align-items: center;
}

.fdx-countdown__block {
	background: #ee4d2d;
	color: #fff;
	font-weight: 800;
	font-size: 1.1rem;
	padding: 4px 8px;
	border-radius: 4px;
	min-width: 32px;
	text-align: center;
}

.fdx-countdown__sep {
	color: #ee4d2d;
	font-weight: 800;
	font-size: 1.1rem;
}

/* ==========================================================================
   Voucher / Coupon Collection Banner
   ========================================================================== */

/* ==========================================================================
   Recently Viewed — hide when empty
   ========================================================================== */

.fdx-recently-viewed:empty {
	display: none;
}

.fdx-voucher-bar {
	background: linear-gradient(90deg, var(--fdx-gold-light), #F9F7F4);
	padding: 0.75rem 0;
}

.fdx-voucher-bar__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: #fff;
	border-radius: 12px;
	padding: 0.875rem 1.25rem;
	border: 1.5px dashed var(--fdx-gold);
	box-shadow: 0 2px 8px rgba(196, 168, 130, 0.12);
}

.fdx-voucher-bar__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	color: var(--fdx-gold);
}
.fdx-voucher-bar__icon svg {
	width: 28px;
	height: 28px;
	stroke: var(--fdx-gold);
}

.fdx-voucher-bar__info {
	flex: 1;
}

.fdx-voucher-bar__title {
	font-size: 0.95rem;
	font-weight: 600;
	color: #333;
	display: block;
}

.fdx-voucher-bar__title strong {
	color: var(--fdx-gold);
}

.fdx-voucher-bar__subtitle {
	font-size: 0.78rem;
	color: #999;
	display: block;
	margin-top: 0.15rem;
}

.fdx-voucher-bar__btn {
	background: var(--fdx-gold);
	color: var(--fdx-accent);
	border: none;
	border-radius: 8px;
	padding: 0.5rem 1.25rem;
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
}

.fdx-voucher-bar__btn:hover {
	background: var(--fdx-gold-hover);
}

/* ==========================================================================
   Mobile Homepage — Slim Down Redundancies
   ========================================================================== */

@media (max-width: 767px) {
	/* Trust badges hidden — hero already covers USPs */
	.fdx-trust-badges { display: none; }

	/* Showroom CTA hidden — hero has "Visit Showroom" button */
	.fdx-showroom { display: none; }

	/* "Just For You" — show only 6 cards on mobile */
	.fdx-section--alt .fdx-product-grid .fdx-product-card:nth-child(n+7) {
		display: none;
	}

	/* Voucher bar: compact on mobile */
	.fdx-voucher-bar__inner { gap: 0.75rem; padding: 0.75rem 1rem; }
	.fdx-voucher-bar__icon { font-size: 1.25rem; }
	.fdx-voucher-bar__title { font-size: 0.82rem; }
	.fdx-voucher-bar__subtitle { font-size: 0.7rem; }

	/* Category rail: smaller circles on mobile */
	.fdx-cat-rail__circle { width: 64px; height: 64px; }
	.fdx-cat-rail__label { font-size: 0.75rem; }
	.fdx-cat-rail__count { font-size: 0.65rem; }
	.fdx-cat-rail__item { gap: 0.35rem; min-width: 72px; }

	/* Reviews: horizontal scroll on mobile */
	.fdx-reviews__grid {
		grid-template-columns: 1fr !important;
	}
}

/* ==========================================================================
   Google Reviews
   ========================================================================== */

.fdx-reviews {
	padding: 3rem 0;
	background: #fff;
}

.fdx-reviews__google-badge {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 1.5rem;
	padding: 0.75rem 1rem;
	background: #F9F7F4;
	border-radius: 10px;
	width: fit-content;
}

.fdx-reviews__google-info {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.fdx-reviews__google-info strong {
	font-size: 0.85rem;
	color: var(--fdx-grey-900);
}

.fdx-reviews__stars {
	display: flex;
	gap: 1px;
}

.fdx-reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.fdx-reviews__card {
	background: #F9F7F4;
	border-radius: 12px;
	padding: 1.25rem;
	transition: box-shadow 0.2s ease;
}

.fdx-reviews__card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.fdx-reviews__card-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.625rem;
}

.fdx-reviews__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--fdx-accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.875rem;
	flex-shrink: 0;
}

.fdx-reviews__name {
	font-size: 0.875rem;
	color: var(--fdx-grey-900);
	display: block;
}

.fdx-reviews__date {
	font-size: 0.75rem;
	color: var(--fdx-grey-500);
}

.fdx-reviews__card-stars {
	display: flex;
	gap: 1px;
	margin-bottom: 0.5rem;
}

.fdx-reviews__text {
	font-size: 0.85rem;
	line-height: 1.6;
	color: var(--fdx-grey-700);
	margin: 0;
}
