/* ============================================================
   HOME REDESIGN — React-to-WordPress port
   Loads only on is_front_page(). Requires tokens.css.
   ============================================================ */

/* ── Local token aliases ────────────────────────────────── */
:root {
	--home-color-primary:  var(--color-navy);
	--home-color-accent:   var(--color-indigo);
	--home-color-gold:     var(--color-accent);
	--home-color-bg:       #ffffff;
	--home-color-card:     var(--color-white);
	--home-color-text:     var(--text-primary);
	--home-color-muted:    var(--text-secondary);
	--home-shadow-soft:    var(--s-md);
	--home-shadow-hover:   var(--s-lg);
	--home-radius-lg:      var(--r-lg);
	--home-radius-md:      var(--r-md);
	--home-transition:     var(--t-fast);
}

/* ── Wrapper ────────────────────────────────────────────── */
.home-redesign {
	background: #ffffff;
	color: var(--home-color-text);
	font-family: var(--font-primary);
	padding-bottom: 5rem;
}

#content.home-redesign,
.home-redesign.page-wrapper {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* ── Container ─────────────────────────────────────────── */
.home-container {
	width: min(1400px, calc(100% - 3rem));
	margin-inline: auto;
}

/* ── Section scaffold ───────────────────────────────────── */
.home-section {
	padding: clamp(3rem, 5vw, 6rem) 0;
}

.home-section--dark {
	background: #ffffff;
}

.home-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
}

.home-section-title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 400;
	line-height: 1.1;
	color: var(--home-color-primary);
	margin: 0;
	letter-spacing: -0.02em;
}

.home-section-description {
	color: var(--home-color-muted);
	font-size: 0.95rem;
	margin: 0.5rem 0 0;
}

/* ── Eyebrow label ──────────────────────────────────────── */
.home-eyebrow {
	font-family: var(--font-primary);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--color-navy);
	margin: 0 0 0.6rem;
}

.home-eyebrow--light {
	color: rgba(255,255,255,0.75);
}

/* ── View-all link ──────────────────────────────────────── */
.home-link-cta {
	font-size: 0.7rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--color-navy);
	text-decoration: none;
	border-bottom: 1px solid var(--color-navy);
	padding-bottom: 2px;
	white-space: nowrap;
	transition: color var(--home-transition), border-color var(--home-transition);
}

.home-link-cta:hover {
	color: var(--home-color-primary);
	border-color: var(--home-color-primary);
}

/* ── Section controls (view-all + slider buttons) ────────── */
.home-section-controls {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

/* ── Slider prev/next buttons ───────────────────────────── */
.home-slider-btns {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.home-slider-btn {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(57,57,104,0.2);
	background: transparent;
	color: var(--home-color-primary);
	cursor: pointer;
	transition: background var(--home-transition), color var(--home-transition), border-color var(--home-transition);
}

.home-slider-btn:hover {
	background: var(--home-color-accent);
	color: #ffffff;
	border-color: var(--home-color-accent);
}

.home-slider-btn svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	flex-shrink: 0;
}

.home-slider-btn.swiper-button-disabled {
	opacity: 0.3;
	pointer-events: none;
}

/* ── Scroll-reveal animations ────────────────────────────── */
[data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}

[data-reveal].is-revealed {
	opacity: 1;
	transform: translateY(0);
}

[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
[data-reveal]:nth-child(3) { transition-delay: 0.2s; }
[data-reveal]:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   CATEGORY MOSAIC
   ============================================================ */

.home-categories {
	background: #ffffff;
}

/* Eyebrow + title for categories header */
.home-categories .home-section-head {
	align-items: flex-start;
}

.home-category-mosaic {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 300px 260px;
	gap: 0.75rem;
	align-items: stretch;
}

/* Hero card spans left column both rows */
.home-category-card--hero {
	grid-column: 1;
	grid-row: 1 / 3;
}

.home-category-card--hero .home-category-link {
	aspect-ratio: unset;
	height: 100%;
}

.home-category-card:not(.home-category-card--hero) .home-category-link {
	aspect-ratio: unset;
	height: 100%;
}

/* ── Card base ───────────────────────────────────────────── */
.home-category-card {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
}

.home-category-link {
	display: block;
	position: relative;
	overflow: hidden;
	background: #f0f0f4;
	text-decoration: none;
}

.home-category-link picture,
.home-category-link img {
	width: 100%;
	height: 100%;
	display: block;
}

.home-category-link img {
	object-position: center;
	transition: transform 700ms ease;
}

.home-category-link:hover img {
	transform: scale(1.07);
}

/* Gradient overlay */
.home-category-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(57,57,104,0.7) 0%, rgba(57,57,104,0.1) 50%, transparent 100%);
	transition: opacity var(--home-transition);
	pointer-events: none;
}

