/**
 * Lenzzberry — homepage styles.
 * Loaded on the front page only.
 */

/* ====================================================================== */
/* 1. HERO SLIDER — auto-rotating, supports split + single slide types    */
/* ====================================================================== */

/* ====================================================================== */
/* Front-page main wrapper — kill the WP "global padding" so direct       */
/* children (hero slider, marquee, cream bands) span the viewport          */
/* edge-to-edge. We restore breathing room per-section via padding below. */
/* ====================================================================== */

.lenzz-home,
.lenzz-home.has-global-padding {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0;
	margin-right: 0;
}

/* ====================================================================== */
/* Section bands and content containers (classic theme)                   */
/* ====================================================================== */

/* Full-width band with vertical breathing room. Direct children render
   edge-to-edge unless wrapped in .lenzz-container. */
.lenzz-section {
	padding-top:    var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--60);
	padding-left:   var(--wp--preset--spacing--60);
	padding-right:  var(--wp--preset--spacing--60);
}

.lenzz-section--cream {
	background-color: var(--wp--preset--color--cream);
}

/* `.lenzz-container` core rules live in style.css so they load sitewide
   (this file is enqueued only on the homepage). Section-specific overrides
   for when the container nests inside .lenzz-section stay here. */
.lenzz-section .lenzz-container {
	padding-left: 0;
	padding-right: 0;
}

/* When [lenzz_products] is dropped directly into .lenzz-section without an
   inner .lenzz-container, constrain its width too. */
.lenzz-section > .lenzz-products {
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 960px) {
	.lenzz-section {
		padding-left:  var(--wp--preset--spacing--50);
		padding-right: var(--wp--preset--spacing--50);
	}
}

@media (max-width: 600px) {
	.lenzz-section {
		padding-left:  var(--wp--preset--spacing--40);
		padding-right: var(--wp--preset--spacing--40);
	}
}

/* Legacy block-theme rule kept as fallback in case the child theme is
   ever reactivated — harmless when no .wp-block-group child exists. */
.lenzz-home > .wp-block-group {
	padding-left: var(--wp--preset--spacing--40);
	padding-right: var(--wp--preset--spacing--40);
}

/* Hero slider — now full-width naturally because the parent has zero
   horizontal padding. No calc-breakout needed. */
.lenzz-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.lenzz-hero-slides {
	position: relative;
	width: 100%;
	min-height: clamp(280px, 40vw, 560px);
}

.lenzz-hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: scale(1.02);
	transition: opacity 600ms ease, transform 800ms ease;
	pointer-events: none;
	display: flex;
}

.lenzz-hero-slide.is-active {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}

/* --- SLIDE TYPE A: split (two halves side-by-side) --- */
.lenzz-hero-slide--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
}

.lenzz-hero-half {
	position: relative;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	overflow: hidden;
	transition: filter 350ms ease;
}

.lenzz-hero-half:hover {
	filter: brightness(1.04) saturate(1.1);
}

.lenzz-hero-half--warm { justify-content: flex-end; padding-right: clamp(2rem, 8vw, 6rem); }
.lenzz-hero-half--cool { justify-content: flex-start; padding-left: clamp(2rem, 8vw, 6rem); }

.lenzz-hero-half-text {
	display: flex;
	flex-direction: column;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: clamp(1.75rem, 4.5vw, 3.5rem);
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink);
	text-transform: uppercase;
}

.lenzz-hero-half-text > span + span { margin-top: 0.1em; }

/* --- SLIDE TYPE B: single (full-width banner with content overlay) --- */
.lenzz-hero-slide--single {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	align-items: center;
	color: var(--wp--preset--color--white);
}

/* --- SLIDE TYPE C: image-only (no overlay, no content, just the photo) --- */
.lenzz-hero-slide--image {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* When the entire hero is image-only, give it a tighter aspect ratio that
   matches typical banner art (better than the tall default). Adjust the
   min-height value if your images have a different shape. */
.lenzz-hero--images-only .lenzz-hero-slides {
	min-height: clamp(260px, 34vw, 520px);
}

.lenzz-hero-content {
	max-width: 600px;
	padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 5rem);
}

.lenzz-hero-eyebrow {
	display: inline-block;
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.92;
}

.lenzz-hero-title {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 4.5vw, 3.5rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.lenzz-hero-sub {
	margin: 0 0 1.75rem;
	font-size: clamp(0.95rem, 1.5vw, 1.125rem);
	line-height: 1.5;
	opacity: 0.95;
	max-width: 460px;
}

.lenzz-hero-cta {
	display: inline-block;
	padding: 0.85rem 2rem;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 200ms ease, box-shadow 200ms ease;
}

.lenzz-hero-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

/* --- Prev / next arrows --- */
.lenzz-hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--wp--preset--color--ink);
	border: 0;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 150ms ease;
	z-index: 5;
}

.lenzz-hero-arrow:hover { background: var(--wp--preset--color--white); }
.lenzz-hero-prev { left: 1.25rem; }
.lenzz-hero-next { right: 1.25rem; }

