/* =============================================================================
   NAILIVA STORE — FRONT PAGE v1.7.1
   Lean DTC homepage: hero, proof, products, reviews, bundle, how-to, FAQ.
   No decorative filler sections.
   ============================================================================= */

.section-intro {
	max-width: 52ch;
	color: var(--color-text-muted);
	font-size: 14px;
	line-height: 1.65;
	margin-top: 8px;
}

/* HERO */
.hero { padding-block: 30px 42px; }
.hero-inner { display: flex; flex-direction: column; gap: 28px; }
.hero-content { max-width: 610px; }
.hero-heading { font-size: 38px; line-height: 1.06; margin-block: 10px 16px; max-width: 11ch; }
.hero-copy { color: var(--color-text-muted); font-size: 15px; line-height: 1.65; max-width: 45ch; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hero-actions .btn-primary { min-width: 175px; }
.hero-media { position: relative; width: 100%; }
.hero-image { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 42%; }
.hero-stat-card {
	position: absolute; left: 14px; bottom: 14px; z-index: 2;
	background: rgba(249,246,240,.96); border: 1px solid var(--color-border);
	padding: 10px 13px; display: flex; flex-direction: column; line-height: 1.05;
}
.hero-stat-number { font-family: var(--font-heading); font-size: 26px; }
.hero-stat-label { margin-top: 4px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); }