.home-category-link:hover .home-category-overlay {
	opacity: 0.9;
}

/* Category label + arrow icon */
.home-category-footer {
	position: absolute;
	inset: auto 0 0;
	padding: 1.25rem 1.25rem 1.5rem;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.5rem;
}

.home-category-name {
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 400;
	color: #ffffff;
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.home-category-card--hero .home-category-name {
	font-size: 1.9rem;
}

.home-category-arrow {
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255,255,255,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	flex-shrink: 0;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity var(--home-transition), transform var(--home-transition);
}

.home-category-arrow svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

.home-category-link:hover .home-category-arrow {
	opacity: 1;
	transform: translateY(0);
}

/* ============================================================
   PRODUCT CAROUSELS (Best Sellers, New Products)
   ============================================================ */

/* Products section — define WC card tokens */
.home-products {
	--cat-primary:       var(--color-indigo);
	--cat-primary-dark:  var(--color-navy);
	--cat-accent:        var(--color-gold);
	--cat-text:          var(--text-primary);
	--cat-text-muted:    var(--text-muted);
	--cat-bg:            #f5f5f7;
	--cat-surface:       var(--color-white);
	--cat-border:        rgba(57,57,104,0.14);
	--cat-border-light:  rgba(57,57,104,0.08);
	--cat-radius-xs:     var(--r-xs);
	--cat-radius-sm:     var(--r-sm);
	--cat-radius-md:     var(--r-md);
	--cat-shadow-xs:     var(--s-xs);
	--cat-shadow-sm:     var(--s-sm);
	--cat-shadow-lg:     var(--s-lg);
	--cat-transition:    var(--t-normal);
	--cat-transition-slow: var(--t-slow);
}

/* Swiper overflow is visible so partial cards show */
.home-product-swiper {
	overflow: visible !important;
}

/* Clip overflow at the container level */
.home-products .home-container {
	overflow: hidden;
}

/* ── Attai product cards inside home carousel ───────────── */
.home-products .attai-product-card {
	background: var(--cat-surface);
	overflow: hidden;
	box-shadow: var(--cat-shadow-xs);
	border: 1px solid var(--cat-border-light);
	transition: all var(--cat-transition);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.home-products .attai-product-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--cat-shadow-lg);
	border-color: var(--cat-border);
}

.home-products .attai-product-card__image-wrap {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--cat-bg);
	flex-shrink: 0;
}

.home-products .attai-product-card__img-link {
	display: block;
	width: 100%;
	height: 100%;
}

.home-products .attai-product-card__img {
	width: 100%;
	height: 100%;
	object-position: center;
	display: block;
	transition: transform var(--cat-transition-slow);
}

.home-products .attai-product-card:hover .attai-product-card__img {
	transform: scale(1.06);
}

.home-products .attai-product-card__badge {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	padding: 0.25rem 0.6rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	z-index: 2;
	line-height: 1.4;
}

.home-products .attai-product-card__badge--sale {
	background: var(--cat-accent);
	color: #fff;
}

.home-products .attai-product-card__badge--oos {
	background: var(--cat-text-muted);
	color: #fff;
}

.home-products .attai-product-card__actions {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	z-index: 3;
}

.home-products .attai-product-card__qv,
.home-products .attai-product-card__fav {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	color: var(--cat-text) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--cat-shadow-sm);
	text-decoration: none;
	opacity: 0;
	transform: translateX(8px);
	transition: opacity var(--cat-transition), transform var(--cat-transition),
		background var(--cat-transition), color var(--cat-transition);
}

.home-products .attai-product-card__qv svg,
.home-products .attai-product-card__fav svg {
	display: block;
	flex-shrink: 0;
	stroke: var(--cat-text);
	pointer-events: none;
}

[dir="rtl"] .home-products .attai-product-card__qv,
[dir="rtl"] .home-products .attai-product-card__fav {
	transform: translateX(-8px);
}

.home-products .attai-product-card:hover .attai-product-card__qv,
.home-products .attai-product-card:hover .attai-product-card__fav {
	opacity: 1;
	transform: translateX(0);
}