/* --- Dots --- */
.lenzz-hero-dots {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	gap: 0.5rem;
	z-index: 5;
}

.lenzz-hero-dot {
	width: 10px;
	height: 10px;
	border: 0;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.35);
	cursor: pointer;
	padding: 0;
	transition: background-color 150ms ease, width 200ms ease;
}

.lenzz-hero-dot.is-active {
	background: var(--wp--preset--color--ink);
	width: 28px;
	border-radius: 999px;
}

/* On split slides the dots sit on light bg, on single slides over images. */
.lenzz-hero-slide--single ~ .lenzz-hero-dots .lenzz-hero-dot {
	background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 600px) {
	.lenzz-hero-slide--split { grid-template-columns: 1fr; }
	.lenzz-hero-half { min-height: 220px; padding: 1.5rem; justify-content: center !important; }
	.lenzz-hero-half-text { font-size: clamp(1.5rem, 8vw, 2.25rem); text-align: center; }
	.lenzz-hero-arrow { display: none; }
	.lenzz-hero-slides { min-height: 440px; }
}


/* ====================================================================== */
/* 2. SECTION HEADINGS / SUB                                              */
/* ====================================================================== */

.lenzz-section-title {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 var(--wp--preset--spacing--40);
}

.lenzz-section-title--center {
	text-align: center;
	margin-inline: auto;
	max-width: 720px;
}

.lenzz-section-sub {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	max-width: 720px;
	margin: 0 auto var(--wp--preset--spacing--50);
}


/* ====================================================================== */
/* 2b. PRODUCT SECTIONS — [lenzz_products] shortcode header + grid wrap   */
/* (Bundle Deals / Best Selling / Most Loved sections on the home page).  */
/* ====================================================================== */

.lenzz-products {
	width: 100%;
}

.lenzz-products__head {
	margin: 0 0 var(--wp--preset--spacing--50);
}

.lenzz-products__head-text {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
}

.lenzz-products__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink);
	margin: 0;
}

.lenzz-products__sub {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.6;
	margin: 0;
	max-width: 720px;
}

/* `--align-center` modifier centers the head text + caps the sub width */
.lenzz-products--align-center .lenzz-products__head {
	text-align: center;
}

.lenzz-products--align-center .lenzz-products__head-text {
	align-items: center;
	max-width: 720px;
	margin-inline: auto;
}

.lenzz-products--align-center .lenzz-products__sub {
	margin-inline: auto;
	text-align: center;
}

/* `.lenzz-products__grid` is the wrapper around the WC `.woocommerce > ul.products`
   markup. The inner grid layout itself comes from product-cards.css — here we
   just give the wrapper full width. */
.lenzz-products__grid {
	width: 100%;
}

/* If the product loop is completely empty (e.g. a category with no products,
   like the Bundle Deals slot before products are tagged), hide the whole
   section so the page doesn't show a header with nothing under it. */
.lenzz-section:has(.lenzz-products__grid > .woocommerce:empty),
.lenzz-section:has(.lenzz-products__grid:empty) {
	display: none;
}


/* ====================================================================== */
/* 3. CATEGORIES BY COLOR — image cards + dot indicators                  */
/* ====================================================================== */

.lenzz-color-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--wp--preset--spacing--40);
}

.lenzz-color-cat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.625rem;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	transition: transform 220ms ease;
}

.lenzz-color-cat-card:hover { transform: translateY(-4px); }

.lenzz-color-cat-image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 12px;
	background-size: cover;
	background-position: center;
	box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.lenzz-color-cat-dots {
	display: inline-flex;
	gap: 0.4rem;
	margin-top: 0.5rem;
}

.lenzz-color-cat-dots i {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid var(--wp--preset--color--white);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.lenzz-color-cat-label {
	font-size: 1rem;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

@media (max-width: 781px) {
	.lenzz-color-cat-grid { grid-template-columns: repeat(2, 1fr); gap: var(--wp--preset--spacing--30); }
}


/* ====================================================================== */
/* 4. SHOP BY ACCESSORIES — 2 wide cards                                  */
/* ====================================================================== */

.lenzz-acc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--40);
}

.lenzz-acc-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	aspect-ratio: 16 / 7;
	min-height: 220px;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.lenzz-acc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
}

.lenzz-acc-image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.lenzz-acc-label {
	position: relative;
	margin-bottom: 1.25rem;
	padding: 0.55rem 1.25rem;
	background: rgba(255, 255, 255, 0.92);
	color: var(--wp--preset--color--ink);
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

@media (max-width: 781px) {
	.lenzz-acc-grid { grid-template-columns: 1fr; }
}


/* ====================================================================== */
/* 5. ICON MARQUEE — circular icon + label, scrolling                     */
/* ====================================================================== */

.lenzz-icon-marquee {
	background: var(--wp--preset--color--cream, #FAF6EE);
	border-block: 1px solid var(--wp--preset--color--border);
	padding: 1rem 0;
	overflow: hidden;
}

.lenzz-icon-marquee-track {
	display: inline-flex;
	gap: 1.5rem;
	white-space: nowrap;
	animation: lenzz-icon-scroll 32s linear infinite;
	will-change: transform;
}

.lenzz-icon-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding-right: 1rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.lenzz-icon-bubble {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--white);
	font-size: 14px;
	flex-shrink: 0;
}

@keyframes lenzz-icon-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.lenzz-icon-marquee-track {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem;
	}
}


