/**
 * Shadi Clinic shared pieces: section titles, links, buttons and the product card.
 * Loaded on the homepage, product pages, the shop and the cart. Tokens come from tokens.css.
 */

.sc-section {
	margin-top: 40px;
}

.sc-i {
	width: 20px;
	height: 20px;
	flex: none;
}

.sc-ph {
	background: var(--sc-coral-soft);
	color: var(--sc-coral-ink);
	padding: 0 6px;
	border-radius: 6px;
	font-weight: 600;
}

.sc-h2 {
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.5;
	margin-bottom: 16px;
}

.sc-h2__sub {
	display: block;
	font-size: .875rem;
	font-weight: 400;
	color: var(--sc-muted);
}

.sc-link {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-weight: 700;
	font-size: .875rem;
	color: var(--sc-petrol) !important;
}

.sc-link .sc-i {
	width: 16px;
	height: 16px;
}

/* Buttons */
.sc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 20px;
	border-radius: var(--sc-r);
	border: 1.5px solid transparent;
	font: inherit;
	font-weight: 700;
	font-size: .9375rem;
	cursor: pointer;
	text-align: center;
	transition: background-color .15s, color .15s, border-color .15s;
}

.sc-btn .sc-i {
	width: 18px;
	height: 18px;
}

.sc-btn--primary {
	background: var(--sc-petrol);
	color: #fff !important;
}

.sc-btn--primary:hover {
	background: var(--sc-petrol-dark);
}

.sc-btn--outline {
	border-color: var(--sc-petrol);
	color: var(--sc-petrol) !important;
	background: transparent;
}

.sc-btn--outline:hover {
	background: var(--sc-petrol-soft);
}

/* Product card: the photo leads, three short lines follow, no box around the text. */
.sc-card {
	position: relative;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: .8125rem;
}

.sc-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1;
	border-radius: var(--sc-r-lg);
	overflow: hidden;
	background: var(--sc-surface);
	border: 1px solid var(--sc-line);
	margin-bottom: 8px;
	transition: border-color .15s;
}

a.sc-card:hover .sc-card__media {
	border-color: #cfd9d7;
	box-shadow: 0 10px 24px -14px rgba(15, 92, 90, .35);
}
a.sc-card:hover .sc-card__media img {
	transform: scale(1.03);
}
.sc-card__media img {
	transition: transform .25s ease;
}

.sc-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.sc-card__noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #c9c2b8;
}

.sc-card__noimg .sc-i {
	width: 44px;
	height: 44px;
}

.sc-badge {
	position: absolute;
	top: 8px;
	inset-inline-start: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--sc-surface);
	border: 1px solid var(--sc-gold-line);
}

.sc-badge .sc-genuine {
	width: 24px;
	height: 24px;
}

.sc-off {
	position: absolute;
	top: 8px;
	inset-inline-end: 8px;
	background: var(--sc-sale);
	color: #fff;
	border-radius: 8px;
	padding: 1px 7px;
	font-size: .75rem;
	font-weight: 800;
}

.sc-card__fit {
	position: absolute;
	bottom: 8px;
	inset-inline-start: 8px;
	max-width: calc(100% - 16px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--sc-petrol);
	background: var(--sc-petrol-soft);
	border-radius: 999px;
	padding: 1px 10px;
	font-size: .6875rem;
	font-weight: 600;
}

.sc-card__brand {
	color: var(--sc-muted);
	font-size: .75rem;
}

.sc-card__name {
	font-size: .875rem;
	font-weight: 700;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 3.2em;
}

.sc-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 4px;
}

.sc-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 6px;
	font-weight: 800;
	font-size: .9375rem;
	min-width: 0;
}

.sc-card__price del {
	color: var(--sc-muted);
	font-weight: 400;
	font-size: .75rem;
}

.sc-card__price ins {
	text-decoration: none;
}

.sc-card__go {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--sc-petrol-soft);
	color: var(--sc-petrol);
	transition: background-color .15s;
}

a.sc-card:hover .sc-card__go {
	background: var(--sc-petrol);
	color: #fff;
}

.sc-card__go .sc-i {
	width: 18px;
	height: 18px;
}

/* ---------- Test teaser (1405-08-18): sample result card, trust line, catalog banner ----------
   Markup: sc_quiz_preview() and sc_quiz_catalog_teaser() in inc/quiz.php, #sc-tests in front-page.php. */