.home-products .attai-product-card__fav { transition-delay: 0.04s; }

.home-products .attai-product-card__qv:hover,
.home-products .attai-product-card__fav:hover {
	background: var(--cat-primary);
	color: #fff !important;
}

.home-products .attai-product-card__qv:hover svg,
.home-products .attai-product-card__fav:hover svg {
	stroke: #fff;
}

.home-products .attai-product-card__fav.is-wishlisted {
	background: var(--cat-primary);
	color: #fff !important;
	opacity: 1;
	transform: translateX(0);
}

.home-products .attai-product-card__fav.is-wishlisted svg {
	stroke: #fff;
	fill: #fff;
}

@media (hover: none) and (pointer: coarse) {
	.home-products .attai-product-card__qv,
	.home-products .attai-product-card__fav {
		opacity: 1;
		transform: translateX(0);
	}
}

.home-products .attai-product-card .attai-product-card__content,
.home-products .attai-product-card .attai-product-card__name,
.home-products .attai-product-card .attai-product-card__pricing {
	text-align: start;
}

.home-products .attai-product-card__name {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--cat-text);
	margin: 0;
	line-height: 1.35;
	min-height: 2.7em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.home-products .attai-product-card__name a {
	color: inherit;
	text-decoration: none;
	transition: color var(--cat-transition);
}

.home-products .attai-product-card__name a:hover {
	color: var(--cat-primary);
}

.home-products .attai-product-card__pricing {
	padding-top: 0.2rem;
}

.home-products .attai-product-card__pricing .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3rem;
	margin: 0;
	justify-content: start !important;
}

.home-products .attai-product-card__pricing .amount {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--cat-text);
}

.home-products .attai-product-card__pricing ins {
	text-decoration: none;
}

.home-products .attai-product-card__pricing ins .amount {
	color: var(--cat-primary);
}

.home-products .attai-product-card__pricing del .amount {
	color: var(--cat-text-muted);
	font-size: 0.78rem;
	font-weight: 400;
}

.home-products .attai-product-card__atc-bar {
	display: none; /* replaced by image overlay in home context */
}

/* ── Wishlist always visible (React design — not hidden on hover) ── */
.home-products .attai-product-card__fav {
	opacity: 1 !important;
	transform: translateX(0) !important;
	background: rgba(255, 255, 255, 0.92);
}

/* ── ATC overlay (slides up from image bottom on hover) ── */
.home-products .attai-product-card__atc-overlay {
	display: block !important;
	position: absolute;
	inset-inline: 0.75rem;
	bottom: 0.75rem;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity var(--cat-transition), transform var(--cat-transition);
	z-index: 4;
}

.home-products .attai-product-card:hover .attai-product-card__atc-overlay {
	opacity: 1;
	transform: translateY(0);
}

.home-products .attai-product-card__atc--overlay {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	padding: 0.7rem 1rem;
	background: var(--color-navy);
	color: #fff;
	border: none;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	cursor: pointer;
	font-family: inherit;
	transition: background var(--cat-transition);
}

.home-products .attai-product-card__atc--overlay:hover {
	background: var(--cat-primary);
}

/* ── Name + price in flex row (React layout) ── */
.home-products .attai-product-card__content {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"name  price"
		"stars stars"
		"mktg  mktg";
	column-gap: 0.5rem;
	padding: 0.85rem 0.95rem 1rem;
	flex: 1;
	align-content: start;
}

.home-products .attai-product-card__name    { grid-area: name; }
.home-products .attai-product-card__pricing { grid-area: price; align-self: start; }
.home-products .attai-product-card__stars   { grid-area: stars; }

.home-products .attai-product-card__pricing .price {
	justify-content: flex-end !important;
	text-align: end;
}

/* Name: lighter weight matching React */
.home-products .attai-product-card__name { font-weight: 400; }

/* ── Star ratings ── */
.home-products .attai-product-card__stars {
	display: flex !important;
	align-items: center;
	gap: 2px;
	padding-top: 0.2rem;
}

.home-products .attai-star {
	fill: none;
	stroke: rgba(168, 129, 45, 0.35);
}

.home-products .attai-star--filled {
	fill: var(--cat-accent);
	stroke: var(--cat-accent);
}

.home-products .attai-star-count {
	font-size: 0.65rem;
	color: var(--cat-text-muted);
	margin-inline-start: 2px;
}