/* ====================================================================== */
/* 6. CTA BANNER — full-width with overlay                                */
/* ====================================================================== */

.lenzz-cta-banner {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	min-height: clamp(320px, 38vw, 520px);
	display: flex;
	align-items: center;
	color: var(--wp--preset--color--white);
}

.lenzz-cta-inner {
	max-width: 600px;
	padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 4rem);
}

.lenzz-cta-headline {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.lenzz-cta-accent { color: var(--wp--preset--color--accent); }

.lenzz-cta-sub {
	margin: 0 0 1.75rem;
	font-size: clamp(1rem, 1.6vw, 1.125rem);
	line-height: 1.55;
	opacity: 0.95;
	max-width: 460px;
}

.lenzz-cta-button {
	display: inline-block;
	padding: 0.85rem 2rem;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.lenzz-cta-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}


/* ====================================================================== */
/* 7. REVIEWS — minimal centered card                                     */
/* ====================================================================== */

.lenzz-review-card {
	text-align: center;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

.lenzz-review-stars {
	color: var(--wp--preset--color--accent);
	font-size: 1.25rem;
	letter-spacing: 0.1em;
}

.lenzz-review-meta {
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0;
	margin-left: 0.5rem;
}

.lenzz-review-title {
	margin: 0.875rem 0 0.25rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.lenzz-review-author {
	margin: 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
}


/* ====================================================================== */
/* 8. ABOUT LINK                                                          */
/* ====================================================================== */

.lenzz-about-link a {
	color: var(--wp--preset--color--brand);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 0.125rem;
	transition: color 150ms ease;
}

.lenzz-about-link a:hover {
	color: var(--wp--preset--color--brand-dark);
}

/* About text — collapsible block. When data-collapsed="true" only the first
   ~3 lines are visible with a fade-out gradient at the bottom. JS swaps the
   attribute on click. */
.lenzz-about-text {
	color: var(--wp--preset--color--body);
	font-size: var(--wp--preset--font-size--md);
	line-height: 1.7;
	text-align: center;
	margin: 0 auto;
	max-width: 720px;
	position: relative;
	overflow: hidden;
	transition: max-height 450ms ease;
}

.lenzz-about-text p {
	margin: 0 0 1rem;
}

.lenzz-about-text p:last-child {
	margin-bottom: 0;
}

.lenzz-about-text[data-collapsed="true"] {
	max-height: 5.5rem;
}

.lenzz-about-text[data-collapsed="false"] {
	max-height: 1200px;
}

.lenzz-about-text[data-collapsed="true"]::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2.5rem;
	background: linear-gradient(to bottom, rgba(250, 246, 238, 0) 0%, rgba(250, 246, 238, 1) 100%);
	pointer-events: none;
}

.lenzz-about-toggle {
	display: block;
	margin: 1rem auto 0;
	background: transparent;
	border: 0;
	padding: 0.4rem 0.5rem;
	color: var(--wp--preset--color--brand);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--sm);
	cursor: pointer;
	transition: color 150ms ease;
}

.lenzz-about-toggle:hover {
	color: var(--wp--preset--color--brand-dark);
}

.lenzz-about-toggle .lenzz-about-toggle-less {
	display: none;
}

.lenzz-about-toggle[aria-expanded="true"] .lenzz-about-toggle-more {
	display: none;
}

.lenzz-about-toggle[aria-expanded="true"] .lenzz-about-toggle-less {
	display: inline;
}


/* ====================================================================== */
/* 9. USP STRIP — 4 columns                                               */
/* ====================================================================== */

.lenzz-usp {
	border-top: 1px solid var(--wp--preset--color--border);
}

.lenzz-usp-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--wp--preset--spacing--50);
	text-align: center;
}

.lenzz-usp-item {
	padding: 1rem 0.5rem;
}

.lenzz-usp-icon {
	color: var(--wp--preset--color--brand);
	margin: 0 auto 0.875rem;
	display: block;
}

.lenzz-usp-title {
	margin: 0 0 0.4rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink);
}

.lenzz-usp-text {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
	line-height: 1.55;
}

.lenzz-usp-text a {
	color: var(--wp--preset--color--brand);
	text-decoration: none;
}

@media (max-width: 960px) {
	.lenzz-usp-grid { grid-template-columns: repeat(2, 1fr); gap: var(--wp--preset--spacing--40); }
}

@media (max-width: 600px) {
	.lenzz-usp-grid { grid-template-columns: 1fr; }
}