.sc-qprev {
	display: block;
	width: 100%;
	max-width: 440px;
	margin-inline: auto;
	background: var(--sc-surface);
	border: 1px solid var(--sc-line);
	border-radius: var(--sc-r-lg);
	padding: 14px 14px 12px;
	color: var(--sc-ink) !important;
	text-decoration: none !important;
	box-shadow: 0 8px 28px rgba(15, 92, 90, .08);
	transition: border-color .15s;
}

a.sc-qprev:hover {
	border-color: var(--sc-petrol);
}

.sc-qprev__in,
.sc-qprev__top,
.sc-qprev__tabs,
.sc-qprev__foot {
	display: flex;
}

.sc-qprev__in {
	flex-direction: column;
}

.sc-qprev__top {
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}

.sc-qprev__tag {
	margin-inline-end: auto;
	font-size: max(.78rem, 12.5px);
	font-weight: 700;
	color: var(--sc-muted);
}

.sc-qprev__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sc-qprev__chips b {
	font-size: max(.78rem, 12.5px);
	font-weight: 700;
	line-height: 1.8;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--sc-petrol-soft);
	color: var(--sc-petrol);
}

.sc-qprev--hair .sc-qprev__chips b {
	background: var(--sc-coral-soft);
	color: var(--sc-coral-ink);
}

.sc-qprev__tabs {
	gap: 4px;
	padding: 3px;
	margin-bottom: 4px;
	border-radius: 999px;
	background: var(--sc-bg);
}

.sc-qprev__tabs span {
	flex: 1;
	text-align: center;
	font-size: max(.84rem, 13.5px);
	font-weight: 700;
	line-height: 1.9;
	border-radius: 999px;
	color: var(--sc-muted);
}

.sc-qprev__tabs .is-on {
	background: var(--sc-surface);
	color: var(--sc-ink);
	box-shadow: 0 1px 3px rgba(31, 42, 46, .1);
}

.sc-qprev__steps {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sc-qprev__steps li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px dashed var(--sc-line);
}

.sc-qprev__steps li:last-child {
	border-bottom: 0;
}

.sc-qprev__n {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	font-size: max(.78rem, 12.5px);
	font-weight: 800;
	background: var(--sc-petrol);
	color: #fff;
}

.sc-qprev--hair .sc-qprev__n {
	background: var(--sc-coral-ink);
}

.sc-qprev__s {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.7;
}

.sc-qprev__s strong {
	font-size: max(.94rem, 15px);
	font-weight: 800;
}

.sc-qprev__s em {
	font-style: normal;
	font-size: max(.78rem, 12.5px);
	font-weight: 700;
	color: var(--sc-coral-ink);
	white-space: nowrap;
}

.sc-qprev__s small {
	font-size: max(.78rem, 12.5px);
	color: var(--sc-muted);
}

.sc-qprev__th {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--sc-r-sm);
	background: var(--sc-bg);
	color: var(--sc-petrol);
}

.sc-qprev--hair .sc-qprev__th {
	color: var(--sc-coral-ink);
}

.sc-qprev__th .sc-i {
	width: 24px;
	height: 24px;
}

.sc-qprev__foot {
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	padding-top: 10px;
	border-top: 1px solid var(--sc-line);
	font-size: max(.78rem, 12.5px);
	color: var(--sc-muted);
}

.sc-qprev__foot .sc-i {
	width: 16px;
	height: 16px;
	color: var(--sc-petrol);
}

/* Trust line under the test cards */
.sc-qtrust {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	font-size: max(.84rem, 13.5px);
	color: var(--sc-muted);
}

.sc-qtrust li {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
}

.sc-qtrust .sc-i {
	width: 16px;
	height: 16px;
	color: var(--sc-petrol);
}

/* Homepage #sc-tests: cards + trust line, then the sample result (beside them on wide screens) */
.sc-tests-sec__grid {
	display: grid;
	gap: 20px;
}

.sc-test__meta {
	font-size: max(.78rem, 12.5px);
	font-weight: 700;
	color: var(--sc-ink);
}

@media (min-width: 900px) {
	.sc-tests-sec__grid {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
		align-items: center;
		gap: 32px;
	}

	.sc-tests-sec .sc-tests {
		grid-template-columns: 1fr;
	}
}

/* Test page intro: text, then the sample result (beside it on wide screens) */
.sc-quiz__intro[hidden] {
	display: none !important;
}