/* ── Legacy .home-product-card (fallback if WC card unavailable) ── */
.home-product-card {
	position: relative;
	background: var(--home-color-card);
	border: 1px solid rgba(68,71,148,0.1);
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(68,71,148,0.07);
	transition: transform var(--home-transition), box-shadow var(--home-transition);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.home-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(68,71,148,0.16);
}

.home-product-image-wrap {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #f5f5f7;
	flex-shrink: 0;
}

.home-product-image-wrap.is-loaded {
	background: #f5f5f7;
}

.home-product-img-link {
	display: block;
	width: 100%;
	height: 100%;
}

.home-product-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-position: center top;
	display: block;
	transition: opacity 450ms ease, transform 500ms ease;
}

.home-product-image.secondary { opacity: 0; }

.home-product-card:hover .home-product-image.primary {
	transform: scale(1.05);
	opacity: 0;
}

.home-product-card:hover .home-product-image.secondary { opacity: 1; }

.home-product-actions {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	z-index: 3;
}

.home-product-favorite {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.92);
	backdrop-filter: blur(8px);
	color: var(--color-navy) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(68,71,148,0.15);
	padding: 0;
	opacity: 0;
	transform: translateX(8px);
	transition: opacity var(--home-transition), transform var(--home-transition),
		background var(--home-transition);
}

[dir="rtl"] .home-product-favorite { transform: translateX(-8px); }

.home-product-card:hover .home-product-favorite {
	opacity: 1;
	transform: translateX(0);
}

.home-product-favorite svg {
	display: block;
	flex-shrink: 0;
	stroke: var(--color-navy);
	pointer-events: none;
}

.home-product-favorite .heart-filled { display: none; }

.home-product-favorite:hover,
.home-product-favorite.is-wishlisted {
	background: var(--color-indigo);
	color: #fff !important;
}

.home-product-favorite:hover svg,
.home-product-favorite.is-wishlisted svg { stroke: #fff; }

.home-product-favorite.is-wishlisted {
	opacity: 1;
	transform: translateX(0);
}

.home-product-favorite.is-wishlisted .heart-outline { display: none; }
.home-product-favorite.is-wishlisted .heart-filled  { display: block; fill: #fff; stroke: #fff; }

@media (hover: none) and (pointer: coarse) {
	.home-product-favorite {
		opacity: 1;
		transform: translateX(0);
	}
}

.home-product-content {
	padding: 0.85rem 1rem 0.75rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	text-align: start !important;
}

.home-product-card .home-product-content,
.home-product-card .home-product-title,
.home-product-card .home-product-price {
	text-align: start !important;
}

.home-product-title {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	min-height: 2.5em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.home-product-title a {
	color: var(--color-navy);
	text-decoration: none;
	transition: color var(--home-transition);
}

.home-product-title a:hover { color: var(--color-indigo); }

.home-product-price {
	margin: 0;
	color: var(--home-color-gold);
	font-weight: 700;
	font-size: 0.95rem;
}

.home-product-atc-bar { margin-top: auto; padding-top: 0.75rem; }

.home-product-cart {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	padding: 0.62rem 0.8rem;
	background: var(--color-indigo);
	color: #fff;
	border: none;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	font-family: inherit;
	transition: background var(--home-transition), box-shadow var(--home-transition);
}

.home-product-cart:hover {
	background: var(--color-indigo);
	color: #fff;
	box-shadow: 0 4px 14px rgba(68,71,148,0.4);
}

.home-product-cart.is-secondary {
	background: #f0f0f2;
	color: var(--color-navy);
}

[dir="rtl"] .home-product-cart,
body.is-rtl .home-product-cart {
	flex-direction: row-reverse;
}

/* ── Empty state ─────────────────────────────────────────── */
.home-empty-state {
	padding: 1.5rem;
	background: #f9f9fb;
	color: var(--home-color-muted);
}

/* ── Placeholder product cards (animated skeleton) ──────── */
.home-products .attai-product-card--placeholder {
	pointer-events: none;
}

.home-products .attai-product-card__image-wrap--ph {
	aspect-ratio: 3 / 4;
}

.home-products .attai-product-card__content--ph {
	padding: 0.85rem;
	display: block;
}

.home-products .attai-ph-line {
	height: 0.65rem;
	background: rgba(57, 57, 104, 0.1);
	border-radius: 2px;
	margin-bottom: 0.5rem;
	animation: attai-ph-pulse 1.6s ease-in-out infinite;
}

.home-products .attai-ph-line--short {
	width: 50%;
}

@keyframes attai-ph-pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0.4; }
}


/* ── Products head ───────────────────────────────────────── */
.home-products-head { margin-bottom: 1.5rem; }

/* ============================================================
   GALLERY — Dark editorial mosaic
   ============================================================ */

.home-gallery {
	background: #ffffff;
	position: relative;
	overflow: hidden;
}

/* Ambient colour blobs (pure CSS — no GSAP needed) */
.home-gallery-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	pointer-events: none;
}

