/* ============================================================================
   Strawberry for Beauty — homepage: best sellers + customer voices.

   Every selector sits under `.sfb-page`, the hall's own wrapper, so this file
   cannot reach the shop, the product pages or the 3D templates. Palette, fonts
   and the `.rv` reveal all come from hall-home.css via that wrapper's custom
   properties — nothing is redeclared here, so a future hall drop restyles these
   two sections along with the rest of the page instead of leaving them stranded.

   #DE2227 (--red) is the only accent, and only for rank, stars and hairlines.
   Transform and opacity are the only animated properties.
   ========================================================================== */

/* ------------------------------------------------------------ best sellers -- */

.sfb-page .best-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--line);
	margin-top: clamp(34px, 4vw, 52px);
	border-block: 1px solid var(--line);
}

.sfb-page .best-item {
	position: relative;
	display: block;
	background: var(--void);
	text-decoration: none;
	color: inherit;
	transition: background .34s cubic-bezier(.16, 1, .3, 1);
}

/* the red rule is drawn from the right, because the reading order is RTL */
.sfb-page .best-item::before {
	content: "";
	position: absolute; inset-block-start: 0; inset-inline: 0;
	block-size: 2px; background: var(--red);
	transform: scaleX(0); transform-origin: 100% 50%;
	transition: transform .42s cubic-bezier(.16, 1, .3, 1);
}
.sfb-page .best-item:hover,
.sfb-page .best-item:focus-visible { background: #0C0B10; }
.sfb-page .best-item:hover::before,
.sfb-page .best-item:focus-visible::before { transform: scaleX(1); }

.sfb-page .best-rank {
	position: absolute; z-index: 2;
	inset-block-start: 14px; inset-inline-start: 16px;
	font-family: var(--f-tick); font-size: 11px; font-weight: 500;
	letter-spacing: .16em; color: var(--dim);
	font-variant-numeric: tabular-nums;
	transition: color .3s ease;
}
.sfb-page .best-item:hover .best-rank { color: var(--red); }

.sfb-page .best-shot {
	position: relative;
	aspect-ratio: 1 / 1;
	display: grid; place-items: center;
	padding: 26px;
	overflow: hidden;
}
.sfb-page .best-shot img {
	inline-size: 100%; block-size: 100%;
	object-fit: contain;
	transition: transform .55s cubic-bezier(.16, 1, .3, 1);
}
.sfb-page .best-item:hover .best-shot img { transform: translateY(-6px) scale(1.04); }

.sfb-page .best-crown {
	position: absolute; z-index: 2;
	inset-block-start: 12px; inset-inline-end: 12px;
	padding: 5px 11px;
	background: var(--red); color: #fff;
	font-family: var(--f-body); font-size: 10px; font-weight: 500;
	letter-spacing: .04em; border-radius: 2px;
	box-shadow: 0 6px 20px -6px rgba(222, 34, 39, .9);
}
.sfb-page .best-3d {
	position: absolute; z-index: 2;
	inset-block-end: 12px; inset-inline-end: 12px;
	padding: 4px 9px;
	border: 1px solid rgba(255, 255, 255, .18);
	font-family: var(--f-tick); font-size: 9px; letter-spacing: .18em;
	color: var(--cream); border-radius: 2px;
}

.sfb-page .best-meta {
	padding: 16px 18px 22px;
	border-block-start: 1px solid var(--line);
}
.sfb-page .best-cat {
	display: block;
	font-family: var(--f-tick); font-size: 8.5px; letter-spacing: .26em;
	color: var(--dim);
}
.sfb-page .best-meta h3 {
	margin: 8px 0 0;
	font-family: var(--f-display); font-weight: 500; font-size: 14px;
	line-height: 1.6; color: #fff;
}
.sfb-page .best-money {
	display: block; margin-block-start: 11px;
	font-family: var(--f-tick); font-size: 13.5px; color: var(--cream);
}
.sfb-page .best-money del { color: var(--dim); font-size: 11px; margin-inline-start: 7px; }
.sfb-page .best-money ins { text-decoration: none; }

/* --------------------------------------------------------------- voices -- */

.sfb-page .voices-sum {
	display: flex; align-items: center; flex-wrap: wrap; gap: .55rem;
	margin-block-start: 18px;
	font-size: 13.5px; color: var(--mute); font-weight: 300;
}
.sfb-page .voices-sum > span {
	font-family: var(--f-tick); font-size: 17px; color: #fff;
	font-variant-numeric: tabular-nums;
}

.sfb-page .voice-stars {
	display: inline-flex; gap: 2px;
	font-size: 13px; line-height: 1; color: var(--dim);
}
.sfb-page .voice-stars .on { color: var(--red); }

.sfb-page .voices-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--line);
	border-block: 1px solid var(--line);
	margin: clamp(34px, 4vw, 52px) 0 0;
	padding: 0;
	list-style: none;
}

.sfb-page .voice {
	position: relative;
	display: flex; flex-direction: column; gap: 15px;
	background: var(--void);
	padding: clamp(24px, 2.6vw, 34px);
	transition: background .34s cubic-bezier(.16, 1, .3, 1);
}
.sfb-page .voice:hover { background: #0C0B10; }

.sfb-page .voice-text {
	margin: 0;
	font-size: 14px; line-height: 2; font-weight: 300;
	color: var(--cream);
}

.sfb-page .voice-who {
	display: flex; flex-direction: column; gap: 5px;
	margin-block-start: auto;
	padding-block-start: 15px;
	border-block-start: 1px solid var(--line);
}
.sfb-page .voice-name {
	font-family: var(--f-display); font-weight: 500; font-size: 13.5px; color: #fff;
}
.sfb-page .voice-prod {
	font-family: var(--f-tick); font-size: 10px; letter-spacing: .1em;
	color: var(--dim); text-decoration: none;
	transition: color .22s ease;
}
.sfb-page .voice-prod:hover { color: var(--red); }

/* ---------------------------------------------------------------- mobile -- */

@media (max-width: 1024px) {
	.sfb-page .best-grid   { grid-template-columns: repeat(2, 1fr); }
	.sfb-page .voices-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.sfb-page .best-grid   { grid-template-columns: 1fr; }
	.sfb-page .voices-grid { grid-template-columns: 1fr; }
	.sfb-page .best-shot   { aspect-ratio: 4 / 3; padding: 20px; }
	.sfb-page .voice       { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.sfb-page .best-item,
	.sfb-page .best-item::before,
	.sfb-page .best-shot img,
	.sfb-page .best-rank,
	.sfb-page .voice,
	.sfb-page .voice-prod { transition: none; }
	.sfb-page .best-item:hover .best-shot img { transform: none; }
}