.sc-quiz__intro .sc-qprev {
	margin-top: 20px;
}

@media (min-width: 900px) {
	.sc-quiz__intro--split {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 340px;
		align-items: center;
		gap: 40px;
	}

	.sc-quiz__intro--split .sc-qprev {
		margin: 0;
	}
}

/* Catalog: full-row banner after the first page of products */
.sc-qteaser {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 14px;
	padding: 16px;
	border-radius: var(--sc-r-lg);
	background: var(--sc-petrol-soft);
}

.sc-qteaser--hair {
	background: var(--sc-coral-soft);
}

.sc-qteaser__art {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--sc-surface);
	color: var(--sc-petrol);
}

.sc-qteaser--hair .sc-qteaser__art {
	color: var(--sc-coral-ink);
}

.sc-qteaser__art .sc-i {
	width: 28px;
	height: 28px;
}

.sc-qteaser__t {
	flex: 1 1 200px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: max(.84rem, 13.5px);
	line-height: 1.8;
	color: var(--sc-muted);
}

.sc-qteaser__t strong {
	font-size: max(1rem, 16px);
	font-weight: 800;
	color: var(--sc-ink);
}

.sc-qteaser__t small {
	font-size: max(.78rem, 12.5px);
	font-weight: 700;
	color: var(--sc-petrol);
}

.sc-qteaser--hair .sc-qteaser__t small {
	color: var(--sc-coral-ink);
}

.sc-qteaser .sc-btn {
	flex: 1 1 100%;
}

@media (min-width: 600px) {
	.sc-qteaser {
		padding: 18px 22px;
	}

	.sc-qteaser .sc-btn {
		flex: none;
	}
}

/* 1405-08-20 tone pass: one filled action per page; secondary actions are soft. */
.sc-btn--soft {
	background: var(--sc-petrol-soft);
	color: var(--sc-petrol) !important;
}
.sc-btn--soft:hover {
	background: #d3e4e1;
}
/* Product card: the whole card is the link, so the round arrow goes; a price note takes its place. */
.sc-card__go {
	display: none;
}
.sc-card__foot {
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
}
.sc-card__note {
	font-size: .6875rem;
	font-weight: 500;
	color: var(--sc-muted);
	line-height: 1.5;
}

/* Suits-line under the name (the chip left the photo so pictures stay clean). */
.sc-card__fit {
	display: none;
}
.sc-card__fitline {
	font-size: .6875rem;
	color: var(--sc-muted);
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 1405-08-22 card pass (Digikala review): name always 2 lines so prices line up, nothing under 12px,
   size label beside the suits-line, small grey «تومان», hover only for a mouse (no blue title). */
a.sc-card .sc-card__brand {
	font-size: 12.5px;
	line-height: 1.6;
}
a.sc-card .sc-card__name {
	font-size: 14px;
	line-height: 1.7;
	min-height: 3.4em;
	transition: color .15s;
}
a.sc-card .sc-card__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	min-width: 0;
}
a.sc-card .sc-card__top .sc-card__brand {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
a.sc-card .sc-card__size {
	flex: none;
	white-space: nowrap;
	font-size: 12px;
	color: var(--sc-muted);
}
a.sc-card .sc-card__fitline {
	font-size: 12px;
	line-height: 1.6;
}
a.sc-card .sc-card__price {
	font-size: 16px;
}
a.sc-card .sc-card__price del {
	font-size: 12px;
}
a.sc-card .sc-card__price .woocommerce-Price-currencySymbol {
	font-size: 12px;
	font-weight: 500;
	color: var(--sc-muted);
}
a.sc-card .sc-card__note {
	font-size: 12px;
}
.sc-card__media img {
	transition: transform .15s ease;
}
@media (hover: hover) {
	a.sc-card:hover .sc-card__name {
		color: var(--sc-petrol);
	}
	a.sc-card:hover .sc-card__media img {
		transform: scale(1.02);
	}
}
@media (hover: none) {
	a.sc-card:hover .sc-card__media {
		border-color: var(--sc-line);
		box-shadow: none;
	}
	a.sc-card:hover .sc-card__media img {
		transform: none;
	}
}
@media (max-width: 767px) {
	a.sc-card .sc-card__brand {
		font-size: 12px;
	}
	a.sc-card .sc-card__name {
		font-size: 13px;
	}
	a.sc-card .sc-card__price {
		font-size: 15px;
	}
}