.home-gallery-blob--1 {
	width: 500px;
	height: 500px;
	background: rgba(82,76,159,0.35);  /* purple */
	top: -120px;
	right: -100px;
}

.home-gallery-blob--2 {
	width: 400px;
	height: 400px;
	background: rgba(168,129,45,0.2);  /* gold */
	bottom: -80px;
	left: -80px;
}

.home-gallery-head {
	text-align: center;
	margin-bottom: 2.5rem;
}

.home-gallery-title {
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 400;
	color: var(--color-navy);
	margin: 0;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

/* 12-column mosaic grid */
.home-gallery-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-template-rows: 260px 260px;
	gap: 0.75rem;
}

.home-gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.home-gallery-item:nth-child(2) { grid-column: span 5; }
.home-gallery-item:nth-child(3) { grid-column: span 3; }
.home-gallery-item:nth-child(4) { grid-column: span 2; }

.home-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
}

.home-gallery-item a {
	display: block;
	width: 100%;
	height: 100%;
}

.home-gallery-item img {
	width: 100%;
	height: 100%;
	object-position: center;
	display: block;
	transition: transform 700ms ease;
	filter: brightness(0.85) saturate(0.9);
}

.home-gallery-item:hover img {
	transform: scale(1.06);
	filter: brightness(0.95) saturate(1);
}

.home-gallery-item figcaption {
	position: absolute;
	inset: auto 0 0;
	padding: 1rem;
	font-family: var(--font-display);
	font-size: 1.1rem;
	font-weight: 400;
	color: rgba(255,255,255,0.9);
	background: linear-gradient(to top, rgba(57,57,104,0.6), transparent);
	letter-spacing: 0.01em;
	pointer-events: none;
}

/* ============================================================
   WHY CHOOSE US / VALUE PROPS
   ============================================================ */

.home-value {
	background: #ffffff;
}

.home-value .home-section-head {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	text-align: start;
}

.home-value-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
}

.home-value-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 2rem 1.5rem;
	background: #ffffff;
	border: 1px solid rgba(57,57,104,0.1);
	transition: box-shadow var(--home-transition), border-color var(--home-transition);
}

.home-value-card:hover {
	box-shadow: var(--home-shadow-soft);
	border-color: rgba(57,57,104,0.2);
}

/* Circle icon */
.home-value-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 1.5px solid rgba(57,57,104,0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.25rem;
	flex-shrink: 0;
}

.home-value-icon svg {
	width: 26px;
	height: 26px;
	stroke: #1a1a1a;
	fill: none;
	stroke-width: 1.8;
}

.home-value-card h3 {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 400;
	margin: 0 0 0.6rem;
	color: var(--home-color-primary);
	letter-spacing: -0.01em;
}

.home-value-card p {
	margin: 0;
	color: var(--home-color-muted);
	font-size: 0.9rem;
	line-height: 1.6;
}

/* ============================================================
   TESTIMONIALS — Swiper carousel
   ============================================================ */

.home-testimonials {
	background: #f9f9fb;
}

.home-testimonials .home-section-head {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
}

.home-testimonials-swiper {
	overflow: visible !important;
}

.home-testimonials .home-container {
	overflow: hidden;
}

.home-testimonial-card {
	background: #ffffff;
	border: 1px solid rgba(57,57,104,0.08);
	padding: 2rem 1.75rem 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	box-shadow: 0 2px 8px rgba(57,57,104,0.06);
	height: 100%;
}

.home-testimonial-quote-mark {
	font-family: var(--font-display);
	font-size: 4rem;
	line-height: 0.8;
	color: var(--color-navy);
	user-select: none;
	aria-hidden: true;
}

.home-testimonial-card blockquote {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--home-color-text);
	font-style: italic;
}

.home-testimonial-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: auto;
}

.home-testimonial-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--color-pale);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-family: var(--font-display);
	font-size: 1rem;
	color: var(--color-navy);
	overflow: hidden;
}

