/*
 * tt-shop shared components reused across pages: buttons, badges, pills,
 * section scaffolding and the product card. (DESIGN_TOKENS "Components".)
 */

/* ---------- Section scaffolding ---------- */
.tt-section {
	padding-block: clamp(40px, 5vw, 56px);
}
.tt-section__title {
	max-width: var(--tt-container, 1200px);
	margin: 0 auto 24px;
	padding-inline: 24px;
	box-sizing: border-box;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 900;
	color: var(--wp--preset--color--brand-purple);
}
.tt-lead {
	font-size: var(--wp--preset--font-size--lead);
}
.tt-code {
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--ink);
	padding: 2px 8px;
	border-radius: 6px;
	font-weight: 800;
}

/* ---------- Buttons ---------- */
.tt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 24px;
	border: 2px solid transparent;
	border-radius: 14px;
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 800;
	font-size: 17px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.tt-btn--lg {
	min-height: 56px;
	font-size: 19px;
	padding: 0 30px;
}
.tt-btn--primary {
	background: var(--wp--preset--color--primary);
	color: #fff;
}
.tt-btn--primary:hover,
.tt-btn--primary:focus {
	background: var(--wp--preset--color--primary-dark);
	color: #fff;
}
.tt-btn--secondary {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--brand-purple);
	border-color: var(--wp--preset--color--brand-purple);
}
.tt-btn--secondary:hover,
.tt-btn--secondary:focus {
	background: var(--wp--preset--color--brand-purple);
	color: #fff;
}
.tt-btn--outline {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
}
.tt-btn--outline:hover,
.tt-btn--outline:focus {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

/* ---------- Badges & pills ---------- */
.tt-badge {
	align-self: flex-start;
	display: inline-block;
	background: var(--wp--preset--color--accent-soft);
	color: #6b4e00;
	font-weight: 800;
	font-size: 14px; /* Card/product badges. */
	letter-spacing: 0.06em;
	padding: 6px 14px;
	border-radius: 999px;
}
.tt-badge--soft {
	font-size: 15px; /* Hero badge is 15px in the reference. */
}
.tt-pill {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 22px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--brand-purple);
	font-weight: 800;
	text-decoration: none;
	border-radius: 999px;
}
.tt-pill:hover,
.tt-pill:focus {
	background: #f3f0fb;
}
.tt-pill--accent {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}
.tt-pill--accent:hover,
.tt-pill--accent:focus {
	background: #f0b600;
}

/* ---------- Product card (shared) ---------- */
.tt-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 24px;
}
.tt-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.tt-card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none;
	box-sizing: border-box;
}
/* Fill the media square — Printify photos have their own (white) background, so
   no padding/float. The tint only shows through for the no-image placeholder. */
.tt-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tt-card__placeholder {
	text-align: center;
	font-weight: 900;
	font-size: 19px;
	line-height: 1.2;
	color: var(--wp--preset--color--brand-purple);
}
.tt-card__badge {
	position: absolute;
	left: 12px;
	top: 12px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--brand-purple);
	font-size: 14px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 999px;
}
.tt-card__title {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
}
.tt-card__title a {
	color: inherit;
	text-decoration: none;
}
.tt-card__title a:hover {
	text-decoration: underline;
}
.tt-card__meta {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.tt-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}
.tt-card__price {
	font-size: 22px;
	font-weight: 900;
	color: var(--wp--preset--color--brand-purple);
}
.tt-card__price del {
	color: var(--wp--preset--color--muted);
	font-weight: 700;
	font-size: 17px;
}
.tt-card__cta {
	flex: none;
	border-radius: 12px; /* Card buttons use 12px radius (design); CTAs 14px. */
}

/* ---------- Accordions (shared: product + help) ---------- */
.tt-accordions {
	border-top: 1px solid var(--wp--preset--color--line);
}
.tt-accordion {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.tt-accordion__summary {
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: 19px;
	font-weight: 800;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	list-style: none;
}
.tt-accordion__summary::-webkit-details-marker {
	display: none;
}
.tt-accordion__summary::after {
	content: "+";
	font-size: 28px;
	color: var(--wp--preset--color--primary);
	flex: none;
}
.tt-accordion[open] .tt-accordion__summary::after {
	content: "−";
}
.tt-accordion__body {
	padding-bottom: 18px;
	color: #4a4460;
}