/* CORE BENEFIT STRIP */
.trust-bar { padding-block: 22px; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.trust-bar-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 16px; }
.trust-point { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.trust-point-icon { flex: 0 0 auto; margin-top: 1px; }
.trust-point-copy { display: flex; flex-direction: column; gap: 2px; }
.trust-point-heading { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.trust-point-sub { color: var(--color-text-muted); font-size: 10.5px; line-height: 1.4; }

/* BESTSELLERS */
.bestsellers .section-head-row { align-items: flex-end; }
.bestseller-row {
	display: grid !important;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 24px 12px;
	margin: 0 !important; padding: 0 !important; list-style: none !important;
}
.woocommerce .bestseller-row.products::before,
.woocommerce .bestseller-row.products::after,
.woocommerce-page .bestseller-row.products::before,
.woocommerce-page .bestseller-row.products::after { display: none !important; content: none !important; }
.woocommerce .bestseller-row.products li.product,
.woocommerce-page .bestseller-row.products li.product,
.bestseller-row.products li.product {
	float: none !important; clear: none !important; width: 100% !important;
	max-width: none !important; margin: 0 !important; padding: 0 !important;
}
.bestseller-row.products li.product a img.product-card-photo { width: 100% !important; height: 100% !important; margin: 0 !important; object-fit: cover; }
.bestseller-row.products li.product .button { margin: 0 !important; }

/* REVIEWS — exact branded homepage treatment: large score summary,
   distribution bars, horizontal review cards, and a centered CTA. */
.reviews-wrap { display: grid; gap: 26px; }
.reviews-head { align-items: end; }
.reviews-head .section-intro { margin-top: 12px; }

.reviews-summary {
	display: grid;
	grid-template-columns: minmax(210px, 260px) 1fr;
	gap: 36px;
	align-items: center;
	padding: 32px 36px;
	background: #fff;
	border: 1px solid var(--color-border);
}
.summary-score-block {
	text-align: center;
	padding-right: 36px;
	border-right: 1px solid var(--color-border);
}
.summary-score {
	font-family: var(--font-heading);
	font-size: clamp(52px, 5vw, 70px);
	line-height: .9;
}
.summary-stars {
	font-size: 17px;
	letter-spacing: .12em;
	color: var(--color-bg-dark);
	margin: 10px 0 8px;
}
.summary-count {
	font-size: 12px;
	line-height: 1.5;
	color: var(--color-text-muted);
}
.dist-rows { display: flex; flex-direction: column; gap: 9px; }
.dist-row {
	display: grid;
	grid-template-columns: 42px minmax(120px, 1fr) 40px;
	align-items: center;
	gap: 14px;
	font-size: 12px;
	color: var(--color-text-muted);
}
.dist-label { color: var(--color-text); font-weight: 600; }
.dist-bar-track {
	height: 8px;
	background: #f0ece4;
	border-radius: 99px;
	overflow: hidden;
}
.dist-bar-fill {
	display: block;
	height: 100%;
	background: var(--color-bg-dark);
	border-radius: inherit;
}

.reviews-scroll {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: #d9d1c2 transparent;
	margin: 0;
	padding: 2px 0 14px;
	list-style: none;
}
.reviews-scroll::-webkit-scrollbar { height: 7px; }
.reviews-scroll::-webkit-scrollbar-track { background: transparent; }
.reviews-scroll::-webkit-scrollbar-thumb { background: #d9d1c2; border-radius: 99px; }
.review-card {
	scroll-snap-align: start;
	flex: 0 0 min(300px, 82vw);
	min-height: 0;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.review-card-top { display: flex; align-items: center; gap: 12px; }
.review-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	flex: 0 0 auto;
	background: var(--color-bg-dark);
	color: var(--color-text-on-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-heading);
	font-size: 16px;
}
.review-who { min-width: 0; }
.review-name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.review-stars-row { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.review-stars-row .stars { font-size: 13px; letter-spacing: .06em; white-space: nowrap; }
.review-verified-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #1887f2;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}
.review-verified-badge::before { display: none !important; content: none !important; }
.review-verified-icon {
	display: block;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	color: #1887f2;
}
.review-verified-label { line-height: 1; }
.review-quote {
	font-family: var(--font-heading);
	font-size: 16px;
	line-height: 1.55;
	margin: 0;
	overflow-wrap: anywhere;
}
.review-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -2px; }
.review-pill {
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	border-radius: 4px;
	background: #f3efe7;
	color: var(--color-text-muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1;
}
.review-footer {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px;
	align-items: center;
	padding-top: 12px;
	margin-top: auto;
	border-top: 1px solid var(--color-border);
}
.review-product-media {
	width: 42px;
	height: 42px;
	border: 1px solid var(--color-border);
	overflow: hidden;
	background: #fff;
}
.review-product-thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0 !important;
}
.review-product {
	display: inline-block;
	color: var(--color-text-muted);
	font-size: 11px;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.reviews-actions { display: flex; justify-content: center; }
.reviews-all-btn {
	width: auto;
	min-width: 190px;
	height: 46px;
	padding-inline: 24px;
	background: transparent;
	border: 1px solid var(--color-bg-dark);
	color: var(--color-text);
}
a.reviews-all-btn:visited {
	color: var(--color-text);
}
a.reviews-all-btn:hover,
a.reviews-all-btn:focus-visible,
a.reviews-all-btn:visited:hover,
a.reviews-all-btn:visited:focus-visible {
	background: var(--color-bg-dark);
	border-color: var(--color-bg-dark);
	color: var(--color-text-on-dark);
	opacity: 1;
}

@media (min-width: 768px) {
	.review-card { flex-basis: 310px; }
}
@media (min-width: 1200px) {
	.reviews-scroll {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 16px;
		overflow: visible;
		padding-bottom: 0;
	}
	.review-card { flex-basis: auto; width: 100%; }
}
@media (max-width: 767px) {
	.reviews-wrap { gap: 20px; }
	.reviews-head { align-items: flex-start; }
	.reviews-head .btn-text { display: none; }
	.reviews-summary {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 24px 18px;
	}
	.summary-score-block {
		display: grid;
		grid-template-columns: auto 1fr;
		grid-template-rows: auto auto;
		column-gap: 18px;
		align-items: center;
		text-align: left;
		padding: 0 0 20px;
		border-right: 0;
		border-bottom: 1px solid var(--color-border);
	}
	.summary-score { grid-row: 1 / 3; font-size: 52px; }
	.summary-stars { margin: 0 0 4px; }
	.summary-count { margin: 0; }
	.dist-row { grid-template-columns: 38px minmax(80px, 1fr) 36px; gap: 10px; font-size: 11px; }
	.review-card { min-height: 0; padding: 18px; }
	.review-quote { font-size: 16px; }
}

/* BUNDLE OFFER */
.bundle-promo-inner { display: grid; gap: 28px; align-items: center; }
.bundle-promo-media { width: 100%; }
.bundle-promo-image { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.bundle-heading { max-width: 12ch; }
.bundle-promo-copy { max-width: 52ch; color: var(--color-text-muted); line-height: 1.65; margin-block: 14px 22px; font-size: 14px; }
.bundle-promo-content .btn-primary { width: 100%; }

/* HOW IT WORKS */
.how-it-works { padding-block: clamp(44px, 6vw, 72px); }
.how-it-works-inner { display: grid; gap: 26px; }
.how-it-works-head { display: grid; gap: 18px; align-items: end; }
.how-it-works-head .heading-xl { max-width: 14ch; margin-top: 4px; }
.how-it-works-head .section-intro { max-width: 58ch; }
.how-it-works-guide { width: max-content; }
.how-it-works-steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.how-it-works-steps li {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 14px;
	row-gap: 8px;
	align-items: start;
	padding: 18px;
	border: 1px solid var(--color-border);
	background: var(--color-bg);
}
.how-step-number {
	position: absolute;
	top: 14px;
	right: 14px;
	font-family: var(--font-body);
	font-size: 9px;
	font-weight: 600;
	letter-spacing: .14em;
	color: var(--color-text-muted);
}
.how-step-icon {
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--color-border);
	background: var(--color-bg-alt);
}
.how-step-icon svg { width: 21px; height: 21px; }
.how-it-works-steps h3 { font-size: 20px; font-weight: 500; margin: 1px 34px 0 0; }
.how-it-works-steps p { color: var(--color-text-muted); font-size: 11.5px; line-height: 1.55; max-width: 42ch; }

/* FAQ */
.faq-inner { max-width: 1040px; }
.faq-head { max-width: 620px; }
.accordion-item { border-top: 1px solid var(--color-border); }
.accordion-item:last-child { border-bottom: 1px solid var(--color-border); }
.faq .accordion-trigger { min-height: 58px; padding-block: 16px; font-size: 14px; font-weight: 500; }
.faq .accordion-panel { padding: 0 30px 20px 0; }
.faq .accordion-panel p { color: var(--color-text-muted); font-size: 12.5px; line-height: 1.65; max-width: 68ch; }

@media (min-width: 768px) {
	.hero-heading { font-size: 48px; }
	.trust-bar-row { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
	.bestseller-row { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px 18px; }
	.bundle-promo-content .btn-primary { width: auto; }
}

@media (min-width: 1024px) {
	.hero { padding-block: 44px 54px; }
	.hero-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: clamp(52px,6vw,88px); }
	.hero-content { flex: 1 1 50%; }
	.hero-media { flex: 0 1 500px; width: min(40vw,500px); max-width: 500px; margin-left: auto; }
	.hero-heading { font-size: clamp(50px,4vw,62px); }
	.hero-image { max-height: 500px; }

	.bundle-promo-inner { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 68px; }
	.bundle-promo-media { max-width: 520px; }
	.bundle-promo-image { aspect-ratio: 4 / 3; }
	.bundle-heading { font-size: clamp(38px,3.1vw,50px); }

	.how-it-works-head { grid-template-columns: minmax(0,1fr) auto; gap: 36px; }
	.how-it-works-steps { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
	.how-it-works-steps li { min-height: 150px; padding: 20px; }
	.how-it-works-steps h3 { font-size: 21px; }
}

/* -----------------------------------------------------------------------
   v1.7.1 MOBILE HERO ORDER
   Product first on mobile/tablet: shoppers see the nail result before copy.
   Desktop restores the approved split layout with copy on the left.
   ----------------------------------------------------------------------- */
@media (max-width: 1023px) {
	.hero { padding-top: 0; }
	.hero-inner { gap: 24px; }
	.hero-media { order: -1; }
	.hero-content { order: 0; }
	.hero-image {
		aspect-ratio: 4 / 5;
		max-height: 560px;
		object-position: center 38%;
	}
	.hero-heading {
		font-size: clamp(34px, 9vw, 44px);
		max-width: 10.5ch;
	}
}

@media (max-width: 480px) {
	.hero-copy { font-size: 14px; line-height: 1.6; }
	.hero-actions { align-items: stretch; }
	.hero-actions .btn-primary { width: 100%; }
	.hero-actions .btn-text { width: max-content; }
}


/* UGC — real clips only; compact reel treatment without turning the home
   page into a social feed. */
.home-ugc-head { margin-bottom: 20px; }
.home-ugc-grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(210px, 78vw);
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 2px;
}
.home-ugc-grid::-webkit-scrollbar { display: none; }
.home-ugc-card { scroll-snap-align: start; min-width: 0; }
.home-ugc-video-shell {
	position: relative;
	aspect-ratio: 9 / 16;
	background: var(--color-bg-dark);
	overflow: hidden;
}
.home-ugc-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #d9d0c5;
}
.home-ugc-play {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: linear-gradient(to top, rgba(24,18,15,.28), rgba(24,18,15,.04) 55%, rgba(24,18,15,.08));
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.home-ugc-play[hidden] { display: none; }
.home-ugc-play-icon {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(249,246,240,.94);
	position: relative;
	box-shadow: 0 1px 8px rgba(0,0,0,.12);
}
.home-ugc-play-icon::after {
	content: "";
	position: absolute;
	left: 19px;
	top: 14px;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	border-left: 14px solid var(--color-bg-dark);
}
.social-proof .heading-lg { max-width: 14ch; }
.review-card { min-width: 0; }
.review-quote { overflow-wrap: anywhere; }
.review-product-thumb { margin: 0 !important; }
@media (min-width: 640px) {
	.home-ugc-grid { grid-auto-columns: minmax(220px, 32vw); }
}
@media (min-width: 1024px) {
	.home-ugc-grid {
		grid-auto-flow: initial;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		overflow: visible;
		gap: 16px;
		max-width: 1180px;
	}
}