.home-testimonial-avatar img {
	width: 100%;
	height: 100%;
}

.home-testimonial-name {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--home-color-primary);
	margin: 0;
}

.home-testimonial-location {
	font-size: 0.8rem;
	color: var(--home-color-muted);
	margin: 0.1rem 0 0;
}

/* Swiper pagination below testimonials */
.home-testimonials .swiper-pagination {
	position: static !important;
	transform: none !important;
	margin-top: 2rem;
	display: flex !important;
	justify-content: center;
	gap: 0.5rem;
}

.home-testimonials .swiper-pagination-bullet {
	width: 8px !important;
	height: 8px !important;
	border-radius: 50% !important;
	background: var(--color-navy) !important;
	opacity: 0.3 !important;
	cursor: pointer;
	transition: opacity var(--t-fast), background var(--t-fast) !important;
}

.home-testimonials .swiper-pagination-bullet-active {
	background: var(--color-navy) !important;
	opacity: 1 !important;
	transform: none !important;
}

/* ============================================================
   PROMO BANNER — redesigned
   ============================================================ */

.home-promo {
	background: var(--color-navy);
	position: relative;
	overflow: hidden;
}

/* Subtle diagonal stripe texture */
.home-promo::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		-45deg,
		rgba(255,255,255,0.03) 0px,
		rgba(255,255,255,0.03) 1px,
		transparent 1px,
		transparent 20px
	);
	pointer-events: none;
}

/* Glow blob */
.home-promo::after {
	content: '';
	position: absolute;
	width: 500px;
	height: 500px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(68,71,148,0.4) 0%, transparent 70%);
	top: -150px;
	right: -100px;
	pointer-events: none;
}

/* ── Layout ── */
.hpb-wrap {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
	padding: clamp(2.5rem, 5vw, 4rem) 0;
}

/* ── Eyebrow ── */
.hpb-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.65);
	margin: 0 0 1rem;
}

.hpb-eyebrow svg { flex-shrink: 0; opacity: 0.8; }

/* ── Headline ── */
.hpb-title {
	font-family: var(--font-display);
	font-size: clamp(1.9rem, 3.5vw, 3rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: #ffffff;
	margin: 0 0 0.85rem;
}

/* ── Description ── */
.hpb-desc {
	font-size: 0.95rem;
	line-height: 1.7;
	color: rgba(255,255,255,0.65);
	margin: 0 0 1.5rem;
	max-width: 48ch;
}

/* ── Promo code row ── */
.hpb-code-row {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 1.75rem;
	flex-wrap: wrap;
}

.hpb-code-label {
	font-size: 0.8rem;
	color: rgba(255,255,255,0.55);
	letter-spacing: 0.04em;
}

.hpb-code-badge {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.9rem;
	background: rgba(255,255,255,0.08);
	border: 1px dashed rgba(255,255,255,0.35);
	border-radius: 6px;
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	cursor: pointer;
	font-family: 'Courier New', monospace;
	transition: background 0.2s, border-color 0.2s;
	overflow: hidden;
}

.hpb-code-badge:hover {
	background: rgba(255,255,255,0.14);
	border-color: rgba(255,255,255,0.6);
}

.hpb-code-copied {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(34,197,94,0.9);
	font-size: 0.78rem;
	font-family: inherit;
	letter-spacing: 0.05em;
	font-weight: 600;
	border-radius: inherit;
	opacity: 0;
	transition: opacity 0.2s;
	pointer-events: none;
}

.hpb-code-badge.is-copied .hpb-code-copied { opacity: 1; }

/* ── CTA button ── */
.hpb-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 1.8rem;
	background: #ffffff;
	color: var(--color-navy);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
	min-height: 48px;
}

.hpb-cta:hover {
	background: var(--color-pale);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.hpb-cta svg { flex-shrink: 0; transition: transform 0.2s; }
.hpb-cta:hover svg { transform: translateX(3px); }

/* ── Stats column ── */
.hpb-stats {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 200px;
}

.hpb-stat {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	text-align: center;
}

.hpb-stat:last-child { border-bottom: none; }

.hpb-stat__value {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	font-weight: 400;
	line-height: 1;
	color: #ffffff;
	letter-spacing: -0.02em;
}

.hpb-stat__label {
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.5);
}

/* ── Hero CTA (hero swiper button) ── */
.home-hero-cta {
	background: var(--color-navy);
	color: #ffffff;
	padding: 0.88rem 1.65rem;
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-decoration: none;
	border: 0;
	display: inline-block;
	min-height: 44px;
	transition: transform var(--home-transition), background-color var(--home-transition);
}

.home-hero-cta:hover {
	background: var(--color-indigo);
	color: #ffffff;
}

/* ── Mobile ── */
@media (max-width: 767px) {
	.hpb-wrap {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.hpb-stats {
		flex-direction: row;
		min-width: 0;
		border-top: 1px solid rgba(255,255,255,0.08);
		padding-top: 1.5rem;
	}

	.hpb-stat {
		flex: 1;
		border-bottom: none;
		border-right: 1px solid rgba(255,255,255,0.08);
		padding: 0.75rem 0.5rem;
	}

	.hpb-stat:last-child { border-right: none; }

	.hpb-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
}

/* ============================================================
   MOBILE STICKY ACTIONS
   ============================================================ */

.home-mobile-actions {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
	background: rgba(255,255,255,0.92);
	backdrop-filter: blur(8px);
	border-top: 1px solid rgba(57,57,104,0.12);
}

@media (min-width: 768px) {
	.home-mobile-actions { display: none; }
}

.home-mobile-action {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	text-decoration: none;
	transition: transform var(--home-transition), background-color var(--home-transition);
	background: #f0f0f2;
	color: var(--home-color-primary);
}

.home-mobile-action svg {
	width: 24px;
	height: 24px;
	stroke-width: 2;
}

.home-mobile-action:hover {
	transform: scale(1.05);
	background: rgba(68,71,148,0.1);
}

.home-mobile-cart-count,
.home-mobile-wishlist-count {
	position: absolute;
	top: -6px;
	right: -6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.3rem;
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1;
	color: #ffffff;
	background: var(--home-color-gold);
	border: 2px solid #ffffff;
}

.home-mobile-cart-count.is-hidden,
.home-mobile-wishlist-count.is-hidden { display: none; }

/* ============================================================
   FRONT PAGE — Transparent-on-hero navbar override
   Scoped to body.front-page so other pages stay white.
   JS in home-redesign.js toggles .is-scrolled on #attai-navbar.
   ============================================================ */

/* Collapse Flatsome's native header + reset its sticky wrapper padding
   so our fixed navbar is the sole nav and the hero bleeds full-viewport */
body.front-page #header {
	display: none !important;
}
body.front-page #wrapper {
	padding-top: 0 !important;
}

body.front-page #attai-navbar:not(.is-scrolled) {
	background: transparent !important;
	border-bottom-color: transparent !important;
	box-shadow: none !important;
}

body.front-page #attai-navbar:not(.is-scrolled) .attai-menu__link,
body.front-page #attai-navbar:not(.is-scrolled) .attai-menu__dropdown-toggle,
body.front-page #attai-navbar:not(.is-scrolled) .attai-caret {
	color: rgba(255,255,255,0.9);
}

body.front-page #attai-navbar:not(.is-scrolled) .attai-menu__link:hover,
body.front-page #attai-navbar:not(.is-scrolled) .attai-menu__link:focus-visible {
	color: #ffffff;
	background: rgba(255,255,255,0.12);
	border-bottom-color: rgba(255,255,255,0.6);
}

body.front-page #attai-navbar:not(.is-scrolled) .attai-navbar__brand,
body.front-page #attai-navbar:not(.is-scrolled) .attai-navbar__site-name {
	color: #ffffff;
}

body.front-page #attai-navbar:not(.is-scrolled) .attai-navbar__action-btn,
body.front-page #attai-navbar:not(.is-scrolled) .attai-wishlist-btn,
body.front-page #attai-navbar:not(.is-scrolled) .attai-cart-btn {
	color: #ffffff;
}

body.front-page #attai-navbar:not(.is-scrolled) .attai-navbar__action-btn svg,
body.front-page #attai-navbar:not(.is-scrolled) .attai-wishlist-btn svg,
body.front-page #attai-navbar:not(.is-scrolled) .attai-cart-btn svg {
	stroke: #ffffff;
	color: #ffffff;
}

body.front-page #attai-navbar:not(.is-scrolled) .attai-navbar__action-btn:hover {
	background: rgba(255,255,255,0.15);
}

body.front-page #attai-navbar:not(.is-scrolled) .attai-hamburger {
	color: #ffffff;
}

body.front-page #attai-navbar.is-scrolled {
	background: rgba(255,255,255,0.96) !important;
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-pale) !important;
	box-shadow: 0 1px 24px rgba(57,57,104,0.08) !important;
}

/* Restore dark text/icons when scrolled (overrides hero white) */
body.front-page #attai-navbar.is-scrolled .attai-menu__link,
body.front-page #attai-navbar.is-scrolled .attai-menu__dropdown-toggle,
body.front-page #attai-navbar.is-scrolled .attai-caret {
	color: var(--text-primary);
}

body.front-page #attai-navbar.is-scrolled .attai-navbar__brand,
body.front-page #attai-navbar.is-scrolled .attai-navbar__site-name,
body.front-page #attai-navbar.is-scrolled .attai-navbar__action-btn,
body.front-page #attai-navbar.is-scrolled .attai-wishlist-btn,
body.front-page #attai-navbar.is-scrolled .attai-cart-btn,
body.front-page #attai-navbar.is-scrolled .attai-hamburger {
	color: var(--text-primary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
	.home-category-mosaic {
		grid-template-columns: 1fr 1fr 1fr;
		grid-template-rows: 260px 220px;
	}

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

@media (max-width: 1080px) {
	.home-category-mosaic {
		grid-template-columns: 1fr 1fr 1fr;
		grid-template-rows: 220px 190px;
	}

	.home-gallery-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 220px 220px;
	}

	.home-gallery-item:nth-child(1) { grid-column: span 2; grid-row: 1; }
	.home-gallery-item:nth-child(2) { grid-column: 1; grid-row: 2; }
	.home-gallery-item:nth-child(3) { grid-column: 2; grid-row: 2; }
	.home-gallery-item:nth-child(4) { display: none; }
}

@media (max-width: 767px) {
	.home-redesign { padding-bottom: 6.6rem; }

	.home-container { width: min(1400px, calc(100% - 1.25rem)); }

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

	.home-section-head,
	.home-products-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
		margin-bottom: 1rem;
	}

	.home-section-controls {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.home-section-title { font-size: clamp(1.4rem, 5vw, 1.8rem); }
	.home-eyebrow { font-size: 0.7rem; }

	/* Category: 2-col grid on mobile */
	.home-category-mosaic {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
		gap: 0.5rem;
	}

	/* Hero card: full width top row */
	.home-category-card--hero {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.home-category-card--hero .home-category-link {
		aspect-ratio: 16 / 7;
		height: auto;
	}

	.home-category-card:not(.home-category-card--hero) .home-category-link {
		aspect-ratio: 3 / 2;
		height: auto;
	}

	.home-category-name { font-size: 1rem; }
	.home-category-card--hero .home-category-name { font-size: 1.25rem; }

	/* Gallery: 2-col on mobile — show all 4 */
	.home-gallery-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 150px 150px;
		gap: 0.5rem;
	}

	.home-gallery-item:nth-child(1) { grid-column: span 2; grid-row: 1; }
	.home-gallery-item:nth-child(2) { grid-column: 1; grid-row: 2; }
	.home-gallery-item:nth-child(3) { grid-column: 2; grid-row: 2; }
	.home-gallery-item:nth-child(4) { display: none; }

	.home-gallery-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }

	/* Value props: single col, horizontal layout */
	.home-value-grid { grid-template-columns: 1fr; gap: 0.85rem; }

	.home-value-card {
		flex-direction: row;
		text-align: start;
		align-items: flex-start;
		gap: 1rem;
		padding: 1rem;
	}

	.home-value-icon { margin-bottom: 0; flex-shrink: 0; width: 44px; height: 44px; }

	.home-mobile-actions { display: flex; }

	/* Product card on mobile: keep ATC bar, hide overlay (touch-friendly) */
	.home-products .attai-product-card__atc-bar {
		display: flex !important;
	}
	.home-products .attai-product-card__atc-overlay {
		display: none !important;
	}
	.home-products .attai-product-card__content {
		grid-template-areas:
			"name  price"
			"stars stars"
			"mktg  mktg"
			"atcbar atcbar";
	}
	.home-products .attai-product-card__atc-bar { grid-area: atcbar; margin-top: 0.4rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
	[data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.home-product-card,
	.home-category-link img,
	.home-category-arrow,
	.home-gallery-item img,
	.home-hero-cta,
	.home-promo-cta,
	.home-product-cart {
		transition-duration: 0.01ms;
	}
}
